@quixomatic/rpf 0.3.1 → 0.3.2

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/assets/dev-host/boot.js +7 -223
  3. package/assets/dev-host/boot.js.LEGAL.txt +0 -22
  4. package/assets/dev-host/chunks/{accordion-O6VUPQ32.js → accordion-7MNNAFNO.js} +2 -2
  5. package/assets/dev-host/chunks/{alert-PRAGKG5L.js → alert-GIZIVENB.js} +2 -2
  6. package/assets/dev-host/chunks/{alert-dialog-SCBXM23J.js → alert-dialog-7NG5WNXK.js} +2 -2
  7. package/assets/dev-host/chunks/{avatar-WXPKQ3Z5.js → avatar-BCPZUJGX.js} +2 -2
  8. package/assets/dev-host/chunks/{breadcrumb-IJQJQ5JV.js → breadcrumb-T2XOHRDG.js} +2 -2
  9. package/assets/dev-host/chunks/button-TGT2523L.js +2 -0
  10. package/assets/dev-host/chunks/calendar-TOTKKMY2.js +2 -0
  11. package/assets/dev-host/chunks/{card-EY3LK2GB.js → card-LOSZVZYW.js} +2 -2
  12. package/assets/dev-host/chunks/{chart-2PHC6UIE.js → chart-43TBOZGK.js} +2 -2
  13. package/assets/dev-host/chunks/{chart-blocks-PZPCWCNT.js → chart-blocks-HLNNWNB5.js} +2 -2
  14. package/assets/dev-host/chunks/{chart-frame-MNUFXAPU.js → chart-frame-FNM5OPZU.js} +2 -2
  15. package/assets/dev-host/chunks/{chat-TTESCYES.js → chat-QVZ4BUWR.js} +2 -2
  16. package/assets/dev-host/chunks/{checkbox-Y2UGSRR4.js → checkbox-AFUTB4DV.js} +2 -2
  17. package/assets/dev-host/chunks/{chunk-UWANBOC6.js → chunk-2FVHAZMZ.js} +2 -2
  18. package/assets/dev-host/chunks/{chunk-CWDPAB6V.js → chunk-34RXMJIM.js} +2 -2
  19. package/assets/dev-host/chunks/chunk-354OFHNU.js +219 -0
  20. package/assets/dev-host/chunks/chunk-354OFHNU.js.LEGAL.txt +23 -0
  21. package/assets/dev-host/chunks/{chunk-CCXMDKVL.js → chunk-3LMPMW3Q.js} +2 -2
  22. package/assets/dev-host/chunks/{chunk-3H6F4X7R.js → chunk-4XESWRTW.js} +2 -2
  23. package/assets/dev-host/chunks/{chunk-PYWKHILP.js → chunk-7FCGD4LS.js} +2 -2
  24. package/assets/dev-host/chunks/{chunk-AVSRGCSF.js → chunk-7JQIKRBV.js} +2 -2
  25. package/assets/dev-host/chunks/{chunk-PHK25MY7.js → chunk-DU3VFETH.js} +2 -2
  26. package/assets/dev-host/chunks/{chunk-2IZ44WWI.js → chunk-E5JYU6CR.js} +2 -2
  27. package/assets/dev-host/chunks/{chunk-BB4IX5QA.js → chunk-FBZMZ5S2.js} +2 -2
  28. package/assets/dev-host/chunks/{chunk-GWDGPUGM.js → chunk-GSJT5YWB.js} +2 -2
  29. package/assets/dev-host/chunks/{chunk-OXJ6LWKI.js → chunk-HCQR5YME.js} +3 -3
  30. package/assets/dev-host/chunks/{chunk-APP2HKWR.js → chunk-HGBRF6KW.js} +2 -2
  31. package/assets/dev-host/chunks/{chunk-6ARM5VDH.js → chunk-HVTUE7NV.js} +2 -2
  32. package/assets/dev-host/chunks/{chunk-M7A47ZSM.js → chunk-IY3GAGI7.js} +2 -2
  33. package/assets/dev-host/chunks/{chunk-MGLBTOXD.js → chunk-KY2HARU6.js} +2 -2
  34. package/assets/dev-host/chunks/{chunk-EDEL6XSO.js → chunk-ND526XXU.js} +2 -2
  35. package/assets/dev-host/chunks/{chunk-UXUS6DNI.js → chunk-NMFZMT4R.js} +2 -2
  36. package/assets/dev-host/chunks/{chunk-XE5RQ73V.js → chunk-NPJXSRRT.js} +2 -2
  37. package/assets/dev-host/chunks/{chunk-FJRWQRLM.js → chunk-OUCK2LIZ.js} +2 -2
  38. package/assets/dev-host/chunks/{chunk-Z76KXEPD.js → chunk-OXLXEX2R.js} +2 -2
  39. package/assets/dev-host/chunks/{chunk-BH6FGVDP.js → chunk-PB5RYDO5.js} +2 -2
  40. package/assets/dev-host/chunks/{chunk-TQPXDAVH.js → chunk-QJVIEN5R.js} +2 -2
  41. package/assets/dev-host/chunks/{chunk-57M36GYM.js → chunk-QZ3NJHFR.js} +2 -2
  42. package/assets/dev-host/chunks/{chunk-FZPMZMFU.js → chunk-SC7J7HFI.js} +2 -2
  43. package/assets/dev-host/chunks/{chunk-X34AFUS2.js → chunk-SKBWMIS5.js} +2 -2
  44. package/assets/dev-host/chunks/{chunk-LTVKSGLG.js → chunk-UCEBXCOI.js} +2 -2
  45. package/assets/dev-host/chunks/{chunk-T7JFBQSG.js → chunk-UNKI7HPL.js} +2 -2
  46. package/assets/dev-host/chunks/{chunk-F5MKIWPQ.js → chunk-UPZXXDXM.js} +2 -2
  47. package/assets/dev-host/chunks/{chunk-ML6HCGK5.js → chunk-XBWE3IIB.js} +2 -2
  48. package/assets/dev-host/chunks/{chunk-NJX7QY3Z.js → chunk-YFI7GTF6.js} +2 -2
  49. package/assets/dev-host/chunks/{chunk-NI6ZJ6DH.js → chunk-YJM2Y722.js} +2 -2
  50. package/assets/dev-host/chunks/{chunk-WLBNJ4K3.js → chunk-ZNWVTDCV.js} +2 -2
  51. package/assets/dev-host/chunks/{chunk-UUJ5X322.js → chunk-ZTMZ7LJW.js} +2 -2
  52. package/assets/dev-host/chunks/{chunk-OW6AVFQA.js → chunk-ZZ2RYU7S.js} +2 -2
  53. package/assets/dev-host/chunks/{code-block-H2ETQV3M.js → code-block-IKYEIWY2.js} +2 -2
  54. package/assets/dev-host/chunks/code-editor-KDRLM33B.js +2 -0
  55. package/assets/dev-host/chunks/{collapsible-4ZOFMWLB.js → collapsible-WK7PDWEV.js} +2 -2
  56. package/assets/dev-host/chunks/{color-picker-RRCCLR54.js → color-picker-VPSOGTDM.js} +2 -2
  57. package/assets/dev-host/chunks/{combobox-U4455OMJ.js → combobox-GYLAHYVX.js} +2 -2
  58. package/assets/dev-host/chunks/{contrast-badge-KDF65X7J.js → contrast-badge-QZW62DMF.js} +2 -2
  59. package/assets/dev-host/chunks/{date-range-picker-WJYHAHRM.js → date-range-picker-6Q2JGR43.js} +2 -2
  60. package/assets/dev-host/chunks/{dialog-I6AGHWB3.js → dialog-HDQAIAFZ.js} +2 -2
  61. package/assets/dev-host/chunks/{dropdown-menu-LSOMXDWG.js → dropdown-menu-E7K3YNXS.js} +2 -2
  62. package/assets/dev-host/chunks/{empty-NLQODUSK.js → empty-JCVCSM3V.js} +2 -2
  63. package/assets/dev-host/chunks/{font-picker-3TLYYZJH.js → font-picker-7FBJCSTQ.js} +2 -2
  64. package/assets/dev-host/chunks/{frame-HA7UIYZF.js → frame-LZ2IUISE.js} +2 -2
  65. package/assets/dev-host/chunks/{heading-7M24WKK6.js → heading-GX36VR3U.js} +2 -2
  66. package/assets/dev-host/chunks/{hover-card-HSHOQPOI.js → hover-card-ONEUZ7TU.js} +2 -2
  67. package/assets/dev-host/chunks/{image-R7XGYKVH.js → image-E3BYZ2HA.js} +2 -2
  68. package/assets/dev-host/chunks/{input-YECXNM53.js → input-G7S4OLSN.js} +2 -2
  69. package/assets/dev-host/chunks/{input-group-GFKXSZM7.js → input-group-54JRMLWQ.js} +2 -2
  70. package/assets/dev-host/chunks/{kbd-V25ZMVCM.js → kbd-TKMXF542.js} +2 -2
  71. package/assets/dev-host/chunks/label-YIVRPKQJ.js +2 -0
  72. package/assets/dev-host/chunks/{label-value-6Z6ATP55.js → label-value-V7QDIDAP.js} +2 -2
  73. package/assets/dev-host/chunks/{logo-AAMBHX2W.js → logo-DBA4NHQE.js} +2 -2
  74. package/assets/dev-host/chunks/{number-field-6TCQAVTR.js → number-field-FPC3YXDC.js} +2 -2
  75. package/assets/dev-host/chunks/{pill-7L57ZNRJ.js → pill-4WVEOBR4.js} +2 -2
  76. package/assets/dev-host/chunks/{popover-3P6YNKH3.js → popover-GQD2U5SP.js} +2 -2
  77. package/assets/dev-host/chunks/{progress-RBCJRVM7.js → progress-TITSWD2A.js} +2 -2
  78. package/assets/dev-host/chunks/{radio-group-NJWXZCX3.js → radio-group-YA3OUIPB.js} +2 -2
  79. package/assets/dev-host/chunks/{resizable-XF4P6OKR.js → resizable-XQKUCHIS.js} +2 -2
  80. package/assets/dev-host/chunks/rich-text-2RYBPVRF.js +2 -0
  81. package/assets/dev-host/chunks/{rich-text-editor-T6KWD4P3.js → rich-text-editor-IX7RIMLI.js} +2 -2
  82. package/assets/dev-host/chunks/{scroll-row-LMI7JCFR.js → scroll-row-MZZQZYLM.js} +2 -2
  83. package/assets/dev-host/chunks/{select-F3MZWTTS.js → select-5U37ZHLQ.js} +2 -2
  84. package/assets/dev-host/chunks/separator-JATMMEKS.js +2 -0
  85. package/assets/dev-host/chunks/{sheet-EXRT4MFB.js → sheet-KTVNRYAO.js} +2 -2
  86. package/assets/dev-host/chunks/{side-panel-IBHLEANN.js → side-panel-2UVNFRIF.js} +2 -2
  87. package/assets/dev-host/chunks/{sidebar-VKQMQMF2.js → sidebar-GR4A2LDD.js} +2 -2
  88. package/assets/dev-host/chunks/{skeleton-KIRVQ4EO.js → skeleton-XE2TGBGQ.js} +2 -2
  89. package/assets/dev-host/chunks/{slider-XKYDL5MR.js → slider-BGGGQLSH.js} +2 -2
  90. package/assets/dev-host/chunks/{split-button-WP6LALDS.js → split-button-KLVGWHNN.js} +2 -2
  91. package/assets/dev-host/chunks/{stepper-KR6PXZHW.js → stepper-AY3NGEDC.js} +2 -2
  92. package/assets/dev-host/chunks/{switch-P6NJELJJ.js → switch-A2VSCLHA.js} +2 -2
  93. package/assets/dev-host/chunks/{tabs-PFPRJNVZ.js → tabs-2IO6EIED.js} +2 -2
  94. package/assets/dev-host/chunks/textarea-YQH2OPGH.js +2 -0
  95. package/assets/dev-host/chunks/{toggle-group-PS7JN2JM.js → toggle-group-3SDBWJ2G.js} +2 -2
  96. package/assets/dev-host/chunks/{tooltip-S4RBC3O4.js → tooltip-4QJ2SWCS.js} +2 -2
  97. package/assets/dev-host/chunks/{tree-NQF6ZJLH.js → tree-CFIKTPFC.js} +2 -2
  98. package/assets/dev-host/kit-candidates.json +1 -1
  99. package/assets/dev-host/kit-manifest.json +1 -1
  100. package/assets/dev-host/stage.js +54 -0
  101. package/assets/forge-app/app/assets/{_forge-shiki-langs-DaJjT17w.js → _forge-shiki-langs-nxHsAEiY.js} +1 -1
  102. package/assets/forge-app/app/assets/{appendItems-CWJJlOE7.js → appendItems-CLsiMCGq.js} +1 -1
  103. package/assets/forge-app/app/assets/{core-Dl2d1S-D.js → core-DEkUYqk0.js} +1 -1
  104. package/assets/forge-app/app/assets/{diff-view-Chujmqzi.js → diff-view-ctlXj2p5.js} +1 -1
  105. package/assets/forge-app/app/assets/{file-panel-le_M5nHe.js → file-panel-BnUdO2N6.js} +1 -1
  106. package/assets/forge-app/app/assets/{highlights-BxaWC1ve.js → highlights-CEbVTJAm.js} +1 -1
  107. package/assets/forge-app/app/assets/index-DYFQser1.js +291 -0
  108. package/assets/forge-app/app/assets/index-Ddi87x2p.css +1 -0
  109. package/assets/forge-app/app/assets/{loader-BMv9OYvr.js → loader-V5V4Ad0d.js} +1 -1
  110. package/assets/forge-app/app/assets/{shiki-CoRI3zWj.js → shiki-B5GY8Ub_.js} +2 -2
  111. package/assets/forge-app/app/assets/{stream-tokenizer-BMtK_3oz.js → stream-tokenizer-CZZoarTM.js} +1 -1
  112. package/assets/forge-app/app/assets/{terminal-view-D3CiLjfu.js → terminal-view-BR9EXBM5.js} +1 -1
  113. package/assets/forge-app/app/assets/{themes-CLX9vH7e.js → themes-BMbfM7BC.js} +2 -2
  114. package/assets/forge-app/app/assets/{useNextRenderData-dgMkjxGZ.js → useNextRenderData-ICppXFTX.js} +1 -1
  115. package/assets/forge-app/app/index.html +2 -2
  116. package/assets/forge-app/server.mjs +283 -34
  117. package/dist/cli.mjs +1906 -718
  118. package/package.json +1 -1
  119. package/assets/dev-host/chunks/button-4JMBKYN4.js +0 -2
  120. package/assets/dev-host/chunks/calendar-XXLCAUPG.js +0 -2
  121. package/assets/dev-host/chunks/code-editor-2JYERJLS.js +0 -2
  122. package/assets/dev-host/chunks/label-LJT4V2CT.js +0 -2
  123. package/assets/dev-host/chunks/rich-text-7OMYZ564.js +0 -2
  124. package/assets/dev-host/chunks/separator-JRJYKM4Z.js +0 -2
  125. package/assets/dev-host/chunks/textarea-2JXA5XWS.js +0 -2
  126. package/assets/forge-app/app/assets/index-BwYJlfwT.css +0 -1
  127. package/assets/forge-app/app/assets/index-UP3KtgHV.js +0 -291
  128. /package/assets/dev-host/chunks/{chunk-OXJ6LWKI.js.LEGAL.txt → chunk-HCQR5YME.js.LEGAL.txt} +0 -0
@@ -1,222 +1,6 @@
1
- import{a as hL,b as gL,c as yL,e as LL,f as Zw,g as xL}from"./chunks/chunk-AVSRGCSF.js";import{a as jw,d as Yw,g as Qw}from"./chunks/chunk-M7A47ZSM.js";import{f as Xw}from"./chunks/chunk-GX72R347.js";import"./chunks/chunk-K7LVVFGH.js";import{b as Fw,c as Vw,d as Gw}from"./chunks/chunk-BB4IX5QA.js";import"./chunks/chunk-OW6AVFQA.js";import{d as mL}from"./chunks/chunk-PQMY72VV.js";import{b as _w}from"./chunks/chunk-IWEJRU22.js";import"./chunks/chunk-F5MKIWPQ.js";import"./chunks/chunk-WT34MBTN.js";import"./chunks/chunk-LTVKSGLG.js";import"./chunks/chunk-TIJLEKZ2.js";import"./chunks/chunk-TQPXDAVH.js";import"./chunks/chunk-33RMFA4P.js";import"./chunks/chunk-UUJ5X322.js";import"./chunks/chunk-Z76KXEPD.js";import"./chunks/chunk-H6TI5TWN.js";import"./chunks/chunk-IAEAQCYR.js";import{Ga as zw,Ha as Tp,Ia as Rp,Ja as Pw,Ka as Nw,Ma as Dp,a as Jt,b as se,c as ju,d as Yu,e as $t,f as Qu,g as Aw,h as Tw,i as Rw,j as Dw,k as Ew,l as Mw,m as kw,n as Ye,o as Ve,p as wo,q as Zu,r as na,s as bd,t as on,u as wp,v as Ap,w as bl}from"./chunks/chunk-OXJ6LWKI.js";import"./chunks/chunk-B4MRCKT4.js";import"./chunks/chunk-RCNX6LVJ.js";import"./chunks/chunk-F353PAEY.js";import"./chunks/chunk-QFN6XL4O.js";import"./chunks/chunk-7OCTAHT6.js";import"./chunks/chunk-URJZKT45.js";import"./chunks/chunk-E75HEEMN.js";import{T as Ip,c as ww}from"./chunks/chunk-VSM3ZOBU.js";import"./chunks/chunk-CJ5CECQT.js";import"./chunks/chunk-R5KQ2GRA.js";import"./chunks/chunk-FTWKUXER.js";import"./chunks/chunk-AAL6V4Y3.js";import"./chunks/chunk-CWDPAB6V.js";import"./chunks/chunk-CLVPTZ4G.js";import"./chunks/chunk-5EK7QOB6.js";import"./chunks/chunk-LYT7LQS3.js";import{Z as Bw,db as Hw,ma as Uw,t as Ow,ya as qw}from"./chunks/chunk-IQ2XSDFU.js";import"./chunks/chunk-XIXCIQKJ.js";import"./chunks/chunk-EGZKG2B2.js";import"./chunks/chunk-2L7NK6SJ.js";import"./chunks/chunk-DR47HKIK.js";import"./chunks/chunk-MQ67DRDE.js";import{a as Xu}from"./chunks/chunk-UH726PMV.js";import"./chunks/chunk-SFI7YWVR.js";import"./chunks/chunk-NZ73KS2Y.js";import{a as _t}from"./chunks/chunk-CT4EH2K2.js";import"./chunks/chunk-JIAVZ3V7.js";import"./chunks/chunk-7TG23VIV.js";import"./chunks/chunk-SVQCDOZ3.js";import{a as Zt}from"./chunks/chunk-IJQ26FTX.js";import{a as Cd,c as he}from"./chunks/chunk-KVMUXFPB.js";var Jw=Cd(pt=>{"use strict";(function(){function r(){if(ve=!1,Z){var N=pt.unstable_now();V=N;var G=!0;try{e:{ne=!1,fe&&(fe=!1,He(ge),ge=-1),F=!0;var X=Y;try{t:{for(h(N),B=d(O);B!==null&&!(B.expirationTime>N&&y());){var oe=B.callback;if(typeof oe=="function"){B.callback=null,Y=B.priorityLevel;var K=oe(B.expirationTime<=N);if(N=pt.unstable_now(),typeof K=="function"){B.callback=K,h(N),G=!0;break t}B===d(O)&&c(O),h(N)}else c(O);B=d(O)}if(B!==null)G=!0;else{var ma=d(q);ma!==null&&S(L,ma.startTime-N),G=!1}}break e}finally{B=null,Y=X,F=!1}G=void 0}}finally{G?ke():Z=!1}}}function s(N,G){var X=N.length;N.push(G);e:for(;0<X;){var oe=X-1>>>1,K=N[oe];if(0<m(K,G))N[oe]=G,N[X]=K,X=oe;else break e}}function d(N){return N.length===0?null:N[0]}function c(N){if(N.length===0)return null;var G=N[0],X=N.pop();if(X!==G){N[0]=X;e:for(var oe=0,K=N.length,ma=K>>>1;oe<ma;){var J=2*(oe+1)-1,$=N[J],le=J+1,Q=N[le];if(0>m($,X))le<K&&0>m(Q,$)?(N[oe]=Q,N[le]=X,oe=le):(N[oe]=$,N[J]=X,oe=J);else if(le<K&&0>m(Q,X))N[oe]=Q,N[le]=X,oe=le;else break e}}return G}function m(N,G){var X=N.sortIndex-G.sortIndex;return X!==0?X:N.id-G.id}function h(N){for(var G=d(q);G!==null;){if(G.callback===null)c(q);else if(G.startTime<=N)c(q),G.sortIndex=G.expirationTime,s(O,G);else break;G=d(q)}}function L(N){if(fe=!1,h(N),!ne)if(d(O)!==null)ne=!0,Z||(Z=!0,ke());else{var G=d(q);G!==null&&S(L,G.startTime-N)}}function y(){return ve?!0:!(pt.unstable_now()-V<nt)}function S(N,G){ge=Me(function(){N(pt.unstable_now())},G)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),pt.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;pt.unstable_now=function(){return A.now()}}else{var k=Date,C=k.now();pt.unstable_now=function(){return k.now()-C}}var O=[],q=[],T=1,B=null,Y=3,F=!1,ne=!1,fe=!1,ve=!1,Me=typeof setTimeout=="function"?setTimeout:null,He=typeof clearTimeout=="function"?clearTimeout:null,Ce=typeof setImmediate<"u"?setImmediate:null,Z=!1,ge=-1,nt=5,V=-1;if(typeof Ce=="function")var ke=function(){Ce(r)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Et=we.port2;we.port1.onmessage=r,ke=function(){Et.postMessage(null)}}else ke=function(){Me(r,0)};pt.unstable_IdlePriority=5,pt.unstable_ImmediatePriority=1,pt.unstable_LowPriority=4,pt.unstable_NormalPriority=3,pt.unstable_Profiling=null,pt.unstable_UserBlockingPriority=2,pt.unstable_cancelCallback=function(N){N.callback=null},pt.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<N?Math.floor(1e3/N):5},pt.unstable_getCurrentPriorityLevel=function(){return Y},pt.unstable_next=function(N){switch(Y){case 1:case 2:case 3:var G=3;break;default:G=Y}var X=Y;Y=G;try{return N()}finally{Y=X}},pt.unstable_requestPaint=function(){ve=!0},pt.unstable_runWithPriority=function(N,G){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var X=Y;Y=N;try{return G()}finally{Y=X}},pt.unstable_scheduleCallback=function(N,G,X){var oe=pt.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?oe+X:oe):X=oe,N){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=X+K,N={id:T++,callback:G,priorityLevel:N,startTime:X,expirationTime:K,sortIndex:-1},X>oe?(N.sortIndex=X,s(q,N),d(O)===null&&N===d(q)&&(fe?(He(ge),ge=-1):fe=!0,S(L,X-oe))):(N.sortIndex=K,s(O,N),ne||F||(ne=!0,Z||(Z=!0,ke()))),N},pt.unstable_shouldYield=y,pt.unstable_wrapCallback=function(N){var G=Y;return function(){var X=Y;Y=G;try{return N.apply(this,arguments)}finally{Y=X}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Kw=Cd((rk,$w)=>{"use strict";$w.exports=Jw()});var Ww=Cd(Ep=>{"use strict";(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function s(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=zt(e)?e.slice():Le({},e);return n[l]=s(e[l],t,a+1,o),n}function d(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=zt(e)?e.slice():Le({},e);return o+1===t.length?(n[a[o]]=n[l],zt(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function m(e,t,a){var o=t[a],l=zt(e)?e.slice():Le({},e);return a+1===t.length?(zt(l)?l.splice(o,1):delete l[o],l):(l[o]=m(e[o],t,a+1),l)}function h(){return!1}function L(){return null}function y(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function A(){}function k(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function O(e,t,a,o){return new BT(e,t,a,o)}function q(e,t){e.context===En&&(Ag(e.current,2,t,e,null,null),Tr())}function T(e,t){if(Gl!==null){var a=t.staleFamilies;t=t.updatedFamilies,pi(),nS(e.current,t,a),Tr()}}function B(e){Gl=e}function Y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function F(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function ne(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 fe(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 ve(e){if(F(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Me(e){var t=e.alternate;if(!t){if(t=F(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return ve(l),e;if(n===o)return ve(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var u=!1,i=l.child;i;){if(i===a){u=!0,a=l,o=n;break}if(i===o){u=!0,o=l,a=n;break}i=i.sibling}if(!u){for(i=n.child;i;){if(i===a){u=!0,a=n,o=l;break}if(i===o){u=!0,o=n,a=l;break}i=i.sibling}if(!u)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function He(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=He(e),t!==null)return t;e=e.sibling}return null}function Ce(e,t,a,o,l){Z(e.child,!1,t,a,o,l)}function Z(e,t,a,o,l,n){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,l,n)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Z(e.child,t,a,o,l,n))return!0;e=e.sibling}return!1}function ge(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 nt(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 V(e){var t=[null,null],a=ge(e);return a===null||ke(t,e,a.child,{foundSelf:!1}),t}function ke(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&ke(e,t,a.child,o))return!0;a=a.sibling}return!1}function we(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error("Expected to find a host node. This is a bug in React.")}}function Et(e,t,a){return e===a?!0:e===t?(Br=e,!0):!1}function N(e,t,a){return e===a?(Og=e,!1):e===t?(Og!==null&&(Br=e),!0):!1}function G(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 X(e,t,a){for(var o=0,l=e;l;l=a(l))o++;l=0;for(var n=t;n;n=a(n))l++;for(;0<o-l;)e=a(e),o--;for(;0<l-o;)t=a(t),l--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}function oe(e){return e===null||typeof e!="object"?null:(e=HC&&e[HC]||e["@@iterator"],typeof e=="function"?e:null)}function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ED?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qr:return"Fragment";case Bg:return"Profiler";case cf:return"StrictMode";case qg:return"Suspense";case Hg:return"SuspenseList";case zg:return"Activity";case Pg:return"ViewTransition"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Ur:return"Portal";case Bo:return e.displayName||"Context";case Ug:return(e._context.displayName||"Context")+".Consumer";case ff:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pf:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case Ba:t=e._payload,e=e._init;try{return K(e(t))}catch{}}return null}function ma(e){return typeof e.tag=="number"?J(e):typeof e.name=="string"?e.name:null}function J(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(t);case 8:return t===cf?"StrictMode":"Mode";case 22:if(e.return!==null)return J(e.return);break;case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 30:return"ViewTransition";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return J(e.return)}return null}function $(e){return{current:e}}function le(e,t){0>Nl?console.error("Unexpected pop."):(t!==_g[Nl]&&console.error("Unexpected Fiber popped."),e.current=Ng[Nl],Ng[Nl]=null,_g[Nl]=null,Nl--)}function Q(e,t,a){Nl++,Ng[Nl]=e.current,_g[Nl]=a,e.current=t}function Oe(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Be(e,t){Q(In,t,e),Q(wi,e,e),Q(bn,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?jv(t):en;break;default:if(a=t.tagName,t=t.namespaceURI)t=jv(t),t=Yv(t,a);else switch(a){case"svg":t=Ls;break;case"math":t=yp;break;default:t=en}}a=a.toLowerCase(),a=Rx(null,a),a={context:t,ancestorInfo:a},le(bn,e),Q(bn,a,e)}function ut(e){le(bn,e),le(wi,e),le(In,e)}function Lt(){return Oe(bn.current)}function qe(e){var t=e.memoizedState;t!==null&&(Ss._currentValue=t.memoizedState,Q(mf,e,e)),t=Oe(bn.current);var a=e.type,o=Yv(t.context,a);a=Rx(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Q(wi,e,e),Q(bn,o,e))}function Ea(e){wi.current===e&&(le(bn,e),le(wi,e)),mf.current===e&&(le(mf,e),Ss._currentValue=Gu)}function Xo(){}function $n(){if(Ai===0){zC=console.log,PC=console.info,NC=console.warn,_C=console.error,FC=console.group,VC=console.groupCollapsed,GC=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Xo,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ai++}function Kn(){if(Ai--,Ai===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Le({},e,{value:zC}),info:Le({},e,{value:PC}),warn:Le({},e,{value:NC}),error:Le({},e,{value:_C}),group:Le({},e,{value:FC}),groupCollapsed:Le({},e,{value:VC}),groupEnd:Le({},e,{value:GC})})}0>Ai&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Wn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
2
- `)&&(e=e.slice(29)),t=e.indexOf(`
3
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
4
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Kt(e){if(Fg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Fg=t&&t[1]||"",XC=-1<a.stack.indexOf(`
5
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
6
- `+Fg+e+XC}function or(e,t){if(!e||Vg)return"";var a=Gg.get(e);if(a!==void 0)return a;Vg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=M.H,M.H=null,$n();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(j){var R=j}Reflect.construct(e,[],b)}else{try{b.call()}catch(j){R=j}b=!1;try{var U=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),b=!0,new e}finally{b&&(U!==void 0?Object.defineProperty(e.prototype,"props",U):delete e.prototype.props)}}}else{try{throw Error()}catch(j){R=j}(b=e())&&typeof b.catch=="function"&&b.catch(function(){})}}catch(j){if(j&&R&&typeof j.stack=="string")return[j.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),i=u[0],f=u[1];if(i&&f){var p=i.split(`
7
- `),g=f.split(`
8
- `);for(u=n=0;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;for(;u<g.length&&!g[u].includes("DetermineComponentFrameRoot");)u++;if(n===p.length||u===g.length)for(n=p.length-1,u=g.length-1;1<=n&&0<=u&&p[n]!==g[u];)u--;for(;1<=n&&0<=u;n--,u--)if(p[n]!==g[u]){if(n!==1||u!==1)do if(n--,u--,0>u||p[n]!==g[u]){var I=`
9
- `+p[n].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&Gg.set(e,I),I}while(1<=n&&0<=u);break}}}finally{Vg=!1,M.H=o,Kn(),Error.prepareStackTrace=a}return p=(p=e?e.displayName||e.name:"")?Kt(p):"",typeof e=="function"&&Gg.set(e,p),p}function eu(e,t){switch(e.tag){case 26:case 27:case 5:return Kt(e.type);case 16:return Kt("Lazy");case 13:return e.child!==t&&t!==null?Kt("Suspense Fallback"):Kt("Suspense");case 19:return Kt("SuspenseList");case 0:case 15:return or(e.type,!1);case 11:return or(e.type.render,!1);case 1:return or(e.type,!0);case 31:return Kt("Activity");case 30:return Kt("ViewTransition");default:return""}}function qs(e){try{var t="",a=null;do{t+=eu(e,a);var o=e._debugInfo;if(o)for(var l=o.length-1;0<=l;l--){var n=o[l];if(typeof n.name=="string"){var u=t;e:{var i=n.name,f=n.env,p=n.debugLocation;if(p!=null){var g=Wn(p),I=g.lastIndexOf(`
10
- `),b=I===-1?g:g.slice(I+1);if(b.indexOf(i)!==-1){var R=`
11
- `+b;break e}}R=Kt(i+(f?" ["+f+"]":""))}t=u+R}}a=e,e=e.return}while(e);return t}catch(U){return`
12
- Error generating stack: `+U.message+`
13
- `+U.stack}}function so(e){return(e=e?e.displayName||e.name:"")?Kt(e):""}function lr(){if(Ka===null)return null;var e=Ka._debugOwner;return e!=null?ma(e):null}function sm(){if(Ka===null)return"";var e=Ka;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Kt(e.type);break;case 13:t+=Kt("Suspense");break;case 19:t+=Kt("SuspenseList");break;case 31:t+=Kt("Activity");break;case 30:t+=Kt("ViewTransition");break;case 0:case 15:case 1:e._debugOwner||t!==""||(t+=so(e.type));break;case 11:e._debugOwner||t!==""||(t+=so(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var l=Wn(o);l!==""&&(t+=`
14
- `+l)}}else if(e.debugStack!=null){var n=e.debugStack;(e=e.owner)&&n&&(t+=`
15
- `+Wn(n))}else break;var u=t}catch(i){u=`
16
- Error generating stack: `+i.message+`
17
- `+i.stack}return u}function P(e,t,a,o,l,n,u){var i=Ka;nr(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,u)):t(a,o,l,n,u)}finally{nr(i)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function nr(e){M.getCurrentStack=e===null?null:sm,il=!1,Ka=e}function Ro(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ur(e){try{return tu(e),!1}catch{return!0}}function tu(e){return""+e}function Pe(e,t){if(ur(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ro(e)),tu(e)}function Hs(e,t){if(ur(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ro(e)),tu(e)}function rr(e){if(ur(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ro(e)),tu(e)}function zs(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{zr=t.inject(e),ia=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function Ne(e){if(typeof HD=="function"&&zD(e),ia&&typeof ia.setStrictMode=="function")try{ia.setStrictMode(zr,e)}catch(t){dl||(dl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Qd(e){return e>>>=0,e===0?32:31-(PD(e)/ND|0)|0}function Ma(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function sr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var i=o&134217727;return i!==0?(o=i&~n,o!==0?l=Ma(o):(u&=i,u!==0?l=Ma(u):a||(a=i&~e,a!==0&&(l=Ma(a))))):(i=o&~n,i!==0?l=Ma(i):u!==0?l=Ma(u):a||(a=o&~e,a!==0&&(l=Ma(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function au(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ps(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Sa(a),l=1<<o;t|=e[o],a&=~l}return t}function Zd(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function ka(){var e=yf;return yf<<=1,(yf&62914560)===0&&(yf=4194304),e}function Ns(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Dl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jo(e,t,a,o,l,n){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var i=e.entanglements,f=e.expirationTimes,p=e.hiddenUpdates;for(a=u&~a;0<a;){var g=31-Sa(a),I=1<<g;i[g]=0,f[g]=-1;var b=p[g];if(b!==null)for(p[g]=null,g=0;g<b.length;g++){var R=b[g];R!==null&&(R.lane&=-536870913)}a&=~I}o!==0&&_s(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(u&~t))}function _s(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Sa(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Jd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Sa(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function Fs(e,t){var a=t&-t;return a=(a&42)!==0?1:ir(a),(a&(e.suspendedLanes|t))!==0?0:a}function ir(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 ce(e,t,a){if(cl)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Sa(a),l=1<<o;e[o].add(t),a&=~l}}function bt(e,t){if(cl)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-Sa(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var u=n.alternate;u!==null&&o.has(u)||o.add(n)}),l.clear()),t&=~e}}function Mt(e){return e&=-e,va!==0&&va<e?Uo!==0&&Uo<e?(e&134217727)!==0?fl:Lf:Uo:va}function Ft(){var e=Fe.p;return e!==0?e:(e=window.event,e===void 0?fl:EC(e.type))}function un(e,t){var a=Fe.p;try{return Fe.p=e,t()}finally{Fe.p=a}}function xt(e){delete e[aa],delete e[Ca],delete e[_D],delete e[FD]}function kt(e){var t;if(t=e[aa])return t;for(var a=e.parentNode;a;){if(t=a[wn]||a[aa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=fC(e);e!==null;){if(a=e[aa])return a;e=fC(e)}return t}e=a,a=e.parentNode}return null}function It(e){if(e=e[aa]||e[wn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function El(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Wt(e){var t=e[YC];return t||(t=e[YC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function St(e){e[Ti]=!0}function cx(e){e[xf]=void 0}function ou(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){Su[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Su[e]=t;var a=e.toLowerCase();for(Zg[a]=e,e==="onDoubleClick"&&(Zg.ondblclick=e),e=0;e<t.length;e++)QC.add(t[e])}function cr(e,t){VD[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function im(e){return mo.call(JC,e)?!0:mo.call(ZC,e)?!1:GD.test(e)?JC[e]=!0:(ZC[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function fx(){var e=ze;return ze=!1,e}function px(e,t,a){if(im(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=t.toLowerCase()==="nonce"?e.nonce:e.getAttribute(t),e===""&&a===!0?!0:(Pe(a,t),e===""+a?a:e)}}function $d(e,t,a){if(im(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}Pe(a,t),e.setAttribute(t,a)}}function Kd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Pe(a,t),e.setAttribute(t,a)}}function Ml(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}Pe(o,a),e.setAttributeNS(t,a,o)}}function Va(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return rr(e),e;default:return""}}function mx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){rr(u),a=""+u,n.call(this,u)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(u){rr(u),a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dm(e){if(!e._valueTracker){var t=mx(e)?"checked":"value";e._valueTracker=pT(e,t,""+e[t])}}function hx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=mx(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function io(e){return e.replace(XD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gx(e,t){t.checked===void 0||t.defaultChecked===void 0||KC||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",lr()||"A component",t.type),KC=!0),t.value===void 0||t.defaultValue===void 0||$C||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",lr()||"A component",t.type),$C=!0)}function cm(e,t,a,o,l,n,u,i){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?(Pe(u,"type"),e.type=u):e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Va(t)):e.value!==""+Va(t)&&(e.value=""+Va(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?u==="number"&&e.value==t?fm(e,Va(e.value)):fm(e,Va(t)):a!=null?fm(e,Va(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?(Pe(i,"name"),e.name=""+Va(i)):e.removeAttribute("name")}function yx(e,t,a,o,l,n,u,i){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(Pe(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){dm(e);return}a=a!=null?""+Va(a):"",t=t!=null?""+Va(t):a,i||t===e.value||(e.value=t),e.defaultValue=t}o=o??l,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(Pe(u,"name"),e.name=u),dm(e)}function fm(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Lx(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?kg.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||eb||(eb=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||tb||(tb=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||WC||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),WC=!0)}function xx(){var e=lr();return e?`
18
-
19
- Check the render method of \``+e+"`.":""}function fr(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{for(a=""+Va(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Sx(e,t){for(e=0;e<ob.length;e++){var a=ob[e];if(t[a]!=null){var o=zt(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,xx()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,xx())}}t.value===void 0||t.defaultValue===void 0||ab||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ab=!0)}function vx(e,t){t.value===void 0||t.defaultValue===void 0||lb||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",lr()||"A component"),lb=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Cx(e,t,a){if(t!=null&&(t=""+Va(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Va(a):""}function bx(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(zt(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Va(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),dm(e)}function Ix(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ix(e.children[0],t):e}function Ga(e){return" "+" ".repeat(e)}function pr(e){return"+ "+" ".repeat(e)}function lu(e){return"- "+" ".repeat(e)}function wx(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Vs(e,t){return nb.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Wd(e,t,a){var o=120-2*a;if(t===null)return pr(a)+Vs(e,o)+`
20
- `;if(typeof t=="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),pr(a)+Vs(e,o)+`
21
- `+lu(a)+Vs(t,o)+`
22
- `}return Ga(a)+Vs(e,o)+`
23
- `}function pm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Gs(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(zt(e))return"[...]";if(e.$$typeof===sl)return(t=K(e.type))?"<"+t+">":"<...>";var a=pm(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=Gs(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function mr(e,t){return typeof e!="string"||nb.test(e)?"{"+Gs(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function mm(e,t,a){var o=120-a.length-e.length,l=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var u=mr(t[n],120-a.length-n.length-1);o-=n.length+u.length+2,l.push(n+"="+u)}return l.length===0?a+"<"+e+`>
24
- `:0<o?a+"<"+e+" "+l.join(" ")+`>
25
- `:a+"<"+e+`
26
- `+a+" "+l.join(`
27
- `+a+" ")+`
28
- `+a+`>
29
- `}function mT(e,t,a){var o="",l=Le({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete l[n];var u=120-2*a-n.length-2,i=Gs(e[n],u);t.hasOwnProperty(n)?(u=Gs(t[n],u),o+=pr(a)+n+": "+i+`
30
- `,o+=lu(a)+n+": "+u+`
31
- `):o+=pr(a)+n+": "+i+`
32
- `}for(var f in l)l.hasOwnProperty(f)&&(e=Gs(l[f],120-2*a-f.length-2),o+=lu(a)+f+": "+e+`
33
- `);return o}function hT(e,t,a,o){var l="",n=new Map;for(p in a)a.hasOwnProperty(p)&&n.set(p.toLowerCase(),p);if(n.size===1&&n.has("children"))l+=mm(e,t,Ga(o));else{for(var u in t)if(t.hasOwnProperty(u)&&u!=="children"){var i=120-2*(o+1)-u.length-1,f=n.get(u.toLowerCase());if(f!==void 0){n.delete(u.toLowerCase());var p=t[u];f=a[f];var g=mr(p,i);i=mr(f,i),typeof p=="object"&&p!==null&&typeof f=="object"&&f!==null&&pm(p)==="Object"&&pm(f)==="Object"&&(2<Object.keys(p).length||2<Object.keys(f).length||-1<g.indexOf("...")||-1<i.indexOf("..."))?l+=Ga(o+1)+u+`={{
34
- `+mT(p,f,o+2)+Ga(o+1)+`}}
35
- `:(l+=pr(o+1)+u+"="+g+`
36
- `,l+=lu(o+1)+u+"="+i+`
37
- `)}else l+=Ga(o+1)+u+"="+mr(t[u],i)+`
38
- `}n.forEach(function(I){if(I!=="children"){var b=120-2*(o+1)-I.length-1;l+=lu(o+1)+I+"="+mr(a[I],b)+`
39
- `}}),l=l===""?Ga(o)+"<"+e+`>
40
- `:Ga(o)+"<"+e+`
41
- `+l+Ga(o)+`>
42
- `}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(n="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(n=""+t),l+=Wd(n,""+e,o+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(l=e==null?l+Wd(""+t,null,o+1):l+Wd(""+t,void 0,o+1)),l}function Ax(e,t){var a=wx(e);if(a===null){for(a="",e=e.child;e;)a+=Ax(e,t),e=e.sibling;return a}return Ga(t)+"<"+a+`>
43
- `}function hm(e,t){var a=Ix(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Ga(t)+`...
44
- `+hm(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var l=0;l<o.length;l++){var n=o[l].name;typeof n=="string"&&(a+=Ga(t)+"<"+n+`>
45
- `,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Wd(l,e.serverProps,t),t++;else if(n=wx(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var u=120-2*o-n.length-2,i="";for(p in l)if(l.hasOwnProperty(p)&&p!=="children"){var f=mr(l[p],15);if(u-=p.length+f.length+2,0>u){i+=" ...";break}i+=" "+p+"="+f}o=Ga(o)+"<"+n+i+`>
46
- `,t++}else e.serverProps===null?(o=mm(n,l,pr(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=hT(n,l,e.serverProps,t),t++);var p="";for(l=e.fiber.child,n=0;l&&n<e.children.length;)u=e.children[n],u.fiber===l?(p+=hm(u,t),n++):p+=Ax(l,t),l=l.sibling;for(l&&0<e.children.length&&(p+=Ga(t)+`...
47
- `),l=e.serverTail,e.serverProps===null&&t--,e=0;e<l.length;e++)n=l[e],p=typeof n=="string"?p+(lu(t)+Vs(n,120-2*t)+`
48
- `):p+mm(n.type,n.props,lu(t));return a+o+p}function gm(e){try{return`
49
-
50
- `+hm(e,0)}catch{return""}}function Tx(e,t,a){for(var o=t,l=null,n=0;o;)o===e&&(n=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return l!==null?gm(l).replaceAll(/^[+-]/gm,">"):""}function Rx(e,t){var a=Le({},e||rb),o={tag:t};return ub.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),YD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),jD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=o),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function Dx(e,t,a){switch(t){case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return QD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"input":return t!=="select";case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function gT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Ex(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function ym(e,t){t=t||rb;var a=t.current;if(t=(a=Dx(e,a&&a.tag,t.implicitRootScope)?null:a)?null:gT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,Sf[t])return!1;Sf[t]=!0;var l=(t=Ka)?Ex(t.return,o):null,n=t!==null&&l!==null?Tx(l,t,null):"",u="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
51
- This will cause a hydration error.%s`,u,o,a,n)):console.error(`In HTML, %s cannot be a descendant of <%s>.
52
- This will cause a hydration error.%s`,u,o,n),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||P(l,function(){console.error(`<%s> cannot contain a nested %s.
53
- See this log for the ancestor stack trace.`,o,u)})),!1}function ec(e,t,a){if(a||Dx("#text",t,!1))return!0;if(a="#text|"+t,Sf[a])return!1;Sf[a]=!0;var o=(a=Ka)?Ex(a,t):null;return a=a!==null&&o!==null?Tx(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
54
- This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
55
- This will cause a hydration error.%s`,t,a),!1}function Xs(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function yT(e){return e.replace($D,function(t,a){return a.toUpperCase()})}function Mx(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Pr.hasOwnProperty(t)&&Pr[t]||(Pr[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yT(t.replace(JD,"ms-")))):ZD.test(t)?Pr.hasOwnProperty(t)&&Pr[t]||(Pr[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!db.test(a)||$g.hasOwnProperty(a)&&$g[a]||($g[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(db,""))),typeof a=="number"&&(isNaN(a)?cb||(cb=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||fb||(fb=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||pb.has(t)?t==="float"?e.cssFloat=a:(Hs(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function kx(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=Jg[l]||[l],u=0;u<n.length;u++)o[n[u]]=l}for(var i in t)if(t.hasOwnProperty(i)&&(!a||a[i]!==t[i]))for(l=Jg[i]||[i],n=0;n<l.length;n++)o[l[n]]=i;i={};for(var f in t)for(l=Jg[f]||[f],n=0;n<l.length;n++)i[l[n]]=f;f={};for(var p in o)if(l=o[p],(n=i[p])&&l!==n&&(u=l+","+n,!f[u])){f[u]=!0,u=console;var g=t[l];u.error.call(u,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",g==null||typeof g=="boolean"||g===""?"Removing":"Updating",l,n)}}for(var I in a)!a.hasOwnProperty(I)||t!=null&&t.hasOwnProperty(I)||(I.indexOf("--")===0?e.setProperty(I,""):I==="float"?e.cssFloat="":e[I]="",ze=!0);for(var b in t)p=t[b],t.hasOwnProperty(b)&&a[b]!==p&&(Mx(e,b,p),ze=!0)}else for(o in t)t.hasOwnProperty(o)&&Mx(e,o,t[o])}function js(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}}function Ox(e){return KD.get(e)||e}function LT(e,t){if(mo.call(_r,t)&&_r[t])return!0;if(eE.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=mb.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_r[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),_r[t]=!0}if(WD.test(t)){if(e=t.toLowerCase(),e=mb.hasOwnProperty(e)?e:null,e==null)return _r[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),_r[t]=!0)}return!0}function xT(e,t){var a=[],o;for(o in t)LT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function ST(e,t,a,o){if(mo.call(ba,t)&&ba[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ba[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),ba[t]=!0;if(gb.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),ba[t]=!0}else if(gb.test(t))return tE.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ba[t]=!0;if(aE.test(t)||oE.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ba[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ba[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),ba[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ba[t]=!0;if(Cf.hasOwnProperty(l)){if(l=Cf[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),ba[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),ba[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"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":case"capture":case"download":case"inert":return!0;default:return l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),ba[t]=!0)}case"function":case"symbol":return ba[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),ba[t]=!0}}return!0}function vT(e,t,a){var o=[],l;for(l in t)ST(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Ys(e){return lE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Yo(){}function Lm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Bx(e){var t=It(e);if(t&&(e=t.stateNode)){var a=e[Ca]||null;e:switch(e=t.stateNode,t.type){case"input":if(cm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(Pe(t,"name"),a=a.querySelectorAll('input[name="'+io(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[Ca]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");cm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&hx(o)}break e;case"textarea":Cx(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&fr(e,!!a.multiple,t,!1)}}}function Ux(e,t,a){if(Kg)return e(t,a);Kg=!0;try{var o=e(t);return o}finally{if(Kg=!1,(Fr!==null||Vr!==null)&&(Tr(),Fr&&(t=Fr,e=Vr,Vr=Fr=null,Bx(t),e)))for(t=0;t<e.length;t++)Bx(e[t])}}function Qs(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Ca]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function qx(){if(bf)return bf;var e,t=ey,a=t.length,o,l="value"in An?An.value:An.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var u=a-e;for(o=1;o<=u&&t[a-o]===l[n-o];o++);return bf=l.slice(e,1<o?1-o: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 ac(){return!0}function Hx(){return!1}function ha(e){function t(a,o,l,n,u){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=u,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?ac:Hx,this.isPropagationStopped=Hx,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ac)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ac)},persist:function(){},isPersistent:ac}),t}function CT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yE[e])?!!t[e]:!1}function xm(){return CT}function zx(e,t){switch(e){case"keyup":return ME.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Sb;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Px(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function bT(e,t){switch(e){case"compositionend":return Px(t);case"keypress":return t.which!==Cb?null:(Ib=!0,bb);case"textInput":return e=t.data,e===bb&&Ib?null:e;default:return null}}function IT(e,t){if(Gr)return e==="compositionend"||!ly&&zx(e,t)?(e=qx(),bf=ey=An=null,Gr=!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 vb&&t.locale!=="ko"?null:t.data;default:return null}}function Nx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OE[e.type]:t==="textarea"}function wT(e){if(!pl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function _x(e,t,a,o){Fr?Vr?Vr.push(o):Vr=[o]:Fr=o,t=of(t,"onChange"),0<t.length&&(a=new If("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function AT(e){Ov(e,0)}function oc(e){var t=El(e);if(hx(t))return e}function Fx(e,t){if(e==="change")return t}function Vx(){Oi&&(Oi.detachEvent("onpropertychange",Gx),Bi=Oi=null)}function Gx(e){if(e.propertyName==="value"&&oc(Bi)){var t=[];_x(t,Bi,e,Lm(e)),Ux(AT,t)}}function TT(e,t,a){e==="focusin"?(Vx(),Oi=t,Bi=a,Oi.attachEvent("onpropertychange",Gx)):e==="focusout"&&Vx()}function RT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oc(Bi)}function DT(e,t){if(e==="click")return oc(t)}function ET(e,t){if(e==="input"||e==="change")return oc(t)}function MT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Zs(e,t){if(Ia(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!mo.call(t,l)||!Ia(e[l],t[l]))return!1}return!0}function Sm(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 Xx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jx(e,t){var a=Xx(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Xx(a)}}function Yx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qx(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Sm(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Sm(e.document)}return t}function vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Zx(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uy||Xr==null||Xr!==Sm(o)||(o=Xr,"selectionStart"in o&&vm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ui&&Zs(Ui,o)||(Ui=o,o=of(ny,"onSelect"),0<o.length&&(t=new If("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Xr)))}function nu(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function uu(e){if(ry[e])return ry[e];if(!jr[e])return e;var t=jr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ab)return ry[e]=t[a];return e}function Do(e,t){Mb.set(e,t),ou(t,[e])}function kl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Fo.identifierPrefix;var a=zE++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function Jx(e){if(e==null||typeof e=="string")return e;var t=null,a=ps;if(a!==null)for(var o=0;o<a.length;o++){var l=e[a[o]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function Ol(e,t){return e=Jx(e),t=Jx(t),t==null?e==="auto"?null:e:t==="auto"?null:t}function kT(e){for(var t=Af,a=0;a<e.length&&a<ho;a++){var o=e[a];if(typeof o=="object"&&o!==null)if(zt(o)&&o.length===2&&typeof o[0]=="string"){if(t!==Af&&t!==fy)return dy;t=fy}else return dy;else{if(typeof o=="function"||typeof o=="string"&&50<o.length||t!==Af&&t!==cy||typeof o=="bigint")return dy;t=cy}}return t}function Cm(e,t,a,o){if(!ArrayBuffer.isView(e)){var l=0,n;for(n in e)if(mo.call(e,n)&&n[0]!=="_"&&(l++,Eo(n,e[n],t,a,o),l>=ho)){t.push([o+"\xA0\xA0".repeat(a)+"Only "+ho+" properties are shown. React will not log more properties of this object.",""]);break}}}function lc(e){return"$$typeof"in e&&mo.call(e,"$$typeof")?e.$$typeof:void 0}function Eo(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(lc(t)===sl){var n=K(t.type)||"\u2026",u=t.key;t=t.props;var i=Object.keys(t),f=i.length;if(u==null&&f===0){t="<"+n+" />";break}if(3>o||f===1&&i[0]==="children"&&u==null){t="<"+n+" \u2026 />";break}a.push([l+"\xA0\xA0".repeat(o)+e,"<"+n]),u!==null&&Eo("key",u,a,o+1,l),e=!1,u=0;for(var p in t)if(u++,p==="children"?t.children!=null&&(!zt(t.children)||0<t.children.length)&&(e=!0):mo.call(t,p)&&p[0]!=="_"&&Eo(p,t[p],a,o+1,l),u>=ho)break;a.push(["",e?">\u2026</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),ArrayBuffer.isView(t)){t=t.length,t=typeof t=="number"?n+"("+t+")":n;break}if(n==="Array"){if(p=t.length>ho,u=kT(t),u===cy||u===Af){t=JSON.stringify(p?t.slice(0,ho).concat("\u2026"):t);break}else if(u===fy){for(a.push([l+"\xA0\xA0".repeat(o)+e,""]),e=0;e<t.length&&e<ho;e++)n=t[e],Eo(n[0],n[1],a,o+1,l);p&&Eo(ho.toString(),"\u2026",a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Eo(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Eo(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["\xA0\xA0".repeat(o)+e,"Promise"]);return}n==="Object"&&(p=Object.getPrototypeOf(t))&&typeof p.constructor=="function"&&(n=p.constructor.name),a.push([l+"\xA0\xA0".repeat(o)+e,n==="Object"?3>o?"":"\u2026":n]),3>o&&Cm(t,a,o+1,l);return}case"function":t=t.name,t=t===""||typeof t!="string"?"() => {}":t+"() {}";break;case"string":t=t===_E?"\u2026":JSON.stringify(1024<=t.length?t.slice(0,1023)+"\u2026":t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+"\xA0\xA0".repeat(o)+e,t])}function $x(e,t,a,o){var l=!0,n=0;for(i in e){if(n>ho){a.push(["Previous object has more than "+ho+" properties. React will not attempt to diff objects with too many properties.",""]),l=!1;break}i in t||(a.push([Tf+"\xA0\xA0".repeat(o)+i,"\u2026"]),l=!1),n++}n=0;for(var u in t){if(n>ho){a.push(["Next object has more than "+ho+" properties. React will not attempt to diff objects with too many properties.",""]),l=!1;break}if(u in e){var i=e[u],f=t[u];if(i!==f){if(o===0&&u==="children"){l="\xA0\xA0".repeat(o)+u,a.push([Tf+l,"\u2026"],[Rf+l,"\u2026"]),l=!1;continue}if(!(3<=o)){if(typeof i=="object"&&typeof f=="object"&&i!==null&&f!==null&&lc(i)===lc(f))if(lc(f)===sl){if(i.type===f.type&&i.key===f.key){i=K(f.type)||"\u2026",l="\xA0\xA0".repeat(o)+u,i="<"+i+" \u2026 />",a.push([Tf+l,i],[Rf+l,i]),l=!1;continue}}else{var p=Object.prototype.toString.call(i),g=Object.prototype.toString.call(f);if(p===g&&(g==="[object Object]"||g==="[object Array]")){p=[Bb+"\xA0\xA0".repeat(o)+u,g==="[object Array]"?"Array":""],a.push(p),g=a.length,$x(i,f,a,o+1)?g===a.length&&(p[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof i=="function"&&typeof f=="function"&&i.name===f.name&&i.length===f.length&&(p=Function.prototype.toString.call(i),g=Function.prototype.toString.call(f),p===g)){i=f.name===""?"() => {}":f.name+"() {}",a.push([Bb+"\xA0\xA0".repeat(o)+u,i+" Referentially unequal function closure. Consider memoization."]);continue}}Eo(u,i,a,o,Tf),Eo(u,f,a,o,Rf),l=!1}}else a.push([Rf+"\xA0\xA0".repeat(o)+u,"\u2026"]),l=!1;n++}return l}function ra(e){De=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Qo(e,t,a,o){at&&(Dn.start=t,Dn.end=a,Fl.color="warning",Fl.tooltipText=o,Fl.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Dn)):performance.measure(o,Dn),performance.clearMeasures(o))}function nc(e,t,a){Qo(e,t,a,"Reconnect")}function uc(e,t,a,o,l){var n=J(e);if(n!==null&&at){var u=e.alternate,i=e.actualDuration;if(u===null||u.child!==e.child)for(var f=e.child;f!==null;f=f.sibling)i-=f.actualDuration;i=.5>i?o?"tertiary-light":"primary-light":10>i?o?"tertiary":"primary":100>i?o?"tertiary-dark":"primary-dark":"error";var p=e.memoizedProps;o=e._debugTask,p!==null&&u!==null&&u.memoizedProps!==p?(f=[FE],p=$x(u.memoizedProps,p,f,0),1<f.length?(p&&!Rn&&(u.lanes&l)===0&&100<e.actualDuration?(Rn=!0,f[0]=VE,Fl.color="warning",Fl.tooltipText=Ub):(Fl.color=i,Fl.tooltipText=n),Fl.properties=f,Dn.start=t,Dn.end=a,e="\u200B"+n,o!=null?o.run(performance.measure.bind(performance,e,Dn)):performance.measure(e,Dn),performance.clearMeasures(e)):o!=null?o.run(console.timeStamp.bind(console,n,t,a,Ua,void 0,i)):console.timeStamp(n,t,a,Ua,void 0,i)):o!=null?o.run(console.timeStamp.bind(console,n,t,a,Ua,void 0,i)):console.timeStamp(n,t,a,Ua,void 0,i)}}function bm(e,t,a,o){if(at){var l=J(e);if(l!==null){for(var n=null,u=[],i=0;i<o.length;i++){var f=o[i];n==null&&f.source!==null&&(n=f.source._debugTask),f=f.value,u.push(["Error",typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f)])}e.key!==null&&Eo("key",e.key,u,0,""),e.memoizedProps!==null&&Cm(e.memoizedProps,u,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Ua,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:u}}},l="\u200B"+l,n?n.run(performance.measure.bind(performance,l,e)):performance.measure(l,e),performance.clearMeasures(l)}}}function Zo(e,t,a,o,l){if(l!==null){if(at){var n=J(e);if(n!==null){o=[];for(var u=0;u<l.length;u++){var i=l[u].value;o.push(["Error",typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i)])}e.key!==null&&Eo("key",e.key,o,0,""),e.memoizedProps!==null&&Cm(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Ua,tooltipText:"A lifecycle or effect errored",properties:o}}},e=e._debugTask,a="\u200B"+n,e?e.run(performance.measure.bind(performance,a,t)):performance.measure(a,t),performance.clearMeasures(a)}}}else n=J(e),n!==null&&at&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,Ua,void 0,l)):console.timeStamp(n,t,a,Ua,void 0,l))}function Kx(e,t,a,o){!at||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,De,Te,a)):console.timeStamp("Prewarm",e,t,De,Te,a))}function Wx(e,t,a,o){!at||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,De,Te,a)):console.timeStamp("Suspended",e,t,De,Te,a))}function Im(e,t,a,o){!at||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,De,Te,"error")):console.timeStamp("Errored",e,t,De,Te,"error"))}function OT(e,t,a,o){!at||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,De,Te,"secondary-light")):console.timeStamp(a,e,t,De,Te,"secondary-light"))}function eS(e,t,a,o,l){if(at&&!(t<=e)){for(var n=[],u=0;u<a.length;u++){var i=a[u].value;n.push(["Error",typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i)])}e={start:e,end:t,detail:{devtools:{color:"error",track:De,trackGroup:Te,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e),performance.clearMeasures("Errored")}}function tS(e,t,a,o,l){a!==null?eS(e,t,a,!1,l):!at||t<=e||(l?l.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,t,De,Te,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,t,De,Te,o?"error":"secondary-dark"))}function rn(e,t,a){!at||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,De,Te,"secondary-dark")):console.timeStamp("Animating",e,t,De,Te,"secondary-dark"))}function rc(){for(var e=Yr,t=py=Yr=0;t<e;){var a=go[t];go[t++]=null;var o=go[t];go[t++]=null;var l=go[t];go[t++]=null;var n=go[t];if(go[t++]=null,o!==null&&l!==null){var u=o.pending;u===null?l.next=l:(l.next=u.next,u.next=l),o.pending=l}n!==0&&aS(a,l,n)}}function sc(e,t,a,o){go[Yr++]=e,go[Yr++]=t,go[Yr++]=a,go[Yr++]=o,py|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function wm(e,t,a,o){return sc(e,t,a,o),ic(e)}function sa(e,t){return sc(e,null,null,t),ic(e)}function aS(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&qi||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-Sa(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function ic(e){if(pd>lM)throw zu=pd=0,md=rp=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");zu>nM&&(zu=0,md=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Tv(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Tv(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function hr(e){if(Gl===null)return e;var t=Gl(e);return t===void 0?e:t.current}function oS(e,t){if(Gl===null)return!1;var a=Gl,o=e.elementType;t=t.type;var l=!1,n=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(l=!0);break;case 0:(typeof t=="function"||n===Ba)&&(l=!0);break;case 11:(n===ff||n===Ba)&&(l=!0);break;case 14:case 15:(n===pf||n===Ba)&&(l=!0);break;default:return!1}return!!(l&&(e=a(o),e!==void 0&&e===a(t)))}function lS(e){Gl!==null&&typeof WeakSet=="function"&&(Qr===null&&(Qr=new WeakSet),Qr.add(e))}function nS(e,t,a){do{var o=e,l=o.alternate,n=o.child,u=o.sibling,i=o.tag,f=o.type,p=o.elementType,g=null;switch(o=null,i){case 0:case 1:g=f;break;case 15:g=f,o=p;break;case 14:o=p;break;case 11:g=f.render,o=p}if(Gl===null)throw Error("Expected resolveFamily to be set during hot reload.");var I=Gl;if(f=p=!1,g!==null&&(g=I(g),g!==void 0&&(a.has(g)?f=!0:t.has(g)&&(i===1?f=!0:p=!0))),f||o===null||(i=I(o),i!==void 0&&a.has(i)?f=!0:typeof o=="object"&&o.$$typeof===Ba&&(i=o._payload,i._status===1&&(i=I(i._result.default),i!==void 0&&a.has(i)&&(f=!0)))),Qr!==null&&(Qr.has(e)||l!==null&&Qr.has(l))&&(f=!0),f&&(e._debugNeedsRemount=!0),(f||p)&&(l=sa(e,2),l!==null&&ht(l,e,2)),n===null||f||nS(n,t,a),u===null)break;e=u}while(!0)}function BT(e,t,a,o){this.tag=e,this.key=a,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hb||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bl(e,t){var a=e.alternate;switch(a===null?(a=O(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:case 14:case 1:case 11:a.type=hr(e.type)}return a}function uS(e,t){e.flags&=1206910978;var a=e.alternate;return a===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Tm(e,t,a,o,l,n){var u=0,i=hr(e);if(typeof i=="function")Am(i)&&(u=1);else if(typeof i=="string")u=Lt(),u=mD(e,a,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case zg:return t=O(31,a,t,l),t.elementType=zg,t.lanes=n,t;case qr:return ru(a.children,l,n,t);case cf:u=8,l|=da,l|=qo;break;case Bg:return e=a,o=l,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=O(12,e,t,o|xe),t.elementType=Bg,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case qg:return t=O(13,a,t,l),t.elementType=qg,t.lanes=n,t;case Hg:return t=O(19,a,t,l),t.elementType=Hg,t.lanes=n,t;case TD:case Pg:return e=l|qb,t=O(30,a,t,e),t.elementType=Pg,t.lanes=n,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Bo:u=10;break e;case Ug:u=9;break e;case ff:u=11;break e;case pf:u=14;break e;case Ba:u=16,i=null;break e}a="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?i="null":zt(e)?i="array":e!==void 0&&e.$$typeof===sl?(i="<"+(K(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,(u=o?ma(o):null)&&(a+=`
56
-
57
- Check the render method of \``+u+"`."),u=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(i+"."+a)),i=null}return t=O(u,a,t,l),t.elementType=e,t.type=i,t.lanes=n,t._debugOwner=o,t}function dc(e,t,a){return t=Tm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ru(e,t,a,o){return e=O(7,e,o,t),e.lanes=a,e}function Rm(e,t,a){return e=O(6,e,null,t),e.lanes=a,e}function rS(e){var t=O(18,null,null,ie);return t.stateNode=e,t}function Dm(e,t,a){return t=O(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xa(e,t){if(typeof e=="object"&&e!==null){var a=my.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qs(t)},my.set(e,t),t)}return{value:e,source:t,stack:qs(t)}}function Ul(e,t){sn(),Zr[Jr++]=Hi,Zr[Jr++]=Df,Df=e,Hi=t}function sS(e,t,a){sn(),yo[Lo++]=Xl,yo[Lo++]=jl,yo[Lo++]=vu,vu=e;var o=Xl;e=jl;var l=32-Sa(o)-1;o&=~(1<<l),a+=1;var n=32-Sa(t)+l;if(30<n){var u=l-l%5;n=(o&(1<<u)-1).toString(32),o>>=u,l-=u,Xl=1<<32-Sa(t)+l|a<<l|o,jl=n+e}else Xl=1<<n|a<<l|o,jl=e}function cc(e){sn(),e.return!==null&&(Ul(e,1),sS(e,1,0))}function Em(e){for(;e===Df;)Df=Zr[--Jr],Zr[Jr]=null,Hi=Zr[--Jr],Zr[Jr]=null;for(;e===vu;)vu=yo[--Lo],yo[Lo]=null,jl=yo[--Lo],yo[Lo]=null,Xl=yo[--Lo],yo[Lo]=null}function iS(){return sn(),vu!==null?{id:Xl,overflow:jl}:null}function dS(e,t){sn(),yo[Lo++]=Xl,yo[Lo++]=jl,yo[Lo++]=vu,Xl=t.id,jl=t.overflow,vu=e}function sn(){Se||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function su(e,t){if(e.return===null){if(Wa===null)Wa={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Wa.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Wa.distanceFromLeaf>t&&(Wa.distanceFromLeaf=t)}return Wa}var a=su(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function cS(){Se&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function fc(e,t){ml||(e=su(e,0),e.serverProps=null,t!==null&&(t=dC(t),e.serverTail.push(t)))}function dn(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=Wa;throw o!==null&&(Wa=null,a=gm(o)),Js(Xa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
58
-
59
- - A server/client branch \`if (typeof window !== 'undefined')\`.
60
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
61
- - Date formatting in a user's locale which doesn't match the server.
62
- - External changing data without sending a snapshot of it along with the HTML.
63
- - Invalid HTML tag nesting.
64
-
65
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
66
-
67
- https://react.dev/link/hydration-mismatch`+a),e)),hy}function fS(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[aa]=e,t[Ca]=o,dg(a,o),a){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(a=0;a<hd.length;a++)Ee(hd[a],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":cr("input",o),Ee("invalid",t),gx(t,o),yx(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Lx(t,o);break;case"select":cr("select",o),Ee("invalid",t),Sx(t,o);break;case"textarea":cr("textarea",o),Ee("invalid",t),vx(t,o),bx(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||Pv(t.textContent,a)?(o.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),o.onScroll!=null&&Ee("scroll",t),o.onScrollEnd!=null&&Ee("scrollend",t),o.onClick!=null&&(t.onclick=Yo),t=!0):t=!1,t||dn(e,!0)}function pc(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:xo=!1;return;case 27:case 3:xo=!0;return;default:Gt=Gt.return}}function gr(e){if(e!==Gt)return!1;if(!Se)return pc(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||hg(e.type,e.memoizedProps)),a=!a),a&&et){for(a=et;a;){var o=su(e,0),l=dC(a);o.serverTail.push(l),a=l.type==="Suspense"?vg(a):$a(a.nextSibling)}dn(e)}if(pc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");et=vg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");et=vg(e)}else t===27?(t=et,Cn(e.type)?(e=cL,cL=null,et=e):et=t):et=Gt?$a(e.stateNode.nextSibling):null;return!0}function iu(){et=Gt=null,ml=Se=!1}function Mm(){var e=Mn;return e!==null&&(Ta===null?Ta=e:Ta.push.apply(Ta,e),Mn=null),e}function Js(e){Mn===null?Mn=[e]:Mn.push(e)}function km(){var e=Wa;if(e!==null){Wa=null;for(var t=gm(e);0<e.children.length;)e=e.children[0];P(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
68
-
69
- - A server/client branch \`if (typeof window !== 'undefined')\`.
70
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
71
- - Date formatting in a user's locale which doesn't match the server.
72
- - External changing data without sending a snapshot of it along with the HTML.
73
- - Invalid HTML tag nesting.
74
-
75
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
76
-
77
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function mc(){$r=Ef=null,Kr=!1}function cn(e,t,a){Q(gy,t._currentValue,e),t._currentValue=a,Q(yy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Pb&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Pb}function ql(e,t){e._currentValue=gy.current;var a=yy.current;le(yy,t),e._currentRenderer=a,le(gy,t)}function hc(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Om(e,t,a,o){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var n=l.dependencies;if(n!==null){var u=l.child;n=n.firstContext;e:for(;n!==null;){var i=n;n=l;for(var f=0;f<t.length;f++)if(i.context===t[f]){n.lanes|=a,i=n.alternate,i!==null&&(i.lanes|=a),hc(n.return,a,e),o||(u=null);break e}n=i.next}}else if(l.tag===18){if(u=l.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=a,n=u.alternate,n!==null&&(n.lanes|=a),hc(u,a,e),u=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=a,u=l.alternate,u!==null&&(u.lanes|=a),hc(l.return,a,e),u=l.child,u=u!==null?u.sibling:null):u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===e){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}}function du(e,t,a,o){e=null;for(var l=t,n=!1;l!==null;){if(!n){if((l.flags&524288)!==0)n=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var u=l.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var i=l.type;Ia(l.pendingProps.value,u.value)||(e!==null?e.push(i):e=[i])}}else if(l===mf.current){if(u=l.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ss):e=[Ss])}l=l.return}return e!==null&&Om(t,e,a,o),t.flags|=262144,e!==null}function gc(e){for(e=e.firstContext;e!==null;){if(!Ia(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cu(e){Ef=e,$r=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Kr&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),pS(Ef,e)}function yc(e,t){return Ef===null&&cu(e),pS(e,t)}function pS(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},$r===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");$r=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else $r=$r.next=t;return a}function Bm(){return{controller:new XE,data:new Map,refCount:0}}function fu(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function $s(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&jE(YE,function(){e.controller.abort()})}function mS(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}function UT(e){var t=e.transitionTypes;return e.transitionTypes=null,t}function Jo(e,t,a){(e&127)!==0?0>hl&&(hl=At(),Ni=Mf(t),Ly=t,a!=null&&(xy=J(a)),(Ue&(Nt|ao))!==Qt&&(gt=!0,On=Pi),e=xi(),t=Li(),e!==Wr||t!==_i?Wr=-1.1:t!==null&&(On=Pi),bu=e,_i=t):(e&4194048)!==0&&0>So&&(So=At(),Fi=Mf(t),Nb=t,a!=null&&(_b=J(a)),0>Zl)&&(e=xi(),t=Li(),(e!==Un||t!==Iu)&&(Un=-1.1),Bn=e,Iu=t)}function qT(e){if(0>hl){hl=At(),Ni=e._debugTask!=null?e._debugTask:null,(Ue&(Nt|ao))!==Qt&&(On=Pi);var t=xi(),a=Li();t!==Wr||a!==_i?Wr=-1.1:a!==null&&(On=Pi),bu=t,_i=a}0>So&&(So=At(),Fi=e._debugTask!=null?e._debugTask:null,0>Zl)&&(e=xi(),t=Li(),(e!==Un||t!==Iu)&&(Un=-1.1),Bn=e,Iu=t)}function Hl(){var e=Cu;return Cu=0,e}function Lc(e){var t=Cu;return Cu=e,t}function Ks(e){var t=Cu;return Cu+=e,t}function xc(){ue=ae=-1.1}function ja(){var e=ae;return ae=-1.1,e}function Ya(e){0<=e&&(ae=e)}function $o(){var e=it;return it=-0,e}function Ko(e){0<=e&&(it=e)}function Wo(){var e=st;return st=null,e}function el(){var e=gt;return gt=!1,e}function Um(e){wa=At(),0>e.actualStartTime&&(e.actualStartTime=wa)}function qm(e){if(0<=wa){var t=At()-wa;e.actualDuration+=t,e.selfBaseDuration=t,wa=-1}}function hS(e){if(0<=wa){var t=At()-wa;e.actualDuration+=t,wa=-1}}function tl(){if(0<=wa){var e=At(),t=e-wa;wa=-1,Cu+=t,it+=t,ue=e}}function gS(e){st===null&&(st=[]),st.push(e),Ql===null&&(Ql=[]),Ql.push(e)}function al(){wa=At(),0>ae&&(ae=wa)}function Ws(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function HT(e,t){if(Gi===null){var a=Gi=[];by=0,qn=ug(),es={status:"pending",value:void 0,then:function(o){a.push(o)}}}return by++,t.then(yS,yS),t}function yS(){if(--by===0&&(-1<So||(Zl=-1.1),zi=null,Gi!==null)){es!==null&&(es.status="fulfilled");var e=Gi;Gi=null,qn=0,es=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(o.status="rejected",o.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function Hm(){var e=Au.current;return e!==null?e:Ke.pooledCache}function Sc(e,t){t===null?Q(Au,Au.current,e):Q(Au,t.pool,e)}function LS(){var e=Hm();return e===null?null:{parent:Bt._currentValue,pool:e}}function xS(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function SS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vS(e,t,a,o){M.actQueue!==null&&(M.didUsePromise=!0);var l=e.thenables;if(a=l[a],a===void 0?l.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Yo,Yo),t=a),t._debugInfo===void 0){e=performance.now(),l=t.displayName;var n={name:typeof l=="string"?l:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:n}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){n.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,bS(o),o===void 0&&!("reason"in t)?Error("A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."):o;default:if(typeof t.status=="string")t.then(Yo,Yo);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(u){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=u}},function(u){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=u}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw o=t.reason,bS(o),o}throw Du=t,$i=!0,Ty||o===null||o.alternate!==null||(Ru=o,Nf=Error("This library called use() to suspend in a previous render but did not call use() when it finished. This indicates an incorrect use of use(). Learn more: https://react.dev/warnings/conditional-use-of-use")),ts}}function fn(e){try{return KE(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Du=t,$i=!0,ts):t}}function CS(){if(Du===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Du;return Du=null,$i=!1,e}function bS(e){if(e===ts||e===zf)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function IS(e,t){return e===t?!0:e.tag!==t.tag||e.type!==t.type||e.key!==t.key||e.index!==t.index||e.tag===3&&e.stateNode!==t.stateNode||e.return===null||t.return===null?!1:IS(e.return,t.return)}function ga(e){var t=Re;return e!=null&&(Re=t===null?e:t.concat(e)),t}function zm(){var e=Re;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function vc(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var n=o[l];if(n!=="children"&&n!=="key"&&n!=="ref"){t===null&&(t=dc(e,a.mode,0),t._debugInfo=Re,t.return=a),P(t,function(u){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key`, `ref`, and `children` props.",u)},n);break}}}function Cc(e){var t=Ki;return Ki+=1,as===null&&(as=xS()),vS(as,e,t,null)}function pn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wS(e,t){throw t.$$typeof===AD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
78
- - Multiple copies of the "react" package is used.
79
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
80
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function bc(e,t){var a=zm();a!==null?a.run(wS.bind(null,e,t)):wS(e,t)}function AS(e,t){var a=J(e)||"Component";nI[a]||(nI[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
81
- root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
82
- <%s>{%s}</%s>`,t,t,a,t,a))}function Ic(e,t){var a=zm();a!==null?a.run(AS.bind(null,e,t)):AS(e,t)}function TS(e,t){var a=J(e)||"Component";uI[a]||(uI[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
83
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
84
- <%s>%s</%s>`,a,t,a))}function wc(e,t){var a=zm();a!==null?a.run(TS.bind(null,e,t)):TS(e,t)}function RS(e){function t(x,v){if(e){var w=x.deletions;w===null?(x.deletions=[v],x.flags|=16):w.push(v)}}function a(x,v){if(!e)return null;for(;v!==null;)t(x,v),v=v.sibling;return null}function o(x){for(var v=new Map;x!==null;)x.key===null?v.set(x.index,x):v.set(x.key,x),x=x.sibling;return v}function l(x,v){return x=Bl(x,v),x.index=0,x.sibling=null,x}function n(x,v,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<v?(x.flags|=2,v):w):(x.flags|=134217730,v)):(x.flags|=1048576,v)}function u(x){return e&&x.alternate===null&&(x.flags|=134217730),x}function i(x,v,w,E){return v===null||v.tag!==6?(v=Rm(w,x.mode,E),v.return=x,v._debugOwner=x,v._debugTask=x._debugTask,v._debugInfo=Re,v):(v=l(v,w),v.return=x,v._debugInfo=Re,v)}function f(x,v,w,E){var z=w.type;return z===qr?(v=g(x,v,w.props.children,E,w.key),pn(v,w),vc(w,v,x),v):v!==null&&(v.elementType===z||oS(v,w)||typeof z=="object"&&z!==null&&z.$$typeof===Ba&&fn(z)===v.type)?(v=l(v,w.props),pn(v,w),v.return=x,v._debugOwner=w._owner,v._debugInfo=Re,v):(v=dc(w,x.mode,E),pn(v,w),v.return=x,v._debugInfo=Re,v)}function p(x,v,w,E){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Dm(w,x.mode,E),v.return=x,v._debugInfo=Re,v):(v=l(v,w.children||[]),v.return=x,v._debugInfo=Re,v)}function g(x,v,w,E,z){return v===null||v.tag!==7?(v=ru(w,x.mode,E,z),v.return=x,v._debugOwner=x,v._debugTask=x._debugTask,v._debugInfo=Re,v):(v=l(v,w),v.return=x,v._debugInfo=Re,v)}function I(x,v,w){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Rm(""+v,x.mode,w),v.return=x,v._debugOwner=x,v._debugTask=x._debugTask,v._debugInfo=Re,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case sl:return w=dc(v,x.mode,w),pn(w,v),w.return=x,x=ga(v._debugInfo),w._debugInfo=Re,Re=x,w;case Ur:return v=Dm(v,x.mode,w),v.return=x,v._debugInfo=Re,v;case Ba:var E=ga(v._debugInfo);return v=fn(v),x=I(x,v,w),Re=E,x}if(zt(v)||oe(v))return w=ru(v,x.mode,w,null),w.return=x,w._debugOwner=x,w._debugTask=x._debugTask,x=ga(v._debugInfo),w._debugInfo=Re,Re=x,w;if(typeof v.then=="function")return E=ga(v._debugInfo),x=I(x,Cc(v),w),Re=E,x;if(v.$$typeof===Bo)return I(x,yc(x,v),w);bc(x,v)}return typeof v=="function"&&Ic(x,v),typeof v=="symbol"&&wc(x,v),null}function b(x,v,w,E){var z=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return z!==null?null:i(x,v,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case sl:return w.key===z?(z=ga(w._debugInfo),x=f(x,v,w,E),Re=z,x):null;case Ur:return w.key===z?p(x,v,w,E):null;case Ba:return z=ga(w._debugInfo),w=fn(w),x=b(x,v,w,E),Re=z,x}if(zt(w)||oe(w))return z!==null?null:(z=ga(w._debugInfo),x=g(x,v,w,E,null),Re=z,x);if(typeof w.then=="function")return z=ga(w._debugInfo),x=b(x,v,Cc(w),E),Re=z,x;if(w.$$typeof===Bo)return b(x,v,yc(x,w),E);bc(x,w)}return typeof w=="function"&&Ic(x,w),typeof w=="symbol"&&wc(x,w),null}function R(x,v,w,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return x=x.get(w)||null,i(v,x,""+E,z);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case sl:return w=x.get(E.key===null?w:E.key)||null,x=ga(E._debugInfo),v=f(v,w,E,z),Re=x,v;case Ur:return x=x.get(E.key===null?w:E.key)||null,p(v,x,E,z);case Ba:var re=ga(E._debugInfo);return E=fn(E),v=R(x,v,w,E,z),Re=re,v}if(zt(E)||oe(E))return w=x.get(w)||null,x=ga(E._debugInfo),v=g(v,w,E,z,null),Re=x,v;if(typeof E.then=="function")return re=ga(E._debugInfo),v=R(x,v,w,Cc(E),z),Re=re,v;if(E.$$typeof===Bo)return R(x,v,w,yc(v,E),z);bc(v,E)}return typeof E=="function"&&Ic(v,E),typeof E=="symbol"&&wc(v,E),null}function U(x,v,w,E){if(typeof w!="object"||w===null)return E;switch(w.$$typeof){case sl:case Ur:k(x,v,w);var z=w.key;if(typeof z!="string")break;if(E===null){E=new Set,E.add(z);break}if(!E.has(z)){E.add(z);break}P(v,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",z)});break;case Ba:w=fn(w),U(x,v,w,E)}return E}function j(x,v,w,E){for(var z=null,re=null,ee=null,me=v,Ie=v=0,ft=null;me!==null&&Ie<w.length;Ie++){me.index>Ie?(ft=me,me=null):ft=me.sibling;var Ze=b(x,me,w[Ie],E);if(Ze===null){me===null&&(me=ft);break}z=U(x,Ze,w[Ie],z),e&&me&&Ze.alternate===null&&t(x,me),v=n(Ze,v,Ie),ee===null?re=Ze:ee.sibling=Ze,ee=Ze,me=ft}if(Ie===w.length)return a(x,me),Se&&Ul(x,Ie),re;if(me===null){for(;Ie<w.length;Ie++)me=I(x,w[Ie],E),me!==null&&(z=U(x,me,w[Ie],z),v=n(me,v,Ie),ee===null?re=me:ee.sibling=me,ee=me);return Se&&Ul(x,Ie),re}for(me=o(me);Ie<w.length;Ie++)ft=R(me,x,Ie,w[Ie],E),ft!==null&&(z=U(x,ft,w[Ie],z),e&&(Ze=ft.alternate,Ze!==null&&me.delete(Ze.key===null?Ie:Ze.key)),v=n(ft,v,Ie),ee===null?re=ft:ee.sibling=ft,ee=ft);return e&&me.forEach(function(an){return t(x,an)}),Se&&Ul(x,Ie),re}function W(x,v,w,E){if(w==null)throw Error("An iterable object provided no iterator.");for(var z=null,re=null,ee=v,me=v=0,Ie=null,ft=null,Ze=w.next();ee!==null&&!Ze.done;me++,Ze=w.next()){ee.index>me?(Ie=ee,ee=null):Ie=ee.sibling;var an=b(x,ee,Ze.value,E);if(an===null){ee===null&&(ee=Ie);break}ft=U(x,an,Ze.value,ft),e&&ee&&an.alternate===null&&t(x,ee),v=n(an,v,me),re===null?z=an:re.sibling=an,re=an,ee=Ie}if(Ze.done)return a(x,ee),Se&&Ul(x,me),z;if(ee===null){for(;!Ze.done;me++,Ze=w.next())ee=I(x,Ze.value,E),ee!==null&&(ft=U(x,ee,Ze.value,ft),v=n(ee,v,me),re===null?z=ee:re.sibling=ee,re=ee);return Se&&Ul(x,me),z}for(ee=o(ee);!Ze.done;me++,Ze=w.next())Ie=R(ee,x,me,Ze.value,E),Ie!==null&&(ft=U(x,Ie,Ze.value,ft),e&&(Ze=Ie.alternate,Ze!==null&&ee.delete(Ze.key===null?me:Ze.key)),v=n(Ie,v,me),re===null?z=Ie:re.sibling=Ie,re=Ie);return e&&ee.forEach(function(bM){return t(x,bM)}),Se&&Ul(x,me),z}function ye(x,v,w,E){if(typeof w=="object"&&w!==null&&w.type===qr&&w.key===null&&w.props.ref===void 0&&(vc(w,null,x),w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case sl:var z=ga(w._debugInfo);e:{for(var re=w.key;v!==null;){if(v.key===re){if(re=w.type,re===qr){if(v.tag===7){a(x,v.sibling),E=l(v,w.props.children),pn(E,w),E.return=x,E._debugOwner=w._owner,E._debugInfo=Re,vc(w,E,x),x=E;break e}}else if(v.elementType===re||oS(v,w)||typeof re=="object"&&re!==null&&re.$$typeof===Ba&&fn(re)===v.type){a(x,v.sibling),E=l(v,w.props),pn(E,w),E.return=x,E._debugOwner=w._owner,E._debugInfo=Re,x=E;break e}a(x,v);break}else t(x,v);v=v.sibling}w.type===qr?(E=ru(w.props.children,x.mode,E,w.key),pn(E,w),E.return=x,E._debugOwner=x,E._debugTask=x._debugTask,E._debugInfo=Re,vc(w,E,x),x=E):(E=dc(w,x.mode,E),pn(E,w),E.return=x,E._debugInfo=Re,x=E)}return x=u(x),Re=z,x;case Ur:e:{for(z=w,w=z.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===z.containerInfo&&v.stateNode.implementation===z.implementation){a(x,v.sibling),E=l(v,z.children||[]),E.return=x,x=E;break e}else{a(x,v);break}else t(x,v);v=v.sibling}E=Dm(z,x.mode,E),E.return=x,x=E}return u(x);case Ba:return z=ga(w._debugInfo),w=fn(w),x=ye(x,v,w,E),Re=z,x}if(zt(w))return j(x,v,w,E);if(oe(w)){if(z=w,w=oe(z),typeof w!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");return re=w.call(z),re===z?(x.tag!==0||Object.prototype.toString.call(x.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(re)!=="[object Generator]")&&(oI||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),oI=!0):z.entries!==w||Ry||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ry=!0),W(x,v,re,E)}if(typeof w.then=="function")return z=ga(w._debugInfo),x=ye(x,v,Cc(w),E),Re=z,x;if(w.$$typeof===Bo)return ye(x,v,yc(x,w),E);bc(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(z=""+w,v!==null&&v.tag===6?(a(x,v.sibling),E=l(v,z),E.return=x,x=E):(a(x,v),E=Rm(z,x.mode,E),E.return=x,E._debugOwner=x,E._debugTask=x._debugTask,E._debugInfo=Re,x=E),u(x)):(typeof w=="function"&&Ic(x,w),typeof w=="symbol"&&wc(x,w),a(x,v))}return function(x,v,w,E){var z=Re;Re=null;try{Ki=0;var re=ye(x,v,w,E);return as=null,re}catch(ft){if(ft===ts||ft===zf)throw ft;var ee=O(29,ft,null,x.mode);ee.lanes=E,ee.return=x;var me=ee._debugInfo=Re;if(ee._debugOwner=x._debugOwner,ee._debugTask=x._debugTask,me!=null){for(var Ie=me.length-1;0<=Ie;Ie--)if(typeof me[Ie].stack=="string"){ee._debugOwner=me[Ie],ee._debugTask=me[Ie].debugTask;break}}return ee}finally{Re=z}}}function DS(e,t){var a=zt(e);return e=!a&&typeof oe(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function Pm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nm(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 mn(e){return{lane:e,tag:sI,payload:null,callback:null,next:null}}function hn(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Ey===o&&!cI){var l=J(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
85
-
86
- Please update the following component: %s`,l),cI=!0}return(Ue&Nt)!==Qt?(l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=ic(e),aS(e,null,a),t):(sc(e,o,t,a),ic(e))}function ei(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Jd(e,a)}}function Ac(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?l=n=u:n=n.next=u,a=a.next}while(a!==null);n===null?l=n=t:n=n.next=t}else l=n=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function ti(){if(My){var e=es;if(e!==null)throw e}}function ai(e,t,a,o){My=!1;var l=e.updateQueue;Hn=!1,Ey=l.shared;var n=l.firstBaseUpdate,u=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var f=i,p=f.next;f.next=null,u===null?n=p:u.next=p,u=f;var g=e.alternate;g!==null&&(g=g.updateQueue,i=g.lastBaseUpdate,i!==u&&(i===null?g.firstBaseUpdate=p:i.next=p,g.lastBaseUpdate=f))}if(n!==null){var I=l.baseState;u=0,g=p=f=null,i=n;do{var b=i.lane&-536870913,R=b!==i.lane;if(R?(pe&b)===b:(o&b)===b){b!==0&&b===qn&&(My=!0),g!==null&&(g=g.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{b=e;var U=i,j=t,W=a;switch(U.tag){case iI:if(U=U.payload,typeof U=="function"){Kr=!0;var ye=U.call(W,I,j);if(b.mode&da){Ne(!0);try{U.call(W,I,j)}finally{Ne(!1)}}Kr=!1,I=ye;break e}I=U;break e;case Dy:b.flags=b.flags&-65537|128;case sI:if(ye=U.payload,typeof ye=="function"){if(Kr=!0,U=ye.call(W,I,j),b.mode&da){Ne(!0);try{ye.call(W,I,j)}finally{Ne(!1)}}Kr=!1}else U=ye;if(U==null)break e;I=Le({},I,U);break e;case dI:Hn=!0}}b=i.callback,b!==null&&(e.flags|=64,R&&(e.flags|=8192),R=l.callbacks,R===null?l.callbacks=[b]:R.push(b))}else R={lane:b,tag:i.tag,payload:i.payload,callback:i.callback,next:null},g===null?(p=g=R,f=I):g=g.next=R,u|=b;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;R=i,i=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);g===null&&(f=I),l.baseState=f,l.firstBaseUpdate=p,l.lastBaseUpdate=g,n===null&&(l.shared.lanes=0),Nn|=u,e.lanes=u,e.memoizedState=I}Ey=null}function ES(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function PT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)ES(a[e],t)}function MS(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ES(a[e],t)}function kS(e,t){var a=vl;Q(_f,a,e),Q(zn,t,e),vl=a|t.baseLanes}function _m(e){Q(_f,vl,e),Q(zn,zn.current,e)}function Fm(e){vl=_f.current,le(zn,e),le(_f,e)}function gn(e){var t=e.alternate;Q(la,la.current&os,e),Q(oa,e,e),ca===null&&(t===null||zn.current!==null||t.memoizedState!==null)&&(ca=e)}function Vm(e){Q(la,la.current,e),Q(oa,e,e),ca===null&&(ca=e)}function OS(e){e.tag===22?(Q(la,la.current,e),Q(oa,e,e),ca===null&&(ca=e)):yn(e)}function yn(e){Q(la,la.current,e),Q(oa,oa.current,e)}function Qa(e){le(oa,e),ca===e&&(ca=null),le(la,e)}function oi(e,t){Q(oa,oa.current,e),Q(la,t,e)}function Gm(e){le(la,e),le(oa,e),ca===e&&(ca=null)}function Tc(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xg(a)||Sg(a)))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}function Ae(){var e=D;Co===null?Co=[e]:Co.push(e)}function H(){var e=D;if(Co!==null&&($l++,Co[$l]!==e)){var t=J(de);if(!fI.has(t)&&(fI.add(t),Co!==null)){for(var a="",o=0;o<=$l;o++){var l=Co[o],n=o===$l?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=n+`
87
- `,a+=l}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
88
-
89
- Previous render Next render
90
- ------------------------------------------------------
91
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
- `,t,a)}}}function yr(e){e==null||zt(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",D,typeof e)}function Rc(){var e=J(de);mI.has(e)||(mI.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function vt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
93
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
94
- 2. You might be breaking the Rules of Hooks
95
- 3. You might have more than one copy of React in the same app
96
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Xm(e,t){if(ad)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",D),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
97
-
98
- Previous: %s
99
- Incoming: %s`,D,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ia(e[a],t[a]))return!1;return!0}function jm(e,t,a,o,l,n){Jl=n,de=t,Co=e!==null?e._debugHookTypes:null,$l=-1,ad=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(n=J(de),ky.has(n)||(ky.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e!==null&&e.memoizedState!==null?By:Co!==null?hI:Oy,Mu=n=(t.mode&da)!==ie;var u=Iy(a,o,l);if(Mu=!1,ns&&(u=Ym(t,a,o,l)),n){Ne(!0);try{u=Ym(t,a,o,l)}finally{Ne(!1)}}return BS(e,t),u}function BS(e,t){t._debugHookTypes=Co,t.dependencies===null?gl!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:gl}):t.dependencies._debugThenableState=gl;var a=gl;if(Ru!==null&&IS(Ru,t)&&(a!==null||Nf===null||Ty||(Ty=!0,console.error(Nf)),Nf=Ru=null),M.H=Gf,a=$e!==null&&$e.next!==null,Jl=0,Co=D=Ut=$e=de=null,$l=-1,e!==null&&(e.flags&1206910976)!==(t.flags&1206910976)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Ff=!1,td=0,gl=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Tt||(e=e.dependencies,e!==null&&gc(e)&&(Tt=!0)),$i?($i=!1,e=!0):e=!1,e&&(t=J(t)||"Unknown",pI.has(t)||ky.has(t)||(pI.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ym(e,t,a,o){de=e;var l=0;do{if(ns&&(gl=null),td=0,ns=!1,l>=eM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,ad=!1,Ut=$e=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}$l=-1,M.H=gI,n=Iy(t,a,o)}while(ns);return n}function NT(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?li(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(de.flags|=1024),t}function Qm(){var e=Vf!==0;return Vf=0,e}function Zm(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&qo)!==ie?t.flags&-805308421:t.flags&-2053,e.lanes&=~a}function Jm(e){if(Ff){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ff=!1}Jl=0,Co=Ut=$e=de=null,$l=-1,D=null,ns=!1,td=Vf=0,gl=null}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?de.memoizedState=Ut=e:Ut=Ut.next=e,Ut}function Ge(){if($e===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Ut===null?de.memoizedState:Ut.next;if(t!==null)Ut=t,$e=e;else{if(e===null)throw de.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ut===null?de.memoizedState=Ut=e:Ut=Ut.next=e}return Ut}function Dc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function li(e){var t=td;return td+=1,gl===null&&(gl=xS()),e=vS(gl,e,t,de),t=de,(Ut===null?t.memoizedState:Ut.next)===null&&(t=t.alternate,M.H=t!==null&&t.memoizedState!==null?By:Oy),e}function Ln(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return li(e);if(e.$$typeof===DD)return;if(e.$$typeof===Bo)return rt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function pu(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=de.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Dc(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||ad)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=RD;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Mo(e,t){return typeof t=="function"?t(e):t}function $m(e,t,a){var o=ya();if(a!==void 0){var l=a(t);if(Mu){Ne(!0);try{a(t)}finally{Ne(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=XT.bind(null,de,e),[o.memoizedState,e]}function Lr(e){var t=Ge();return Km(t,$e,e)}function Km(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var u=l.next;l.next=n.next,n.next=u}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var i=u=null,f=null,p=t,g=!1;do{var I=p.lane&-536870913;if(I!==p.lane?(pe&I)===I:(Jl&I)===I){var b=p.revertLane;if(b===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),I===qn&&(g=!0);else if((Jl&b)===b){p=p.next,b===qn&&(g=!0);continue}else I={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},f===null?(i=f=I,u=n):f=f.next=I,de.lanes|=b,Nn|=b;I=p.action,Mu&&a(n,I),n=p.hasEagerState?p.eagerState:a(n,I)}else b={lane:I,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},f===null?(i=f=b,u=n):f=f.next=b,de.lanes|=I,Nn|=I;p=p.next}while(p!==null&&p!==t);if(f===null?u=n:f.next=i,!Ia(n,e.memoizedState)&&(Tt=!0,g&&(a=es,a!==null)))throw a;e.memoizedState=n,e.baseState=u,e.baseQueue=f,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ni(e){var t=Ge(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var o=a.dispatch,l=a.pending,n=t.memoizedState;if(l!==null){a.pending=null;var u=l=l.next;do n=e(n,u.action),u=u.next;while(u!==l);Ia(n,t.memoizedState)||(Tt=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function Wm(e,t,a){var o=de,l=ya();if(Se){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();ls||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ls=!0)}else{if(n=t(),ls||(a=t(),Ia(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ls=!0)),Ke===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(pe&127)!==0||US(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,Oc(HS.bind(null,o,a,e),[e]),o.flags|=2048,Sr(vo|fa,{destroy:void 0},qS.bind(null,o,a,n,t),null),n}function Ec(e,t,a){var o=de,l=Ge(),n=Se;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!ls){var u=t();Ia(a,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ls=!0)}(u=!Ia(($e||l).memoizedState,a))&&(l.memoizedState=a,Tt=!0),l=l.queue;var i=HS.bind(null,o,l,e);if(Oa(2048,fa,i,[e]),e=l.getSnapshot!==t||u||Ut!==null&&(Ut.memoizedState.tag&vo)!==ed,Sr(e?vo|fa:fa,{destroy:void 0},qS.bind(null,o,l,a,t),null),e){if(o.flags|=2048,Ke===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Jl&127)!==0||US(o,t,a)}return a}function US(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=Dc(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qS(e,t,a,o){t.value=a,t.getSnapshot=o,zS(t)&&PS(e)}function HS(e,t,a){return a(function(){zS(t)&&(Jo(2,"updateSyncExternalStore()",e),PS(e))})}function zS(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ia(e,a)}catch{return!0}}function PS(e){var t=sa(e,2);t!==null&&ht(t,e,2)}function eh(e){var t=ya();if(typeof e=="function"){var a=e;if(e=a(),Mu){Ne(!0);try{a()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function th(e){e=eh(e);var t=e.queue,a=l0.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]}function ah(e){var t=ya();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=gh.bind(null,de,!0,a),a.dispatch=t,[e,t]}function NS(e,t){var a=Ge();return _S(a,$e,e,t)}function _S(e,t,a,o){return e.baseState=a,Km(e,$e,typeof o=="function"?o:Mo)}function FS(e,t){var a=Ge();return $e!==null?_S(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])}function _T(e,t,a,o,l){if(Pc(e))throw Error("Cannot update action state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){n.listeners.push(u)}};M.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,VS(t,n)):(n.next=a.next,t.pending=a.next=n)}}function VS(e,t){var a=t.action,o=t.payload,l=e.state;if(t.isTransition){var n=M.T,u={};u.types=n!==null?n.types:null,u._updatedFibers=new Set,M.T=u;try{var i=a(l,o),f=M.S;f!==null&&f(u,i),GS(e,t,i)}catch(p){oh(e,t,p)}finally{n!==null&&u.types!==null&&(n.types!==null&&n.types!==u.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=u.types),M.T=n,n===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{u=a(l,o),GS(e,t,u)}catch(p){oh(e,t,p)}}function GS(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(M.asyncTransitions++,a.then(zc,zc),a.then(function(o){XS(e,t,o)},function(o){return oh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):XS(e,t,a)}function XS(e,t,a){t.status="fulfilled",t.value=a,jS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,VS(e,a)))}function oh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,jS(t),t=t.next;while(t!==o)}e.action=null}function jS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function YS(e,t){return t}function xr(e,t){if(Se){var a=Ke.formState;if(a!==null){e:{var o=de;if(Se){if(et){t:{for(var l=et,n=xo;l.nodeType!==8;){if(!n){l=null;break t}if(l=$a(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===nL||n===ew?l:null}if(l){et=$a(l.nextSibling),o=l.data===nL;break e}}dn(o)}o=!1}o&&(t=a[0])}}return a=ya(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YS,lastRenderedState:t},a.queue=o,a=l0.bind(null,de,o),o.dispatch=a,o=eh(!1),n=gh.bind(null,de,!1,o.queue),o=ya(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=_T.bind(null,de,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function Mc(e){var t=Ge();return QS(t,$e,e)}function QS(e,t,a){if(t=Km(e,t,YS)[0],e=Lr(Mo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=li(t)}catch(u){throw u===ts?zf:u}else o=t;t=Ge();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(de.flags|=2048,Sr(vo|fa,{destroy:void 0},FT.bind(null,l,a),null)),[o,n,e]}function FT(e,t){e.action=t}function kc(e){var t=Ge(),a=$e;if(a!==null)return QS(t,a,e);Ge(),t=t.memoizedState,a=Ge();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Sr(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=de.updateQueue,t===null&&(t=Dc(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function lh(e){var t=ya();return e={current:e},t.memoizedState=e}function mu(e,t,a,o){var l=ya();de.flags|=e,l.memoizedState=Sr(vo|t,{destroy:void 0},a,o===void 0?null:o)}function Oa(e,t,a,o){var l=Ge();o=o===void 0?null:o;var n=l.memoizedState.inst;$e!==null&&o!==null&&Xm(o,$e.memoizedState.deps)?l.memoizedState=Sr(t,n,a,o):(de.flags|=e,l.memoizedState=Sr(vo|t,n,a,o))}function Oc(e,t){(de.mode&qo)!==ie?mu(545261568,fa,e,t):mu(8390656,fa,e,t)}function VT(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Dc(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function nh(e){var t=ya(),a={impl:e};return t.memoizedState=a,function(){if((Ue&Nt)!==Qt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Bc(e){var t=Ge().memoizedState;return VT({ref:t,nextImpl:e}),function(){if((Ue&Nt)!==Qt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function uh(e,t){var a=4194308;return(de.mode&qo)!==ie&&(a|=268435456),mu(a,eo,e,t)}function ZS(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function rh(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var o=4194308;(de.mode&qo)!==ie&&(o|=268435456),mu(o,eo,ZS.bind(null,t,e),a)}function Uc(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Oa(4,eo,ZS.bind(null,t,e),a)}function sh(e,t){return ya().memoizedState=[e,t===void 0?null:t],e}function qc(e,t){var a=Ge();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Xm(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function ih(e,t){var a=ya();t=t===void 0?null:t;var o=e();if(Mu){Ne(!0);try{e()}finally{Ne(!1)}}return a.memoizedState=[o,t],o}function Hc(e,t){var a=Ge();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Xm(t,o[1]))return o[0];if(o=e(),Mu){Ne(!0);try{e()}finally{Ne(!1)}}return a.memoizedState=[o,t],o}function dh(e,t){var a=ya();return ch(a,e,t)}function JS(e,t){var a=Ge();return KS(a,$e.memoizedState,e,t)}function $S(e,t){var a=Ge();return $e===null?ch(a,e,t):KS(a,$e.memoizedState,e,t)}function ch(e,t,a){return a===void 0||(Jl&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dv(),de.lanes|=e,Nn|=e,a)}function KS(e,t,a,o){return Ia(a,t)?a:zn.current!==null?(e=ch(e,a,o),Ia(e,t)||(Tt=!0),e):(Jl&106)===0||(Jl&1073741824)!==0&&(pe&261930)===0?(Tt=!0,e.memoizedState=a):(e=dv(),de.lanes|=e,Nn|=e,t)}function zc(){M.asyncTransitions--}function WS(e,t,a,o,l){var n=Fe.p;Fe.p=n!==0&&n<Uo?n:Uo;var u=M.T,i={};i.types=u!==null?u.types:null,i._updatedFibers=new Set,M.T=i,gh(e,!1,t,a);try{var f=l(),p=M.S;if(p!==null&&p(i,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){M.asyncTransitions++,f.then(zc,zc);var g=zT(f,o);ui(e,t,g,Za(e))}else ui(e,t,o,Za(e))}catch(I){ui(e,t,{then:function(){},status:"rejected",reason:I},Za(e))}finally{Fe.p=n,u!==null&&i.types!==null&&(u.types!==null&&u.types!==i.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=i.types),M.T=u,u===null&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function fh(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=e0(e).queue;qT(e),WS(e,l,t,Gu,a===null?A:function(){return t0(e),a(o)})}function e0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gu,baseState:Gu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:Gu},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function t0(e){M.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=e0(e);t.next===null&&(t=e.alternate.memoizedState),ui(e,t.next.queue,{},Za(e))}function ph(){var e=eh(!1);return e=WS.bind(null,de,e.queue,!0,!1),ya().memoizedState=e,[!1,e]}function a0(){var e=Lr(Mo)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:li(e),t]}function o0(){var e=ni(Mo)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:li(e),t]}function hu(){return rt(Ss)}function mh(){var e=ya(),t=Ke.identifierPrefix;if(Se){var a=jl,o=Xl;a=(o&~(1<<32-Sa(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Vf++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=WE++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function hh(){return ya().memoizedState=GT.bind(null,de)}function GT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Za(a),l=mn(o),n=hn(a,l,o);n!==null&&(Jo(o,"refresh()",e),ht(n,a,o),ei(n,a,o)),e=Bm(),t!=null&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function XT(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Za(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Pc(e)?n0(t,l):(l=wm(e,t,l,o),l!==null&&(Jo(o,"dispatch()",e),ht(l,e,o),u0(l,t,o)))}function l0(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Za(e),ui(e,t,a,o)&&Jo(o,"setState()",e)}function ui(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Pc(e))n0(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var u=M.H;M.H=No;try{var i=t.lastRenderedState,f=n(i,a);if(l.hasEagerState=!0,l.eagerState=f,Ia(f,i))return sc(e,t,l,0),Ke===null&&rc(),!1}catch{}finally{M.H=u}}if(a=wm(e,t,l,o),a!==null)return ht(a,e,o),u0(a,t,o),!0}return!1}function gh(e,t,a,o){if(M.T===null&&qn===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:ug(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Pc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=wm(e,a,o,2),t!==null&&(Jo(2,"setOptimistic()",e),ht(t,e,2))}function Pc(e){var t=e.alternate;return e===de||t!==null&&t===de}function n0(e,t){ns=Ff=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function u0(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Jd(e,a)}}function yh(e){if(e!==null&&typeof e!="function"){var t=String(e);TI.has(t)||(TI.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Lh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&da){Ne(!0);try{n=a(o,l)}finally{Ne(!1)}}n===void 0&&(t=K(t)||"Component",bI.has(t)||(bI.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n==null?l:Le({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function r0(e,t,a,o,l,n,u){var i=e.stateNode;if(typeof i.shouldComponentUpdate=="function"){if(a=i.shouldComponentUpdate(o,n,u),e.mode&da){Ne(!0);try{a=i.shouldComponentUpdate(o,n,u)}finally{Ne(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",K(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Zs(a,o)||!Zs(l,n):!0}function s0(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=J(e)||"Component",LI.has(e)||(LI.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Uy.enqueueReplaceState(t,t.state,null))}function gu(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Le({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function i0(e){iy(e),console.warn(`%s
100
-
101
- %s
102
- `,us?"An error occurred in the <"+us+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
103
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function d0(e){var t=us?"The above error occurred in the <"+us+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((qy||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var o=e.environmentName;e=[`%o
104
-
105
- %s
106
-
107
- %s
108
- `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,dw+" "+e[0],cw,vp+o+vp,fw):e.splice(0,0,dw,cw,vp+o+vp,fw),e.unshift(console),o=vM.apply(console.error,e),o()}else console.error(`%o
109
-
110
- %s
111
-
112
- %s
113
- `,e,t,a)}function c0(e){iy(e)}function Nc(e,t){try{us=t.source?J(t.source):null,qy=null;var a=t.value;if(M.actQueue!==null)M.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function f0(e,t,a){try{us=a.source?J(a.source):null,qy=J(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function xh(e,t,a){return a=mn(a),a.tag=Dy,a.payload={element:null},a.callback=function(){P(t.source,Nc,e,t)},a}function Sh(e){return e=mn(e),e.tag=Dy,e}function vh(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var n=o.value;e.payload=function(){return l(n)},e.callback=function(){lS(a),P(o.source,f0,t,a,o)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){lS(a),P(o.source,f0,t,a,o),typeof l!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this)),ZE(this,o),typeof l=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",J(a)||"Unknown")})}function jT(e,t,a,o,l){if(a.flags|=32768,cl&&mi(e,l),o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&du(t,a,l,!0),Se&&(ml=!0),a=oa.current,a!==null){switch(a.tag){case 31:case 13:case 19:return ca===null?ef():a.alternate===null&&dt===Kl&&(dt=Jf),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Pf?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),ag(e,o,l)),!1;case 22:return a.flags|=65536,o===Pf?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),ag(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return ag(e,o,l),ef(),!1}if(Se)return ml=!0,t=oa.current,t!==null?(t.tag===19&&console.error("SuspenseList should never catch while hydrating. This is a bug in React."),(t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==hy&&Js(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==hy&&Js(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=Xa(o,a),l=xh(e.stateNode,o,l),Ac(e,l),dt!==Pn&&(dt=Ou)),!1;var n=Xa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(dd===null?dd=[n]:dd.push(n),dt!==Pn&&(dt=Ou),t===null)return!0;o=Xa(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=xh(a.stateNode,o,e),Ac(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(Fn===null||!Fn.has(n))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Sh(l),vh(l,e,a,o),Ac(a,l),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}function Ht(e,t,a,o){t.child=e===null?rI(t,null,a,o):Eu(t,e.child,a,o)}function p0(e,t,a,o,l){a=a.render;var n=hr(a);if(n!==a&&(a=n,e!==null&&(Tt=!0)),n=t.ref,"ref"in o){var u={};for(var i in o)i!=="ref"&&(u[i]=o[i])}else u=o;return cu(t),o=jm(e,t,a,u,n,l),i=Qm(),e!==null&&!Tt?(Zm(e,t,l),zl(e,t,l)):(Se&&i&&cc(t),t.flags|=1,Ht(e,t,o,l),t.child)}function m0(e,t,a,o,l){if(e===null){var n=a.type;return typeof n=="function"&&!Am(n)&&n.defaultProps===void 0&&a.compare===null?(a=hr(n),t.tag=15,t.type=a,bh(t,n),h0(e,t,a,o,l)):(e=Tm(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!Dh(e,l)){var u=n.memoizedProps;if(a=a.compare,a=a!==null?a:Zs,a(u,o)&&e.ref===t.ref)return zl(e,t,l)}return t.flags|=1,e=Bl(n,o),e.ref=t.ref,e.return=t,t.child=e}function h0(e,t,a,o,l){if(e!==null){var n=e.memoizedProps;if(Zs(n,o)&&e.ref===t.ref&&t.type===e.type)if(Tt=!1,t.pendingProps=o=n,Dh(e,l))(e.flags&131072)!==0&&(Tt=!0);else return t.lanes=e.lanes,zl(e,t,l)}return Ch(e,t,a,o,l)}function g0(e,t,a,o){var l=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:qi,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){for(o=t.child=e.child,l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~n}else o=0,t.child=null;return y0(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sc(t,n!==null?n.cachePool:null),n!==null?kS(t,n):_m(t),OS(t);else return o=t.lanes=536870912,y0(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(Sc(t,n.cachePool),kS(t,n),yn(t),t.memoizedState=null):(e!==null&&Sc(t,null),_m(t),yn(t));return Ht(e,t,l,a),t.child}function ri(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:qi,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function y0(e,t,a,o,l){var n=Hm();return n=n===null?null:{parent:Bt._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&Sc(t,null),_m(t),OS(t),e!==null&&du(e,t,o,!0),t.childLanes=l,null}function _c(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
114
- - <Activity %s>
115
- + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Fc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function L0(e,t,a){return Eu(t,e.child,null,a),e=_c(t,t.pendingProps),e.flags|=2,Qa(t),t.memoizedState=null,e}function YT(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(o.mode==="hidden")return e=_c(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},ri(null,e);if(Vm(t),(e=et)?(a=iC(e,xo),a=a!==null&&a.data===Nu?a:null,a!==null&&(o={dehydrated:a,treeContext:iS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=rS(a),o.return=t,t.child=o,Gt=t,et=null)):a=null,a===null)throw fc(t,e),dn(t);return t.lanes=536870912,null}return _c(t,o)}var n=e.memoizedState;if(n!==null){var u=n.dehydrated;if(Vm(t),l)if(t.flags&256)t.flags&=-257,t=L0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(cS(),(a&536870912)!==0&&Wc(t),Tt||du(e,t,a,!1),l=(a&e.childLanes)!==0,Tt||l){if(zn.current===null){if(o=Ke,o!==null&&(u=Fs(o,a),u!==0&&u!==n.retryLane))throw n.retryLane=u,sa(e,u),ht(o,e,u),Hy;ef()}t=L0(e,t,a)}else e=n.treeContext,et=$a(u.nextSibling),Gt=t,Se=!0,Mn=null,ml=!1,Wa=null,xo=!1,e!==null&&dS(t,e),t=_c(t,o),t.flags|=134221824;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Wc(t),e=Bl(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function vr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ch(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render=="function"){var n=K(a)||"Unknown";RI[n]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",n,n),RI[n]=!0)}return t.mode&da&&Po.recordLegacyContextWarning(t,null),e===null&&(bh(t,t.type),a.contextTypes&&(n=K(a)||"Unknown",EI[n]||(EI[n]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",n)))),cu(t),a=jm(e,t,a,o,void 0,l),o=Qm(),e!==null&&!Tt?(Zm(e,t,l),zl(e,t,l)):(Se&&o&&cc(t),t.flags|=1,Ht(e,t,a,l),t.child)}function x0(e,t,a,o,l,n){return cu(t),$l=-1,ad=e!==null&&e.type!==t.type,t.updateQueue=null,a=Ym(t,o,a,l),BS(e,t),o=Qm(),e!==null&&!Tt?(Zm(e,t,n),zl(e,t,n)):(Se&&o&&cc(t),t.flags|=1,Ht(e,t,a,n),t.child)}function S0(e,t,a,o,l){switch(L(t)){case!1:var n=t.stateNode,u=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,u,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var i=l&-l;if(t.lanes|=i,u=Ke,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i=Sh(i),vh(i,u,t,Xa(n,t)),Ac(t,i)}if(cu(t),t.stateNode===null){if(u=En,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==Bo)&&!AI.has(a)&&(AI.add(a),i=n===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof n!="object"?" However, it is set to a "+typeof n+".":n.$$typeof===Ug?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",K(a)||"Component",i)),typeof n=="object"&&n!==null&&(u=rt(n)),n=new a(o,u),t.mode&da){Ne(!0);try{n=new a(o,u)}finally{Ne(!1)}}if(u=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Uy,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=yI,typeof a.getDerivedStateFromProps=="function"&&u===null&&(u=K(a)||"Component",xI.has(u)||(xI.add(u),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",u,n.state===null?"null":"undefined",u))),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"){var f=i=u=null;if(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?i="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(i="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?f="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(f="UNSAFE_componentWillUpdate"),u!==null||i!==null||f!==null){n=K(a)||"Component";var p=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vI.has(n)||(vI.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
116
-
117
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
118
-
119
- The above lifecycles should be removed. Learn more about this warning here:
120
- https://react.dev/link/unsafe-component-lifecycles`,n,p,u!==null?`
121
- `+u:"",i!==null?`
122
- `+i:"",f!==null?`
123
- `+f:""))}}n=t.stateNode,u=K(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",u),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",u),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),a.childContextTypes&&!wI.has(a)&&(wI.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",u)),a.contextTypes&&!II.has(a)&&(II.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",u)),typeof n.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",u),a.prototype&&a.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",K(a)||"A pure component"),typeof n.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof n.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",u),typeof n.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof n.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),i=n.props!==o,n.props!==void 0&&i&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),n.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",u,u),typeof n.getSnapshotBeforeUpdate!="function"||typeof n.componentDidUpdate=="function"||SI.has(a)||(SI.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",K(a))),typeof n.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof n.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u),(i=n.state)&&(typeof i!="object"||zt(i))&&console.error("%s.state: must be set to an object or null",u),typeof n.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},Pm(t),u=a.contextType,n.context=typeof u=="object"&&u!==null?rt(u):En,n.state===o&&(u=K(a)||"Component",CI.has(u)||(CI.add(u),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))),t.mode&da&&Po.recordLegacyContextWarning(t,n),Po.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u=="function"&&(Lh(t,a,u,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(u=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),u!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J(t)||"Component"),Uy.enqueueReplaceState(n,n.state,null)),ai(t,o,n,l),ti(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qo)!==ie&&(t.flags|=268435456),n=!0}else if(e===null){n=t.stateNode;var g=t.memoizedProps;i=gu(a,g),n.props=i;var I=n.context;f=a.contextType,u=En,typeof f=="object"&&f!==null&&(u=rt(f)),p=a.getDerivedStateFromProps,f=typeof p=="function"||typeof n.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,f||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(g||I!==u)&&s0(t,n,o,u),Hn=!1;var b=t.memoizedState;n.state=b,ai(t,o,n,l),ti(),I=t.memoizedState,g||b!==I||Hn?(typeof p=="function"&&(Lh(t,a,p,o),I=t.memoizedState),(i=Hn||r0(t,a,i,o,b,I,u))?(f||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qo)!==ie&&(t.flags|=268435456)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qo)!==ie&&(t.flags|=268435456),t.memoizedProps=o,t.memoizedState=I),n.props=o,n.state=I,n.context=u,n=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qo)!==ie&&(t.flags|=268435456),n=!1)}else{n=t.stateNode,Nm(e,t),u=t.memoizedProps,f=gu(a,u),n.props=f,p=t.pendingProps,b=n.context,I=a.contextType,i=En,typeof I=="object"&&I!==null&&(i=rt(I)),g=a.getDerivedStateFromProps,(I=typeof g=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(u!==p||b!==i)&&s0(t,n,o,i),Hn=!1,b=t.memoizedState,n.state=b,ai(t,o,n,l),ti();var R=t.memoizedState;u!==p||b!==R||Hn||e!==null&&e.dependencies!==null&&gc(e.dependencies)?(typeof g=="function"&&(Lh(t,a,g,o),R=t.memoizedState),(f=Hn||r0(t,a,f,o,b,R,i)||e!==null&&e.dependencies!==null&&gc(e.dependencies))?(I||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,R,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,R,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||u===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=R),n.props=o,n.state=R,n.context=i,n=f):(typeof n.componentDidUpdate!="function"||u===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),n=!1)}if(i=n,vr(e,t),u=(t.flags&128)!==0,i||u){if(i=t.stateNode,nr(t),u&&typeof a.getDerivedStateFromError!="function")a=null,wa=-1;else if(a=Yb(i),t.mode&da){Ne(!0);try{Yb(i)}finally{Ne(!1)}}t.flags|=1,e!==null&&u?(t.child=Eu(t,e.child,null,l),t.child=Eu(t,null,a,l)):Ht(e,t,a,l),t.memoizedState=i.state,e=t.child}else e=zl(e,t,l);return l=t.stateNode,n&&l.props!==o&&(rs||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",J(t)||"a component"),rs=!0),e}function v0(e,t,a,o){return iu(),t.flags|=256,Ht(e,t,a,o),t.child}function bh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
124
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=K(t)||"Unknown",MI[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),MI[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=K(t)||"Unknown",DI[t]||(console.error("%s: Function components do not support contextType.",t),DI[t]=!0))}function Ih(e){return{baseLanes:e,cachePool:LS()}}function wh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Na),e}function C0(e,t,a){var o=t.pendingProps;h(t)&&(t.flags|=128);var l=!1,n=(t.flags&128)!==0,u;if((u=n)||(u=e!==null&&e.memoizedState===null?!1:(la.current&Wi)!==0),u&&(l=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(l?gn(t):yn(t),(e=et)?(a=iC(e,xo),a=a!==null&&a.data!==Nu?a:null,a!==null&&(u={dehydrated:a,treeContext:iS(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=rS(a),u.return=t,t.child=u,Gt=t,et=null)):a=null,a===null)throw fc(t,e),dn(t);return Sg(a)?t.lanes=32:t.lanes=536870912,null}return n=o.children,o=o.fallback,l?(yn(t),l=t.mode,n=Fc({mode:"hidden",children:n},l),o=ru(o,l,a,null),n.return=t,o.return=t,n.sibling=o,t.child=n,o=t.child,o.memoizedState=Ih(a),o.childLanes=wh(e,u,a),t.memoizedState=Py,ri(null,o)):(gn(t),Ah(t,n))}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(f!==null)return QT(e,t,n,u,o,f,i,a)}return l?(yn(t),l=o.fallback,n=t.mode,i=e.child,f=i.sibling,o=Bl(i,{mode:"hidden",children:o.children}),o.subtreeFlags=i.subtreeFlags&1206910976,f!==null?l=Bl(f,l):(l=ru(l,n,a,null),l.flags|=2),l.return=t,o.return=t,o.sibling=l,t.child=o,ri(null,o),o=t.child,l=e.child.memoizedState,l===null?l=Ih(a):(n=l.cachePool,n!==null?(i=Bt._currentValue,n=n.parent!==i?{parent:i,pool:i}:n):n=LS(),l={baseLanes:l.baseLanes|a,cachePool:n}),o.memoizedState=l,o.childLanes=wh(e,u,a),t.memoizedState=Py,ri(e.child,o)):(i!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Wc(t),gn(t),a=e.child,e=a.sibling,a=Bl(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=a,t.memoizedState=null,a)}function Ah(e,t){return t=Fc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fc(e,t){return e=O(22,e,null,t),e.lanes=0,e}function Vc(e,t,a){return Eu(t,e.child,null,a),e=Ah(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QT(e,t,a,o,l,n,u,i){if(a){if(t.flags&256)return gn(t),t.flags&=-257,Vc(e,t,i);if(t.memoizedState!==null)return yn(t),t.child=e.child,t.flags|=128,null;yn(t);var f=l.fallback,p=t.mode,g=Fc({mode:"visible",children:l.children},p);return f=ru(f,p,i,null),f.flags|=2,g.return=t,f.return=t,g.sibling=f,t.child=g,Eu(t,e.child,null,i),f=t.child,f.memoizedState=Ih(i),f.childLanes=wh(e,o,i),t.memoizedState=Py,ri(null,f)}if(gn(t),cS(),(i&536870912)!==0&&Wc(t),Sg(n)){if(o=n.nextSibling&&n.nextSibling.dataset,o){f=o.dgst;var I=o.msg;p=o.stck,g=o.cstck}return n=I,u=f,l=p,o=g,f=u,p=n,g=l,l=o,f!==QE&&(o=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),o.stack=g||"",o.digest=f,f=l===void 0?null:l,p={value:o,source:null,stack:f},typeof f=="string"&&my.set(o,p),Js(p)),Vc(e,t,i)}if(Tt||du(e,t,i,!1),o=(i&e.childLanes)!==0,Tt||o){if(zn.current!==null)return Vc(e,t,i);if(o=Ke,o!==null&&(f=Fs(o,i),f!==0&&f!==u.retryLane))throw u.retryLane=f,sa(e,f),ht(o,e,f),Hy;return xg(n)||ef(),Vc(e,t,i)}return xg(n)?(t.flags|=192,t.child=e.child,null):(e=u.treeContext,et=$a(n.nextSibling),Gt=t,Se=!0,Mn=null,ml=!1,Wa=null,xo=!1,e!==null&&dS(t,e),t=Ah(t,l.children),t.flags|=134221824,t)}function b0(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),hc(e.return,t,a)}function I0(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&Tc(a)===null&&(t=e),e=e.sibling}return t}function Gc(e,t,a,o,l,n){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=a,u.tailMode=l,u.treeForkCount=n)}function Th(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Rh(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,u=o.children,i=la.current;if(t.flags&128)return oi(t,i),null;if((o=(i&Wi)!==0)?(i=i&os|Wi,t.flags|=128):i&=os,oi(t,i),i=l??"null",l!=null&&l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!kI[i])if(kI[i]=!0,typeof l=="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);i=n??"null",zy[i]||n==null||(n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(zy[i]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=null&&l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(zy[i]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" (default) or "backwards". Did you mean to specify revealOrder="forwards"?',n)));e:if((l==null||l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&u!==void 0&&u!==null&&u!==!1)if(zt(u)){for(i=0;i<u.length;i++)if(!DS(u[i],i))break e}else if(i=oe(u),typeof i=="function"){if(i=i.call(u))for(var f=i.next(),p=0;!f.done;f=i.next()){if(!DS(f.value,p))break e;p++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(l==="backwards"&&e!==null?(Th(e),Ht(e,t,u,a),Th(e)):Ht(e,t,u,a),Se?(sn(),u=Hi):u=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&b0(e,a,t);else if(e.tag===19)b0(e,a,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(l){case"backwards":a=I0(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null,Th(t)),Gc(t,!0,l,null,n,u);break;case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Tc(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Gc(t,!0,a,null,n,u);break;case"together":Gc(t,!1,null,null,void 0,u);break;case"independent":t.memoizedState=null;break;default:a=I0(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Gc(t,!1,l,a,n,u)}return t.child}function w0(e,t,a){var o=t.type,l=t.pendingProps,n=l.value;return"value"in l||BI||(BI=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),cn(t,o,n),Ht(e,t,l.children,a),t.child}function zl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wa=-1,Nn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(du(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Bl(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Bl(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Dh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gc(e)))}function ZT(e,t,a){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),cn(t,Bt,e.memoizedState.cache),iu();break;case 27:case 5:qe(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:cn(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vm(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return gn(t),t.flags|=128,null;o=du(e,t,a,!1);var l=t.child.childLanes;return o||(a&l)!==0?C0(e,t,a):(gn(t),e=zl(e,t,a),e!==null?e.sibling:null)}gn(t);break;case 19:if(t.flags&128)return Rh(e,t,a);if(l=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(du(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return Rh(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),oi(t,la.current),o)break;return null;case 22:return t.lanes=0,g0(e,t,a,t.pendingProps);case 24:cn(t,Bt,e.memoizedState.cache)}return zl(e,t,a)}function Eh(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Tm(hr(t.elementType),t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=134217730,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Tt=!0;else{if(!Dh(e,a)&&(t.flags&128)===0)return Tt=!1,ZT(e,t,a);Tt=(e.flags&131072)!==0}else Tt=!1,(o=Se)&&(sn(),o=(t.flags&1048576)!==0),o&&(o=t.index,sn(),sS(t,Hi,o));switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=fn(t.elementType),e=hr(e),t.type=e,typeof e=="function")Am(e)?(o=gu(e,o),t.tag=1,t=S0(null,t,e,o,a)):(t.tag=0,bh(t,e),t=Ch(null,t,e,o,a));else{if(e!=null){if(l=e.$$typeof,l===ff){t.tag=11,t=p0(null,t,e,o,a);break e}else if(l===pf){t.tag=14,t=m0(null,t,e,o,a);break e}else if(l===Bo){t.tag=10,t.type=e,t=w0(null,t,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Ba&&(t=" Did you wrap a component in React.lazy() more than once?"),a=K(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Ch(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=gu(o,t.pendingProps),S0(e,t,o,l,a);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,Nm(e,t),ai(t,o,null,a);var u=t.memoizedState;if(o=u.cache,cn(t,Bt,o),o!==n.cache&&Om(t,[Bt],a,!0),ti(),o=u.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=v0(e,t,o,a);break e}else if(o!==l){l=Xa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Js(l),t=v0(e,t,o,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,et=$a(e.firstChild),Gt=t,Se=!0,Mn=null,ml=!1,Wa=null,xo=!0,a=rI(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(iu(),o===l){t=zl(e,t,a);break e}Ht(e,t,o,a)}t=t.child}return t;case 26:return vr(e,t),e===null?(a=gC(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(t.stateNode=Qv(t.type,t.pendingProps,Oe(In.current),t)):t.memoizedState=gC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qe(t),e===null&&Se&&(o=Oe(In.current),l=Lt(),o=t.stateNode=pC(t.type,t.pendingProps,o,l,!1),ml||(l=Gv(o,t.type,t.pendingProps,l),l!==null&&(su(t,0).serverProps=l)),Gt=t,xo=!0,l=et,Cn(t.type)?(cL=l,et=$a(o.firstChild)):et=l),Ht(e,t,t.pendingProps.children,a),vr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&(n=Lt(),o=ym(t.type,n.ancestorInfo),l=et,(u=!l)||(u=lD(l,t.type,t.pendingProps,xo),u!==null?(t.stateNode=u,ml||(n=Gv(u,t.type,t.pendingProps,n),n!==null&&(su(t,0).serverProps=n)),Gt=t,et=$a(u.firstChild),xo=!1,n=!0):n=!1,u=!n),u&&(o&&fc(t,l),dn(t))),qe(t),l=t.type,n=t.pendingProps,u=e!==null?e.memoizedProps:null,o=n.children,hg(l,n)?o=null:u!==null&&hg(l,u)&&(t.flags|=32),t.memoizedState!==null&&(l=jm(e,t,NT,null,null,a),Ss._currentValue=l),vr(e,t),Ht(e,t,o,a),t.child;case 6:return e===null&&Se&&(a=t.pendingProps,e=Lt(),o=e.ancestorInfo.current,a=o!=null?ec(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=et,(o=!e)||(o=nD(e,t.pendingProps,xo),o!==null?(t.stateNode=o,Gt=t,et=null,o=!0):o=!1,o=!o),o&&(a&&fc(t,e),dn(t))),null;case 13:return C0(e,t,a);case 4:return Be(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Eu(t,null,o,a):Ht(e,t,o,a),t.child;case 11:return p0(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,vr(e,t),Ht(e,t,o,a),t.child;case 8:return Ht(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Ht(e,t,t.pendingProps.children,a),t.child;case 10:return w0(e,t,a);case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),cu(t),l=rt(l),o=Iy(o,l,void 0),t.flags|=1,Ht(e,t,o,a),t.child;case 14:return m0(e,t,t.type,t.pendingProps,a);case 15:return h0(e,t,t.type,t.pendingProps,a);case 19:return Rh(e,t,a);case 31:return YT(e,t,a);case 22:return g0(e,t,a,t.pendingProps);case 24:return cu(t),o=rt(Bt),e===null?(l=Hm(),l===null&&(l=Ke,n=Bm(),l.pooledCache=n,fu(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},Pm(t),cn(t,Bt,l)):((e.lanes&a)!==0&&(Nm(e,t),ai(t,null,null,a),ti()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),cn(t,Bt,o)):(o=n.cache,cn(t,Bt,o),o!==l.cache&&Om(t,[Bt],a,!0))),Ht(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:Se&&cc(t),o.className!==void 0&&(l=typeof o.className=="string"?JSON.stringify(o.className):"{...}",OI[l]||(OI[l]=!0,console.error(`<ViewTransition> doesn't accept a "className" prop. It has been renamed to "default".
125
- - <ViewTransition className=%s>
126
- + <ViewTransition default=%s>`,l,l))),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:vr(e,t),Ht(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Pl(e){e.flags|=4}function Mh(e,t,a,o,l){var n;if((n=(e.mode&qb)!==ie)&&(n=a===null?SC(t,o):SC(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),n){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(mv())e.flags|=8192;else throw Du=Pf,Ay}else e.flags&=-16777217}function A0(e,t){if(t.type!=="stylesheet"||(t.state.loading&bo)!==Vu)e.flags&=-16777217;else if(e.flags|=16777216,!vC(t))if(mv())e.flags|=8192;else throw Du=Pf,Ay}function Xc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ka():536870912,e.lanes|=t,qu|=t)}function si(e,t){if(!Se)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&xe)!==ie){for(var l=e.selfBaseDuration,n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&1206910976,o|=n.flags&1206910976,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&1206910976,o|=l.flags&1206910976,l.return=e,l=l.sibling;else if((e.mode&xe)!==ie){l=e.actualDuration,n=e.selfBaseDuration;for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,l+=u.actualDuration,n+=u.treeBaseDuration,u=u.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function JT(e,t,a){var o=t.pendingProps;switch(Em(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ql(Bt,t),ut(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gr(t)?(km(),Pl(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mm())),Je(t),null;case 26:var l=t.type,n=t.memoizedState;return e===null?(Pl(t),n!==null?(Je(t),A0(t,n)):(Je(t),Mh(t,l,null,o,a))):n?n!==e.memoizedState?(Pl(t),Je(t),A0(t,n)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Pl(t),Je(t),Mh(t,l,e,o,a)),null;case 27:if(Ea(t),a=Oe(In.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Pl(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Je(t),t.subtreeFlags&=-33554433,null}e=Lt(),gr(t)?fS(t,e):(e=pC(l,o,a,e,!0),t.stateNode=e,Pl(t))}return Je(t),t.subtreeFlags&=-33554433,null;case 5:if(Ea(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Pl(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Je(t),t.subtreeFlags&=-33554433,null}var u=Lt();if(gr(t))fS(t,u);else{switch(n=Oe(In.current),ym(l,u.ancestorInfo),u=u.context,n=yi(n),u){case Ls:n=n.createElementNS(Nr,l);break;case yp:n=n.createElementNS(vf,l);break;default:switch(l){case"svg":n=n.createElementNS(Nr,l);break;case"math":n=n.createElementNS(vf,l);break;case"script":n=n.createElement("div"),ow||TR(o)||(console.error("Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)."),ow=!0),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||mo.call(lw,l)||(lw[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[aa]=t,n[Ca]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)n.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=n;e:switch(ta(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Pl(t)}}return Je(t),t.subtreeFlags&=-33554433,Mh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Pl(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Oe(In.current),a=Lt(),gr(t)){if(e=t.stateNode,a=t.memoizedProps,l=!ml,o=null,n=Gt,n!==null)switch(n.tag){case 3:l&&(l=cC(e,a,o),l!==null&&(su(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=cC(e,a,o),l!==null&&(su(t,0).serverProps=l))}e[aa]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Pv(e.nodeValue,a)),e||dn(t,!0)}else l=a.ancestorInfo.current,l!=null&&ec(o,l.tag,a.ancestorInfo.implicitRootScope),e=yi(e).createTextNode(o),e[aa]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=gr(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[aa]=t,Je(t),(t.mode&xe)!==ie&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else km(),iu(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Je(t),(t.mode&xe)!==ie&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Mm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Qa(t),t):(Qa(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Je(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=gr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[aa]=t,Je(t),(t.mode&xe)!==ie&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else km(),iu(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Je(t),(t.mode&xe)!==ie&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=Mm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Qa(t),t):(Qa(t),null)}return Qa(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&xe)!==ie&&Ws(t),t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Xc(t,t.updateQueue),Je(t),(t.mode&xe)!==ie&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ut(t),e===null&&sg(t.stateNode.containerInfo),t.flags|=67108864,Je(t),null;case 10:return ql(t.type,t),Je(t),null;case 19:if(Gm(t),o=t.memoizedState,o===null)return Je(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)si(o,!1);else{if(dt!==Kl||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Tc(e),n!==null){for(t.flags|=128,si(o,!1),e=n.updateQueue,t.updateQueue=e,Xc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)uS(a,e),a=a.sibling;return oi(t,la.current&os|Wi),Se&&Ul(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&wt()>ap&&(t.flags|=128,l=!0,si(o,!1),t.lanes=4194304)}else{if(!l)if(e=Tc(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Xc(t,e),si(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!n.alternate&&!Se)return Je(t),null}else 2*wt()-o.renderingStartTime>ap&&a!==536870912&&(t.flags|=128,l=!0,si(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=wt(),e.sibling=null,n=la.current,n=l?n&os|Wi:n&os,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||Se?oi(t,n):(a=n,Q(oa,t,t),Q(la,a,t),ca===null&&(ca=t)),Se&&Ul(t,o.treeForkCount),e}return Je(t),null;case 22:case 23:return Qa(t),Fm(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Xc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&le(Au,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ql(Bt,t),Je(t),null;case 25:return null;case 30:return t.flags|=33554432,Je(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $T(e,t){switch(Em(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&xe)!==ie&&Ws(t),t):null;case 3:return ql(Bt,t),ut(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ea(t),null;case 31:if(t.memoizedState!==null){if(Qa(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");iu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&xe)!==ie&&Ws(t),t):null;case 13:if(Qa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");iu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&xe)!==ie&&Ws(t),t):null;case 19:return Gm(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 ut(t),null;case 10:return ql(t.type,t),null;case 22:case 23:return Qa(t),Fm(t),e!==null&&le(Au,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&xe)!==ie&&Ws(t),t):null;case 24:return ql(Bt,t),null;case 25:return null;default:return null}}function T0(e,t){switch(Em(t),t.tag){case 3:ql(Bt,t),ut(t);break;case 26:case 27:case 5:Ea(t);break;case 4:ut(t);break;case 31:t.memoizedState!==null&&Qa(t);break;case 13:Qa(t);break;case 19:Gm(t);break;case 10:ql(t.type,t);break;case 22:case 23:Qa(t),Fm(t),e!==null&&le(Au,t);break;case 24:ql(Bt,t)}}function ol(e){return(e.mode&xe)!==ie}function R0(e,t){ol(e)?(al(),ii(t,e),tl()):ii(t,e)}function kh(e,t,a){ol(e)?(al(),Cr(a,e,t),tl()):Cr(a,e,t)}function ii(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&Aa)!==ed&&(ms=!0),o=P(t,JE,a),(e&Aa)!==ed&&(ms=!1),o!==void 0&&typeof o!="function")){var n=void 0;n=(a.tag&eo)!==0?"useLayoutEffect":(a.tag&Aa)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then=="function"?`
127
-
128
- It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
129
-
130
- `+n+`(() => {
131
- async function fetchData() {
132
- // You can await here
133
- const response = await MyAPI.getData(someId);
134
- // ...
135
- }
136
- fetchData();
137
- }, [someId]); // Or [] if effect doesn't need props or state
138
-
139
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,P(t,function(i,f){console.error("%s must not return anything besides a function, which is used for clean-up.%s",i,f)},n,u)}a=a.next}while(a!==l)}}catch(i){_e(t,t.return,i)}}function Cr(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var u=o.inst,i=u.destroy;i!==void 0&&(u.destroy=void 0,(e&Aa)!==ed&&(ms=!0),l=t,P(l,$E,l,a,i),(e&Aa)!==ed&&(ms=!1))}o=o.next}while(o!==n)}}catch(f){_e(t,t.return,f)}}function D0(e,t){ol(e)?(al(),ii(t,e),tl()):ii(t,e)}function Oh(e,t,a){ol(e)?(al(),Cr(a,e,t),tl()):Cr(a,e,t)}function E0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||rs||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{P(e,MS,t,a)}catch(o){_e(e,e.return,o)}}}function KT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function WT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||rs||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(e)||"instance"));try{var l=gu(e.type,a),n=P(e,KT,t,l,o);a=UI,n!==void 0||a.has(e.type)||(a.add(e.type),P(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",J(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(u){_e(e,e.return,u)}}function M0(e,t,a){a.props=gu(e.type,e.memoizedProps),a.state=e.memoizedState,ol(e)?(al(),P(e,Wb,e,t,a),tl()):P(e,Wb,e,t,a)}function eR(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;var o=kl(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=aC(o)),a=a.ref;break;case 7:e.stateNode===null&&(a=new Ja(e),Ce(e,aD,a),e.stateNode=a),a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(ol(e))try{al(),e.refCleanup=t(a)}finally{tl()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",J(e)),t.current=a}}function ll(e,t){try{P(e,eR,e)}catch(a){_e(e,t,a)}}function ea(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{if(ol(e))try{al(),P(e,o)}finally{tl(e)}else P(e,o)}catch(l){_e(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(ol(e))try{al(),P(e,a,null)}finally{tl(e)}else P(e,a,null)}catch(l){_e(e,t,l)}else a.current=null}function k0(e,t,a,o){var l=e.memoizedProps,n=l.id,u=l.onCommit;l=l.onRender,t=t===null?"mount":"update",Uf&&(t="nested-update"),typeof l=="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof u=="function"&&u(n,t,o,a)}function tR(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",Uf&&(t="nested-update"),typeof l=="function"&&l(e,t,o,a)}function jc(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)sC(e.stateNode,t[a])}function O0(e){for(var t=e.return;t!==null&&(Uh(t)&&sC(e.stateNode,t.stateNode),!Bh(t));)t=t.return}function di(e){for(var t=e.return;t!==null&&(Uh(t)&&oD(e.stateNode,t.stateNode),!Bh(t));)t=t.return}function Bh(e){return e.tag===5||e.tag===3||e.tag===27}function Uh(e){return e&&e.tag===7&&e.stateNode!==null}function qh(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{P(e,ER,o,t,a,e)}catch(l){_e(e,e.return,l)}}function Hh(e,t,a){try{P(e,kR,e.stateNode,e.type,a,t,e)}catch(o){_e(e,e.return,o)}}function B0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cn(e.type)||e.tag===4}function zh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B0(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&&Cn(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 Ph(e,t,a,o){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(Jv(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(l,t)):(Jv(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(l),l=a._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Yo)),jc(e,o),ze=!0;else if(l!==4&&(l===27&&(jc(e,o),o=null,Cn(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(Ph(e,t,a,o),e=e.sibling;e!==null;)Ph(e,t,a,o),e=e.sibling}function Yc(e,t,a,o){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?a.insertBefore(l,t):a.appendChild(l),jc(e,o),ze=!0;else if(l!==4&&(l===27&&(jc(e,o),o=null,Cn(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Yc(e,t,a,o),e=e.sibling;e!==null;)Yc(e,t,a,o),e=e.sibling}function aR(e){for(var t,a=e.return;a!==null;){if(B0(a)){t=a;break}a=a.return}a=null;for(var o=e.return;o!==null;){if(Uh(o)){var l=o.stateNode;a===null?a=[l]:a.push(l)}if(Bh(o))break;o=o.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,o=zh(e),Yc(e,o,t,a);break;case 5:o=t.stateNode,t.flags&32&&(Zv(o),t.flags&=-33),t=zh(e),Yc(e,t,o,a);break;case 3:case 4:t=t.stateNode.containerInfo,o=zh(e),Ph(e,o,t,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function U0(e){var t=e.stateNode,a=e.memoizedProps;try{P(e,fD,e.type,a,t,e)}catch(o){_e(e,e.return,o)}}function q0(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(jf=!0)}function H0(){var e=Ll;return Ll=null,e}function br(e,t,a,o,l){return Ha=0,(t=z0(e.child,t,a,o,l))&&e._debugTask!=null&&qa===null&&(qa=e._debugTask),t}function z0(e,t,a,o,l){for(var n=!1;e!==null;){if(e.tag===5){var u=e.stateNode;if(o!==null){var i=gg(u);o.push(i),i.view&&(n=!0)}else n||gg(u).view&&(n=!0);jf=!0,Wv(u,Ha===0?t:t+"_"+Ha,a),Ha++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||z0(e.child,t,a,o,l)&&(n=!0));e=e.sibling}return n}function nl(e,t){for(;e!==null;)e.tag===5?eC(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||nl(e.child,t)),e=e.sibling}function Qc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Qc(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error("Found a pair with an auto name. This is a bug in React.");var a=t.name;t=Ol(t.default,t.share),t!=="none"&&(br(e,a,t,null,!1)||nl(e.child,!1))}e=e.sibling}}function Nh(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,l=kl(o,a),n=Ol(o.default,a.paired?o.share:o.enter);n!=="none"?br(e,l,n,null,!1)?(Qc(e),a.paired||t||Ar(e,o.onEnter)):nl(e.child,!1):Qc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Nh(e,t),e=e.sibling;else Qc(e)}function _h(e){if(to!==null&&to.size!==0){var t=to;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 a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var l=t.get(o);if(l!==void 0){var n=Ol(a.default,a.share);if(n!=="none"&&(br(e,o,n,null,!1)?(n=e.stateNode,l.paired=n,n.paired=l,Ar(e,a.onShare)):nl(e.child,!1)),t.delete(o),t.size===0)break}}}_h(e)}e=e.sibling}}}function Fh(e){if(e.tag===30){var t=e.memoizedProps,a=kl(t,e.stateNode),o=to!==null?to.get(a):void 0,l=Ol(t.default,o!==void 0?t.share:t.exit);l!=="none"&&(br(e,a,l,null,!1)?o!==void 0?(l=e.stateNode,o.paired=l,l.paired=o,to.delete(a),Ar(e,t.onShare)):Ar(e,t.onExit):nl(e.child,!1)),to!==null&&_h(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Fh(e),e=e.sibling;else to!==null&&_h(e)}function P0(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=kl(t,e.stateNode);t=Ol(t.default,t.update),e.flags&=-5,t!=="none"&&br(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&P0(e);e=e.sibling}}function Vh(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,nl(e.child,!1))}Vh(e)}e=e.sibling}}function Zc(e){if(e.tag===30)e.stateNode.paired=null,nl(e.child,!1),Vh(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Zc(e),e=e.sibling;else Vh(e)}function N0(e){for(e=e.child;e!==null;)e.tag===30?nl(e.child,!1):(e.subtreeFlags&33554432)!==0&&N0(e),e=e.sibling}function Gh(e,t,a,o,l,n,u){for(var i=!1;t!==null;){if(t.tag===5){var f=t.stateNode;if(n!==null&&Ha<n.length){var p=n[Ha],g=gg(f);(p.view||g.view)&&(i=!0);var I;if(I=(e.flags&4)===0)if(g.clip)I=!0;else{I=p.rect;var b=g.rect;I=I.y!==b.y||I.x!==b.x||I.height!==b.height||I.width!==b.width}I&&(e.flags|=4),g.abs?g=!p.abs:(p=p.rect,g=g.rect,g=p.height!==g.height||p.width!==g.width),g&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Wv(f,Ha===0?a:a+"_"+Ha,l),i&&(e.flags&4)!==0||(Ll===null&&(Ll=[]),Ll.push(f,Ha===0?o:o+"_"+Ha,t.memoizedProps)),Ha++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&u?e.flags|=t.flags&32:Gh(e,t.child,a,o,l,n,u)&&(i=!0));t=t.sibling}return i}function _0(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,l=kl(a,o),n=Ol(a.default,a.update);if(t){o=o.clones;var u=o===null?null:o.map(VR)}else u=e.memoizedState,e.memoizedState=null;o=e;var i=e.child,f=l;Ha=0,n=Gh(o,i,f,l,n,u,!1),(e.flags&4)!==0&&n&&(t||Ar(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&_0(e,t);e=e.sibling}}function F0(e){var t=e.memoizedProps.name;if(t!=null&&t!=="auto"){var a=Yf.get(t);if(a!==void 0){if(a!==e&&a!==e.alternate&&!qI[t]){qI[t]=!0;var o=JSON.stringify(t);P(e,function(){console.error("There are two <ViewTransition name=%s> components with the same name mounted at the same time. This is not supported and will cause View Transitions to error. Try to use a more unique name e.g. by using a namespace prefix and adding the id of an item to the name.",o)}),P(a,function(){console.error("The existing <ViewTransition name=%s> duplicate has this stack trace.",o)})}}else Yf.set(t,e)}}function V0(e){var t=e.memoizedProps.name;if(t!=null&&t!=="auto"){var a=Yf.get(t);a===void 0||a!==e&&a!==e.alternate||Yf.delete(t)}}function G0(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function oR(e,t,a){if(e=e.containerInfo,uL=vs,e=Qx(e),vm(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{o.nodeType,u.nodeType}catch{o=null;break e}var i=0,f=-1,p=-1,g=0,I=0,b=e,R=null;t:for(;;){for(var U;b!==o||n!==0&&b.nodeType!==3||(f=i+n),b!==u||l!==0&&b.nodeType!==3||(p=i+l),b.nodeType===3&&(i+=b.nodeValue.length),(U=b.firstChild)!==null;)R=b,b=U;for(;;){if(b===e)break t;if(R===o&&++g===n&&(f=i),R===u&&++I===l&&(p=i),(U=b.nextSibling)!==null)break;b=R,R=b.parentNode}b=U}o=f===-1||p===-1?null:{start:f,end:p}}else o=null}o=o||{start:0,end:0}}else o=null;for(rL={focusedElem:e,selectionRange:o},vs=!1,a=(a&335544064)===a,Yt=t,t=a?9270:1024;Yt!==null;){if(e=Yt,a&&(o=e.deletions,o!==null))for(n=0;n<o.length;n++)a&&Fh(o[n]);if(e.alternate===null&&(e.flags&2)!==0)a&&q0(e),Jc(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&Fh(o),Jc(a);continue}else if(o!==null&&o.memoizedState!==null){a&&q0(e),Jc(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,Yt=o):(a&&P0(e),Jc(a))}}to=null}function Jc(e){for(;Yt!==null;){var t=Yt,a=t,o=e,l=a.alternate,n=a.flags;switch(a.tag){case 0:case 11:case 15:break;case 1:(n&1024)!==0&&l!==null&&WT(a,l);break;case 3:if((n&1024)!==0){if(o=a.stateNode.containerInfo,a=o.nodeType,a===9)Lg(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Lg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:o&&l!==null&&(o=l,l=a,a=kl(o.memoizedProps,o.stateNode),l=l.memoizedProps,l=Ol(l.default,l.update),l!=="none"&&br(o,a,l,o.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(o=t.sibling,o!==null){o.return=t.return,Yt=o;break}Yt=t.return}}function X0(e,t,a){var o=ja(),l=$o(),n=Wo(),u=el(),i=a.flags;switch(a.tag){case 0:case 11:case 15:Oo(e,a),i&4&&R0(a,eo|vo);break;case 1:if(Oo(e,a),i&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||rs||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(a)||"instance")),ol(a)?(al(),P(a,wy,a,e),tl()):P(a,wy,a,e);else{var f=gu(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||rs||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(a)||"instance")),ol(a)?(al(),P(a,Jb,a,e,f,t,e.__reactInternalSnapshotBeforeUpdate),tl()):P(a,Jb,a,e,f,t,e.__reactInternalSnapshotBeforeUpdate)}i&64&&E0(a),i&512&&ll(a,a.return);break;case 3:if(t=Hl(),Oo(e,a),i&64&&(i=a.updateQueue,i!==null)){if(f=null,a.child!==null)switch(a.child.tag){case 27:case 5:f=a.child.stateNode;break;case 1:f=a.child.stateNode}try{P(a,MS,i,f)}catch(g){_e(a,a.return,g)}}e.effectDuration+=Lc(t);break;case 27:t===null&&i&4&&U0(a);case 26:case 5:if(Oo(e,a),t===null){if(i&4)qh(a);else if(i&64){e=a.type,t=a.memoizedProps,f=a.stateNode;try{P(a,MR,f,e,t,a)}catch(g){_e(a,a.return,g)}}}i&512&&ll(a,a.return);break;case 12:if(i&4){i=Hl(),Oo(e,a),e=a.stateNode,e.effectDuration+=Ks(i);try{P(a,k0,a,t,Yl,e.effectDuration)}catch(g){_e(a,a.return,g)}}else Oo(e,a);break;case 31:Oo(e,a),i&4&&Z0(e,a);break;case 13:Oo(e,a),i&4&&J0(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=gR.bind(null,a),uD(e,i))));break;case 22:if(i=a.memoizedState!==null||jt,!i){var p=t!==null&&t.memoizedState!==null||Xe;t=jt,f=Xe,jt=i,(Xe=p)&&!f?(i=Qf,(a.subtreeFlags&8772)!==0&&(i|=Ny),co(e,a,i),(a.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&nc(a,ae,ue)):Oo(e,a),jt=t,Xe=f}break;case 30:i&18874368&&F0(a),Oo(e,a),i&512&&ll(a,a.return);break;case 7:i&512&&ll(a,a.return);default:Oo(e,a)}(a.mode&xe)!==ie&&0<=ae&&0<=ue&&((gt||.05<it)&&Zo(a,ae,ue,it,st),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<ue-ae&&(G0(a.return.alternate,a.return)||Qo(a,ae,ue,"Mount"))),Ya(o),Ko(l),st=n,gt=u}function Xh(e,t){for(e=e.child;e!==null;)j0(e,t),e=e.sibling}function j0(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;t?P(e,HR,a):P(e,NR,e.stateNode,e.memoizedProps)}catch(n){_e(e,e.return,n)}jh(e,t);break;case 6:try{var o=e.stateNode;t?P(e,zR,o):P(e,_R,o,e.memoizedProps),ze=!0}catch(n){_e(e,e.return,n)}break;case 18:try{var l=e.stateNode;t?P(e,qR,l):P(e,PR,e.stateNode)}catch(n){_e(e,e.return,n)}break;case 22:case 23:e.memoizedState===null&&Xh(e,t);break;default:Xh(e,t)}}function jh(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:j0(a,o);break e;case 22:a.memoizedState===null&&jh(a,o);break e;default:jh(a,o)}}e=e.sibling}}function Y0(e){var t=e.alternate;t!==null&&(e.alternate=null,Y0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xt(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ko(e,t,a){for(a=a.child;a!==null;)Q0(e,t,a),a=a.sibling}function Q0(e,t,a){if(ia&&typeof ia.onCommitFiberUnmount=="function")try{ia.onCommitFiberUnmount(zr,a)}catch(p){dl||(dl=!0,console.error("React instrumentation encountered an error: %o",p))}var o=ja(),l=$o(),n=Wo(),u=el();switch(a.tag){case 26:Xe||ea(a,t),ko(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Xe&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Xe||ea(a,t),di(a);var i=qt,f=za;Cn(a.type)&&(qt=a.stateNode,za=!1),ko(e,t,a),P(a,mC,a.stateNode,a.type,a.memoizedProps),qt=i,za=f;break;case 5:Xe||ea(a,t),di(a);case 6:if(a.tag===6&&di(a),i=qt,f=za,qt=null,ko(e,t,a),qt=i,za=f,qt!==null)if(za)try{P(a,UR,qt,a.stateNode),ze=!0}catch(p){_e(a,t,p)}else try{P(a,BR,qt,a.stateNode),ze=!0}catch(p){_e(a,t,p)}break;case 18:qt!==null&&(za?(e=qt,$v(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):$v(qt,a.stateNode));break;case 4:i=qt,f=za,qt=a.stateNode.containerInfo,za=!0,ko(e,t,a),qt=i,za=f;break;case 0:case 11:case 14:case 15:Cr(Aa,a,t),Xe||kh(a,t,eo),ko(e,t,a);break;case 1:Xe||(ea(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&M0(a,t,i)),ko(e,t,a);break;case 21:ko(e,t,a);break;case 22:Xe=(i=Xe)||a.memoizedState!==null,ko(e,t,a),Xe=i;break;case 30:a.flags&18874368&&V0(a),ea(a,t),ko(e,t,a);break;case 7:Xe||ea(a,t),ko(e,t,a);break;default:ko(e,t,a)}(a.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(a,ae,ue,it,st),Ya(o),Ko(l),st=n,gt=u}function Z0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{P(t,sD,e)}catch(a){_e(t,t.return,a)}}}function J0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{P(t,iD,e)}catch(a){_e(t,t.return,a)}}function lR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new HI),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new HI),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function $c(e,t){var a=lR(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),cl)if(ss!==null&&is!==null)mi(is,ss);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=yR.bind(null,e,o);o.then(l,l)}})}function La(e,t,a){var o=t.deletions;if(o!==null)for(var l=0;l<o.length;l++){var n=e,u=t,i=o[l],f=ja(),p=u;e:for(;p!==null;){switch(p.tag){case 27:if(Cn(p.type)){qt=p.stateNode,za=!1;break e}break;case 5:qt=p.stateNode,za=!1;break e;case 3:case 4:qt=p.stateNode.containerInfo,za=!0;break e}p=p.return}if(qt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Q0(n,u,i),qt=null,za=!1,(i.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&Qo(i,ae,ue,"Unmount"),Ya(f),n=i,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$0(t,e,a),t=t.sibling}function $0(e,t,a){var o=ja(),l=$o(),n=Wo(),u=el(),i=e.alternate,f=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(f&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var p=0;p<i.length;p++){var g=i[p];g.ref.impl=g.nextImpl}La(t,e,a),xa(e),f&4&&(Cr(Aa|vo,e,e.return),ii(Aa|vo,e),kh(e,e.return,eo|vo));break;case 1:La(t,e,a),xa(e),f&512&&(Xe||i===null||ea(i,i.return)),f&64&&jt&&(t=e.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(f=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=f===null?a:f.concat(a))));break;case 26:if(p=_o,La(t,e,a),xa(e),f&512&&(Xe||i===null||ea(i,i.return)),f&4)if(f=i!==null?i.memoizedState:null,a=e.memoizedState,i===null)if(a===null)if(e.stateNode===null)if(jt)e.stateNode=Qv(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,f=p.ownerDocument||p;t:switch(t){case"title":i=f.getElementsByTagName("title")[0],(!i||i[Ti]||i[aa]||i.namespaceURI===Nr||i.hasAttribute("itemprop"))&&(i=f.createElement(t),f.head.insertBefore(i,f.querySelector("head > title"))),ta(i,t,a),i[aa]=e,St(i),t=i;break e;case"link":if(p=xC("link","href",f).get(t+(a.href||""))){for(g=0;g<p.length;g++)if(i=p[g],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(g,1);break t}}i=f.createElement(t),ta(i,t,a),f.head.appendChild(i);break;case"meta":if(p=xC("meta","content",f).get(t+(a.content||""))){for(g=0;g<p.length;g++)if(i=p[g],Pe(a.content,"content"),i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(g,1);break t}}i=f.createElement(t),ta(i,t,a),f.head.appendChild(i);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+t+'". This is a bug in React.')}i[aa]=e,St(i),t=i}e.stateNode=t}else jt||wg(p,e.type,e.stateNode);else e.stateNode=LC(p,a,e.memoizedProps);else f!==a?(f===null?(t=i.stateNode,t===null||Xe||t.parentNode.removeChild(t)):f.count--,a===null?jt||wg(p,e.type,e.stateNode):LC(p,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Hh(e,e.memoizedProps,i.memoizedProps);break;case 27:La(t,e,a),xa(e),f&512&&(Xe||i===null||ea(i,i.return)),i!==null&&f&4&&Hh(e,e.memoizedProps,i.memoizedProps);break;case 5:if(p=xl,xl=!1,La(t,e,a),xl=p,xa(e),f&512&&(Xe||i===null||ea(i,i.return)),e.flags&32){t=e.stateNode;try{P(e,Zv,t),ze=!0}catch(U){_e(e,e.return,U)}}f&4&&e.stateNode!=null&&(t=e.memoizedProps,Hh(e,t,i!==null?i.memoizedProps:t)),f&1024&&(_y=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(La(t,e,a),xa(e),f&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");t=e.memoizedProps,a=i!==null?i.memoizedProps:t,f=e.stateNode;try{P(e,OR,f,a,t),ze=!0}catch(U){_e(e,e.return,U)}}break;case 3:if(p=Hl(),ze=!1,Lp=null,g=_o,_o=Si(t.containerInfo),La(t,e,a),_o=g,xa(e),f&4&&i!==null&&i.memoizedState.isDehydrated)try{P(e,rD,t.containerInfo)}catch(U){_e(e,e.return,U)}_y&&(_y=!1,K0(e)),t.effectDuration+=Lc(p),ze=!1;break;case 4:f=xl,xl=jt,i=fx(),p=_o,_o=Si(e.stateNode.containerInfo),La(t,e,a),xa(e),_o=p,ze&&ld&&(Zf=!0),ze=i,xl=f;break;case 12:f=Hl(),La(t,e,a),xa(e),e.stateNode.effectDuration+=Ks(f);break;case 31:La(t,e,a),xa(e),f&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,$c(e,t)));break;case 13:La(t,e,a),xa(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(tp=wt()),f&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,$c(e,t)));break;case 22:p=e.memoizedState!==null,g=i!==null&&i.memoizedState!==null;var I=jt,b=Xe,R=xl;jt=I||p,xl=R||p,Xe=b||g,La(t,e,a),Xe=b,xl=R,jt=I,g&&!p&&!I&&!b&&(e.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&nc(e,ae,ue),xa(e),f&8192&&(t=e.stateNode,t._visibility=p?t._visibility&~qi:t._visibility|qi,!p||i===null||g||jt||Xe||(t=Qf,a=g||Xe,i=jt,g=Xe,jt=p||jt,Xe=a,xn(e,t),(e.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&Qo(e,ae,ue,"Disconnect"),jt=i,Xe=g),!p&&xl||Xh(e,p)),f&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,$c(e,a))));break;case 19:La(t,e,a),xa(e),f&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,$c(e,t)));break;case 30:f&512&&(Xe||i===null||ea(i,i.return)),f=fx(),p=ld,g=(a&335544064)===a,I=e.memoizedProps,ld=g&&Ol(I.default,I.update)!=="none",La(t,e,a),xa(e),g&&i!==null&&ze&&(e.flags|=4),ld=p,ze=f;break;case 21:break;case 7:f&512&&(Xe||i===null||ea(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:La(t,e,a),xa(e)}(e.mode&xe)!==ie&&0<=ae&&0<=ue&&((gt||.05<it)&&Zo(e,ae,ue,it,st),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<ue-ae&&(G0(e.return.alternate,e.return)||Qo(e,ae,ue,"Mount"))),Ya(o),Ko(l),st=n,gt=u}function xa(e){var t=e.flags;if(t&2){try{P(e,aR,e)}catch(a){_e(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function K0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;K0(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vs=!0,t.reset(),vs=!1),e=e.sibling}}function Ir(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)W0(t,e),t=t.sibling;else _0(t,!1)}function W0(e,t){var a=e.alternate;if(a===null)Nh(e,!1);else switch(e.tag){case 3:if(Fy=Sl=!1,H0(),Ir(t,e),!Sl&&!Zf){if(e=Ll,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var l=e[o+1];eC(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}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"})),Fy=!0}Ll=null;break;case 5:Ir(t,e);break;case 4:o=Sl,Sl=!1,Ir(t,e),Sl&&(Zf=!0),Sl=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?Nh(e,!1):Ir(t,e));break;case 30:o=Sl,l=H0(),Sl=!1,Ir(t,e),Sl&&(e.flags|=4);var n=e.memoizedProps,u=e.stateNode;t=kl(n,u),u=kl(a.memoizedProps,u);var i=Ol(n.default,n.update);i==="none"?t=!1:(n=a.memoizedState,a.memoizedState=null,a=e.child,Ha=0,t=Gh(e,a,t,u,i,n,!0),Ha!==(n===null?0:n.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ar(e,e.memoizedProps.onUpdate),Ll=l):l!==null&&(l.push.apply(l,Ll),Ll=l),Sl=(e.flags&32)!==0?!0:o;break;default:Ir(t,e)}}function Oo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)X0(e,t.alternate,t),t=t.sibling}function ev(e,t){var a=ja(),o=$o(),l=Wo(),n=el();switch(e.tag){case 0:case 11:case 14:case 15:kh(e,e.return,eo),xn(e,t);break;case 1:ea(e,e.return);var u=e.stateNode;typeof u.componentWillUnmount=="function"&&M0(e,e.return,u),xn(e,t);break;case 27:(t&Qf)!==od&&P(e,mC,e.stateNode,e.type,e.memoizedProps);case 5:ea(e,e.return),e.tag!==5&&e.tag!==27||di(e),xn(e,t);break;case 6:di(e);break;case 26:ea(e,e.return),u=e.stateNode,e.memoizedState!==null||u===null||Xe||u.parentNode.removeChild(u),xn(e,t);break;case 22:e.memoizedState===null&&xn(e,t);break;case 30:e.flags&18874368&&V0(e),ea(e,e.return),xn(e,t);break;case 7:ea(e,e.return);default:xn(e,t)}(e.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(e,ae,ue,it,st),Ya(a),Ko(o),st=l,gt=n}function xn(e,t){for(e=e.child;e!==null;)ev(e,t),e=e.sibling}function tv(e,t,a,o){var l=ja(),n=$o(),u=Wo(),i=el(),f=a.flags,p=(o&Ny)!==od;switch(a.tag){case 0:case 11:case 15:co(e,a,o),R0(a,eo);break;case 1:if(co(e,a,o),t=a.stateNode,typeof t.componentDidMount=="function"&&P(a,wy,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{P(a,PT,t,e)}catch(I){_e(a,a.return,I)}}p&&f&64&&E0(a),ll(a,a.return);break;case 27:(o&Qf)!==od&&U0(a);case 5:a.tag!==5&&a.tag!==27||O0(a),co(e,a,o),p&&t===null&&f&4&&qh(a),ll(a,a.return);break;case 6:O0(a);break;case 26:var g=a.stateNode;a.memoizedState!==null||g===null||jt||wg(Si(g.ownerDocument),a.type,g),co(e,a,o),p&&t===null&&f&4&&qh(a),ll(a,a.return);break;case 12:if(p&&f&4){f=Hl(),co(e,a,o),p=a.stateNode,p.effectDuration+=Ks(f);try{P(a,k0,a,t,Yl,p.effectDuration)}catch(I){_e(a,a.return,I)}}else co(e,a,o);break;case 31:co(e,a,o),p&&f&4&&Z0(e,a);break;case 13:co(e,a,o),p&&f&4&&J0(e,a);break;case 22:a.memoizedState===null&&co(e,a,o),ll(a,a.return);break;case 30:co(e,a,o),f&18874368&&F0(a),ll(a,a.return);break;case 7:ll(a,a.return);default:co(e,a,o)}(a.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(a,ae,ue,it,st),Ya(l),Ko(n),st=u,gt=i}function co(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&~Ny,t=t.child;t!==null;)tv(e,t.alternate,t,a),t=t.sibling}function Yh(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&fu(e),a!=null&&$s(a))}function Qh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fu(t),e!=null&&$s(e))}function fo(e,t,a,o,l){var n=(a&335544064)===a;if(t.subtreeFlags&(n?10262:10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;)n=t.sibling,av(e,t,a,o,n!==null?n.actualStartTime:l),t=n;else n&&N0(t)}function av(e,t,a,o,l){var n=ja(),u=$o(),i=Wo(),f=el(),p=Rn,g=(a&335544064)===a;g&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Zc(t);var I=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&xe)!==ie&&0<t.actualStartTime&&(t.flags&1)!==0&&uc(t,t.actualStartTime,l,Pt,a),fo(e,t,a,o,l),I&2048&&D0(t,fa|vo);break;case 1:(t.mode&xe)!==ie&&0<t.actualStartTime&&((t.flags&128)!==0?bm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&uc(t,t.actualStartTime,l,Pt,a)),fo(e,t,a,o,l);break;case 3:var b=Hl(),R=Pt;Pt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,fo(e,t,a,o,l),Pt=R,g&&Fy&&(a=e.containerInfo,a=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,a.style.viewTransitionName==="root"&&(a.style.viewTransitionName=""),a=a.ownerDocument.documentElement,a!==null&&a.style.viewTransitionName==="none"&&(a.style.viewTransitionName="")),I&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fu(o),a!=null&&$s(a))),e.passiveEffectDuration+=Lc(b);break;case 12:if(I&2048){I=Hl(),fo(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=Ks(I);try{P(t,tR,t,t.alternate,Yl,e.passiveEffectDuration)}catch(U){_e(t,t.return,U)}}else fo(e,t,a,o,l);break;case 31:I=Pt,b=t.alternate!==null?t.alternate.memoizedState:null,g=t.memoizedState,b!==null&&g===null?(g=t.deletions,g!==null&&0<g.length&&g[0].tag===18?(Pt=!1,b=b.hydrationErrors,b!==null&&bm(t,t.actualStartTime,l,b)):Pt=!0):Pt=!1,fo(e,t,a,o,l),Pt=I;break;case 13:I=Pt,b=t.alternate!==null?t.alternate.memoizedState:null,g=t.memoizedState,b===null||b.dehydrated===null||g!==null&&g.dehydrated!==null?Pt=!1:(g=t.deletions,g!==null&&0<g.length&&g[0].tag===18?(Pt=!1,b=b.hydrationErrors,b!==null&&bm(t,t.actualStartTime,l,b)):Pt=!0),fo(e,t,a,o,l),Pt=I;break;case 23:break;case 22:R=t.stateNode,b=t.alternate,t.memoizedState!==null?(g&&b!==null&&b.memoizedState===null&&Zc(b),R._visibility&Vl?fo(e,t,a,o,l):ci(e,t,a,o,l)):(g&&b!==null&&b.memoizedState!==null&&Zc(t),R._visibility&Vl?fo(e,t,a,o,l):(R._visibility|=Vl,wr(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&xe)===ie||Pt||(e=t.actualStartTime,0<=e&&.05<l-e&&nc(t,e,l),0<=ae&&0<=ue&&.05<ue-ae&&nc(t,ae,ue)))),I&2048&&Yh(b,t);break;case 24:fo(e,t,a,o,l),I&2048&&Qh(t.alternate,t);break;case 30:g&&(I=t.alternate,I!==null&&(nl(I.child,!0),nl(t.child,!0))),fo(e,t,a,o,l);break;default:fo(e,t,a,o,l)}(t.mode&xe)!==ie&&((e=!Pt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<l-a&&Qo(t,a,l,"Mount")),0<=ae&&0<=ue&&((gt||.05<it)&&Zo(t,ae,ue,it,st),e&&.05<ue-ae&&Qo(t,ae,ue,"Mount"))),Ya(n),Ko(u),st=i,gt=f,Rn=p}function wr(e,t,a,o,l,n){for(l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var u=t.sibling;ov(e,t,a,o,l,u!==null?u.actualStartTime:n),t=u}}function ov(e,t,a,o,l,n){var u=ja(),i=$o(),f=Wo(),p=el(),g=Rn;l&&(t.mode&xe)!==ie&&0<t.actualStartTime&&(t.flags&1)!==0&&uc(t,t.actualStartTime,n,Pt,a);var I=t.flags;switch(t.tag){case 0:case 11:case 15:wr(e,t,a,o,l,n),D0(t,fa);break;case 23:break;case 22:var b=t.stateNode;t.memoizedState!==null?b._visibility&Vl?wr(e,t,a,o,l,n):ci(e,t,a,o,n):(b._visibility|=Vl,wr(e,t,a,o,l,n)),l&&I&2048&&Yh(t.alternate,t);break;case 24:wr(e,t,a,o,l,n),l&&I&2048&&Qh(t.alternate,t);break;default:wr(e,t,a,o,l,n)}(t.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(t,ae,ue,it,st),Ya(u),Ko(i),st=f,gt=p,Rn=g}function ci(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var u=e,i=a,f=o,p=t!==null?t.actualStartTime:l,g=Rn;(n.mode&xe)!==ie&&0<n.actualStartTime&&(n.flags&1)!==0&&uc(n,n.actualStartTime,p,Pt,i);var I=n.flags;switch(n.tag){case 22:ci(u,n,i,f,p),I&2048&&Yh(n.alternate,n);break;case 24:ci(u,n,i,f,p),I&2048&&Qh(n.alternate,n);break;default:ci(u,n,i,f,p)}Rn=g,n=t}}function yu(e,t,a){if(e.subtreeFlags&ku)for(e=e.child;e!==null;)lv(e,t,a),e=e.sibling}function lv(e,t,a){switch(e.tag){case 26:yu(e,t,a),e.flags&ku&&(e.memoizedState!==null?hD(a,_o,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&bC(a,e)));break;case 5:yu(e,t,a),e.flags&ku&&(e=e.stateNode,(t&335544128)===t&&bC(a,e));break;case 3:case 4:var o=_o;_o=Si(e.stateNode.containerInfo),yu(e,t,a),_o=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ku,ku=16777216,yu(e,t,a),ku=o):yu(e,t,a));break;case 30:if((e.flags&ku)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var l=e.stateNode;l.paired=null,to===null&&(to=new Map),to.set(o,l)}yu(e,t,a);break;default:yu(e,t,a)}}function nv(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 fi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=ja();Yt=o,sv(o,e),(o.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&Qo(o,ae,ue,"Unmount"),Ya(l)}nv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uv(e),e=e.sibling}function uv(e){var t=ja(),a=$o(),o=Wo(),l=el();switch(e.tag){case 0:case 11:case 15:fi(e),e.flags&2048&&Oh(e,e.return,fa|vo);break;case 3:var n=Hl();fi(e),e.stateNode.passiveEffectDuration+=Lc(n);break;case 12:n=Hl(),fi(e),e.stateNode.passiveEffectDuration+=Ks(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Vl&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Vl,Kc(e),(e.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&Qo(e,ae,ue,"Disconnect")):fi(e);break;default:fi(e)}(e.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(e,ae,ue,it,st),Ya(t),Ko(a),gt=l,st=o}function Kc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=ja();Yt=o,sv(o,e),(o.mode&xe)!==ie&&0<=ae&&0<=ue&&.05<ue-ae&&Qo(o,ae,ue,"Unmount"),Ya(l)}nv(e)}for(e=e.child;e!==null;)rv(e),e=e.sibling}function rv(e){var t=ja(),a=$o(),o=Wo(),l=el();switch(e.tag){case 0:case 11:case 15:Oh(e,e.return,fa),Kc(e);break;case 22:var n=e.stateNode;n._visibility&Vl&&(n._visibility&=~Vl,Kc(e));break;default:Kc(e)}(e.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(e,ae,ue,it,st),Ya(t),Ko(a),gt=l,st=o}function sv(e,t){for(;Yt!==null;){var a=Yt,o=a,l=t,n=ja(),u=$o(),i=Wo(),f=el();switch(o.tag){case 0:case 11:case 15:Oh(o,l,fa);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&fu(l));break;case 24:$s(o.memoizedState.cache)}if((o.mode&xe)!==ie&&0<=ae&&0<=ue&&(gt||.05<it)&&Zo(o,ae,ue,it,st),Ya(n),Ko(u),gt=f,st=i,o=a.child,o!==null)o.return=a,Yt=o;else e:for(a=e;Yt!==null;){if(o=Yt,n=o.sibling,u=o.return,Y0(o),o===a){Yt=null;break e}if(n!==null){n.return=u,Yt=n;break e}Yt=u}}}function nR(){aM.forEach(function(e){return e()})}function iv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||M.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Za(e){if((Ue&Nt)!==Qt&&pe!==0)return pe&-pe;var t=M.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Ru!==null&&Ft()===va&&(Ru=null),ug()):(e=Ft(),e===va&&(Ru=null),e)}function dv(){if(Na===0)if((pe&536870912)===0||Se){var e=gf;gf<<=1,(gf&3932160)===0&&(gf=262144),Na=e}else Na=536870912;return e=oa.current,e!==null&&(e.flags|=32),Na}function Ar(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=aC(kl(e.memoizedProps,a))),fs===null&&(fs=[]),fs.push(t.bind(null,o))}}function ht(e,t,a){if(ms&&console.error("useInsertionEffect must not schedule updates."),Ky&&(sp=!0),(e===Ke&&(je===Bu||je===Uu)||e.cancelPendingCommit!==null)&&(Rr(e,0),Sn(e,pe,Na,!1)),Dl(e,a),(Ue&Nt)!==Qt&&e===Ke){if(il)switch(t.tag){case 0:case 11:case 15:e=be&&J(be)||"Unknown",ZI.has(e)||(ZI.add(e),t=J(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:QI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),QI=!0)}}else cl&&ce(e,t,a),xR(t),e===Ke&&((Ue&Nt)===Qt&&(_n|=a),dt===Pn&&Sn(e,pe,Na,!1)),ul(e)}function cv(e,t,a){if((Ue&(Nt|ao))!==Qt)throw Error("Should not already be working.");if(pe!==0&&be!==null){var o=be,l=wt();switch(Fb){case sd:case Bu:var n=Vi;at&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,Ua,void 0,"primary-light")):console.timeStamp("Suspended",n,l,Ua,void 0,"primary-light"));break;case Uu:n=Vi,at&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,Ua,void 0,"primary-light")):console.timeStamp("Action",n,l,Ua,void 0,"primary-light"));break;default:at&&(o=l-Vi,3>o||console.timeStamp("Blocked",Vi,l,Ua,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||au(e,t))?rR(e,t):Jh(e,t,!0);var u=a;do{if(n===Kl){ds&&!a&&Sn(e,t,0,!1),t=je,Vi=At(),Fb=t;break}else{if(o=wt(),l=e.current.alternate,u&&!uR(l)){ra(t),l=Xt,n=o,!at||n<=l||(yt?yt.run(console.timeStamp.bind(console,"Teared Render",l,n,De,Te,"error")):console.timeStamp("Teared Render",l,n,De,Te,"error")),Lu(t,o),n=Jh(e,t,!1),u=!1;continue}if(n===Ou){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){ra(t),Im(Xt,o,t,yt),Lu(t,o),t=i;e:{o=e,n=u,u=dd;var f=o.current.memoizedState.isDehydrated;if(f&&(Rr(o,i).flags|=256),i=Jh(o,i,!1),i!==Ou&&i!==rd){if(Xy&&!f){o.errorRecoveryDisabledLanes|=n,_n|=n,n=Pn;break e}o=Ta,Ta=u,o!==null&&(Ta===null?Ta=o:Ta.push.apply(Ta,o))}n=i}if(u=!1,n!==Ou)continue;o=wt()}}if(n===ud){ra(t),Im(Xt,o,t,yt),Lu(t,o),Rr(e,0),Sn(e,t,0,!0);break}e:{switch(a=e,n){case Kl:case ud:throw Error("Root did not complete. This is a bug in React.");case Pn:if((t&4194048)!==t&&(t&62914560)!==t)break;case rd:ra(t),Kx(Xt,o,t,yt),Lu(t,o),l=t,(l&127)!==0?Of=o:(l&4194048)!==0&&(Bf=o),Sn(a,t,Na,!Wl);break e;case Ou:Ta=null;break;case Jf:case zI:break;default:throw Error("Unknown root exit status.")}if(M.actQueue!==null)$h(a,l,t,Ta,cd,ep,Na,_n,qu,Wl,n,null,null,Xt,o);else{if((t&62914560)===t&&(u=tp+_I-wt(),10<u)){if(Sn(a,t,Na,!Wl),sr(a,0,!0)!==0)break e;_a=t,a.timeoutHandle=iL(fv.bind(null,a,l,Ta,cd,ep,t,Na,_n,qu,Wl,n,"Throttled",Xt,o),u);break e}fv(a,l,Ta,cd,ep,t,Na,_n,qu,Wl,n,null,Xt,o)}}}break}while(!0);ul(e)}function fv(e,t,a,o,l,n,u,i,f,p,g,I,b,R){e.timeoutHandle=Fu;var U=t.subtreeFlags,j=(n&335544064)===n,W=null;if((j||U&8192||(U&16785408)===16785408)&&(W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yo},to=null,lv(t,n,W),j&&(U=W,j=e.containerInfo,j=(j.nodeType===9?j:j.ownerDocument).__reactViewTransition,j!=null&&(U.count++,U.waitingForViewTransition=!0,U=bi.bind(U),j.finished.then(U,U))),U=(n&62914560)===n?tp-wt():(n&4194048)===n?NI-wt():0,U=gD(W,U),U!==null)){_a=n,e.cancelPendingCommit=U($h.bind(null,e,t,n,a,o,l,u,i,f,p,g,W,W.waitingForViewTransition?"Waiting for the previous Animation":0<W.count?0<W.imgCount?"Suspended on CSS and Images":"Suspended on CSS":W.imgCount===1?"Suspended on an Image":0<W.imgCount?"Suspended on Images":null,b,R)),Sn(e,n,u,!p);return}$h(e,t,n,a,o,l,u,i,f,p,g,W,I,b,R)}function uR(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!Ia(n(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Sn(e,t,a,o){t=Ps(e,t),t&=~Wf,t&=~_n,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-Sa(l),u=1<<n;o[n]=-1,l&=~u}a!==0&&_s(e,a,t)}function Tr(){return(Ue&(Nt|ao))===Qt?(hi(0,!1),!1):!0}function Zh(){if(be!==null){if(je===Pa)var e=be.return;else e=be,mc(),Jm(e),as=null,Ki=0,e=be;for(;e!==null;)T0(e.alternate,e),e=e.return;be=null}}function Lu(e,t){(e&127)!==0&&(kn=t),(e&4194048)!==0&&(zo=t),(e&62914560)!==0&&(vy=t),(e&2080374784)!==0&&(Cy=t)}function Rr(e,t){at&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Te,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Te,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Te,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Te,"primary-light"));var a=Xt;if(Xt=At(),pe!==0&&0<a){if(ra(pe),dt===Jf||dt===Pn)Kx(a,Xt,t,yt);else{var o=Xt,l=yt;if(at&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",u=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,u,a,o,De,Te,n)):console.timeStamp(u,a,o,De,Te,n)}}Lu(pe,Xt)}if(a=yt,yt=null,(t&127)!==0){yt=Ni,l=0<=hl&&hl<kn?kn:hl,o=0<=bu&&bu<kn?kn:bu,n=0<=o?o:0<=l?l:Xt,0<=Of?(ra(2),Wx(Of,n,t,a)):(wu&127)!==0&&(ra(2),rn(kn,n,qa)),a=l;var i=o,f=_i,p=0<Wr,g=On===Pi,I=On===kf;if(l=Xt,o=Ni,n=Ly,u=xy,at){if(De="Blocking",0<a?a>l&&(a=l):a=l,0<i?i>a&&(i=a):i=a,f!==null&&a>i){var b=p?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,p?"Consecutive":"Event: "+f,i,a,De,Te,b)):console.timeStamp(p?"Consecutive":"Event: "+f,i,a,De,Te,b)}l>a&&(i=g?"error":(t&738197653)===t?"tertiary-light":"primary-light",g=I?"Promise Resolved":g?"Cascading Update":5<l-a?"Update Blocked":"Update",I=[],u!=null&&I.push(["Component name",u]),n!=null&&I.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:I,track:De,trackGroup:Te,color:i}}},o?o.run(performance.measure.bind(performance,g,a)):performance.measure(g,a),performance.clearMeasures(g))}hl=-1.1,On=0,xy=Ly=null,Of=-1.1,Wr=bu,bu=-1.1,kn=At()}return(t&4194048)!==0&&(yt=Fi,l=0<=Zl&&Zl<zo?zo:Zl,a=0<=So&&So<zo?zo:So,o=0<=Bn&&Bn<zo?zo:Bn,n=0<=o?o:0<=a?a:Xt,0<=Bf?(ra(256),Wx(Bf,n,t,yt)):(wu&4194048)!==0&&(ra(256),rn(zo,n,qa)),I=o,i=Iu,f=0<Un,p=Sy===kf,n=Xt,o=Fi,u=Nb,g=_b,at&&(De="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<I?I>l&&(I=l):I=l,l>I&&i!==null&&(b=f?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+i,I,l,De,Te,b)):console.timeStamp(f?"Consecutive":"Event: "+i,I,l,De,Te,b)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,De,Te,"primary-dark")):console.timeStamp("Action",l,a,De,Te,"primary-dark")),n>a&&(l=p?"Promise Resolved":5<n-a?"Update Blocked":"Update",I=[],g!=null&&I.push(["Component name",g]),u!=null&&I.push(["Method name",u]),a={start:a,end:n,detail:{devtools:{properties:I,track:De,trackGroup:Te,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a),performance.clearMeasures(l))),So=Zl=-1.1,Sy=0,Bf=-1.1,Un=Bn,Bn=-1.1,zo=At()),(t&62914560)!==0&&(wu&62914560)!==0&&(ra(4194304),rn(vy,Xt,qa)),(t&2080374784)!==0&&(wu&2080374784)!==0&&(ra(268435456),rn(Cy,Xt,qa)),a=e.timeoutHandle,a!==Fu&&(e.timeoutHandle=Fu,hM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),_a=0,Zh(),Ke=e,be=a=Bl(e.current,null),pe=t,je=Pa,oo=null,Wl=!1,ds=au(e,t),Xy=!1,dt=Kl,qu=Na=Wf=_n=Nn=0,Ta=dd=null,ep=!1,vl=Ps(e,t),rc(),e=Ob(),1e3<e-kb&&(M.recentlyCreatedOwnerStacks=0,kb=e),Po.discardPendingWarnings(),a}function pv(e,t){de=null,M.H=Gf,M.getCurrentStack=null,il=!1,Ka=null,t===ts||t===zf?(t=CS(),je=sd):t===Ay?(t=CS(),je=PI):je=t===Hy?Gy:t!==null&&typeof t=="object"&&typeof t.then=="function"?id:$f,oo=t;var a=be;a===null?(dt=ud,Nc(e,Xa(t,e.current))):a.mode&xe&&qm(a)}function mv(){var e=oa.current;return e===null?!0:(pe&4194048)===pe?ca===null:(pe&62914560)===pe||(pe&536870912)!==0?e===ca:!1}function hv(){var e=M.H;return M.H=Gf,e===null?Gf:e}function gv(){var e=M.A;return M.A=tM,e}function Wc(e){yt===null&&(yt=e._debugTask==null?null:e._debugTask)}function ef(){dt=Pn,Wl||(pe&4194048)!==pe&&oa.current!==null||(ds=!0),(Nn&134217727)===0&&(_n&134217727)===0||Ke===null||Sn(Ke,pe,Na,!1)}function Jh(e,t,a){var o=Ue;Ue|=Nt;var l=hv(),n=gv();if(Ke!==e||pe!==t){if(cl){var u=e.memoizedUpdaters;0<u.size&&(mi(e,pe),u.clear()),bt(e,t)}cd=null,Rr(e,t)}t=!1,u=dt;e:do try{if(je!==Pa&&be!==null){var i=be,f=oo;switch(je){case Gy:Zh(),u=rd;break e;case sd:case Bu:case Uu:case id:oa.current===null&&(t=!0);var p=je;if(je=Pa,oo=null,Dr(e,i,f,p),a&&ds){u=Kl;break e}break;default:p=je,je=Pa,oo=null,Dr(e,i,f,p)}}yv(),u=dt;break}catch(g){pv(e,g)}while(!0);return t&&e.shellSuspendCounter++,mc(),Ue=o,M.H=l,M.A=n,be===null&&(Ke=null,pe=0,rc()),u}function yv(){for(;be!==null;)Lv(be)}function rR(e,t){var a=Ue;Ue|=Nt;var o=hv(),l=gv();if(Ke!==e||pe!==t){if(cl){var n=e.memoizedUpdaters;0<n.size&&(mi(e,pe),n.clear()),bt(e,t)}cd=null,ap=wt()+FI,Rr(e,t)}else ds=au(e,t);e:do try{if(je!==Pa&&be!==null)t:switch(t=be,n=oo,je){case $f:je=Pa,oo=null,Dr(e,t,n,$f);break;case Bu:case Uu:if(SS(n)){je=Pa,oo=null,xv(t);break}t=function(){je!==Bu&&je!==Uu||Ke!==e||(je=Kf),ul(e)},n.then(t,t);break e;case sd:je=Kf;break e;case PI:je=Vy;break e;case Kf:SS(n)?(je=Pa,oo=null,xv(t)):(je=Pa,oo=null,Dr(e,t,n,Kf));break;case Vy:var u=null;switch(be.tag){case 26:u=be.memoizedState;case 5:case 27:var i=be;if(u?vC(u):i.stateNode.complete){je=Pa,oo=null;var f=i.sibling;if(f!==null)be=f;else{var p=i.return;p!==null?(be=p,tf(p)):be=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}je=Pa,oo=null,Dr(e,t,n,Vy);break;case id:je=Pa,oo=null,Dr(e,t,n,id);break;case Gy:Zh(),dt=rd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}M.actQueue!==null?yv():sR();break}catch(g){pv(e,g)}while(!0);return mc(),M.H=o,M.A=l,Ue=a,be!==null?Kl:(Ke=null,pe=0,rc(),dt)}function sR(){for(;be!==null&&!OD();)Lv(be)}function Lv(e){var t=e.alternate;(e.mode&xe)!==ie?(Um(e),t=P(e,Eh,t,e,vl),qm(e)):t=P(e,Eh,t,e,vl),e.memoizedProps=e.pendingProps,t===null?tf(e):be=t}function xv(e){var t=P(e,iR,e);e.memoizedProps=e.pendingProps,t===null?tf(e):be=t}function iR(e){var t=e.alternate,a=(e.mode&xe)!==ie;switch(a&&Um(e),e.tag){case 15:case 0:t=x0(t,e,e.pendingProps,e.type,void 0,pe);break;case 11:t=x0(t,e,e.pendingProps,e.type.render,e.ref,pe);break;case 5:Jm(e);var o=e;o===Gt&&(Se?(pc(o),o.tag===5&&o.stateNode!=null&&(et=o.stateNode)):(pc(o),Se=!0));default:T0(t,e),e=be=uS(e,vl),t=Eh(t,e,vl)}return a&&qm(e),t}function Dr(e,t,a,o){mc(),Jm(t),as=null,Ki=0;var l=t.return;try{if(jT(e,l,t,a,pe)){dt=ud,Nc(e,Xa(a,e.current)),be=null;return}}catch(n){if(l!==null)throw be=l,n;dt=ud,Nc(e,Xa(a,e.current)),be=null;return}t.flags&32768?(Se||o===$f?e=!0:ds||(pe&536870912)!==0?e=!1:(Wl=e=!0,(o===Bu||o===Uu||o===sd||o===id)&&(o=oa.current,o!==null&&o.tag===13&&(o.flags|=16384))),Sv(t,e)):tf(t)}function tf(e){var t=e;do{if((t.flags&32768)!==0){Sv(t,Wl);return}var a=t.alternate;if(e=t.return,Um(t),a=P(t,JT,a,t,vl),(t.mode&xe)!==ie&&hS(t),a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);dt===Kl&&(dt=zI)}function Sv(e,t){do{var a=$T(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if((e.mode&xe)!==ie){hS(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);dt=rd,be=null}function $h(e,t,a,o,l,n,u,i,f,p,g,I,b,R,U){e.cancelPendingCommit=null;do pi();while(ct!==Cl);if(Po.flushLegacyContextWarning(),Po.flushPendingUnsafeLifecycleWarnings(),(Ue&(Nt|ao))!==Qt)throw Error("Should not already be working.");if(ra(a),g===Ou)Im(R,U,a,yt);else if(o!==null){if(p=t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,n=yt,at&&!(U<=R)){g=[];for(var j=0;j<o.length;j++){var W=o[j].value;g.push(["Recoverable Error",typeof W=="object"&&W!==null&&typeof W.message=="string"?String(W.message):String(W)])}R={start:R,end:U,detail:{devtools:{color:"primary-dark",track:De,trackGroup:Te,tooltipText:p?"Hydration Failed":"Recovered after Error",properties:g}}},n?n.run(performance.measure.bind(performance,"Recovered",R)):performance.measure("Recovered",R),performance.clearMeasures("Recovered")}}else n=yt,!at||U<=R||(p=(a&738197653)===a?"tertiary-dark":"primary-dark",g=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,g,R,U,De,Te,p)):console.timeStamp(g,R,U,De,Te,p));if(t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e===Ke&&(be=Ke=null,pe=0),Hu=t,Fo=e,_a=a,Jy=l,jI=o,np=U,up=b,lo=op,$y=null,dR(e,t,a,u,i,f,I,b,U)}}function dR(e,t,a,o,l,n,u,i,f){var p=t.lanes|t.childLanes;if(Zy=p,p|=py,jo(e,a,p,o,l,n),fs=null,(a&335544064)===a?(ps=UT(e),o=10262):(ps=null,o=10256),t.actualDuration!==0||(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,LR(Hr,function(){return Ld=window.event,lo===op&&(lo=jy),tg(),null})):(e.callbackNode=null,e.callbackPriority=0),Ql=null,Yl=At(),i!==null&&OT(f,Yl,i,yt),jf=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,f=Fe.p,Fe.p=va,o=Ue,Ue|=ao;try{oR(e,t,a)}finally{Ue=o,Fe.p=f,M.T=i}}ct=GI,jf?(wu|=a,qa=null,cs=YR(u,e.containerInfo,ps,Kh,Wh,mR,eg,tg,cR,fR,pR.bind(null,a))):(Kh(),Wh(),eg())}function cR(e){if(ct!==Cl){var t=Fo.onRecoverableError;t(e,vv(null))}}function fR(e){Ho=At(),tS(up===null?np:Yl,Ho,Ql,lo===fd,yt),up=$y=e}function pR(e){if((wu&e)!==0){var t=qa;wu&=~e,qa=null,(e&4194048)!==0&&(pe&4194048)===0&&(_a&4194048)===0&&(ra(256),rn(zo,wt(),t)),(e&62914560)!==0&&(pe&62914560)===0&&(_a&62914560)===0&&(ra(4194304),rn(vy,wt(),t)),(e&2080374784)!==0&&(pe&2080374784)===0&&(_a&2080374784)===0&&(ra(268435456),rn(Cy,wt(),t))}}function mR(){ct===Yy&&(ct=Cl,W0(Hu,Fo),ct=Qy)}function Kh(){if(ct===GI){ct=Cl;var e=Fo,t=Hu,a=_a,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=M.T,M.T=null;var l=Fe.p;Fe.p=va;var n=Ue;Ue|=ao;try{ss=a,is=e,ld=Zf=!1,xc(),$0(t,e,a),is=ss=null,a=rL;var u=Qx(e.containerInfo),i=a.focusedElem,f=a.selectionRange;if(u!==i&&i&&i.ownerDocument&&Yx(i.ownerDocument.documentElement,i)){if(f!==null&&vm(i)){var p=f.start,g=f.end;if(g===void 0&&(g=p),"selectionStart"in i)i.selectionStart=p,i.selectionEnd=Math.min(g,i.value.length);else{var I=i.ownerDocument||document,b=I&&I.defaultView||window;if(b.getSelection){var R=b.getSelection(),U=i.textContent.length,j=Math.min(f.start,U),W=f.end===void 0?j:Math.min(f.end,U);!R.extend&&j>W&&(u=W,W=j,j=u);var ye=jx(i,j),x=jx(i,W);if(ye&&x&&(R.rangeCount!==1||R.anchorNode!==ye.node||R.anchorOffset!==ye.offset||R.focusNode!==x.node||R.focusOffset!==x.offset)){var v=I.createRange();v.setStart(ye.node,ye.offset),R.removeAllRanges(),j>W?(R.addRange(v),R.extend(x.node,x.offset)):(v.setEnd(x.node,x.offset),R.addRange(v))}}}}for(I=[],R=i;R=R.parentNode;)R.nodeType===1&&I.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<I.length;i++){var w=I[i];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}vs=!!uL,rL=uL=null}finally{Ue=n,Fe.p=l,M.T=o}}e.current=t,ct=XI}}function Wh(){if(ct===XI){ct=Cl;var e=$y;if(e!==null){Yl=At();var t=Ho,a=Yl;!at||a<=t||(qa?qa.run(console.timeStamp.bind(console,e,t,a,De,Te,"secondary-light")):console.timeStamp(e,t,a,De,Te,"secondary-light"))}e=Fo,t=Hu,a=_a;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=M.T,M.T=null;var l=Fe.p;Fe.p=va;var n=Ue;Ue|=ao;try{ss=a,is=e,xc(),X0(e,t.alternate,t),is=ss=null}finally{Ue=n,Fe.p=l,M.T=o}}e=np,t=up,Ho=At(),tS(t===null?e:Yl,Ho,Ql,lo===fd,yt),ct=Yy}}function eg(){if(ct===Qy||ct===Yy){if(ct===Qy){var e=Ho;Ho=At();var t=Ho,a=lo===fd;!at||t<=e||(qa?qa.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,De,Te,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,De,Te,a?" error":"secondary-light")),lo!==fd&&(lo=VI)}ct=Cl,e=cs,cs=null,BD(),t=Fo;var o=Hu;a=_a;var l=jI,n=(a&335544064)===a?10262:10256;(n=o.actualDuration!==0||(o.subtreeFlags&n)!==0||(o.flags&n)!==0)?ct=lp:(ct=Cl,Hu=Fo=null,Cv(t,t.pendingLanes),zu=0,md=null);var u=t.pendingLanes;if(u===0&&(Fn=null),n||Av(t),u=Mt(a),o=o.stateNode,ia&&typeof ia.onCommitFiberRoot=="function")try{var i=(o.current.flags&128)===128;switch(u){case va:var f=jg;break;case Uo:f=Yg;break;case fl:f=Hr;break;case Lf:f=Qg;break;default:f=Hr}ia.onCommitFiberRoot(zr,o,f,i)}catch(b){dl||(dl=!0,console.error("React instrumentation encountered an error: %o",b))}if(cl&&t.memoizedUpdaters.clear(),nR(),l!==null){i=M.T,f=Fe.p,Fe.p=va,M.T=null;try{var p=t.onRecoverableError;for(o=0;o<l.length;o++){var g=l[o],I=vv(g.stack);P(g.source,p,g.value,I)}}finally{M.T=i,Fe.p=f}}if(p=fs,g=ps,ps=null,p!==null&&(fs=null,g===null&&(g=[]),e!==null))for(I=0;I<p.length;I++)l=(0,p[I])(g),l!==void 0&&e.finished.finally(l);(_a&3)!==0&&pi(),ul(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?(qf=!0,t===rp?pd++:(pd=0,rp=t)):(pd=0,rp=null),n||Lu(a,Ho),hi(0,!1)}}function vv(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Cv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$s(t)))}function pi(){return cs!==null&&(cs.skipTransition(),YI||(YI=!0,console.warn("A flushSync update cancelled a View Transition because it was called while the View Transition was still preparing. To preserve the synchronous semantics, React had to skip the View Transition. If you can, try to avoid flushSync() in a scenario that's likely to interfere.")),cs=null,lo=fd),Kh(),Wh(),eg(),tg()}function tg(){if(ct!==lp)return!1;var e=Fo,t=Zy;Zy=0;var a=Mt(_a),o=fl===0||fl>a?fl:a;a=M.T;var l=Fe.p;try{Fe.p=o,M.T=null;var n=Jy;Jy=null,o=Fo;var u=_a;if(ct=Cl,Hu=Fo=null,_a=0,(Ue&(Nt|ao))!==Qt)throw Error("Cannot flush passive effects while already rendering.");ra(u),Ky=!0,sp=!1;var i=0;if(Ql=null,i=wt(),lo===VI)rn(Ho,i,qa);else{var f=Ho,p=i,g=lo===jy;!at||p<=f||(yt?yt.run(console.timeStamp.bind(console,g?"Waiting for Paint":"Waiting",f,p,De,Te,"secondary-light")):console.timeStamp(g?"Waiting for Paint":"Waiting",f,p,De,Te,"secondary-light"))}f=Ue,Ue|=ao;var I=o.current;xc(),uv(I);var b=o.current;I=np,xc(),av(o,b,u,n,I),Av(o),Ue=f;var R=wt();if(b=i,I=yt,Ql!==null?eS(b,R,Ql,!0,I):!at||R<=b||(I?I.run(console.timeStamp.bind(console,"Remaining Effects",b,R,De,Te,"secondary-dark")):console.timeStamp("Remaining Effects",b,R,De,Te,"secondary-dark")),Lu(u,R),hi(0,!1),sp?o===md?zu++:(zu=0,md=o):zu=0,sp=Ky=!1,ia&&typeof ia.onPostCommitFiberRoot=="function")try{ia.onPostCommitFiberRoot(zr,o)}catch(j){dl||(dl=!0,console.error("React instrumentation encountered an error: %o",j))}var U=o.current.stateNode;return U.effectDuration=0,U.passiveEffectDuration=0,!0}finally{Fe.p=l,M.T=a,Cv(e,t)}}function bv(e,t,a){t=Xa(a,t),gS(t),t=xh(e.stateNode,t,2),e=hn(e,t,2),e!==null&&(Dl(e,2),ul(e))}function _e(e,t,a){if(ms=!1,e.tag===3)bv(e,e,a);else{for(;t!==null;){if(t.tag===3){bv(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fn===null||!Fn.has(o))){e=Xa(a,e),gS(e),a=Sh(2),o=hn(t,a,2),o!==null&&(vh(a,o,t,e),Dl(o,2),ul(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
140
-
141
- Error message:
142
-
143
- %s`,a)}}function ag(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new oM;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||(Xy=!0,l.add(a),o=hR.bind(null,e,t,a),cl&&mi(e,a),t.then(o,o))}function hR(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>hl&&(kn=hl=At(),Ni=Mf("Promise Resolved"),On=kf):(a&4194048)!==0&&0>So&&(zo=So=At(),Fi=Mf("Promise Resolved"),Sy=kf),iv()&&M.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
144
-
145
- When testing, code that resolves suspended data should be wrapped into act(...):
146
-
147
- act(() => {
148
- /* finish loading suspended data */
149
- });
150
- /* assert on the output */
151
-
152
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ke===e&&(pe&a)===a&&((dt===Pn||dt===Jf&&(pe&62914560)===pe&&wt()-tp<_I)&&(Ue&Nt)===Qt?Rr(e,0):Wf|=a,qu===pe&&(qu=0)),ul(e)}function Iv(e,t){t===0&&(t=ka()),e=sa(e,t),e!==null&&(Dl(e,t),ul(e))}function gR(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Iv(e,a)}function yR(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),Iv(e,a)}function og(e,t,a){if((t.subtreeFlags&134225920)!==0)for(t=t.child;t!==null;){var o=e,l=t,n=l.type===cf;n=a||n,l.tag!==22?l.flags&134217728?n&&P(l,wv,o,l):og(o,l,n):l.memoizedState===null&&(n&&l.flags&134225920?P(l,wv,o,l):l.subtreeFlags&134217728&&P(l,og,o,l,n)),t=t.sibling}}function wv(e,t){Ne(!0);try{ev(t,od),rv(t),tv(e,t.alternate,t,od),ov(e,t,0,null,!1,0)}finally{Ne(!1)}}function Av(e){var t=!0;e.current.mode&(da|qo)||(t=!1),og(e,e.current,t)}function Tv(e){if((Ue&Nt)===Qt){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=J(e)||"ReactComponent",ip!==null){if(ip.has(t))return;ip.add(t)}else ip=new Set([t]);P(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function mi(e,t){cl&&e.memoizedUpdaters.forEach(function(a){ce(e,a,t)})}function LR(e,t){var a=M.actQueue;return a!==null?(a.push(t),uM):Xg(e,t)}function xR(e){iv()&&M.actQueue===null&&P(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
153
-
154
- When testing, code that causes React state updates should be wrapped into act(...):
155
-
156
- act(() => {
157
- /* fire events that update state */
158
- });
159
- /* assert on the output */
160
-
161
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(e))})}function ul(e){e!==gs&&e.next===null&&(gs===null?hs=gs=e:gs=gs.next=e),dp=!0,M.actQueue!==null?eL||(eL=!0,Mv()):Wy||(Wy=!0,Mv())}function hi(e,t){if(!tL&&dp){tL=!0;do for(var a=!1,o=hs;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var u=o.suspendedLanes,i=o.pingedLanes;n=(1<<31-Sa(42|e)+1)-1,n&=l&~(u&~i),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,Ev(o,n))}else n=pe,n=sr(o,o===Ke?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Fu),(n&3)===0||au(o,n)||(a=!0,Ev(o,n));o=o.next}while(a);tL=!1}}function SR(){Ld=window.event,lg()}function lg(){dp=eL=Wy=!1;var e=0;Vn!==0&&RR()&&(e=Vn);for(var t=wt(),a=null,o=hs;o!==null;){var l=o.next,n=Rv(o,t);n===0?(o.next=null,a===null?hs=l:a.next=l,l===null&&(gs=a)):(a=o,(e!==0||(n&3)!==0)&&(dp=!0)),o=l}ct!==Cl&&ct!==lp||hi(e,!1),Vn!==0&&(Vn=0)}function Rv(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var u=31-Sa(n),i=1<<u,f=l[u];f===-1?((i&a)===0||(i&o)!==0)&&(l[u]=Zd(i,t)):f<=t&&(e.expiredLanes|=i),n&=~i}if(t=Ke,a=pe,a=sr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fu),o=e.callbackNode,a===0||e===t&&(je===Bu||je===Uu)||e.cancelPendingCommit!==null)return o!==null&&ng(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||au(e,a)){if(t=a&-a,t!==e.callbackPriority||M.actQueue!==null&&o!==aL)ng(o);else return t;switch(Mt(a)){case va:case Uo:a=Yg;break;case fl:a=Hr;break;case Lf:a=Qg;break;default:a=Hr}return o=Dv.bind(null,e),M.actQueue!==null?(M.actQueue.push(o),a=aL):a=Xg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&ng(o),e.callbackPriority=2,e.callbackNode=null,2}function Dv(e,t){if(qf=Uf=!1,Ld=window.event,ct!==Cl&&ct!==lp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(lo===op&&(lo=jy),pi()&&e.callbackNode!==a)return null;var o=pe;return o=sr(e,e===Ke?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fu),o===0?null:(cv(e,o,t),Rv(e,wt()),e.callbackNode!=null&&e.callbackNode===a?Dv.bind(null,e):null)}function Ev(e,t){if(pi())return null;Uf=qf,qf=!1,cv(e,t,!0)}function ng(e){e!==aL&&e!==null&&kD(e)}function Mv(){M.actQueue!==null&&M.actQueue.push(function(){return lg(),null}),gM(function(){(Ue&(Nt|ao))!==Qt?Xg(jg,SR):lg()})}function ug(){if(Vn===0){var e=qn;e===0&&(e=hf,hf<<=1,(hf&261888)===0&&(hf=256)),Vn=e}return Vn}function kv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Pe(e,"action"),Ys(e))}function vR(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=kv((l[Ca]||null).action),u=o.submitter;u&&(t=(t=u[Ca]||null)?kv(t.formAction):u.getAttribute("formAction"),t!==null&&(n=t,u=null));var i=new If("action","action",null,o,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Vn!==0){var f=new FormData(l,u),p={pending:!0,data:f,method:l.method,action:n};Object.freeze(p),fh(a,p,null,f)}}else typeof n=="function"&&(i.preventDefault(),f=new FormData(l,u),p={pending:!0,data:f,method:l.method,action:n},Object.freeze(p),fh(a,p,n,f))},currentTarget:l}]})}}function af(e,t,a){e.currentTarget=a;try{t(e)}catch(o){iy(o)}e.currentTarget=null}function Ov(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var u=o.length-1;0<=u;u--){var i=o[u],f=i.instance,p=i.currentTarget;if(i=i.listener,f!==l&&n.isPropagationStopped())break e;f!==null?P(f,af,n,i,p):af(n,i,p),l=f}else for(u=0;u<o.length;u++){if(i=o[u],f=i.instance,p=i.currentTarget,i=i.listener,f!==l&&n.isPropagationStopped())break e;f!==null?P(f,af,n,i,p):af(n,i,p),l=f}}}}function Ee(e,t){oL.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[jC];a===void 0&&(a=t[jC]=new Set);var o=e+"__bubble";a.has(o)||(Bv(t,e,2,!1),a.add(o))}function rg(e,t,a){oL.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),Bv(a,e,o,t)}function sg(e){if(!e[cp]){e[cp]=!0,QC.forEach(function(a){a!=="selectionchange"&&(oL.has(a)||rg(a,!1,e),rg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cp]||(t[cp]=!0,rg("selectionchange",!1,t))}}function Bv(e,t,a,o){switch(EC(t)){case va:var l=vD;break;case Uo:l=CD;break;default:l=Rg}a=l.bind(null,t,a,e),l=void 0,!Wg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function ig(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var i=o.stateNode.containerInfo;if(i===l)break;if(u===4)for(u=o.return;u!==null;){var f=u.tag;if((f===3||f===4)&&u.stateNode.containerInfo===l)return;u=u.return}for(;i!==null;){if(u=kt(i),u===null)return;if(f=u.tag,f===5||f===6||f===26||f===27){o=n=u;continue e}i=i.parentNode}}o=o.return}Ux(function(){var p=n,g=Lm(a),I=[];e:{var b=Mb.get(e);if(b!==void 0){var R=If,U=e;switch(e){case"keypress":if(tc(a)===0)break e;case"keydown":case"keyup":R=xE;break;case"focusin":U="focus",R=oy;break;case"focusout":U="blur",R=oy;break;case"beforeblur":case"afterblur":R=oy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=yb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=rE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=IE;break;case Tb:case Rb:case Db:R=dE;break;case Eb:R=AE;break;case"scroll":case"scrollend":R=nE;break;case"wheel":R=RE;break;case"copy":case"cut":case"paste":R=fE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=xb;break;case"submit":R=CE;break;case"toggle":case"beforetoggle":R=EE}var j=(t&4)!==0,W=!j&&(e==="scroll"||e==="scrollend"),ye=j?b!==null?b+"Capture":null:b;j=[];for(var x=p,v;x!==null;){var w=x;if(v=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||v===null||ye===null||(w=Qs(x,ye),w!=null&&j.push(gi(x,w,v))),W)break;x=x.return}0<j.length&&(b=new R(b,U,null,a,g),I.push({event:b,listeners:j}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",R&&a!==Ri&&(U=a.relatedTarget||a.fromElement)&&(kt(U)||U[wn]))break e;(b||R)&&(U=g.window===g?g:(R=g.ownerDocument)?R.defaultView||R.parentWindow:window,b?(R=a.relatedTarget||a.toElement,b=p,R=R?kt(R):null,R!==null&&(W=F(R),j=R.tag,R!==W||j!==5&&j!==27&&j!==6)&&(R=null)):(b=null,R=p),b!==R&&(j=yb,w="onMouseLeave",ye="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(j=xb,w="onPointerLeave",ye="onPointerEnter",x="pointer"),W=b==null?U:El(b),v=R==null?U:El(R),U=new j(w,x+"leave",b,a,g),U.target=W,U.relatedTarget=v,w=null,kt(g)===p&&(j=new j(ye,x+"enter",R,a,g),j.target=v,j.relatedTarget=W,w=j),W=w,j=b&&R?X(b,R,CR):null,b!==null&&Uv(I,U,b,j,!1),R!==null&&W!==null&&Uv(I,W,R,j,!0)))}e:{if(b=p?El(p):window,R=b.nodeName&&b.nodeName.toLowerCase(),R==="select"||R==="input"&&b.type==="file")var E=Fx;else if(Nx(b))if(wb)E=ET;else{E=RT;var z=TT}else R=b.nodeName,!R||R.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?p&&js(p.elementType)&&(E=Fx):E=DT;if(E&&(E=E(e,p))){_x(I,E,a,g);break e}z&&z(e,b,p)}switch(z=p?El(p):window,e){case"focusin":(Nx(z)||z.contentEditable==="true")&&(Xr=z,ny=p,Ui=null);break;case"focusout":Ui=ny=Xr=null;break;case"mousedown":uy=!0;break;case"contextmenu":case"mouseup":case"dragend":uy=!1,Zx(I,a,g);break;case"selectionchange":if(BE)break;case"keydown":case"keyup":Zx(I,a,g)}var re;if(ly)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else Gr?zx(e,a)&&(ee="onCompositionEnd"):e==="keydown"&&a.keyCode===Sb&&(ee="onCompositionStart");ee&&(vb&&a.locale!=="ko"&&(Gr||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&Gr&&(re=qx()):(An=g,ey="value"in An?An.value:An.textContent,Gr=!0)),z=of(p,ee),0<z.length&&(ee=new Lb(ee,e,null,a,g),I.push({event:ee,listeners:z}),re?ee.data=re:(re=Px(a),re!==null&&(ee.data=re)))),(re=kE?bT(e,a):IT(e,a))&&(ee=of(p,"onBeforeInput"),0<ee.length&&(z=new mE("onBeforeInput","beforeinput",null,a,g),I.push({event:z,listeners:ee}),z.data=re)),vR(I,e,p,a,g)}Ov(I,t)})}function gi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function of(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Qs(e,a),l!=null&&o.unshift(gi(e,l,n)),l=Qs(e,t),l!=null&&o.push(gi(e,l,n))),e.tag===3)return o;e=e.return}return[]}function CR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uv(e,t,a,o,l){for(var n=t._reactName,u=[];a!==null&&a!==o;){var i=a,f=i.alternate,p=i.stateNode;if(i=i.tag,f!==null&&f===o)break;i!==5&&i!==26&&i!==27||p===null||(f=p,l?(p=Qs(a,n),p!=null&&u.unshift(gi(a,p,f))):l||(p=Qs(a,n),p!=null&&u.push(gi(a,p,f)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}function dg(e,t){xT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||hb||(hb=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Su,possibleRegistrationNames:Zg};js(e)||typeof t.is=="string"||vT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Vt(e,t,a,o){t!==a&&(a=vn(a),vn(t)!==a&&(o[e]=t))}function qv(e){return!!(e.getAttribute("vt-share")||e.getAttribute("vt-exit")||e.getAttribute("vt-enter")||e.getAttribute("vt-update"))}function Hv(e){if(!qv(e))return!1;var t=e.getAttribute("vt-name");return e=e.style["view-transition-name"],t?t===e:e.startsWith("_T_")}function bR(e,t,a){t.forEach(function(o){o==="style"?e.getAttribute(o)!==""&&(o=e.style,(o.length===1&&o[0]==="view-transition-name"||o.length===2&&o[0]==="view-transition-class"&&o[1]==="view-transition-name")&&Hv(e)||(a.style=fg(e))):a[Nv(o)]=e.getAttribute(o)})}function rl(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function zv(e,t){return e=e.namespaceURI===vf||e.namespaceURI===Nr?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function vn(e){return ur(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ro(e)),tu(e)),(typeof e=="string"?e:""+e).replace(rM,`
162
- `).replace(sM,"")}function Pv(e,t){return t=vn(t),vn(e)===t}function Qe(e,t,a,o,l,n){switch(a){case"children":if(typeof o=="string")ec(o,t,!1),t==="body"||t==="textarea"&&o===""||Xs(e,o);else if(typeof o=="number"||typeof o=="bigint")ec(""+o,t,!1),t!=="body"&&Xs(e,""+o);else return;break;case"className":Kd(e,"class",o);break;case"tabIndex":Kd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Kd(e,a,o);break;case"style":kx(e,o,n);return;case"data":if(t!=="object"){Kd(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}Pe(o,a),o=Ys(o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o=="function"&&(l.encType==null&&l.method==null||mp||(mp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||pp||(pp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||fp?t!=="button"||l.type==null||l.type==="submit"||fp?typeof o=="function"&&(l.name==null||KI||(KI=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||mp||(mp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||pp||(pp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(fp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(fp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof o=="function"){e.setAttribute(a,"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 n=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",l.name,l,null),Qe(e,t,"formEncType",l.formEncType,l,null),Qe(e,t,"formMethod",l.formMethod,l,null),Qe(e,t,"formTarget",l.formTarget,l,null)):(Qe(e,t,"encType",l.encType,l,null),Qe(e,t,"method",l.method,l,null),Qe(e,t,"target",l.target,l,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}Pe(o,a),o=Ys(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!="function"&&rl(a,o),e.onclick=Yo);return;case"onScroll":o!=null&&(typeof o!="function"&&rl(a,o),Ee("scroll",e));return;case"onScrollEnd":o!=null&&(typeof o!="function"&&rl(a,o),Ee("scrollend",e));return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}Pe(o,a),a=Ys(o),e.setAttributeNS(Pu,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?(Pe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"inert":o!==""||hp[a]||(hp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?(Pe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?(Pe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):(Pe(o,a),e.setAttribute(a,o));break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),$d(e,"popover",o);break;case"xlinkActuate":Ml(e,Pu,"xlink:actuate",o);break;case"xlinkArcrole":Ml(e,Pu,"xlink:arcrole",o);break;case"xlinkRole":Ml(e,Pu,"xlink:role",o);break;case"xlinkShow":Ml(e,Pu,"xlink:show",o);break;case"xlinkTitle":Ml(e,Pu,"xlink:title",o);break;case"xlinkType":Ml(e,Pu,"xlink:type",o);break;case"xmlBase":Ml(e,lL,"xml:base",o);break;case"xmlLang":Ml(e,lL,"xml:lang",o);break;case"xmlSpace":Ml(e,lL,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),$d(e,"is",o);break;case"innerText":case"textContent":return;case"popoverTarget":WI||o==null||typeof o!="object"||(WI=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=Ox(a),$d(e,a,o);else{Su.hasOwnProperty(a)&&o!=null&&typeof o!="function"&&rl(a,o);return}}ze=!0}function cg(e,t,a,o,l,n){switch(a){case"style":kx(e,o,n);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")Xs(e,o);else if(typeof o=="number"||typeof o=="bigint")Xs(e,""+o);else return;break;case"onScroll":o!=null&&(typeof o!="function"&&rl(a,o),Ee("scroll",e));return;case"onScrollEnd":o!=null&&(typeof o!="function"&&rl(a,o),Ee("scrollend",e));return;case"onClick":o!=null&&(typeof o!="function"&&rl(a,o),e.onclick=Yo);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(Su.hasOwnProperty(a))o!=null&&typeof o!="function"&&rl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),n=a.slice(2,l?a.length-7:void 0),t=e[Ca]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(n,t,l),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,l);break e}ze=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):$d(e,a,o)}return}ze=!0}function ta(e,t,a){switch(dg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var u=a[n];if(u!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qe(e,t,n,u,a,null)}}l&&Qe(e,t,"srcSet",a.srcSet,a,null),o&&Qe(e,t,"src",a.src,a,null);return;case"input":cr("input",a),Ee("invalid",e);var i=n=u=l=null,f=null,p=null;for(o in a)if(a.hasOwnProperty(o)){var g=a[o];if(g!=null)switch(o){case"name":l=g;break;case"type":u=g;break;case"checked":f=g;break;case"defaultChecked":p=g;break;case"value":n=g;break;case"defaultValue":i=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qe(e,t,o,g,a,null)}}gx(e,a),yx(e,n,i,f,p,u,l,!1);return;case"select":cr("select",a),Ee("invalid",e),o=u=n=null;for(l in a)if(a.hasOwnProperty(l)&&(i=a[l],i!=null))switch(l){case"value":n=i;break;case"defaultValue":u=i;break;case"multiple":o=i;default:Qe(e,t,l,i,a,null)}Sx(e,a),t=n,a=u,e.multiple=!!o,t!=null?fr(e,!!o,t,!1):a!=null&&fr(e,!!o,a,!0);return;case"textarea":cr("textarea",a),Ee("invalid",e),n=l=o=null;for(u in a)if(a.hasOwnProperty(u)&&(i=a[u],i!=null))switch(u){case"value":o=i;break;case"defaultValue":l=i;break;case"children":n=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Qe(e,t,u,i,a,null)}vx(e,a),bx(e,o,l,n);return;case"option":Lx(e,a);for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!=null)&&(f==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Qe(e,t,f,o,a,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(o=0;o<hd.length;o++)Ee(hd[o],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(p in a)if(a.hasOwnProperty(p)&&(o=a[p],o!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qe(e,t,p,o,a,null)}return;default:if(js(t)){for(g in a)a.hasOwnProperty(g)&&(o=a[g],o!==void 0&&cg(e,t,g,o,a,void 0));return}}for(i in a)a.hasOwnProperty(i)&&(o=a[i],o!=null&&Qe(e,t,i,o,a,null))}function IR(e,t,a,o){switch(dg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,u=null,i=null,f=null,p=null,g=null;for(R in a){var I=a[R];if(a.hasOwnProperty(R)&&I!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":f=I;default:o.hasOwnProperty(R)||Qe(e,t,R,null,o,I)}}for(var b in o){var R=o[b];if(I=a[b],o.hasOwnProperty(b)&&(R!=null||I!=null))switch(b){case"type":R!==I&&(ze=!0),n=R;break;case"name":R!==I&&(ze=!0),l=R;break;case"checked":R!==I&&(ze=!0),p=R;break;case"defaultChecked":R!==I&&(ze=!0),g=R;break;case"value":R!==I&&(ze=!0),u=R;break;case"defaultValue":R!==I&&(ze=!0),i=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:R!==I&&Qe(e,t,b,R,o,I)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||$I||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$I=!0),!t||o||JI||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),JI=!0),cm(e,u,i,f,p,g,n,l);return;case"select":R=u=i=b=null;for(n in a)if(f=a[n],a.hasOwnProperty(n)&&f!=null)switch(n){case"value":break;case"multiple":R=f;default:o.hasOwnProperty(n)||Qe(e,t,n,null,o,f)}for(l in o)if(n=o[l],f=a[l],o.hasOwnProperty(l)&&(n!=null||f!=null))switch(l){case"value":n!==f&&(ze=!0),b=n;break;case"defaultValue":n!==f&&(ze=!0),i=n;break;case"multiple":n!==f&&(ze=!0),u=n;default:n!==f&&Qe(e,t,l,n,o,f)}o=i,t=u,a=R,b!=null?fr(e,!!t,b,!1):!!a!=!!t&&(o!=null?fr(e,!!t,o,!0):fr(e,!!t,t?[]:"",!1));return;case"textarea":R=b=null;for(i in a)if(l=a[i],a.hasOwnProperty(i)&&l!=null&&!o.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:Qe(e,t,i,null,o,l)}for(u in o)if(l=o[u],n=a[u],o.hasOwnProperty(u)&&(l!=null||n!=null))switch(u){case"value":l!==n&&(ze=!0),b=l;break;case"defaultValue":l!==n&&(ze=!0),R=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Qe(e,t,u,l,o,n)}Cx(e,b,R);return;case"option":for(var U in a)b=a[U],a.hasOwnProperty(U)&&b!=null&&!o.hasOwnProperty(U)&&(U==="selected"?e.selected=!1:Qe(e,t,U,null,o,b));for(f in o)b=o[f],R=a[f],o.hasOwnProperty(f)&&b!==R&&(b!=null||R!=null)&&(f==="selected"?(b!==R&&(ze=!0),e.selected=b&&typeof b!="function"&&typeof b!="symbol"):Qe(e,t,f,b,o,R));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 j in a)b=a[j],a.hasOwnProperty(j)&&b!=null&&!o.hasOwnProperty(j)&&Qe(e,t,j,null,o,b);for(p in o)if(b=o[p],R=a[p],o.hasOwnProperty(p)&&b!==R&&(b!=null||R!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qe(e,t,p,b,o,R)}return;default:if(js(t)){for(var W in a)b=a[W],a.hasOwnProperty(W)&&b!==void 0&&!o.hasOwnProperty(W)&&cg(e,t,W,void 0,o,b);for(g in o)b=o[g],R=a[g],!o.hasOwnProperty(g)||b===R||b===void 0&&R===void 0||cg(e,t,g,b,o,R);return}}for(var ye in a)b=a[ye],a.hasOwnProperty(ye)&&b!=null&&!o.hasOwnProperty(ye)&&Qe(e,t,ye,null,o,b);for(I in o)b=o[I],R=a[I],!o.hasOwnProperty(I)||b===R||b==null&&R==null||Qe(e,t,I,b,o,R)}function Nv(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function fg(e){for(var t={},a=e.style,o=0;o<a.length;o++){var l=a[o];l==="view-transition-name"&&Hv(e)||(t[l]=a.getPropertyValue(l))}return t}function _v(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var u=t[n];u!=null&&typeof u!="boolean"&&u!==""&&(n.indexOf("--")===0?(Hs(u,n),o+=l+n+":"+(""+u).trim()):typeof u!="number"||u===0||pb.has(n)?(Hs(u,n),o+=l+n.replace(sb,"-$1").toLowerCase().replace(ib,"-ms-")+":"+(""+u).trim()):o+=l+n.replace(sb,"-$1").toLowerCase().replace(ib,"-ms-")+":"+u+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=vn(o),t=vn(t),t===o||t[t.length-1]===";"&&qv(e)||(a.style=fg(e)))}}function po(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Pe(o,t),e===""+o)return}Vt(t,e,o,n)}function Fv(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}Vt(t,e,o,n)}function pg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(Pe(o,a),e===""+o)return}Vt(t,e,o,n)}function Vv(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(Pe(o,t),e===""+o))return}Vt(t,e,o,n)}function mg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Pe(o,t),a=Ys(""+o),e===a)return}Vt(t,e,o,n)}function Gv(e,t,a,o){for(var l={},n=new Set,u=e.attributes,i=0;i<u.length;i++)switch(u[i].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;case"vt-name":case"vt-update":case"vt-enter":case"vt-exit":case"vt-share":case"vt-parent-enter":case"vt-parent-exit":break;default:n.add(u[i].name)}if(js(t)){for(var f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null){if(Su.hasOwnProperty(f))typeof p!="function"&&rl(f,p);else if(a.suppressHydrationWarning!==!0)switch(f){case"children":typeof p!="string"&&typeof p!="number"||Vt("children",e.textContent,p,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,p=p?p.__html:void 0,p!=null&&(p=zv(e,p),Vt(f,u,p,l));continue;case"style":n.delete(f),_v(e,p,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(f.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",f);continue;case"className":n.delete("class"),u=px(e,"class",p),Vt("className",u,p,l);continue;default:o.context===en&&t!=="svg"&&t!=="math"?n.delete(f.toLowerCase()):n.delete(f),u=px(e,f,p),Vt(f,u,p,l)}}}}else for(p in a)if(a.hasOwnProperty(p)&&(f=a[p],f!=null)){if(Su.hasOwnProperty(p))typeof f!="function"&&rl(p,f);else if(a.suppressHydrationWarning!==!0)switch(p){case"children":typeof f!="string"&&typeof f!="number"||Vt("children",e.textContent,f,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,f=f?f.__html:void 0,f!=null&&(f=zv(e,f),u!==f&&(l[p]={__html:u}));continue;case"className":po(e,p,"class",f,n,l);continue;case"tabIndex":po(e,p,"tabindex",f,n,l);continue;case"style":n.delete(p),_v(e,f,l);continue;case"multiple":n.delete(p),Vt(p,e.multiple,f,l);continue;case"muted":n.delete(p),Vt(p,e.muted,f,l);continue;case"autoFocus":n.delete("autofocus"),Vt(p,e.autofocus,f,l);continue;case"data":if(t!=="object"){n.delete(p),u=e.getAttribute("data"),Vt(p,u,f,l);continue}case"src":case"href":if(!(f!==""||t==="a"&&p==="href"||t==="object"&&p==="data")){console.error(p==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p);continue}mg(e,p,p,f,n,l);continue;case"action":case"formAction":if(u=e.getAttribute(p),typeof f=="function"){n.delete(p.toLowerCase()),p==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(u===dM){n.delete(p.toLowerCase()),Vt(p,"function",f,l);continue}mg(e,p,p.toLowerCase(),f,n,l);continue;case"xlinkHref":mg(e,p,"xlink:href",f,n,l);continue;case"contentEditable":pg(e,p,"contenteditable",f,n,l);continue;case"spellCheck":pg(e,p,"spellcheck",f,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":pg(e,p,p,f,n,l);continue;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":Fv(e,p,p.toLowerCase(),f,n,l);continue;case"capture":case"download":e:{i=e;var g=u=p,I=l;if(n.delete(g),i=i.getAttribute(g),i===null)switch(typeof f){case"undefined":case"function":case"symbol":break e;default:if(f===!1)break e}else if(f!=null)switch(typeof f){case"function":case"symbol":break;case"boolean":if(f===!0&&i==="")break e;break;default:if(Pe(f,u),i===""+f)break e}Vt(u,i,f,I)}continue;case"cols":case"rows":case"size":case"span":e:{if(i=e,g=u=p,I=l,n.delete(g),i=i.getAttribute(g),i===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(f)||1>f)break e}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(f)||1>f)&&(Pe(f,u),i===""+f))break e}Vt(u,i,f,I)}continue;case"rowSpan":Vv(e,p,"rowspan",f,n,l);continue;case"start":Vv(e,p,p,f,n,l);continue;case"xHeight":po(e,p,"x-height",f,n,l);continue;case"xlinkActuate":po(e,p,"xlink:actuate",f,n,l);continue;case"xlinkArcrole":po(e,p,"xlink:arcrole",f,n,l);continue;case"xlinkRole":po(e,p,"xlink:role",f,n,l);continue;case"xlinkShow":po(e,p,"xlink:show",f,n,l);continue;case"xlinkTitle":po(e,p,"xlink:title",f,n,l);continue;case"xlinkType":po(e,p,"xlink:type",f,n,l);continue;case"xmlBase":po(e,p,"xml:base",f,n,l);continue;case"xmlLang":po(e,p,"xml:lang",f,n,l);continue;case"xmlSpace":po(e,p,"xml:space",f,n,l);continue;case"inert":f!==""||hp[p]||(hp[p]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",p)),Fv(e,p,p,f,n,l);continue;default:if(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N"){i=Ox(p),u=!1,o.context===en&&t!=="svg"&&t!=="math"?n.delete(i.toLowerCase()):(g=p.toLowerCase(),g=Cf.hasOwnProperty(g)&&Cf[g]||null,g!==null&&g!==p&&(u=!0,n.delete(g)),n.delete(i));e:if(g=e,I=i,i=f,im(I))if(g.hasAttribute(I))g=I.toLowerCase()==="nonce"?g.nonce:g.getAttribute(I),Pe(i,I),i=g===""+i?i:g;else{switch(typeof i){case"function":case"symbol":break e;case"boolean":if(g=I.toLowerCase().slice(0,5),g!=="data-"&&g!=="aria-")break e}i=i===void 0?void 0:null}else i=void 0;u||Vt(p,i,f,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&bR(e,n,l),Object.keys(l).length===0?null:l}function wR(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Xv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],n=l.transferSize,u=l.initiatorType,i=l.duration;if(n&&i&&Xv(u)){for(u=0,i=l.responseEnd,o+=1;o<a.length;o++){var f=a[o],p=f.startTime;if(p>i)break;var g=f.transferSize,I=f.initiatorType;g&&Xv(I)&&(f=f.responseEnd,u+=g*(f<i?1:(i-p)/(f-p)))}if(--o,t+=8*(n+u)/(l.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}function yi(e){return e.nodeType===9?e:e.ownerDocument}function jv(e){switch(e){case Nr:return Ls;case vf:return yp;default:return en}}function Yv(e,t){if(e===en)switch(t){case"svg":return Ls;case"math":return yp;default:return en}return e===Ls&&t==="foreignObject"?en:e}function Qv(e,t,a,o){return a=yi(a).createElement(e),a[aa]=o,a[Ca]=t,ta(a,e,t),St(a),a}function TR(e){if(e=e.type,typeof e!="string"||e===""||(e=e.toLowerCase(),e==="module"||e==="importmap"||e==="speculationrules"))return!1;switch(e){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return!1}return!0}function hg(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}function RR(){var e=window.event;return e&&e.type==="popstate"?e===sL?!1:(sL=e,!0):(sL=null,!1)}function Li(){var e=window.event;return e&&e!==Ld?e.type:null}function xi(){var e=window.event;return e&&e!==Ld?e.timeStamp:-1.1}function DR(e){setTimeout(function(){throw e})}function ER(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function MR(){}function kR(e,t,a,o){IR(e,t,a,o),e[Ca]=o}function Zv(e){Xs(e,"")}function OR(e,t,a){e.nodeValue=a}function Jv(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Ca]||null;if(t!==null){var a=It(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,P(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,P(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Cn(e){return e==="head"}function BR(e,t){e.removeChild(t)}function UR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function $v(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===yd||a===gp){if(o===0){e.removeChild(l),Or(t);return}o--}else if(a===gd||a===Gn||a===_u||a===ys||a===Nu)o++;else if(a===fM)Cg(e.ownerDocument.documentElement);else if(a===mM){a=e.ownerDocument.head,Cg(a);for(var n=a.firstChild;n;){var u=n.nextSibling,i=n.nodeName;n[Ti]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=u}}else a===pM&&Cg(e.ownerDocument.body);a=l}while(a);Or(t)}function Kv(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===yd){if(e===0)break;e--}else a!==gd&&a!==Gn&&a!==_u&&a!==ys||e++;a=o}while(a)}function qR(e){Kv(e,!0)}function HR(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function zR(e){e.nodeValue=""}function PR(e){Kv(e,!1)}function NR(e,t){t=t[aw],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function _R(e,t){e.nodeValue=t}function FR(e){for(var t=e.firstChild;t!=null;){if(t.nodeType===1&&getComputedStyle(t).display==="block"){var a=It(t)||It(e);P(a,function(o,l){console.error(`You're about to start a <ViewTransition> around a display: inline element <%s>, which itself has a display: block element <%s> inside it. This might trigger a bug in Safari which causes the View Transition to be skipped with a duplicate name error.
163
- https://bugs.webkit.org/show_bug.cgi?id=290923`,o.toLocaleLowerCase(),l.toLocaleLowerCase())},e.tagName,t.tagName);break}if(t.firstChild!=null)t=t.firstChild;else{if(t===e)break;for(;t.nextSibling==null&&t.parentNode!=null&&t.parentNode!==e;)t=t.parentNode;t=t.nextSibling}}}function Wv(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var l=o=0;l<t.length;l++){var n=t[l];0<n.width&&0<n.height&&o++}o===1?(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom):FR(e)}}function eC(e,t){e=e.style,t=t[aw];var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function tC(e,t,a){return a=a.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<=a.innerHeight&&e.left<=a.innerWidth}}function gg(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return tC(t,a,e)}function VR(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return tC(t,a,e)}function GR(e,t){if(typeof e=="object"&&e!==null)switch(e.name){case"TimeoutError":return Error("A ViewTransition timed out because a Navigation stalled. This can happen if a Navigation is blocked on React itself. Such as if it's resolved inside useEffect. This can be solved by moving the resolution to useLayoutEffect.",{cause:e});case"AbortError":return t?null:Error("A ViewTransition was aborted early. This might be because you have other View Transition libraries on the page and only one can run at a time. To avoid this, use only React's built-in <ViewTransition> to coordinate.",{cause:e});case"InvalidStateError":if(e.message==="View transition was skipped because document visibility state is hidden."||e.message==="Skipping view transition because document visibility state has become hidden."||e.message==="Skipping view transition because viewport size changed."||e.message==="Transition was aborted because of invalid state")return null}return e}function XR(e){return e.documentElement.clientHeight}function jR(e){this.addEventListener("load",e),this.addEventListener("error",e)}function YR(e,t,a,o,l,n,u,i,f,p,g){var I=t.nodeType===9?t:t.ownerDocument;try{var b=I.startViewTransition({update:function(){var U=I.defaultView,j=U.navigation&&U.navigation.transition,W=I.fonts.status;o();var ye=[];if(W==="loaded"&&(XR(I),I.fonts.status==="loading"&&ye.push(I.fonts.ready)),W=ye.length,e!==null)for(var x=e.suspenseyImages,v=0,w=0;w<x.length;w++){var E=x[w];if(!E.complete){var z=E.getBoundingClientRect();if(0<z.bottom&&0<z.right&&z.top<U.innerHeight&&z.left<U.innerWidth){if(v+=CC(E),v>xp){ye.length=W;break}E=new Promise(jR.bind(E)),ye.push(E)}}}if(0<ye.length)return p(0<W?ye.length>W?"Waiting on Fonts and Images":"Waiting on Fonts":"Waiting on Images"),U=Promise.race([Promise.all(ye),new Promise(function(re){return setTimeout(re,yM)})]).then(l,l),(j?Promise.allSettled([j.finished,U]):U).then(n,n);if(l(),j)return j.finished.then(n,n);n()},types:a});I.__reactViewTransition=b;var R=[];return b.ready.then(function(){for(var U=I.documentElement.getAnimations({subtree:!0}),j=0;j<U.length;j++){var W=U[j],ye=W.effect,x=ye.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){R.push(W),W=ye.getKeyframes();for(var v=x=void 0,w=!0,E=0;E<W.length;E++){var z=W[E],re=z.width;if(x===void 0)x=re;else if(x!==re){w=!1;break}if(re=z.height,v===void 0)v=re;else if(v!==re){w=!1;break}delete z.width,delete z.height,z.transform==="none"&&delete z.transform}w&&x!==void 0&&v!==void 0&&(ye.setKeyframes(W),w=getComputedStyle(ye.target,ye.pseudoElement),w.width!==x||w.height!==v)&&(w=W[0],w.width=x,w.height=v,w=W[W.length-1],w.width=x,w.height=v,ye.setKeyframes(W))}}u()},function(U){I.__reactViewTransition===b&&(I.__reactViewTransition=null);try{U=GR(U,!1),U!==null&&f(U)}finally{o(),l(),u(),g()}}),b.finished.finally(function(){for(var U=0;U<R.length;U++)R[U].cancel();I.__reactViewTransition===b&&(I.__reactViewTransition=null),g(),i()}),b}catch{return o(),l(),g(),u(),null}}function xu(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}function aC(e){return{name:e,group:new xu("group",e),imagePair:new xu("image-pair",e),old:new xu("old",e),new:new xu("new",e)}}function Ja(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function QR(e,t,a,o){return we(e).addEventListener(t,a,o),!1}function ZR(e,t,a,o){return we(e).removeEventListener(t,a,o),!1}function Er(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function oC(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function lC(e,t,a,o){if(e.length===0)return-1;o=oC(o);for(var l=0;l<e.length;l++){var n=e[l];if(n.type===t&&n.listener===a&&oC(n.optionsOrUseCapture)===o)return l}return-1}function nC(e,t){return e.tag===6?!1:(e=we(e),dD(e,t))}function yg(e,t){return t.push(e),!1}function JR(e,t){return e.tag===6?!1:(e=we(e),e===t||e.contains(t)?(t.blur(),!0):!1)}function $R(e,t){return e.tag===6||(e=we(e),t.observe(e)),!1}function KR(e,t){return e.tag===6||(e=we(e),t.unobserve(e)),!1}function WR(e,t,a){Vo.push({fragmentInstance:e,observer:t,instance:a}),dL||(dL=!0,cD(function(){dL=!1;var o=Vo;Vo=[];for(var l=0;l<o.length;l++){var n=o[l];n.observer.unobserve(n.instance)}}))}function eD(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=we(e),t.push.apply(t,e.getClientRects());return!1}function tD(e,t,a,o,l){var n=kt(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!n)e:{for(;n!==null;){if(n.tag===7&&(n===t||n.alternate===t)){a=!0;break e}n=n.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(n===null)return n=l.ownerDocument,l===n||l===n.documentElement||l===n.body;e:{for(n=t,t=ge(t);n!==null;){if(!(n.tag!==5&&n.tag!==3&&n.tag!==27||n!==t&&n.alternate!==t)){n=!0;break e}n=n.return}n=!1}return n}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!n)&&!(t=n===a)&&(t=X(a,n,G),t===null?t=!1:(Z(t,!0,Et,n,a),n=Br,Br=null,t=n!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!n)&&!(t=n===o)&&(t=X(o,n,G),t===null?t=!1:(Z(t,!0,N,n,o),n=Br,Og=Br=null,t=n!==null)),t):!1}function uC(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function aD(e,t){return e=we(e),rC(e,t),!1}function rC(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function sC(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];e.addEventListener(l.type,l.attachedListener,Er(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){for(var u=0,i=0;i<Vo.length;i++){var f=Vo[i];(f.fragmentInstance!==t||f.observer!==n||f.instance!==e)&&(Vo[u++]=f)}Vo.length=u,n.observe(e)}),rC(e,t))}function oD(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];e.removeEventListener(l.type,l.attachedListener,Er(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(n){typeof n.rootMargin=="string"?WR(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Lg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lg(a),xt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function lD(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ti])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Pe(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=$a(e.nextSibling),e===null)break}return null}function nD(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$a(e.nextSibling),e===null))return null;return e}function iC(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$a(e.nextSibling),e===null))return null;return e}function xg(e){return e.data===Gn||e.data===_u}function Sg(e){return e.data===ys||e.data===Gn&&e.ownerDocument.readyState!==tw}function uD(e,t){var a=e.ownerDocument;if(e.data===_u)e._reactRetry=t;else if(e.data!==Gn||a.readyState!==tw)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function $a(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===gd||t===ys||t===Gn||t===_u||t===Nu||t===nL||t===ew)break;if(t===yd||t===gp)return null}}return e}function dC(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[Nv(n.name)]=n.name.toLowerCase()==="style"?fg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Nu?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function cC(e,t,a){return a===null||a[cM]!==!0?(e.nodeValue===t?e=null:(t=vn(t),e=vn(e.nodeValue)===t?null:e.nodeValue),e):null}function vg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===yd||a===gp){if(t===0)return $a(e.nextSibling);t--}else a!==gd&&a!==ys&&a!==Gn&&a!==_u&&a!==Nu||t++}e=e.nextSibling}return null}function fC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===gd||a===ys||a===Gn||a===_u||a===Nu){if(t===0)return e;t--}else a!==yd&&a!==gp||t++}e=e.previousSibling}return null}function rD(e){Or(e)}function sD(e){Or(e)}function iD(e){Or(e)}function dD(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function cD(e){uw(function(){uw(function(t){return e(t)})})}function pC(e,t,a,o,l){switch(l&&ym(e,o.ancestorInfo),t=yi(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function fD(e,t,a,o){if(!a[wn]&&It(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);ta(a,e,t),a[aa]=o,a[Ca]=t}function mC(e,t,a){for(var o in a){var l=a[o];a.hasOwnProperty(o)&&l!=null&&Qe(e,t,o,null,iM,l)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Yo&&(e.onclick=null),xt(e)}function Cg(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xt(e)}function Si(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}function hC(e,t,a){var o=xs;if(o&&typeof t=="string"&&t){var l=io(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),iw.has(l)||(iw.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),ta(t,"link",e),St(t),o.head.appendChild(t)))}}function gC(e,t,a,o){var l=(l=In.current)?Si(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Mr(a.href),t=Wt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mr(a.href);var n=Wt(l).hoistableStyles,u=n.get(e);if(u||(l=l.ownerDocument||l,u={type:"stylesheet",instance:null,count:0,state:{loading:Vu,preload:null}},n.set(e,u),(n=l.querySelector(vi(e)))?n._p||(u.instance=n,u.state.loading=xd|bo):(n=Io.get(e),n||(n={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Io.set(e,n)),pD(l,e,n,u.state))),t&&o===null)throw a=`
164
-
165
- - `+lf(t)+`
166
- + `+lf(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return u}if(t&&o!==null)throw a=`
167
-
168
- - `+lf(t)+`
169
- + `+lf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=kr(a),t=Wt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function lf(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):mo.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):mo.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):mo.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Mr(e){return'href="'+io(e)+'"'}function vi(e){return'link[rel="stylesheet"]['+e+"]"}function yC(e){return Le({},e,{"data-precedence":e.precedence,precedence:null})}function pD(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[xf]!==!0){o.loading=xd;return}}else t=e.createElement("link"),t[xf]=!0,t.onload=t.onerror=cx.bind(null,t),ta(t,"link",a),St(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=xd}),t.addEventListener("error",function(){return o.loading|=rw})}function kr(e){return'[src="'+io(e)+'"]'}function Ci(e){return"script[async]"+e}function LC(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+io(a.href)+'"]');if(o)return t.instance=o,St(o),o;var l=Le({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),St(o),ta(o,"style",l),nf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Mr(a.href);var n=e.querySelector(vi(l));if(n)return t.state.loading|=bo,t.instance=n,St(n),n;o=yC(a),(l=Io.get(l))&&bg(o,l),n=(e.ownerDocument||e).createElement("link"),St(n);var u=n;return u._p=new Promise(function(i,f){u.onload=i,u.onerror=f}),ta(n,"link",o),t.state.loading|=bo,nf(n,a.precedence,e),t.instance=n;case"script":return n=kr(a.src),(l=e.querySelector(Ci(n)))?(t.instance=l,St(l),l):(o=a,(l=Io.get(n))&&(o=Le({},a),Ig(o,l)),e=e.ownerDocument||e,l=e.createElement("script"),St(l),ta(l,"link",o),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&bo)===Vu&&(o=t.instance,t.state.loading|=bo,nf(o,a.precedence,e));return t.instance}function nf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,u=0;u<o.length;u++){var i=o[u];if(i.dataset.precedence===t)n=i;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ig(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function xC(e,t,a){if(Lp===null){var o=new Map,l=Lp=new Map;l.set(a,o)}else l=Lp,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var n=a[l];if(!(n[Ti]||n[aa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Nr){var u=n.getAttribute(t)||"";u=e+u;var i=o.get(u);i?i.push(n):o.set(u,[n])}}return o}function wg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mD(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===Ls||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=wR(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function SC(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function vC(e){return!(e.type==="stylesheet"&&(e.state.loading&sw)===Vu)}function CC(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function bC(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=CC(t),e.suspenseyImages.push(t)),e=yD.bind(e),t.decode().then(e,e))}function hD(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&bo)===Vu){if(a.instance===null){var l=Mr(o.href),n=t.querySelector(vi(l));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bi.bind(e),t.then(e,e)),a.state.loading|=bo,a.instance=n,St(n);return}n=t.ownerDocument||t,o=yC(o),(l=Io.get(l))&&bg(o,l),n=n.createElement("link"),St(n);var u=n;u._p=new Promise(function(i,f){u.onload=i,u.onerror=f}),ta(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&sw)===Vu&&(e.count++,a=bi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function gD(e,t){return e.stylesheets&&e.count===0&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},LM+t);0<e.imgBytes&&xp===0&&(xp=125*AR()*SM);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>xp?50:xM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function IC(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)uf(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function bi(){this.count--,IC(this)}function yD(){this.imgCount--,IC(this)}function uf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sp=new Map,t.forEach(LD,e),Sp=null,bi.call(e))}function LD(e,t){if(!(t.state.loading&bo)){var a=Sp.get(e);if(a)var o=a.get(fL);else{a=new Map,Sp.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var u=l[n];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(a.set(u.dataset.precedence,u),o=u)}o&&a.set(fL,o)}l=t.instance,u=l.getAttribute("data-precedence"),n=a.get(u)||o,n===o&&a.set(fL,l),a.set(u,l),this.count++,o=bi.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=bo}}function xD(e,t,a,o,l,n,u,i,f){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Fu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ns(0),this.hiddenUpdates=Ns(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.transitionTypes=null,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function wC(e,t,a,o,l,n,u,i,f,p,g,I){return e=new xD(e,t,a,u,f,p,g,I,i),t=GE,n===!0&&(t|=da|qo),t|=xe,n=O(3,null,null,t),e.current=n,n.stateNode=e,t=Bm(),fu(t),e.pooledCache=t,fu(t),n.memoizedState={element:o,isDehydrated:a,cache:t},Pm(n),e}function AC(e){return e?(e=En,e):En}function Ag(e,t,a,o,l,n){if(ia&&typeof ia.onScheduleFiberRoot=="function")try{ia.onScheduleFiberRoot(zr,o,a)}catch(u){dl||(dl=!0,console.error("React instrumentation encountered an error: %o",u))}l=AC(l),o.context===null?o.context=l:o.pendingContext=l,il&&Ka!==null&&!pw&&(pw=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
170
-
171
- Check the render method of %s.`,J(Ka)||"Unknown")),o=mn(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=hn(e,o,t),a!==null&&(Jo(t,"root.render()",null),ht(a,e,t),ei(a,e,t))}function TC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Tg(e,t){TC(e,t),(e=e.alternate)&&TC(e,t)}function RC(e){if(e.tag===13||e.tag===31){var t=sa(e,67108864);t!==null&&ht(t,e,67108864),Tg(e,67108864)}}function DC(e){if(e.tag===13||e.tag===31){var t=Za(e);t=ir(t);var a=sa(e,t);a!==null&&ht(a,e,t),Tg(e,t)}}function SD(){return Ka}function vD(e,t,a,o){var l=M.T;M.T=null;var n=Fe.p;try{Fe.p=va,Rg(e,t,a,o)}finally{Fe.p=n,M.T=l}}function CD(e,t,a,o){var l=M.T;M.T=null;var n=Fe.p;try{Fe.p=Uo,Rg(e,t,a,o)}finally{Fe.p=n,M.T=l}}function Rg(e,t,a,o){if(vs){var l=Dg(o);if(l===null)ig(e,t,o,Cp,a),MC(e,o);else if(bD(l,e,t,a,o))o.stopPropagation();else if(MC(e,o),t&4&&-1<CM.indexOf(e)){for(;l!==null;){var n=It(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var u=Ma(n.pendingLanes);if(u!==0){var i=n;for(i.pendingLanes|=2,i.entangledLanes|=2;u;){var f=1<<31-Sa(u);i.entanglements[1]|=f,u&=~f}ul(n),(Ue&(Nt|ao))===Qt&&(ap=wt()+FI,hi(0,!1))}}break;case 31:case 13:i=sa(n,2),i!==null&&ht(i,n,2),Tr(),Tg(n,2)}if(n=Dg(o),n===null&&ig(e,t,o,Cp,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else ig(e,t,o,null,a)}}function Dg(e){return e=Lm(e),Eg(e)}function Eg(e){if(Cp=null,e=kt(e),e!==null){var t=F(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=ne(t),e!==null)return e;e=null}else if(a===31){if(e=fe(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cp=e,null}function EC(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 va;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 Uo;case"message":switch(UD()){case jg:return va;case Yg:return Uo;case Hr:case qD:return fl;case Qg:return Lf;default:return fl}default:return fl}}function MC(e,t){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Sd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vd.delete(t.pointerId)}}function Ii(e,t,a,o,l,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=It(t),t!==null&&RC(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bD(e,t,a,o,l){switch(t){case"focusin":return Xn=Ii(Xn,e,t,a,o,l),!0;case"dragenter":return jn=Ii(jn,e,t,a,o,l),!0;case"mouseover":return Yn=Ii(Yn,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return Sd.set(n,Ii(Sd.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,vd.set(n,Ii(vd.get(n)||null,e,t,a,o,l)),!0}return!1}function kC(e){var t=kt(e.target);if(t!==null){var a=F(t);if(a!==null){if(t=a.tag,t===13){if(t=ne(a),t!==null){e.blockedOn=t,un(e.priority,function(){DC(a)});return}}else if(t===31){if(t=fe(a),t!==null){e.blockedOn=t,un(e.priority,function(){DC(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Dg(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;Ri!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ri=l,a.target.dispatchEvent(o),Ri===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ri=null}else return t=It(a),t!==null&&RC(t),e.blockedOn=a,!1;t.shift()}return!0}function OC(e,t,a){rf(e)&&a.delete(t)}function ID(){pL=!1,Xn!==null&&rf(Xn)&&(Xn=null),jn!==null&&rf(jn)&&(jn=null),Yn!==null&&rf(Yn)&&(Yn=null),Sd.forEach(OC),vd.forEach(OC)}function sf(e,t){e.blockedOn===t&&(e.blockedOn=null,pL||(pL=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,ID)))}function BC(e){bp!==e&&(bp=e,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,function(){bp===e&&(bp=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!="function"){if(Eg(o||a)===null)continue;break}var n=It(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),fh(n,a,o,l))}}))}function Or(e){function t(f){return sf(f,e)}Xn!==null&&sf(Xn,e),jn!==null&&sf(jn,e),Yn!==null&&sf(Yn,e),Sd.forEach(t),vd.forEach(t);for(var a=0;a<Qn.length;a++){var o=Qn[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Qn.length&&(a=Qn[0],a.blockedOn===null);)kC(a),a.blockedOn===null&&Qn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],u=l[Ca]||null;if(typeof n=="function")u||BC(a);else if(u){var i=null;if(n&&n.hasAttribute("formAction")){if(l=n,u=n[Ca]||null)i=u.formAction;else if(Eg(l)!==null)continue}else i=u.action;typeof i=="function"?a[o+1]=i:(a.splice(o,3),o-=3),BC(a)}}}function UC(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(u){return l=u})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Mg(e){this._internalRoot=e}function df(e){this._internalRoot=e}function qC(e){e[wn]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ot=Kw(),kg=Zt(),wD=Xu(),Br=null,Og=null,Le=Object.assign,AD=Symbol.for("react.element"),sl=Symbol.for("react.transitional.element"),Ur=Symbol.for("react.portal"),qr=Symbol.for("react.fragment"),cf=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),Ug=Symbol.for("react.consumer"),Bo=Symbol.for("react.context"),ff=Symbol.for("react.forward_ref"),qg=Symbol.for("react.suspense"),Hg=Symbol.for("react.suspense_list"),pf=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),zg=Symbol.for("react.activity"),TD=Symbol.for("react.legacy_hidden"),RD=Symbol.for("react.memo_cache_sentinel"),Pg=Symbol.for("react.view_transition"),DD=Symbol.for("react.recoverable"),HC=Symbol.iterator,ED=Symbol.for("react.client.reference"),zt=Array.isArray,M=kg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fe=wD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,MD=Object.freeze({pending:!1,data:null,method:null,action:null}),Ng=[],_g=[],Nl=-1,bn=$(null),wi=$(null),In=$(null),mf=$(null),Ai=0,zC,PC,NC,_C,FC,VC,GC;Xo.__reactDisabledLog=!0;var Fg,XC,Vg=!1,Gg=new(typeof WeakMap=="function"?WeakMap:Map),Ka=null,il=!1,mo=Object.prototype.hasOwnProperty,Xg=Ot.unstable_scheduleCallback,kD=Ot.unstable_cancelCallback,OD=Ot.unstable_shouldYield,BD=Ot.unstable_requestPaint,wt=Ot.unstable_now,UD=Ot.unstable_getCurrentPriorityLevel,jg=Ot.unstable_ImmediatePriority,Yg=Ot.unstable_UserBlockingPriority,Hr=Ot.unstable_NormalPriority,qD=Ot.unstable_LowPriority,Qg=Ot.unstable_IdlePriority,HD=Ot.log,zD=Ot.unstable_setDisableYieldValue,zr=null,ia=null,dl=!1,cl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Sa=Math.clz32?Math.clz32:Qd,PD=Math.log,ND=Math.LN2,hf=256,gf=262144,yf=4194304,va=2,Uo=8,fl=32,Lf=268435456,_l=Math.random().toString(36).slice(2),aa="__reactFiber$"+_l,Ca="__reactProps$"+_l,wn="__reactContainer$"+_l,jC="__reactEvents$"+_l,_D="__reactListeners$"+_l,FD="__reactHandles$"+_l,YC="__reactResources$"+_l,Ti="__reactMarker$"+_l,xf="__reactLoad$"+_l,QC=new Set,Su={},Zg={},VD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},GD=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]*$"),ZC={},JC={},ze=!1,XD=/[\n"\\]/g,$C=!1,KC=!1,WC=!1,eb=!1,tb=!1,ab=!1,ob=["value","defaultValue"],lb=!1,nb=/["'&<>\n\t]|^\s|\s$/,jD="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ub="applet caption html table td th marquee object select template foreignObject desc title".split(" "),YD=ub.concat(["button"]),QD="dd dt li option optgroup p rp rt".split(" "),rb={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Sf={},Jg={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlock:"borderBlockEndColor borderBlockEndStyle borderBlockEndWidth borderBlockStartColor borderBlockStartStyle borderBlockStartWidth".split(" "),borderBlockColor:["borderBlockEndColor","borderBlockStartColor"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBlockStyle:["borderBlockEndStyle","borderBlockStartStyle"],borderBlockWidth:["borderBlockEndWidth","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInline:"borderInlineEndColor borderInlineEndStyle borderInlineEndWidth borderInlineStartColor borderInlineStartStyle borderInlineStartWidth".split(" "),borderInlineColor:["borderInlineEndColor","borderInlineStartColor"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderInlineStyle:["borderInlineEndStyle","borderInlineStartStyle"],borderInlineWidth:["borderInlineEndWidth","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],colorAdjust:["printColorAdjust"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],containIntrinsicSize:["containIntrinsicHeight","containIntrinsicWidth"],container:["containerName","containerType"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontSynthesis:["fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight"],fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],inset:["bottom","left","right","top"],insetBlock:["insetBlockEnd","insetBlockStart"],insetInline:["insetInlineEnd","insetInlineStart"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marginBlock:["marginBlockEnd","marginBlockStart"],marginInline:["marginInlineEnd","marginInlineStart"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],offset:["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],paddingBlock:["paddingBlockEnd","paddingBlockStart"],paddingInline:["paddingInlineEnd","paddingInlineStart"],pageBreakAfter:["breakAfter"],pageBreakBefore:["breakBefore"],pageBreakInside:["breakInside"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],scrollMargin:["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"],scrollMarginBlock:["scrollMarginBlockEnd","scrollMarginBlockStart"],scrollMarginInline:["scrollMarginInlineEnd","scrollMarginInlineStart"],scrollPadding:["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"],scrollPaddingBlock:["scrollPaddingBlockEnd","scrollPaddingBlockStart"],scrollPaddingInline:["scrollPaddingInlineEnd","scrollPaddingInlineStart"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],textWrap:["textWrapMode","textWrapStyle"],transition:["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],verticalAlign:["alignmentBaseline","baselineShift","baselineSource"],whiteSpace:["textWrapMode","whiteSpaceCollapse"],wordWrap:["overflowWrap"]},sb=/([A-Z])/g,ib=/^ms-/,ZD=/^(?:webkit|moz|o)[A-Z]/,JD=/^-ms-/,$D=/-(.)/g,db=/;\s*$/,Pr={},$g={},cb=!1,fb=!1,pb=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(" ")),vf="http://www.w3.org/1998/Math/MathML",Nr="http://www.w3.org/2000/svg",KD=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"]]),Cf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",credentialless:"credentialless",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",masktype:"maskType",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},mb={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_r={},WD=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eE=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hb=!1,ba={},gb=/^on./,tE=/^on[^A-Z]/,aE=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oE=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lE=/^[\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,Ri=null,Fr=null,Vr=null,Kg=!1,pl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wg=!1;if(pl)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Wg=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Wg=!1}var An=null,ey=null,bf=null,Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=ha(Tn),Ei=Le({},Tn,{view:0,detail:0}),nE=ha(Ei),ty,ay,Mi,wf=Le({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xm,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"?(ty=e.screenX-Mi.screenX,ay=e.screenY-Mi.screenY):ay=ty=0,Mi=e),ty)},movementY:function(e){return"movementY"in e?e.movementY:ay}}),yb=ha(wf),uE=Le({},wf,{dataTransfer:0}),rE=ha(uE),sE=Le({},Ei,{relatedTarget:0}),oy=ha(sE),iE=Le({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),dE=ha(iE),cE=Le({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fE=ha(cE),pE=Le({},Tn,{data:0}),Lb=ha(pE),mE=Lb,hE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gE={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"},yE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},LE=Le({},Ei,{key:function(e){if(e.key){var t=hE[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"?gE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xm,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}}),xE=ha(LE),SE=Le({},wf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xb=ha(SE),vE=Le({},Tn,{submitter:0}),CE=ha(vE),bE=Le({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xm}),IE=ha(bE),wE=Le({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),AE=ha(wE),TE=Le({},wf,{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}),RE=ha(TE),DE=Le({},Tn,{newState:0,oldState:0,source:0}),EE=ha(DE),ME=[9,13,27,32],Sb=229,ly=pl&&"CompositionEvent"in window,ki=null;pl&&"documentMode"in document&&(ki=document.documentMode);var kE=pl&&"TextEvent"in window&&!ki,vb=pl&&(!ly||ki&&8<ki&&11>=ki),Cb=32,bb=String.fromCharCode(Cb),Ib=!1,Gr=!1,OE={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},Oi=null,Bi=null,wb=!1;pl&&(wb=wT("input")&&(!document.documentMode||9<document.documentMode));var Ia=typeof Object.is=="function"?Object.is:MT,BE=pl&&"documentMode"in document&&11>=document.documentMode,Xr=null,ny=null,Ui=null,uy=!1,jr={animationend:nu("Animation","AnimationEnd"),animationiteration:nu("Animation","AnimationIteration"),animationstart:nu("Animation","AnimationStart"),transitionrun:nu("Transition","TransitionRun"),transitionstart:nu("Transition","TransitionStart"),transitioncancel:nu("Transition","TransitionCancel"),transitionend:nu("Transition","TransitionEnd")},ry={},Ab={};pl&&(Ab=document.createElement("div").style,"AnimationEvent"in window||(delete jr.animationend.animation,delete jr.animationiteration.animation,delete jr.animationstart.animation),"TransitionEvent"in window||delete jr.transitionend.transition);var Tb=uu("animationend"),Rb=uu("animationiteration"),Db=uu("animationstart"),UE=uu("transitionrun"),qE=uu("transitionstart"),HE=uu("transitioncancel"),Eb=uu("transitionend"),Mb=new Map,sy="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(" ");sy.push("scrollEnd");var zE=0,kb=0;if(typeof performance=="object"&&typeof performance.now=="function")var PE=performance,Ob=function(){return PE.now()};else{var NE=Date;Ob=function(){return NE.now()}}var iy=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)},_E="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Af=0,dy=1,cy=2,fy=3,ho=100,Tf="-\xA0",Rf="+\xA0",Bb="\u2007\xA0",at=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Ua="Components \u269B",Te="Scheduler \u269B",De="Blocking",Rn=!1,Fl={color:"primary",properties:null,tooltipText:"",track:Ua},Dn={start:-0,end:-0,detail:{devtools:Fl}},FE=["Changed Props",""],Ub="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",VE=["Changed Props",Ub],qi=1,Vl=2,go=[],Yr=0,py=0,En={};Object.freeze(En);var Gl=null,Qr=null,ie=0,GE=1,xe=2,da=8,qo=16,qb=32,Hb=!1;try{var zb=Object.preventExtensions({})}catch{Hb=!0}var my=new WeakMap,Zr=[],Jr=0,Df=null,Hi=0,yo=[],Lo=0,vu=null,Xl=1,jl="",Gt=null,et=null,Se=!1,ml=!1,Wa=null,Mn=null,xo=!1,hy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),gy=$(null),yy=$(null),Pb={},Ef=null,$r=null,Kr=!1,XE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jE=Ot.unstable_scheduleCallback,YE=Ot.unstable_NormalPriority,Bt={$$typeof:Bo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},zi=null,At=Ot.unstable_now,Mf=console.createTask?console.createTask:function(){return null},Pi=1,kf=2,Xt=-0,Yl=-0,Ho=-0,Ql=null,wa=-1.1,Cu=-0,it=-0,ae=-1.1,ue=-1.1,st=null,gt=!1,kn=-0,hl=-1.1,Ni=null,On=0,Ly=null,xy=null,bu=-1.1,_i=null,Wr=-1.1,Of=-1.1,zo=-0,Zl=-1.1,So=-1.1,Sy=0,Fi=null,Nb=null,_b=null,Bn=-1.1,Iu=null,Un=-1.1,Bf=-1.1,vy=-0,Cy=-0,wu=0,qa=null,Fb=0,Vi=-1.1,Uf=!1,qf=!1,Gi=null,by=0,qn=0,es=null,Vb=M.S;M.S=function(e,t){if(NI=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Zl&&0>So){Zl=At();var a=xi(),o=Li();(a!==Un||o!==Iu)&&(Un=-1.1),Bn=a,Iu=o}HT(e,t)}if(zi!==null)for(a=hs;a!==null;)mS(a,zi),a=a.next;if(a=e.types,a!==null){for(o=hs;o!==null;)mS(o,a),o=o.next;if(qn!==0){o=zi,o===null&&(o=zi=[]);for(var l=0;l<a.length;l++){var n=a[l];o.indexOf(n)===-1&&o.push(n)}}}Vb!==null&&Vb(e,t)};var Au=$(null),Po={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Xi=[],ji=[],Yi=[],Qi=[],Zi=[],Ji=[],Tu=new Set;Po.recordUnsafeLifecycleWarnings=function(e,t){Tu.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Xi.push(e),e.mode&da&&typeof t.UNSAFE_componentWillMount=="function"&&ji.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Yi.push(e),e.mode&da&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Qi.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Zi.push(e),e.mode&da&&typeof t.UNSAFE_componentWillUpdate=="function"&&Ji.push(e))},Po.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Xi.length&&(Xi.forEach(function(i){e.add(J(i)||"Component"),Tu.add(i.type)}),Xi=[]);var t=new Set;0<ji.length&&(ji.forEach(function(i){t.add(J(i)||"Component"),Tu.add(i.type)}),ji=[]);var a=new Set;0<Yi.length&&(Yi.forEach(function(i){a.add(J(i)||"Component"),Tu.add(i.type)}),Yi=[]);var o=new Set;0<Qi.length&&(Qi.forEach(function(i){o.add(J(i)||"Component"),Tu.add(i.type)}),Qi=[]);var l=new Set;0<Zi.length&&(Zi.forEach(function(i){l.add(J(i)||"Component"),Tu.add(i.type)}),Zi=[]);var n=new Set;if(0<Ji.length&&(Ji.forEach(function(i){n.add(J(i)||"Component"),Tu.add(i.type)}),Ji=[]),0<t.size){var u=C(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
172
-
173
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
174
-
175
- Please update the following components: %s`,u)}0<o.size&&(u=C(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
176
-
177
- * Move data fetching code or side effects to componentDidUpdate.
178
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
179
-
180
- Please update the following components: %s`,u)),0<n.size&&(u=C(n),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
181
-
182
- * Move data fetching code or side effects to componentDidUpdate.
183
-
184
- Please update the following components: %s`,u)),0<e.size&&(u=C(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
185
-
186
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
188
-
189
- Please update the following components: %s`,u)),0<a.size&&(u=C(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
190
-
191
- * Move data fetching code or side effects to componentDidUpdate.
192
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
193
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
194
-
195
- Please update the following components: %s`,u)),0<l.size&&(u=C(l),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
196
-
197
- * Move data fetching code or side effects to componentDidUpdate.
198
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
199
-
200
- Please update the following components: %s`,u))};var Hf=new Map,Gb=new Set;Po.recordLegacyContextWarning=function(e,t){for(var a=null,o=e;o!==null;)o.mode&da&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Gb.has(e.type)&&(o=Hf.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(o===void 0&&(o=[],Hf.set(a,o)),o.push(e))},Po.flushLegacyContextWarning=function(){Hf.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(J(l)||"Component"),Gb.add(l.type)});var o=C(a);P(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
201
-
202
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
203
-
204
- Please update the following components: %s
205
-
206
- Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},Po.discardPendingWarnings=function(){Xi=[],ji=[],Yi=[],Qi=[],Zi=[],Ji=[],Hf=new Map};var QE="",Xb={react_stack_bottom_frame:function(e,t,a){var o=il;il=!0;try{return e(t,a)}finally{il=o}}},Iy=Xb.react_stack_bottom_frame.bind(Xb),jb={react_stack_bottom_frame:function(e){var t=il;il=!0;try{return e.render()}finally{il=t}}},Yb=jb.react_stack_bottom_frame.bind(jb),Qb={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){_e(e,e.return,a)}}},wy=Qb.react_stack_bottom_frame.bind(Qb),Zb={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(n){_e(e,e.return,n)}}},Jb=Zb.react_stack_bottom_frame.bind(Zb),$b={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},ZE=$b.react_stack_bottom_frame.bind($b),Kb={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){_e(e,t,o)}}},Wb=Kb.react_stack_bottom_frame.bind(Kb),eI={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},JE=eI.react_stack_bottom_frame.bind(eI),tI={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){_e(e,t,o)}}},$E=tI.react_stack_bottom_frame.bind(tI),aI={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},KE=aI.react_stack_bottom_frame.bind(aI),ts=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Ay=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),zf=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Pf={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Ru=null,Nf=null,Ty=!1,Du=null,$i=!1,as=null,Ki=0,Re=null,Ry,oI=Ry=!1,lI={},nI={},uI={};k=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=J(e),l=o||"null";if(!lI[l]){lI[l]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag=="number"&&(l=J(e))&&(n=`
207
-
208
- Check the render method of \``+l+"`."),n||o&&(n=`
209
-
210
- Check the top-level render call using <`+o+">.");var u="";a!=null&&e!==a&&(o=null,typeof a.tag=="number"?o=J(a):typeof a.name=="string"&&(o=a.name),o&&(u=" It was passed a child from "+o+".")),P(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,u)})}}};var Eu=RS(!0),rI=RS(!1),sI=0,iI=1,dI=2,Dy=3,Hn=!1,cI=!1,Ey=null,My=!1,zn=$(null),_f=$(0),oa=$(null),ca=null,os=1,Wi=2,la=$(0),ed=0,vo=1,Aa=2,eo=4,fa=8,ls,fI=new Set,pI=new Set,ky=new Set,mI=new Set,Jl=0,de=null,$e=null,Ut=null,Ff=!1,ns=!1,Mu=!1,Vf=0,td=0,gl=null,WE=0,eM=25,D=null,Co=null,$l=-1,ad=!1,Gf={readContext:rt,use:Ln,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt,useEffectEvent:vt},Oy=null,hI=null,By=null,gI=null,yl=null,No=null,Xf=null;Oy={readContext:function(e){return rt(e)},use:Ln,useCallback:function(e,t){return D="useCallback",Ae(),yr(t),sh(e,t)},useContext:function(e){return D="useContext",Ae(),rt(e)},useEffect:function(e,t){return D="useEffect",Ae(),yr(t),Oc(e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",Ae(),yr(a),rh(e,t,a)},useInsertionEffect:function(e,t){D="useInsertionEffect",Ae(),yr(t),mu(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",Ae(),yr(t),uh(e,t)},useMemo:function(e,t){D="useMemo",Ae(),yr(t);var a=M.H;M.H=yl;try{return ih(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",Ae();var o=M.H;M.H=yl;try{return $m(e,t,a)}finally{M.H=o}},useRef:function(e){return D="useRef",Ae(),lh(e)},useState:function(e){D="useState",Ae();var t=M.H;M.H=yl;try{return th(e)}finally{M.H=t}},useDebugValue:function(){D="useDebugValue",Ae()},useDeferredValue:function(e,t){return D="useDeferredValue",Ae(),dh(e,t)},useTransition:function(){return D="useTransition",Ae(),ph()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",Ae(),Wm(e,t,a)},useId:function(){return D="useId",Ae(),mh()},useFormState:function(e,t){return D="useFormState",Ae(),Rc(),xr(e,t)},useActionState:function(e,t){return D="useActionState",Ae(),xr(e,t)},useOptimistic:function(e){return D="useOptimistic",Ae(),ah(e)},useHostTransitionStatus:hu,useMemoCache:pu,useCacheRefresh:function(){return D="useCacheRefresh",Ae(),hh()},useEffectEvent:function(e){return D="useEffectEvent",Ae(),nh(e)}},hI={readContext:function(e){return rt(e)},use:Ln,useCallback:function(e,t){return D="useCallback",H(),sh(e,t)},useContext:function(e){return D="useContext",H(),rt(e)},useEffect:function(e,t){return D="useEffect",H(),Oc(e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",H(),rh(e,t,a)},useInsertionEffect:function(e,t){D="useInsertionEffect",H(),mu(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",H(),uh(e,t)},useMemo:function(e,t){D="useMemo",H();var a=M.H;M.H=yl;try{return ih(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",H();var o=M.H;M.H=yl;try{return $m(e,t,a)}finally{M.H=o}},useRef:function(e){return D="useRef",H(),lh(e)},useState:function(e){D="useState",H();var t=M.H;M.H=yl;try{return th(e)}finally{M.H=t}},useDebugValue:function(){D="useDebugValue",H()},useDeferredValue:function(e,t){return D="useDeferredValue",H(),dh(e,t)},useTransition:function(){return D="useTransition",H(),ph()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",H(),Wm(e,t,a)},useId:function(){return D="useId",H(),mh()},useActionState:function(e,t){return D="useActionState",H(),xr(e,t)},useFormState:function(e,t){return D="useFormState",H(),Rc(),xr(e,t)},useOptimistic:function(e){return D="useOptimistic",H(),ah(e)},useHostTransitionStatus:hu,useMemoCache:pu,useCacheRefresh:function(){return D="useCacheRefresh",H(),hh()},useEffectEvent:function(e){return D="useEffectEvent",H(),nh(e)}},By={readContext:function(e){return rt(e)},use:Ln,useCallback:function(e,t){return D="useCallback",H(),qc(e,t)},useContext:function(e){return D="useContext",H(),rt(e)},useEffect:function(e,t){D="useEffect",H(),Oa(2048,fa,e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",H(),Uc(e,t,a)},useInsertionEffect:function(e,t){return D="useInsertionEffect",H(),Oa(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",H(),Oa(4,eo,e,t)},useMemo:function(e,t){D="useMemo",H();var a=M.H;M.H=No;try{return Hc(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",H();var o=M.H;M.H=No;try{return Lr(e,t,a)}finally{M.H=o}},useRef:function(){return D="useRef",H(),Ge().memoizedState},useState:function(){D="useState",H();var e=M.H;M.H=No;try{return Lr(Mo)}finally{M.H=e}},useDebugValue:function(){D="useDebugValue",H()},useDeferredValue:function(e,t){return D="useDeferredValue",H(),JS(e,t)},useTransition:function(){return D="useTransition",H(),a0()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",H(),Ec(e,t,a)},useId:function(){return D="useId",H(),Ge().memoizedState},useFormState:function(e){return D="useFormState",H(),Rc(),Mc(e)},useActionState:function(e){return D="useActionState",H(),Mc(e)},useOptimistic:function(e,t){return D="useOptimistic",H(),NS(e,t)},useHostTransitionStatus:hu,useMemoCache:pu,useCacheRefresh:function(){return D="useCacheRefresh",H(),Ge().memoizedState},useEffectEvent:function(e){return D="useEffectEvent",H(),Bc(e)}},gI={readContext:function(e){return rt(e)},use:Ln,useCallback:function(e,t){return D="useCallback",H(),qc(e,t)},useContext:function(e){return D="useContext",H(),rt(e)},useEffect:function(e,t){D="useEffect",H(),Oa(2048,fa,e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",H(),Uc(e,t,a)},useInsertionEffect:function(e,t){return D="useInsertionEffect",H(),Oa(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",H(),Oa(4,eo,e,t)},useMemo:function(e,t){D="useMemo",H();var a=M.H;M.H=Xf;try{return Hc(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",H();var o=M.H;M.H=Xf;try{return ni(e,t,a)}finally{M.H=o}},useRef:function(){return D="useRef",H(),Ge().memoizedState},useState:function(){D="useState",H();var e=M.H;M.H=Xf;try{return ni(Mo)}finally{M.H=e}},useDebugValue:function(){D="useDebugValue",H()},useDeferredValue:function(e,t){return D="useDeferredValue",H(),$S(e,t)},useTransition:function(){return D="useTransition",H(),o0()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",H(),Ec(e,t,a)},useId:function(){return D="useId",H(),Ge().memoizedState},useFormState:function(e){return D="useFormState",H(),Rc(),kc(e)},useActionState:function(e){return D="useActionState",H(),kc(e)},useOptimistic:function(e,t){return D="useOptimistic",H(),FS(e,t)},useHostTransitionStatus:hu,useMemoCache:pu,useCacheRefresh:function(){return D="useCacheRefresh",H(),Ge().memoizedState},useEffectEvent:function(e){return D="useEffectEvent",H(),Bc(e)}},yl={readContext:function(e){return S(),rt(e)},use:function(e){return y(),Ln(e)},useCallback:function(e,t){return D="useCallback",y(),Ae(),sh(e,t)},useContext:function(e){return D="useContext",y(),Ae(),rt(e)},useEffect:function(e,t){return D="useEffect",y(),Ae(),Oc(e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",y(),Ae(),rh(e,t,a)},useInsertionEffect:function(e,t){D="useInsertionEffect",y(),Ae(),mu(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",y(),Ae(),uh(e,t)},useMemo:function(e,t){D="useMemo",y(),Ae();var a=M.H;M.H=yl;try{return ih(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",y(),Ae();var o=M.H;M.H=yl;try{return $m(e,t,a)}finally{M.H=o}},useRef:function(e){return D="useRef",y(),Ae(),lh(e)},useState:function(e){D="useState",y(),Ae();var t=M.H;M.H=yl;try{return th(e)}finally{M.H=t}},useDebugValue:function(){D="useDebugValue",y(),Ae()},useDeferredValue:function(e,t){return D="useDeferredValue",y(),Ae(),dh(e,t)},useTransition:function(){return D="useTransition",y(),Ae(),ph()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",y(),Ae(),Wm(e,t,a)},useId:function(){return D="useId",y(),Ae(),mh()},useFormState:function(e,t){return D="useFormState",y(),Ae(),xr(e,t)},useActionState:function(e,t){return D="useActionState",y(),Ae(),xr(e,t)},useOptimistic:function(e){return D="useOptimistic",y(),Ae(),ah(e)},useMemoCache:function(e){return y(),pu(e)},useHostTransitionStatus:hu,useCacheRefresh:function(){return D="useCacheRefresh",Ae(),hh()},useEffectEvent:function(e){return D="useEffectEvent",y(),Ae(),nh(e)}},No={readContext:function(e){return S(),rt(e)},use:function(e){return y(),Ln(e)},useCallback:function(e,t){return D="useCallback",y(),H(),qc(e,t)},useContext:function(e){return D="useContext",y(),H(),rt(e)},useEffect:function(e,t){D="useEffect",y(),H(),Oa(2048,fa,e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",y(),H(),Uc(e,t,a)},useInsertionEffect:function(e,t){return D="useInsertionEffect",y(),H(),Oa(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",y(),H(),Oa(4,eo,e,t)},useMemo:function(e,t){D="useMemo",y(),H();var a=M.H;M.H=No;try{return Hc(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",y(),H();var o=M.H;M.H=No;try{return Lr(e,t,a)}finally{M.H=o}},useRef:function(){return D="useRef",y(),H(),Ge().memoizedState},useState:function(){D="useState",y(),H();var e=M.H;M.H=No;try{return Lr(Mo)}finally{M.H=e}},useDebugValue:function(){D="useDebugValue",y(),H()},useDeferredValue:function(e,t){return D="useDeferredValue",y(),H(),JS(e,t)},useTransition:function(){return D="useTransition",y(),H(),a0()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",y(),H(),Ec(e,t,a)},useId:function(){return D="useId",y(),H(),Ge().memoizedState},useFormState:function(e){return D="useFormState",y(),H(),Mc(e)},useActionState:function(e){return D="useActionState",y(),H(),Mc(e)},useOptimistic:function(e,t){return D="useOptimistic",y(),H(),NS(e,t)},useMemoCache:function(e){return y(),pu(e)},useHostTransitionStatus:hu,useCacheRefresh:function(){return D="useCacheRefresh",H(),Ge().memoizedState},useEffectEvent:function(e){return D="useEffectEvent",y(),H(),Bc(e)}},Xf={readContext:function(e){return S(),rt(e)},use:function(e){return y(),Ln(e)},useCallback:function(e,t){return D="useCallback",y(),H(),qc(e,t)},useContext:function(e){return D="useContext",y(),H(),rt(e)},useEffect:function(e,t){D="useEffect",y(),H(),Oa(2048,fa,e,t)},useImperativeHandle:function(e,t,a){return D="useImperativeHandle",y(),H(),Uc(e,t,a)},useInsertionEffect:function(e,t){return D="useInsertionEffect",y(),H(),Oa(4,Aa,e,t)},useLayoutEffect:function(e,t){return D="useLayoutEffect",y(),H(),Oa(4,eo,e,t)},useMemo:function(e,t){D="useMemo",y(),H();var a=M.H;M.H=No;try{return Hc(e,t)}finally{M.H=a}},useReducer:function(e,t,a){D="useReducer",y(),H();var o=M.H;M.H=No;try{return ni(e,t,a)}finally{M.H=o}},useRef:function(){return D="useRef",y(),H(),Ge().memoizedState},useState:function(){D="useState",y(),H();var e=M.H;M.H=No;try{return ni(Mo)}finally{M.H=e}},useDebugValue:function(){D="useDebugValue",y(),H()},useDeferredValue:function(e,t){return D="useDeferredValue",y(),H(),$S(e,t)},useTransition:function(){return D="useTransition",y(),H(),o0()},useSyncExternalStore:function(e,t,a){return D="useSyncExternalStore",y(),H(),Ec(e,t,a)},useId:function(){return D="useId",y(),H(),Ge().memoizedState},useFormState:function(e){return D="useFormState",y(),H(),kc(e)},useActionState:function(e){return D="useActionState",y(),H(),kc(e)},useOptimistic:function(e,t){return D="useOptimistic",y(),H(),FS(e,t)},useMemoCache:function(e){return y(),pu(e)},useHostTransitionStatus:hu,useCacheRefresh:function(){return D="useCacheRefresh",H(),Ge().memoizedState},useEffectEvent:function(e){return D="useEffectEvent",y(),H(),Bc(e)}};var yI={},LI=new Set,xI=new Set,SI=new Set,vI=new Set,CI=new Set,bI=new Set,II=new Set,wI=new Set,AI=new Set,TI=new Set;Object.freeze(yI);var Uy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Za(e),l=mn(o);l.payload=t,a!=null&&(yh(a),l.callback=a),t=hn(e,l,o),t!==null&&(Jo(o,"this.setState()",e),ht(t,e,o),ei(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Za(e),l=mn(o);l.tag=iI,l.payload=t,a!=null&&(yh(a),l.callback=a),t=hn(e,l,o),t!==null&&(Jo(o,"this.replaceState()",e),ht(t,e,o),ei(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Za(e),o=mn(a);o.tag=dI,t!=null&&(yh(t),o.callback=t),t=hn(e,o,a),t!==null&&(Jo(a,"this.forceUpdate()",e),ht(t,e,a),ei(t,e,a))}},us=null,qy=null,Hy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Tt=!1,RI={},DI={},EI={},MI={},rs=!1,kI={},zy={},OI={},Py={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},BI=!1,UI=null;UI=new Set;var jf=!1,to=null,Ll=null,Ha=0,Yf=new Map,qI={},od=0,Ny=1,Qf=2,jt=!1,Xe=!1,xl=!1,_y=!1,HI=typeof WeakSet=="function"?WeakSet:Set,Yt=null,ss=null,is=null,Sl=!1,ld=!1,Zf=!1,Fy=!1,qt=null,za=!1,_o=null,Pt=!1,ku=8192,tM={getCacheForType:function(e){var t=rt(Bt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt(Bt).controller.signal},getOwner:function(){return Ka}};if(typeof Symbol=="function"&&Symbol.for){var nd=Symbol.for;nd("selector.component"),nd("selector.has_pseudo_class"),nd("selector.role"),nd("selector.test_id"),nd("selector.text")}var aM=[],oM=typeof WeakMap=="function"?WeakMap:Map,Qt=0,Nt=2,ao=4,Kl=0,ud=1,Ou=2,Jf=3,Pn=4,rd=6,zI=5,Ue=Qt,Ke=null,be=null,pe=0,Pa=0,$f=1,Bu=2,sd=3,PI=4,Vy=5,id=6,Kf=7,Gy=8,Uu=9,je=Pa,oo=null,Wl=!1,ds=!1,Xy=!1,vl=0,dt=Kl,Nn=0,_n=0,Wf=0,Na=0,qu=0,dd=null,Ta=null,ep=!1,tp=0,NI=0,_I=300,ap=1/0,FI=500,cd=null,yt=null,Fn=null,op=0,fd=1,jy=2,VI=3,Cl=0,GI=1,XI=2,Yy=3,Qy=4,lp=5,ct=0,Fo=null,Hu=null,_a=0,Zy=0,np=-0,Jy=null,jI=null,cs=null,fs=null,ps=null,up=null,lo=op,$y=null,lM=50,pd=0,rp=null,Ky=!1,sp=!1,nM=50,zu=0,md=null,ms=!1,YI=!1,ip=null,QI=!1,ZI=new Set,uM={},hs=null,gs=null,Wy=!1,eL=!1,dp=!1,tL=!1,Vn=0,aL={};(function(){for(var e=0;e<sy.length;e++){var t=sy[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Do(a,"on"+t)}Do(Tb,"onAnimationEnd"),Do(Rb,"onAnimationIteration"),Do(Db,"onAnimationStart"),Do("dblclick","onDoubleClick"),Do("focusin","onFocus"),Do("focusout","onBlur"),Do(UE,"onTransitionRun"),Do(qE,"onTransitionStart"),Do(HE,"onTransitionCancel"),Do(Eb,"onTransitionEnd")})(),dr("onMouseEnter",["mouseout","mouseover"]),dr("onMouseLeave",["mouseout","mouseover"]),dr("onPointerEnter",["pointerout","pointerover"]),dr("onPointerLeave",["pointerout","pointerover"]),ou("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ou("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ou("onBeforeInput",["compositionend","keypress","textInput","paste"]),ou("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ou("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ou("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hd="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(" "),oL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hd)),cp="_reactListening"+Math.random().toString(36).slice(2),JI=!1,$I=!1,fp=!1,KI=!1,pp=!1,mp=!1,WI=!1,hp={},rM=/\r\n?/g,sM=/\u0000|\uFFFD/g,Pu="http://www.w3.org/1999/xlink",lL="http://www.w3.org/XML/1998/namespace",iM={},dM="javascript:throw new Error('React form unexpectedly submitted.')",cM="suppressHydrationWarning",Nu="&",gp="/&",gd="$",yd="/$",Gn="$?",_u="$~",ys="$!",fM="html",pM="body",mM="head",nL="F!",ew="F",tw="loading",aw="style",en=0,Ls=1,yp=2,uL=null,rL=null,ow=!1,lw={dialog:!0,webview:!0},sL=null,Ld=void 0,iL=typeof setTimeout=="function"?setTimeout:void 0,hM=typeof clearTimeout=="function"?clearTimeout:void 0,Fu=-1,nw=typeof Promise=="function"?Promise:void 0,uw=typeof requestAnimationFrame=="function"?requestAnimationFrame:iL,gM=typeof queueMicrotask=="function"?queueMicrotask:typeof nw<"u"?function(e){return nw.resolve(null).then(e).catch(DR)}:iL,yM=500;xu.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Le({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},xu.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],l=0;l<a.length;l++){var n=a[l].effect;n!==null&&n.target===e&&n.pseudoElement===t&&o.push(a[l])}return o},xu.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},Ja.prototype.addEventListener=function(e,t,a){var o=null,l=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var n=this._eventListeners;if(lC(n,e,t,a)===-1){var u=this,i=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(i=function(f){u.removeEventListener(e,t,a),typeof t=="function"?t.call(this,f):t.handleEvent(f)}),o!==null&&(l=u.removeEventListener.bind(u,e,t,a),o.addEventListener("abort",l,{once:!0}),l=o.removeEventListener.bind(o,"abort",l)),o=Er(a),n.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:i,cleanup:l}),Ce(this._fragmentFiber,QR,e,i,o)}this._eventListeners=n}},Ja.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=lC(o,e,t,a),t!==-1)){var l=o[t];a=l.attachedListener;var n=l.cleanup;l=Er(l.optionsOrUseCapture),Ce(this._fragmentFiber,ZR,e,a,l),o.splice(t,1),n!==null&&n()}},Ja.prototype.dispatchEvent=function(e){var t=ge(this._fragmentFiber);if(t===null)return!0;t=we(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var l=0;l<a.length;l++){var n=a[l];o.addEventListener(n.type,n.attachedListener,Er(n.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(l=0;l<a.length;l++)n=a[l],o.removeEventListener(n.type,n.attachedListener,Er(n.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)},Ja.prototype.focus=function(e){Z(this._fragmentFiber.child,!0,nC,e,void 0,void 0)},Ja.prototype.focusLast=function(e){var t=[];Z(this._fragmentFiber.child,!0,yg,t,void 0,void 0);for(var a=t.length-1;0<=a&&!nC(t[a],e);a--);},Ja.prototype.blur=function(){var e=ge(this._fragmentFiber);e!==null&&(e=we(e),e=yi(e).activeElement,e!==null&&Ce(this._fragmentFiber,JR,e))},Ja.prototype.observeUsing=function(e){var t=!1,a=!1;Ce(this._fragmentFiber,function(o){if(o.tag===6)t=!0;else return a=!0;return!1}),t&&!a&&console.error("observeUsing() was called on a FragmentInstance with only text children. Observers do not work on text nodes."),this._observers===null&&(this._observers=new Set),this._observers.add(e),Ce(this._fragmentFiber,$R,e)},Ja.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Ce(this._fragmentFiber,KR,e);for(var a=t=0;a<Vo.length;a++){var o=Vo[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Vo[t++]=o}Vo.length=t}else console.error("You are calling unobserveUsing() with an observer that is not being observed with this fragment instance. First attach the observer with observeUsing()")};var Vo=[],dL=!1;Ja.prototype.getClientRects=function(){var e=[];return Ce(this._fragmentFiber,eD,e),e},Ja.prototype.getRootNode=function(e){var t=ge(this._fragmentFiber);return t===null?this:we(t).getRootNode(e)},Ja.prototype.compareDocumentPosition=function(e){var t=ge(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Ce(this._fragmentFiber,yg,a);var o=we(t);if(a.length===0){if(t=o,nt(this._fragmentFiber)){e:{for(a=this._fragmentFiber.return;a!==null;){if(a.tag===4){a=a.stateNode.containerInfo;break e}if(a.tag===3||a.tag===5||a.tag===27)break;a=a.return}a=null}a!=null&&(t=a)}a=this._fragmentFiber;var l=o=t.compareDocumentPosition(e);return t===e?l=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=V(a)[1],a===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=we(a).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=we(a[0]),l=we(a[a.length-1]);var n=nt(this._fragmentFiber)?t.parentElement:o;if(n==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,n=n.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var u=t.compareDocumentPosition(e),i=l.compareDocumentPosition(e),f=u&Node.DOCUMENT_POSITION_CONTAINED_BY||i&Node.DOCUMENT_POSITION_CONTAINED_BY;return i=o&&n&&u&Node.DOCUMENT_POSITION_FOLLOWING&&i&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||n&&l===e||f||i?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!n&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:u,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tD(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},Ja.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error("FragmentInstance.scrollIntoView() does not support scrollIntoViewOptions. Use the alignToTop boolean instead.");var t=[];Ce(this._fragmentFiber,yg,t);var a=e!==!1;if(t.length===0){var o=V(this._fragmentFiber);if(o=a?o[1]||o[0]||ge(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=we(o),uC(e,a);return}if(o=we(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null?a.scrollIntoView(e):console.warn("You are attempting to scroll a FragmentInstance that is only mounted inside a detached DocumentFragment. No scroll was performed.");return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var l=t[o];l.tag===6?(l=we(l),uC(l,a)):we(l).scrollIntoView(e),o+=a?-1:1}};var cL=null,Vu=0,xd=1,rw=2,sw=3,bo=4,Io=new Map,iw=new Set,tn=Fe.d;Fe.d={f:function(){var e=tn.f(),t=Tr();return e||t},r:function(e){var t=It(e);t!==null&&t.tag===5&&t.type==="form"?t0(t):tn.r(e)},D:function(e){tn.D(e),hC("dns-prefetch",e,null)},C:function(e,t){tn.C(e,t),hC("preconnect",e,t)},L:function(e,t,a){tn.L(e,t,a);var o=xs;if(o&&e&&t){var l='link[rel="preload"][as="'+io(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+io(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+io(a.imageSizes)+'"]')):l+='[href="'+io(e)+'"]';var n=l;switch(t){case"style":n=Mr(e);break;case"script":n=kr(e)}if(!(Io.has(n)||(e=Le({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Io.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(vi(n))||t==="script"&&o.querySelector(Ci(n))))){var u=o.createElement("link");ta(u,"link",e),t==="style"&&(u[xf]=!0,u.onload=u.onerror=function(){cx(u)}),St(u),o.head.appendChild(u)}}},m:function(e,t){tn.m(e,t);var a=xs;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+io(o)+'"][href="'+io(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=kr(e)}if(!Io.has(n)&&(e=Le({rel:"modulepreload",href:e},t),Io.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ci(n)))return}o=a.createElement("link"),ta(o,"link",e),St(o),a.head.appendChild(o)}}},X:function(e,t){tn.X(e,t);var a=xs;if(a&&e){var o=Wt(a).hoistableScripts,l=kr(e),n=o.get(l);n||(n=a.querySelector(Ci(l)),n||(e=Le({src:e,async:!0},t),(t=Io.get(l))&&Ig(e,t),n=a.createElement("script"),St(n),ta(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){tn.S(e,t,a);var o=xs;if(o&&e){var l=Wt(o).hoistableStyles,n=Mr(e);t=t||"default";var u=l.get(n);if(!u){var i={loading:Vu,preload:null};if(u=o.querySelector(vi(n)))i.loading=xd|bo;else{e=Le({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Io.get(n))&&bg(e,a);var f=u=o.createElement("link");St(f),ta(f,"link",e),f._p=new Promise(function(p,g){f.onload=p,f.onerror=g}),f.addEventListener("load",function(){i.loading|=xd}),f.addEventListener("error",function(){i.loading|=rw}),i.loading|=bo,nf(u,t,o)}u={type:"stylesheet",instance:u,count:1,state:i},l.set(n,u)}}},M:function(e,t){tn.M(e,t);var a=xs;if(a&&e){var o=Wt(a).hoistableScripts,l=kr(e),n=o.get(l);n||(n=a.querySelector(Ci(l)),n||(e=Le({src:e,async:!0,type:"module"},t),(t=Io.get(l))&&Ig(e,t),n=a.createElement("script"),St(n),ta(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var xs=typeof document>"u"?null:document,Lp=null,LM=6e4,xM=800,SM=500,xp=0,fL=null,Sp=null,Gu=MD,Ss={$$typeof:Bo,Provider:null,Consumer:null,_currentValue:Gu,_currentValue2:Gu,_threadCount:0},dw="%c%s%c",cw="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",fw="",vp=" ",vM=Function.prototype.bind,pw=!1,mw=null,hw=null,gw=null,yw=null,Lw=null,xw=null,Sw=null,vw=null,Cw=null,bw=null;mw=function(e,t,a,o){t=r(e,t),t!==null&&(a=s(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Le({},e.memoizedProps),a=sa(e,2),a!==null&&ht(a,e,2))},hw=function(e,t,a){t=r(e,t),t!==null&&(a=m(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Le({},e.memoizedProps),a=sa(e,2),a!==null&&ht(a,e,2))},gw=function(e,t,a,o){t=r(e,t),t!==null&&(a=d(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Le({},e.memoizedProps),a=sa(e,2),a!==null&&ht(a,e,2))},yw=function(e,t,a){e.pendingProps=s(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sa(e,2),t!==null&&ht(t,e,2)},Lw=function(e,t){e.pendingProps=m(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sa(e,2),t!==null&&ht(t,e,2)},xw=function(e,t,a){e.pendingProps=d(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=sa(e,2),t!==null&&ht(t,e,2)},Sw=function(e){var t=sa(e,2);t!==null&&ht(t,e,2)},vw=function(e){var t=ka(),a=sa(e,t);a!==null&&ht(a,e,t)},Cw=function(e){L=e},bw=function(e){h=e};var vs=!0,Cp=null,pL=!1,Xn=null,jn=null,Yn=null,Sd=new Map,vd=new Map,Qn=[],CM="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(" "),bp=null;if(df.prototype.render=Mg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Y(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Za(o);Ag(o,l,a,t,null,null)},df.prototype.unmount=Mg.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Ue&(Nt|ao))!==Qt&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ag(e.current,2,null,e,null,null),Tr(),t[wn]=null}},df.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ft();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Qn.length&&t!==0&&t<Qn[a].priority;a++);Qn.splice(a,0,e),a===0&&kC(e)}},(function(){var e=kg.version;if(e!=="19.3.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
211
- - react: `+(e+`
212
- - react-dom: 19.3.1
213
- Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Fe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=Me(t),e=e!==null?He(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.3.1"};return e.overrideHookState=mw,e.overrideHookStateDeletePath=hw,e.overrideHookStateRenamePath=gw,e.overrideProps=yw,e.overridePropsDeletePath=Lw,e.overridePropsRenamePath=xw,e.scheduleUpdate=Sw,e.scheduleRetry=vw,e.setErrorHandler=Cw,e.setSuspenseHandler=bw,e.scheduleRefresh=T,e.scheduleRoot=q,e.setRefreshHandler=B,e.getCurrentFiber=SD,zs(e)})()&&pl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Iw=window.location.protocol;/^(https?|file):$/.test(Iw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Iw==="file:"?`
214
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ep.createRoot=function(e,t){if(!Y(e))throw Error("Target container is not a DOM element.");qC(e);var a=!1,o="",l=i0,n=d0,u=c0;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===sl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
215
-
216
- let root = createRoot(domContainer);
217
- root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=wC(e,1,!1,null,null,a,o,null,l,n,u,UC),e[wn]=t.current,sg(e),new Mg(t)},Ep.hydrateRoot=function(e,t,a){if(!Y(e))throw Error("Target container is not a DOM element.");qC(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",n=i0,u=d0,i=c0,f=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(i=a.onRecoverableError),a.formState!==void 0&&(f=a.formState)),t=wC(e,1,!0,t,a??null,o,l,f,n,u,i,UC),t.context=AC(null),a=t.current,o=Za(a),o=ir(o),l=mn(o),l.callback=null,hn(a,l,o),Jo(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Dl(t,a),ul(t),e[wn]=t.current,sg(e),new df(t)},Ep.version="19.3.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t1=Cd((ik,e1)=>{"use strict";e1.exports=Ww()});var Op=Cd(Td=>{"use client";function TM(r){if(!r||typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css",s.appendChild(d),d.styleSheet?d.styleSheet.cssText=r:d.appendChild(document.createTextNode(r))}Object.defineProperty(Td,"__esModule",{value:!0});var RM=Zt(),DM=Xu();function p1(r){return r&&r.__esModule?r:{default:r}}var _=p1(RM),wL=p1(DM),EM=r=>{switch(r){case"success":return OM;case"info":return UM;case"warning":return BM;case"error":return qM;default:return null}},MM=Array(12).fill(0),kM=({visible:r,className:s})=>_.default.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":r},_.default.createElement("div",{className:"sonner-spinner"},MM.map((d,c)=>_.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),OM=_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},_.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),BM=_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},_.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),UM=_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},_.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),qM=_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},_.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HM=_.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},_.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zM=()=>{let[r,s]=_.default.useState(document.hidden);return _.default.useEffect(()=>{let d=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",d),()=>document.removeEventListener("visibilitychange",d)},[]),r},PM=1,NM=100,d1=r=>{var s;return typeof r?.id=="number"||(r==null||(s=r.id)==null?void 0:s.length)>0?r.id:PM++},AL=class{constructor(){this.subscribe=s=>(this.subscribers.push(s),this.getActiveToasts().forEach(d=>s(d)),()=>{let d=this.subscribers.indexOf(s);this.subscribers.splice(d,1)}),this.publish=s=>{this.subscribers.forEach(d=>d(s))},this.addToast=s=>{this.publish(s),this.toasts=[...this.toasts,s],this.trimHistory()},this.trimHistory=()=>{let s=this.toasts.length-NM;s<=0||(this.toasts=this.toasts.filter(d=>s>0&&this.dismissedToasts.has(d.id)?(this.dismissedToasts.delete(d.id),s--,!1):!0))},this.create=s=>{let{message:d,...c}=s,m=d1(s),h=this.pendingDismissals.get(m);h!==void 0&&(cancelAnimationFrame(h),this.pendingDismissals.delete(m),this.dismissedToasts.delete(m));let L=this.dismissedToasts.has(m),y=s.dismissible===void 0?!0:s.dismissible;return L&&(this.dismissedToasts.delete(m),this.toasts=this.toasts.filter(A=>A.id!==m)),(L?void 0:this.toasts.find(A=>A.id===m))?this.toasts=this.toasts.map(A=>A.id===m?(this.publish({...A,...s,id:m,title:d}),{...A,...s,id:m,dismissible:y,title:d}):A):this.addToast({title:d,...c,dismissible:y,id:m}),m},this.dismiss=s=>{if(s==null)return this.getActiveToasts().forEach(c=>{this.dismissedToasts.add(c.id),this.subscribers.forEach(m=>m({id:c.id,dismiss:!0}))}),s;this.dismissedToasts.add(s);let d=this.pendingDismissals.get(s);return d!==void 0&&cancelAnimationFrame(d),this.pendingDismissals.set(s,requestAnimationFrame(()=>{this.pendingDismissals.delete(s),this.subscribers.forEach(c=>c({id:s,dismiss:!0}))})),s},this.message=(s,d)=>this.create({...d,message:s,type:void 0}),this.error=(s,d)=>this.create({...d,message:s,type:"error"}),this.success=(s,d)=>this.create({...d,type:"success",message:s}),this.info=(s,d)=>this.create({...d,type:"info",message:s}),this.warning=(s,d)=>this.create({...d,type:"warning",message:s}),this.loading=(s,d)=>this.create({...d,type:"loading",message:s}),this.promise=(s,d)=>{if(!d)return;let c;d.loading!==void 0&&(c=this.create({...d,promise:s,type:"loading",message:d.loading,description:typeof d.description!="function"?d.description:void 0}));let m=Promise.resolve(s instanceof Function?s():s),h=c!==void 0,L,y=m.then(async A=>{if(L=["resolve",A],_.default.isValidElement(A))h=!1,this.create({id:c,type:"default",message:A});else if(FM(A)&&!A.ok){h=!1;let C=typeof d.error=="function"?await d.error(`HTTP error! status: ${A.status}`):d.error,O=typeof d.description=="function"?await d.description(`HTTP error! status: ${A.status}`):d.description,T=typeof C=="object"&&!_.default.isValidElement(C)?C:{message:C};this.create({id:c,type:"error",description:O,...T})}else if(A instanceof Error){h=!1;let C=typeof d.error=="function"?await d.error(A):d.error,O=typeof d.description=="function"?await d.description(A):d.description,T=typeof C=="object"&&!_.default.isValidElement(C)?C:{message:C};this.create({id:c,type:"error",description:O,...T})}else if(d.success!==void 0){h=!1;let C=typeof d.success=="function"?await d.success(A):d.success,O=typeof d.description=="function"?await d.description(A):d.description,T=typeof C=="object"&&!_.default.isValidElement(C)?C:{message:C};this.create({id:c,type:"success",description:O,...T})}}).catch(async A=>{if(L=["reject",A],d.error!==void 0){h=!1;let k=typeof d.error=="function"?await d.error(A):d.error,C=typeof d.description=="function"?await d.description(A):d.description,q=typeof k=="object"&&!_.default.isValidElement(k)?k:{message:k};this.create({id:c,type:"error",description:C,...q})}}).finally(()=>{h&&(this.dismiss(c),c=void 0),d.finally==null||d.finally.call(d)}),S=()=>new Promise((A,k)=>y.then(()=>L[0]==="reject"?k(L[1]):A(L[1])).catch(k));return typeof c!="string"&&typeof c!="number"?{unwrap:S}:Object.assign(c,{unwrap:S})},this.custom=(s,d)=>{let c=d1(d);return this.create({...d,jsx:s(c),id:c,type:void 0}),c},this.getActiveToasts=()=>this.toasts.filter(s=>!this.dismissedToasts.has(s.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Ra=new AL,_M=(r,s)=>Ra.message(r,s),FM=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",VM=_M,GM=()=>Ra.toasts,XM=()=>Ra.getActiveToasts(),jM=Object.assign(VM,{success:Ra.success,info:Ra.info,warning:Ra.warning,error:Ra.error,custom:Ra.custom,message:Ra.message,promise:Ra.promise,dismiss:Ra.dismiss,loading:Ra.loading},{getHistory:GM,getToasts:XM});TM("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function kp(r){return r.label!==void 0}var YM=3,QM="24px",ZM="16px",c1=4e3,JM=356,$M=14,KM=45,WM=200;function Il(...r){return r.filter(Boolean).join(" ")}function e2(r){let[s,d]=r.split("-"),c=[];return s&&c.push(s),d&&c.push(d),c}var t2=r=>{var s,d,c,m,h,L,y,S,A;let{invert:k,toast:C,unstyled:O,interacting:q,setHeights:T,visibleToasts:B,heights:Y,index:F,toasts:ne,expanded:fe,removeToast:ve,defaultRichColors:Me,closeButton:He,style:Ce,cancelButtonStyle:Z,actionButtonStyle:ge,className:nt="",descriptionClassName:V="",duration:ke,position:we,gap:Et,expandByDefault:N,classNames:G,icons:X,closeButtonAriaLabel:oe="Close toast"}=r,[K,ma]=_.default.useState(null),[J,$]=_.default.useState(null),[le,Q]=_.default.useState(!1),[Oe,Be]=_.default.useState(!1),[ut,Lt]=_.default.useState(!1),[qe,Ea]=_.default.useState(!1),[Xo,$n]=_.default.useState(!1),[Kn,Wn]=_.default.useState(0),[Kt,or]=_.default.useState(0),eu=_.default.useRef(C.duration||ke||c1),qs=_.default.useRef(null),so=_.default.useRef(null),lr=F===0,sm=F+1<=B,P=C.type,nr=P??"default",Ro=C.dismissible!==!1,ur=C.className||"",tu=C.descriptionClassName||"",Pe=_.default.useMemo(()=>Y.findIndex(ce=>ce.toastId===C.id)||0,[Y,C.id]),Hs=_.default.useMemo(()=>{var ce;return(ce=C.closeButton)!=null?ce:He},[C.closeButton,He]),rr=_.default.useMemo(()=>C.duration||ke||c1,[C.duration,ke]),zs=_.default.useRef(0),Ne=_.default.useRef(0),Qd=_.default.useRef(0),Ma=_.default.useRef(null),[sr,au]=we.split("-"),Ps=_.default.useMemo(()=>Y.reduce((ce,bt,Mt)=>Mt>=Pe?ce:ce+bt.height,0),[Y,Pe]),Zd=zM(),ka=_.default.useMemo(()=>{var ce;return(ce=r.swipeDirections)!=null?ce:e2(we)},[r.swipeDirections,we]),Ns=C.invert||k,Dl=P==="loading";Ne.current=_.default.useMemo(()=>Pe*Et+Ps,[Pe,Ps]),_.default.useEffect(()=>{eu.current=rr},[rr]),_.default.useEffect(()=>{Q(!0)},[]),_.default.useEffect(()=>{let ce=so.current;if(ce){let bt=ce.getBoundingClientRect().height;return or(bt),T(Mt=>[{toastId:C.id,height:bt,position:C.position},...Mt]),()=>T(Mt=>Mt.filter(Ft=>Ft.toastId!==C.id))}},[T,C.id]),_.default.useLayoutEffect(()=>{if(!le)return;let ce=so.current,bt=ce.style.height;ce.style.height="auto";let Mt=ce.getBoundingClientRect().height;ce.style.height=bt,or(Mt),T(Ft=>Ft.find(xt=>xt.toastId===C.id)?Ft.map(xt=>xt.toastId===C.id?{...xt,height:Mt}:xt):[{toastId:C.id,height:Mt,position:C.position},...Ft])},[le,C.title,C.description,T,C.id,C.jsx,C.action,C.cancel]);let jo=_.default.useCallback(()=>{Be(!0),Wn(Ne.current),T(ce=>ce.filter(bt=>bt.toastId!==C.id)),setTimeout(()=>{ve(C)},WM)},[C,ve,T,Ne]);_.default.useEffect(()=>{if(C.promise&&P==="loading"||C.duration===1/0||C.type==="loading")return;let ce;return fe||q||Zd?(()=>{if(Qd.current<zs.current){let Ft=new Date().getTime()-zs.current;eu.current=eu.current-Ft}Qd.current=new Date().getTime()})():eu.current!==1/0&&(zs.current=new Date().getTime(),ce=setTimeout(()=>{C.onAutoClose==null||C.onAutoClose.call(C,C),jo()},eu.current)),()=>clearTimeout(ce)},[fe,q,C,P,Zd,jo]),_.default.useEffect(()=>{C.delete&&(jo(),C.onDismiss==null||C.onDismiss.call(C,C))},[jo,C.delete]);function _s(){var ce;if(X?.loading){var bt;return _.default.createElement("div",{className:Il(G?.loader,C==null||(bt=C.classNames)==null?void 0:bt.loader,"sonner-loader"),"data-visible":P==="loading"},X.loading)}return _.default.createElement(kM,{className:Il(G?.loader,C==null||(ce=C.classNames)==null?void 0:ce.loader),visible:P==="loading"})}let Jd=C.icon||X?.[P]||EM(P);var Fs,ir;return _.default.createElement("li",{tabIndex:0,ref:so,className:Il(nt,ur,G?.toast,C==null||(s=C.classNames)==null?void 0:s.toast,G?.[nr],C==null||(d=C.classNames)==null?void 0:d[nr]),"data-sonner-toast":"","data-rich-colors":(Fs=C.richColors)!=null?Fs:Me,"data-styled":!(C.jsx||C.unstyled||O),"data-mounted":le,"data-promise":!!C.promise,"data-swiped":Xo,"data-removed":Oe,"data-visible":sm,"data-y-position":sr,"data-x-position":au,"data-index":F,"data-front":lr,"data-swiping":ut,"data-dismissible":Ro,"data-type":P,"data-invert":Ns,"data-swipe-out":qe,"data-swipe-direction":J,"data-expanded":!!(fe||N&&le),"data-testid":C.testId,style:{"--index":F,"--toasts-before":F,"--z-index":ne.length-F,"--offset":`${Oe?Kn:Ne.current}px`,"--initial-height":N?"auto":`${Kt}px`,...Ce,...C.style},onDragEnd:()=>{Lt(!1),ma(null),Ma.current=null},onPointerDown:ce=>{ce.button!==2&&(Dl||!Ro||(qs.current=new Date,Wn(Ne.current),ce.target.setPointerCapture(ce.pointerId),ce.target.tagName!=="BUTTON"&&(Lt(!0),Ma.current={x:ce.clientX,y:ce.clientY})))},onPointerUp:()=>{var ce,bt,Mt;if(qe||!Ro)return;Ma.current=null;let Ft=Number(((ce=so.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),un=Number(((bt=so.current)==null?void 0:bt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),xt=new Date().getTime()-((Mt=qs.current)==null?void 0:Mt.getTime()),kt=K==="x"?Ft:un,It=Math.abs(kt)/xt;if((K==="x"?ka.includes(Ft>0?"right":"left"):ka.includes(un>0?"bottom":"top"))&&(Math.abs(kt)>=KM||It>.11)){Wn(Ne.current),C.onDismiss==null||C.onDismiss.call(C,C),$(K==="x"?Ft>0?"right":"left":un>0?"down":"up"),jo(),Ea(!0);return}else{var Wt,St;(Wt=so.current)==null||Wt.style.setProperty("--swipe-amount-x","0px"),(St=so.current)==null||St.style.setProperty("--swipe-amount-y","0px")}$n(!1),Lt(!1),ma(null)},onPointerMove:ce=>{var bt,Mt,Ft;if(!Ma.current||!Ro||((bt=window.getSelection())==null?void 0:bt.toString().length)>0)return;let xt=ce.clientY-Ma.current.y,kt=ce.clientX-Ma.current.x;!K&&(Math.abs(kt)>1||Math.abs(xt)>1)&&ma(Math.abs(kt)>Math.abs(xt)?"x":"y");let It={x:0,y:0},El=Wt=>1/(1.5+Math.abs(Wt)/20);if(K==="y"){if(ka.includes("top")||ka.includes("bottom"))if(ka.includes("top")&&xt<0||ka.includes("bottom")&&xt>0)It.y=xt;else{let Wt=xt*El(xt);It.y=Math.abs(Wt)<Math.abs(xt)?Wt:xt}}else if(K==="x"&&(ka.includes("left")||ka.includes("right")))if(ka.includes("left")&&kt<0||ka.includes("right")&&kt>0)It.x=kt;else{let Wt=kt*El(kt);It.x=Math.abs(Wt)<Math.abs(kt)?Wt:kt}(Math.abs(It.x)>0||Math.abs(It.y)>0)&&$n(!0),(Mt=so.current)==null||Mt.style.setProperty("--swipe-amount-x",`${It.x}px`),(Ft=so.current)==null||Ft.style.setProperty("--swipe-amount-y",`${It.y}px`)}},Hs&&!C.jsx&&P!=="loading"?_.default.createElement("button",{"aria-label":oe,"data-disabled":Dl,"data-close-button":!0,onClick:Dl||!Ro?()=>{}:()=>{jo(),C.onDismiss==null||C.onDismiss.call(C,C)},className:Il(G?.closeButton,C==null||(c=C.classNames)==null?void 0:c.closeButton)},(ir=X?.close)!=null?ir:HM):null,(P||C.icon||C.promise)&&C.icon!==null&&(X?.[P]!==null||C.icon)?_.default.createElement("div",{"data-icon":"",className:Il(G?.icon,C==null||(m=C.classNames)==null?void 0:m.icon)},P==="loading"?C.icon||_s():C.promise?_s():null,P!=="loading"?Jd:null):null,_.default.createElement("div",{"data-content":"",className:Il(G?.content,C==null||(h=C.classNames)==null?void 0:h.content)},_.default.createElement("div",{"data-title":"",className:Il(G?.title,C==null||(L=C.classNames)==null?void 0:L.title)},C.jsx?C.jsx:typeof C.title=="function"?C.title():C.title),C.description?_.default.createElement("div",{"data-description":"",className:Il(V,tu,G?.description,C==null||(y=C.classNames)==null?void 0:y.description)},typeof C.description=="function"?C.description():C.description):null),_.default.isValidElement(C.cancel)?C.cancel:C.cancel&&kp(C.cancel)?_.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:C.cancelButtonStyle||Z,onClick:ce=>{kp(C.cancel)&&Ro&&(C.cancel.onClick==null||C.cancel.onClick.call(C.cancel,ce),jo())},className:Il(G?.cancelButton,C==null||(S=C.classNames)==null?void 0:S.cancelButton)},C.cancel.label):null,_.default.isValidElement(C.action)?C.action:C.action&&kp(C.action)?_.default.createElement("button",{"data-button":!0,"data-action":!0,style:C.actionButtonStyle||ge,onClick:ce=>{kp(C.action)&&(C.action.onClick==null||C.action.onClick.call(C.action,ce),!ce.defaultPrevented&&jo())},className:Il(G?.actionButton,C==null||(A=C.classNames)==null?void 0:A.actionButton)},C.action.label):null)};function f1(){if(typeof window>"u"||typeof document>"u")return"ltr";let r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function a2(r,s){let d={};return[r,s].forEach((c,m)=>{let h=m===1,L=h?"--mobile-offset":"--offset",y=h?ZM:QM;function S(A){["top","right","bottom","left"].forEach(k=>{d[`${L}-${k}`]=typeof A=="number"?`${A}px`:A})}typeof c=="number"||typeof c=="string"?S(c):typeof c=="object"?["top","right","bottom","left"].forEach(A=>{c[A]===void 0?d[`${L}-${A}`]=y:d[`${L}-${A}`]=typeof c[A]=="number"?`${c[A]}px`:c[A]}):S(y)}),d}function o2(){let[r,s]=_.default.useState([]);return _.default.useEffect(()=>Ra.subscribe(d=>{if(d.dismiss){setTimeout(()=>{wL.default.flushSync(()=>{s(c=>c.filter(m=>m.id!==d.id))})});return}setTimeout(()=>{wL.default.flushSync(()=>{s(c=>{let m=c.findIndex(h=>h.id===d.id);return m!==-1?[...c.slice(0,m),{...c[m],...d},...c.slice(m+1)]:[d,...c]})})})}),[]),{toasts:r}}var l2=_.default.forwardRef(function(s,d){let{id:c,invert:m,position:h="bottom-right",hotkey:L=["altKey","KeyT"],expand:y,closeButton:S,className:A,offset:k,mobileOffset:C,theme:O="light",richColors:q,duration:T,style:B,visibleToasts:Y=YM,toastOptions:F,dir:ne=f1(),gap:fe=$M,icons:ve,customAriaLabel:Me,containerAriaLabel:He="Notifications"}=s,[Ce,Z]=_.default.useState([]),ge=_.default.useMemo(()=>c?Ce.filter(Q=>Q.toasterId===c):Ce.filter(Q=>!Q.toasterId),[Ce,c]),nt=_.default.useMemo(()=>Array.from(new Set([h].concat(ge.filter(Q=>Q.position).map(Q=>Q.position)))),[ge,h]),[V,ke]=_.default.useState([]),[we,Et]=_.default.useState(!1),[N,G]=_.default.useState(!1),[X,oe]=_.default.useState(O!=="system"?O:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=_.default.useRef(null),ma=L.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=_.default.useRef(null),$=_.default.useRef(!1),le=_.default.useCallback(Q=>{Z(Oe=>{var Be;return(Be=Oe.find(ut=>ut.id===Q.id))!=null&&Be.delete||Ra.dismiss(Q.id),Oe.filter(({id:ut})=>ut!==Q.id)})},[]);return _.default.useEffect(()=>Ra.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{Z(Oe=>Oe.map(Be=>Be.id===Q.id?{...Be,delete:!0}:Be))});return}setTimeout(()=>{wL.default.flushSync(()=>{Z(Oe=>{let Be=Oe.findIndex(ut=>ut.id===Q.id);return Be!==-1?[...Oe.slice(0,Be),{...Oe[Be],...Q},...Oe.slice(Be+1)]:[Q,...Oe]})})})}),[]),_.default.useEffect(()=>{if(O!=="system"){oe(O);return}if(O==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;let Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:Oe})=>{oe(Oe?"dark":"light")})}catch{Q.addListener(({matches:Be})=>{try{oe(Be?"dark":"light")}catch(ut){console.error(ut)}})}},[O]),_.default.useEffect(()=>{Ce.length<=1&&Et(!1)},[Ce]),_.default.useEffect(()=>{let Q=Oe=>{var Be;if(L.length>0&&L.every(qe=>Oe[qe]||Oe.code===qe)){var Lt;Et(!0),(Lt=K.current)==null||Lt.focus()}Oe.code==="Escape"&&(document.activeElement===K.current||(Be=K.current)!=null&&Be.contains(document.activeElement))&&Et(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[L]),_.default.useEffect(()=>{if(K.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,$.current=!1)}},[K.current]),_.default.createElement("section",{ref:d,"aria-label":Me??`${He} ${ma}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},nt.map((Q,Oe)=>{var Be;let[ut,Lt]=Q.split("-");return ge.length?_.default.createElement("ol",{key:Q,dir:ne==="auto"?f1():ne,tabIndex:-1,ref:K,className:A,"data-sonner-toaster":!0,"data-sonner-theme":X,"data-y-position":ut,"data-x-position":Lt,style:{"--front-toast-height":`${((Be=V[0])==null?void 0:Be.height)||0}px`,"--width":`${JM}px`,"--gap":`${fe}px`,...B,...a2(k,C)},onBlur:qe=>{$.current&&!qe.currentTarget.contains(qe.relatedTarget)&&($.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:qe=>{qe.target instanceof HTMLElement&&qe.target.dataset.dismissible==="false"||$.current||($.current=!0,J.current=qe.relatedTarget)},onMouseEnter:()=>Et(!0),onMouseMove:()=>Et(!0),onMouseLeave:()=>{N||Et(!1)},onDragEnd:()=>Et(!1),onPointerDown:qe=>{qe.target instanceof HTMLElement&&qe.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},ge.filter(qe=>!qe.position&&Oe===0||qe.position===Q).map((qe,Ea)=>{var Xo,$n;return _.default.createElement(t2,{key:qe.id,icons:ve,index:Ea,toast:qe,defaultRichColors:q,duration:(Xo=F?.duration)!=null?Xo:T,className:F?.className,descriptionClassName:F?.descriptionClassName,invert:m,visibleToasts:Y,closeButton:($n=F?.closeButton)!=null?$n:S,interacting:N,position:Q,style:F?.style,unstyled:F?.unstyled,classNames:F?.classNames,cancelButtonStyle:F?.cancelButtonStyle,actionButtonStyle:F?.actionButtonStyle,closeButtonAriaLabel:F?.closeButtonAriaLabel,removeToast:le,toasts:ge.filter(Kn=>Kn.position==qe.position),heights:V.filter(Kn=>Kn.position==qe.position),setHeights:ke,expandByDefault:y,gap:fe,expanded:we,swipeDirections:s.swipeDirections})})):null}))});Td.Toaster=l2;Td.toast=jM;Td.useSonner=o2});var ak=he(Zt(),1),ok=he(Xu(),1),dx=he(t1(),1),dT=he(_t(),1);var CL=new Map,o1=new Map,SL=new Map,vL=null;function l1(r){vL=r}var Mp=new Map,Id=new Map,wd=new Map,a1=new Map;function bL(r){if(r&&r.__esModule)return r;let s=Object.create(null);for(let d of Object.keys(r))s[d]=r[d];return!("default"in s)&&"default"in r&&(s.default=r.default),Object.defineProperty(s,"__esModule",{value:!0}),s}function Ju(r,s){CL.set(r,bL(s))}function IL(r,s){o1.set(r,s)}function n1(r){let s=/^(components|utilities):([a-z][a-z0-9_-]*\/[a-z][a-z0-9-]*)$/.exec(r);return s?s[2]:null}async function IM(r,s){if(CL.has(r)||SL.has(r))return;let d=n1(r);if(d){await Ad(d,s);return}let c=o1.get(r);c&&SL.set(r,bL(await c()))}function wM(r,s){return d=>{let c=CL.get(d)||SL.get(d);if(c)return c;let m=n1(d);if(m){let h=Mp.get(`${r}|${m}`)||wd.get(`${r}|${m}`);if(h)return h}throw new Error(`React Portal dev host does not provide "${d}" (required by ${s})`)}}function AM(r,s){let d=Ye.shadow;if(!d)return;let c=a1.get(r);if(!s){c&&(c.textContent="");return}if(!c){c=document.createElement("style"),c.dataset.rpComponent=r;let m=d.querySelector("style[data-rp-sheet]");d.insertBefore(c,m),a1.set(r,c)}c.textContent!==s&&(c.textContent=s)}function Ad(r,s){let d=`${s}|${r}`,c=Id.get(d);return c||(c=(async()=>{let m=await import(`/__rpf/c/${s}/${r}.js`);await Promise.all((m.deps||[]).map(S=>IM(S,s))),AM(r,m.css||"");let h=m.factory(wM(s,r)),L=bL(h);wd.set(d,L);let y=Ye.boot&&Ye.boot.components[r];if(vL&&y&&y.kind==="widget"&&typeof L.default=="function"){let S=Object.create(null);for(let A of Object.keys(L))S[A]=L[A];S.default=vL(r,L.default),Object.defineProperty(S,"__esModule",{value:!0}),Mp.set(d,S)}return L})(),Id.set(d,c),c.catch(()=>Id.delete(d)),c)}function u1(r,s){return wd.get(`${s}|${r}`)}function r1(r){for(let s of Array.from(Id.keys()))parseInt(s,10)<r&&Id.delete(s);for(let s of Array.from(wd.keys()))parseInt(s,10)<r&&wd.delete(s);for(let s of Array.from(Mp.keys()))parseInt(s,10)<r&&Mp.delete(s)}var s1={"components:accordion":()=>import("./chunks/accordion-O6VUPQ32.js"),"components:alert-dialog":()=>import("./chunks/alert-dialog-SCBXM23J.js"),"components:alert":()=>import("./chunks/alert-PRAGKG5L.js"),"components:avatar":()=>import("./chunks/avatar-WXPKQ3Z5.js"),"components:badge":()=>import("./chunks/badge-KCMWGERA.js"),"components:breadcrumb":()=>import("./chunks/breadcrumb-IJQJQ5JV.js"),"components:button":()=>import("./chunks/button-4JMBKYN4.js"),"components:calendar":()=>import("./chunks/calendar-XXLCAUPG.js"),"components:card":()=>import("./chunks/card-EY3LK2GB.js"),"components:chart-frame":()=>import("./chunks/chart-frame-MNUFXAPU.js"),"components:chart":()=>Promise.all([import("./chunks/chart-2PHC6UIE.js"),import("./chunks/chart-blocks-PZPCWCNT.js")]).then(r=>Object.assign({},...r)),"components:chat":()=>import("./chunks/chat-TTESCYES.js"),"components:checkbox":()=>import("./chunks/checkbox-Y2UGSRR4.js"),"components:code-block":()=>import("./chunks/code-block-H2ETQV3M.js"),"components:code-editor":()=>import("./chunks/code-editor-2JYERJLS.js"),"components:collapsible":()=>import("./chunks/collapsible-4ZOFMWLB.js"),"components:color-picker":()=>import("./chunks/color-picker-RRCCLR54.js"),"components:combobox":()=>import("./chunks/combobox-U4455OMJ.js"),"components:contrast-badge":()=>import("./chunks/contrast-badge-KDF65X7J.js"),"components:date-range-picker":()=>import("./chunks/date-range-picker-WJYHAHRM.js"),"components:dialog":()=>import("./chunks/dialog-I6AGHWB3.js"),"components:dropdown-menu":()=>import("./chunks/dropdown-menu-LSOMXDWG.js"),"components:empty":()=>import("./chunks/empty-NLQODUSK.js"),"components:font-picker":()=>import("./chunks/font-picker-3TLYYZJH.js"),"components:frame":()=>import("./chunks/frame-HA7UIYZF.js"),"components:heading":()=>import("./chunks/heading-7M24WKK6.js"),"components:hover-card":()=>import("./chunks/hover-card-HSHOQPOI.js"),"components:icon":()=>import("./chunks/icon-NZIMARLZ.js"),"components:image":()=>import("./chunks/image-R7XGYKVH.js"),"components:input-group":()=>import("./chunks/input-group-GFKXSZM7.js"),"components:input":()=>import("./chunks/input-YECXNM53.js"),"components:kbd":()=>import("./chunks/kbd-V25ZMVCM.js"),"components:label-value":()=>import("./chunks/label-value-6Z6ATP55.js"),"components:label":()=>import("./chunks/label-LJT4V2CT.js"),"components:logo":()=>import("./chunks/logo-AAMBHX2W.js"),"components:number-field":()=>import("./chunks/number-field-6TCQAVTR.js"),"components:pill":()=>import("./chunks/pill-7L57ZNRJ.js"),"components:popover":()=>import("./chunks/popover-3P6YNKH3.js"),"components:progress":()=>import("./chunks/progress-RBCJRVM7.js"),"components:radio-group":()=>import("./chunks/radio-group-NJWXZCX3.js"),"components:resizable":()=>import("./chunks/resizable-XF4P6OKR.js"),"components:rich-text-editor":()=>import("./chunks/rich-text-editor-T6KWD4P3.js"),"components:rich-text":()=>import("./chunks/rich-text-7OMYZ564.js"),"components:scroll-row":()=>import("./chunks/scroll-row-LMI7JCFR.js"),"components:select":()=>import("./chunks/select-F3MZWTTS.js"),"components:separator":()=>import("./chunks/separator-JRJYKM4Z.js"),"components:sheet":()=>import("./chunks/sheet-EXRT4MFB.js"),"components:side-panel":()=>import("./chunks/side-panel-IBHLEANN.js"),"components:sidebar":()=>import("./chunks/sidebar-VKQMQMF2.js"),"components:skeleton":()=>import("./chunks/skeleton-KIRVQ4EO.js"),"components:slider":()=>import("./chunks/slider-XKYDL5MR.js"),"components:split-button":()=>import("./chunks/split-button-WP6LALDS.js"),"components:stepper":()=>import("./chunks/stepper-KR6PXZHW.js"),"components:switch":()=>import("./chunks/switch-P6NJELJJ.js"),"components:tabs":()=>import("./chunks/tabs-PFPRJNVZ.js"),"components:textarea":()=>import("./chunks/textarea-2JXA5XWS.js"),"components:toggle-group":()=>import("./chunks/toggle-group-PS7JN2JM.js"),"components:tooltip":()=>import("./chunks/tooltip-S4RBC3O4.js"),"components:tree":()=>import("./chunks/tree-NQF6ZJLH.js")};var i1={"utilities:react-query":()=>import("./chunks/legacy-4ICQWPOE.js"),"utilities:react-table":()=>import("./chunks/index.esm-SPI7ZXRT.js"),"utilities:react-virtual":()=>import("./chunks/esm-L33CRTOD.js"),"utilities:cn":()=>import("./chunks/dist-T43K2TRF.js"),"utilities:color":()=>import("./chunks/color-UDQWYS2D.js"),"utilities:dnd-kit":async()=>{let[r,s,d]=await Promise.all([import("./chunks/core.esm-WYAV6XZS.js"),import("./chunks/sortable.esm-3VPY5PX7.js"),import("./chunks/utilities.esm-YYZNDLV4.js")]);return{...r,...s,CSS:d.CSS}}};var DA=he(Op(),1);var ua=he(Zt(),1),Cs=he(Op(),1);var wl=ua.createContext(null),h1=new Map,g1=3e4;function bs(r){return n2(h1.get(r.instanceId),na().params,r.page)+"|"+r.instanceId}var $u=Jt({}),TL=new Map;function qp(r){let s=na(),c={params:{...s.params},recordId:s.recordId};return r.panel&&(c.panel=r.panel),c}function n2(r,s,d){if(!r||r==="*")return d+"|"+JSON.stringify(s);let c={};for(let m of r)c[m]=m==="#page"?d:s[m];return JSON.stringify(c)}var ln=class extends Error{status;code;details;correlationId;constructor(s,d=""){super(s.message||"Server call failed"),this.status=s.status||500,this.code=s.code||"error",this.details=s.details,this.correlationId=d}};function u2(r,s){["admin","x_312987_portal.admin","x_312987_portal.developer","x_312987_portal.designer"].some(bd)?Cs.toast.error(`${r}: ${s.message}`,{description:`${s.code}${s.correlationId?" \xB7 Reference "+s.correlationId:""}`}):Cs.toast.error("Something went wrong",{description:s.correlationId?"Reference "+s.correlationId:void 0})}function RL(r){if(Array.isArray(r))for(let s of r){let d=s&&(s.message||s.text);d&&(s.type==="error"?Cs.toast.error(d):s.type==="warning"?Cs.toast.warning(d):Cs.toast.info(d))}}function Hp(r){let s={};for(let d of r)s[d.instanceId]={id:d.instanceId,uid:d.uniqueId,options:d.options||{}};return s}var DL=[],EL=!1,Up=new Set;function m1(r){let s=bs(r);Up.has(s)||(Up.add(s),DL.push({info:r,resolve:()=>{}}),!EL&&(EL=!0,queueMicrotask(()=>setTimeout(r2,0))))}async function r2(){EL=!1;let r=DL;if(DL=[],!r.length)return;let s=new Map;for(let d of r){let c=d.info.page+(d.info.panel?"|panel:"+d.info.panel.key:"");s.set(c,(s.get(c)||[]).concat([d.info]))}for(let[d,c]of s){let m=c[0].page,h=new Map(c.map(y=>[y.instanceId,bs(y)]));$u.set(y=>{let S={...y};for(let A of c){let k=h.get(A.instanceId),C=S[A.instanceId]&&S[A.instanceId][k];C&&C.status==="ready"||(S[A.instanceId]={...S[A.instanceId]||{},[k]:{status:"pending",key:k,at:Date.now()}})}return S});let L=null;try{L=await(await fetch("/__rpf/server/initialize",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:m,instances:c.map(S=>S.embed?{id:S.instanceId,placement:S.embed.root,path:S.embed.path,keys:S.embed.keys,options:S.embed.options,token:S.embed.token}:S.instanceId),context:qp(c[0]),meta:Hp(c)})})).json()}catch{L=null}$u.set(y=>{let S={...y};for(let A of c){let k=h.get(A.instanceId),C=L&&L.instances?L.instances[A.instanceId]:null;C&&C.ok&&C.deps&&h1.set(A.instanceId,C.deps);let O=C&&C.ok&&C.deps?bs(A):k,q=C&&C.ok?{status:"ready",data:C.data||{},options:C.options,error:null,deps:C.deps,key:O,at:Date.now(),staleTime:C.cache&&typeof C.cache.staleTime=="number"?C.cache.staleTime:g1}:{status:"error",error:new ln(C&&C.error||{status:502,code:"rpf_dev",message:"initialize failed"}),key:k,at:Date.now()};C&&RL(C.messages),Up.delete(k);let T={...S[A.instanceId]||{}};O!==k&&T[k]&&T[k].status==="pending"&&delete T[k],T[O]=q,S[A.instanceId]=T}return S})}}function Bp(r){let s={};for(let[d,c]of Object.entries(r||{}))s[d]=typeof c=="function"?c():c;return s}function ML(r={}){let s=ua.useContext(wl),d=s?s.instanceId:"";se($t,Z=>s&&s.serverMode==="on-load"?Z:null);let c=na(),m=s?bs(s):"",h=se($u,Z=>d?Z[d]:void 0),[L,y]=ua.useState({key:""}),S=ua.useRef(r.pinned||{});S.current=r.pinned||{};let A=ua.useRef({}),k=ua.useRef({}),C=r.toastErrors!==!1,O=ua.useRef(s);O.current=s;let q=!!s&&s.serverMode==="on-load",T=h?h[m]:void 0;ua.useEffect(()=>{!q||!s||(T?T.status==="ready"&&Date.now()-T.at>(T.staleTime??g1)&&m1(s):m1(s))},[q,m,!!T]);let B=ua.useCallback(async(Z,ge,nt)=>{let V=O.current;if(!V)throw new ln({status:400,code:"no_server",message:"No server outside a placement"});if(V.offPage&&V.offPage())throw new ln({status:409,code:"off_page",message:"The widget left the page"});let ke={...Bp(S.current),...Bp(A.current),...k.current,...ge||{}};k.current={};let we=bs(V),Et=V.embed?V.embed.root:V.instanceId,N=await fetch(`/__rpf/server/execute/${encodeURIComponent(Et)}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:V.page,action:Z,input:ke,context:qp(V),embed:V.embed?{path:V.embed.path,keys:V.embed.keys,options:V.embed.options,token:V.embed.token}:void 0,meta:Hp([V])[V.instanceId]})}),G=await N.json().catch(()=>null),X=G&&G.result!==void 0?G.result:G;if(!N.ok||!X||X.error){let K=new ln(X&&X.error||{status:N.status,code:"http_"+N.status,message:"Server call failed"},X&&X.meta&&X.meta.correlationId||"");throw X&&X.meta&&RL(X.meta.messages),Z!=="get"&&y({key:we,error:K,data:void 0}),(nt&&nt.toast!==void 0?nt.toast:C)&&u2(V.name,K),K}X.meta&&RL(X.meta.messages);let oe=X.data||{};return Z!=="get"&&y({key:we,data:oe,error:null}),oe},[C]),Y=ua.useMemo(()=>({get:(Z,ge)=>B("get",Z,ge),update:(Z,ge)=>B("update",Z,ge),refresh:Z=>B("initialize",void 0,Z),setInputs(Z){k.current=typeof Z=="function"?Z(k.current):{...k.current,...Z}},setInput(Z,ge){k.current={...k.current,[Z]:ge}},pinInputs(Z){A.current={...A.current,...Z}},unpinInputs(Z){if(Z===void 0)A.current={};else for(let ge of Array.isArray(Z)?Z:[Z])delete A.current[ge]},get inputs(){return{pinned:{...Bp(S.current),...Bp(A.current)},staged:{...k.current}}}}),[B]),F=L.key===m?L:null,ne=F&&F.data!==void 0?F.data:T&&T.status==="ready"?T.data:void 0,fe=q&&(!T||T.status==="pending")&&!(F&&F.data),ve=F&&F.error||T&&T.status==="error"&&T.error||null,Me,He=TL.get(d);ne!==void 0?TL.set(d,{key:m,data:ne}):fe&&He&&He.key!==m&&(Me=He.data);let Ce=T&&T.options||(s?s.options:{});return{instanceId:d,options:Ce,data:ne,pending:fe,previousData:Me,isPreviousData:Me!==void 0,error:ve,server:Y}}var y1=ML;function L1(r,s,d){let c=bs(r),m=$u.get()[r.instanceId];m&&m[c]&&m[c].status==="ready"&&m[c].data===s||$u.set(h=>({...h,[r.instanceId]:{...h[r.instanceId]||{},[c]:{status:"ready",data:s,options:d,error:null,key:c,at:Date.now(),staleTime:1/0}}}))}function zp(){Up.clear(),$u.set({}),TL.clear()}function x1(){return Object.entries($u.get()).map(([r,s])=>{let d=Object.values(s);return{id:r,entries:d.length,ready:d.filter(c=>c.status==="ready").length,pending:d.filter(c=>c.status==="pending").length,error:d.filter(c=>c.status==="error").length}})}var no=he(Zt(),1);var OL=he(_t(),1),v1="rpf-dev-history",Rt=Jt(s2());function s2(){try{let r=JSON.parse(sessionStorage.getItem(v1)||"null");if(r&&Array.isArray(r.entries))return r}catch{}return{entries:[],cursor:-1,epoch:Math.random().toString(36).slice(2)}}Rt.subscribe(()=>{try{sessionStorage.setItem(v1,JSON.stringify(Rt.get()))}catch{}});function Ku(r,s=""){let d=typeof history.state?.position=="number"?history.state.position:0;history.state?.position===void 0&&history.replaceState({...history.state||{},position:0},"");let c=na();Rt.set(m=>{let h=m.entries.slice(0,r==="push"?d:Math.max(m.entries.length,d+1)),L=h[d],y={pos:d,key:L&&r==="pop"?L.key:Math.random().toString(36).slice(2),url:location.pathname+location.search,page:c.page,title:s||(L&&r!=="push"?L.title:""),at:Date.now(),state:L&&r!=="push"?L.state:{},scroll:L&&r!=="push"?L.scroll:{},flags:L&&r!=="push"?L.flags:{},table:c.table,sysId:c.sysId};return h[d]=y,{entries:h,cursor:d,epoch:m.epoch}})}var kL=new Set;async function Pp(){for(let r of Array.from(kL))if(r.when&&!await r.confirm())return!1;return!0}function C1(r,s){let d=no.useRef({when:r,confirm:s});d.current.when=r,d.current.confirm=s,no.useEffect(()=>{let c={get when(){return d.current.when},confirm:()=>d.current.confirm()};return kL.add(c),()=>{kL.delete(c)}},[]),no.useEffect(()=>{if(!r)return;let c=m=>{m.preventDefault()};return window.addEventListener("beforeunload",c),()=>window.removeEventListener("beforeunload",c)},[r])}function b1(r,s){if(r&&typeof r=="object"){let d=r;return{...d,...s||{},to:d.to!==void 0?d.to:d.page}}return{...s||{},to:r==null?void 0:String(r)}}var S1=r=>Yu(r);function I1(r){let s=$t.get(),d=Ve();if(r.to===void 0&&!r.portalSlug){let y={...s};return r.panel!==void 0&&(y.panel=r.panel===null?"":r.panel===!1?"none":r.panel,y.panelArgs=r.panel?S1(r.panelArgs):""),r.tab!==void 0&&(y.tab=r.tab||""),r.tabs!==void 0&&(y.tabs=Array.isArray(r.tabs)?r.tabs.join(","):r.tabs||""),r.tabArgs!==void 0&&(y.tabArgs=Yu(r.tabArgs)),y}let c=r.portalSlug||s.portalSlug||d.portal.slug,m=String(r.to||"").replace(/^\/+|\/+$/g,""),h={portalSlug:c,pageId:m,recordId:r.recordId||"",table:r.table||"",sysId:r.sysId||"",view:r.view||"",query:r.query||"",q:Yu(r.q),panel:"",panelArgs:"",tab:"",tabs:"",tabArgs:""};if(r.panel!==void 0)h.panel=r.panel===null?"":r.panel===!1?"none":r.panel,h.panelArgs=r.panel?S1(r.panelArgs):"";else if(s.panel&&s.panel!=="none"&&c===s.portalSlug){let y=Ap(m,na()),S=y?y.page.route:"";bl(S).some(A=>A.key===s.panel)&&(h.panel=s.panel,h.panelArgs=s.panelArgs)}let L=m===s.pageId&&h.table===s.table&&h.sysId===s.sysId;return h.tab=r.tab!==void 0?r.tab||"":L?s.tab:"",h.tabs=r.tabs!==void 0?Array.isArray(r.tabs)?r.tabs.join(","):r.tabs||"":L?s.tabs:"",h.tabArgs=r.tabArgs!==void 0?Yu(r.tabArgs):L?s.tabArgs:"",h}function i2(r,s){return ju(I1(b1(r,s)))}async function Ao(r,s){let d=b1(r,s);if(!d.skipGuard&&!await Pp())return!1;let c=I1(d),m=ju(c),h=typeof history.state?.position=="number"?history.state.position:0;return d.replace?history.replaceState({position:h},"",m):history.pushState({position:h+1},"",m),Qu(),Ku(d.replace?"replace":"push",d.title||""),!0}function BL(){let r=Rt.get(),s=r.entries[r.cursor];for(let d=r.cursor-1;d>=0;d--){let c=r.entries[d];if(!(!c||c.flags&&c.flags.gone)&&!(s&&c.page===s.page&&c.table===s.table&&c.sysId===s.sysId))return d}return-1}async function Is(r){if(!await Pp())return!1;let s=BL(),d=Rt.get().cursor;return s>=0&&d>s?(history.go(s-d),!0):Ao("",{skipGuard:!0})}function w1(){return Ao}function A1(){let r=se(Rt,s=>s);return no.useMemo(()=>{let s=Ve();return{entries:r.entries.map(c=>{let m=c.page===""?s.portal.homeRoute:c.page,h=null;for(let L of s.pages){let y=wp(L.route,m);y&&(!h||y.score>h.score)&&(h={title:L.title,score:y.score})}return{pos:c.pos,key:c.key,identity:c.url,portalSlug:s.portal.slug,page:c.page,params:{table:c.table,sysId:c.sysId,recordId:"",view:"",query:"",q:""},title:c.title,hintTitle:"",kind:c.sysId?"record":"page",flags:c.flags,scroll:c.scroll,state:c.state,at:c.at,epoch:r.epoch,label:c.title||(h?h.title:"")}}),cursor:r.cursor,epoch:r.epoch}},[r])}var d2=["to","page","recordId","q","table","sysId","view","query","portalSlug","replace","title","panel","panelArgs","tab","tabs","tabArgs","skipGuard"],T1=no.forwardRef(function(s,d){let c={},m={};for(let[q,T]of Object.entries(s))(d2.includes(q)?c:m)[q]=T;let{render:h,children:L,onClick:y,...S}=m;se($t,q=>q);let A=c.to!==void 0?c.to:c.page,k=i2(A===void 0?{...c,to:void 0}:A,c),O={...S,ref:d,href:k,onClick:q=>{y&&y(q),!q.defaultPrevented&&(q.button!==0||q.metaKey||q.ctrlKey||q.shiftKey||q.altKey||S.target!=="_blank"&&(q.preventDefault(),Ao(A===void 0?{...c,to:void 0}:A,c)))},"data-portal-page":A||""};if(h&&no.isValidElement(h)){let q=h.props||{};return no.cloneElement(h,{...O,className:[q.className,S.className].filter(Boolean).join(" ")||void 0,nativeButton:!1,render:(0,OL.jsx)("a",{}),children:L!==void 0?L:q.children})}return(0,OL.jsx)("a",{...O,children:L})});var ot=he(Zt(),1),k1=he(Xu(),1);var c2={padding:["padding"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],margin:["margin"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],background:["background"],color:["color"],border:["border"],borderColor:["border-color"],radius:["border-radius"],shadow:["box-shadow"],minHeight:["min-height"],maxWidth:["max-width"],width:["width"],gap:["gap"],opacity:["opacity"],textAlign:["text-align"],overflow:["overflow"]},f2=new Set(["background","foreground","card","card-foreground","popover","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","success","warning","info","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar"]);function Rd(r){if(r==null||r==="")return null;let s=String(r).trim();return!s||/[{};<>]|\/\*|\*\/|\\/.test(s)||s.length>300?null:s}function R1(r,s,d,c){let m=[];for(let[S,A]of Object.entries(c2)){let k=Rd(r[S]);if(k!==null){(S==="background"||S==="color"||S==="borderColor")&&f2.has(k)&&(k=`var(--${k})`);for(let C of A)m.push(`${C}: ${k}`)}}let h=s.colSpan;if(h==="full")m.push("grid-column: 1 / -1");else if(typeof h=="number"||/^\d+$/.test(String(h||""))){let S=Math.max(1,Math.min(48,parseInt(String(h),10)));m.push(s.colStart?`grid-column: ${parseInt(String(s.colStart),10)} / span ${S}`:`grid-column: span ${S} / span ${S}`)}else s.colStart&&m.push(`grid-column-start: ${parseInt(String(s.colStart),10)}`);if(s.rowSpan){let S=Math.max(1,Math.min(48,parseInt(String(s.rowSpan),10)));m.push(s.rowStart?`grid-row: ${parseInt(String(s.rowStart),10)} / span ${S}`:`grid-row: span ${S} / span ${S}`)}else s.rowStart&&m.push(`grid-row-start: ${parseInt(String(s.rowStart),10)}`);s.order!==void 0&&/^-?\d+$/.test(String(s.order))&&m.push(`order: ${s.order}`);let L=Rd(s.alignSelf);L&&m.push(`align-self: ${L}`);let y=Rd(s.justifySelf);y&&m.push(`justify-self: ${y}`);for(let[S,A]of Object.entries(c)){let k=d[S],C=Array.isArray(k)?Rd(k.map(O=>O&&typeof O=="object"?O.size:O).join(" ")):Rd(k);C!==null&&m.push(`${A}: ${C}`)}return m}var UL=(r,s)=>r&&typeof r[s]=="object"&&r[s]?r[s]:{};function E1(r,s){let d=Ve().components[r.component],c=d&&d.cssVars||{},m=`[data-rp-placement="${r.id.replace(/"/g,"")}"][data-rp-placement]`,h=[],L=R1(r.style||{},r.layout||{},s||{},c);L.length&&h.push(`${m} { ${L.join("; ")} }`);for(let[y,S]of[["tablet",1023],["mobile",639]]){let A=R1(UL(r.style,y),UL(r.layout,y),UL(s,y),c);A.length&&h.push(`@container rp-page (max-width: ${S}px) { ${m} { ${A.join("; ")} } }`)}return h.join(`
218
- `)}var Dd=new Map,ws=null,Ed=!1;function D1(){if(Ed=!1,!Ye.shadow)return;ws||(ws=document.createElement("style"),ws.setAttribute("data-rp-instances",""),Ye.shadow.appendChild(ws));let r=Array.from(Dd.values()).map(s=>s.css).filter(Boolean).join(`
219
- `);ws.textContent!==r&&(ws.textContent=r)}function M1(r,s){let d=Dd.get(r);return d?(d.count++,d.css=s):Dd.set(r,{css:s,count:1}),Ed||(Ed=!0,queueMicrotask(D1)),()=>{let c=Dd.get(r);c&&(c.count--,c.count<=0&&Dd.delete(r),Ed||(Ed=!0,queueMicrotask(D1)))}}var tt=he(_t(),1),Dt=Jt({resolved:null,path:"",regions:{}}),Np=ot.createContext({layout:null,options:{},mainRegion:"main",regions:[]}),_p=ot.createContext(null),p2=ot.createContext(null),qL=Jt({});function kd(r){let s=se(wo,L=>L),d=r?u1(r,s):void 0,[c,m]=ot.useState({key:""}),h=`${s}|${r}`;return ot.useEffect(()=>{if(!r||d)return;let L=!0;return Ad(r,s).then(y=>L&&m({key:h,ns:y}),y=>L&&m({key:h,error:y})),()=>{L=!1}},[h,!!d]),r?d?{status:"ready",ns:d}:c.key===h&&c.error?{status:"error",error:c.error}:c.key===h&&c.ns?{status:"ready",ns:c.ns}:{status:"loading"}:{status:"error",error:new Error("No component")}}var Al=class extends ot.Component{state={error:null};static getDerivedStateFromError(s){return{error:s}}componentDidCatch(s){console.error(`[rpf dev] ${this.props.label}:`,s)}render(){return this.state.error&&this.props.fallback?this.props.fallback(this.state.error,()=>this.setState({error:null})):this.state.error?(0,tt.jsxs)("div",{role:"alert","data-rp-error":this.props.label,className:"m-2 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive",children:[(0,tt.jsx)("strong",{children:this.props.label}),": ",String(this.state.error.message||this.state.error)]}):this.props.children}};function m2(r){let s=Ve().components[r.component];return{...s&&s.defaults||{},...r.options||{}}}var h2=ot.memo(function({p:s,page:d,panel:c}){let m=Ve().components[s.component],h=kd(s.component),L=ot.useMemo(()=>m2(s),[s]),y=ot.useMemo(()=>E1(s,L),[s,L]);ot.useLayoutEffect(()=>y?M1(s.id,y):void 0,[s.id,y]);let S=ot.useMemo(()=>({instanceId:s.id,uniqueId:s.component,name:m&&m.name||s.component,serverMode:m&&m.serverMode||"none",options:L,page:d,panel:c}),[s,L,d,c,m]);if(!on(s.roles))return null;if(h.status==="loading")return(0,tt.jsx)("div",{"data-rp-placement":s.id,"data-rp-loading":s.component,className:"min-h-4"});if(h.status==="error")return(0,tt.jsxs)("div",{role:"alert","data-rp-error":s.component,className:"m-2 rounded-md border border-destructive/40 p-3 text-sm text-destructive",children:[(0,tt.jsx)("strong",{children:s.component}),": ",String(h.error&&h.error.message)]});let A=h.ns&&h.ns.default;if(typeof A!="function"&&typeof A!="object")return(0,tt.jsxs)("div",{role:"alert","data-rp-error":s.component,className:"m-2 text-sm text-destructive",children:[s.component," has no default export"]});let k=m?m.kind:"widget",C={"data-rp-placement":s.id,"data-rp-widget":s.component,className:s.classes||void 0};if(k==="block"){let O={placementId:s.id,options:L,regions:m&&m.regions||[],rootProps:C,children:s.children||{}};return(0,tt.jsx)(wl.Provider,{value:S,children:(0,tt.jsx)(_p.Provider,{value:O,children:(0,tt.jsx)(Al,{label:s.component,children:(0,tt.jsx)(A,{})})})})}return(0,tt.jsx)(wl.Provider,{value:S,children:(0,tt.jsx)("div",{...C,className:s.classes||void 0,children:(0,tt.jsx)(Al,{label:s.component,children:(0,tt.jsx)(A,{instanceId:s.id,options:L,region:s.region})})})})});function Md({list:r,page:s,panel:d}){return!r||!r.length?null:(0,tt.jsx)(_p.Provider,{value:null,children:r.map(c=>(0,tt.jsx)(h2,{p:c,page:s,panel:d},c.id+"|"+c.unit))})}var O1=ot.memo(function({name:s,className:d,contents:c,as:m}){let h=ot.useContext(_p),L=ot.useContext(p2),y=se(Dt,C=>C),S=m||"div";if(h){let C=(0,tt.jsx)(Md,{list:h.children[s],page:y.path});return c?C:(0,tt.jsx)(S,{className:d,"data-rp-region":s,children:C})}if(L)return(0,tt.jsx)(S,{className:d,"data-rp-region":s,children:(0,tt.jsx)(Md,{list:L[s],page:y.path})});let A=Ve().regions[s],k=y.regions[s];return(0,tt.jsxs)(S,{className:d,"data-rp-region":s,children:[(0,tt.jsx)(Md,{list:A,page:y.path}),(0,tt.jsx)(Md,{list:k,page:y.path}),(0,tt.jsx)("div",{"data-rp-outlet":s,ref:C=>{qL.get()[s]!==C&&qL.set(O=>({...O,[s]:C}))}})]})});function B1({region:r,children:s}){let d=se(qL,h=>h[r]||null),c=ot.useContext(Np),m=c.regions.find(h=>h.name===r);return ot.useEffect(()=>{c.layout&&(!m||m.acceptsContributions===!1)&&console.warn(`[rpf dev] RegionPortal: region "${r}" doesn't accept contributions`)},[r,!!m]),!d||m&&m.acceptsContributions===!1?null:(0,k1.createPortal)(s,d)}function U1(r){return(0,tt.jsx)(Md,{...r})}function q1(){let r=ot.useContext(_p);return r?{placementId:r.placementId,options:r.options,regions:r.regions,rootProps:r.rootProps}:{placementId:"",options:{},regions:[],rootProps:{}}}function H1(){let r=ot.useContext(Np);return{layout:r.layout?{id:"",uniqueId:r.layout.uniqueId,name:r.layout.name,kind:"layout",serverMode:"none",build:null,regions:r.regions,defaultOptions:r.layout.defaults}:null,options:r.options,mainRegion:r.mainRegion,regions:r.regions}}var mt=he(Zt(),1);function PL(){let r=se($t,d=>JSON.stringify({...d,panel:"",panelArgs:""})),s=mt.useRef(null);return(!s.current||s.current.sig!==r)&&(s.current={sig:r,loc:na()}),s.current.loc}function P1(){let[,r]=mt.useReducer(c=>c+1,0),s=mt.useRef(!1);mt.useEffect(()=>{let c=Dt.subscribe(()=>s.current&&r()),m=$t.subscribe(()=>s.current&&r());return()=>{c(),m()}},[]);let d=Ve();return mt.useMemo(()=>{let c={portal:{id:d.portal.id,slug:d.portal.slug,name:d.portal.name,homeRoute:d.portal.homeRoute,settings:d.portal.settings,navigation:null},pages:d.pages.filter(m=>on(m.roles)).map(m=>({id:m.id,route:m.route,title:m.title})),theme:d.theme?{id:"",key:d.theme.key,name:d.theme.name,tokens:d.theme.tokens,tokensDark:d.theme.tokensDark,css:[],cssText:d.theme.css}:null,release:null,navigate:Ao,runtime:{onloadV2:d.runtime.onloadV2}};return Object.defineProperty(c,"page",{enumerable:!0,get(){s.current=!0;let m=Dt.get();if(!m.resolved)return null;let{page:h,variant:L,params:y}=m.resolved;return{id:h.id,route:h.route,title:L?L.title:h.title,params:y,contentWidth:L2(L?L.contentWidth:h.contentWidth),variant:L?{id:L.id,key:L.key,name:L.name}:null}}}),Object.defineProperty(c,"path",{enumerable:!0,get(){return s.current=!0,na().page}}),Object.defineProperty(c,"location",{enumerable:!0,get(){return s.current=!0,na()}}),c},[d])}function N1(){let r=Ve().user;return mt.useMemo(()=>({...r,signedIn:!!r.sysId,hasRole:s=>bd(s),hasAnyRole:s=>(s||[]).some(d=>bd(d))}),[r])}function _1(r,s){if(!on(r.roles))return null;let d=Ve(),c={id:r.id,type:r.type,label:r.label,icon:r.icon,badge:r.badge,tooltip:r.tooltip,active:!1,children:[],attrs:{"data-rp-nav-item":r.id}};if(r.type==="page"||r.type==="route"){let m=r.type==="page"?String(r.page||""):String(r.route||"");if(r.type==="page"){let h=d.pages.find(L=>L.route===m);if(!h||!on(h.roles))return null}return c.to=m===d.portal.homeRoute?"":m,c.q=r.query,c.portalSlug=r.portal,r.record&&(c.table=r.record.table,c.sysId=r.record.sys_id,c.view=r.record.view,c.query=r.record.query),c.match=r.match,c.target=r.target,c.link={to:c.to,q:c.q,portalSlug:c.portalSlug,table:c.table,sysId:c.sysId,view:c.view,query:c.query,...c.attrs},c}return r.type==="url"?(c.href=r.url,c.target=r.target||"_blank",c):r.type==="panel"?bl(s).some(m=>m.key===r.panel)?(c.panel=r.panel,c.link={panel:r.panel,...c.attrs},c):null:r.type==="separator"?c:(c.open=!r.collapsed,c.children=r.children.map(m=>_1(m,s)).filter(Boolean),c.children.some(m=>m.type!=="separator")?c:null)}function g2(r,s){let d=s.page,c=null,m=(L,y)=>{for(let S of L){if(S.type==="group"&&m(S.children,y.concat([S])),S.type==="panel"){s.panel===S.panel&&(c={item:S,score:1e6,chain:y});continue}if(S.type!=="page"&&S.type!=="route"||S.portalSlug&&S.portalSlug!==s.portalSlug)continue;let A=S.to||"",k=d===A,C=A!==""&&d.startsWith(A+"/");if(!k&&!(C&&S.match!=="exact")||[S.table&&S.table!==s.table,S.sysId&&S.sysId!==s.sysId,S.view&&S.view!==s.view,S.query&&S.query!==s.query].some(Boolean))continue;let q=[S.table,S.sysId,S.view,S.query].filter(Boolean).length,T=Object.entries(S.q||{}).filter(([Y,F])=>s.qParams[Y]===F).length,B=(k?1e3:A.length)*100+q*10+T;(!c||B>c.score)&&(c={item:S,score:B,chain:y})}};m(r,[]);let h=c;if(h){h.item.active=!0,h.item.type==="panel"&&(h.item.link={panel:null,...h.item.attrs});for(let L of h.chain)L.active=!0,L.open=!0}return r}function F1(r="primary"){let s=PL(),d=se($t,m=>m.panel),c=se(Dt,m=>m.resolved?m.resolved.page.route:"");return mt.useMemo(()=>{let m=Ve(),h=m.menus[r],L=[],y="none";h?(L=h.items.map(O=>_1(O,c)).filter(Boolean),y="menu"):r==="primary"&&(L=m.pages.filter(O=>on(O.roles)&&!O.route.includes(":")&&!O.route.includes("*")).map(O=>({id:"page:"+O.route,type:"page",label:O.title,to:O.route===m.portal.homeRoute?"":O.route,active:!1,children:[],attrs:{"data-rp-nav-item":"page:"+O.route},link:{to:O.route===m.portal.homeRoute?"":O.route}})),y="pages");let S=0,A=O=>O.forEach(q=>{q.type!=="group"&&q.type!=="separator"&&(q.tint||(q.tint=`chart-${S%5+1}`),S++),A(q.children)});A(L),g2(L,{...s,panel:d});let k=[],C=(O,q)=>{for(let T of O){if(T.active&&T.type!=="group")return k.push(...q,T),!0;if(T.children.length&&C(T.children,q.concat([T])))return!0}return!1};return C(L,[]),{items:L,activePath:k,active:k.length?k[k.length-1]:null,menu:h?{key:h.key,name:h.name}:null,path:s.page,source:y}},[r,s,d,c])}var As=Jt([]),y2=0;function V1(){let r=Ve(),d=(r.portal.settings||{}).title||{},c=String(d.name||r.portal.name),m=d.suffix===!1?"":"ServiceNow",h=Dt.get(),L=na(),y=Rt.get(),S=y.entries[y.cursor],A="",k="none";!h.resolved&&h.path!==""&&r.pages.length?(A="Page not found",k="page"):L.isHome?k="home":S&&S.title?(A=S.title,k="entry"):typeof L.qParams.title=="string"&&L.qParams.title?(A=L.qParams.title,k="q"):h.resolved&&(A=h.resolved.variant?h.resolved.variant.title:h.resolved.page.title,k="page");let C="",O="";for(let B of As.get())B.title!==void 0&&B.title!==null&&(A=B.title,C="",k="widget"),B.detail!==void 0&&B.detail!==null&&(C=B.detail),B.prefix!==void 0&&B.prefix!==null&&(O=B.prefix);let q=A&&C?`${A} \xB7 ${C}`:A||C,T=O+[q,c,m].filter(Boolean).join(" | ");return{title:A,detail:C,prefix:O,portal:c,suffix:m,source:k,text:T,writing:r.runtime.documentTitle}}function Od(){if(!Ve().runtime.documentTitle)return;let r=V1().text;document.title!==r&&(document.title=r)}As.subscribe(Od);Rt.subscribe(Od);Dt.subscribe(Od);function G1(r={}){let s=mt.useRef(0);s.current||(s.current=++y2),mt.useEffect(()=>{let d={id:s.current,title:r.title,detail:r.detail,prefix:r.prefix},c=As.get().find(m=>m.id===d.id);c&&c.title===d.title&&c.detail===d.detail&&c.prefix===d.prefix||As.set(m=>m.filter(h=>h.id!==d.id).concat([d]))},[r.title,r.detail,r.prefix]),mt.useEffect(()=>()=>As.set(d=>d.filter(c=>c.id!==s.current)),[])}function X1(){let r=se(As,s=>s);return se(Dt,s=>s),se(Rt,s=>s),mt.useMemo(()=>V1(),[r,Dt.get(),Rt.get()])}function j1(r){mt.useEffect(()=>{Rt.set(s=>{let d=s.entries[s.cursor];if(!d||d.title===(r||""))return s;let c=s.entries.slice();return c[s.cursor]={...d,title:r||""},{...s,entries:c}})},[r])}function Y1(r,s){let d=se(Rt,m=>{let h=m.entries[m.cursor];return h&&r in h.state?h.state[r]:s}),c=mt.useCallback(m=>Rt.set(h=>{let L=h.entries[h.cursor];if(!L)return h;let y=r in L.state?L.state[r]:s,S=typeof m=="function"?m(y):m,A=h.entries.slice();return A[h.cursor]={...L,state:{...L.state,[r]:S}},{...h,entries:A}}),[r]);return[d,c]}function L2(r){let s=String(r||"inherit");if(s!=="inherit")return s;let d=String((Ve().portal.settings||{}).contentWidth||"");return d&&d!=="inherit"?d:"7xl"}function x2(r){if(r.title)return r.title;let s=Ve(),d=r.page===""?s.portal.homeRoute:r.page,c=null;for(let m of s.pages){let h=wp(m.route,d);h&&(!c||h.score>c.score)&&(c={title:m.title,score:h.score})}return c?c.title:""}function Q1(r={}){let s=se(Rt,m=>m),d=BL(),c=d>=0?s.entries[d]:null;if(c){let m=x2(c);return{available:!0,label:m?`Back to ${m}`:"Back",title:m,source:"history",go:()=>Is(r)}}return r.fallbackHome===!1||na().isHome?{available:!1,label:"",title:"",source:"none",go:async()=>!1}:{available:!0,label:"Back to Home",title:"Home",source:"home",go:()=>Ao("")}}function Z1(r,s){Rt.set(d=>({...d,entries:d.entries.map(c=>c.table===r.table&&c.sysId===r.sysId?{...c,flags:{...c.flags,...s}}:c)}))}function Fp(r,s="main"){let d=se(Rt,c=>c.cursor);mt.useEffect(()=>{let c=S2(r);if(!c)return;let m=Rt.get().entries[d]?.key,h=(Rt.get().entries[d]?.scroll||{})[s],L=!1,y=()=>{L=!0};c.addEventListener("wheel",y,{passive:!0}),c.addEventListener("touchstart",y,{passive:!0}),c.addEventListener("keydown",y);let S=Date.now(),A=0,k=()=>{L||typeof h!="number"||(c.scrollTop=h,Math.abs(c.scrollTop-h)>1&&Date.now()-S<1500&&(A=setTimeout(k,100)))};k();let C=0,O=()=>{cancelAnimationFrame(C),C=requestAnimationFrame(()=>Rt.set(q=>{let T=q.entries.findIndex(F=>F.key===m);if(T<0)return q;let B=q.entries[T];if((B.scroll||{})[s]===c.scrollTop)return q;let Y=q.entries.slice();return Y[T]={...B,scroll:{...B.scroll||{},[s]:c.scrollTop}},{...q,entries:Y}}))};return c.addEventListener("scroll",O,{passive:!0}),()=>{clearTimeout(A),cancelAnimationFrame(C),c.removeEventListener("scroll",O),c.removeEventListener("wheel",y),c.removeEventListener("touchstart",y),c.removeEventListener("keydown",y)}},[d,r,s])}function S2(r){if(r!=="main")return r&&r.current;let s=Ye.shadow,d=s?s.querySelector('[data-rp-region="main"]'):null;for(;d;){let c=getComputedStyle(d);if(/(auto|scroll)/.test(c.overflowY)&&d.scrollHeight>d.clientHeight)return d;d=d.parentElement}return s&&s.querySelector('[data-rp-region="main"]')?.parentElement||null}var HL=Jt({});function Vp(r,s){let d=HL.get();(s===null?!(r in d):d[r]===s)||HL.set(c=>{let m={...c};return s===null?delete m[r]:m[r]=s,m})}function z1(r,s,d){let c=$t.get(),m=d&&d.replace!==void 0?d.replace:!!(c.panel&&c.panel!=="none");return Ao({panel:r,panelArgs:s},{replace:m})}async function zL(){let r=$t.get();if(!r.panel||r.panel==="none")return!1;let s=Rt.get(),d=s.cursor>0?s.entries[s.cursor-1]:null,c=ju({...r,panel:"",panelArgs:""});return d&&d.url.split("?")[0]===c&&await Pp()?(history.back(),!0):Ao({panel:null},{replace:!0})}function Gp(){let r=se($t,m=>m),s=se(Dt,m=>m.resolved?m.resolved.page.route:""),d=se(HL,m=>m),c=!1;return mt.useMemo(()=>{let m=bl(s),h=m.find(A=>A.key===r.panel)||null,L=na(),y=Dt.get(),S=y.resolved?y.resolved.variant?y.resolved.variant.defaultPanel:y.resolved.page.defaultPanel:null;return{open:!!h,key:h?h.key:"",args:h?L.panelArgs:{},panel:h?{key:h.key,title:h.title,icon:h.icon,body:h.body}:null,title:h?d[h.key]||h.title:"",record:L.table&&L.sysId?{table:L.table,sysId:L.sysId}:null,panels:m.map(A=>({key:A.key,title:A.title,icon:A.icon,body:A.body})),isMobile:c,available:!0,savedWidth:null,defaultKey:S&&m.some(A=>A.key===S.key)?S.key:"",isDefault:!!(h&&S&&S.key===h.key),openPanel:z1,close:zL,toggle:(A,k)=>r.panel===A?zL():z1(A,k),setArgs:A=>Ao({panel:r.panel,panelArgs:A},{replace:!0})}},[r,s,d])}var NL=mt.createContext(null);function Xp(){let r=mt.useContext(NL),s=se($t,d=>r?d.panelArgs:"");return r?{inPanel:!0,key:r.key,args:na().panelArgs,panel:r.panel,close:zL,setArgs:d=>Ao({panel:r.key,panelArgs:d},{replace:!0}),setTitle:d=>Vp(r.key,d),_raw:s}:{inPanel:!1}}function J1(){Ku("replace")}var Zn=he(Zt(),1);var Bd=he(Op(),1);var Tl=he(Zt(),1);var Wu=Jt({connection:"unavailable",resumedAt:null}),nn=new Map,Go="",v2=0,jp=!1,$1=!1;async function Ts(r,s){let d=await fetch("/amb",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"},body:JSON.stringify(r.map(m=>({id:String(++v2),...m}))),signal:s});if(!d.ok)throw new Error(`AMB HTTP ${d.status}`);let c=await d.json();return Array.isArray(c)?c:[]}function _L(r){for(let s of r)if(!(!s||typeof s.channel!="string")){if(s.channel.startsWith("/meta/")){s.channel==="/meta/subscribe"&&s.subscription&&C2(s);continue}if(s.channel.startsWith("/sn/meta/channel_redirect/")){let d=s.data||{},c=Array.from(nn.values()).find(m=>m.channel===d.fromChannel||m.actual===d.fromChannel);c&&d.toChannel&&(c.actual=d.toChannel,Ts([{channel:"/meta/unsubscribe",subscription:d.fromChannel,clientId:Go},{channel:"/meta/subscribe",subscription:d.toChannel,clientId:Go}]).then(_L,()=>{}));continue}for(let d of nn.values())if(d.actual===s.channel||d.channel===s.channel)for(let c of d.listeners)c(s)}}function C2(r){let s=Array.from(nn.values()).find(d=>d.actual===r.subscription||d.channel===r.subscription);if(s&&s.actual===r.subscription){if(r.successful)s.status="subscribed";else if(/^403/.test(String(r.error||"")))s.status="denied";else if(s.status="error",s.error=r.error,s.retries<3){let d=[2e3,8e3,32e3][s.retries++];setTimeout(()=>s.listeners.size&&FL(s),d)}for(let d of s.statusListeners)d()}}function FL(r){Go&&(r.status="subscribing",Ts([{channel:"/meta/subscribe",subscription:r.actual,clientId:Go}]).then(_L,s=>{r.status="error",r.error=s}))}async function b2(){if(jp)return;jp=!0;let r=1e3;for(;jp;)try{Wu.set(m=>({...m,connection:"connecting"}));let d=(await Ts([{channel:"/meta/handshake",version:"1.0",minimumVersion:"1.0",supportedConnectionTypes:["long-polling"],advice:{timeout:6e4,interval:0},ext:{supportsSubscribeCommandFlow:!0}}])).find(m=>m.channel==="/meta/handshake");if(!d||!d.successful||!d.clientId)throw new Error("AMB handshake refused");let c=!!Go;Go=d.clientId,await Ts([{channel:"/meta/subscribe",subscription:`/sn/meta/channel_redirect/${Go}`,clientId:Go}]);for(let m of nn.values())m.actual=m.channel,FL(m);for(Wu.set({connection:"open",resumedAt:c?Date.now():null}),c&&Ye.queryClient.invalidateQueries(),r=1e3;jp;){let m=await Ts([{channel:"/meta/connect",connectionType:"long-polling",clientId:Go}]),h=m.find(L=>L.channel==="/meta/connect");if(_L(m),h&&!h.successful)throw new Error("AMB connect refused")}}catch{Wu.set(s=>({...s,connection:"broken"})),await new Promise(s=>setTimeout(s,r)),r=Math.min(r*2,3e4)}}function I2(){if(!$1){if($1=!0,Ye.boot&&Ye.boot.session==="header"){Wu.set({connection:"unavailable",resumedAt:null});return}window.__RPF_AMB__={channels:()=>Array.from(nn.values()).map(r=>({channel:r.channel,actual:r.actual,status:r.status,listeners:r.listeners.size})),state:()=>Wu.get()},b2()}}function w2(r,s,d){I2();let c=nn.get(r);c||(c={channel:r,actual:r,listeners:new Set,status:"idle",retries:0,statusListeners:new Set},nn.set(r,c),FL(c)),c.releaseTimer&&(clearTimeout(c.releaseTimer),c.releaseTimer=void 0),c.listeners.add(s),c.statusListeners.add(d);let m=c;return()=>{m.listeners.delete(s),m.statusListeners.delete(d),!m.listeners.size&&(m.releaseTimer=setTimeout(()=>{m.listeners.size||(nn.delete(m.channel),Go&&Ts([{channel:"/meta/unsubscribe",subscription:m.actual,clientId:Go}]).catch(()=>{}))},1e3))}}function A2(r,s){let d=String(s||"").split("^").filter(m=>m&&!/^(ORDERBY|ORDERBYDESC|GROUPBY)/.test(m)).join("^")||"sys_idISNOTEMPTY",c=btoa(unescape(encodeURIComponent(d))).replace(/=/g,"-");return`/rw/default/${r}/${c}`}function Yp(r,s,d={}){let c=Tl.useRef(s);c.current=s;let[,m]=Tl.useReducer(y=>y+1,0),h=se(Wu,y=>y.connection);Tl.useEffect(()=>{if(!(d.enabled===!1||!r))return w2(r,y=>c.current(y),m)},[r,d.enabled]);let L=nn.get(r);return{status:L?L.status:"idle",error:L?L.error:void 0,connection:h}}function T2(r,s){let d=s&&s.data||{},c=d.record||{},m=c.sys_mod_count?Number(c.sys_mod_count.value??c.sys_mod_count):d.sys_mod_count;return{table:d.table_name||r,sysId:d.sys_id||s.ext&&s.ext.sys_id||"",action:d.action||"change",operation:d.operation||"update",changes:Array.isArray(d.changes)?d.changes:[],modCount:typeof m=="number"&&!isNaN(m)?m:null,updatedOn:c.sys_updated_on?String(c.sys_updated_on.value??c.sys_updated_on):null,fromUser:s.ext&&s.ext.from_user||null,displayValue:d.display_value||"",record:c,raw:s}}function Rs(r,s,d,c={}){let m=r?A2(r,s):"",[h,L]=Tl.useState(null),y=Tl.useRef(null),S=Tl.useRef(d);return S.current=d,{...Yp(m,k=>{let C=T2(r,k);L(C),S.current&&S.current(C),c.invalidate!==!1&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{Ye.queryClient.invalidateQueries({predicate:O=>JSON.stringify(O.queryKey).includes(JSON.stringify(r))})},c.debounceMs??250))},{enabled:c.enabled!==!1&&!!r}),channel:m,lastEvent:h}}function VL(){return se(Wu,r=>r)}var Ud=class extends Error{status;detail;constructor(s,d,c){super(d),this.status=s,this.detail=c}};function R2(){return{Accept:"application/json","Content-Type":"application/json","X-UserToken":""}}async function qd(r,s={}){let d=new URL(r,location.origin);if(d.origin!==location.origin)throw new Ud(0,`fetchJson refuses cross-origin URLs: ${d.origin}`);let c=s.body,m=c!==void 0&&typeof c!="string"&&!(c instanceof FormData)?JSON.stringify(c):c,h={Accept:"application/json",...s.headers||{}};m!==void 0&&!(c instanceof FormData)&&!h["Content-Type"]&&(h["Content-Type"]="application/json");let L=await fetch(d.pathname+d.search,{...s,headers:h,body:m,credentials:"same-origin"}),y=await L.text(),S=null;try{S=y?JSON.parse(y):null}catch{S=y}if(!L.ok){let A=S&&(S.error||S.result&&S.result.error);throw new Ud(L.status,A&&(A.message||A.detail)||`HTTP ${L.status}`,A)}return S}var Jp=r=>Array.isArray(r)?r.join(","):r||"";function K1(r,s,d={}){let[c,m]=Zn.useState(!1);Rs(r,s?`sys_id=${s}`:null,L=>m(L.operation==="delete"),{enabled:!!d.live&&!!r&&!!s,debounceMs:d.liveThrottleMs??250});let h=Ip({queryKey:["rp-record",r,s,Jp(d.fields),String(d.displayValue??"")],enabled:!!r&&!!s,queryFn:async()=>{let L=new URLSearchParams;d.fields&&L.set("sysparm_fields",Jp(d.fields)),d.displayValue!==void 0&&L.set("sysparm_display_value",String(d.displayValue)),L.set("sysparm_exclude_reference_link","true");let y=await qd(`/api/now/table/${encodeURIComponent(r)}/${encodeURIComponent(s)}?${L}`);return y&&y.result}});return{data:h.data,isLoading:h.isLoading,error:h.error,refetch:h.refetch,deleted:c}}function W1(r,s={}){let d=(Array.isArray(s.orderBy)?s.orderBy:s.orderBy?[s.orderBy]:[]).map(h=>h.startsWith("-")?`ORDERBYDESC${h.slice(1)}`:`ORDERBY${h}`).join("^"),c=[s.query||"",d].filter(Boolean).join("^");Rs(r,s.query||"",void 0,{enabled:!!s.live&&!!r,debounceMs:s.liveThrottleMs??1e3});let m=Ip({queryKey:["rp-table",r,c,Jp(s.fields),s.limit,String(s.displayValue??"")],enabled:!!r,queryFn:async()=>{let h=new URLSearchParams;c&&h.set("sysparm_query",c),s.fields&&h.set("sysparm_fields",Jp(s.fields)),h.set("sysparm_limit",String(s.limit||100)),s.displayValue!==void 0&&h.set("sysparm_display_value",String(s.displayValue)),h.set("sysparm_exclude_reference_link","true");let L=await qd(`/api/now/table/${encodeURIComponent(r)}?${h}`);return L&&L.result||[]}});return{data:m.data||[],isLoading:m.isLoading,error:m.error,refetch:m.refetch}}function XL(r){let s=(r||[]).slice().sort().join(","),d=Ip({queryKey:["rp-properties",Ve().portal.slug,s],enabled:!!s,staleTime:5*6e4,queryFn:async()=>{let m=await qd(`/api/x_312987_portal/rp/properties?portal=${encodeURIComponent(Ve().portal.slug)}&names=${encodeURIComponent(s)}`);return(m&&(m.result?m.result.data||m.result:m)||{}).values||{}}}),c={};for(let m of r||[])c[m]=d.data&&m in d.data?d.data[m]:null;return{values:c,isLoading:d.isLoading,error:d.error}}function eA(r){let s=XL(r?[r]:[]);return{value:r?s.values[r]:null,isLoading:s.isLoading,error:s.error}}var er=new Map,Qp=new Set,Zp=null,GL=new Set;function tA(r){for(let s of r)er.has(s)||Qp.add(s);return Qp.size?(Zp||(Zp=new Promise(s=>{setTimeout(async()=>{let d=Array.from(Qp);Qp=new Set,Zp=null;try{let c=await qd("/api/x_312987_portal/rp/messages",{method:"POST",body:{keys:d}}),m=c&&(c.result?c.result.data||c.result:c)||{};for(let h of d)er.set(h,m.messages&&m.messages[h]||h)}catch{for(let c of d)er.set(c,c)}for(let c of GL)c();s()},0)})),Zp):Promise.resolve()}function jL(r){let[,s]=Zn.useReducer(h=>h+1,0),d=(r||[]).join("\0");Zn.useEffect(()=>(GL.add(s),tA(r||[]),()=>{GL.delete(s)}),[d]);let c={},m=!1;for(let h of r||[])er.has(h)?c[h]=er.get(h):(m=!0,c[h]=h);return{messages:c,isLoading:m,error:null}}function aA(r,s){let d=jL([r]);return er.has(r)?d.messages[r]:s!==void 0?s:r}function YL(r,...s){let d=s.length===1&&s[0]&&typeof s[0]=="object"?s[0]:s;return String(r).replace(/\{([A-Za-z0-9_]+)\}/g,(c,m)=>d&&d[m]!==void 0&&d[m]!==null?String(d[m]):c)}function oA(){return Zn.useMemo(()=>({addInfoMessage:(r,s)=>{Bd.toast.info(r,s)},addErrorMessage:(r,s)=>{Bd.toast.error(r,s)},addTrivialMessage:(r,s)=>{(0,Bd.toast)(r,{duration:2500,...s||{}})},toast:Bd.toast,format:YL,getMessage:async r=>(await tA([r]),er.get(r)||r),scrollTo(r,s){let d=typeof r=="string"?Ye.shadow&&Ye.shadow.querySelector(r):r;d&&d.scrollIntoView({behavior:"smooth",block:"start",...s||{}})},fetchJson:qd,async refresh(){zp(),await Ye.queryClient.invalidateQueries()},getHeaders:R2,getWidget:async()=>{throw new Ud(400,"Embedded widgets come later in rpf dev")},goBack:Is}),[])}var lt=he(Zt(),1);var Da=he(Zt(),1),$p=he(Xu(),1);var We=he(_t(),1),Hd=Jt({title:null,meta:null,footer:null});function Ds(r,s){Hd.get()[r]!==s&&Hd.set(d=>({...d,[r]:s}))}var nA=r=>`x_312987_portal.panel.${Ve().portal.slug}.${r}.width`;function D2(r){try{let s=parseInt(localStorage.getItem(nA(r))||"",10);return s>0?s:null}catch{return null}}function lA(r,s){try{localStorage.setItem(nA(r),String(Math.round(s)))}catch{}}var E2=300,QL=(...r)=>r.filter(Boolean).join(" ")||void 0;function ZL(r){let s=Gp(),d=se(Rp,V=>V.isMobile),c=se(Dt,V=>V.resolved?V.resolved.page.route:""),m=se(Dt,V=>V.path),h=s.open?bl(c).find(V=>V.key===s.key):void 0,[L,y]=Da.useState(h);Da.useEffect(()=>{if(h){y(h);return}let V=setTimeout(()=>y(void 0),E2);return()=>clearTimeout(V)},[h&&h.key]);let S=h||L,A=!!h,k=Da.useRef(null),[C,O]=Da.useState(0);Da.useLayoutEffect(()=>{let V=k.current&&k.current.parentElement;if(!V||typeof ResizeObserver!="function")return;let ke=new ResizeObserver(we=>O(we[0].contentRect.width));return ke.observe(V),()=>ke.disconnect()});let q=r.variant||"push",T=r.minWidth||280,B=r.maxWidth||720,[Y,F]=Da.useState(null),[,ne]=Da.useReducer(V=>V+1,0),fe=S?D2(S.key)||parseInt(S.width,10)||r.width||400:r.width||400,ve=Math.max(T,Math.min(B,Y!==null?Y:fe)),Me=q==="push"&&C>0&&C-ve<(r.minMainWidth??560)?"overlay":q,He=Da.useMemo(()=>S?{key:S.key,args:s.args}:void 0,[S,s.args]);if(!S){let V=r.rail&&!d?bl(c):[];return V.length?(0,We.jsx)("aside",{"data-rp-side-panel":"rail","aria-label":"Side panels",className:QL("mr-2 mb-2 flex w-11 shrink-0 flex-col items-center gap-1 py-2",r.className,r.closedClassName),children:V.map(ke=>(0,We.jsxs)(Fw,{children:[(0,We.jsx)(Vw,{render:(0,We.jsx)("button",{type:"button","aria-label":ke.title,className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground",onClick:()=>{s.openPanel(ke.key)}}),children:(0,We.jsx)(Xw,{name:ke.icon||"panel-right",className:"size-4"})}),(0,We.jsx)(Gw,{side:"left",children:ke.title})]},ke.key))}):(0,We.jsx)("aside",{"data-rp-side-panel":Me,"data-state":"closed","aria-hidden":"true",className:QL("w-0 shrink-0",r.className,r.closedClassName)})}let Ce=V=>{V.preventDefault();let ke=V.clientX,we=ve,Et=X=>Math.max(T,Math.min(B,we+(ke-X.clientX))),N=X=>F(Et(X)),G=X=>{window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",G),lA(S.key,Et(X)),F(null)};window.addEventListener("pointermove",N),window.addEventListener("pointerup",G)},Z=V=>{let ke=V.shiftKey?64:16,we=V.key==="ArrowLeft"?ve+ke:V.key==="ArrowRight"?ve-ke:V.key==="Home"?B:V.key==="End"?T:null;we!==null&&(V.preventDefault(),lA(S.key,Math.max(T,Math.min(B,we))),ne())},ge=(0,We.jsx)(Zw,{variant:S.body==="full"?"full":"default",children:(0,We.jsx)(NL.Provider,{value:{key:S.key,panel:{key:S.key,title:S.title,icon:S.icon,body:S.body}},children:(0,We.jsx)(U1,{list:S.regions.main,page:m,panel:He})})});if(d)return(0,We.jsx)(jw,{open:A,onOpenChange:V=>!V&&void s.close(),children:(0,We.jsxs)(Yw,{side:"right",showCloseButton:!1,className:"w-full gap-0 p-0 sm:max-w-none",children:[(0,We.jsx)(Qw,{className:"sr-only",children:s.title||S.title}),(0,We.jsxs)(hL,{children:[(0,We.jsx)(LL,{onClick:()=>{s.close()}}),(0,We.jsx)(gL,{ref:V=>Ds("title",V),children:s.title||S.title}),(0,We.jsx)(yL,{ref:V=>Ds("meta",V)})]}),ge,(0,We.jsx)(xL,{className:"empty:hidden",ref:V=>Ds("footer",V)})]})});let nt={"--rp-side-panel-width":`${ve}px`,...Me==="overlay"?{position:"absolute",top:0,right:0,bottom:0,zIndex:40}:{}};return(0,We.jsxs)("aside",{ref:k,role:"complementary","aria-label":s.title||S.title,"aria-hidden":A?"false":"true","data-rp-side-panel":Me,"data-state":A?"open":"closed","data-panel":S.key,"data-resizing":Y!==null?"":void 0,className:QL("relative flex shrink-0 flex-col overflow-hidden bg-background text-foreground motion-reduce:transition-none data-[resizing]:transition-none transition-[width,margin] duration-300 ease-in-out",A?"mr-2 mb-2 w-(--rp-side-panel-width) rounded-md border border-border shadow-sm":"m-0 w-0 border-0",Me==="overlay"&&A&&"shadow-lg",r.className,A?r.openClassName:r.closedClassName),style:nt,children:[(0,We.jsxs)("div",{className:"flex h-full min-h-0 flex-col w-(--rp-side-panel-width)",children:[r.showTitle===!1?null:(0,We.jsxs)(hL,{children:[(0,We.jsx)(LL,{onClick:()=>{s.close()}}),(0,We.jsx)(gL,{ref:V=>Ds("title",V),children:s.title||S.title}),(0,We.jsx)(yL,{ref:V=>Ds("meta",V)})]}),ge,(0,We.jsx)(xL,{className:"empty:hidden",ref:V=>Ds("footer",V)})]}),r.resizable===!1||!A?null:(0,We.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize panel","aria-valuenow":Math.round(ve),"aria-valuemin":T,"aria-valuemax":B,tabIndex:0,"data-slot":"side-panel-resize",className:"absolute inset-y-0 left-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize touch-none outline-none after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent hover:after:bg-ring focus-visible:after:bg-ring",onPointerDown:Ce,onKeyDown:Z})]})}function JL({children:r}){let s=Xp();Da.useEffect(()=>{if(s.inPanel)return typeof r=="string"&&Vp(s.key,r),()=>Vp(s.key,null)},[s.inPanel&&s.key,typeof r=="string"?r:""]);let d=se(Hd,c=>c.title);return!s.inPanel||typeof r=="string"||!d?null:(0,$p.createPortal)(r,d)}function $L({children:r}){let s=se(Hd,d=>d.meta);return s?(0,$p.createPortal)(r,s):null}function KL({children:r}){let s=se(Hd,d=>d.footer);return s?(0,$p.createPortal)(r,s):null}var zd=Jt({});function Es(r,s){let d=zd.get()[r]||{};Object.keys(s).some(m=>!Object.is(d[m],s[m]))&&zd.set(m=>({...m,[r]:{...m[r]||{},...s}}))}var pa=he(_t(),1),Kp=new Map;function rA(r,s){return Kp.set(r,s),()=>{Kp.get(r)===s&&Kp.delete(r)}}function WL(r,s){return/^[A-Za-z0-9_.-]+$/.test(r)&&/^[A-Za-z0-9_.:-]+$/.test(s)?`${r}:${s}`:""}function ex(r,s="tab"){return`rp-${s}-${r.replace(/[^A-Za-z0-9_-]/g,"_")}`}var tx=lt.createContext(null),sA=lt.createContext(null),iA="x_312987_portal.tabs.params",Wp=(()=>{try{return localStorage.getItem(iA)==="1"?!0:null}catch{return null}})();function uA(){if(!Wp){Wp=!0;try{localStorage.setItem(iA,"1")}catch{}}}function dA(r={}){let s=se($t,T=>T),d=se(zd,T=>T),c=r.kinds||{},m=T=>c[T]||Kp.get(T)||null,h=(r.static||[]).map(T=>({...T,...d[T.key]||{}})),L=[],y=[];for(let T of s.tabs?s.tabs.split(","):[]){let[B,Y]=T.split("~"),F=B.indexOf(":"),ne=F>0?m(B.slice(0,F)):null,fe=ne&&ne.paramsOf?ne.paramsOf(B.slice(F+1)):ne?{id:B.slice(F+1)}:null;if(!ne||!fe){y.push(B);continue}L.push({key:B,kind:B.slice(0,F),params:fe,parent:Y,opened:!0,closable:ne.closable!==!1,keepAlive:!!ne.keepAlive,icon:ne.icon,title:ne.title&&ne.title(fe)||B,...d[B]||{},render:(ve,Me)=>ne.render(ve,Me)})}let S=h.concat(L),A=r.defaultKey||h[0]&&h[0].key||"",k=S.some(T=>T.key===s.tab)?s.tab:A;(s.tab||s.tabs)&&uA();let C=async(T,B,Y,F)=>{let fe=await Ao({tab:T&&T!==A?T:null,tabs:B,tabArgs:F??null},{replace:Y||Wp!==!0});return fe&&(B.length||T&&T!==A)&&uA(),fe},O=()=>s.tabs?s.tabs.split(",").filter(Boolean):[],q={list:S,active:k,activeTab:S.find(T=>T.key===k)||null,defaultKey:A,args:Object.fromEntries(new URLSearchParams(s.tabArgs)),supported:s.tab||s.tabs||Wp?!0:null,invalid:y,async open(T,B={}){let Y=typeof T=="string"?T:T.key||(T.kind&&m(T.kind)?WL(T.kind,m(T.kind).keyOf(T.params||{})):"");if(!Y)return!1;let F=O();if(F.some(Me=>Me.split("~")[0]===Y))return q.activate(Y,B);let ne=B.parent!==void 0?B.parent:k,fe=F.slice(),ve=r.max||8;if(fe.length>=ve){if(r.overflow==="refuse")return!1;let Me=zd.get(),He=fe.findIndex(Ce=>{let Z=Ce.split("~")[0];return Z!==k&&!(Me[Z]&&Me[Z].dirty)});if(He<0)return!1;fe.splice(He,1)}return fe.push(ne?`${Y}~${ne}`:Y),C(B.activate===!1?k:Y,fe,B.history?B.history!=="push":!1,B.args)},activate:(T,B={})=>{let Y=O(),F=!1,ne=Y.find(ve=>ve.split("~")[0]===T);for(;ne;){let ve=ne.split("~")[1];if(!ve)break;if(ve===k){F=!0;break}ne=Y.find(Me=>Me.split("~")[0]===ve)}let fe=B.history?B.history!=="push":!F;return C(T,Y,fe,B.args)},async close(T,B={}){let Y=O(),F=new Set([T]),ne=!0;for(;ne;){ne=!1;for(let He of Y){let[Ce,Z]=He.split("~");Z&&F.has(Z)&&!F.has(Ce)&&(F.add(Ce),ne=!0)}}let fe=Y.filter(He=>!F.has(He.split("~")[0])),ve=h.find(He=>He.key===T);ve&&ve.onClose&&ve.onClose();let Me=k;if(F.has(k)){let He=Y.find(Z=>Z.split("~")[0]===T),Ce=He?He.split("~")[1]:"";for(;Ce&&F.has(Ce);){let Z=Y.find(ge=>ge.split("~")[0]===Ce);Ce=Z?Z.split("~")[1]:""}Me=Ce||A}return C(Me,fe,B.history?B.history!=="push":!0)},replace:async(T,B)=>(await q.close(T),q.open(B)),reset:(T={})=>C(T.activate||A,T.keep||[],!0),move:async(T,B)=>{let Y=O(),F=Y.findIndex(fe=>fe.split("~")[0]===T);if(F<0)return!1;let[ne]=Y.splice(F,1);return Y.splice(Math.max(0,Math.min(Y.length,B)),0,ne),C(k,Y,!0)},setArgs:T=>C(k,O(),!0,T),setMeta:(T,B)=>Es(T,B),kindOf:m,keyFor:T=>typeof T=="string"?T:T.key||""};return q}function cA({value:r,children:s}){return(0,pa.jsx)(tx.Provider,{value:r,children:s})}function fA(){return lt.useContext(tx)}function pA(){return lt.useContext(sA)||{inTab:!1}}function mA({className:r,style:s}){let d=lt.useContext(tx),[c,m]=lt.useState([]),h=d&&d.activeTab?d.activeTab.key:"";if(lt.useEffect(()=>{d&&d.activeTab&&d.activeTab.keepAlive&&!c.includes(h)&&m(c.concat([h]))},[h]),!d||!d.activeTab)return null;let L=d.list.filter(S=>S.keepAlive&&c.includes(S.key)&&S.key!==h),y=[d.activeTab].concat(L);return(0,pa.jsx)(pa.Fragment,{children:y.map(S=>{let A=S.key===h;return(0,pa.jsx)("div",{id:ex(S.key,"panel"),role:"tabpanel",className:r,hidden:!A||void 0,inert:!A||void 0,style:{...s,...A?{}:{visibility:"hidden",display:"none"}},children:(0,pa.jsx)(M2,{tab:S,tabs:d})},S.key)})})}function M2({tab:r,tabs:s}){let d=lt.useRef(s);d.current=s;let c=r.key,m=lt.useMemo(()=>({setTitle:y=>Es(c,{title:y}),setDirty:y=>Es(c,{dirty:y}),setBadge:y=>Es(c,{badge:y}),setIcon:y=>Es(c,{icon:y}),close:y=>d.current.close(c,y),activate:y=>d.current.activate(c,y),openChild:(y,S)=>d.current.open(y,{...S||{},parent:c}),setArgs:(y,S)=>d.current.setArgs(y,S)}),[c]),h=r.params||{},L=lt.useMemo(()=>({inTab:!0,key:c,kind:r.kind,params:h,active:!0,args:s.args,...m}),[c,r.kind,JSON.stringify(h),JSON.stringify(s.args),m]);return(0,pa.jsx)(sA.Provider,{value:L,children:r.render?r.render(h,L):null})}function hA(){return!1}function gA({componentId:r,props:s,fallback:d}){let c=Ve(),m=Object.values(c.components).find(k=>k.id===r||k.uniqueId===r),h=m?m.uniqueId:null,L=kd(h),y=se(Dt,k=>k.path),S=lt.useMemo(()=>m?{instanceId:`formatter:${m.id||m.uniqueId}`,uniqueId:m.uniqueId,name:m.name,serverMode:m.serverMode,options:m.defaults||{},page:y}:null,[m,y]);if(!m||!S)return(0,pa.jsx)(pa.Fragment,{children:d||null});if(L.status!=="ready"||!L.ns||typeof L.ns.default!="function")return(0,pa.jsx)(pa.Fragment,{children:L.status==="error"&&d||null});let A=L.ns.default;return(0,pa.jsx)(wl.Provider,{value:S,children:(0,pa.jsx)(Al,{label:m.uniqueId,children:(0,pa.jsx)(A,{instanceId:S.instanceId,options:S.options,...s||{}})})})}var yA=lt.createContext({value:void 0,set:!1});function LA(){let r=lt.useContext(yA),s=se(Dt,d=>d.resolved?d.resolved.page.route:"");return lt.useMemo(()=>{if(r.set)return r.value;let d=Ve(),c=d.cellRenderers.filter(L=>on(L.roles)&&(!L.pages.length||L.pages.includes(s))).map(L=>({...L,roles:[]}));if(!c.length)return null;let m={},h={};for(let L of c){let y=d.components[L.kit];m[L.kit]={id:L.kit,uniqueId:L.kit,name:y?y.name:L.kit,kind:y?y.kind:"primitive",serverMode:"none",build:null},L.table&&(h[L.table]=[L.table])}return{kits:m,rows:c,chains:h}},[r,s])}function xA({value:r,children:s}){return(0,pa.jsx)(yA.Provider,{value:{value:r,set:!0},children:s})}function SA(r){let s=se(wo,h=>h),d=(r||[]).map(h=>h.id+"="+h.uniqueId).join("|"),[c,m]=lt.useState({sig:"",status:"empty",namespaces:{},error:null});return lt.useEffect(()=>{if(!r||!r.length)return;let h=!0;return Promise.all(r.map(L=>Ad(L.uniqueId,s).then(y=>[L.id,y]))).then(L=>h&&m({sig:d+s,status:"ready",namespaces:Object.fromEntries(L),error:null}),L=>h&&m({sig:d+s,status:"ready",namespaces:{},error:L})),()=>{h=!1}},[d,s]),!r||!r.length?{status:"empty",namespaces:{},error:null}:c.sig!==d+s?{status:"loading",namespaces:{},error:null}:{status:c.status,namespaces:c.namespaces,error:c.error}}function em(r={}){let[s,d]=lt.useState(!!r.disabled),c=lt.useRef(null);return[lt.useCallback(h=>{c.current&&c.current.disconnect(),!(!h||s)&&(c.current=new IntersectionObserver(L=>{L.some(y=>y.isIntersecting)&&(d(!0),c.current&&c.current.disconnect())},{rootMargin:r.rootMargin||"200px"}),c.current.observe(h))},[s,r.rootMargin]),s]}var ro=he(Zt(),1);var uo=he(_t(),1),vA=new Map,CA=Symbol.for("rpf.embed.uid"),bA=r=>r.split("/").pop()||r,k2=/^[A-Za-z0-9_-]{1,64}$/;function IA(r,s,d,c,m){let h=Ve().components[s];return{instanceId:`${r.instanceId}~${d}`,uniqueId:s,name:h&&h.name||s,serverMode:h&&h.serverMode||"none",options:{...h&&h.defaults||{},...c},page:r.page,panel:r.panel,embed:{root:r.embed?r.embed.root:r.instanceId,path:(r.embed?r.embed.path:[]).concat([s]),keys:(r.embed?r.embed.keys:[]).concat([d]),options:c,token:m}}}function wA(r,s){function d(c){let{options:m,embedKey:h,model:L,fallback:y,lazy:S,...A}=c,k=ro.useContext(wl),C=h&&k2.test(String(h))?String(h):L&&L.key?L.key:bA(r),O=L&&L.options||m||{},q=L&&L.token||null,T=ro.useMemo(()=>k?IA(k,r,C,O,q):null,[k&&k.instanceId,C,JSON.stringify(O),q]);ro.useMemo(()=>{T&&L&&L.ok&&L1(T,L.data||{},L.options)},[T,L]);let B=!L&&S?S===!0?{}:S:null,[Y,F]=em({rootMargin:B?B.rootMargin:void 0,disabled:!B});if(!T)return(0,uo.jsx)(s,{...A,options:O,embedded:!0});if(B&&!F){let ne=B.height===void 0?"10rem":typeof B.height=="number"?`${B.height}px`:B.height;return(0,uo.jsx)("div",{ref:Y,"data-rp-lazy":!0,"aria-busy":"true",className:"animate-pulse rounded-md bg-muted",style:{minHeight:ne}})}return(0,uo.jsx)("div",{style:{display:"contents"},"data-rp-embed":T.instanceId,"data-rp-component":r,"data-rp-embed-root":T.embed.root,"data-rp-embed-depth":T.embed.path.length,children:(0,uo.jsx)(wl.Provider,{value:T,children:(0,uo.jsx)(Al,{label:r,fallback:y,children:(0,uo.jsx)(s,{...A,instanceId:T.instanceId,options:T.options,region:void 0,embedded:!0})})})})}return d.displayName=`Embedded(${r})`,d.Raw=s,d[CA]=r,vA.set(r,d),d}function AA({model:r,fallback:s,embedKey:d,...c}){if(!r)return(0,uo.jsx)(uo.Fragment,{children:s||null});let m=vA.get(r.component);return m?(0,uo.jsx)(m,{...c,model:r,embedKey:d}):(0,uo.jsxs)("div",{"data-rp-error":r.component,className:"m-2 text-sm text-muted-foreground",children:[r.component," isn't imported by this component"]})}function TA(r){return typeof r=="string"?r.replace(/^components:/,""):r&&r[CA]||""}async function O2(r,s,d,c){let m=IA(r,s,c,d,null),h=await fetch("/__rpf/server/initialize",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:r.page,instances:[{id:m.instanceId,placement:m.embed.root,path:m.embed.path,keys:m.embed.keys,options:d,token:null}],context:qp(r),meta:Hp([m])})}),L=await h.json().catch(()=>null),y=L&&L.instances?L.instances[m.instanceId]:null;if(!y)throw new ln({status:h.status,code:"embed_failed",message:`Could not load ${s}`});return{$embed:1,component:s,key:c,ok:!!y.ok,data:y.data,options:y.options||d,token:y.token||null,build:y.build||null,error:y.ok?void 0:y.error,messages:y.messages}}function ax(){let r=ro.useContext(wl);return ro.useCallback(async(s,d={},c={})=>{let m=TA(s);if(!r||!m)throw new ln({status:400,code:"no_server",message:"No instance to embed under"});return O2(r,m,d,c.key||bA(m))},[r&&r.instanceId])}function RA(r,s={},d={}){let c=ax(),m=`${TA(r)}|${d.key||""}|${JSON.stringify(s)}`,[h,L]=ro.useState({sig:"",model:null,prev:null,error:null}),y=ro.useCallback(async()=>{try{let A=await c(r,s,{key:d.key});return L(k=>({sig:m,model:A,prev:k.model,error:null})),A}catch(A){return L(k=>({sig:m,model:null,prev:k.model,error:A})),null}},[m,c]);ro.useEffect(()=>{d.enabled!==!1&&y()},[y,d.enabled]);let S=h.sig===m;return{model:S?h.model:null,previousModel:S?h.prev:h.model,pending:d.enabled!==!1&&!S,error:S?h.error:null,refetch:y}}var B2="0.2.0",EA={useServer:ML,useComponent:y1,usePortal:P1,usePortalLocation:PL,Link:T1,useNavigate:w1,Region:O1,RegionPortal:B1,useBlock:q1,useLayout:H1,useNavigation:F1,useSidebar:Nw,usePortalContainer:Dp,useTheme:Tp,useUser:N1,useProperty:eA,useProperties:XL,useMessage:aA,useMessages:jL,toast:DA.toast,format:YL,usePortalUtils:oA,useRecord:K1,useTableQuery:W1,useRecordWatch:Rs,useAmbChannel:Yp,useAmbStatus:VL,Embed:AA,useEmbeddedWidget:RA,useGetWidget:ax,useInViewOnce:em,useBackTarget:Q1,goBack:Is,useEntryTitle:j1,useHistoryState:Y1,useScrollRestoration:Fp,markEntries:Z1,useNavigationGuard:C1,useNavHistory:A1,useSidePanel:Gp,useSidePanelContent:Xp,SidePanelRegion:ZL,PanelHeaderTitle:JL,PanelHeaderMeta:$L,PanelFooter:KL,useTabs:dA,useTab:pA,useTabsContext:fA,TabsProvider:cA,TabOutlet:mA,registerTabKind:rA,makeTabKey:WL,tabDomId:ex,useDocumentTitle:G1,useTitleParts:X1,FormatterSlot:gA,useDesignMode:hA,useCellRendererConfig:LA,CellRendererConfigProvider:xA,useComponentNamespaces:SA,PARAM_OPERATORS:Aw,PARAM_OPERATOR_LABELS:Tw,parseParamCondition:Rw,matchParamCondition:kw,explainParamCondition:Mw,serializeParamCondition:Dw,paramConditionFields:Ew},U2=Object.keys(EA).concat(["RUNTIME_ABI","RUNTIME_EXPORTS"]).sort(),MA={...EA,RUNTIME_ABI:B2,RUNTIME_EXPORTS:U2};var aT=he(Zt(),1);var OO=he(Zt()),kA=he(Xu());var tr=he(_t()),ox=(r,s,d)=>`color-mix(in oklab, ${r} ${d}%, ${s})`,tm=(r,s)=>({[`--${r}-bg`]:ox(s,"var(--popover)",12),[`--${r}-border`]:ox(s,"var(--popover)",35),[`--${r}-text`]:ox(s,"var(--popover-foreground)",70)}),q2={...tm("success","oklch(0.62 0.15 152)"),...tm("error","var(--destructive)"),...tm("warning","oklch(0.72 0.15 70)"),...tm("info","var(--primary)")},OA=({...r})=>{let{resolvedTheme:s}=Tp(),d=Dp(),c=(0,tr.jsx)(_w,{theme:s,className:"toaster group",icons:{success:(0,tr.jsx)(Ow,{className:"size-4"}),info:(0,tr.jsx)(Bw,{className:"size-4"}),warning:(0,tr.jsx)(Hw,{className:"size-4"}),error:(0,tr.jsx)(qw,{className:"size-4"}),loading:(0,tr.jsx)(Uw,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)",...q2},mobileOffset:{bottom:"5rem"},toastOptions:{classNames:{toast:"cn-toast"}},...r});return d?(0,kA.createPortal)(c,d):c};var Ct=he(Zt(),1),KA=he(Xu(),1);var am=he(Zt(),1);var BA=r=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function UA(r,s,d=[]){if(s==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:BA(r),size:24,node:s,...d.length>0?{aliases:d}:{}}}var qA=r=>{let s="",d=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){d=s.length>0;continue}s.length===0?s+=c.toLowerCase():s+=d?c.toUpperCase():c,d=!1}return s};var HA=r=>{let s=qA(r);return s.charAt(0).toUpperCase()+s.slice(1)};var Nd=he(Zt(),1);var Pd=(...r)=>r.filter((s,d,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===d).join(" ").trim();var Jn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function lx(r){return r!=null}function zA(r,s={}){let d=s.attributeNames??{},c=O=>d[O]??O,m=r.size??r.width??Jn.width,h=r.size??r.height??Jn.height,L=r.aliases?.filter(O=>typeof O=="string"&&O.trim()!=="").map(O=>`lucide-${O}`)??[],y=[...r.name?[`lucide-${r.name}`]:[],...L],S=s.className?.split(" ").filter(Boolean)??[],A=s.includeDefaultClasses===!1?Pd(...S):Pd("lucide",...y,...S),k=s.absoluteStrokeWidth?Number(s.strokeWidth??Jn["stroke-width"])*Number(r.size??r.width??Jn.width)/Number(s.size??s.width??Jn.width):s.strokeWidth??Jn["stroke-width"];return["svg",{...Object.entries(Jn).reduce((O,[q,T])=>(O[c(q)]=T,O),{}),..."color"in s&&s.color&&{[c("stroke")]:s.color},..."size"in s&&lx(s.size)&&{[c("width")]:s.size,[c("height")]:s.size},..."width"in s&&lx(s.width)&&{[c("width")]:s.width},..."height"in s&&lx(s.height)&&{[c("height")]:s.height},[c("stroke-width")]:k,...A&&{[c("class")]:A},[c("viewBox")]:`0 0 ${m} ${h}`,...s.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in s&&s.attributes},r.node.map(O=>{let[q,T,B]=O,Y=s.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...T}:T;return B?[q,Y,B]:[q,Y]})]}function PA(r,s={}){return zA(r,{...s,attributeNames:{...s.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var NA=r=>{for(let s in r)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};var Ms=he(Zt(),1);var H2=(0,Ms.createContext)({});var _A=()=>(0,Ms.useContext)(H2);var FA=(0,Nd.forwardRef)(({color:r,size:s,width:d,height:c,strokeWidth:m,absoluteStrokeWidth:h,nonScalingStroke:L,className:y="",children:S,iconNode:A=[],icon:k={node:A,aliases:[],size:24},...C},O)=>{let{size:q=24,strokeWidth:T=2,absoluteStrokeWidth:B=!1,nonScalingStroke:Y=!1,color:F="currentColor",className:ne=""}=_A()??{},fe=!!S||NA(C),[ve,Me,He=[]]=PA(k,{color:r??F,width:d??s??q,height:c??s??q,strokeWidth:m??T,absoluteStrokeWidth:h??B,nonScalingStroke:L??Y,className:Pd(ne,y),hasA11yProp:fe,attributes:C});return(0,Nd.createElement)(ve,{ref:O,...Me},[...He.map(([Ce,Z])=>(0,Nd.createElement)(Ce,Z)),...Array.isArray(S)?S:[S]])});function Rl(r,s=[],d=[]){let c=typeof r=="string"?UA(r,s,d):r,m=(0,am.forwardRef)(({className:h,...L},y)=>(0,am.createElement)(FA,{ref:y,icon:c,className:h,...L}));return c.name&&(m.displayName=HA(c.name)),m}var VA={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};VA.node;var _d=Rl(VA);var GA={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};GA.node;var Fd=Rl(GA);var XA={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};XA.node;var ks=Rl(XA);var jA={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};jA.node;var Vd=Rl(jA);var YA={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};YA.node;var Gd=Rl(YA);var te=he(_t(),1),WA="rpf-dev.dock",z2=8,To=24,P2=5,QA=150,nx=300,ZA=14,JA={ArrowUp:"top",ArrowRight:"right",ArrowDown:"bottom",ArrowLeft:"left"},N2={top:"bottom",bottom:"top",left:"right",right:"left"},_2={top:Vd,right:ks,bottom:_d,left:Fd},ar=(r,s,d)=>Math.min(Math.max(r,s),Math.max(s,d)),Xd=r=>r==="top"||r==="bottom";function F2(){try{let r=JSON.parse(localStorage.getItem(WA)||"null")||{};return{edge:["top","right","bottom","left"].includes(r.edge)?r.edge:"bottom",ratio:typeof r.ratio=="number"?ar(r.ratio,0,1):1,compact:!!r.compact}}catch{return{edge:"bottom",ratio:1,compact:!1}}}var om=()=>({w:document.documentElement.clientWidth||innerWidth,h:innerHeight});function V2(r,s,d,c=om()){let m=r.compact?0:z2;if(Xd(r.edge))return{x:ar(To+r.ratio*(c.w-2*To-s),To,c.w-To-s),y:r.edge==="top"?m:c.h-d-m};let h=ar(To+r.ratio*(c.h-2*To-d),To,c.h-To-d);return{x:r.edge==="left"?m:c.w-s-m,y:h}}function G2(r,s,d,c,m=om()){let h=r+d/2,L=s+c/2,y=[["top",L],["bottom",m.h-L],["left",h],["right",m.w-h]];y.sort((k,C)=>k[1]-C[1]);let S=y[0][0],A=Xd(S)?ar((r-To)/Math.max(1,m.w-2*To-d),0,1):ar((s-To)/Math.max(1,m.h-2*To-c),0,1);return{edge:S,ratio:A}}function X2(r,s){let[d,c]=Ct.useState(0);return Ct.useEffect(()=>{if(!r)return;let m=setInterval(()=>c(h=>h+1),s);return()=>clearInterval(m)},[r,s]),d}function Os({title:r,count:s,children:d,open:c}){return(0,te.jsxs)("details",{open:c,className:"group rounded-md border bg-background/60",children:[(0,te.jsxs)("summary",{className:"flex cursor-pointer items-center gap-2 px-2 py-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase select-none",children:[(0,te.jsx)(ks,{size:12,className:"transition-transform group-open:rotate-90"}),r,s!==void 0?(0,te.jsx)("span",{className:"ml-auto font-mono normal-case",children:s}):null]}),(0,te.jsx)("div",{className:"border-t px-2 py-1.5",children:d})]})}function Bs({children:r}){return(0,te.jsx)("div",{className:"max-h-48 overflow-auto font-mono text-[11px] leading-4 whitespace-pre-wrap",children:r})}var $A=r=>new Date(r).toLocaleTimeString([],{hour12:!1}),j2=`
1
+ import{a as Vt,b as Wt,c as _t,e as Xt,f as Cr,g as $t}from"./chunks/chunk-7JQIKRBV.js";import{a as xr,d as hr,g as Ir}from"./chunks/chunk-IY3GAGI7.js";import{d as Gt}from"./chunks/chunk-PQMY72VV.js";import{f as gr}from"./chunks/chunk-GX72R347.js";import"./chunks/chunk-K7LVVFGH.js";import{b as pr,c as mr,d as Lr}from"./chunks/chunk-FBZMZ5S2.js";import"./chunks/chunk-ZZ2RYU7S.js";import{b as cr}from"./chunks/chunk-IWEJRU22.js";import"./chunks/chunk-UPZXXDXM.js";import"./chunks/chunk-WT34MBTN.js";import"./chunks/chunk-TIJLEKZ2.js";import"./chunks/chunk-QJVIEN5R.js";import"./chunks/chunk-33RMFA4P.js";import"./chunks/chunk-UCEBXCOI.js";import{a as Gl}from"./chunks/chunk-354OFHNU.js";import"./chunks/chunk-ZTMZ7LJW.js";import"./chunks/chunk-OXLXEX2R.js";import"./chunks/chunk-H6TI5TWN.js";import"./chunks/chunk-IAEAQCYR.js";import{Ga as nr,Ha as tt,Ia as ot,Ja as ir,Ka as fr,Ma as rt,a as oe,b as w,c as Ke,d as je,e as re,f as Ze,g as Jo,h as Qo,i as Yo,j as er,k as ar,l as tr,m as or,n as F,o as T,p as ke,q as Je,r as ne,s as Pa,t as Ne,u as et,v as at,w as Te}from"./chunks/chunk-HCQR5YME.js";import"./chunks/chunk-B4MRCKT4.js";import"./chunks/chunk-RCNX6LVJ.js";import"./chunks/chunk-F353PAEY.js";import"./chunks/chunk-QFN6XL4O.js";import"./chunks/chunk-7OCTAHT6.js";import"./chunks/chunk-URJZKT45.js";import"./chunks/chunk-E75HEEMN.js";import{T as Ya,c as Zo}from"./chunks/chunk-VSM3ZOBU.js";import"./chunks/chunk-CJ5CECQT.js";import"./chunks/chunk-R5KQ2GRA.js";import"./chunks/chunk-FTWKUXER.js";import"./chunks/chunk-AAL6V4Y3.js";import"./chunks/chunk-34RXMJIM.js";import"./chunks/chunk-CLVPTZ4G.js";import"./chunks/chunk-5EK7QOB6.js";import"./chunks/chunk-LYT7LQS3.js";import{Z as sr,db as dr,ma as lr,t as rr,ya as ur}from"./chunks/chunk-IQ2XSDFU.js";import"./chunks/chunk-XIXCIQKJ.js";import"./chunks/chunk-EGZKG2B2.js";import"./chunks/chunk-2L7NK6SJ.js";import"./chunks/chunk-DR47HKIK.js";import"./chunks/chunk-MQ67DRDE.js";import{a as da}from"./chunks/chunk-UH726PMV.js";import"./chunks/chunk-SFI7YWVR.js";import"./chunks/chunk-NZ73KS2Y.js";import"./chunks/chunk-JIAVZ3V7.js";import"./chunks/chunk-7TG23VIV.js";import"./chunks/chunk-SVQCDOZ3.js";import{a as ee}from"./chunks/chunk-CT4EH2K2.js";import{a as de}from"./chunks/chunk-IJQ26FTX.js";import{a as zl,c as k}from"./chunks/chunk-KVMUXFPB.js";var ut=zl(Ma=>{"use client";function Xl(e){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",a.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}Object.defineProperty(Ma,"__esModule",{value:!0});var $l=de(),Kl=da();function Tr(e){return e&&e.__esModule?e:{default:e}}var g=Tr($l),Yt=Tr(Kl),jl=e=>{switch(e){case"success":return Ql;case"info":return eu;case"warning":return Yl;case"error":return au;default:return null}},Zl=Array(12).fill(0),Jl=({visible:e,className:a})=>g.default.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":e},g.default.createElement("div",{className:"sonner-spinner"},Zl.map((t,o)=>g.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Ql=g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},g.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Yl=g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},g.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),eu=g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},g.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),au=g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},g.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),tu=g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},g.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ou=()=>{let[e,a]=g.default.useState(document.hidden);return g.default.useEffect(()=>{let t=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[]),e},ru=1,su=100,Ar=e=>{var a;return typeof e?.id=="number"||(e==null||(a=e.id)==null?void 0:a.length)>0?e.id:ru++},eo=class{constructor(){this.subscribe=a=>(this.subscribers.push(a),this.getActiveToasts().forEach(t=>a(t)),()=>{let t=this.subscribers.indexOf(a);this.subscribers.splice(t,1)}),this.publish=a=>{this.subscribers.forEach(t=>t(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a],this.trimHistory()},this.trimHistory=()=>{let a=this.toasts.length-su;a<=0||(this.toasts=this.toasts.filter(t=>a>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),a--,!1):!0))},this.create=a=>{let{message:t,...o}=a,r=Ar(a),s=this.pendingDismissals.get(r);s!==void 0&&(cancelAnimationFrame(s),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let l=this.dismissedToasts.has(r),f=a.dismissible===void 0?!0:a.dismissible;return l&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(n=>n.id!==r)),(l?void 0:this.toasts.find(n=>n.id===r))?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...a,id:r,title:t}),{...n,...a,id:r,dismissible:f,title:t}):n):this.addToast({title:t,...o,dismissible:f,id:r}),r},this.dismiss=a=>{if(a==null)return this.getActiveToasts().forEach(o=>{this.dismissedToasts.add(o.id),this.subscribers.forEach(r=>r({id:o.id,dismiss:!0}))}),a;this.dismissedToasts.add(a);let t=this.pendingDismissals.get(a);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(a,requestAnimationFrame(()=>{this.pendingDismissals.delete(a),this.subscribers.forEach(o=>o({id:a,dismiss:!0}))})),a},this.message=(a,t)=>this.create({...t,message:a,type:void 0}),this.error=(a,t)=>this.create({...t,message:a,type:"error"}),this.success=(a,t)=>this.create({...t,type:"success",message:a}),this.info=(a,t)=>this.create({...t,type:"info",message:a}),this.warning=(a,t)=>this.create({...t,type:"warning",message:a}),this.loading=(a,t)=>this.create({...t,type:"loading",message:a}),this.promise=(a,t)=>{if(!t)return;let o;t.loading!==void 0&&(o=this.create({...t,promise:a,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=Promise.resolve(a instanceof Function?a():a),s=o!==void 0,l,f=r.then(async n=>{if(l=["resolve",n],g.default.isValidElement(n))s=!1,this.create({id:o,type:"default",message:n});else if(uu(n)&&!n.ok){s=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${n.status}`):t.error,m=typeof t.description=="function"?await t.description(`HTTP error! status: ${n.status}`):t.description,i=typeof d=="object"&&!g.default.isValidElement(d)?d:{message:d};this.create({id:o,type:"error",description:m,...i})}else if(n instanceof Error){s=!1;let d=typeof t.error=="function"?await t.error(n):t.error,m=typeof t.description=="function"?await t.description(n):t.description,i=typeof d=="object"&&!g.default.isValidElement(d)?d:{message:d};this.create({id:o,type:"error",description:m,...i})}else if(t.success!==void 0){s=!1;let d=typeof t.success=="function"?await t.success(n):t.success,m=typeof t.description=="function"?await t.description(n):t.description,i=typeof d=="object"&&!g.default.isValidElement(d)?d:{message:d};this.create({id:o,type:"success",description:m,...i})}}).catch(async n=>{if(l=["reject",n],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(n):t.error,d=typeof t.description=="function"?await t.description(n):t.description,L=typeof c=="object"&&!g.default.isValidElement(c)?c:{message:c};this.create({id:o,type:"error",description:d,...L})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),t.finally==null||t.finally.call(t)}),u=()=>new Promise((n,c)=>f.then(()=>l[0]==="reject"?c(l[1]):n(l[1])).catch(c));return typeof o!="string"&&typeof o!="number"?{unwrap:u}:Object.assign(o,{unwrap:u})},this.custom=(a,t)=>{let o=Ar(t);return this.create({...t,jsx:a(o),id:o,type:void 0}),o},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},ge=new eo,lu=(e,a)=>ge.message(e,a),uu=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",du=lu,nu=()=>ge.toasts,iu=()=>ge.getActiveToasts(),fu=Object.assign(du,{success:ge.success,info:ge.info,warning:ge.warning,error:ge.error,custom:ge.custom,message:ge.message,promise:ge.promise,dismiss:ge.dismiss,loading:ge.loading},{getHistory:nu,getToasts:iu});Xl("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function lt(e){return e.label!==void 0}var cu=3,pu="24px",mu="16px",Dr=4e3,Lu=356,gu=14,xu=45,hu=200;function Be(...e){return e.filter(Boolean).join(" ")}function Iu(e){let[a,t]=e.split("-"),o=[];return a&&o.push(a),t&&o.push(t),o}var Cu=e=>{var a,t,o,r,s,l,f,u,n;let{invert:c,toast:d,unstyled:m,interacting:L,setHeights:i,visibleToasts:p,heights:S,index:x,toasts:v,expanded:P,removeToast:D,defaultRichColors:B,closeButton:V,style:U,cancelButtonStyle:C,actionButtonStyle:E,className:Y="",descriptionClassName:h="",duration:N,position:le,gap:fe,expandByDefault:me,classNames:A,icons:M,closeButtonAriaLabel:$="Close toast"}=e,[j,Xe]=g.default.useState(null),[ye,y]=g.default.useState(null),[W,R]=g.default.useState(!1),[z,q]=g.default.useState(!1),[ae,he]=g.default.useState(!1),[O,He]=g.default.useState(!1),[$e,ya]=g.default.useState(!1),[ba,Ot]=g.default.useState(0),[Ml,No]=g.default.useState(0),ka=g.default.useRef(d.duration||N||Dr),zo=g.default.useRef(null),Ue=g.default.useRef(null),Tl=x===0,Bl=x+1<=p,Le=d.type,Go=Le??"default",sa=d.dismissible!==!1,ql=d.className||"",Fl=d.descriptionClassName||"",Qa=g.default.useMemo(()=>S.findIndex(b=>b.toastId===d.id)||0,[S,d.id]),El=g.default.useMemo(()=>{var b;return(b=d.closeButton)!=null?b:V},[d.closeButton,V]),Vo=g.default.useMemo(()=>d.duration||N||Dr,[d.duration,N]),Ht=g.default.useRef(0),la=g.default.useRef(0),Wo=g.default.useRef(0),ua=g.default.useRef(null),[Ol,Hl]=le.split("-"),_o=g.default.useMemo(()=>S.reduce((b,te,ce)=>ce>=Qa?b:b+te.height,0),[S,Qa]),Xo=ou(),Ae=g.default.useMemo(()=>{var b;return(b=e.swipeDirections)!=null?b:Iu(le)},[e.swipeDirections,le]),Ul=d.invert||c,Ut=Le==="loading";la.current=g.default.useMemo(()=>Qa*fe+_o,[Qa,_o]),g.default.useEffect(()=>{ka.current=Vo},[Vo]),g.default.useEffect(()=>{R(!0)},[]),g.default.useEffect(()=>{let b=Ue.current;if(b){let te=b.getBoundingClientRect().height;return No(te),i(ce=>[{toastId:d.id,height:te,position:d.position},...ce]),()=>i(ce=>ce.filter(Ie=>Ie.toastId!==d.id))}},[i,d.id]),g.default.useLayoutEffect(()=>{if(!W)return;let b=Ue.current,te=b.style.height;b.style.height="auto";let ce=b.getBoundingClientRect().height;b.style.height=te,No(ce),i(Ie=>Ie.find(ue=>ue.toastId===d.id)?Ie.map(ue=>ue.toastId===d.id?{...ue,height:ce}:ue):[{toastId:d.id,height:ce,position:d.position},...Ie])},[W,d.title,d.description,i,d.id,d.jsx,d.action,d.cancel]);let Ve=g.default.useCallback(()=>{q(!0),Ot(la.current),i(b=>b.filter(te=>te.toastId!==d.id)),setTimeout(()=>{D(d)},hu)},[d,D,i,la]);g.default.useEffect(()=>{if(d.promise&&Le==="loading"||d.duration===1/0||d.type==="loading")return;let b;return P||L||Xo?(()=>{if(Wo.current<Ht.current){let Ie=new Date().getTime()-Ht.current;ka.current=ka.current-Ie}Wo.current=new Date().getTime()})():ka.current!==1/0&&(Ht.current=new Date().getTime(),b=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Ve()},ka.current)),()=>clearTimeout(b)},[P,L,d,Le,Xo,Ve]),g.default.useEffect(()=>{d.delete&&(Ve(),d.onDismiss==null||d.onDismiss.call(d,d))},[Ve,d.delete]);function $o(){var b;if(M?.loading){var te;return g.default.createElement("div",{className:Be(A?.loader,d==null||(te=d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Le==="loading"},M.loading)}return g.default.createElement(Jl,{className:Be(A?.loader,d==null||(b=d.classNames)==null?void 0:b.loader),visible:Le==="loading"})}let Nl=d.icon||M?.[Le]||jl(Le);var Ko,jo;return g.default.createElement("li",{tabIndex:0,ref:Ue,className:Be(Y,ql,A?.toast,d==null||(a=d.classNames)==null?void 0:a.toast,A?.[Go],d==null||(t=d.classNames)==null?void 0:t[Go]),"data-sonner-toast":"","data-rich-colors":(Ko=d.richColors)!=null?Ko:B,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":W,"data-promise":!!d.promise,"data-swiped":$e,"data-removed":z,"data-visible":Bl,"data-y-position":Ol,"data-x-position":Hl,"data-index":x,"data-front":Tl,"data-swiping":ae,"data-dismissible":sa,"data-type":Le,"data-invert":Ul,"data-swipe-out":O,"data-swipe-direction":ye,"data-expanded":!!(P||me&&W),"data-testid":d.testId,style:{"--index":x,"--toasts-before":x,"--z-index":v.length-x,"--offset":`${z?ba:la.current}px`,"--initial-height":me?"auto":`${Ml}px`,...U,...d.style},onDragEnd:()=>{he(!1),Xe(null),ua.current=null},onPointerDown:b=>{b.button!==2&&(Ut||!sa||(zo.current=new Date,Ot(la.current),b.target.setPointerCapture(b.pointerId),b.target.tagName!=="BUTTON"&&(he(!0),ua.current={x:b.clientX,y:b.clientY})))},onPointerUp:()=>{var b,te,ce;if(O||!sa)return;ua.current=null;let Ie=Number(((b=Ue.current)==null?void 0:b.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),va=Number(((te=Ue.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ue=new Date().getTime()-((ce=zo.current)==null?void 0:ce.getTime()),be=j==="x"?Ie:va,De=Math.abs(be)/ue;if((j==="x"?Ae.includes(Ie>0?"right":"left"):Ae.includes(va>0?"bottom":"top"))&&(Math.abs(be)>=xu||De>.11)){Ot(la.current),d.onDismiss==null||d.onDismiss.call(d,d),y(j==="x"?Ie>0?"right":"left":va>0?"down":"up"),Ve(),He(!0);return}else{var Me,zt;(Me=Ue.current)==null||Me.style.setProperty("--swipe-amount-x","0px"),(zt=Ue.current)==null||zt.style.setProperty("--swipe-amount-y","0px")}ya(!1),he(!1),Xe(null)},onPointerMove:b=>{var te,ce,Ie;if(!ua.current||!sa||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let ue=b.clientY-ua.current.y,be=b.clientX-ua.current.x;!j&&(Math.abs(be)>1||Math.abs(ue)>1)&&Xe(Math.abs(be)>Math.abs(ue)?"x":"y");let De={x:0,y:0},Nt=Me=>1/(1.5+Math.abs(Me)/20);if(j==="y"){if(Ae.includes("top")||Ae.includes("bottom"))if(Ae.includes("top")&&ue<0||Ae.includes("bottom")&&ue>0)De.y=ue;else{let Me=ue*Nt(ue);De.y=Math.abs(Me)<Math.abs(ue)?Me:ue}}else if(j==="x"&&(Ae.includes("left")||Ae.includes("right")))if(Ae.includes("left")&&be<0||Ae.includes("right")&&be>0)De.x=be;else{let Me=be*Nt(be);De.x=Math.abs(Me)<Math.abs(be)?Me:be}(Math.abs(De.x)>0||Math.abs(De.y)>0)&&ya(!0),(ce=Ue.current)==null||ce.style.setProperty("--swipe-amount-x",`${De.x}px`),(Ie=Ue.current)==null||Ie.style.setProperty("--swipe-amount-y",`${De.y}px`)}},El&&!d.jsx&&Le!=="loading"?g.default.createElement("button",{"aria-label":$,"data-disabled":Ut,"data-close-button":!0,onClick:Ut||!sa?()=>{}:()=>{Ve(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Be(A?.closeButton,d==null||(o=d.classNames)==null?void 0:o.closeButton)},(jo=M?.close)!=null?jo:tu):null,(Le||d.icon||d.promise)&&d.icon!==null&&(M?.[Le]!==null||d.icon)?g.default.createElement("div",{"data-icon":"",className:Be(A?.icon,d==null||(r=d.classNames)==null?void 0:r.icon)},Le==="loading"?d.icon||$o():d.promise?$o():null,Le!=="loading"?Nl:null):null,g.default.createElement("div",{"data-content":"",className:Be(A?.content,d==null||(s=d.classNames)==null?void 0:s.content)},g.default.createElement("div",{"data-title":"",className:Be(A?.title,d==null||(l=d.classNames)==null?void 0:l.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?g.default.createElement("div",{"data-description":"",className:Be(h,Fl,A?.description,d==null||(f=d.classNames)==null?void 0:f.description)},typeof d.description=="function"?d.description():d.description):null),g.default.isValidElement(d.cancel)?d.cancel:d.cancel&&lt(d.cancel)?g.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||C,onClick:b=>{lt(d.cancel)&&sa&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,b),Ve())},className:Be(A?.cancelButton,d==null||(u=d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,g.default.isValidElement(d.action)?d.action:d.action&&lt(d.action)?g.default.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||E,onClick:b=>{lt(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,b),!b.defaultPrevented&&Ve())},className:Be(A?.actionButton,d==null||(n=d.classNames)==null?void 0:n.actionButton)},d.action.label):null)};function Mr(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Su(e,a){let t={};return[e,a].forEach((o,r)=>{let s=r===1,l=s?"--mobile-offset":"--offset",f=s?mu:pu;function u(n){["top","right","bottom","left"].forEach(c=>{t[`${l}-${c}`]=typeof n=="number"?`${n}px`:n})}typeof o=="number"||typeof o=="string"?u(o):typeof o=="object"?["top","right","bottom","left"].forEach(n=>{o[n]===void 0?t[`${l}-${n}`]=f:t[`${l}-${n}`]=typeof o[n]=="number"?`${o[n]}px`:o[n]}):u(f)}),t}function wu(){let[e,a]=g.default.useState([]);return g.default.useEffect(()=>ge.subscribe(t=>{if(t.dismiss){setTimeout(()=>{Yt.default.flushSync(()=>{a(o=>o.filter(r=>r.id!==t.id))})});return}setTimeout(()=>{Yt.default.flushSync(()=>{a(o=>{let r=o.findIndex(s=>s.id===t.id);return r!==-1?[...o.slice(0,r),{...o[r],...t},...o.slice(r+1)]:[t,...o]})})})}),[]),{toasts:e}}var yu=g.default.forwardRef(function(a,t){let{id:o,invert:r,position:s="bottom-right",hotkey:l=["altKey","KeyT"],expand:f,closeButton:u,className:n,offset:c,mobileOffset:d,theme:m="light",richColors:L,duration:i,style:p,visibleToasts:S=cu,toastOptions:x,dir:v=Mr(),gap:P=gu,icons:D,customAriaLabel:B,containerAriaLabel:V="Notifications"}=a,[U,C]=g.default.useState([]),E=g.default.useMemo(()=>o?U.filter(R=>R.toasterId===o):U.filter(R=>!R.toasterId),[U,o]),Y=g.default.useMemo(()=>Array.from(new Set([s].concat(E.filter(R=>R.position).map(R=>R.position)))),[E,s]),[h,N]=g.default.useState([]),[le,fe]=g.default.useState(!1),[me,A]=g.default.useState(!1),[M,$]=g.default.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=g.default.useRef(null),Xe=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ye=g.default.useRef(null),y=g.default.useRef(!1),W=g.default.useCallback(R=>{C(z=>{var q;return(q=z.find(ae=>ae.id===R.id))!=null&&q.delete||ge.dismiss(R.id),z.filter(({id:ae})=>ae!==R.id)})},[]);return g.default.useEffect(()=>ge.subscribe(R=>{if(R.dismiss){requestAnimationFrame(()=>{C(z=>z.map(q=>q.id===R.id?{...q,delete:!0}:q))});return}setTimeout(()=>{Yt.default.flushSync(()=>{C(z=>{let q=z.findIndex(ae=>ae.id===R.id);return q!==-1?[...z.slice(0,q),{...z[q],...R},...z.slice(q+1)]:[R,...z]})})})}),[]),g.default.useEffect(()=>{if(m!=="system"){$(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let R=window.matchMedia("(prefers-color-scheme: dark)");try{R.addEventListener("change",({matches:z})=>{$(z?"dark":"light")})}catch{R.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(ae){console.error(ae)}})}},[m]),g.default.useEffect(()=>{U.length<=1&&fe(!1)},[U]),g.default.useEffect(()=>{let R=z=>{var q;if(l.length>0&&l.every(O=>z[O]||z.code===O)){var he;fe(!0),(he=j.current)==null||he.focus()}z.code==="Escape"&&(document.activeElement===j.current||(q=j.current)!=null&&q.contains(document.activeElement))&&fe(!1)};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[l]),g.default.useEffect(()=>{if(j.current)return()=>{ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null,y.current=!1)}},[j.current]),g.default.createElement("section",{ref:t,"aria-label":B??`${V} ${Xe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},Y.map((R,z)=>{var q;let[ae,he]=R.split("-");return E.length?g.default.createElement("ol",{key:R,dir:v==="auto"?Mr():v,tabIndex:-1,ref:j,className:n,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ae,"data-x-position":he,style:{"--front-toast-height":`${((q=h[0])==null?void 0:q.height)||0}px`,"--width":`${Lu}px`,"--gap":`${P}px`,...p,...Su(c,d)},onBlur:O=>{y.current&&!O.currentTarget.contains(O.relatedTarget)&&(y.current=!1,ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null))},onFocus:O=>{O.target instanceof HTMLElement&&O.target.dataset.dismissible==="false"||y.current||(y.current=!0,ye.current=O.relatedTarget)},onMouseEnter:()=>fe(!0),onMouseMove:()=>fe(!0),onMouseLeave:()=>{me||fe(!1)},onDragEnd:()=>fe(!1),onPointerDown:O=>{O.target instanceof HTMLElement&&O.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},E.filter(O=>!O.position&&z===0||O.position===R).map((O,He)=>{var $e,ya;return g.default.createElement(Cu,{key:O.id,icons:D,index:He,toast:O,defaultRichColors:L,duration:($e=x?.duration)!=null?$e:i,className:x?.className,descriptionClassName:x?.descriptionClassName,invert:r,visibleToasts:S,closeButton:(ya=x?.closeButton)!=null?ya:u,interacting:me,position:R,style:x?.style,unstyled:x?.unstyled,classNames:x?.classNames,cancelButtonStyle:x?.cancelButtonStyle,actionButtonStyle:x?.actionButtonStyle,closeButtonAriaLabel:x?.closeButtonAriaLabel,removeToast:W,toasts:E.filter(ba=>ba.position==O.position),heights:h.filter(ba=>ba.position==O.position),setHeights:N,expandByDefault:f,gap:P,expanded:le,swipeDirections:a.swipeDirections})})):null}))});Ma.Toaster=yu;Ma.toast=fu;Ma.useSonner=wu});var wd=k(de(),1),yd=k(da(),1),Uo=k(Gl(),1),Rl=k(ee(),1);var Zt=new Map,wr=new Map,Kt=new Map,jt=null;function yr(e){jt=e}var st=new Map,Ra=new Map,Aa=new Map,Sr=new Map;function Jt(e){if(e&&e.__esModule)return e;let a=Object.create(null);for(let t of Object.keys(e))a[t]=e[t];return!("default"in a)&&"default"in e&&(a.default=e.default),Object.defineProperty(a,"__esModule",{value:!0}),a}function Qe(e,a){Zt.set(e,Jt(a))}function Qt(e,a){wr.set(e,a)}function br(e){let a=/^(components|utilities):([a-z][a-z0-9_-]*\/[a-z][a-z0-9-]*)$/.exec(e);return a?a[2]:null}async function Vl(e,a){if(Zt.has(e)||Kt.has(e))return;let t=br(e);if(t){await Da(t,a);return}let o=wr.get(e);o&&Kt.set(e,Jt(await o()))}function Wl(e,a){return t=>{let o=Zt.get(t)||Kt.get(t);if(o)return o;let r=br(t);if(r){let s=st.get(`${e}|${r}`)||Aa.get(`${e}|${r}`);if(s)return s}throw new Error(`React Portal dev host does not provide "${t}" (required by ${a})`)}}function _l(e,a){let t=F.shadow;if(!t)return;let o=Sr.get(e);if(!a){o&&(o.textContent="");return}if(!o){o=document.createElement("style"),o.dataset.rpComponent=e;let r=t.querySelector("style[data-rp-sheet]");t.insertBefore(o,r),Sr.set(e,o)}o.textContent!==a&&(o.textContent=a)}function Da(e,a){let t=`${a}|${e}`,o=Ra.get(t);return o||(o=(async()=>{let r=await import(`/__rpf/c/${a}/${e}.js`);await Promise.all((r.deps||[]).map(u=>Vl(u,a))),_l(e,r.css||"");let s=r.factory(Wl(a,e)),l=Jt(s);Aa.set(t,l);let f=F.boot&&F.boot.components[e];if(jt&&f&&f.kind==="widget"&&typeof l.default=="function"){let u=Object.create(null);for(let n of Object.keys(l))u[n]=l[n];u.default=jt(e,l.default),Object.defineProperty(u,"__esModule",{value:!0}),st.set(t,u)}return l})(),Ra.set(t,o),o.catch(()=>Ra.delete(t)),o)}function kr(e,a){return Aa.get(`${a}|${e}`)}function vr(e){for(let a of Array.from(Ra.keys()))parseInt(a,10)<e&&Ra.delete(a);for(let a of Array.from(Aa.keys()))parseInt(a,10)<e&&Aa.delete(a);for(let a of Array.from(st.keys()))parseInt(a,10)<e&&st.delete(a)}var Pr={"components:accordion":()=>import("./chunks/accordion-7MNNAFNO.js"),"components:alert-dialog":()=>import("./chunks/alert-dialog-7NG5WNXK.js"),"components:alert":()=>import("./chunks/alert-GIZIVENB.js"),"components:avatar":()=>import("./chunks/avatar-BCPZUJGX.js"),"components:badge":()=>import("./chunks/badge-KCMWGERA.js"),"components:breadcrumb":()=>import("./chunks/breadcrumb-T2XOHRDG.js"),"components:button":()=>import("./chunks/button-TGT2523L.js"),"components:calendar":()=>import("./chunks/calendar-TOTKKMY2.js"),"components:card":()=>import("./chunks/card-LOSZVZYW.js"),"components:chart-frame":()=>import("./chunks/chart-frame-FNM5OPZU.js"),"components:chart":()=>Promise.all([import("./chunks/chart-43TBOZGK.js"),import("./chunks/chart-blocks-HLNNWNB5.js")]).then(e=>Object.assign({},...e)),"components:chat":()=>import("./chunks/chat-QVZ4BUWR.js"),"components:checkbox":()=>import("./chunks/checkbox-AFUTB4DV.js"),"components:code-block":()=>import("./chunks/code-block-IKYEIWY2.js"),"components:code-editor":()=>import("./chunks/code-editor-KDRLM33B.js"),"components:collapsible":()=>import("./chunks/collapsible-WK7PDWEV.js"),"components:color-picker":()=>import("./chunks/color-picker-VPSOGTDM.js"),"components:combobox":()=>import("./chunks/combobox-GYLAHYVX.js"),"components:contrast-badge":()=>import("./chunks/contrast-badge-QZW62DMF.js"),"components:date-range-picker":()=>import("./chunks/date-range-picker-6Q2JGR43.js"),"components:dialog":()=>import("./chunks/dialog-HDQAIAFZ.js"),"components:dropdown-menu":()=>import("./chunks/dropdown-menu-E7K3YNXS.js"),"components:empty":()=>import("./chunks/empty-JCVCSM3V.js"),"components:font-picker":()=>import("./chunks/font-picker-7FBJCSTQ.js"),"components:frame":()=>import("./chunks/frame-LZ2IUISE.js"),"components:heading":()=>import("./chunks/heading-GX36VR3U.js"),"components:hover-card":()=>import("./chunks/hover-card-ONEUZ7TU.js"),"components:icon":()=>import("./chunks/icon-NZIMARLZ.js"),"components:image":()=>import("./chunks/image-E3BYZ2HA.js"),"components:input-group":()=>import("./chunks/input-group-54JRMLWQ.js"),"components:input":()=>import("./chunks/input-G7S4OLSN.js"),"components:kbd":()=>import("./chunks/kbd-TKMXF542.js"),"components:label-value":()=>import("./chunks/label-value-V7QDIDAP.js"),"components:label":()=>import("./chunks/label-YIVRPKQJ.js"),"components:logo":()=>import("./chunks/logo-DBA4NHQE.js"),"components:number-field":()=>import("./chunks/number-field-FPC3YXDC.js"),"components:pill":()=>import("./chunks/pill-4WVEOBR4.js"),"components:popover":()=>import("./chunks/popover-GQD2U5SP.js"),"components:progress":()=>import("./chunks/progress-TITSWD2A.js"),"components:radio-group":()=>import("./chunks/radio-group-YA3OUIPB.js"),"components:resizable":()=>import("./chunks/resizable-XQKUCHIS.js"),"components:rich-text-editor":()=>import("./chunks/rich-text-editor-IX7RIMLI.js"),"components:rich-text":()=>import("./chunks/rich-text-2RYBPVRF.js"),"components:scroll-row":()=>import("./chunks/scroll-row-MZZQZYLM.js"),"components:select":()=>import("./chunks/select-5U37ZHLQ.js"),"components:separator":()=>import("./chunks/separator-JATMMEKS.js"),"components:sheet":()=>import("./chunks/sheet-KTVNRYAO.js"),"components:side-panel":()=>import("./chunks/side-panel-2UVNFRIF.js"),"components:sidebar":()=>import("./chunks/sidebar-GR4A2LDD.js"),"components:skeleton":()=>import("./chunks/skeleton-XE2TGBGQ.js"),"components:slider":()=>import("./chunks/slider-BGGGQLSH.js"),"components:split-button":()=>import("./chunks/split-button-KLVGWHNN.js"),"components:stepper":()=>import("./chunks/stepper-AY3NGEDC.js"),"components:switch":()=>import("./chunks/switch-A2VSCLHA.js"),"components:tabs":()=>import("./chunks/tabs-2IO6EIED.js"),"components:textarea":()=>import("./chunks/textarea-YQH2OPGH.js"),"components:toggle-group":()=>import("./chunks/toggle-group-3SDBWJ2G.js"),"components:tooltip":()=>import("./chunks/tooltip-4QJ2SWCS.js"),"components:tree":()=>import("./chunks/tree-CFIKTPFC.js")};var Rr={"utilities:react-query":()=>import("./chunks/legacy-4ICQWPOE.js"),"utilities:react-table":()=>import("./chunks/index.esm-SPI7ZXRT.js"),"utilities:react-virtual":()=>import("./chunks/esm-L33CRTOD.js"),"utilities:cn":()=>import("./chunks/dist-T43K2TRF.js"),"utilities:color":()=>import("./chunks/color-UDQWYS2D.js"),"utilities:dnd-kit":async()=>{let[e,a,t]=await Promise.all([import("./chunks/core.esm-WYAV6XZS.js"),import("./chunks/sortable.esm-3VPY5PX7.js"),import("./chunks/utilities.esm-YYZNDLV4.js")]);return{...e,...a,CSS:t.CSS}}};var $s=k(ut(),1);var ie=k(de(),1),na=k(ut(),1);var qe=ie.createContext(null),qr=new Map,Fr=3e4;function ia(e){return bu(qr.get(e.instanceId),ne().params,e.page)+"|"+e.instanceId}var Ye=oe({}),ao=new Map;function it(e){let a=ne(),o={params:{...a.params},recordId:a.recordId};return e.panel&&(o.panel=e.panel),o}function bu(e,a,t){if(!e||e==="*")return t+"|"+JSON.stringify(a);let o={};for(let r of e)o[r]=r==="#page"?t:a[r];return JSON.stringify(o)}var ze=class extends Error{status;code;details;correlationId;constructor(a,t=""){super(a.message||"Server call failed"),this.status=a.status||500,this.code=a.code||"error",this.details=a.details,this.correlationId=t}};function ku(e,a){["admin","x_312987_portal.admin","x_312987_portal.developer","x_312987_portal.designer"].some(Pa)?na.toast.error(`${e}: ${a.message}`,{description:`${a.code}${a.correlationId?" \xB7 Reference "+a.correlationId:""}`}):na.toast.error("Something went wrong",{description:a.correlationId?"Reference "+a.correlationId:void 0})}function to(e){if(Array.isArray(e))for(let a of e){let t=a&&(a.message||a.text);t&&(a.type==="error"?na.toast.error(t):a.type==="warning"?na.toast.warning(t):na.toast.info(t))}}function ft(e){let a={};for(let t of e)a[t.instanceId]={id:t.instanceId,uid:t.uniqueId,options:t.options||{}};return a}var oo=[],ro=!1,nt=new Set;function Br(e){let a=ia(e);nt.has(a)||(nt.add(a),oo.push({info:e,resolve:()=>{}}),!ro&&(ro=!0,queueMicrotask(()=>setTimeout(vu,0))))}async function vu(){ro=!1;let e=oo;if(oo=[],!e.length)return;let a=new Map;for(let t of e){let o=t.info.page+(t.info.panel?"|panel:"+t.info.panel.key:"");a.set(o,(a.get(o)||[]).concat([t.info]))}for(let[t,o]of a){let r=o[0].page,s=new Map(o.map(f=>[f.instanceId,ia(f)]));Ye.set(f=>{let u={...f};for(let n of o){let c=s.get(n.instanceId),d=u[n.instanceId]&&u[n.instanceId][c];d&&d.status==="ready"||(u[n.instanceId]={...u[n.instanceId]||{},[c]:{status:"pending",key:c,at:Date.now()}})}return u});let l=null;try{l=await(await fetch("/__rpf/server/initialize",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:r,instances:o.map(u=>u.embed?{id:u.instanceId,placement:u.embed.root,path:u.embed.path,keys:u.embed.keys,options:u.embed.options,token:u.embed.token}:u.instanceId),context:it(o[0]),meta:ft(o)})})).json()}catch{l=null}Ye.set(f=>{let u={...f};for(let n of o){let c=s.get(n.instanceId),d=l&&l.instances?l.instances[n.instanceId]:null;d&&d.ok&&d.deps&&qr.set(n.instanceId,d.deps);let m=d&&d.ok&&d.deps?ia(n):c,L=d&&d.ok?{status:"ready",data:d.data||{},options:d.options,error:null,deps:d.deps,key:m,at:Date.now(),staleTime:d.cache&&typeof d.cache.staleTime=="number"?d.cache.staleTime:Fr}:{status:"error",error:new ze(d&&d.error||{status:502,code:"rpf_dev",message:"initialize failed"}),key:c,at:Date.now()};d&&to(d.messages),nt.delete(c);let i={...u[n.instanceId]||{}};m!==c&&i[c]&&i[c].status==="pending"&&delete i[c],i[m]=L,u[n.instanceId]=i}return u})}}function dt(e){let a={};for(let[t,o]of Object.entries(e||{}))a[t]=typeof o=="function"?o():o;return a}function so(e={}){let a=ie.useContext(qe),t=a?a.instanceId:"";w(re,C=>a&&a.serverMode==="on-load"?C:null);let o=ne(),r=a?ia(a):"",s=w(Ye,C=>t?C[t]:void 0),[l,f]=ie.useState({key:""}),u=ie.useRef(e.pinned||{});u.current=e.pinned||{};let n=ie.useRef({}),c=ie.useRef({}),d=e.toastErrors!==!1,m=ie.useRef(a);m.current=a;let L=!!a&&a.serverMode==="on-load",i=s?s[r]:void 0;ie.useEffect(()=>{!L||!a||(i?i.status==="ready"&&Date.now()-i.at>(i.staleTime??Fr)&&Br(a):Br(a))},[L,r,!!i]);let p=ie.useCallback(async(C,E,Y)=>{let h=m.current;if(!h)throw new ze({status:400,code:"no_server",message:"No server outside a placement"});if(h.offPage&&h.offPage())throw new ze({status:409,code:"off_page",message:"The widget left the page"});let N={...dt(u.current),...dt(n.current),...c.current,...E||{}};c.current={};let le=ia(h),fe=h.embed?h.embed.root:h.instanceId,me=await fetch(`/__rpf/server/execute/${encodeURIComponent(fe)}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:h.page,action:C,input:N,context:it(h),embed:h.embed?{path:h.embed.path,keys:h.embed.keys,options:h.embed.options,token:h.embed.token}:void 0,meta:ft([h])[h.instanceId]})}),A=await me.json().catch(()=>null),M=A&&A.result!==void 0?A.result:A;if(!me.ok||!M||M.error){let j=new ze(M&&M.error||{status:me.status,code:"http_"+me.status,message:"Server call failed"},M&&M.meta&&M.meta.correlationId||"");throw M&&M.meta&&to(M.meta.messages),C!=="get"&&f({key:le,error:j,data:void 0}),(Y&&Y.toast!==void 0?Y.toast:d)&&ku(h.name,j),j}M.meta&&to(M.meta.messages);let $=M.data||{};return C!=="get"&&f({key:le,data:$,error:null}),$},[d]),S=ie.useMemo(()=>({get:(C,E)=>p("get",C,E),update:(C,E)=>p("update",C,E),refresh:C=>p("initialize",void 0,C),setInputs(C){c.current=typeof C=="function"?C(c.current):{...c.current,...C}},setInput(C,E){c.current={...c.current,[C]:E}},pinInputs(C){n.current={...n.current,...C}},unpinInputs(C){if(C===void 0)n.current={};else for(let E of Array.isArray(C)?C:[C])delete n.current[E]},get inputs(){return{pinned:{...dt(u.current),...dt(n.current)},staged:{...c.current}}}}),[p]),x=l.key===r?l:null,v=x&&x.data!==void 0?x.data:i&&i.status==="ready"?i.data:void 0,P=L&&(!i||i.status==="pending")&&!(x&&x.data),D=x&&x.error||i&&i.status==="error"&&i.error||null,B,V=ao.get(t);v!==void 0?ao.set(t,{key:r,data:v}):P&&V&&V.key!==r&&(B=V.data);let U=i&&i.options||(a?a.options:{});return{instanceId:t,options:U,data:v,pending:P,previousData:B,isPreviousData:B!==void 0,error:D,server:S}}var Er=so;function Or(e,a,t){let o=ia(e),r=Ye.get()[e.instanceId];r&&r[o]&&r[o].status==="ready"&&r[o].data===a||Ye.set(s=>({...s,[e.instanceId]:{...s[e.instanceId]||{},[o]:{status:"ready",data:a,options:t,error:null,key:o,at:Date.now(),staleTime:1/0}}}))}function ct(){nt.clear(),Ye.set({}),ao.clear()}function Hr(){return Object.entries(Ye.get()).map(([e,a])=>{let t=Object.values(a);return{id:e,entries:t.length,ready:t.filter(o=>o.status==="ready").length,pending:t.filter(o=>o.status==="pending").length,error:t.filter(o=>o.status==="error").length}})}var Ce=k(de(),1);var uo=k(ee(),1),Nr="rpf-dev-history",J=oe(Pu());function Pu(){try{let e=JSON.parse(sessionStorage.getItem(Nr)||"null");if(e&&Array.isArray(e.entries))return e}catch{}return{entries:[],cursor:-1,epoch:Math.random().toString(36).slice(2)}}J.subscribe(()=>{try{sessionStorage.setItem(Nr,JSON.stringify(J.get()))}catch{}});function ea(e,a=""){let t=typeof history.state?.position=="number"?history.state.position:0;history.state?.position===void 0&&history.replaceState({...history.state||{},position:0},"");let o=ne();J.set(r=>{let s=r.entries.slice(0,e==="push"?t:Math.max(r.entries.length,t+1)),l=s[t],f={pos:t,key:l&&e==="pop"?l.key:Math.random().toString(36).slice(2),url:location.pathname+location.search,page:o.page,title:a||(l&&e!=="push"?l.title:""),at:Date.now(),state:l&&e!=="push"?l.state:{},scroll:l&&e!=="push"?l.scroll:{},flags:l&&e!=="push"?l.flags:{},table:o.table,sysId:o.sysId};return s[t]=f,{entries:s,cursor:t,epoch:r.epoch}})}var lo=new Set;async function pt(){for(let e of Array.from(lo))if(e.when&&!await e.confirm())return!1;return!0}function zr(e,a){let t=Ce.useRef({when:e,confirm:a});t.current.when=e,t.current.confirm=a,Ce.useEffect(()=>{let o={get when(){return t.current.when},confirm:()=>t.current.confirm()};return lo.add(o),()=>{lo.delete(o)}},[]),Ce.useEffect(()=>{if(!e)return;let o=r=>{r.preventDefault()};return window.addEventListener("beforeunload",o),()=>window.removeEventListener("beforeunload",o)},[e])}function Gr(e,a){if(e&&typeof e=="object"){let t=e;return{...t,...a||{},to:t.to!==void 0?t.to:t.page}}return{...a||{},to:e==null?void 0:String(e)}}var Ur=e=>je(e);function Vr(e){let a=re.get(),t=T();if(e.to===void 0&&!e.portalSlug){let f={...a};return e.panel!==void 0&&(f.panel=e.panel===null?"":e.panel===!1?"none":e.panel,f.panelArgs=e.panel?Ur(e.panelArgs):""),e.tab!==void 0&&(f.tab=e.tab||""),e.tabs!==void 0&&(f.tabs=Array.isArray(e.tabs)?e.tabs.join(","):e.tabs||""),e.tabArgs!==void 0&&(f.tabArgs=je(e.tabArgs)),f}let o=e.portalSlug||a.portalSlug||t.portal.slug,r=String(e.to||"").replace(/^\/+|\/+$/g,""),s={portalSlug:o,pageId:r,recordId:e.recordId||"",table:e.table||"",sysId:e.sysId||"",view:e.view||"",query:e.query||"",q:je(e.q),panel:"",panelArgs:"",tab:"",tabs:"",tabArgs:""};if(e.panel!==void 0)s.panel=e.panel===null?"":e.panel===!1?"none":e.panel,s.panelArgs=e.panel?Ur(e.panelArgs):"";else if(a.panel&&a.panel!=="none"&&o===a.portalSlug){let f=at(r,ne()),u=f?f.page.route:"";Te(u).some(n=>n.key===a.panel)&&(s.panel=a.panel,s.panelArgs=a.panelArgs)}let l=r===a.pageId&&s.table===a.table&&s.sysId===a.sysId;return s.tab=e.tab!==void 0?e.tab||"":l?a.tab:"",s.tabs=e.tabs!==void 0?Array.isArray(e.tabs)?e.tabs.join(","):e.tabs||"":l?a.tabs:"",s.tabArgs=e.tabArgs!==void 0?je(e.tabArgs):l?a.tabArgs:"",s}function Ru(e,a){return Ke(Vr(Gr(e,a)))}async function ve(e,a){let t=Gr(e,a);if(!t.skipGuard&&!await pt())return!1;let o=Vr(t),r=Ke(o),s=typeof history.state?.position=="number"?history.state.position:0;return t.replace?history.replaceState({position:s},"",r):history.pushState({position:s+1},"",r),Ze(),ea(t.replace?"replace":"push",t.title||""),!0}function no(){let e=J.get(),a=e.entries[e.cursor];for(let t=e.cursor-1;t>=0;t--){let o=e.entries[t];if(!(!o||o.flags&&o.flags.gone)&&!(a&&o.page===a.page&&o.table===a.table&&o.sysId===a.sysId))return t}return-1}async function fa(e){if(!await pt())return!1;let a=no(),t=J.get().cursor;return a>=0&&t>a?(history.go(a-t),!0):ve("",{skipGuard:!0})}function Wr(){return ve}function _r(){let e=w(J,a=>a);return Ce.useMemo(()=>{let a=T();return{entries:e.entries.map(o=>{let r=o.page===""?a.portal.homeRoute:o.page,s=null;for(let l of a.pages){let f=et(l.route,r);f&&(!s||f.score>s.score)&&(s={title:l.title,score:f.score})}return{pos:o.pos,key:o.key,identity:o.url,portalSlug:a.portal.slug,page:o.page,params:{table:o.table,sysId:o.sysId,recordId:"",view:"",query:"",q:""},title:o.title,hintTitle:"",kind:o.sysId?"record":"page",flags:o.flags,scroll:o.scroll,state:o.state,at:o.at,epoch:e.epoch,label:o.title||(s?s.title:"")}}),cursor:e.cursor,epoch:e.epoch}},[e])}var Au=["to","page","recordId","q","table","sysId","view","query","portalSlug","replace","title","panel","panelArgs","tab","tabs","tabArgs","skipGuard"],Xr=Ce.forwardRef(function(a,t){let o={},r={};for(let[L,i]of Object.entries(a))(Au.includes(L)?o:r)[L]=i;let{render:s,children:l,onClick:f,...u}=r;w(re,L=>L);let n=o.to!==void 0?o.to:o.page,c=Ru(n===void 0?{...o,to:void 0}:n,o),m={...u,ref:t,href:c,onClick:L=>{f&&f(L),!L.defaultPrevented&&(L.button!==0||L.metaKey||L.ctrlKey||L.shiftKey||L.altKey||u.target!=="_blank"&&(L.preventDefault(),ve(n===void 0?{...o,to:void 0}:n,o)))},"data-portal-page":n||""};if(s&&Ce.isValidElement(s)){let L=s.props||{};return Ce.cloneElement(s,{...m,className:[L.className,u.className].filter(Boolean).join(" ")||void 0,nativeButton:!1,render:(0,uo.jsx)("a",{}),children:l!==void 0?l:L.children})}return(0,uo.jsx)("a",{...m,children:l})});var _=k(de(),1),Jr=k(da(),1);var Du={padding:["padding"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],margin:["margin"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],background:["background"],color:["color"],border:["border"],borderColor:["border-color"],radius:["border-radius"],shadow:["box-shadow"],minHeight:["min-height"],maxWidth:["max-width"],width:["width"],gap:["gap"],opacity:["opacity"],textAlign:["text-align"],overflow:["overflow"]},Mu=new Set(["background","foreground","card","card-foreground","popover","primary","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","accent","accent-foreground","destructive","border","input","ring","success","warning","info","chart-1","chart-2","chart-3","chart-4","chart-5","sidebar"]);function Ta(e){if(e==null||e==="")return null;let a=String(e).trim();return!a||/[{};<>]|\/\*|\*\/|\\/.test(a)||a.length>300?null:a}function $r(e,a,t,o){let r=[];for(let[u,n]of Object.entries(Du)){let c=Ta(e[u]);if(c!==null){(u==="background"||u==="color"||u==="borderColor")&&Mu.has(c)&&(c=`var(--${c})`);for(let d of n)r.push(`${d}: ${c}`)}}let s=a.colSpan;if(s==="full")r.push("grid-column: 1 / -1");else if(typeof s=="number"||/^\d+$/.test(String(s||""))){let u=Math.max(1,Math.min(48,parseInt(String(s),10)));r.push(a.colStart?`grid-column: ${parseInt(String(a.colStart),10)} / span ${u}`:`grid-column: span ${u} / span ${u}`)}else a.colStart&&r.push(`grid-column-start: ${parseInt(String(a.colStart),10)}`);if(a.rowSpan){let u=Math.max(1,Math.min(48,parseInt(String(a.rowSpan),10)));r.push(a.rowStart?`grid-row: ${parseInt(String(a.rowStart),10)} / span ${u}`:`grid-row: span ${u} / span ${u}`)}else a.rowStart&&r.push(`grid-row-start: ${parseInt(String(a.rowStart),10)}`);a.order!==void 0&&/^-?\d+$/.test(String(a.order))&&r.push(`order: ${a.order}`);let l=Ta(a.alignSelf);l&&r.push(`align-self: ${l}`);let f=Ta(a.justifySelf);f&&r.push(`justify-self: ${f}`);for(let[u,n]of Object.entries(o)){let c=t[u],d=Array.isArray(c)?Ta(c.map(m=>m&&typeof m=="object"?m.size:m).join(" ")):Ta(c);d!==null&&r.push(`${n}: ${d}`)}return r}var io=(e,a)=>e&&typeof e[a]=="object"&&e[a]?e[a]:{};function jr(e,a){let t=T().components[e.component],o=t&&t.cssVars||{},r=`[data-rp-placement="${e.id.replace(/"/g,"")}"][data-rp-placement]`,s=[],l=$r(e.style||{},e.layout||{},a||{},o);l.length&&s.push(`${r} { ${l.join("; ")} }`);for(let[f,u]of[["tablet",1023],["mobile",639]]){let n=$r(io(e.style,f),io(e.layout,f),io(a,f),o);n.length&&s.push(`@container rp-page (max-width: ${u}px) { ${r} { ${n.join("; ")} } }`)}return s.join(`
2
+ `)}var Ba=new Map,ca=null,qa=!1;function Kr(){if(qa=!1,!F.shadow)return;ca||(ca=document.createElement("style"),ca.setAttribute("data-rp-instances",""),F.shadow.appendChild(ca));let e=Array.from(Ba.values()).map(a=>a.css).filter(Boolean).join(`
3
+ `);ca.textContent!==e&&(ca.textContent=e)}function Zr(e,a){let t=Ba.get(e);return t?(t.count++,t.css=a):Ba.set(e,{css:a,count:1}),qa||(qa=!0,queueMicrotask(Kr)),()=>{let o=Ba.get(e);o&&(o.count--,o.count<=0&&Ba.delete(e),qa||(qa=!0,queueMicrotask(Kr)))}}var G=k(ee(),1),Q=oe({resolved:null,path:"",regions:{}}),mt=_.createContext({layout:null,options:{},mainRegion:"main",regions:[]}),Lt=_.createContext(null),Tu=_.createContext(null),fo=oe({});function Ea(e){let a=w(ke,l=>l),t=e?kr(e,a):void 0,[o,r]=_.useState({key:""}),s=`${a}|${e}`;return _.useEffect(()=>{if(!e||t)return;let l=!0;return Da(e,a).then(f=>l&&r({key:s,ns:f}),f=>l&&r({key:s,error:f})),()=>{l=!1}},[s,!!t]),e?t?{status:"ready",ns:t}:o.key===s&&o.error?{status:"error",error:o.error}:o.key===s&&o.ns?{status:"ready",ns:o.ns}:{status:"loading"}:{status:"error",error:new Error("No component")}}var Fe=class extends _.Component{state={error:null};static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a){console.error(`[rpf dev] ${this.props.label}:`,a)}render(){return this.state.error&&this.props.fallback?this.props.fallback(this.state.error,()=>this.setState({error:null})):this.state.error?(0,G.jsxs)("div",{role:"alert","data-rp-error":this.props.label,className:"m-2 rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive",children:[(0,G.jsx)("strong",{children:this.props.label}),": ",String(this.state.error.message||this.state.error)]}):this.props.children}};function Bu(e){let a=T().components[e.component];return{...a&&a.defaults||{},...e.options||{}}}var qu=_.memo(function({p:a,page:t,panel:o}){let r=T().components[a.component],s=Ea(a.component),l=_.useMemo(()=>Bu(a),[a]),f=_.useMemo(()=>jr(a,l),[a,l]);_.useLayoutEffect(()=>f?Zr(a.id,f):void 0,[a.id,f]);let u=_.useMemo(()=>({instanceId:a.id,uniqueId:a.component,name:r&&r.name||a.component,serverMode:r&&r.serverMode||"none",options:l,page:t,panel:o}),[a,l,t,o,r]);if(!Ne(a.roles))return null;if(s.status==="loading")return(0,G.jsx)("div",{"data-rp-placement":a.id,"data-rp-loading":a.component,className:"min-h-4"});if(s.status==="error")return(0,G.jsxs)("div",{role:"alert","data-rp-error":a.component,className:"m-2 rounded-md border border-destructive/40 p-3 text-sm text-destructive",children:[(0,G.jsx)("strong",{children:a.component}),": ",String(s.error&&s.error.message)]});let n=s.ns&&s.ns.default;if(typeof n!="function"&&typeof n!="object")return(0,G.jsxs)("div",{role:"alert","data-rp-error":a.component,className:"m-2 text-sm text-destructive",children:[a.component," has no default export"]});let c=r?r.kind:"widget",d={"data-rp-placement":a.id,"data-rp-widget":a.component,className:a.classes||void 0};if(c==="block"){let m={placementId:a.id,options:l,regions:r&&r.regions||[],rootProps:d,children:a.children||{}};return(0,G.jsx)(qe.Provider,{value:u,children:(0,G.jsx)(Lt.Provider,{value:m,children:(0,G.jsx)(Fe,{label:a.component,children:(0,G.jsx)(n,{})})})})}return(0,G.jsx)(qe.Provider,{value:u,children:(0,G.jsx)("div",{...d,className:a.classes||void 0,children:(0,G.jsx)(Fe,{label:a.component,children:(0,G.jsx)(n,{instanceId:a.id,options:l,region:a.region})})})})});function Fa({list:e,page:a,panel:t}){return!e||!e.length?null:(0,G.jsx)(Lt.Provider,{value:null,children:e.map(o=>(0,G.jsx)(qu,{p:o,page:a,panel:t},o.id+"|"+o.unit))})}var gt=_.memo(function({name:a,className:t,contents:o,as:r}){let s=_.useContext(Lt),l=_.useContext(Tu),f=w(Q,d=>d),u=r||"div";if(s){let d=(0,G.jsx)(Fa,{list:s.children[a],page:f.path});return o?d:(0,G.jsx)(u,{className:t,"data-rp-region":a,children:d})}if(l)return(0,G.jsx)(u,{className:t,"data-rp-region":a,children:(0,G.jsx)(Fa,{list:l[a],page:f.path})});let n=T().regions[a],c=f.regions[a];return(0,G.jsxs)(u,{className:t,"data-rp-region":a,children:[(0,G.jsx)(Fa,{list:n,page:f.path}),(0,G.jsx)(Fa,{list:c,page:f.path}),(0,G.jsx)("div",{"data-rp-outlet":a,ref:d=>{fo.get()[a]!==d&&fo.set(m=>({...m,[a]:d}))}})]})});function Qr({region:e,children:a}){let t=w(fo,s=>s[e]||null),o=_.useContext(mt),r=o.regions.find(s=>s.name===e);return _.useEffect(()=>{o.layout&&(!r||r.acceptsContributions===!1)&&console.warn(`[rpf dev] RegionPortal: region "${e}" doesn't accept contributions`)},[e,!!r]),!t||r&&r.acceptsContributions===!1?null:(0,Jr.createPortal)(a,t)}function Yr(e){return(0,G.jsx)(Fa,{...e})}function es(){let e=_.useContext(Lt);return e?{placementId:e.placementId,options:e.options,regions:e.regions,rootProps:e.rootProps}:{placementId:"",options:{},regions:[],rootProps:{}}}function as(){let e=_.useContext(mt);return{layout:e.layout?{id:"",uniqueId:e.layout.uniqueId,name:e.layout.name,kind:"layout",serverMode:"none",build:null,regions:e.regions,defaultOptions:e.layout.defaults}:null,options:e.options,mainRegion:e.mainRegion,regions:e.regions}}var K=k(de(),1);function mo(){let e=w(re,t=>JSON.stringify({...t,panel:"",panelArgs:""})),a=K.useRef(null);return(!a.current||a.current.sig!==e)&&(a.current={sig:e,loc:ne()}),a.current.loc}function os(){let[,e]=K.useReducer(o=>o+1,0),a=K.useRef(!1);K.useEffect(()=>{let o=Q.subscribe(()=>a.current&&e()),r=re.subscribe(()=>a.current&&e());return()=>{o(),r()}},[]);let t=T();return K.useMemo(()=>{let o={portal:{id:t.portal.id,slug:t.portal.slug,name:t.portal.name,homeRoute:t.portal.homeRoute,settings:t.portal.settings,navigation:null},pages:t.pages.filter(r=>Ne(r.roles)).map(r=>({id:r.id,route:r.route,title:r.title})),theme:t.theme?{id:"",key:t.theme.key,name:t.theme.name,tokens:t.theme.tokens,tokensDark:t.theme.tokensDark,css:[],cssText:t.theme.css}:null,release:null,navigate:ve,runtime:{onloadV2:t.runtime.onloadV2}};return Object.defineProperty(o,"page",{enumerable:!0,get(){a.current=!0;let r=Q.get();if(!r.resolved)return null;let{page:s,variant:l,params:f}=r.resolved;return{id:s.id,route:s.route,title:l?l.title:s.title,params:f,contentWidth:Ou(l?l.contentWidth:s.contentWidth),variant:l?{id:l.id,key:l.key,name:l.name}:null}}}),Object.defineProperty(o,"path",{enumerable:!0,get(){return a.current=!0,ne().page}}),Object.defineProperty(o,"location",{enumerable:!0,get(){return a.current=!0,ne()}}),o},[t])}function rs(){let e=T().user;return K.useMemo(()=>({...e,signedIn:!!e.sysId,hasRole:a=>Pa(a),hasAnyRole:a=>(a||[]).some(t=>Pa(t))}),[e])}function ss(e,a){if(!Ne(e.roles))return null;let t=T(),o={id:e.id,type:e.type,label:e.label,icon:e.icon,badge:e.badge,tooltip:e.tooltip,active:!1,children:[],attrs:{"data-rp-nav-item":e.id}};if(e.type==="page"||e.type==="route"){let r=e.type==="page"?String(e.page||""):String(e.route||"");if(e.type==="page"){let s=t.pages.find(l=>l.route===r);if(!s||!Ne(s.roles))return null}return o.to=r===t.portal.homeRoute?"":r,o.q=e.query,o.portalSlug=e.portal,e.record&&(o.table=e.record.table,o.sysId=e.record.sys_id,o.view=e.record.view,o.query=e.record.query),o.match=e.match,o.target=e.target,o.link={to:o.to,q:o.q,portalSlug:o.portalSlug,table:o.table,sysId:o.sysId,view:o.view,query:o.query,...o.attrs},o}return e.type==="url"?(o.href=e.url,o.target=e.target||"_blank",o):e.type==="panel"?Te(a).some(r=>r.key===e.panel)?(o.panel=e.panel,o.link={panel:e.panel,...o.attrs},o):null:e.type==="separator"?o:(o.open=!e.collapsed,o.children=e.children.map(r=>ss(r,a)).filter(Boolean),o.children.some(r=>r.type!=="separator")?o:null)}function Fu(e,a){let t=a.page,o=null,r=(l,f)=>{for(let u of l){if(u.type==="group"&&r(u.children,f.concat([u])),u.type==="panel"){a.panel===u.panel&&(o={item:u,score:1e6,chain:f});continue}if(u.type!=="page"&&u.type!=="route"||u.portalSlug&&u.portalSlug!==a.portalSlug)continue;let n=u.to||"",c=t===n,d=n!==""&&t.startsWith(n+"/");if(!c&&!(d&&u.match!=="exact")||[u.table&&u.table!==a.table,u.sysId&&u.sysId!==a.sysId,u.view&&u.view!==a.view,u.query&&u.query!==a.query].some(Boolean))continue;let L=[u.table,u.sysId,u.view,u.query].filter(Boolean).length,i=Object.entries(u.q||{}).filter(([S,x])=>a.qParams[S]===x).length,p=(c?1e3:n.length)*100+L*10+i;(!o||p>o.score)&&(o={item:u,score:p,chain:f})}};r(e,[]);let s=o;if(s){s.item.active=!0,s.item.type==="panel"&&(s.item.link={panel:null,...s.item.attrs});for(let l of s.chain)l.active=!0,l.open=!0}return e}function ls(e="primary"){let a=mo(),t=w(re,r=>r.panel),o=w(Q,r=>r.resolved?r.resolved.page.route:"");return K.useMemo(()=>{let r=T(),s=r.menus[e],l=[],f="none";s?(l=s.items.map(m=>ss(m,o)).filter(Boolean),f="menu"):e==="primary"&&(l=r.pages.filter(m=>Ne(m.roles)&&!m.route.includes(":")&&!m.route.includes("*")).map(m=>({id:"page:"+m.route,type:"page",label:m.title,to:m.route===r.portal.homeRoute?"":m.route,active:!1,children:[],attrs:{"data-rp-nav-item":"page:"+m.route},link:{to:m.route===r.portal.homeRoute?"":m.route}})),f="pages");let u=0,n=m=>m.forEach(L=>{L.type!=="group"&&L.type!=="separator"&&(L.tint||(L.tint=`chart-${u%5+1}`),u++),n(L.children)});n(l),Fu(l,{...a,panel:t});let c=[],d=(m,L)=>{for(let i of m){if(i.active&&i.type!=="group")return c.push(...L,i),!0;if(i.children.length&&d(i.children,L.concat([i])))return!0}return!1};return d(l,[]),{items:l,activePath:c,active:c.length?c[c.length-1]:null,menu:s?{key:s.key,name:s.name}:null,path:a.page,source:f}},[e,a,t,o])}var pa=oe([]),Eu=0;function us(){let e=T(),t=(e.portal.settings||{}).title||{},o=String(t.name||e.portal.name),r=t.suffix===!1?"":"ServiceNow",s=Q.get(),l=ne(),f=J.get(),u=f.entries[f.cursor],n="",c="none";!s.resolved&&s.path!==""&&e.pages.length?(n="Page not found",c="page"):l.isHome?c="home":u&&u.title?(n=u.title,c="entry"):typeof l.qParams.title=="string"&&l.qParams.title?(n=l.qParams.title,c="q"):s.resolved&&(n=s.resolved.variant?s.resolved.variant.title:s.resolved.page.title,c="page");let d="",m="";for(let p of pa.get())p.title!==void 0&&p.title!==null&&(n=p.title,d="",c="widget"),p.detail!==void 0&&p.detail!==null&&(d=p.detail),p.prefix!==void 0&&p.prefix!==null&&(m=p.prefix);let L=n&&d?`${n} \xB7 ${d}`:n||d,i=m+[L,o,r].filter(Boolean).join(" | ");return{title:n,detail:d,prefix:m,portal:o,suffix:r,source:c,text:i,writing:e.runtime.documentTitle}}function Oa(){if(!T().runtime.documentTitle)return;let e=us().text;document.title!==e&&(document.title=e)}pa.subscribe(Oa);J.subscribe(Oa);Q.subscribe(Oa);function ds(e={}){let a=K.useRef(0);a.current||(a.current=++Eu),K.useEffect(()=>{let t={id:a.current,title:e.title,detail:e.detail,prefix:e.prefix},o=pa.get().find(r=>r.id===t.id);o&&o.title===t.title&&o.detail===t.detail&&o.prefix===t.prefix||pa.set(r=>r.filter(s=>s.id!==t.id).concat([t]))},[e.title,e.detail,e.prefix]),K.useEffect(()=>()=>pa.set(t=>t.filter(o=>o.id!==a.current)),[])}function ns(){let e=w(pa,a=>a);return w(Q,a=>a),w(J,a=>a),K.useMemo(()=>us(),[e,Q.get(),J.get()])}function is(e){K.useEffect(()=>{J.set(a=>{let t=a.entries[a.cursor];if(!t||t.title===(e||""))return a;let o=a.entries.slice();return o[a.cursor]={...t,title:e||""},{...a,entries:o}})},[e])}function fs(e,a){let t=w(J,r=>{let s=r.entries[r.cursor];return s&&e in s.state?s.state[e]:a}),o=K.useCallback(r=>J.set(s=>{let l=s.entries[s.cursor];if(!l)return s;let f=e in l.state?l.state[e]:a,u=typeof r=="function"?r(f):r,n=s.entries.slice();return n[s.cursor]={...l,state:{...l.state,[e]:u}},{...s,entries:n}}),[e]);return[t,o]}function Ou(e){let a=String(e||"inherit");if(a!=="inherit")return a;let t=String((T().portal.settings||{}).contentWidth||"");return t&&t!=="inherit"?t:"7xl"}function Hu(e){if(e.title)return e.title;let a=T(),t=e.page===""?a.portal.homeRoute:e.page,o=null;for(let r of a.pages){let s=et(r.route,t);s&&(!o||s.score>o.score)&&(o={title:r.title,score:s.score})}return o?o.title:""}function cs(e={}){let a=w(J,r=>r),t=no(),o=t>=0?a.entries[t]:null;if(o){let r=Hu(o);return{available:!0,label:r?`Back to ${r}`:"Back",title:r,source:"history",go:()=>fa(e)}}return e.fallbackHome===!1||ne().isHome?{available:!1,label:"",title:"",source:"none",go:async()=>!1}:{available:!0,label:"Back to Home",title:"Home",source:"home",go:()=>ve("")}}function ps(e,a){J.set(t=>({...t,entries:t.entries.map(o=>o.table===e.table&&o.sysId===e.sysId?{...o,flags:{...o.flags,...a}}:o)}))}function xt(e,a="main"){let t=w(J,o=>o.cursor);K.useEffect(()=>{let o=Uu(e);if(!o)return;let r=J.get().entries[t]?.key,s=(J.get().entries[t]?.scroll||{})[a],l=!1,f=()=>{l=!0};o.addEventListener("wheel",f,{passive:!0}),o.addEventListener("touchstart",f,{passive:!0}),o.addEventListener("keydown",f);let u=Date.now(),n=0,c=()=>{l||typeof s!="number"||(o.scrollTop=s,Math.abs(o.scrollTop-s)>1&&Date.now()-u<1500&&(n=setTimeout(c,100)))};c();let d=0,m=()=>{cancelAnimationFrame(d),d=requestAnimationFrame(()=>J.set(L=>{let i=L.entries.findIndex(x=>x.key===r);if(i<0)return L;let p=L.entries[i];if((p.scroll||{})[a]===o.scrollTop)return L;let S=L.entries.slice();return S[i]={...p,scroll:{...p.scroll||{},[a]:o.scrollTop}},{...L,entries:S}}))};return o.addEventListener("scroll",m,{passive:!0}),()=>{clearTimeout(n),cancelAnimationFrame(d),o.removeEventListener("scroll",m),o.removeEventListener("wheel",f),o.removeEventListener("touchstart",f),o.removeEventListener("keydown",f)}},[t,e,a])}function Uu(e){if(e!=="main")return e&&e.current;let a=F.shadow,t=a?a.querySelector('[data-rp-region="main"]'):null;for(;t;){let o=getComputedStyle(t);if(/(auto|scroll)/.test(o.overflowY)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return a&&a.querySelector('[data-rp-region="main"]')?.parentElement||null}var co=oe({});function ht(e,a){let t=co.get();(a===null?!(e in t):t[e]===a)||co.set(o=>{let r={...o};return a===null?delete r[e]:r[e]=a,r})}function ts(e,a,t){let o=re.get(),r=t&&t.replace!==void 0?t.replace:!!(o.panel&&o.panel!=="none");return ve({panel:e,panelArgs:a},{replace:r})}async function po(){let e=re.get();if(!e.panel||e.panel==="none")return!1;let a=J.get(),t=a.cursor>0?a.entries[a.cursor-1]:null,o=Ke({...e,panel:"",panelArgs:""});return t&&t.url.split("?")[0]===o&&await pt()?(history.back(),!0):ve({panel:null},{replace:!0})}function It(){let e=w(re,r=>r),a=w(Q,r=>r.resolved?r.resolved.page.route:""),t=w(co,r=>r),o=!1;return K.useMemo(()=>{let r=Te(a),s=r.find(n=>n.key===e.panel)||null,l=ne(),f=Q.get(),u=f.resolved?f.resolved.variant?f.resolved.variant.defaultPanel:f.resolved.page.defaultPanel:null;return{open:!!s,key:s?s.key:"",args:s?l.panelArgs:{},panel:s?{key:s.key,title:s.title,icon:s.icon,body:s.body}:null,title:s?t[s.key]||s.title:"",record:l.table&&l.sysId?{table:l.table,sysId:l.sysId}:null,panels:r.map(n=>({key:n.key,title:n.title,icon:n.icon,body:n.body})),isMobile:o,available:!0,savedWidth:null,defaultKey:u&&r.some(n=>n.key===u.key)?u.key:"",isDefault:!!(s&&u&&u.key===s.key),openPanel:ts,close:po,toggle:(n,c)=>e.panel===n?po():ts(n,c),setArgs:n=>ve({panel:e.panel,panelArgs:n},{replace:!0})}},[e,a,t])}var Lo=K.createContext(null);function Ct(){let e=K.useContext(Lo),a=w(re,t=>e?t.panelArgs:"");return e?{inPanel:!0,key:e.key,args:ne().panelArgs,panel:e.panel,close:po,setArgs:t=>ve({panel:e.key,panelArgs:t},{replace:!0}),setTitle:t=>ht(e.key,t),_raw:a}:{inPanel:!1}}function ms(){ea("replace")}var We=k(de(),1);var Ha=k(ut(),1);var Ee=k(de(),1);var aa=oe({connection:"unavailable",resumedAt:null}),Ge=new Map,Re="",Nu=0,St=!1,Ls=!1;async function ma(e,a){let t=await fetch("/amb",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"},body:JSON.stringify(e.map(r=>({id:String(++Nu),...r}))),signal:a});if(!t.ok)throw new Error(`AMB HTTP ${t.status}`);let o=await t.json();return Array.isArray(o)?o:[]}function go(e){for(let a of e)if(!(!a||typeof a.channel!="string")){if(a.channel.startsWith("/meta/")){a.channel==="/meta/subscribe"&&a.subscription&&zu(a);continue}if(a.channel.startsWith("/sn/meta/channel_redirect/")){let t=a.data||{},o=Array.from(Ge.values()).find(r=>r.channel===t.fromChannel||r.actual===t.fromChannel);o&&t.toChannel&&(o.actual=t.toChannel,ma([{channel:"/meta/unsubscribe",subscription:t.fromChannel,clientId:Re},{channel:"/meta/subscribe",subscription:t.toChannel,clientId:Re}]).then(go,()=>{}));continue}for(let t of Ge.values())if(t.actual===a.channel||t.channel===a.channel)for(let o of t.listeners)o(a)}}function zu(e){let a=Array.from(Ge.values()).find(t=>t.actual===e.subscription||t.channel===e.subscription);if(a&&a.actual===e.subscription){if(e.successful)a.status="subscribed";else if(/^403/.test(String(e.error||"")))a.status="denied";else if(a.status="error",a.error=e.error,a.retries<3){let t=[2e3,8e3,32e3][a.retries++];setTimeout(()=>a.listeners.size&&xo(a),t)}for(let t of a.statusListeners)t()}}function xo(e){Re&&(e.status="subscribing",ma([{channel:"/meta/subscribe",subscription:e.actual,clientId:Re}]).then(go,a=>{e.status="error",e.error=a}))}async function Gu(){if(St)return;St=!0;let e=1e3;for(;St;)try{aa.set(r=>({...r,connection:"connecting"}));let t=(await ma([{channel:"/meta/handshake",version:"1.0",minimumVersion:"1.0",supportedConnectionTypes:["long-polling"],advice:{timeout:6e4,interval:0},ext:{supportsSubscribeCommandFlow:!0}}])).find(r=>r.channel==="/meta/handshake");if(!t||!t.successful||!t.clientId)throw new Error("AMB handshake refused");let o=!!Re;Re=t.clientId,await ma([{channel:"/meta/subscribe",subscription:`/sn/meta/channel_redirect/${Re}`,clientId:Re}]);for(let r of Ge.values())r.actual=r.channel,xo(r);for(aa.set({connection:"open",resumedAt:o?Date.now():null}),o&&F.queryClient.invalidateQueries(),e=1e3;St;){let r=await ma([{channel:"/meta/connect",connectionType:"long-polling",clientId:Re}]),s=r.find(l=>l.channel==="/meta/connect");if(go(r),s&&!s.successful)throw new Error("AMB connect refused")}}catch{aa.set(a=>({...a,connection:"broken"})),await new Promise(a=>setTimeout(a,e)),e=Math.min(e*2,3e4)}}function Vu(){if(!Ls){if(Ls=!0,F.boot&&F.boot.session==="header"){aa.set({connection:"unavailable",resumedAt:null});return}window.__RPF_AMB__={channels:()=>Array.from(Ge.values()).map(e=>({channel:e.channel,actual:e.actual,status:e.status,listeners:e.listeners.size})),state:()=>aa.get()},Gu()}}function Wu(e,a,t){Vu();let o=Ge.get(e);o||(o={channel:e,actual:e,listeners:new Set,status:"idle",retries:0,statusListeners:new Set},Ge.set(e,o),xo(o)),o.releaseTimer&&(clearTimeout(o.releaseTimer),o.releaseTimer=void 0),o.listeners.add(a),o.statusListeners.add(t);let r=o;return()=>{r.listeners.delete(a),r.statusListeners.delete(t),!r.listeners.size&&(r.releaseTimer=setTimeout(()=>{r.listeners.size||(Ge.delete(r.channel),Re&&ma([{channel:"/meta/unsubscribe",subscription:r.actual,clientId:Re}]).catch(()=>{}))},1e3))}}function _u(e,a){let t=String(a||"").split("^").filter(r=>r&&!/^(ORDERBY|ORDERBYDESC|GROUPBY)/.test(r)).join("^")||"sys_idISNOTEMPTY",o=btoa(unescape(encodeURIComponent(t))).replace(/=/g,"-");return`/rw/default/${e}/${o}`}function wt(e,a,t={}){let o=Ee.useRef(a);o.current=a;let[,r]=Ee.useReducer(f=>f+1,0),s=w(aa,f=>f.connection);Ee.useEffect(()=>{if(!(t.enabled===!1||!e))return Wu(e,f=>o.current(f),r)},[e,t.enabled]);let l=Ge.get(e);return{status:l?l.status:"idle",error:l?l.error:void 0,connection:s}}function Xu(e,a){let t=a&&a.data||{},o=t.record||{},r=o.sys_mod_count?Number(o.sys_mod_count.value??o.sys_mod_count):t.sys_mod_count;return{table:t.table_name||e,sysId:t.sys_id||a.ext&&a.ext.sys_id||"",action:t.action||"change",operation:t.operation||"update",changes:Array.isArray(t.changes)?t.changes:[],modCount:typeof r=="number"&&!isNaN(r)?r:null,updatedOn:o.sys_updated_on?String(o.sys_updated_on.value??o.sys_updated_on):null,fromUser:a.ext&&a.ext.from_user||null,displayValue:t.display_value||"",record:o,raw:a}}function La(e,a,t,o={}){let r=e?_u(e,a):"",[s,l]=Ee.useState(null),f=Ee.useRef(null),u=Ee.useRef(t);return u.current=t,{...wt(r,c=>{let d=Xu(e,c);l(d),u.current&&u.current(d),o.invalidate!==!1&&(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{F.queryClient.invalidateQueries({predicate:m=>JSON.stringify(m.queryKey).includes(JSON.stringify(e))})},o.debounceMs??250))},{enabled:o.enabled!==!1&&!!e}),channel:r,lastEvent:s}}function ho(){return w(aa,e=>e)}var Ua=class extends Error{status;detail;constructor(a,t,o){super(t),this.status=a,this.detail=o}};function $u(){return{Accept:"application/json","Content-Type":"application/json","X-UserToken":""}}async function Na(e,a={}){let t=new URL(e,location.origin);if(t.origin!==location.origin)throw new Ua(0,`fetchJson refuses cross-origin URLs: ${t.origin}`);let o=a.body,r=o!==void 0&&typeof o!="string"&&!(o instanceof FormData)?JSON.stringify(o):o,s={Accept:"application/json",...a.headers||{}};r!==void 0&&!(o instanceof FormData)&&!s["Content-Type"]&&(s["Content-Type"]="application/json");let l=await fetch(t.pathname+t.search,{...a,headers:s,body:r,credentials:"same-origin"}),f=await l.text(),u=null;try{u=f?JSON.parse(f):null}catch{u=f}if(!l.ok){let n=u&&(u.error||u.result&&u.result.error);throw new Ua(l.status,n&&(n.message||n.detail)||`HTTP ${l.status}`,n)}return u}var kt=e=>Array.isArray(e)?e.join(","):e||"";function gs(e,a,t={}){let[o,r]=We.useState(!1);La(e,a?`sys_id=${a}`:null,l=>r(l.operation==="delete"),{enabled:!!t.live&&!!e&&!!a,debounceMs:t.liveThrottleMs??250});let s=Ya({queryKey:["rp-record",e,a,kt(t.fields),String(t.displayValue??"")],enabled:!!e&&!!a,queryFn:async()=>{let l=new URLSearchParams;t.fields&&l.set("sysparm_fields",kt(t.fields)),t.displayValue!==void 0&&l.set("sysparm_display_value",String(t.displayValue)),l.set("sysparm_exclude_reference_link","true");let f=await Na(`/api/now/table/${encodeURIComponent(e)}/${encodeURIComponent(a)}?${l}`);return f&&f.result}});return{data:s.data,isLoading:s.isLoading,error:s.error,refetch:s.refetch,deleted:o}}function xs(e,a={}){let t=(Array.isArray(a.orderBy)?a.orderBy:a.orderBy?[a.orderBy]:[]).map(s=>s.startsWith("-")?`ORDERBYDESC${s.slice(1)}`:`ORDERBY${s}`).join("^"),o=[a.query||"",t].filter(Boolean).join("^");La(e,a.query||"",void 0,{enabled:!!a.live&&!!e,debounceMs:a.liveThrottleMs??1e3});let r=Ya({queryKey:["rp-table",e,o,kt(a.fields),a.limit,String(a.displayValue??"")],enabled:!!e,queryFn:async()=>{let s=new URLSearchParams;o&&s.set("sysparm_query",o),a.fields&&s.set("sysparm_fields",kt(a.fields)),s.set("sysparm_limit",String(a.limit||100)),a.displayValue!==void 0&&s.set("sysparm_display_value",String(a.displayValue)),s.set("sysparm_exclude_reference_link","true");let l=await Na(`/api/now/table/${encodeURIComponent(e)}?${s}`);return l&&l.result||[]}});return{data:r.data||[],isLoading:r.isLoading,error:r.error,refetch:r.refetch}}function Co(e){let a=(e||[]).slice().sort().join(","),t=Ya({queryKey:["rp-properties",T().portal.slug,a],enabled:!!a,staleTime:5*6e4,queryFn:async()=>{let r=await Na(`/api/x_312987_portal/rp/properties?portal=${encodeURIComponent(T().portal.slug)}&names=${encodeURIComponent(a)}`);return(r&&(r.result?r.result.data||r.result:r)||{}).values||{}}}),o={};for(let r of e||[])o[r]=t.data&&r in t.data?t.data[r]:null;return{values:o,isLoading:t.isLoading,error:t.error}}function hs(e){let a=Co(e?[e]:[]);return{value:e?a.values[e]:null,isLoading:a.isLoading,error:a.error}}var ta=new Map,yt=new Set,bt=null,Io=new Set;function Is(e){for(let a of e)ta.has(a)||yt.add(a);return yt.size?(bt||(bt=new Promise(a=>{setTimeout(async()=>{let t=Array.from(yt);yt=new Set,bt=null;try{let o=await Na("/api/x_312987_portal/rp/messages",{method:"POST",body:{keys:t}}),r=o&&(o.result?o.result.data||o.result:o)||{};for(let s of t)ta.set(s,r.messages&&r.messages[s]||s)}catch{for(let o of t)ta.set(o,o)}for(let o of Io)o();a()},0)})),bt):Promise.resolve()}function So(e){let[,a]=We.useReducer(s=>s+1,0),t=(e||[]).join("\0");We.useEffect(()=>(Io.add(a),Is(e||[]),()=>{Io.delete(a)}),[t]);let o={},r=!1;for(let s of e||[])ta.has(s)?o[s]=ta.get(s):(r=!0,o[s]=s);return{messages:o,isLoading:r,error:null}}function Cs(e,a){let t=So([e]);return ta.has(e)?t.messages[e]:a!==void 0?a:e}function wo(e,...a){let t=a.length===1&&a[0]&&typeof a[0]=="object"?a[0]:a;return String(e).replace(/\{([A-Za-z0-9_]+)\}/g,(o,r)=>t&&t[r]!==void 0&&t[r]!==null?String(t[r]):o)}function Ss(){return We.useMemo(()=>({addInfoMessage:(e,a)=>{Ha.toast.info(e,a)},addErrorMessage:(e,a)=>{Ha.toast.error(e,a)},addTrivialMessage:(e,a)=>{(0,Ha.toast)(e,{duration:2500,...a||{}})},toast:Ha.toast,format:wo,getMessage:async e=>(await Is([e]),ta.get(e)||e),scrollTo(e,a){let t=typeof e=="string"?F.shadow&&F.shadow.querySelector(e):e;t&&t.scrollIntoView({behavior:"smooth",block:"start",...a||{}})},fetchJson:Na,async refresh(){ct(),await F.queryClient.invalidateQueries()},getHeaders:$u,getWidget:async()=>{throw new Ua(400,"Embedded widgets come later in rpf dev")},goBack:fa}),[])}var X=k(de(),1);var xe=k(de(),1),vt=k(da(),1);var H=k(ee(),1),za=oe({title:null,meta:null,footer:null});function ga(e,a){za.get()[e]!==a&&za.set(t=>({...t,[e]:a}))}var ys=e=>`x_312987_portal.panel.${T().portal.slug}.${e}.width`;function Ku(e){try{let a=parseInt(localStorage.getItem(ys(e))||"",10);return a>0?a:null}catch{return null}}function ws(e,a){try{localStorage.setItem(ys(e),String(Math.round(a)))}catch{}}var ju=300,yo=(...e)=>e.filter(Boolean).join(" ")||void 0;function bo(e){let a=It(),t=w(ot,h=>h.isMobile),o=w(Q,h=>h.resolved?h.resolved.page.route:""),r=w(Q,h=>h.path),s=a.open?Te(o).find(h=>h.key===a.key):void 0,[l,f]=xe.useState(s);xe.useEffect(()=>{if(s){f(s);return}let h=setTimeout(()=>f(void 0),ju);return()=>clearTimeout(h)},[s&&s.key]);let u=s||l,n=!!s,c=xe.useRef(null),[d,m]=xe.useState(0);xe.useLayoutEffect(()=>{let h=c.current&&c.current.parentElement;if(!h||typeof ResizeObserver!="function")return;let N=new ResizeObserver(le=>m(le[0].contentRect.width));return N.observe(h),()=>N.disconnect()});let L=e.variant||"push",i=e.minWidth||280,p=e.maxWidth||720,[S,x]=xe.useState(null),[,v]=xe.useReducer(h=>h+1,0),P=u?Ku(u.key)||parseInt(u.width,10)||e.width||400:e.width||400,D=Math.max(i,Math.min(p,S!==null?S:P)),B=L==="push"&&d>0&&d-D<(e.minMainWidth??560)?"overlay":L,V=xe.useMemo(()=>u?{key:u.key,args:a.args}:void 0,[u,a.args]);if(!u){let h=e.rail&&!t?Te(o):[];return h.length?(0,H.jsx)("aside",{"data-rp-side-panel":"rail","aria-label":"Side panels",className:yo("mr-2 mb-2 flex w-11 shrink-0 flex-col items-center gap-1 py-2",e.className,e.closedClassName),children:h.map(N=>(0,H.jsxs)(pr,{children:[(0,H.jsx)(mr,{render:(0,H.jsx)("button",{type:"button","aria-label":N.title,className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground",onClick:()=>{a.openPanel(N.key)}}),children:(0,H.jsx)(gr,{name:N.icon||"panel-right",className:"size-4"})}),(0,H.jsx)(Lr,{side:"left",children:N.title})]},N.key))}):(0,H.jsx)("aside",{"data-rp-side-panel":B,"data-state":"closed","aria-hidden":"true",className:yo("w-0 shrink-0",e.className,e.closedClassName)})}let U=h=>{h.preventDefault();let N=h.clientX,le=D,fe=M=>Math.max(i,Math.min(p,le+(N-M.clientX))),me=M=>x(fe(M)),A=M=>{window.removeEventListener("pointermove",me),window.removeEventListener("pointerup",A),ws(u.key,fe(M)),x(null)};window.addEventListener("pointermove",me),window.addEventListener("pointerup",A)},C=h=>{let N=h.shiftKey?64:16,le=h.key==="ArrowLeft"?D+N:h.key==="ArrowRight"?D-N:h.key==="Home"?p:h.key==="End"?i:null;le!==null&&(h.preventDefault(),ws(u.key,Math.max(i,Math.min(p,le))),v())},E=(0,H.jsx)(Cr,{variant:u.body==="full"?"full":"default",children:(0,H.jsx)(Lo.Provider,{value:{key:u.key,panel:{key:u.key,title:u.title,icon:u.icon,body:u.body}},children:(0,H.jsx)(Yr,{list:u.regions.main,page:r,panel:V})})});if(t)return(0,H.jsx)(xr,{open:n,onOpenChange:h=>!h&&void a.close(),children:(0,H.jsxs)(hr,{side:"right",showCloseButton:!1,className:"w-full gap-0 p-0 sm:max-w-none",children:[(0,H.jsx)(Ir,{className:"sr-only",children:a.title||u.title}),(0,H.jsxs)(Vt,{children:[(0,H.jsx)(Xt,{onClick:()=>{a.close()}}),(0,H.jsx)(Wt,{ref:h=>ga("title",h),children:a.title||u.title}),(0,H.jsx)(_t,{ref:h=>ga("meta",h)})]}),E,(0,H.jsx)($t,{className:"empty:hidden",ref:h=>ga("footer",h)})]})});let Y={"--rp-side-panel-width":`${D}px`,...B==="overlay"?{position:"absolute",top:0,right:0,bottom:0,zIndex:40}:{}};return(0,H.jsxs)("aside",{ref:c,role:"complementary","aria-label":a.title||u.title,"aria-hidden":n?"false":"true","data-rp-side-panel":B,"data-state":n?"open":"closed","data-panel":u.key,"data-resizing":S!==null?"":void 0,className:yo("relative flex shrink-0 flex-col overflow-hidden bg-background text-foreground motion-reduce:transition-none data-[resizing]:transition-none transition-[width,margin] duration-300 ease-in-out",n?"mr-2 mb-2 w-(--rp-side-panel-width) rounded-md border border-border shadow-sm":"m-0 w-0 border-0",B==="overlay"&&n&&"shadow-lg",e.className,n?e.openClassName:e.closedClassName),style:Y,children:[(0,H.jsxs)("div",{className:"flex h-full min-h-0 flex-col w-(--rp-side-panel-width)",children:[e.showTitle===!1?null:(0,H.jsxs)(Vt,{children:[(0,H.jsx)(Xt,{onClick:()=>{a.close()}}),(0,H.jsx)(Wt,{ref:h=>ga("title",h),children:a.title||u.title}),(0,H.jsx)(_t,{ref:h=>ga("meta",h)})]}),E,(0,H.jsx)($t,{className:"empty:hidden",ref:h=>ga("footer",h)})]}),e.resizable===!1||!n?null:(0,H.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize panel","aria-valuenow":Math.round(D),"aria-valuemin":i,"aria-valuemax":p,tabIndex:0,"data-slot":"side-panel-resize",className:"absolute inset-y-0 left-0 z-10 w-1.5 -translate-x-1/2 cursor-col-resize touch-none outline-none after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent hover:after:bg-ring focus-visible:after:bg-ring",onPointerDown:U,onKeyDown:C})]})}function ko({children:e}){let a=Ct();xe.useEffect(()=>{if(a.inPanel)return typeof e=="string"&&ht(a.key,e),()=>ht(a.key,null)},[a.inPanel&&a.key,typeof e=="string"?e:""]);let t=w(za,o=>o.title);return!a.inPanel||typeof e=="string"||!t?null:(0,vt.createPortal)(e,t)}function vo({children:e}){let a=w(za,t=>t.meta);return a?(0,vt.createPortal)(e,a):null}function Po({children:e}){let a=w(za,t=>t.footer);return a?(0,vt.createPortal)(e,a):null}var Ga=oe({});function xa(e,a){let t=Ga.get()[e]||{};Object.keys(a).some(r=>!Object.is(t[r],a[r]))&&Ga.set(r=>({...r,[e]:{...r[e]||{},...a}}))}var pe=k(ee(),1),Pt=new Map;function ks(e,a){return Pt.set(e,a),()=>{Pt.get(e)===a&&Pt.delete(e)}}function Ro(e,a){return/^[A-Za-z0-9_.-]+$/.test(e)&&/^[A-Za-z0-9_.:-]+$/.test(a)?`${e}:${a}`:""}function Ao(e,a="tab"){return`rp-${a}-${e.replace(/[^A-Za-z0-9_-]/g,"_")}`}var Do=X.createContext(null),vs=X.createContext(null),Ps="x_312987_portal.tabs.params",Rt=(()=>{try{return localStorage.getItem(Ps)==="1"?!0:null}catch{return null}})();function bs(){if(!Rt){Rt=!0;try{localStorage.setItem(Ps,"1")}catch{}}}function Rs(e={}){let a=w(re,i=>i),t=w(Ga,i=>i),o=e.kinds||{},r=i=>o[i]||Pt.get(i)||null,s=(e.static||[]).map(i=>({...i,...t[i.key]||{}})),l=[],f=[];for(let i of a.tabs?a.tabs.split(","):[]){let[p,S]=i.split("~"),x=p.indexOf(":"),v=x>0?r(p.slice(0,x)):null,P=v&&v.paramsOf?v.paramsOf(p.slice(x+1)):v?{id:p.slice(x+1)}:null;if(!v||!P){f.push(p);continue}l.push({key:p,kind:p.slice(0,x),params:P,parent:S,opened:!0,closable:v.closable!==!1,keepAlive:!!v.keepAlive,icon:v.icon,title:v.title&&v.title(P)||p,...t[p]||{},render:(D,B)=>v.render(D,B)})}let u=s.concat(l),n=e.defaultKey||s[0]&&s[0].key||"",c=u.some(i=>i.key===a.tab)?a.tab:n;(a.tab||a.tabs)&&bs();let d=async(i,p,S,x)=>{let P=await ve({tab:i&&i!==n?i:null,tabs:p,tabArgs:x??null},{replace:S||Rt!==!0});return P&&(p.length||i&&i!==n)&&bs(),P},m=()=>a.tabs?a.tabs.split(",").filter(Boolean):[],L={list:u,active:c,activeTab:u.find(i=>i.key===c)||null,defaultKey:n,args:Object.fromEntries(new URLSearchParams(a.tabArgs)),supported:a.tab||a.tabs||Rt?!0:null,invalid:f,async open(i,p={}){let S=typeof i=="string"?i:i.key||(i.kind&&r(i.kind)?Ro(i.kind,r(i.kind).keyOf(i.params||{})):"");if(!S)return!1;let x=m();if(x.some(B=>B.split("~")[0]===S))return L.activate(S,p);let v=p.parent!==void 0?p.parent:c,P=x.slice(),D=e.max||8;if(P.length>=D){if(e.overflow==="refuse")return!1;let B=Ga.get(),V=P.findIndex(U=>{let C=U.split("~")[0];return C!==c&&!(B[C]&&B[C].dirty)});if(V<0)return!1;P.splice(V,1)}return P.push(v?`${S}~${v}`:S),d(p.activate===!1?c:S,P,p.history?p.history!=="push":!1,p.args)},activate:(i,p={})=>{let S=m(),x=!1,v=S.find(D=>D.split("~")[0]===i);for(;v;){let D=v.split("~")[1];if(!D)break;if(D===c){x=!0;break}v=S.find(B=>B.split("~")[0]===D)}let P=p.history?p.history!=="push":!x;return d(i,S,P,p.args)},async close(i,p={}){let S=m(),x=new Set([i]),v=!0;for(;v;){v=!1;for(let V of S){let[U,C]=V.split("~");C&&x.has(C)&&!x.has(U)&&(x.add(U),v=!0)}}let P=S.filter(V=>!x.has(V.split("~")[0])),D=s.find(V=>V.key===i);D&&D.onClose&&D.onClose();let B=c;if(x.has(c)){let V=S.find(C=>C.split("~")[0]===i),U=V?V.split("~")[1]:"";for(;U&&x.has(U);){let C=S.find(E=>E.split("~")[0]===U);U=C?C.split("~")[1]:""}B=U||n}return d(B,P,p.history?p.history!=="push":!0)},replace:async(i,p)=>(await L.close(i),L.open(p)),reset:(i={})=>d(i.activate||n,i.keep||[],!0),move:async(i,p)=>{let S=m(),x=S.findIndex(P=>P.split("~")[0]===i);if(x<0)return!1;let[v]=S.splice(x,1);return S.splice(Math.max(0,Math.min(S.length,p)),0,v),d(c,S,!0)},setArgs:i=>d(c,m(),!0,i),setMeta:(i,p)=>xa(i,p),kindOf:r,keyFor:i=>typeof i=="string"?i:i.key||""};return L}function As({value:e,children:a}){return(0,pe.jsx)(Do.Provider,{value:e,children:a})}function Ds(){return X.useContext(Do)}function Ms(){return X.useContext(vs)||{inTab:!1}}function Ts({className:e,style:a}){let t=X.useContext(Do),[o,r]=X.useState([]),s=t&&t.activeTab?t.activeTab.key:"";if(X.useEffect(()=>{t&&t.activeTab&&t.activeTab.keepAlive&&!o.includes(s)&&r(o.concat([s]))},[s]),!t||!t.activeTab)return null;let l=t.list.filter(u=>u.keepAlive&&o.includes(u.key)&&u.key!==s),f=[t.activeTab].concat(l);return(0,pe.jsx)(pe.Fragment,{children:f.map(u=>{let n=u.key===s;return(0,pe.jsx)("div",{id:Ao(u.key,"panel"),role:"tabpanel",className:e,hidden:!n||void 0,inert:!n||void 0,style:{...a,...n?{}:{visibility:"hidden",display:"none"}},children:(0,pe.jsx)(Zu,{tab:u,tabs:t})},u.key)})})}function Zu({tab:e,tabs:a}){let t=X.useRef(a);t.current=a;let o=e.key,r=X.useMemo(()=>({setTitle:f=>xa(o,{title:f}),setDirty:f=>xa(o,{dirty:f}),setBadge:f=>xa(o,{badge:f}),setIcon:f=>xa(o,{icon:f}),close:f=>t.current.close(o,f),activate:f=>t.current.activate(o,f),openChild:(f,u)=>t.current.open(f,{...u||{},parent:o}),setArgs:(f,u)=>t.current.setArgs(f,u)}),[o]),s=e.params||{},l=X.useMemo(()=>({inTab:!0,key:o,kind:e.kind,params:s,active:!0,args:a.args,...r}),[o,e.kind,JSON.stringify(s),JSON.stringify(a.args),r]);return(0,pe.jsx)(vs.Provider,{value:l,children:e.render?e.render(s,l):null})}function Bs(){return!1}function qs({componentId:e,props:a,fallback:t}){let o=T(),r=Object.values(o.components).find(c=>c.id===e||c.uniqueId===e),s=r?r.uniqueId:null,l=Ea(s),f=w(Q,c=>c.path),u=X.useMemo(()=>r?{instanceId:`formatter:${r.id||r.uniqueId}`,uniqueId:r.uniqueId,name:r.name,serverMode:r.serverMode,options:r.defaults||{},page:f}:null,[r,f]);if(!r||!u)return(0,pe.jsx)(pe.Fragment,{children:t||null});if(l.status!=="ready"||!l.ns||typeof l.ns.default!="function")return(0,pe.jsx)(pe.Fragment,{children:l.status==="error"&&t||null});let n=l.ns.default;return(0,pe.jsx)(qe.Provider,{value:u,children:(0,pe.jsx)(Fe,{label:r.uniqueId,children:(0,pe.jsx)(n,{instanceId:u.instanceId,options:u.options,...a||{}})})})}var Fs=X.createContext({value:void 0,set:!1});function Es(){let e=X.useContext(Fs),a=w(Q,t=>t.resolved?t.resolved.page.route:"");return X.useMemo(()=>{if(e.set)return e.value;let t=T(),o=t.cellRenderers.filter(l=>Ne(l.roles)&&(!l.pages.length||l.pages.includes(a))).map(l=>({...l,roles:[]}));if(!o.length)return null;let r={},s={};for(let l of o){let f=t.components[l.kit];r[l.kit]={id:l.kit,uniqueId:l.kit,name:f?f.name:l.kit,kind:f?f.kind:"primitive",serverMode:"none",build:null},l.table&&(s[l.table]=[l.table])}return{kits:r,rows:o,chains:s}},[e,a])}function Os({value:e,children:a}){return(0,pe.jsx)(Fs.Provider,{value:{value:e,set:!0},children:a})}function Hs(e){let a=w(ke,s=>s),t=(e||[]).map(s=>s.id+"="+s.uniqueId).join("|"),[o,r]=X.useState({sig:"",status:"empty",namespaces:{},error:null});return X.useEffect(()=>{if(!e||!e.length)return;let s=!0;return Promise.all(e.map(l=>Da(l.uniqueId,a).then(f=>[l.id,f]))).then(l=>s&&r({sig:t+a,status:"ready",namespaces:Object.fromEntries(l),error:null}),l=>s&&r({sig:t+a,status:"ready",namespaces:{},error:l})),()=>{s=!1}},[t,a]),!e||!e.length?{status:"empty",namespaces:{},error:null}:o.sig!==t+a?{status:"loading",namespaces:{},error:null}:{status:o.status,namespaces:o.namespaces,error:o.error}}function At(e={}){let[a,t]=X.useState(!!e.disabled),o=X.useRef(null);return[X.useCallback(s=>{o.current&&o.current.disconnect(),!(!s||a)&&(o.current=new IntersectionObserver(l=>{l.some(f=>f.isIntersecting)&&(t(!0),o.current&&o.current.disconnect())},{rootMargin:e.rootMargin||"200px"}),o.current.observe(s))},[a,e.rootMargin]),a]}var we=k(de(),1);var Se=k(ee(),1),Us=new Map,Ns=Symbol.for("rpf.embed.uid"),zs=e=>e.split("/").pop()||e,Ju=/^[A-Za-z0-9_-]{1,64}$/;function Gs(e,a,t,o,r){let s=T().components[a];return{instanceId:`${e.instanceId}~${t}`,uniqueId:a,name:s&&s.name||a,serverMode:s&&s.serverMode||"none",options:{...s&&s.defaults||{},...o},page:e.page,panel:e.panel,embed:{root:e.embed?e.embed.root:e.instanceId,path:(e.embed?e.embed.path:[]).concat([a]),keys:(e.embed?e.embed.keys:[]).concat([t]),options:o,token:r}}}function Vs(e,a){function t(o){let{options:r,embedKey:s,model:l,fallback:f,lazy:u,...n}=o,c=we.useContext(qe),d=s&&Ju.test(String(s))?String(s):l&&l.key?l.key:zs(e),m=l&&l.options||r||{},L=l&&l.token||null,i=we.useMemo(()=>c?Gs(c,e,d,m,L):null,[c&&c.instanceId,d,JSON.stringify(m),L]);we.useMemo(()=>{i&&l&&l.ok&&Or(i,l.data||{},l.options)},[i,l]);let p=!l&&u?u===!0?{}:u:null,[S,x]=At({rootMargin:p?p.rootMargin:void 0,disabled:!p});if(!i)return(0,Se.jsx)(a,{...n,options:m,embedded:!0});if(p&&!x){let v=p.height===void 0?"10rem":typeof p.height=="number"?`${p.height}px`:p.height;return(0,Se.jsx)("div",{ref:S,"data-rp-lazy":!0,"aria-busy":"true",className:"animate-pulse rounded-md bg-muted",style:{minHeight:v}})}return(0,Se.jsx)("div",{style:{display:"contents"},"data-rp-embed":i.instanceId,"data-rp-component":e,"data-rp-embed-root":i.embed.root,"data-rp-embed-depth":i.embed.path.length,children:(0,Se.jsx)(qe.Provider,{value:i,children:(0,Se.jsx)(Fe,{label:e,fallback:f,children:(0,Se.jsx)(a,{...n,instanceId:i.instanceId,options:i.options,region:void 0,embedded:!0})})})})}return t.displayName=`Embedded(${e})`,t.Raw=a,t[Ns]=e,Us.set(e,t),t}function Ws({model:e,fallback:a,embedKey:t,...o}){if(!e)return(0,Se.jsx)(Se.Fragment,{children:a||null});let r=Us.get(e.component);return r?(0,Se.jsx)(r,{...o,model:e,embedKey:t}):(0,Se.jsxs)("div",{"data-rp-error":e.component,className:"m-2 text-sm text-muted-foreground",children:[e.component," isn't imported by this component"]})}function _s(e){return typeof e=="string"?e.replace(/^components:/,""):e&&e[Ns]||""}async function Qu(e,a,t,o){let r=Gs(e,a,o,t,null),s=await fetch("/__rpf/server/initialize",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({page:e.page,instances:[{id:r.instanceId,placement:r.embed.root,path:r.embed.path,keys:r.embed.keys,options:t,token:null}],context:it(e),meta:ft([r])})}),l=await s.json().catch(()=>null),f=l&&l.instances?l.instances[r.instanceId]:null;if(!f)throw new ze({status:s.status,code:"embed_failed",message:`Could not load ${a}`});return{$embed:1,component:a,key:o,ok:!!f.ok,data:f.data,options:f.options||t,token:f.token||null,build:f.build||null,error:f.ok?void 0:f.error,messages:f.messages}}function Mo(){let e=we.useContext(qe);return we.useCallback(async(a,t={},o={})=>{let r=_s(a);if(!e||!r)throw new ze({status:400,code:"no_server",message:"No instance to embed under"});return Qu(e,r,t,o.key||zs(r))},[e&&e.instanceId])}function Xs(e,a={},t={}){let o=Mo(),r=`${_s(e)}|${t.key||""}|${JSON.stringify(a)}`,[s,l]=we.useState({sig:"",model:null,prev:null,error:null}),f=we.useCallback(async()=>{try{let n=await o(e,a,{key:t.key});return l(c=>({sig:r,model:n,prev:c.model,error:null})),n}catch(n){return l(c=>({sig:r,model:null,prev:c.model,error:n})),null}},[r,o]);we.useEffect(()=>{t.enabled!==!1&&f()},[f,t.enabled]);let u=s.sig===r;return{model:u?s.model:null,previousModel:u?s.prev:s.model,pending:t.enabled!==!1&&!u,error:u?s.error:null,refetch:f}}var Yu="0.2.0",Ks={useServer:so,useComponent:Er,usePortal:os,usePortalLocation:mo,Link:Xr,useNavigate:Wr,Region:gt,RegionPortal:Qr,useBlock:es,useLayout:as,useNavigation:ls,useSidebar:fr,usePortalContainer:rt,useTheme:tt,useUser:rs,useProperty:hs,useProperties:Co,useMessage:Cs,useMessages:So,toast:$s.toast,format:wo,usePortalUtils:Ss,useRecord:gs,useTableQuery:xs,useRecordWatch:La,useAmbChannel:wt,useAmbStatus:ho,Embed:Ws,useEmbeddedWidget:Xs,useGetWidget:Mo,useInViewOnce:At,useBackTarget:cs,goBack:fa,useEntryTitle:is,useHistoryState:fs,useScrollRestoration:xt,markEntries:ps,useNavigationGuard:zr,useNavHistory:_r,useSidePanel:It,useSidePanelContent:Ct,SidePanelRegion:bo,PanelHeaderTitle:ko,PanelHeaderMeta:vo,PanelFooter:Po,useTabs:Rs,useTab:Ms,useTabsContext:Ds,TabsProvider:As,TabOutlet:Ts,registerTabKind:ks,makeTabKey:Ro,tabDomId:Ao,useDocumentTitle:ds,useTitleParts:ns,FormatterSlot:qs,useDesignMode:Bs,useCellRendererConfig:Es,CellRendererConfigProvider:Os,useComponentNamespaces:Hs,PARAM_OPERATORS:Jo,PARAM_OPERATOR_LABELS:Qo,parseParamCondition:Yo,matchParamCondition:or,explainParamCondition:tr,serializeParamCondition:er,paramConditionFields:ar},ed=Object.keys(Ks).concat(["RUNTIME_ABI","RUNTIME_EXPORTS"]).sort(),js={...Ks,RUNTIME_ABI:Yu,RUNTIME_EXPORTS:ed};var Cl=k(de(),1);var Zn=k(de()),Zs=k(da());var oa=k(ee()),To=(e,a,t)=>`color-mix(in oklab, ${e} ${t}%, ${a})`,Dt=(e,a)=>({[`--${e}-bg`]:To(a,"var(--popover)",12),[`--${e}-border`]:To(a,"var(--popover)",35),[`--${e}-text`]:To(a,"var(--popover-foreground)",70)}),ad={...Dt("success","oklch(0.62 0.15 152)"),...Dt("error","var(--destructive)"),...Dt("warning","oklch(0.72 0.15 70)"),...Dt("info","var(--primary)")},Js=({...e})=>{let{resolvedTheme:a}=tt(),t=rt(),o=(0,oa.jsx)(cr,{theme:a,className:"toaster group",icons:{success:(0,oa.jsx)(rr,{className:"size-4"}),info:(0,oa.jsx)(sr,{className:"size-4"}),warning:(0,oa.jsx)(dr,{className:"size-4"}),error:(0,oa.jsx)(ur,{className:"size-4"}),loading:(0,oa.jsx)(lr,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)",...ad},mobileOffset:{bottom:"5rem"},toastOptions:{classNames:{toast:"cn-toast"}},...e});return t?(0,Zs.createPortal)(o,t):o};var Z=k(de(),1),gl=k(da(),1);var Mt=k(de(),1);var Qs=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Ys(e,a,t=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Qs(e),size:24,node:a,...t.length>0?{aliases:t}:{}}}var el=e=>{let a="",t=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){t=a.length>0;continue}a.length===0?a+=o.toLowerCase():a+=t?o.toUpperCase():o,t=!1}return a};var al=e=>{let a=el(e);return a.charAt(0).toUpperCase()+a.slice(1)};var Wa=k(de(),1);var Va=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var _e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Bo(e){return e!=null}function tl(e,a={}){let t=a.attributeNames??{},o=m=>t[m]??m,r=e.size??e.width??_e.width,s=e.size??e.height??_e.height,l=e.aliases?.filter(m=>typeof m=="string"&&m.trim()!=="").map(m=>`lucide-${m}`)??[],f=[...e.name?[`lucide-${e.name}`]:[],...l],u=a.className?.split(" ").filter(Boolean)??[],n=a.includeDefaultClasses===!1?Va(...u):Va("lucide",...f,...u),c=a.absoluteStrokeWidth?Number(a.strokeWidth??_e["stroke-width"])*Number(e.size??e.width??_e.width)/Number(a.size??a.width??_e.width):a.strokeWidth??_e["stroke-width"];return["svg",{...Object.entries(_e).reduce((m,[L,i])=>(m[o(L)]=i,m),{}),..."color"in a&&a.color&&{[o("stroke")]:a.color},..."size"in a&&Bo(a.size)&&{[o("width")]:a.size,[o("height")]:a.size},..."width"in a&&Bo(a.width)&&{[o("width")]:a.width},..."height"in a&&Bo(a.height)&&{[o("height")]:a.height},[o("stroke-width")]:c,...n&&{[o("class")]:n},[o("viewBox")]:`0 0 ${r} ${s}`,...a.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},e.node.map(m=>{let[L,i,p]=m,S=a.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...i}:i;return p?[L,S,p]:[L,S]})]}function ol(e,a={}){return tl(e,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var rl=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var ha=k(de(),1);var td=(0,ha.createContext)({});var sl=()=>(0,ha.useContext)(td);var ll=(0,Wa.forwardRef)(({color:e,size:a,width:t,height:o,strokeWidth:r,absoluteStrokeWidth:s,nonScalingStroke:l,className:f="",children:u,iconNode:n=[],icon:c={node:n,aliases:[],size:24},...d},m)=>{let{size:L=24,strokeWidth:i=2,absoluteStrokeWidth:p=!1,nonScalingStroke:S=!1,color:x="currentColor",className:v=""}=sl()??{},P=!!u||rl(d),[D,B,V=[]]=ol(c,{color:e??x,width:t??a??L,height:o??a??L,strokeWidth:r??i,absoluteStrokeWidth:s??p,nonScalingStroke:l??S,className:Va(v,f),hasA11yProp:P,attributes:d});return(0,Wa.createElement)(D,{ref:m,...B},[...V.map(([U,C])=>(0,Wa.createElement)(U,C)),...Array.isArray(u)?u:[u]])});function Oe(e,a=[],t=[]){let o=typeof e=="string"?Ys(e,a,t):e,r=(0,Mt.forwardRef)(({className:s,...l},f)=>(0,Mt.createElement)(ll,{ref:f,icon:o,className:s,...l}));return o.name&&(r.displayName=al(o.name)),r}var ul={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};ul.node;var _a=Oe(ul);var dl={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};dl.node;var Xa=Oe(dl);var nl={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};nl.node;var Ia=Oe(nl);var il={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};il.node;var $a=Oe(il);var fl={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};fl.node;var Ka=Oe(fl);var I=k(ee(),1),xl="rpf-dev.dock",od=8,Pe=24,rd=5,cl=150,qo=300,pl=14,ml={ArrowUp:"top",ArrowRight:"right",ArrowDown:"bottom",ArrowLeft:"left"},sd={top:"bottom",bottom:"top",left:"right",right:"left"},ld={top:$a,right:Ia,bottom:_a,left:Xa},ra=(e,a,t)=>Math.min(Math.max(e,a),Math.max(a,t)),ja=e=>e==="top"||e==="bottom";function ud(){try{let e=JSON.parse(localStorage.getItem(xl)||"null")||{};return{edge:["top","right","bottom","left"].includes(e.edge)?e.edge:"bottom",ratio:typeof e.ratio=="number"?ra(e.ratio,0,1):1,compact:!!e.compact}}catch{return{edge:"bottom",ratio:1,compact:!1}}}var Tt=()=>({w:document.documentElement.clientWidth||innerWidth,h:innerHeight});function dd(e,a,t,o=Tt()){let r=e.compact?0:od;if(ja(e.edge))return{x:ra(Pe+e.ratio*(o.w-2*Pe-a),Pe,o.w-Pe-a),y:e.edge==="top"?r:o.h-t-r};let s=ra(Pe+e.ratio*(o.h-2*Pe-t),Pe,o.h-Pe-t);return{x:e.edge==="left"?r:o.w-a-r,y:s}}function nd(e,a,t,o,r=Tt()){let s=e+t/2,l=a+o/2,f=[["top",l],["bottom",r.h-l],["left",s],["right",r.w-s]];f.sort((c,d)=>c[1]-d[1]);let u=f[0][0],n=ja(u)?ra((e-Pe)/Math.max(1,r.w-2*Pe-t),0,1):ra((a-Pe)/Math.max(1,r.h-2*Pe-o),0,1);return{edge:u,ratio:n}}function id(e,a){let[t,o]=Z.useState(0);return Z.useEffect(()=>{if(!e)return;let r=setInterval(()=>o(s=>s+1),a);return()=>clearInterval(r)},[e,a]),t}function Ca({title:e,count:a,children:t,open:o}){return(0,I.jsxs)("details",{open:o,className:"group rounded-md border bg-background/60",children:[(0,I.jsxs)("summary",{className:"flex cursor-pointer items-center gap-2 px-2 py-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase select-none",children:[(0,I.jsx)(Ia,{size:12,className:"transition-transform group-open:rotate-90"}),e,a!==void 0?(0,I.jsx)("span",{className:"ml-auto font-mono normal-case",children:a}):null]}),(0,I.jsx)("div",{className:"border-t px-2 py-1.5",children:t})]})}function Sa({children:e}){return(0,I.jsx)("div",{className:"max-h-48 overflow-auto font-mono text-[11px] leading-4 whitespace-pre-wrap",children:e})}var Ll=e=>new Date(e).toLocaleTimeString([],{hour12:!1}),fd=`
220
4
  [data-rpf-overlay] {
221
5
  --background: oklch(1 0 0); --foreground: oklch(0.21 0.006 285.9);
222
6
  --card: oklch(1 0 0); --card-foreground: oklch(0.21 0.006 285.9);
@@ -242,9 +26,9 @@ You might need to use a local HTTP server (instead of file://): https://react.de
242
26
  --rp-shadow-lg-1-c: rgb(0 0 0 / 0.4); --rp-shadow-lg-2-c: rgb(0 0 0 / 0.4);
243
27
  --rp-shadow-xl-1-c: rgb(0 0 0 / 0.4); --rp-shadow-xl-2-c: rgb(0 0 0 / 0.4);
244
28
  }
245
- `;function Y2({problems:r}){let s=X2(!0,1e3),[d,c]=Ct.useState(null),m=se(Zu,T=>T),h=se(wo,T=>T);Ct.useEffect(()=>{let T=!0;return fetch("/__rpf/status").then(B=>B.json()).then(B=>T&&c(B)).catch(()=>{}),()=>{T=!1}},[Math.floor(s/2)]);let L=window.__RPF_AGENT__,y=L?L.serverLog().slice().reverse():[],S=L?L.console().slice().reverse():[],A=L?L.amb():null,k=L?L.idle():null,C=Ye.queryClient.getQueryCache().getAll(),O=x1(),q=d&&d.staging?d.staging:null;return(0,te.jsxs)("div",{className:"grid gap-2 p-2 text-xs",children:[(0,te.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-1",children:[(0,te.jsx)("span",{className:"font-semibold",children:"rpf dev"}),(0,te.jsxs)("span",{className:"rounded border px-1.5 font-mono",children:["gen ",h]}),(0,te.jsx)("span",{className:"rounded border px-1.5",children:m&&m.session==="header"?"header-signed (no record watch)":"UI session"}),(0,te.jsx)("span",{className:"rounded border px-1.5",children:m&&m.portal.onInstance?"on the instance":"local portal"}),(0,te.jsx)("span",{className:"ml-auto truncate text-muted-foreground",children:"window.__RPF_AGENT__"})]}),(0,te.jsx)(Os,{title:"Problems",count:r.length,open:r.length>0,children:r.length?(0,te.jsx)(Bs,{children:r.map((T,B)=>(0,te.jsxs)("div",{className:T.level==="error"?"text-destructive":"",children:[T.component?(0,te.jsx)("b",{children:T.component}):null,T.file?` ${T.file}${T.line?":"+T.line+(T.column?":"+T.column:""):""}`:""," ",T.message]},B))}):(0,te.jsx)("div",{className:"text-muted-foreground",children:"No compile errors or missing components."})}),(0,te.jsx)(Os,{title:"Staged server scripts",count:q?q.components.length:void 0,children:q?(0,te.jsxs)(Bs,{children:[(0,te.jsxs)("div",{className:"text-muted-foreground",children:["staging"," ",q.available===null?"not asked yet":q.available?"available":"unavailable: "+(q.message||"")]}),q.components.map(T=>(0,te.jsxs)("div",{className:T.ok===!1?"text-destructive":"",children:[T.uid," ",T.hash," ",T.ok===null?"staging\u2026":T.ok?"staged":"refused "+T.code]},T.uid))]}):(0,te.jsx)("div",{className:"text-muted-foreground",children:"Loading\u2026"})}),(0,te.jsx)(Os,{title:"Server calls",count:y.length,children:(0,te.jsxs)(Bs,{children:[y.slice(0,40).map((T,B)=>(0,te.jsxs)("div",{className:T.status>=400||T.status===0?"text-destructive":"",children:[$A(T.at)," ",T.kind,T.action?" "+T.action:""," ",T.target||"(page)",T.instances!==void 0?` \xD7${T.instances}`:""," ",T.status," ",T.ms,"ms",T.error?" "+T.error:""]},B)),y.length?null:(0,te.jsx)("span",{className:"text-muted-foreground",children:"No server calls yet."})]})}),(0,te.jsx)(Os,{title:"Record watch",count:A?A.channels.length:0,children:(0,te.jsxs)(Bs,{children:[(0,te.jsxs)("div",{children:["connection: ",A?A.state.connection:"not started"]}),A?A.channels.map(T=>(0,te.jsxs)("div",{className:T.status==="denied"||T.status==="error"?"text-destructive":"",children:[T.status," \xD7",T.listeners," ",T.channel,T.actual!==T.channel?" \u2192 "+T.actual:""]},T.channel)):null]})}),(0,te.jsx)(Os,{title:"Cache and fetches",children:(0,te.jsxs)(Bs,{children:[(0,te.jsxs)("div",{children:["fetches in flight: ",k?k.pending:"?"," \xB7 ",k&&k.idle?"idle":"busy"]}),d?(0,te.jsxs)("div",{children:["proxy: ",d.proxied," requests, mean ",d.proxyMsMean,"ms \xB7 compiles: ",d.compiles,", mean ",d.compileMsMean,"ms \xB7 ",d.components," components"]}):null,(0,te.jsxs)("div",{className:"mt-1 text-muted-foreground",children:["on-load results (",O.length," instances)"]}),O.map(T=>(0,te.jsxs)("div",{children:[T.id," ",T.ready," ready",T.pending?` \xB7 ${T.pending} pending`:"",T.error?` \xB7 ${T.error} error`:""]},T.id)),(0,te.jsxs)("div",{className:"mt-1 text-muted-foreground",children:["query cache (",C.length,")"]}),C.slice(0,40).map(T=>(0,te.jsxs)("div",{children:[T.state.status,"/",T.state.fetchStatus," ",T.queryHash.slice(0,120)]},T.queryHash))]})}),(0,te.jsx)(Os,{title:"Console errors",count:S.length,open:S.length>0,children:(0,te.jsxs)(Bs,{children:[S.slice(0,30).map((T,B)=>(0,te.jsxs)("div",{className:"text-destructive",children:[$A(T.at)," ",T.text]},B)),S.length?null:(0,te.jsx)("span",{className:"text-muted-foreground",children:"None."})]})})]})}function eT({problems:r}){let s=se(r,$=>$),d=se(wo,$=>$),[c,m]=Ct.useState(F2),[h,L]=Ct.useState(!1),[y,S]=Ct.useState(!1),[A,k]=Ct.useState(null),[C,O]=Ct.useState(!1),[q,T]=Ct.useState({w:0,h:0}),[B,Y]=Ct.useState(om),F=Ct.useRef(null),ne=Ct.useRef(null),fe=Ct.useRef(!1),ve=Ct.useRef(void 0),Me=s.filter($=>$.level==="error").length,He=s.length-Me,Ce=Me?"bg-destructive":He?"bg-amber-500":"bg-emerald-500",Z=!c.compact||y||h,ge=$=>m(le=>{let Q={...le,...$};try{localStorage.setItem(WA,JSON.stringify(Q))}catch{}return Q});Ct.useLayoutEffect(()=>{let $=F.current;if(!$)return;let le=new ResizeObserver(()=>T({w:$.offsetWidth,h:$.offsetHeight}));return le.observe($),T({w:$.offsetWidth,h:$.offsetHeight}),()=>le.disconnect()},[Z]),Ct.useEffect(()=>{let $=()=>Y(om());return addEventListener("resize",$),()=>removeEventListener("resize",$)},[]);let nt=V2(c.compact&&!Z?c:{...c,compact:!1},q.w,q.h,B),V=A||nt,ke=Ct.useRef({size:q,vp:B,drag:A});ke.current={size:q,vp:B,drag:A};let we=$=>{if($.button!==0)return;let le={x:$.clientX,y:$.clientY,ox:$.clientX-V.x,oy:$.clientY-V.y,moved:!1,t:performance.now(),vx:0,vy:0};ne.current=le;let Q=Be=>{if(!le.moved&&Math.hypot(Be.clientX-le.x,Be.clientY-le.y)<P2)return;le.moved=!0;let ut=performance.now(),Lt=Be.clientX-le.ox,qe=Be.clientY-le.oy,Ea=ke.current.drag,Xo=Math.max(1,ut-le.t);Ea&&(le.vx=(Lt-Ea.x)/Xo,le.vy=(qe-Ea.y)/Xo),le.t=ut,O(!1),k({x:Lt,y:qe}),ke.current.drag={x:Lt,y:qe}},Oe=()=>{removeEventListener("pointermove",Q),removeEventListener("pointerup",Oe),removeEventListener("pointercancel",Oe),ne.current=null;let Be=ke.current.drag;if(!le.moved||!Be)return;fe.current=!0;let{size:ut,vp:Lt}=ke.current,qe=G2(Be.x+le.vx*QA,Be.y+le.vy*QA,ut.w,ut.h,Lt);O(!0),k(null),ge(qe),setTimeout(()=>O(!1),nx)};addEventListener("pointermove",Q),addEventListener("pointerup",Oe),addEventListener("pointercancel",Oe)},Et=$=>{fe.current&&(fe.current=!1,$.stopPropagation(),$.preventDefault())},N=$=>{if($.key==="Escape"){if(h)L(!1);else if(!c.compact||y)S(!1),ge({compact:!0});else return;$.stopPropagation()}else $.altKey&&JA[$.key]&&($.preventDefault(),O(!0),ge({edge:JA[$.key]}),setTimeout(()=>O(!1),nx))},G=$=>{clearTimeout(ve.current),$.pointerType==="mouse"&&c.compact&&!y&&(ve.current=setTimeout(()=>S(!0),120))},X=()=>{clearTimeout(ve.current),y&&!A&&(ve.current=setTimeout(()=>S(!1),350))},oe={position:"fixed",zIndex:2147483001,width:Math.min(560,B.w-16)};Xd(c.edge)?(oe.left=ar(nt.x+q.w-oe.width,8,B.w-oe.width-8),c.edge==="bottom"?oe.bottom=B.h-nt.y+6:oe.top=nt.y+q.h+6,oe.maxHeight=Math.min(B.h*.7,c.edge==="bottom"?nt.y-14:B.h-nt.y-q.h-14)):(c.edge==="right"?oe.right=B.w-nt.x+6:oe.left=nt.x+q.w+6,oe.top=ar(nt.y-40,8,B.h*.3),oe.maxHeight=B.h*.7);let K=c.compact&&Z,ma=_2[K?N2[c.edge]:c.edge],J=(0,te.jsxs)("div",{"data-rpf-overlay":"",className:"text-xs",children:[(0,te.jsx)("style",{children:j2}),h?(0,te.jsx)("div",{"data-rpf-dock-drawer":"",className:"overflow-auto rounded-lg border bg-card text-card-foreground shadow-xl",style:{...oe,visibility:A?"hidden":"visible"},onKeyDown:$=>{$.key==="Escape"&&($.stopPropagation(),L(!1))},children:(0,te.jsx)(Y2,{problems:s})}):null,(0,te.jsx)("div",{ref:F,role:"group","aria-label":"rpf dev diagnostics","data-rpf-dock":"","data-edge":c.edge,"data-compact":c.compact?"":void 0,style:{position:"fixed",left:0,top:0,zIndex:2147483e3,transform:`translate3d(${Math.round(V.x)}px, ${Math.round(V.y)}px, 0)`,transition:C&&!A?`transform ${nx}ms cubic-bezier(0.22, 1, 0.36, 1)`:"none",touchAction:"none",userSelect:"none",opacity:q.w?1:0,cursor:A?"grabbing":void 0},onPointerDown:we,onClickCapture:Et,onKeyDown:N,onPointerEnter:G,onPointerLeave:X,children:Z?(0,te.jsxs)("div",{className:"flex w-max items-center gap-px rounded-full border bg-card p-0.5 whitespace-nowrap text-card-foreground shadow-lg",children:[(0,te.jsx)("span",{"aria-hidden":"true",title:"Drag to move",className:"flex cursor-grab pr-px pl-1 text-muted-foreground",children:(0,te.jsx)(Gd,{size:12})}),(0,te.jsxs)("button",{type:"button",onClick:()=>L($=>!$),"aria-expanded":h,title:h?"Close diagnostics":"Open diagnostics","data-rpf-dock-toggle":"",className:"flex cursor-pointer items-center gap-2 rounded-full px-2 py-[3px] font-semibold hover:bg-muted",children:[(0,te.jsx)("span",{className:"inline-block size-2 rounded-full "+Ce}),"rpf dev \xB7 gen ",d,s.length?(0,te.jsx)("span",{className:"rounded-full px-1.5 font-mono text-[10px] "+(Me?"bg-destructive text-white":"bg-amber-500 text-black"),children:s.length}):null]}),(0,te.jsx)("button",{type:"button",onClick:()=>{S(!1),K?ge({compact:!1}):(L(!1),ge({compact:!0}))},"aria-label":K?"Keep diagnostics expanded":"Compact diagnostics",title:K?"Keep expanded":"Compact to the edge (Esc)",className:"flex cursor-pointer items-center rounded-full p-[3px] text-muted-foreground hover:bg-muted",children:(0,te.jsx)(ma,{size:14})})]}):(0,te.jsx)("button",{type:"button",onClick:()=>ge({compact:!1}),"aria-label":"Expand rpf dev diagnostics",title:"rpf dev: click to expand, drag to move",className:"flex cursor-pointer items-center justify-center border bg-card shadow-lg hover:bg-muted",style:{width:Xd(c.edge)?28:ZA,height:Xd(c.edge)?ZA:28,borderRadius:c.edge==="bottom"?"8px 8px 0 0":c.edge==="top"?"0 0 8px 8px":c.edge==="left"?"0 8px 8px 0":"8px 0 0 8px"},children:(0,te.jsx)("span",{className:"inline-block size-2 rounded-full "+Ce})})})]});return Ye.overlay?(0,KA.createPortal)(J,Ye.overlay):J}var Fa=he(_t(),1),Us=Jt([]);function Q2(){let r=se($t,d=>d),s=se(Zu,d=>d);aT.useLayoutEffect(()=>{if(!s)return;let d=na(),c=Ap(d.page,d),m=c?c.variant?c.variant.regions:c.page.regions:{};Dt.set({resolved:c,path:d.page,regions:m}),c&&Z2(c)},[r,s])}var tT="";function Z2(r){let s=r.page.id;if(s===tT)return!1;tT=s;let d=$t.get();if(d.panel==="none")return!1;let c=bl(r.page.route);if(d.panel&&c.some(L=>L.key===d.panel))return!1;let m=r.variant?r.variant.defaultPanel:r.page.defaultPanel;if(!m||!m.key||!c.some(L=>L.key===m.key)||Rp.get().isMobile&&!m.mobile)return!1;let h={...d,panel:m.key,panelArgs:Yu(m.args)};return history.replaceState({...history.state||{},position:history.state?.position??0},"",ju(h)),Qu(),Ku("replace"),!0}function J2(){let r=se(Dt,A=>A),s=Ve(),d=r.resolved,c=d?d.variant&&d.variant.layout||d.page.layout:null,m=c||s.layout,h=m?s.components[m]:void 0,L=h&&h.regions||[],y={...h&&h.defaults||{},...c?{}:s.layoutOptions,...d&&d.page.layoutOptions||{},...d&&d.variant&&d.variant.layoutOptions||{}},S=L.find(A=>A.name==="main")?"main":L.find(A=>!A.acceptsContributions)?.name||"main";return{uid:m,info:{layout:h?{uniqueId:h.uniqueId,name:h.name,kind:h.kind,regions:L,defaults:h.defaults}:null,options:y,mainRegion:S,regions:L}}}var ux={full:"none","7xl":"80rem","6xl":"72rem","5xl":"64rem","4xl":"56rem","3xl":"48rem"};function $2(){let r=Dt.get().resolved,s=r?r.variant?r.variant.contentWidth:r.page.contentWidth:"inherit",d=String(Ve().portal.settings.contentWidth||"");return ux[s]||ux[d]||ux["7xl"]}function K2(){Q2(),Fp("main");let{uid:r,info:s}=J2(),d=kd(r);if(!r)return(0,Fa.jsx)("div",{className:"p-6 text-sm text-muted-foreground",children:"This portal has no layout."});if(d.status==="loading")return(0,Fa.jsx)("div",{"data-rp-loading":"layout"});if(d.status==="error")return(0,Fa.jsxs)("div",{role:"alert",className:"p-6 text-destructive",children:["Layout ",r,": ",String(d.error&&d.error.message)]});let c=d.ns&&d.ns.default;return(0,Fa.jsx)(Np.Provider,{value:s,children:(0,Fa.jsx)("div",{style:{display:"contents","--rp-content-max":$2()},children:(0,Fa.jsx)(Al,{label:r,children:(0,Fa.jsx)(c,{regions:s.regions,options:s.options})})})})}function oT(){let r=se(wo,d=>d);return se(Zu,d=>d)?(0,Fa.jsxs)(ww,{client:Ye.queryClient,children:[(0,Fa.jsx)("div",{className:"rp-dev-root","data-rp-gen":r,style:{height:"100%",containerType:"inline-size",containerName:"rp-page"},children:(0,Fa.jsx)(K2,{},r)}),(0,Fa.jsx)(OA,{}),(0,Fa.jsx)(eT,{problems:Us})]}):null}var lT=200,lm=[],rx=[],nm=0,um=Date.now();function jd(r,s){r.push(s),r.length>lT&&r.splice(0,r.length-lT)}function rm(r){if(r instanceof Error)return`${r.name}: ${r.message}`;if(typeof r=="string")return r;try{return JSON.stringify(r)}catch{return String(r)}}var W2=r=>/\/amb(\?|$)|\/__rpf\/events/.test(r);function nT(){let r=window;if(r.__RPF_AGENT__)return;let s=console.error.bind(console);console.error=(...c)=>{jd(lm,{at:Date.now(),text:c.map(rm).join(" ").slice(0,2e3)}),s(...c)},window.addEventListener("error",c=>jd(lm,{at:Date.now(),text:`uncaught: ${c.message||rm(c.error)}`.slice(0,2e3)})),window.addEventListener("unhandledrejection",c=>jd(lm,{at:Date.now(),text:`unhandled rejection: ${rm(c.reason)}`.slice(0,2e3)}));let d=window.fetch.bind(window);window.fetch=(async(c,m)=>{let h=typeof c=="string"?c:c instanceof URL?c.href:c.url,L=!W2(h),y=performance.now();L&&(nm++,um=Date.now());let S=/\/__rpf\/server\/(initialize|execute\/(.+))$/.exec(h.split("?")[0]),A=null;if(S&&m&&typeof m.body=="string")try{A=JSON.parse(m.body)}catch{A=null}try{let k=await d(c,m);if(S){let C="";k.ok||(C=(await k.clone().text().catch(()=>"")).slice(0,300)),jd(rx,{at:Date.now(),kind:S[1]==="initialize"?"initialize":A&&A.embed?"embed":"execute",target:S[2]?decodeURIComponent(S[2]):String(A&&A.page||""),instances:A&&Array.isArray(A.instances)?A.instances.length:void 0,action:A&&A.action?String(A.action):void 0,status:k.status,ms:Math.round(performance.now()-y),error:C||void 0})}return k}catch(k){throw S&&jd(rx,{at:Date.now(),kind:S[1]==="initialize"?"initialize":"execute",target:S[2]?decodeURIComponent(S[2]):"",status:0,ms:Math.round(performance.now()-y),error:rm(k).slice(0,300)}),k}finally{L&&(nm--,um=Date.now())}}),r.__RPF_AGENT__={version:1,idle:(c=500)=>({idle:nm===0&&Date.now()-um>=c,pending:nm,lastActivity:um}),problems:()=>Us.get(),console:()=>lm.slice(),serverLog:()=>rx.slice(),amb:()=>r.__RPF_AMB__?{state:r.__RPF_AMB__.state(),channels:r.__RPF_AMB__.channels()}:null}}var ek=["shadow-color","shadow-opacity","shadow-blur","shadow-spread","shadow-offset-x","shadow-offset-y"];var tk=[{size:"2xs",m:.5,tw:[["0px","1px","0px","0px","rgb(0 0 0 / 0.05)"]]},{size:"xs",m:.5,tw:[["0px","1px","2px","0px","rgb(0 0 0 / 0.05)"]]},{size:"sm",m:1,second:["1px","2px"],tw:[["0px","1px","3px","0px","rgb(0 0 0 / 0.1)"],["0px","1px","2px","-1px","rgb(0 0 0 / 0.1)"]]},{size:"md",m:1,second:["2px","4px"],tw:[["0px","4px","6px","-1px","rgb(0 0 0 / 0.1)"],["0px","2px","4px","-2px","rgb(0 0 0 / 0.1)"]]},{size:"lg",m:1,second:["4px","6px"],tw:[["0px","10px","15px","-3px","rgb(0 0 0 / 0.1)"],["0px","4px","6px","-4px","rgb(0 0 0 / 0.1)"]]},{size:"xl",m:1,second:["8px","10px"],tw:[["0px","20px","25px","-5px","rgb(0 0 0 / 0.1)"],["0px","8px","10px","-6px","rgb(0 0 0 / 0.1)"]]},{size:"2xl",m:2.5,tw:[["0px","25px","50px","-12px","rgb(0 0 0 / 0.25)"]]}],uT=["x","y","b","s","c"],rT=r=>`color-mix(in oklab, var(--shadow-color) calc(var(--shadow-opacity) * ${r*100}%), transparent)`;function sT(r){let s=[];for(let d of tk){let c=r?[["var(--shadow-offset-x)","var(--shadow-offset-y)","var(--shadow-blur)","var(--shadow-spread)",rT(d.m)]].concat(d.second?[["var(--shadow-offset-x)",d.second[0],d.second[1],"calc(var(--shadow-spread) - 1px)",rT(1)]]:[]):d.tw,m=[];c.forEach((h,L)=>{uT.forEach((y,S)=>s.push(`--rp-shadow-${d.size}-${L+1}-${y}: ${h[S]};`)),m.push(uT.map(y=>`var(--rp-shadow-${d.size}-${L+1}-${y})`).join(" "))}),s.push(`--shadow-${d.size}: ${m.join(", ")};`)}return s}function iT(r,s){let d=String(s).trim();return/^shadow-(blur|spread|offset-x|offset-y)$/.test(r)&&/^-?(\d+\.?\d*|\.\d+)$/.test(d)?d+"px":r==="shadow-opacity"&&/^\d+\.?\d*%$/.test(d)?String(parseFloat(d)/100):s}function sx(r){return!!r&&ek.some(s=>r[s]!==void 0&&String(r[s]).trim()!=="")}var fT=he(_t(),1);async function ix(r){let s=await fetch(r,{credentials:"same-origin"});if(!s.ok)throw new Error(`${r}: HTTP ${s.status}`);return s}function lk(r){let s=r.theme;if(!s)return"";let d=m=>Object.entries(m||{}).map(([h,L])=>`--${h}: ${iT(h,String(L))};`).join(" "),c=sx(s.tokens)||sx(s.tokensDark)?" "+sT(!0).join(" "):"";return`:host { ${d(s.tokens)}${c} }
246
- ${s.tokensDark?`:host(.dark) { ${d(s.tokensDark)} }
247
- `:""}${s.css||""}`}function Yd(r,s,d){let c=r.querySelector(`style[${s}]`);return c||(c=document.createElement("style"),c.setAttribute(s,""),r.insertBefore(c,d||null)),c}async function cT(r){let s=await(await ix("/__rpf/api/boot")).json();return Ye.boot=s,Yd(r,"data-rp-theme",r.querySelector("style[data-rp-sheet]")).textContent=lk(s),Yd(r,"data-rp-sheet").textContent=await(await ix(s.sheet)).text(),s.theme&&(mL(s.theme.tokens),mL(s.theme.tokensDark)),Us.set(s.problems),Zu.set(s),s}async function nk(){nT(),Ju("react",ak),Ju("react-dom",ok),Ju("react-dom/client",dx),Ju("react/jsx-runtime",dT),Ju("react/jsx-dev-runtime",dT),Ju("@portal/runtime",MA),l1(wA);for(let[y,S]of Object.entries(s1))IL(y,S);for(let[y,S]of Object.entries(i1))IL(y,S);let r=document.querySelector("rp-dev-portal"),s=r.attachShadow({mode:"open"});Ye.element=r,Ye.shadow=s,Yd(s,"data-rp-framework").textContent=await(await ix("/__rpf/framework.css")).text(),Yd(s,"data-rp-theme"),Yd(s,"data-rp-sheet");let d=document.createElement("style");document.head.appendChild(d);let c=document.createElement("div");c.className="rp-dev-mount",c.style.height="100%",s.appendChild(c);let m=document.createElement("div");m.className="rp-overlay",m.setAttribute("data-rp-overlay",""),s.appendChild(m),Ye.overlay=m,Qu();let h=await cT(s);d.textContent=(s.querySelector("style[data-rp-sheet]")?.textContent||"").match(/@property[^}]+\}/g)?.join(`
248
- `)||"",wo.set(h.gen),zw(),Pw(),J1(),Od(),window.addEventListener("popstate",()=>{Qu(),Ku("pop")}),dx.createRoot(c).render((0,fT.jsx)(oT,{})),window.__RPF_DEV__={host:Ye,version:"0.1.0",ready:!0};let L=new EventSource("/__rpf/events");L.onmessage=async y=>{let S=JSON.parse(y.data);if(S.type==="problems")Us.set(S.problems);else if(S.type==="remount"||S.type==="css"||S.type==="structure"){let A=performance.now();await cT(s),S.type!=="css"&&(zp(),wo.set(S.gen),r1(S.gen-1)),window.__RPF_DEV__.lastUpdate={gen:S.gen,type:S.type,at:Date.now(),ms:Math.round(performance.now()-A)}}else S.type==="reload"&&location.reload()}}nk().catch(r=>{console.error("[rpf dev] boot failed",r),document.body.innerHTML=`<pre style="padding:16px;color:#b91c1c;white-space:pre-wrap">rpf dev: ${String(r&&r.message)}</pre>`});
29
+ `;function cd({problems:e}){let a=id(!0,1e3),[t,o]=Z.useState(null),r=w(Je,i=>i),s=w(ke,i=>i);Z.useEffect(()=>{let i=!0;return fetch("/__rpf/status").then(p=>p.json()).then(p=>i&&o(p)).catch(()=>{}),()=>{i=!1}},[Math.floor(a/2)]);let l=window.__RPF_AGENT__,f=l?l.serverLog().slice().reverse():[],u=l?l.console().slice().reverse():[],n=l?l.amb():null,c=l?l.idle():null,d=F.queryClient.getQueryCache().getAll(),m=Hr(),L=t&&t.staging?t.staging:null;return(0,I.jsxs)("div",{className:"grid gap-2 p-2 text-xs",children:[(0,I.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-1",children:[(0,I.jsx)("span",{className:"font-semibold",children:"rpf dev"}),(0,I.jsxs)("span",{className:"rounded border px-1.5 font-mono",children:["gen ",s]}),(0,I.jsx)("span",{className:"rounded border px-1.5",children:r&&r.session==="header"?"header-signed (no record watch)":"UI session"}),(0,I.jsx)("span",{className:"rounded border px-1.5",children:r&&r.portal.onInstance?"on the instance":"local portal"}),(0,I.jsx)("span",{className:"ml-auto truncate text-muted-foreground",children:"window.__RPF_AGENT__"})]}),(0,I.jsx)(Ca,{title:"Problems",count:e.length,open:e.length>0,children:e.length?(0,I.jsx)(Sa,{children:e.map((i,p)=>(0,I.jsxs)("div",{className:i.level==="error"?"text-destructive":"",children:[i.component?(0,I.jsx)("b",{children:i.component}):null,i.file?` ${i.file}${i.line?":"+i.line+(i.column?":"+i.column:""):""}`:""," ",i.message]},p))}):(0,I.jsx)("div",{className:"text-muted-foreground",children:"No compile errors or missing components."})}),(0,I.jsx)(Ca,{title:"Staged server scripts",count:L?L.components.length:void 0,children:L?(0,I.jsxs)(Sa,{children:[(0,I.jsxs)("div",{className:"text-muted-foreground",children:["staging"," ",L.available===null?"not asked yet":L.available?"available":"unavailable: "+(L.message||"")]}),L.components.map(i=>(0,I.jsxs)("div",{className:i.ok===!1?"text-destructive":"",children:[i.uid," ",i.hash," ",i.ok===null?"staging\u2026":i.ok?"staged":"refused "+i.code]},i.uid))]}):(0,I.jsx)("div",{className:"text-muted-foreground",children:"Loading\u2026"})}),(0,I.jsx)(Ca,{title:"Server calls",count:f.length,children:(0,I.jsxs)(Sa,{children:[f.slice(0,40).map((i,p)=>(0,I.jsxs)("div",{className:i.status>=400||i.status===0?"text-destructive":"",children:[Ll(i.at)," ",i.kind,i.action?" "+i.action:""," ",i.target||"(page)",i.instances!==void 0?` \xD7${i.instances}`:""," ",i.status," ",i.ms,"ms",i.error?" "+i.error:""]},p)),f.length?null:(0,I.jsx)("span",{className:"text-muted-foreground",children:"No server calls yet."})]})}),(0,I.jsx)(Ca,{title:"Record watch",count:n?n.channels.length:0,children:(0,I.jsxs)(Sa,{children:[(0,I.jsxs)("div",{children:["connection: ",n?n.state.connection:"not started"]}),n?n.channels.map(i=>(0,I.jsxs)("div",{className:i.status==="denied"||i.status==="error"?"text-destructive":"",children:[i.status," \xD7",i.listeners," ",i.channel,i.actual!==i.channel?" \u2192 "+i.actual:""]},i.channel)):null]})}),(0,I.jsx)(Ca,{title:"Cache and fetches",children:(0,I.jsxs)(Sa,{children:[(0,I.jsxs)("div",{children:["fetches in flight: ",c?c.pending:"?"," \xB7 ",c&&c.idle?"idle":"busy"]}),t?(0,I.jsxs)("div",{children:["proxy: ",t.proxied," requests, mean ",t.proxyMsMean,"ms \xB7 compiles: ",t.compiles,", mean ",t.compileMsMean,"ms \xB7 ",t.components," components"]}):null,(0,I.jsxs)("div",{className:"mt-1 text-muted-foreground",children:["on-load results (",m.length," instances)"]}),m.map(i=>(0,I.jsxs)("div",{children:[i.id," ",i.ready," ready",i.pending?` \xB7 ${i.pending} pending`:"",i.error?` \xB7 ${i.error} error`:""]},i.id)),(0,I.jsxs)("div",{className:"mt-1 text-muted-foreground",children:["query cache (",d.length,")"]}),d.slice(0,40).map(i=>(0,I.jsxs)("div",{children:[i.state.status,"/",i.state.fetchStatus," ",i.queryHash.slice(0,120)]},i.queryHash))]})}),(0,I.jsx)(Ca,{title:"Console errors",count:u.length,open:u.length>0,children:(0,I.jsxs)(Sa,{children:[u.slice(0,30).map((i,p)=>(0,I.jsxs)("div",{className:"text-destructive",children:[Ll(i.at)," ",i.text]},p)),u.length?null:(0,I.jsx)("span",{className:"text-muted-foreground",children:"None."})]})})]})}function hl({problems:e}){let a=w(e,y=>y),t=w(ke,y=>y),[o,r]=Z.useState(ud),[s,l]=Z.useState(!1),[f,u]=Z.useState(!1),[n,c]=Z.useState(null),[d,m]=Z.useState(!1),[L,i]=Z.useState({w:0,h:0}),[p,S]=Z.useState(Tt),x=Z.useRef(null),v=Z.useRef(null),P=Z.useRef(!1),D=Z.useRef(void 0),B=a.filter(y=>y.level==="error").length,V=a.length-B,U=B?"bg-destructive":V?"bg-amber-500":"bg-emerald-500",C=!o.compact||f||s,E=y=>r(W=>{let R={...W,...y};try{localStorage.setItem(xl,JSON.stringify(R))}catch{}return R});Z.useLayoutEffect(()=>{let y=x.current;if(!y)return;let W=new ResizeObserver(()=>i({w:y.offsetWidth,h:y.offsetHeight}));return W.observe(y),i({w:y.offsetWidth,h:y.offsetHeight}),()=>W.disconnect()},[C]),Z.useEffect(()=>{let y=()=>S(Tt());return addEventListener("resize",y),()=>removeEventListener("resize",y)},[]);let Y=dd(o.compact&&!C?o:{...o,compact:!1},L.w,L.h,p),h=n||Y,N=Z.useRef({size:L,vp:p,drag:n});N.current={size:L,vp:p,drag:n};let le=y=>{if(y.button!==0)return;let W={x:y.clientX,y:y.clientY,ox:y.clientX-h.x,oy:y.clientY-h.y,moved:!1,t:performance.now(),vx:0,vy:0};v.current=W;let R=q=>{if(!W.moved&&Math.hypot(q.clientX-W.x,q.clientY-W.y)<rd)return;W.moved=!0;let ae=performance.now(),he=q.clientX-W.ox,O=q.clientY-W.oy,He=N.current.drag,$e=Math.max(1,ae-W.t);He&&(W.vx=(he-He.x)/$e,W.vy=(O-He.y)/$e),W.t=ae,m(!1),c({x:he,y:O}),N.current.drag={x:he,y:O}},z=()=>{removeEventListener("pointermove",R),removeEventListener("pointerup",z),removeEventListener("pointercancel",z),v.current=null;let q=N.current.drag;if(!W.moved||!q)return;P.current=!0;let{size:ae,vp:he}=N.current,O=nd(q.x+W.vx*cl,q.y+W.vy*cl,ae.w,ae.h,he);m(!0),c(null),E(O),setTimeout(()=>m(!1),qo)};addEventListener("pointermove",R),addEventListener("pointerup",z),addEventListener("pointercancel",z)},fe=y=>{P.current&&(P.current=!1,y.stopPropagation(),y.preventDefault())},me=y=>{if(y.key==="Escape"){if(s)l(!1);else if(!o.compact||f)u(!1),E({compact:!0});else return;y.stopPropagation()}else y.altKey&&ml[y.key]&&(y.preventDefault(),m(!0),E({edge:ml[y.key]}),setTimeout(()=>m(!1),qo))},A=y=>{clearTimeout(D.current),y.pointerType==="mouse"&&o.compact&&!f&&(D.current=setTimeout(()=>u(!0),120))},M=()=>{clearTimeout(D.current),f&&!n&&(D.current=setTimeout(()=>u(!1),350))},$={position:"fixed",zIndex:2147483001,width:Math.min(560,p.w-16)};ja(o.edge)?($.left=ra(Y.x+L.w-$.width,8,p.w-$.width-8),o.edge==="bottom"?$.bottom=p.h-Y.y+6:$.top=Y.y+L.h+6,$.maxHeight=Math.min(p.h*.7,o.edge==="bottom"?Y.y-14:p.h-Y.y-L.h-14)):(o.edge==="right"?$.right=p.w-Y.x+6:$.left=Y.x+L.w+6,$.top=ra(Y.y-40,8,p.h*.3),$.maxHeight=p.h*.7);let j=o.compact&&C,Xe=ld[j?sd[o.edge]:o.edge],ye=(0,I.jsxs)("div",{"data-rpf-overlay":"",className:"text-xs",children:[(0,I.jsx)("style",{children:fd}),s?(0,I.jsx)("div",{"data-rpf-dock-drawer":"",className:"overflow-auto rounded-lg border bg-card text-card-foreground shadow-xl",style:{...$,visibility:n?"hidden":"visible"},onKeyDown:y=>{y.key==="Escape"&&(y.stopPropagation(),l(!1))},children:(0,I.jsx)(cd,{problems:a})}):null,(0,I.jsx)("div",{ref:x,role:"group","aria-label":"rpf dev diagnostics","data-rpf-dock":"","data-edge":o.edge,"data-compact":o.compact?"":void 0,style:{position:"fixed",left:0,top:0,zIndex:2147483e3,transform:`translate3d(${Math.round(h.x)}px, ${Math.round(h.y)}px, 0)`,transition:d&&!n?`transform ${qo}ms cubic-bezier(0.22, 1, 0.36, 1)`:"none",touchAction:"none",userSelect:"none",opacity:L.w?1:0,cursor:n?"grabbing":void 0},onPointerDown:le,onClickCapture:fe,onKeyDown:me,onPointerEnter:A,onPointerLeave:M,children:C?(0,I.jsxs)("div",{className:"flex w-max items-center gap-px rounded-full border bg-card p-0.5 whitespace-nowrap text-card-foreground shadow-lg",children:[(0,I.jsx)("span",{"aria-hidden":"true",title:"Drag to move",className:"flex cursor-grab pr-px pl-1 text-muted-foreground",children:(0,I.jsx)(Ka,{size:12})}),(0,I.jsxs)("button",{type:"button",onClick:()=>l(y=>!y),"aria-expanded":s,title:s?"Close diagnostics":"Open diagnostics","data-rpf-dock-toggle":"",className:"flex cursor-pointer items-center gap-2 rounded-full px-2 py-[3px] font-semibold hover:bg-muted",children:[(0,I.jsx)("span",{className:"inline-block size-2 rounded-full "+U}),"rpf dev \xB7 gen ",t,a.length?(0,I.jsx)("span",{className:"rounded-full px-1.5 font-mono text-[10px] "+(B?"bg-destructive text-white":"bg-amber-500 text-black"),children:a.length}):null]}),(0,I.jsx)("button",{type:"button",onClick:()=>{u(!1),j?E({compact:!1}):(l(!1),E({compact:!0}))},"aria-label":j?"Keep diagnostics expanded":"Compact diagnostics",title:j?"Keep expanded":"Compact to the edge (Esc)",className:"flex cursor-pointer items-center rounded-full p-[3px] text-muted-foreground hover:bg-muted",children:(0,I.jsx)(Xe,{size:14})})]}):(0,I.jsx)("button",{type:"button",onClick:()=>E({compact:!1}),"aria-label":"Expand rpf dev diagnostics",title:"rpf dev: click to expand, drag to move",className:"flex cursor-pointer items-center justify-center border bg-card shadow-lg hover:bg-muted",style:{width:ja(o.edge)?28:pl,height:ja(o.edge)?pl:28,borderRadius:o.edge==="bottom"?"8px 8px 0 0":o.edge==="top"?"0 0 8px 8px":o.edge==="left"?"0 8px 8px 0":"8px 0 0 8px"},children:(0,I.jsx)("span",{className:"inline-block size-2 rounded-full "+U})})})]});return F.overlay?(0,gl.createPortal)(ye,F.overlay):ye}var se=k(ee(),1),wa=oe([]);function pd(){let e=w(re,t=>t),a=w(Je,t=>t);Cl.useLayoutEffect(()=>{if(!a)return;let t=ne(),o=at(t.page,t),r=o?o.variant?o.variant.regions:o.page.regions:{};Q.set({resolved:o,path:t.page,regions:r}),o&&md(o)},[e,a])}var Il="";function md(e){let a=e.page.id;if(a===Il)return!1;Il=a;let t=re.get();if(t.panel==="none")return!1;let o=Te(e.page.route);if(t.panel&&o.some(l=>l.key===t.panel))return!1;let r=e.variant?e.variant.defaultPanel:e.page.defaultPanel;if(!r||!r.key||!o.some(l=>l.key===r.key)||ot.get().isMobile&&!r.mobile)return!1;let s={...t,panel:r.key,panelArgs:je(r.args)};return history.replaceState({...history.state||{},position:history.state?.position??0},"",Ke(s)),Ze(),ea("replace"),!0}function Ld(){let e=w(Q,n=>n),a=T(),t=e.resolved,o=t?t.variant&&t.variant.layout||t.page.layout:null,r=o||a.layout,s=r?a.components[r]:void 0,l=s&&s.regions||[],f={...s&&s.defaults||{},...o?{}:a.layoutOptions,...t&&t.page.layoutOptions||{},...t&&t.variant&&t.variant.layoutOptions||{}},u=l.find(n=>n.name==="main")?"main":l.find(n=>!n.acceptsContributions)?.name||"main";return{uid:r,info:{layout:s?{uniqueId:s.uniqueId,name:s.name,kind:s.kind,regions:l,defaults:s.defaults}:null,options:f,mainRegion:u,regions:l}}}var Fo={full:"none","7xl":"80rem","6xl":"72rem","5xl":"64rem","4xl":"56rem","3xl":"48rem"};function gd(){let e=Q.get().resolved,a=e?e.variant?e.variant.contentWidth:e.page.contentWidth:"inherit",t=String(T().portal.settings.contentWidth||"");return Fo[a]||Fo[t]||Fo["7xl"]}function xd(){pd(),xt("main");let{uid:e,info:a}=Ld(),t=Ea(e);if(!e&&T().stage)return(0,se.jsx)(hd,{});if(!e)return(0,se.jsx)("div",{className:"p-6 text-sm text-muted-foreground",children:"This portal has no layout."});if(t.status==="loading")return(0,se.jsx)("div",{"data-rp-loading":"layout"});if(t.status==="error")return(0,se.jsxs)("div",{role:"alert",className:"p-6 text-destructive",children:["Layout ",e,": ",String(t.error&&t.error.message)]});let o=t.ns&&t.ns.default;return(0,se.jsx)(mt.Provider,{value:a,children:(0,se.jsx)("div",{style:{display:"contents","--rp-content-max":gd()},children:(0,se.jsx)(Fe,{label:e,children:(0,se.jsx)(o,{regions:a.regions,options:a.options})})})})}function hd(){let e=T().stage;return(0,se.jsx)("div",{"data-rp-stage":e.component,style:{padding:"24px",minHeight:"100%",boxSizing:"border-box"},children:e.note?(0,se.jsx)("p",{style:{opacity:.7,fontSize:"14px"},children:e.note}):(0,se.jsx)(gt,{name:"main"})})}function Sl(){let e=w(ke,t=>t);return w(Je,t=>t)?(0,se.jsxs)(Zo,{client:F.queryClient,children:[(0,se.jsx)("div",{className:"rp-dev-root","data-rp-gen":e,style:{height:"100%",containerType:"inline-size",containerName:"rp-page"},children:(0,se.jsx)(xd,{},e)}),(0,se.jsx)(Js,{}),(0,se.jsx)(hl,{problems:wa})]}):null}var wl=200,Bt=[],Eo=[],qt=0,Ft=Date.now();function Za(e,a){e.push(a),e.length>wl&&e.splice(0,e.length-wl)}function Et(e){if(e instanceof Error)return`${e.name}: ${e.message}`;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var Id=e=>/\/amb(\?|$)|\/__rpf\/events/.test(e);function yl(){let e=window;if(e.__RPF_AGENT__)return;let a=console.error.bind(console);console.error=(...o)=>{Za(Bt,{at:Date.now(),text:o.map(Et).join(" ").slice(0,2e3)}),a(...o)},window.addEventListener("error",o=>Za(Bt,{at:Date.now(),text:`uncaught: ${o.message||Et(o.error)}`.slice(0,2e3)})),window.addEventListener("unhandledrejection",o=>Za(Bt,{at:Date.now(),text:`unhandled rejection: ${Et(o.reason)}`.slice(0,2e3)}));let t=window.fetch.bind(window);window.fetch=(async(o,r)=>{let s=typeof o=="string"?o:o instanceof URL?o.href:o.url,l=!Id(s),f=performance.now();l&&(qt++,Ft=Date.now());let u=/\/__rpf\/server\/(initialize|execute\/(.+))$/.exec(s.split("?")[0]),n=null;if(u&&r&&typeof r.body=="string")try{n=JSON.parse(r.body)}catch{n=null}try{let c=await t(o,r);if(u){let d="";c.ok||(d=(await c.clone().text().catch(()=>"")).slice(0,300)),Za(Eo,{at:Date.now(),kind:u[1]==="initialize"?"initialize":n&&n.embed?"embed":"execute",target:u[2]?decodeURIComponent(u[2]):String(n&&n.page||""),instances:n&&Array.isArray(n.instances)?n.instances.length:void 0,action:n&&n.action?String(n.action):void 0,status:c.status,ms:Math.round(performance.now()-f),error:d||void 0})}return c}catch(c){throw u&&Za(Eo,{at:Date.now(),kind:u[1]==="initialize"?"initialize":"execute",target:u[2]?decodeURIComponent(u[2]):"",status:0,ms:Math.round(performance.now()-f),error:Et(c).slice(0,300)}),c}finally{l&&(qt--,Ft=Date.now())}}),e.__RPF_AGENT__={version:1,idle:(o=500)=>({idle:qt===0&&Date.now()-Ft>=o,pending:qt,lastActivity:Ft}),problems:()=>wa.get(),console:()=>Bt.slice(),serverLog:()=>Eo.slice(),amb:()=>e.__RPF_AMB__?{state:e.__RPF_AMB__.state(),channels:e.__RPF_AMB__.channels()}:null}}var Cd=["shadow-color","shadow-opacity","shadow-blur","shadow-spread","shadow-offset-x","shadow-offset-y"];var Sd=[{size:"2xs",m:.5,tw:[["0px","1px","0px","0px","rgb(0 0 0 / 0.05)"]]},{size:"xs",m:.5,tw:[["0px","1px","2px","0px","rgb(0 0 0 / 0.05)"]]},{size:"sm",m:1,second:["1px","2px"],tw:[["0px","1px","3px","0px","rgb(0 0 0 / 0.1)"],["0px","1px","2px","-1px","rgb(0 0 0 / 0.1)"]]},{size:"md",m:1,second:["2px","4px"],tw:[["0px","4px","6px","-1px","rgb(0 0 0 / 0.1)"],["0px","2px","4px","-2px","rgb(0 0 0 / 0.1)"]]},{size:"lg",m:1,second:["4px","6px"],tw:[["0px","10px","15px","-3px","rgb(0 0 0 / 0.1)"],["0px","4px","6px","-4px","rgb(0 0 0 / 0.1)"]]},{size:"xl",m:1,second:["8px","10px"],tw:[["0px","20px","25px","-5px","rgb(0 0 0 / 0.1)"],["0px","8px","10px","-6px","rgb(0 0 0 / 0.1)"]]},{size:"2xl",m:2.5,tw:[["0px","25px","50px","-12px","rgb(0 0 0 / 0.25)"]]}],bl=["x","y","b","s","c"],kl=e=>`color-mix(in oklab, var(--shadow-color) calc(var(--shadow-opacity) * ${e*100}%), transparent)`;function vl(e){let a=[];for(let t of Sd){let o=e?[["var(--shadow-offset-x)","var(--shadow-offset-y)","var(--shadow-blur)","var(--shadow-spread)",kl(t.m)]].concat(t.second?[["var(--shadow-offset-x)",t.second[0],t.second[1],"calc(var(--shadow-spread) - 1px)",kl(1)]]:[]):t.tw,r=[];o.forEach((s,l)=>{bl.forEach((f,u)=>a.push(`--rp-shadow-${t.size}-${l+1}-${f}: ${s[u]};`)),r.push(bl.map(f=>`var(--rp-shadow-${t.size}-${l+1}-${f})`).join(" "))}),a.push(`--shadow-${t.size}: ${r.join(", ")};`)}return a}function Pl(e,a){let t=String(a).trim();return/^shadow-(blur|spread|offset-x|offset-y)$/.test(e)&&/^-?(\d+\.?\d*|\.\d+)$/.test(t)?t+"px":e==="shadow-opacity"&&/^\d+\.?\d*%$/.test(t)?String(parseFloat(t)/100):a}function Oo(e){return!!e&&Cd.some(a=>e[a]!==void 0&&String(e[a]).trim()!=="")}var Dl=k(ee(),1);async function Ho(e){let a=await fetch(e,{credentials:"same-origin"});if(!a.ok)throw new Error(`${e}: HTTP ${a.status}`);return a}function bd(e){let a=e.theme;if(!a)return"";let t=r=>Object.entries(r||{}).map(([s,l])=>`--${s}: ${Pl(s,String(l))};`).join(" "),o=Oo(a.tokens)||Oo(a.tokensDark)?" "+vl(!0).join(" "):"";return`:host { ${t(a.tokens)}${o} }
30
+ ${a.tokensDark?`:host(.dark) { ${t(a.tokensDark)} }
31
+ `:""}${a.css||""}`}function Ja(e,a,t){let o=e.querySelector(`style[${a}]`);return o||(o=document.createElement("style"),o.setAttribute(a,""),e.insertBefore(o,t||null)),o}async function Al(e){let a=await(await Ho("/__rpf/api/boot")).json();return F.boot=a,Ja(e,"data-rp-theme",e.querySelector("style[data-rp-sheet]")).textContent=bd(a),Ja(e,"data-rp-sheet").textContent=await(await Ho(a.sheet)).text(),a.theme&&(Gt(a.theme.tokens),Gt(a.theme.tokensDark)),wa.set(a.problems),Je.set(a),a}async function kd(){yl(),Qe("react",wd),Qe("react-dom",yd),Qe("react-dom/client",Uo),Qe("react/jsx-runtime",Rl),Qe("react/jsx-dev-runtime",Rl),Qe("@portal/runtime",js),yr(Vs);for(let[f,u]of Object.entries(Pr))Qt(f,u);for(let[f,u]of Object.entries(Rr))Qt(f,u);let e=document.querySelector("rp-dev-portal"),a=e.attachShadow({mode:"open"});F.element=e,F.shadow=a,Ja(a,"data-rp-framework").textContent=await(await Ho("/__rpf/framework.css")).text(),Ja(a,"data-rp-theme"),Ja(a,"data-rp-sheet");let t=document.createElement("style");document.head.appendChild(t);let o=document.createElement("div");o.className="rp-dev-mount",o.style.height="100%",a.appendChild(o);let r=document.createElement("div");r.className="rp-overlay",r.setAttribute("data-rp-overlay",""),a.appendChild(r),F.overlay=r,Ze();let s=await Al(a);t.textContent=(a.querySelector("style[data-rp-sheet]")?.textContent||"").match(/@property[^}]+\}/g)?.join(`
32
+ `)||"",ke.set(s.gen),nr(),ir(),ms(),Oa(),window.addEventListener("popstate",()=>{Ze(),ea("pop")}),Uo.createRoot(o).render((0,Dl.jsx)(Sl,{})),window.__RPF_DEV__={host:F,version:"0.1.0",ready:!0};let l=new EventSource("/__rpf/events");l.onmessage=async f=>{let u=JSON.parse(f.data);if(u.type==="problems")wa.set(u.problems);else if(u.type==="remount"||u.type==="css"||u.type==="structure"){let n=performance.now();await Al(a),u.type!=="css"&&(ct(),ke.set(u.gen),vr(u.gen-1)),window.__RPF_DEV__.lastUpdate={gen:u.gen,type:u.type,at:Date.now(),ms:Math.round(performance.now()-n)}}else u.type==="reload"&&location.reload()}}kd().catch(e=>{console.error("[rpf dev] boot failed",e),document.body.innerHTML=`<pre style="padding:16px;color:#b91c1c;white-space:pre-wrap">rpf dev: ${String(e&&e.message)}</pre>`});
249
33
  /*! For license information please see boot.js.LEGAL.txt */
250
34
  //# sourceMappingURL=boot.js.map