projax 3.3.51 → 3.3.52

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 (162) hide show
  1. package/README.md +0 -73
  2. package/coverage/core-bridge.ts.html +24 -3
  3. package/coverage/index.html +34 -19
  4. package/coverage/lcov-report/core-bridge.ts.html +24 -3
  5. package/coverage/lcov-report/index.html +34 -19
  6. package/coverage/lcov-report/port-extractor.ts.html +1 -1
  7. package/coverage/lcov-report/port-scanner.ts.html +3 -3
  8. package/coverage/lcov-report/port-utils.ts.html +1 -1
  9. package/coverage/lcov-report/script-runner.ts.html +302 -11
  10. package/coverage/lcov-report/test-parser.ts.html +799 -0
  11. package/coverage/lcov.info +270 -49
  12. package/coverage/port-extractor.ts.html +1 -1
  13. package/coverage/port-scanner.ts.html +3 -3
  14. package/coverage/port-utils.ts.html +1 -1
  15. package/coverage/script-runner.ts.html +302 -11
  16. package/coverage/test-parser.ts.html +799 -0
  17. package/dist/__tests__/port-scanner.test.js +17 -7
  18. package/dist/__tests__/script-runner.test.js +17 -7
  19. package/dist/api/__tests__/database.test.js +17 -7
  20. package/dist/api/__tests__/database.test.js.map +1 -1
  21. package/dist/api/__tests__/routes.test.js +18 -7
  22. package/dist/api/__tests__/routes.test.js.map +1 -1
  23. package/dist/api/__tests__/scanner.test.js +18 -7
  24. package/dist/api/__tests__/scanner.test.js.map +1 -1
  25. package/dist/api/database.d.ts +0 -8
  26. package/dist/api/database.d.ts.map +1 -1
  27. package/dist/api/database.js +24 -57
  28. package/dist/api/database.js.map +1 -1
  29. package/dist/api/index.js +19 -9
  30. package/dist/api/index.js.map +1 -1
  31. package/dist/api/migrate.js +1 -2
  32. package/dist/api/migrate.js.map +1 -1
  33. package/dist/api/package.json +6 -3
  34. package/dist/api/routes/backup.d.ts +2 -1
  35. package/dist/api/routes/backup.d.ts.map +1 -1
  36. package/dist/api/routes/backup.js.map +1 -1
  37. package/dist/api/routes/index.d.ts +2 -1
  38. package/dist/api/routes/index.d.ts.map +1 -1
  39. package/dist/api/routes/index.js +0 -2
  40. package/dist/api/routes/index.js.map +1 -1
  41. package/dist/api/routes/projects.d.ts +2 -1
  42. package/dist/api/routes/projects.d.ts.map +1 -1
  43. package/dist/api/routes/projects.js +17 -7
  44. package/dist/api/routes/projects.js.map +1 -1
  45. package/dist/api/routes/settings.d.ts +2 -1
  46. package/dist/api/routes/settings.d.ts.map +1 -1
  47. package/dist/api/routes/settings.js +22 -57
  48. package/dist/api/routes/settings.js.map +1 -1
  49. package/dist/api/routes/workspaces.d.ts +2 -1
  50. package/dist/api/routes/workspaces.d.ts.map +1 -1
  51. package/dist/api/routes/workspaces.js +21 -96
  52. package/dist/api/routes/workspaces.js.map +1 -1
  53. package/dist/api/services/scanner.js +19 -10
  54. package/dist/api/services/scanner.js.map +1 -1
  55. package/dist/api/services/test-parser.js +2 -3
  56. package/dist/api/services/test-parser.js.map +1 -1
  57. package/dist/api/types.d.ts +0 -5
  58. package/dist/api/types.d.ts.map +1 -1
  59. package/dist/core/__tests__/database.test.js +17 -7
  60. package/dist/core/__tests__/detector.test.js +17 -7
  61. package/dist/core/__tests__/index.test.js +18 -7
  62. package/dist/core/__tests__/scanner.test.js +18 -7
  63. package/dist/core/__tests__/settings.test.js +18 -7
  64. package/dist/core/backup-utils.js +20 -11
  65. package/dist/core/database.js +18 -9
  66. package/dist/core/detector.js +21 -11
  67. package/dist/core/git-utils.js +19 -10
  68. package/dist/core/index.js +5 -5
  69. package/dist/core/scanner.js +2 -3
  70. package/dist/core/settings.d.ts +0 -85
  71. package/dist/core/settings.js +9 -306
  72. package/dist/core/workspace-utils.js +20 -11
  73. package/dist/core-bridge.js +22 -8
  74. package/dist/electron/core/__tests__/database.test.js +17 -7
  75. package/dist/electron/core/__tests__/detector.test.js +17 -7
  76. package/dist/electron/core/__tests__/index.test.js +18 -7
  77. package/dist/electron/core/__tests__/scanner.test.js +18 -7
  78. package/dist/electron/core/__tests__/settings.test.js +18 -7
  79. package/dist/electron/core/backup-utils.js +20 -11
  80. package/dist/electron/core/database.js +18 -9
  81. package/dist/electron/core/detector.js +21 -11
  82. package/dist/electron/core/git-utils.js +19 -10
  83. package/dist/electron/core/index.js +5 -5
  84. package/dist/electron/core/scanner.js +2 -3
  85. package/dist/electron/core/settings.d.ts +0 -85
  86. package/dist/electron/core/settings.js +9 -306
  87. package/dist/electron/core/workspace-utils.js +20 -11
  88. package/dist/electron/core.js +22 -8
  89. package/dist/electron/main.js +143 -444
  90. package/dist/electron/port-extractor.js +18 -9
  91. package/dist/electron/port-scanner.js +21 -12
  92. package/dist/electron/port-utils.js +4 -5
  93. package/dist/electron/preload.d.ts +2 -13
  94. package/dist/electron/preload.js +2 -9
  95. package/dist/electron/renderer/assets/index-BjZn_mEF.js +66 -0
  96. package/dist/electron/renderer/assets/index-CZmDxbJO.js +66 -0
  97. package/dist/electron/renderer/assets/{index-DWe2TQFv.css → index-DfocdjIj.css} +1 -1
  98. package/dist/electron/renderer/index.html +2 -2
  99. package/dist/electron/script-runner.js +29 -20
  100. package/dist/index.js +37 -134
  101. package/dist/port-extractor.js +18 -9
  102. package/dist/port-scanner.js +21 -12
  103. package/dist/port-utils.js +4 -5
  104. package/dist/prxi.d.ts +1 -0
  105. package/dist/prxi.js +1106 -0
  106. package/dist/prxi.tsx +6 -6
  107. package/dist/script-runner.js +29 -20
  108. package/dist/test-parser.js +2 -3
  109. package/jest.config.js +8 -0
  110. package/package.json +9 -6
  111. package/dist/api/routes/mcp.d.ts +0 -3
  112. package/dist/api/routes/mcp.d.ts.map +0 -1
  113. package/dist/api/routes/mcp.js +0 -147
  114. package/dist/api/routes/mcp.js.map +0 -1
  115. package/dist/electron/renderer/assets/index-59AhiV_K.css +0 -1
  116. package/dist/electron/renderer/assets/index-A04svynq.js +0 -62
  117. package/dist/electron/renderer/assets/index-B-etDnj2.js +0 -64
  118. package/dist/electron/renderer/assets/index-BGodNljq.js +0 -62
  119. package/dist/electron/renderer/assets/index-Bx18Cyic.js +0 -64
  120. package/dist/electron/renderer/assets/index-ByBOaxqv.js +0 -62
  121. package/dist/electron/renderer/assets/index-ByHY-x-j.js +0 -62
  122. package/dist/electron/renderer/assets/index-C1SRt6Jx.js +0 -62
  123. package/dist/electron/renderer/assets/index-C8f5yNYe.js +0 -64
  124. package/dist/electron/renderer/assets/index-C9Fo49a8.js +0 -61
  125. package/dist/electron/renderer/assets/index-CGx7K7jh.js +0 -62
  126. package/dist/electron/renderer/assets/index-CIZ3Wl6c.css +0 -1
  127. package/dist/electron/renderer/assets/index-CJbsU9y8.css +0 -1
  128. package/dist/electron/renderer/assets/index-CJrLunKK.js +0 -62
  129. package/dist/electron/renderer/assets/index-CQTleudf.css +0 -1
  130. package/dist/electron/renderer/assets/index-CQcilqlv.js +0 -62
  131. package/dist/electron/renderer/assets/index-CS-85xbL.css +0 -1
  132. package/dist/electron/renderer/assets/index-CYph0WPA.js +0 -62
  133. package/dist/electron/renderer/assets/index-C_WSLD6y.css +0 -1
  134. package/dist/electron/renderer/assets/index-CgB-tTpV.js +0 -62
  135. package/dist/electron/renderer/assets/index-ChoTzPLo.css +0 -1
  136. package/dist/electron/renderer/assets/index-CopVNRnR.js +0 -64
  137. package/dist/electron/renderer/assets/index-D1jmaGv5.css +0 -1
  138. package/dist/electron/renderer/assets/index-D2AOB6Er.js +0 -62
  139. package/dist/electron/renderer/assets/index-DAfjuYKX.js +0 -61
  140. package/dist/electron/renderer/assets/index-DEOOHPEi.css +0 -1
  141. package/dist/electron/renderer/assets/index-DTtg6XrF.css +0 -1
  142. package/dist/electron/renderer/assets/index-DUvcepWm.js +0 -64
  143. package/dist/electron/renderer/assets/index-DVWDlM1D.js +0 -62
  144. package/dist/electron/renderer/assets/index-DZzB20Xf.css +0 -1
  145. package/dist/electron/renderer/assets/index-Dk0EQt0u.css +0 -1
  146. package/dist/electron/renderer/assets/index-DknLdADV.js +0 -63
  147. package/dist/electron/renderer/assets/index-DocuD8Lk.js +0 -64
  148. package/dist/electron/renderer/assets/index-DwRy5FqP.js +0 -62
  149. package/dist/electron/renderer/assets/index-DyU-xfd8.css +0 -1
  150. package/dist/electron/renderer/assets/index-GwC-JVUy.css +0 -1
  151. package/dist/electron/renderer/assets/index-JXrtTB1F.js +0 -63
  152. package/dist/electron/renderer/assets/index-Ocrdv8Lb.css +0 -1
  153. package/dist/electron/renderer/assets/index-R-HsWJ0K.js +0 -62
  154. package/dist/electron/renderer/assets/index-Ytah0wbZ.js +0 -62
  155. package/dist/electron/renderer/assets/index-ZVyXUshO.css +0 -1
  156. package/dist/electron/renderer/assets/index-Z_8dJn3i.js +0 -62
  157. package/dist/electron/renderer/assets/index-fehviker.js +0 -63
  158. package/dist/electron/renderer/assets/index-nts9ST-M.js +0 -62
  159. package/dist/electron/renderer/assets/index-q8NVIH3g.css +0 -1
  160. package/dist/electron/renderer/assets/index-thUWIXon.js +0 -62
  161. package/dist/electron/renderer/assets/index-tuQmrwcm.css +0 -1
  162. package/dist/prxi/src/index.tsx +0 -1370
@@ -1,63 +0,0 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))a(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const w of g.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&a(w)}).observe(document,{childList:!0,subtree:!0});function s(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function a(p){if(p.ep)return;p.ep=!0;const g=s(p);fetch(p.href,g)}})();function al(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function Ef(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var f=u.default;if(typeof f=="function"){var s=function a(){return this instanceof a?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};s.prototype=f.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(u).forEach(function(a){var p=Object.getOwnPropertyDescriptor(u,a);Object.defineProperty(s,a,p.get?p:{enumerable:!0,get:function(){return u[a]}})}),s}var bs={exports:{}},Ar={},Zs={exports:{}},me={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var qu;function Pf(){if(qu)return me;qu=1;var u=Symbol.for("react.element"),f=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),x=Symbol.iterator;function D(h){return h===null||typeof h!="object"?null:(h=x&&h[x]||h["@@iterator"],typeof h=="function"?h:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,O={};function T(h,z,q){this.props=h,this.context=z,this.refs=O,this.updater=q||U}T.prototype.isReactComponent={},T.prototype.setState=function(h,z){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,z,"setState")},T.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function L(){}L.prototype=T.prototype;function _(h,z,q){this.props=h,this.context=z,this.refs=O,this.updater=q||U}var C=_.prototype=new L;C.constructor=_,X(C,T.prototype),C.isPureReactComponent=!0;var M=Array.isArray,H=Object.prototype.hasOwnProperty,G={current:null},y={key:!0,ref:!0,__self:!0,__source:!0};function j(h,z,q){var Z,ue={},pe=null,ge=null;if(z!=null)for(Z in z.ref!==void 0&&(ge=z.ref),z.key!==void 0&&(pe=""+z.key),z)H.call(z,Z)&&!y.hasOwnProperty(Z)&&(ue[Z]=z[Z]);var he=arguments.length-2;if(he===1)ue.children=q;else if(1<he){for(var Ee=Array(he),Ye=0;Ye<he;Ye++)Ee[Ye]=arguments[Ye+2];ue.children=Ee}if(h&&h.defaultProps)for(Z in he=h.defaultProps,he)ue[Z]===void 0&&(ue[Z]=he[Z]);return{$$typeof:u,type:h,key:pe,ref:ge,props:ue,_owner:G.current}}function $(h,z){return{$$typeof:u,type:h.type,key:z,ref:h.ref,props:h.props,_owner:h._owner}}function ne(h){return typeof h=="object"&&h!==null&&h.$$typeof===u}function ae(h){var z={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(q){return z[q]})}var oe=/\/+/g;function ce(h,z){return typeof h=="object"&&h!==null&&h.key!=null?ae(""+h.key):z.toString(36)}function Ne(h,z,q,Z,ue){var pe=typeof h;(pe==="undefined"||pe==="boolean")&&(h=null);var ge=!1;if(h===null)ge=!0;else switch(pe){case"string":case"number":ge=!0;break;case"object":switch(h.$$typeof){case u:case f:ge=!0}}if(ge)return ge=h,ue=ue(ge),h=Z===""?"."+ce(ge,0):Z,M(ue)?(q="",h!=null&&(q=h.replace(oe,"$&/")+"/"),Ne(ue,z,q,"",function(Ye){return Ye})):ue!=null&&(ne(ue)&&(ue=$(ue,q+(!ue.key||ge&&ge.key===ue.key?"":(""+ue.key).replace(oe,"$&/")+"/")+h)),z.push(ue)),1;if(ge=0,Z=Z===""?".":Z+":",M(h))for(var he=0;he<h.length;he++){pe=h[he];var Ee=Z+ce(pe,he);ge+=Ne(pe,z,q,Ee,ue)}else if(Ee=D(h),typeof Ee=="function")for(h=Ee.call(h),he=0;!(pe=h.next()).done;)pe=pe.value,Ee=Z+ce(pe,he++),ge+=Ne(pe,z,q,Ee,ue);else if(pe==="object")throw z=String(h),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return ge}function Ce(h,z,q){if(h==null)return h;var Z=[],ue=0;return Ne(h,Z,"","",function(pe){return z.call(q,pe,ue++)}),Z}function ye(h){if(h._status===-1){var z=h._result;z=z(),z.then(function(q){(h._status===0||h._status===-1)&&(h._status=1,h._result=q)},function(q){(h._status===0||h._status===-1)&&(h._status=2,h._result=q)}),h._status===-1&&(h._status=0,h._result=z)}if(h._status===1)return h._result.default;throw h._result}var ve={current:null},Y={transition:null},re={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:Y,ReactCurrentOwner:G};function V(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ce,forEach:function(h,z,q){Ce(h,function(){z.apply(this,arguments)},q)},count:function(h){var z=0;return Ce(h,function(){z++}),z},toArray:function(h){return Ce(h,function(z){return z})||[]},only:function(h){if(!ne(h))throw Error("React.Children.only expected to receive a single React element child.");return h}},me.Component=T,me.Fragment=s,me.Profiler=p,me.PureComponent=_,me.StrictMode=a,me.Suspense=E,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=V,me.cloneElement=function(h,z,q){if(h==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+h+".");var Z=X({},h.props),ue=h.key,pe=h.ref,ge=h._owner;if(z!=null){if(z.ref!==void 0&&(pe=z.ref,ge=G.current),z.key!==void 0&&(ue=""+z.key),h.type&&h.type.defaultProps)var he=h.type.defaultProps;for(Ee in z)H.call(z,Ee)&&!y.hasOwnProperty(Ee)&&(Z[Ee]=z[Ee]===void 0&&he!==void 0?he[Ee]:z[Ee])}var Ee=arguments.length-2;if(Ee===1)Z.children=q;else if(1<Ee){he=Array(Ee);for(var Ye=0;Ye<Ee;Ye++)he[Ye]=arguments[Ye+2];Z.children=he}return{$$typeof:u,type:h.type,key:ue,ref:pe,props:Z,_owner:ge}},me.createContext=function(h){return h={$$typeof:w,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},h.Provider={$$typeof:g,_context:h},h.Consumer=h},me.createElement=j,me.createFactory=function(h){var z=j.bind(null,h);return z.type=h,z},me.createRef=function(){return{current:null}},me.forwardRef=function(h){return{$$typeof:S,render:h}},me.isValidElement=ne,me.lazy=function(h){return{$$typeof:I,_payload:{_status:-1,_result:h},_init:ye}},me.memo=function(h,z){return{$$typeof:R,type:h,compare:z===void 0?null:z}},me.startTransition=function(h){var z=Y.transition;Y.transition={};try{h()}finally{Y.transition=z}},me.unstable_act=V,me.useCallback=function(h,z){return ve.current.useCallback(h,z)},me.useContext=function(h){return ve.current.useContext(h)},me.useDebugValue=function(){},me.useDeferredValue=function(h){return ve.current.useDeferredValue(h)},me.useEffect=function(h,z){return ve.current.useEffect(h,z)},me.useId=function(){return ve.current.useId()},me.useImperativeHandle=function(h,z,q){return ve.current.useImperativeHandle(h,z,q)},me.useInsertionEffect=function(h,z){return ve.current.useInsertionEffect(h,z)},me.useLayoutEffect=function(h,z){return ve.current.useLayoutEffect(h,z)},me.useMemo=function(h,z){return ve.current.useMemo(h,z)},me.useReducer=function(h,z,q){return ve.current.useReducer(h,z,q)},me.useRef=function(h){return ve.current.useRef(h)},me.useState=function(h){return ve.current.useState(h)},me.useSyncExternalStore=function(h,z,q){return ve.current.useSyncExternalStore(h,z,q)},me.useTransition=function(){return ve.current.useTransition()},me.version="18.3.1",me}var bu;function Hr(){return bu||(bu=1,Zs.exports=Pf()),Zs.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Zu;function Cf(){if(Zu)return Ar;Zu=1;var u=Hr(),f=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,p=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function w(S,E,R){var I,x={},D=null,U=null;R!==void 0&&(D=""+R),E.key!==void 0&&(D=""+E.key),E.ref!==void 0&&(U=E.ref);for(I in E)a.call(E,I)&&!g.hasOwnProperty(I)&&(x[I]=E[I]);if(S&&S.defaultProps)for(I in E=S.defaultProps,E)x[I]===void 0&&(x[I]=E[I]);return{$$typeof:f,type:S,key:D,ref:U,props:x,_owner:p.current}}return Ar.Fragment=s,Ar.jsx=w,Ar.jsxs=w,Ar}var Ju;function zf(){return Ju||(Ju=1,bs.exports=Cf()),bs.exports}var c=zf(),K=Hr();const ul=al(K);var eo={},Js={exports:{}},ot={},el={exports:{}},tl={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var ec;function _f(){return ec||(ec=1,(function(u){function f(Y,re){var V=Y.length;Y.push(re);e:for(;0<V;){var h=V-1>>>1,z=Y[h];if(0<p(z,re))Y[h]=re,Y[V]=z,V=h;else break e}}function s(Y){return Y.length===0?null:Y[0]}function a(Y){if(Y.length===0)return null;var re=Y[0],V=Y.pop();if(V!==re){Y[0]=V;e:for(var h=0,z=Y.length,q=z>>>1;h<q;){var Z=2*(h+1)-1,ue=Y[Z],pe=Z+1,ge=Y[pe];if(0>p(ue,V))pe<z&&0>p(ge,ue)?(Y[h]=ge,Y[pe]=V,h=pe):(Y[h]=ue,Y[Z]=V,h=Z);else if(pe<z&&0>p(ge,V))Y[h]=ge,Y[pe]=V,h=pe;else break e}}return re}function p(Y,re){var V=Y.sortIndex-re.sortIndex;return V!==0?V:Y.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;u.unstable_now=function(){return g.now()}}else{var w=Date,S=w.now();u.unstable_now=function(){return w.now()-S}}var E=[],R=[],I=1,x=null,D=3,U=!1,X=!1,O=!1,T=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var re=s(R);re!==null;){if(re.callback===null)a(R);else if(re.startTime<=Y)a(R),re.sortIndex=re.expirationTime,f(E,re);else break;re=s(R)}}function M(Y){if(O=!1,C(Y),!X)if(s(E)!==null)X=!0,ye(H);else{var re=s(R);re!==null&&ve(M,re.startTime-Y)}}function H(Y,re){X=!1,O&&(O=!1,L(j),j=-1),U=!0;var V=D;try{for(C(re),x=s(E);x!==null&&(!(x.expirationTime>re)||Y&&!ae());){var h=x.callback;if(typeof h=="function"){x.callback=null,D=x.priorityLevel;var z=h(x.expirationTime<=re);re=u.unstable_now(),typeof z=="function"?x.callback=z:x===s(E)&&a(E),C(re)}else a(E);x=s(E)}if(x!==null)var q=!0;else{var Z=s(R);Z!==null&&ve(M,Z.startTime-re),q=!1}return q}finally{x=null,D=V,U=!1}}var G=!1,y=null,j=-1,$=5,ne=-1;function ae(){return!(u.unstable_now()-ne<$)}function oe(){if(y!==null){var Y=u.unstable_now();ne=Y;var re=!0;try{re=y(!0,Y)}finally{re?ce():(G=!1,y=null)}}else G=!1}var ce;if(typeof _=="function")ce=function(){_(oe)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ce=Ne.port2;Ne.port1.onmessage=oe,ce=function(){Ce.postMessage(null)}}else ce=function(){T(oe,0)};function ye(Y){y=Y,G||(G=!0,ce())}function ve(Y,re){j=T(function(){Y(u.unstable_now())},re)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(Y){Y.callback=null},u.unstable_continueExecution=function(){X||U||(X=!0,ye(H))},u.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<Y?Math.floor(1e3/Y):5},u.unstable_getCurrentPriorityLevel=function(){return D},u.unstable_getFirstCallbackNode=function(){return s(E)},u.unstable_next=function(Y){switch(D){case 1:case 2:case 3:var re=3;break;default:re=D}var V=D;D=re;try{return Y()}finally{D=V}},u.unstable_pauseExecution=function(){},u.unstable_requestPaint=function(){},u.unstable_runWithPriority=function(Y,re){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var V=D;D=Y;try{return re()}finally{D=V}},u.unstable_scheduleCallback=function(Y,re,V){var h=u.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?h+V:h):V=h,Y){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=V+z,Y={id:I++,callback:re,priorityLevel:Y,startTime:V,expirationTime:z,sortIndex:-1},V>h?(Y.sortIndex=V,f(R,Y),s(E)===null&&Y===s(R)&&(O?(L(j),j=-1):O=!0,ve(M,V-h))):(Y.sortIndex=z,f(E,Y),X||U||(X=!0,ye(H))),Y},u.unstable_shouldYield=ae,u.unstable_wrapCallback=function(Y){var re=D;return function(){var V=D;D=re;try{return Y.apply(this,arguments)}finally{D=V}}}})(tl)),tl}var tc;function jf(){return tc||(tc=1,el.exports=_f()),el.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var nc;function Rf(){if(nc)return ot;nc=1;var u=Hr(),f=jf();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,p={};function g(e,t){w(e,t),w(e+"Capture",t)}function w(e,t){for(p[e]=t,e=0;e<t.length;e++)a.add(t[e])}var S=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E=Object.prototype.hasOwnProperty,R=/^[: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]*$/,I={},x={};function D(e){return E.call(x,e)?!0:E.call(I,e)?!1:R.test(e)?x[e]=!0:(I[e]=!0,!1)}function U(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function X(e,t,n,r){if(t===null||typeof t>"u"||U(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){T[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];T[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){T[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){T[e]=new O(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){T[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){T[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){T[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){T[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){T[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L,_);T[t]=new O(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L,_);T[t]=new O(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L,_);T[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){T[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),T.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){T[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});function C(e,t,n,r){var i=T.hasOwnProperty(t)?T[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(X(t,n,i,r)&&(n=null),r||i===null?D(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var M=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),G=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),ae=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),Y=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,h;function z(e){if(h===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);h=t&&t[1]||""}return`
34
- `+h+e}var q=!1;function Z(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(P){var r=P}Reflect.construct(e,[],t)}else{try{t.call()}catch(P){r=P}e.call(t.prototype)}else{try{throw Error()}catch(P){r=P}e()}}catch(P){if(P&&r&&typeof P.stack=="string"){for(var i=P.stack.split(`
35
- `),o=r.stack.split(`
36
- `),l=i.length-1,d=o.length-1;1<=l&&0<=d&&i[l]!==o[d];)d--;for(;1<=l&&0<=d;l--,d--)if(i[l]!==o[d]){if(l!==1||d!==1)do if(l--,d--,0>d||i[l]!==o[d]){var m=`
37
- `+i[l].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=l&&0<=d);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function ue(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1),e;case 11:return e=Z(e.type.render,!1),e;case 1:return e=Z(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case G:return"Portal";case $:return"Profiler";case j:return"StrictMode";case ce:return"Suspense";case Ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ae:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ce:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function ge(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(t);case 8:return t===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ee(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=Ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cn(e){e._valueTracker||(e._valueTracker=Ye(e))}function Br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dn(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 Ut(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vr(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $r(e,t){t=t.checked,t!=null&&C(e,"checked",t,!1)}function er(e,t){$r(e,t);var n=he(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zn(e,t.type,n):t.hasOwnProperty("defaultValue")&&zn(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tr(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zn(e,t,n){(t!=="number"||dn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var F=Array.isArray;function de(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+he(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Se(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gt(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(F(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:he(n)}}function Xr(e,t){var n=he(t.value),r=he(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _n(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fn(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pn,Qr=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pn=pn||document.createElement("div"),pn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zc=["Webkit","ms","Moz","O"];Object.keys(Dt).forEach(function(e){zc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dt[t]=Dt[e]})});function dl(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dt.hasOwnProperty(e)&&Dt[e]?(""+t).trim():t+"px"}function fl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dl(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _c=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ao(e,t){if(t){if(_c[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function uo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var co=null;function fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,jn=null,Rn=null;function pl(e){if(e=Nr(e)){if(typeof po!="function")throw Error(s(280));var t=e.stateNode;t&&(t=mi(t),po(e.stateNode,e.type,t))}}function hl(e){jn?Rn?Rn.push(e):Rn=[e]:jn=e}function ml(){if(jn){var e=jn,t=Rn;if(Rn=jn=null,pl(e),t)for(e=0;e<t.length;e++)pl(t[e])}}function gl(e,t){return e(t)}function vl(){}var ho=!1;function yl(e,t,n){if(ho)return e(t,n);ho=!0;try{return gl(e,t,n)}finally{ho=!1,(jn!==null||Rn!==null)&&(vl(),ml())}}function nr(e,t){var n=e.stateNode;if(n===null)return null;var r=mi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var mo=!1;if(S)try{var rr={};Object.defineProperty(rr,"passive",{get:function(){mo=!0}}),window.addEventListener("test",rr,rr),window.removeEventListener("test",rr,rr)}catch{mo=!1}function jc(e,t,n,r,i,o,l,d,m){var P=Array.prototype.slice.call(arguments,3);try{t.apply(n,P)}catch(W){this.onError(W)}}var ir=!1,Yr=null,Kr=!1,go=null,Rc={onError:function(e){ir=!0,Yr=e}};function Dc(e,t,n,r,i,o,l,d,m){ir=!1,Yr=null,jc.apply(Rc,arguments)}function Tc(e,t,n,r,i,o,l,d,m){if(Dc.apply(this,arguments),ir){if(ir){var P=Yr;ir=!1,Yr=null}else throw Error(s(198));Kr||(Kr=!0,go=P)}}function hn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function wl(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 Sl(e){if(hn(e)!==e)throw Error(s(188))}function Lc(e){var t=e.alternate;if(!t){if(t=hn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Sl(i),e;if(o===r)return Sl(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,d=i.child;d;){if(d===n){l=!0,n=i,r=o;break}if(d===r){l=!0,r=i,n=o;break}d=d.sibling}if(!l){for(d=o.child;d;){if(d===n){l=!0,n=o,r=i;break}if(d===r){l=!0,r=o,n=i;break}d=d.sibling}if(!l)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function xl(e){return e=Lc(e),e!==null?kl(e):null}function kl(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kl(e);if(t!==null)return t;e=e.sibling}return null}var Nl=f.unstable_scheduleCallback,El=f.unstable_cancelCallback,Mc=f.unstable_shouldYield,Oc=f.unstable_requestPaint,Le=f.unstable_now,Ic=f.unstable_getCurrentPriorityLevel,vo=f.unstable_ImmediatePriority,Pl=f.unstable_UserBlockingPriority,Gr=f.unstable_NormalPriority,Fc=f.unstable_LowPriority,Cl=f.unstable_IdlePriority,qr=null,Et=null;function Ac(e){if(Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(qr,e,void 0,(e.current.flags&128)===128)}catch{}}var vt=Math.clz32?Math.clz32:Hc,Wc=Math.log,Uc=Math.LN2;function Hc(e){return e>>>=0,e===0?32:31-(Wc(e)/Uc|0)|0}var br=64,Zr=4194304;function or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var d=l&~i;d!==0?r=or(d):(o&=l,o!==0&&(r=or(o)))}else l=n&~i,l!==0?r=or(l):o!==0&&(r=or(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-vt(t),i=1<<n,r|=e[n],t&=~i;return r}function Bc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-vt(o),d=1<<l,m=i[l];m===-1?((d&n)===0||(d&r)!==0)&&(i[l]=Bc(d,t)):m<=t&&(e.expiredLanes|=d),o&=~d}}function yo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zl(){var e=br;return br<<=1,(br&4194240)===0&&(br=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function $c(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-vt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function So(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-vt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ke=0;function _l(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var jl,xo,Rl,Dl,Tl,ko=!1,ei=[],Bt=null,Vt=null,$t=null,lr=new Map,ar=new Map,Xt=[],Xc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ll(e,t){switch(e){case"focusin":case"focusout":Bt=null;break;case"dragenter":case"dragleave":Vt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function ur(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Nr(t),t!==null&&xo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Qc(e,t,n,r,i){switch(t){case"focusin":return Bt=ur(Bt,e,t,n,r,i),!0;case"dragenter":return Vt=ur(Vt,e,t,n,r,i),!0;case"mouseover":return $t=ur($t,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return lr.set(o,ur(lr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ar.set(o,ur(ar.get(o)||null,e,t,n,r,i)),!0}return!1}function Ml(e){var t=mn(e.target);if(t!==null){var n=hn(t);if(n!==null){if(t=n.tag,t===13){if(t=wl(n),t!==null){e.blockedOn=t,Tl(e.priority,function(){Rl(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);co=r,n.target.dispatchEvent(r),co=null}else return t=Nr(n),t!==null&&xo(t),e.blockedOn=n,!1;t.shift()}return!0}function Ol(e,t,n){ti(e)&&n.delete(t)}function Yc(){ko=!1,Bt!==null&&ti(Bt)&&(Bt=null),Vt!==null&&ti(Vt)&&(Vt=null),$t!==null&&ti($t)&&($t=null),lr.forEach(Ol),ar.forEach(Ol)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,ko||(ko=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Yc)))}function dr(e){function t(i){return cr(i,e)}if(0<ei.length){cr(ei[0],e);for(var n=1;n<ei.length;n++){var r=ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bt!==null&&cr(Bt,e),Vt!==null&&cr(Vt,e),$t!==null&&cr($t,e),lr.forEach(t),ar.forEach(t),n=0;n<Xt.length;n++)r=Xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xt.length&&(n=Xt[0],n.blockedOn===null);)Ml(n),n.blockedOn===null&&Xt.shift()}var Dn=M.ReactCurrentBatchConfig,ni=!0;function Kc(e,t,n,r){var i=ke,o=Dn.transition;Dn.transition=null;try{ke=1,No(e,t,n,r)}finally{ke=i,Dn.transition=o}}function Gc(e,t,n,r){var i=ke,o=Dn.transition;Dn.transition=null;try{ke=4,No(e,t,n,r)}finally{ke=i,Dn.transition=o}}function No(e,t,n,r){if(ni){var i=Eo(e,t,n,r);if(i===null)Ho(e,t,r,ri,n),Ll(e,r);else if(Qc(i,e,t,n,r))r.stopPropagation();else if(Ll(e,r),t&4&&-1<Xc.indexOf(e)){for(;i!==null;){var o=Nr(i);if(o!==null&&jl(o),o=Eo(e,t,n,r),o===null&&Ho(e,t,r,ri,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ho(e,t,r,null,n)}}var ri=null;function Eo(e,t,n,r){if(ri=null,e=fo(r),e=mn(e),e!==null)if(t=hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wl(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ri=e,null}function Il(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ic()){case vo:return 1;case Pl:return 4;case Gr:case Fc:return 16;case Cl:return 536870912;default:return 16}default:return 16}}var Qt=null,Po=null,ii=null;function Fl(){if(ii)return ii;var e,t=Po,n=t.length,r,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return ii=i.slice(e,1<r?1-r:void 0)}function oi(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 si(){return!0}function Al(){return!1}function st(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(o):o[d]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?si:Al,this.isPropagationStopped=Al,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=st(Tn),fr=V({},Tn,{view:0,detail:0}),qc=st(fr),zo,_o,pr,li=V({},fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ro,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!==pr&&(pr&&e.type==="mousemove"?(zo=e.screenX-pr.screenX,_o=e.screenY-pr.screenY):_o=zo=0,pr=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Wl=st(li),bc=V({},li,{dataTransfer:0}),Zc=st(bc),Jc=V({},fr,{relatedTarget:0}),jo=st(Jc),ed=V({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),td=st(ed),nd=V({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rd=st(nd),id=V({},Tn,{data:0}),Ul=st(id),od={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sd={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"},ld={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ad(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ld[e])?!!t[e]:!1}function Ro(){return ad}var ud=V({},fr,{key:function(e){if(e.key){var t=od[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ro,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cd=st(ud),dd=V({},li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hl=st(dd),fd=V({},fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ro}),pd=st(fd),hd=V({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),md=st(hd),gd=V({},li,{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}),vd=st(gd),yd=[9,13,27,32],Do=S&&"CompositionEvent"in window,hr=null;S&&"documentMode"in document&&(hr=document.documentMode);var wd=S&&"TextEvent"in window&&!hr,Bl=S&&(!Do||hr&&8<hr&&11>=hr),Vl=" ",$l=!1;function Xl(e,t){switch(e){case"keyup":return yd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ql(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function Sd(e,t){switch(e){case"compositionend":return Ql(t);case"keypress":return t.which!==32?null:($l=!0,Vl);case"textInput":return e=t.data,e===Vl&&$l?null:e;default:return null}}function xd(e,t){if(Ln)return e==="compositionend"||!Do&&Xl(e,t)?(e=Fl(),ii=Po=Qt=null,Ln=!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 Bl&&t.locale!=="ko"?null:t.data;default:return null}}var kd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kd[e.type]:t==="textarea"}function Kl(e,t,n,r){hl(r),t=fi(t,"onChange"),0<t.length&&(n=new Co("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mr=null,gr=null;function Nd(e){fa(e,0)}function ai(e){var t=An(e);if(Br(t))return e}function Ed(e,t){if(e==="change")return t}var Gl=!1;if(S){var To;if(S){var Lo="oninput"in document;if(!Lo){var ql=document.createElement("div");ql.setAttribute("oninput","return;"),Lo=typeof ql.oninput=="function"}To=Lo}else To=!1;Gl=To&&(!document.documentMode||9<document.documentMode)}function bl(){mr&&(mr.detachEvent("onpropertychange",Zl),gr=mr=null)}function Zl(e){if(e.propertyName==="value"&&ai(gr)){var t=[];Kl(t,gr,e,fo(e)),yl(Nd,t)}}function Pd(e,t,n){e==="focusin"?(bl(),mr=t,gr=n,mr.attachEvent("onpropertychange",Zl)):e==="focusout"&&bl()}function Cd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(gr)}function zd(e,t){if(e==="click")return ai(t)}function _d(e,t){if(e==="input"||e==="change")return ai(t)}function jd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:jd;function vr(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!E.call(t,i)||!yt(e[i],t[i]))return!1}return!0}function Jl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ea(e,t){var n=Jl(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jl(n)}}function ta(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ta(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function na(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dn(e.document)}return t}function Mo(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 Rd(e){var t=na(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ta(n.ownerDocument.documentElement,n)){if(r!==null&&Mo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ea(n,o);var l=ea(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Dd=S&&"documentMode"in document&&11>=document.documentMode,Mn=null,Oo=null,yr=null,Io=!1;function ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||Mn==null||Mn!==dn(r)||(r=Mn,"selectionStart"in r&&Mo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yr&&vr(yr,r)||(yr=r,r=fi(Oo,"onSelect"),0<r.length&&(t=new Co("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mn)))}function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var On={animationend:ui("Animation","AnimationEnd"),animationiteration:ui("Animation","AnimationIteration"),animationstart:ui("Animation","AnimationStart"),transitionend:ui("Transition","TransitionEnd")},Fo={},ia={};S&&(ia=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function ci(e){if(Fo[e])return Fo[e];if(!On[e])return e;var t=On[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ia)return Fo[e]=t[n];return e}var oa=ci("animationend"),sa=ci("animationiteration"),la=ci("animationstart"),aa=ci("transitionend"),ua=new Map,ca="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yt(e,t){ua.set(e,t),g(t,[e])}for(var Ao=0;Ao<ca.length;Ao++){var Wo=ca[Ao],Td=Wo.toLowerCase(),Ld=Wo[0].toUpperCase()+Wo.slice(1);Yt(Td,"on"+Ld)}Yt(oa,"onAnimationEnd"),Yt(sa,"onAnimationIteration"),Yt(la,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(aa,"onTransitionEnd"),w("onMouseEnter",["mouseout","mouseover"]),w("onMouseLeave",["mouseout","mouseover"]),w("onPointerEnter",["pointerout","pointerover"]),w("onPointerLeave",["pointerout","pointerover"]),g("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),g("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),g("onBeforeInput",["compositionend","keypress","textInput","paste"]),g("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),Md=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function da(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Tc(r,t,void 0,e),e.currentTarget=null}function fa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var d=r[l],m=d.instance,P=d.currentTarget;if(d=d.listener,m!==o&&i.isPropagationStopped())break e;da(i,d,P),o=m}else for(l=0;l<r.length;l++){if(d=r[l],m=d.instance,P=d.currentTarget,d=d.listener,m!==o&&i.isPropagationStopped())break e;da(i,d,P),o=m}}}if(Kr)throw e=go,Kr=!1,go=null,e}function ze(e,t){var n=t[Yo];n===void 0&&(n=t[Yo]=new Set);var r=e+"__bubble";n.has(r)||(pa(t,e,2,!1),n.add(r))}function Uo(e,t,n){var r=0;t&&(r|=4),pa(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Sr(e){if(!e[di]){e[di]=!0,a.forEach(function(n){n!=="selectionchange"&&(Md.has(n)||Uo(n,!1,e),Uo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,Uo("selectionchange",!1,t))}}function pa(e,t,n,r){switch(Il(t)){case 1:var i=Kc;break;case 4:i=Gc;break;default:i=No}n=i.bind(null,t,n,e),i=void 0,!mo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ho(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var d=r.stateNode.containerInfo;if(d===i||d.nodeType===8&&d.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var m=l.tag;if((m===3||m===4)&&(m=l.stateNode.containerInfo,m===i||m.nodeType===8&&m.parentNode===i))return;l=l.return}for(;d!==null;){if(l=mn(d),l===null)return;if(m=l.tag,m===5||m===6){r=o=l;continue e}d=d.parentNode}}r=r.return}yl(function(){var P=o,W=fo(n),B=[];e:{var A=ua.get(e);if(A!==void 0){var b=Co,ee=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":b=cd;break;case"focusin":ee="focus",b=jo;break;case"focusout":ee="blur",b=jo;break;case"beforeblur":case"afterblur":b=jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=Wl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=Zc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=pd;break;case oa:case sa:case la:b=td;break;case aa:b=md;break;case"scroll":b=qc;break;case"wheel":b=vd;break;case"copy":case"cut":case"paste":b=rd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=Hl}var te=(t&4)!==0,Me=!te&&e==="scroll",k=te?A!==null?A+"Capture":null:A;te=[];for(var v=P,N;v!==null;){N=v;var Q=N.stateNode;if(N.tag===5&&Q!==null&&(N=Q,k!==null&&(Q=nr(v,k),Q!=null&&te.push(xr(v,Q,N)))),Me)break;v=v.return}0<te.length&&(A=new b(A,ee,null,n,W),B.push({event:A,listeners:te}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",A&&n!==co&&(ee=n.relatedTarget||n.fromElement)&&(mn(ee)||ee[Tt]))break e;if((b||A)&&(A=W.window===W?W:(A=W.ownerDocument)?A.defaultView||A.parentWindow:window,b?(ee=n.relatedTarget||n.toElement,b=P,ee=ee?mn(ee):null,ee!==null&&(Me=hn(ee),ee!==Me||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(b=null,ee=P),b!==ee)){if(te=Wl,Q="onMouseLeave",k="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(te=Hl,Q="onPointerLeave",k="onPointerEnter",v="pointer"),Me=b==null?A:An(b),N=ee==null?A:An(ee),A=new te(Q,v+"leave",b,n,W),A.target=Me,A.relatedTarget=N,Q=null,mn(W)===P&&(te=new te(k,v+"enter",ee,n,W),te.target=N,te.relatedTarget=Me,Q=te),Me=Q,b&&ee)t:{for(te=b,k=ee,v=0,N=te;N;N=In(N))v++;for(N=0,Q=k;Q;Q=In(Q))N++;for(;0<v-N;)te=In(te),v--;for(;0<N-v;)k=In(k),N--;for(;v--;){if(te===k||k!==null&&te===k.alternate)break t;te=In(te),k=In(k)}te=null}else te=null;b!==null&&ha(B,A,b,te,!1),ee!==null&&Me!==null&&ha(B,Me,ee,te,!0)}}e:{if(A=P?An(P):window,b=A.nodeName&&A.nodeName.toLowerCase(),b==="select"||b==="input"&&A.type==="file")var ie=Ed;else if(Yl(A))if(Gl)ie=_d;else{ie=Cd;var se=Pd}else(b=A.nodeName)&&b.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(ie=zd);if(ie&&(ie=ie(e,P))){Kl(B,ie,n,W);break e}se&&se(e,A,P),e==="focusout"&&(se=A._wrapperState)&&se.controlled&&A.type==="number"&&zn(A,"number",A.value)}switch(se=P?An(P):window,e){case"focusin":(Yl(se)||se.contentEditable==="true")&&(Mn=se,Oo=P,yr=null);break;case"focusout":yr=Oo=Mn=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,ra(B,n,W);break;case"selectionchange":if(Dd)break;case"keydown":case"keyup":ra(B,n,W)}var le;if(Do)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else Ln?Xl(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Bl&&n.locale!=="ko"&&(Ln||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&Ln&&(le=Fl()):(Qt=W,Po="value"in Qt?Qt.value:Qt.textContent,Ln=!0)),se=fi(P,fe),0<se.length&&(fe=new Ul(fe,e,null,n,W),B.push({event:fe,listeners:se}),le?fe.data=le:(le=Ql(n),le!==null&&(fe.data=le)))),(le=wd?Sd(e,n):xd(e,n))&&(P=fi(P,"onBeforeInput"),0<P.length&&(W=new Ul("onBeforeInput","beforeinput",null,n,W),B.push({event:W,listeners:P}),W.data=le))}fa(B,t)})}function xr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=nr(e,n),o!=null&&r.unshift(xr(e,o,i)),o=nr(e,t),o!=null&&r.push(xr(e,o,i))),e=e.return}return r}function In(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ha(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var d=n,m=d.alternate,P=d.stateNode;if(m!==null&&m===r)break;d.tag===5&&P!==null&&(d=P,i?(m=nr(n,o),m!=null&&l.unshift(xr(n,m,d))):i||(m=nr(n,o),m!=null&&l.push(xr(n,m,d)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Od=/\r\n?/g,Id=/\u0000|\uFFFD/g;function ma(e){return(typeof e=="string"?e:""+e).replace(Od,`
38
- `).replace(Id,"")}function pi(e,t,n){if(t=ma(t),ma(e)!==t&&n)throw Error(s(425))}function hi(){}var Bo=null,Vo=null;function $o(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xo=typeof setTimeout=="function"?setTimeout:void 0,Fd=typeof clearTimeout=="function"?clearTimeout:void 0,ga=typeof Promise=="function"?Promise:void 0,Ad=typeof queueMicrotask=="function"?queueMicrotask:typeof ga<"u"?function(e){return ga.resolve(null).then(e).catch(Wd)}:Xo;function Wd(e){setTimeout(function(){throw e})}function Qo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),dr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);dr(t)}function Kt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function va(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Fn,kr="__reactProps$"+Fn,Tt="__reactContainer$"+Fn,Yo="__reactEvents$"+Fn,Ud="__reactListeners$"+Fn,Hd="__reactHandles$"+Fn;function mn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=va(e);e!==null;){if(n=e[Pt])return n;e=va(e)}return t}e=n,n=e.parentNode}return null}function Nr(e){return e=e[Pt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function An(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function mi(e){return e[kr]||null}var Ko=[],Wn=-1;function Gt(e){return{current:e}}function _e(e){0>Wn||(e.current=Ko[Wn],Ko[Wn]=null,Wn--)}function Pe(e,t){Wn++,Ko[Wn]=e.current,e.current=t}var qt={},Ke=Gt(qt),et=Gt(!1),gn=qt;function Un(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function gi(){_e(et),_e(Ke)}function ya(e,t,n){if(Ke.current!==qt)throw Error(s(168));Pe(Ke,t),Pe(et,n)}function wa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(s(108,ge(e)||"Unknown",i));return V({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,gn=Ke.current,Pe(Ke,e),Pe(et,et.current),!0}function Sa(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=wa(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,_e(et),_e(Ke),Pe(Ke,e)):_e(et),Pe(et,n)}var Lt=null,yi=!1,Go=!1;function xa(e){Lt===null?Lt=[e]:Lt.push(e)}function Bd(e){yi=!0,xa(e)}function bt(){if(!Go&&Lt!==null){Go=!0;var e=0,t=ke;try{var n=Lt;for(ke=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Lt=null,yi=!1}catch(i){throw Lt!==null&&(Lt=Lt.slice(e+1)),Nl(vo,bt),i}finally{ke=t,Go=!1}}return null}var Hn=[],Bn=0,wi=null,Si=0,ct=[],dt=0,vn=null,Mt=1,Ot="";function yn(e,t){Hn[Bn++]=Si,Hn[Bn++]=wi,wi=e,Si=t}function ka(e,t,n){ct[dt++]=Mt,ct[dt++]=Ot,ct[dt++]=vn,vn=e;var r=Mt;e=Ot;var i=32-vt(r)-1;r&=~(1<<i),n+=1;var o=32-vt(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Mt=1<<32-vt(t)+i|n<<i|r,Ot=o+e}else Mt=1<<o|n<<i|r,Ot=e}function qo(e){e.return!==null&&(yn(e,1),ka(e,1,0))}function bo(e){for(;e===wi;)wi=Hn[--Bn],Hn[Bn]=null,Si=Hn[--Bn],Hn[Bn]=null;for(;e===vn;)vn=ct[--dt],ct[dt]=null,Ot=ct[--dt],ct[dt]=null,Mt=ct[--dt],ct[dt]=null}var lt=null,at=null,je=!1,wt=null;function Na(e,t){var n=mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ea(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,at=Kt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=vn!==null?{id:Mt,overflow:Ot}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,at=null,!0):!1;default:return!1}}function Zo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jo(e){if(je){var t=at;if(t){var n=t;if(!Ea(e,t)){if(Zo(e))throw Error(s(418));t=Kt(n.nextSibling);var r=lt;t&&Ea(e,t)?Na(r,n):(e.flags=e.flags&-4097|2,je=!1,lt=e)}}else{if(Zo(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,lt=e}}}function Pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function xi(e){if(e!==lt)return!1;if(!je)return Pa(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$o(e.type,e.memoizedProps)),t&&(t=at)){if(Zo(e))throw Ca(),Error(s(418));for(;t;)Na(e,t),t=Kt(t.nextSibling)}if(Pa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){at=Kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}at=null}}else at=lt?Kt(e.stateNode.nextSibling):null;return!0}function Ca(){for(var e=at;e;)e=Kt(e.nextSibling)}function Vn(){at=lt=null,je=!1}function es(e){wt===null?wt=[e]:wt.push(e)}var Vd=M.ReactCurrentBatchConfig;function Er(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var d=i.refs;l===null?delete d[o]:d[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function ki(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function za(e){var t=e._init;return t(e._payload)}function _a(e){function t(k,v){if(e){var N=k.deletions;N===null?(k.deletions=[v],k.flags|=16):N.push(v)}}function n(k,v){if(!e)return null;for(;v!==null;)t(k,v),v=v.sibling;return null}function r(k,v){for(k=new Map;v!==null;)v.key!==null?k.set(v.key,v):k.set(v.index,v),v=v.sibling;return k}function i(k,v){return k=sn(k,v),k.index=0,k.sibling=null,k}function o(k,v,N){return k.index=N,e?(N=k.alternate,N!==null?(N=N.index,N<v?(k.flags|=2,v):N):(k.flags|=2,v)):(k.flags|=1048576,v)}function l(k){return e&&k.alternate===null&&(k.flags|=2),k}function d(k,v,N,Q){return v===null||v.tag!==6?(v=Xs(N,k.mode,Q),v.return=k,v):(v=i(v,N),v.return=k,v)}function m(k,v,N,Q){var ie=N.type;return ie===y?W(k,v,N.props.children,Q,N.key):v!==null&&(v.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ye&&za(ie)===v.type)?(Q=i(v,N.props),Q.ref=Er(k,v,N),Q.return=k,Q):(Q=Qi(N.type,N.key,N.props,null,k.mode,Q),Q.ref=Er(k,v,N),Q.return=k,Q)}function P(k,v,N,Q){return v===null||v.tag!==4||v.stateNode.containerInfo!==N.containerInfo||v.stateNode.implementation!==N.implementation?(v=Qs(N,k.mode,Q),v.return=k,v):(v=i(v,N.children||[]),v.return=k,v)}function W(k,v,N,Q,ie){return v===null||v.tag!==7?(v=Cn(N,k.mode,Q,ie),v.return=k,v):(v=i(v,N),v.return=k,v)}function B(k,v,N){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Xs(""+v,k.mode,N),v.return=k,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case H:return N=Qi(v.type,v.key,v.props,null,k.mode,N),N.ref=Er(k,null,v),N.return=k,N;case G:return v=Qs(v,k.mode,N),v.return=k,v;case ye:var Q=v._init;return B(k,Q(v._payload),N)}if(F(v)||re(v))return v=Cn(v,k.mode,N,null),v.return=k,v;ki(k,v)}return null}function A(k,v,N,Q){var ie=v!==null?v.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return ie!==null?null:d(k,v,""+N,Q);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case H:return N.key===ie?m(k,v,N,Q):null;case G:return N.key===ie?P(k,v,N,Q):null;case ye:return ie=N._init,A(k,v,ie(N._payload),Q)}if(F(N)||re(N))return ie!==null?null:W(k,v,N,Q,null);ki(k,N)}return null}function b(k,v,N,Q,ie){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return k=k.get(N)||null,d(v,k,""+Q,ie);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case H:return k=k.get(Q.key===null?N:Q.key)||null,m(v,k,Q,ie);case G:return k=k.get(Q.key===null?N:Q.key)||null,P(v,k,Q,ie);case ye:var se=Q._init;return b(k,v,N,se(Q._payload),ie)}if(F(Q)||re(Q))return k=k.get(N)||null,W(v,k,Q,ie,null);ki(v,Q)}return null}function ee(k,v,N,Q){for(var ie=null,se=null,le=v,fe=v=0,$e=null;le!==null&&fe<N.length;fe++){le.index>fe?($e=le,le=null):$e=le.sibling;var xe=A(k,le,N[fe],Q);if(xe===null){le===null&&(le=$e);break}e&&le&&xe.alternate===null&&t(k,le),v=o(xe,v,fe),se===null?ie=xe:se.sibling=xe,se=xe,le=$e}if(fe===N.length)return n(k,le),je&&yn(k,fe),ie;if(le===null){for(;fe<N.length;fe++)le=B(k,N[fe],Q),le!==null&&(v=o(le,v,fe),se===null?ie=le:se.sibling=le,se=le);return je&&yn(k,fe),ie}for(le=r(k,le);fe<N.length;fe++)$e=b(le,k,fe,N[fe],Q),$e!==null&&(e&&$e.alternate!==null&&le.delete($e.key===null?fe:$e.key),v=o($e,v,fe),se===null?ie=$e:se.sibling=$e,se=$e);return e&&le.forEach(function(ln){return t(k,ln)}),je&&yn(k,fe),ie}function te(k,v,N,Q){var ie=re(N);if(typeof ie!="function")throw Error(s(150));if(N=ie.call(N),N==null)throw Error(s(151));for(var se=ie=null,le=v,fe=v=0,$e=null,xe=N.next();le!==null&&!xe.done;fe++,xe=N.next()){le.index>fe?($e=le,le=null):$e=le.sibling;var ln=A(k,le,xe.value,Q);if(ln===null){le===null&&(le=$e);break}e&&le&&ln.alternate===null&&t(k,le),v=o(ln,v,fe),se===null?ie=ln:se.sibling=ln,se=ln,le=$e}if(xe.done)return n(k,le),je&&yn(k,fe),ie;if(le===null){for(;!xe.done;fe++,xe=N.next())xe=B(k,xe.value,Q),xe!==null&&(v=o(xe,v,fe),se===null?ie=xe:se.sibling=xe,se=xe);return je&&yn(k,fe),ie}for(le=r(k,le);!xe.done;fe++,xe=N.next())xe=b(le,k,fe,xe.value,Q),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?fe:xe.key),v=o(xe,v,fe),se===null?ie=xe:se.sibling=xe,se=xe);return e&&le.forEach(function(Nf){return t(k,Nf)}),je&&yn(k,fe),ie}function Me(k,v,N,Q){if(typeof N=="object"&&N!==null&&N.type===y&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case H:e:{for(var ie=N.key,se=v;se!==null;){if(se.key===ie){if(ie=N.type,ie===y){if(se.tag===7){n(k,se.sibling),v=i(se,N.props.children),v.return=k,k=v;break e}}else if(se.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ye&&za(ie)===se.type){n(k,se.sibling),v=i(se,N.props),v.ref=Er(k,se,N),v.return=k,k=v;break e}n(k,se);break}else t(k,se);se=se.sibling}N.type===y?(v=Cn(N.props.children,k.mode,Q,N.key),v.return=k,k=v):(Q=Qi(N.type,N.key,N.props,null,k.mode,Q),Q.ref=Er(k,v,N),Q.return=k,k=Q)}return l(k);case G:e:{for(se=N.key;v!==null;){if(v.key===se)if(v.tag===4&&v.stateNode.containerInfo===N.containerInfo&&v.stateNode.implementation===N.implementation){n(k,v.sibling),v=i(v,N.children||[]),v.return=k,k=v;break e}else{n(k,v);break}else t(k,v);v=v.sibling}v=Qs(N,k.mode,Q),v.return=k,k=v}return l(k);case ye:return se=N._init,Me(k,v,se(N._payload),Q)}if(F(N))return ee(k,v,N,Q);if(re(N))return te(k,v,N,Q);ki(k,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,v!==null&&v.tag===6?(n(k,v.sibling),v=i(v,N),v.return=k,k=v):(n(k,v),v=Xs(N,k.mode,Q),v.return=k,k=v),l(k)):n(k,v)}return Me}var $n=_a(!0),ja=_a(!1),Ni=Gt(null),Ei=null,Xn=null,ts=null;function ns(){ts=Xn=Ei=null}function rs(e){var t=Ni.current;_e(Ni),e._currentValue=t}function is(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qn(e,t){Ei=e,ts=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function ft(e){var t=e._currentValue;if(ts!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(Ei===null)throw Error(s(308));Xn=e,Ei.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var wn=null;function os(e){wn===null?wn=[e]:wn.push(e)}function Ra(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,os(t)):(n.next=i.next,i.next=n),t.interleaved=n,It(e,r)}function It(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zt=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(we&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,It(e,n)}return i=r.interleaved,i===null?(t.next=t,os(r)):(t.next=i.next,i.next=t),r.interleaved=t,It(e,n)}function Pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,So(e,n)}}function Ta(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ci(e,t,n,r){var i=e.updateQueue;Zt=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var m=d,P=m.next;m.next=null,l===null?o=P:l.next=P,l=m;var W=e.alternate;W!==null&&(W=W.updateQueue,d=W.lastBaseUpdate,d!==l&&(d===null?W.firstBaseUpdate=P:d.next=P,W.lastBaseUpdate=m))}if(o!==null){var B=i.baseState;l=0,W=P=m=null,d=o;do{var A=d.lane,b=d.eventTime;if((r&A)===A){W!==null&&(W=W.next={eventTime:b,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var ee=e,te=d;switch(A=t,b=n,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){B=ee.call(b,B,A);break e}B=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,A=typeof ee=="function"?ee.call(b,B,A):ee,A==null)break e;B=V({},B,A);break e;case 2:Zt=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,A=i.effects,A===null?i.effects=[d]:A.push(d))}else b={eventTime:b,lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},W===null?(P=W=b,m=B):W=W.next=b,l|=A;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;A=d,d=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);if(W===null&&(m=B),i.baseState=m,i.firstBaseUpdate=P,i.lastBaseUpdate=W,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);kn|=l,e.lanes=l,e.memoizedState=B}}function La(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(s(191,i));i.call(r)}}}var Pr={},Ct=Gt(Pr),Cr=Gt(Pr),zr=Gt(Pr);function Sn(e){if(e===Pr)throw Error(s(174));return e}function ls(e,t){switch(Pe(zr,t),Pe(Cr,e),Pe(Ct,Pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_n(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_n(t,e)}_e(Ct),Pe(Ct,t)}function Yn(){_e(Ct),_e(Cr),_e(zr)}function Ma(e){Sn(zr.current);var t=Sn(Ct.current),n=_n(t,e.type);t!==n&&(Pe(Cr,e),Pe(Ct,n))}function as(e){Cr.current===e&&(_e(Ct),_e(Cr))}var Re=Gt(0);function zi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function cs(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var _i=M.ReactCurrentDispatcher,ds=M.ReactCurrentBatchConfig,xn=0,De=null,We=null,Be=null,ji=!1,_r=!1,jr=0,$d=0;function Ge(){throw Error(s(321))}function fs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function ps(e,t,n,r,i,o){if(xn=o,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=e===null||e.memoizedState===null?Kd:Gd,e=n(r,i),_r){o=0;do{if(_r=!1,jr=0,25<=o)throw Error(s(301));o+=1,Be=We=null,t.updateQueue=null,_i.current=qd,e=n(r,i)}while(_r)}if(_i.current=Ti,t=We!==null&&We.next!==null,xn=0,Be=We=De=null,ji=!1,t)throw Error(s(300));return e}function hs(){var e=jr!==0;return jr=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?De.memoizedState=Be=e:Be=Be.next=e,Be}function pt(){if(We===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=Be===null?De.memoizedState:Be.next;if(t!==null)Be=t,We=e;else{if(e===null)throw Error(s(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Be===null?De.memoizedState=Be=e:Be=Be.next=e}return Be}function Rr(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=pt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=We,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var d=l=null,m=null,P=o;do{var W=P.lane;if((xn&W)===W)m!==null&&(m=m.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),r=P.hasEagerState?P.eagerState:e(r,P.action);else{var B={lane:W,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};m===null?(d=m=B,l=r):m=m.next=B,De.lanes|=W,kn|=W}P=P.next}while(P!==null&&P!==o);m===null?l=r:m.next=d,yt(r,t.memoizedState)||(nt=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,De.lanes|=o,kn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gs(e){var t=pt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);yt(o,t.memoizedState)||(nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Oa(){}function Ia(e,t){var n=De,r=pt(),i=t(),o=!yt(r.memoizedState,i);if(o&&(r.memoizedState=i,nt=!0),r=r.queue,vs(Wa.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Be!==null&&Be.memoizedState.tag&1){if(n.flags|=2048,Dr(9,Aa.bind(null,n,r,i,t),void 0,null),Ve===null)throw Error(s(349));(xn&30)!==0||Fa(n,t,i)}return i}function Fa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Ua(t)&&Ha(e)}function Wa(e,t,n){return n(function(){Ua(t)&&Ha(e)})}function Ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function Ha(e){var t=It(e,1);t!==null&&Nt(t,e,1,-1)}function Ba(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t.queue=e,e=e.dispatch=Yd.bind(null,De,e),[t.memoizedState,e]}function Dr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Va(){return pt().memoizedState}function Ri(e,t,n,r){var i=zt();De.flags|=e,i.memoizedState=Dr(1|t,n,void 0,r===void 0?null:r)}function Di(e,t,n,r){var i=pt();r=r===void 0?null:r;var o=void 0;if(We!==null){var l=We.memoizedState;if(o=l.destroy,r!==null&&fs(r,l.deps)){i.memoizedState=Dr(t,n,o,r);return}}De.flags|=e,i.memoizedState=Dr(1|t,n,o,r)}function $a(e,t){return Ri(8390656,8,e,t)}function vs(e,t){return Di(2048,8,e,t)}function Xa(e,t){return Di(4,2,e,t)}function Qa(e,t){return Di(4,4,e,t)}function Ya(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ka(e,t,n){return n=n!=null?n.concat([e]):null,Di(4,4,Ya.bind(null,t,e),n)}function ys(){}function Ga(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ba(e,t,n){return(xn&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n):(yt(n,t)||(n=zl(),De.lanes|=n,kn|=n,e.baseState=!0),t)}function Xd(e,t){var n=ke;ke=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{ke=n,ds.transition=r}}function Za(){return pt().memoizedState}function Qd(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ja(e))eu(t,n);else if(n=Ra(e,t,n,r),n!==null){var i=Je();Nt(n,e,r,i),tu(n,t,r)}}function Yd(e,t,n){var r=rn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ja(e))eu(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,d=o(l,n);if(i.hasEagerState=!0,i.eagerState=d,yt(d,l)){var m=t.interleaved;m===null?(i.next=i,os(t)):(i.next=m.next,m.next=i),t.interleaved=i;return}}catch{}finally{}n=Ra(e,t,i,r),n!==null&&(i=Je(),Nt(n,e,r,i),tu(n,t,r))}}function Ja(e){var t=e.alternate;return e===De||t!==null&&t===De}function eu(e,t){_r=ji=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,So(e,n)}}var Ti={readContext:ft,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Kd={readContext:ft,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:$a,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qd.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Ba,useDebugValue:ys,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Ba(!1),t=e[0];return e=Xd.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=zt();if(je){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ve===null)throw Error(s(349));(xn&30)!==0||Fa(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$a(Wa.bind(null,r,o,e),[e]),r.flags|=2048,Dr(9,Aa.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zt(),t=Ve.identifierPrefix;if(je){var n=Ot,r=Mt;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$d++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gd={readContext:ft,useCallback:Ga,useContext:ft,useEffect:vs,useImperativeHandle:Ka,useInsertionEffect:Xa,useLayoutEffect:Qa,useMemo:qa,useReducer:ms,useRef:Va,useState:function(){return ms(Rr)},useDebugValue:ys,useDeferredValue:function(e){var t=pt();return ba(t,We.memoizedState,e)},useTransition:function(){var e=ms(Rr)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Oa,useSyncExternalStore:Ia,useId:Za,unstable_isNewReconciler:!1},qd={readContext:ft,useCallback:Ga,useContext:ft,useEffect:vs,useImperativeHandle:Ka,useInsertionEffect:Xa,useLayoutEffect:Qa,useMemo:qa,useReducer:gs,useRef:Va,useState:function(){return gs(Rr)},useDebugValue:ys,useDeferredValue:function(e){var t=pt();return We===null?t.memoizedState=e:ba(t,We.memoizedState,e)},useTransition:function(){var e=gs(Rr)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Oa,useSyncExternalStore:Ia,useId:Za,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Li={isMounted:function(e){return(e=e._reactInternals)?hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),i=rn(e),o=Ft(r,i);o.payload=t,n!=null&&(o.callback=n),t=Jt(e,o,i),t!==null&&(Nt(t,e,i,r),Pi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),i=rn(e),o=Ft(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Jt(e,o,i),t!==null&&(Nt(t,e,i,r),Pi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=rn(e),i=Ft(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jt(e,i,r),t!==null&&(Nt(t,e,r,n),Pi(t,e,r))}};function nu(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!vr(n,r)||!vr(i,o):!0}function ru(e,t,n){var r=!1,i=qt,o=t.contextType;return typeof o=="object"&&o!==null?o=ft(o):(i=tt(t)?gn:Ke.current,r=t.contextTypes,o=(r=r!=null)?Un(e,i):qt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Li,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function iu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Li.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ss(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ft(o):(o=tt(t)?gn:Ke.current,i.context=Un(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ws(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Li.enqueueReplaceState(i,i.state,null),Ci(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Kn(e,t){try{var n="",r=t;do n+=ue(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function xs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bd=typeof WeakMap=="function"?WeakMap:Map;function ou(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ui||(Ui=!0,Fs=r),ks(e,t)},n}function su(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ks(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ks(e,t),typeof r!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function lu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bd;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ff.bind(null,e,t,n),t.then(e,e))}function au(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function uu(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ft(-1,1),t.tag=2,Jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Zd=M.ReactCurrentOwner,nt=!1;function Ze(e,t,n,r){t.child=e===null?ja(t,null,n,r):$n(t,e.child,n,r)}function cu(e,t,n,r,i){n=n.render;var o=t.ref;return Qn(t,i),r=ps(e,t,n,r,o,i),n=hs(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(je&&n&&qo(t),t.flags|=1,Ze(e,t,r,i),t.child)}function du(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!$s(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,fu(e,t,o,r,i)):(e=Qi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:vr,n(l,r)&&e.ref===t.ref)return At(e,t,i)}return t.flags|=1,e=sn(o,r),e.ref=t.ref,e.return=t,t.child=e}function fu(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vr(o,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,At(e,t,i)}return Ns(e,t,n,r,i)}function pu(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(qn,ut),ut|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(qn,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Pe(qn,ut),ut|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Pe(qn,ut),ut|=r;return Ze(e,t,i,n),t.child}function hu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,r,i){var o=tt(n)?gn:Ke.current;return o=Un(t,o),Qn(t,i),n=ps(e,t,n,r,o,i),r=hs(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(je&&r&&qo(t),t.flags|=1,Ze(e,t,n,i),t.child)}function mu(e,t,n,r,i){if(tt(n)){var o=!0;vi(t)}else o=!1;if(Qn(t,i),t.stateNode===null)Oi(e,t),ru(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,d=t.memoizedProps;l.props=d;var m=l.context,P=n.contextType;typeof P=="object"&&P!==null?P=ft(P):(P=tt(n)?gn:Ke.current,P=Un(t,P));var W=n.getDerivedStateFromProps,B=typeof W=="function"||typeof l.getSnapshotBeforeUpdate=="function";B||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(d!==r||m!==P)&&iu(t,l,r,P),Zt=!1;var A=t.memoizedState;l.state=A,Ci(t,r,l,i),m=t.memoizedState,d!==r||A!==m||et.current||Zt?(typeof W=="function"&&(ws(t,n,W,r),m=t.memoizedState),(d=Zt||nu(t,n,d,r,A,m,P))?(B||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=m),l.props=r,l.state=m,l.context=P,r=d):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Da(e,t),d=t.memoizedProps,P=t.type===t.elementType?d:St(t.type,d),l.props=P,B=t.pendingProps,A=l.context,m=n.contextType,typeof m=="object"&&m!==null?m=ft(m):(m=tt(n)?gn:Ke.current,m=Un(t,m));var b=n.getDerivedStateFromProps;(W=typeof b=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(d!==B||A!==m)&&iu(t,l,r,m),Zt=!1,A=t.memoizedState,l.state=A,Ci(t,r,l,i);var ee=t.memoizedState;d!==B||A!==ee||et.current||Zt?(typeof b=="function"&&(ws(t,n,b,r),ee=t.memoizedState),(P=Zt||nu(t,n,P,r,A,ee,m)||!1)?(W||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,ee,m),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,ee,m)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=ee),l.props=r,l.state=ee,l.context=m,r=P):(typeof l.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),r=!1)}return Es(e,t,n,r,o,i)}function Es(e,t,n,r,i,o){hu(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Sa(t,n,!1),At(e,t,o);r=t.stateNode,Zd.current=t;var d=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=$n(t,e.child,null,o),t.child=$n(t,null,d,o)):Ze(e,t,d,o),t.memoizedState=r.state,i&&Sa(t,n,!0),t.child}function gu(e){var t=e.stateNode;t.pendingContext?ya(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ya(e,t.context,!1),ls(e,t.containerInfo)}function vu(e,t,n,r,i){return Vn(),es(i),t.flags|=256,Ze(e,t,n,r),t.child}var Ps={dehydrated:null,treeContext:null,retryLane:0};function Cs(e){return{baseLanes:e,cachePool:null,transitions:null}}function yu(e,t,n){var r=t.pendingProps,i=Re.current,o=!1,l=(t.flags&128)!==0,d;if((d=l)||(d=e!==null&&e.memoizedState===null?!1:(i&2)!==0),d?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Pe(Re,i&1),e===null)return Jo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Yi(l,r,0,null),e=Cn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Cs(n),t.memoizedState=Ps,e):zs(t,l));if(i=e.memoizedState,i!==null&&(d=i.dehydrated,d!==null))return Jd(e,t,l,r,d,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,d=i.sibling;var m={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=sn(i,m),r.subtreeFlags=i.subtreeFlags&14680064),d!==null?o=sn(d,o):(o=Cn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Cs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Ps,r}return o=e.child,e=o.sibling,r=sn(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zs(e,t){return t=Yi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mi(e,t,n,r){return r!==null&&es(r),$n(t,e.child,null,n),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jd(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=xs(Error(s(422))),Mi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Yi({mode:"visible",children:r.children},i,0,null),o=Cn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&$n(t,e.child,null,l),t.child.memoizedState=Cs(l),t.memoizedState=Ps,o);if((t.mode&1)===0)return Mi(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var d=r.dgst;return r=d,o=Error(s(419)),r=xs(o,r,void 0),Mi(e,t,l,r)}if(d=(l&e.childLanes)!==0,nt||d){if(r=Ve,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|l))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,It(e,i),Nt(r,e,i,-1))}return Vs(),r=xs(Error(s(421))),Mi(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=pf.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,at=Kt(i.nextSibling),lt=t,je=!0,wt=null,e!==null&&(ct[dt++]=Mt,ct[dt++]=Ot,ct[dt++]=vn,Mt=e.id,Ot=e.overflow,vn=t),t=zs(t,r.children),t.flags|=4096,t)}function wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),is(e.return,t,n)}function _s(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Su(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ze(e,t,r.children,n),r=Re.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wu(e,n,t);else if(e.tag===19)wu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pe(Re,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&zi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_s(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_s(t,!0,n,null,o);break;case"together":_s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function At(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ef(e,t,n){switch(t.tag){case 3:gu(t),Vn();break;case 5:Ma(t);break;case 1:tt(t.type)&&vi(t);break;case 4:ls(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Pe(Ni,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Pe(Re,Re.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?yu(e,t,n):(Pe(Re,Re.current&1),e=At(e,t,n),e!==null?e.sibling:null);Pe(Re,Re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Su(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pe(Re,Re.current),r)break;return null;case 22:case 23:return t.lanes=0,pu(e,t,n)}return At(e,t,n)}var xu,js,ku,Nu;xu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},ku=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Sn(Ct.current);var o=null;switch(n){case"input":i=Ut(e,i),r=Ut(e,r),o=[];break;case"select":i=V({},i,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":i=Se(e,i),r=Se(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}ao(n,r);var l;n=null;for(P in i)if(!r.hasOwnProperty(P)&&i.hasOwnProperty(P)&&i[P]!=null)if(P==="style"){var d=i[P];for(l in d)d.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(p.hasOwnProperty(P)?o||(o=[]):(o=o||[]).push(P,null));for(P in r){var m=r[P];if(d=i!=null?i[P]:void 0,r.hasOwnProperty(P)&&m!==d&&(m!=null||d!=null))if(P==="style")if(d){for(l in d)!d.hasOwnProperty(l)||m&&m.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in m)m.hasOwnProperty(l)&&d[l]!==m[l]&&(n||(n={}),n[l]=m[l])}else n||(o||(o=[]),o.push(P,n)),n=m;else P==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,d=d?d.__html:void 0,m!=null&&d!==m&&(o=o||[]).push(P,m)):P==="children"?typeof m!="string"&&typeof m!="number"||(o=o||[]).push(P,""+m):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(p.hasOwnProperty(P)?(m!=null&&P==="onScroll"&&ze("scroll",e),o||d===m||(o=[])):(o=o||[]).push(P,m))}n&&(o=o||[]).push("style",n);var P=o;(t.updateQueue=P)&&(t.flags|=4)}},Nu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function tf(e,t,n){var r=t.pendingProps;switch(bo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return tt(t.type)&&gi(),qe(t),null;case 3:return r=t.stateNode,Yn(),_e(et),_e(Ke),cs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wt!==null&&(Us(wt),wt=null))),js(e,t),qe(t),null;case 5:as(t);var i=Sn(zr.current);if(n=t.type,e!==null&&t.stateNode!=null)ku(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(e=Sn(Ct.current),xi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Pt]=t,r[kr]=o,e=(t.mode&1)!==0,n){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(i=0;i<wr.length;i++)ze(wr[i],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":Vr(r,o),ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ze("invalid",r);break;case"textarea":gt(r,o),ze("invalid",r)}ao(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var d=o[l];l==="children"?typeof d=="string"?r.textContent!==d&&(o.suppressHydrationWarning!==!0&&pi(r.textContent,d,e),i=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(o.suppressHydrationWarning!==!0&&pi(r.textContent,d,e),i=["children",""+d]):p.hasOwnProperty(l)&&d!=null&&l==="onScroll"&&ze("scroll",r)}switch(n){case"input":cn(r),tr(r,o,!0);break;case"textarea":cn(r),Ae(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fn(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Pt]=t,e[kr]=r,xu(e,t,!1,!1),t.stateNode=e;e:{switch(l=uo(n,r),n){case"dialog":ze("cancel",e),ze("close",e),i=r;break;case"iframe":case"object":case"embed":ze("load",e),i=r;break;case"video":case"audio":for(i=0;i<wr.length;i++)ze(wr[i],e);i=r;break;case"source":ze("error",e),i=r;break;case"img":case"image":case"link":ze("error",e),ze("load",e),i=r;break;case"details":ze("toggle",e),i=r;break;case"input":Vr(e,r),i=Ut(e,r),ze("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=V({},r,{value:void 0}),ze("invalid",e);break;case"textarea":gt(e,r),i=Se(e,r),ze("invalid",e);break;default:i=r}ao(n,i),d=i;for(o in d)if(d.hasOwnProperty(o)){var m=d[o];o==="style"?fl(e,m):o==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&Qr(e,m)):o==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&Ht(e,m):typeof m=="number"&&Ht(e,""+m):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(p.hasOwnProperty(o)?m!=null&&o==="onScroll"&&ze("scroll",e):m!=null&&C(e,o,m,l))}switch(n){case"input":cn(e),tr(e,r,!1);break;case"textarea":cn(e),Ae(e);break;case"option":r.value!=null&&e.setAttribute("value",""+he(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?de(e,!!r.multiple,o,!1):r.defaultValue!=null&&de(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=hi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Nu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=Sn(zr.current),Sn(Ct.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(o=r.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return qe(t),null;case 13:if(_e(Re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&at!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ca(),Vn(),t.flags|=98560,o=!1;else if(o=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Pt]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else wt!==null&&(Us(wt),wt=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Ue===0&&(Ue=3):Vs())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Yn(),js(e,t),e===null&&Sr(t.stateNode.containerInfo),qe(t),null;case 10:return rs(t.type._context),qe(t),null;case 17:return tt(t.type)&&gi(),qe(t),null;case 19:if(_e(Re),o=t.memoizedState,o===null)return qe(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Tr(o,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=zi(e),l!==null){for(t.flags|=128,Tr(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Re,Re.current&1|2),t.child}e=e.sibling}o.tail!==null&&Le()>bn&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=zi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!je)return qe(t),null}else 2*Le()-o.renderingStartTime>bn&&n!==1073741824&&(t.flags|=128,r=!0,Tr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Le(),t.sibling=null,n=Re.current,Pe(Re,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return Bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ut&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function nf(e,t){switch(bo(t),t.tag){case 1:return tt(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),_e(et),_e(Ke),cs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return Yn(),null;case 10:return rs(t.type._context),null;case 22:case 23:return Bs(),null;case 24:return null;default:return null}}var Ii=!1,be=!1,rf=typeof WeakSet=="function"?WeakSet:Set,J=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function Rs(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Eu=!1;function of(e,t){if(Bo=ni,e=na(),Mo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,d=-1,m=-1,P=0,W=0,B=e,A=null;t:for(;;){for(var b;B!==n||i!==0&&B.nodeType!==3||(d=l+i),B!==o||r!==0&&B.nodeType!==3||(m=l+r),B.nodeType===3&&(l+=B.nodeValue.length),(b=B.firstChild)!==null;)A=B,B=b;for(;;){if(B===e)break t;if(A===n&&++P===i&&(d=l),A===o&&++W===r&&(m=l),(b=B.nextSibling)!==null)break;B=A,A=B.parentNode}B=b}n=d===-1||m===-1?null:{start:d,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:e,selectionRange:n},ni=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,Me=ee.memoizedState,k=t.stateNode,v=k.getSnapshotBeforeUpdate(t.elementType===t.type?te:St(t.type,te),Me);k.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Q){Te(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ee=Eu,Eu=!1,ee}function Lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Rs(t,n,o)}i=i.next}while(i!==r)}}function Fi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ds(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pu(e){var t=e.alternate;t!==null&&(e.alternate=null,Pu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[kr],delete t[Yo],delete t[Ud],delete t[Hd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cu(e){return e.tag===5||e.tag===3||e.tag===4}function zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}function Ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}var Xe=null,xt=!1;function en(e,t,n){for(n=n.child;n!==null;)_u(e,t,n),n=n.sibling}function _u(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(qr,n)}catch{}switch(n.tag){case 5:be||Gn(n,t);case 6:var r=Xe,i=xt;Xe=null,en(e,t,n),Xe=r,xt=i,Xe!==null&&(xt?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(xt?(e=Xe,n=n.stateNode,e.nodeType===8?Qo(e.parentNode,n):e.nodeType===1&&Qo(e,n),dr(e)):Qo(Xe,n.stateNode));break;case 4:r=Xe,i=xt,Xe=n.stateNode.containerInfo,xt=!0,en(e,t,n),Xe=r,xt=i;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&((o&2)!==0||(o&4)!==0)&&Rs(n,t,l),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!be&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){Te(n,t,d)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,en(e,t,n),be=r):en(e,t,n);break;default:en(e,t,n)}}function ju(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rf),t.forEach(function(r){var i=hf.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,d=l;e:for(;d!==null;){switch(d.tag){case 5:Xe=d.stateNode,xt=!1;break e;case 3:Xe=d.stateNode.containerInfo,xt=!0;break e;case 4:Xe=d.stateNode.containerInfo,xt=!0;break e}d=d.return}if(Xe===null)throw Error(s(160));_u(o,l,i),Xe=null,xt=!1;var m=i.alternate;m!==null&&(m.return=null),i.return=null}catch(P){Te(i,t,P)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ru(t,e),t=t.sibling}function Ru(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),_t(e),r&4){try{Lr(3,e,e.return),Fi(3,e)}catch(te){Te(e,e.return,te)}try{Lr(5,e,e.return)}catch(te){Te(e,e.return,te)}}break;case 1:kt(t,e),_t(e),r&512&&n!==null&&Gn(n,n.return);break;case 5:if(kt(t,e),_t(e),r&512&&n!==null&&Gn(n,n.return),e.flags&32){var i=e.stateNode;try{Ht(i,"")}catch(te){Te(e,e.return,te)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,d=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{d==="input"&&o.type==="radio"&&o.name!=null&&$r(i,o),uo(d,l);var P=uo(d,o);for(l=0;l<m.length;l+=2){var W=m[l],B=m[l+1];W==="style"?fl(i,B):W==="dangerouslySetInnerHTML"?Qr(i,B):W==="children"?Ht(i,B):C(i,W,B,P)}switch(d){case"input":er(i,o);break;case"textarea":Xr(i,o);break;case"select":var A=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var b=o.value;b!=null?de(i,!!o.multiple,b,!1):A!==!!o.multiple&&(o.defaultValue!=null?de(i,!!o.multiple,o.defaultValue,!0):de(i,!!o.multiple,o.multiple?[]:"",!1))}i[kr]=o}catch(te){Te(e,e.return,te)}}break;case 6:if(kt(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(s(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(te){Te(e,e.return,te)}}break;case 3:if(kt(t,e),_t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{dr(t.containerInfo)}catch(te){Te(e,e.return,te)}break;case 4:kt(t,e),_t(e);break;case 13:kt(t,e),_t(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Is=Le())),r&4&&ju(e);break;case 22:if(W=n!==null&&n.memoizedState!==null,e.mode&1?(be=(P=be)||W,kt(t,e),be=P):kt(t,e),_t(e),r&8192){if(P=e.memoizedState!==null,(e.stateNode.isHidden=P)&&!W&&(e.mode&1)!==0)for(J=e,W=e.child;W!==null;){for(B=J=W;J!==null;){switch(A=J,b=A.child,A.tag){case 0:case 11:case 14:case 15:Lr(4,A,A.return);break;case 1:Gn(A,A.return);var ee=A.stateNode;if(typeof ee.componentWillUnmount=="function"){r=A,n=A.return;try{t=r,ee.props=t.memoizedProps,ee.state=t.memoizedState,ee.componentWillUnmount()}catch(te){Te(r,n,te)}}break;case 5:Gn(A,A.return);break;case 22:if(A.memoizedState!==null){Lu(B);continue}}b!==null?(b.return=A,J=b):Lu(B)}W=W.sibling}e:for(W=null,B=e;;){if(B.tag===5){if(W===null){W=B;try{i=B.stateNode,P?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(d=B.stateNode,m=B.memoizedProps.style,l=m!=null&&m.hasOwnProperty("display")?m.display:null,d.style.display=dl("display",l))}catch(te){Te(e,e.return,te)}}}else if(B.tag===6){if(W===null)try{B.stateNode.nodeValue=P?"":B.memoizedProps}catch(te){Te(e,e.return,te)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;W===B&&(W=null),B=B.return}W===B&&(W=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:kt(t,e),_t(e),r&4&&ju(e);break;case 21:break;default:kt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cu(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ht(i,""),r.flags&=-33);var o=zu(e);Ls(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,d=zu(e);Ts(e,d,l);break;default:throw Error(s(161))}}catch(m){Te(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sf(e,t,n){J=e,Du(e)}function Du(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Ii;if(!l){var d=i.alternate,m=d!==null&&d.memoizedState!==null||be;d=Ii;var P=be;if(Ii=l,(be=m)&&!P)for(J=i;J!==null;)l=J,m=l.child,l.tag===22&&l.memoizedState!==null?Mu(i):m!==null?(m.return=l,J=m):Mu(i);for(;o!==null;)J=o,Du(o),o=o.sibling;J=i,Ii=d,be=P}Tu(e)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,J=o):Tu(e)}}function Tu(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:be||Fi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&La(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}La(t,l,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var P=t.alternate;if(P!==null){var W=P.memoizedState;if(W!==null){var B=W.dehydrated;B!==null&&dr(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}be||t.flags&512&&Ds(t)}catch(A){Te(t,t.return,A)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Lu(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Mu(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fi(4,t)}catch(m){Te(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(m){Te(t,i,m)}}var o=t.return;try{Ds(t)}catch(m){Te(t,o,m)}break;case 5:var l=t.return;try{Ds(t)}catch(m){Te(t,l,m)}}}catch(m){Te(t,t.return,m)}if(t===e){J=null;break}var d=t.sibling;if(d!==null){d.return=t.return,J=d;break}J=t.return}}var lf=Math.ceil,Ai=M.ReactCurrentDispatcher,Ms=M.ReactCurrentOwner,ht=M.ReactCurrentBatchConfig,we=0,Ve=null,Ie=null,Qe=0,ut=0,qn=Gt(0),Ue=0,Mr=null,kn=0,Wi=0,Os=0,Or=null,rt=null,Is=0,bn=1/0,Wt=null,Ui=!1,Fs=null,tn=null,Hi=!1,nn=null,Bi=0,Ir=0,As=null,Vi=-1,$i=0;function Je(){return(we&6)!==0?Le():Vi!==-1?Vi:Vi=Le()}function rn(e){return(e.mode&1)===0?1:(we&2)!==0&&Qe!==0?Qe&-Qe:Vd.transition!==null?($i===0&&($i=zl()),$i):(e=ke,e!==0||(e=window.event,e=e===void 0?16:Il(e.type)),e)}function Nt(e,t,n,r){if(50<Ir)throw Ir=0,As=null,Error(s(185));sr(e,n,r),((we&2)===0||e!==Ve)&&(e===Ve&&((we&2)===0&&(Wi|=n),Ue===4&&on(e,Qe)),it(e,r),n===1&&we===0&&(t.mode&1)===0&&(bn=Le()+500,yi&&bt()))}function it(e,t){var n=e.callbackNode;Vc(e,t);var r=Jr(e,e===Ve?Qe:0);if(r===0)n!==null&&El(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&El(n),t===1)e.tag===0?Bd(Iu.bind(null,e)):xa(Iu.bind(null,e)),Ad(function(){(we&6)===0&&bt()}),n=null;else{switch(_l(r)){case 1:n=vo;break;case 4:n=Pl;break;case 16:n=Gr;break;case 536870912:n=Cl;break;default:n=Gr}n=$u(n,Ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ou(e,t){if(Vi=-1,$i=0,(we&6)!==0)throw Error(s(327));var n=e.callbackNode;if(Zn()&&e.callbackNode!==n)return null;var r=Jr(e,e===Ve?Qe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Xi(e,r);else{t=r;var i=we;we|=2;var o=Au();(Ve!==e||Qe!==t)&&(Wt=null,bn=Le()+500,En(e,t));do try{cf();break}catch(d){Fu(e,d)}while(!0);ns(),Ai.current=o,we=i,Ie!==null?t=0:(Ve=null,Qe=0,t=Ue)}if(t!==0){if(t===2&&(i=yo(e),i!==0&&(r=i,t=Ws(e,i))),t===1)throw n=Mr,En(e,0),on(e,r),it(e,Le()),n;if(t===6)on(e,r);else{if(i=e.current.alternate,(r&30)===0&&!af(i)&&(t=Xi(e,r),t===2&&(o=yo(e),o!==0&&(r=o,t=Ws(e,o))),t===1))throw n=Mr,En(e,0),on(e,r),it(e,Le()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:Pn(e,rt,Wt);break;case 3:if(on(e,r),(r&130023424)===r&&(t=Is+500-Le(),10<t)){if(Jr(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xo(Pn.bind(null,e,rt,Wt),t);break}Pn(e,rt,Wt);break;case 4:if(on(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-vt(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lf(r/1960))-r,10<r){e.timeoutHandle=Xo(Pn.bind(null,e,rt,Wt),r);break}Pn(e,rt,Wt);break;case 5:Pn(e,rt,Wt);break;default:throw Error(s(329))}}}return it(e,Le()),e.callbackNode===n?Ou.bind(null,e):null}function Ws(e,t){var n=Or;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=Xi(e,t),e!==2&&(t=rt,rt=n,t!==null&&Us(t)),e}function Us(e){rt===null?rt=e:rt.push.apply(rt,e)}function af(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!yt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t){for(t&=~Os,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-vt(t),r=1<<n;e[n]=-1,t&=~r}}function Iu(e){if((we&6)!==0)throw Error(s(327));Zn();var t=Jr(e,0);if((t&1)===0)return it(e,Le()),null;var n=Xi(e,t);if(e.tag!==0&&n===2){var r=yo(e);r!==0&&(t=r,n=Ws(e,r))}if(n===1)throw n=Mr,En(e,0),on(e,t),it(e,Le()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,rt,Wt),it(e,Le()),null}function Hs(e,t){var n=we;we|=1;try{return e(t)}finally{we=n,we===0&&(bn=Le()+500,yi&&bt())}}function Nn(e){nn!==null&&nn.tag===0&&(we&6)===0&&Zn();var t=we;we|=1;var n=ht.transition,r=ke;try{if(ht.transition=null,ke=1,e)return e()}finally{ke=r,ht.transition=n,we=t,(we&6)===0&&bt()}}function Bs(){ut=qn.current,_e(qn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fd(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(bo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:Yn(),_e(et),_e(Ke),cs();break;case 5:as(r);break;case 4:Yn();break;case 13:_e(Re);break;case 19:_e(Re);break;case 10:rs(r.type._context);break;case 22:case 23:Bs()}n=n.return}if(Ve=e,Ie=e=sn(e.current,null),Qe=ut=t,Ue=0,Mr=null,Os=Wi=kn=0,rt=Or=null,wn!==null){for(t=0;t<wn.length;t++)if(n=wn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}wn=null}return e}function Fu(e,t){do{var n=Ie;try{if(ns(),_i.current=Ti,ji){for(var r=De.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ji=!1}if(xn=0,Be=We=De=null,_r=!1,jr=0,Ms.current=null,n===null||n.return===null){Ue=1,Mr=t,Ie=null;break}e:{var o=e,l=n.return,d=n,m=t;if(t=Qe,d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var P=m,W=d,B=W.tag;if((W.mode&1)===0&&(B===0||B===11||B===15)){var A=W.alternate;A?(W.updateQueue=A.updateQueue,W.memoizedState=A.memoizedState,W.lanes=A.lanes):(W.updateQueue=null,W.memoizedState=null)}var b=au(l);if(b!==null){b.flags&=-257,uu(b,l,d,o,t),b.mode&1&&lu(o,P,t),t=b,m=P;var ee=t.updateQueue;if(ee===null){var te=new Set;te.add(m),t.updateQueue=te}else ee.add(m);break e}else{if((t&1)===0){lu(o,P,t),Vs();break e}m=Error(s(426))}}else if(je&&d.mode&1){var Me=au(l);if(Me!==null){(Me.flags&65536)===0&&(Me.flags|=256),uu(Me,l,d,o,t),es(Kn(m,d));break e}}o=m=Kn(m,d),Ue!==4&&(Ue=2),Or===null?Or=[o]:Or.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var k=ou(o,m,t);Ta(o,k);break e;case 1:d=m;var v=o.type,N=o.stateNode;if((o.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(tn===null||!tn.has(N)))){o.flags|=65536,t&=-t,o.lanes|=t;var Q=su(o,d,t);Ta(o,Q);break e}}o=o.return}while(o!==null)}Uu(n)}catch(ie){t=ie,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function Au(){var e=Ai.current;return Ai.current=Ti,e===null?Ti:e}function Vs(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ve===null||(kn&268435455)===0&&(Wi&268435455)===0||on(Ve,Qe)}function Xi(e,t){var n=we;we|=2;var r=Au();(Ve!==e||Qe!==t)&&(Wt=null,En(e,t));do try{uf();break}catch(i){Fu(e,i)}while(!0);if(ns(),we=n,Ai.current=r,Ie!==null)throw Error(s(261));return Ve=null,Qe=0,Ue}function uf(){for(;Ie!==null;)Wu(Ie)}function cf(){for(;Ie!==null&&!Mc();)Wu(Ie)}function Wu(e){var t=Vu(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?Uu(e):Ie=t,Ms.current=null}function Uu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=tf(n,t,ut),n!==null){Ie=n;return}}else{if(n=nf(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,Ie=null;return}}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Ue===0&&(Ue=5)}function Pn(e,t,n){var r=ke,i=ht.transition;try{ht.transition=null,ke=1,df(e,t,n,r)}finally{ht.transition=i,ke=r}return null}function df(e,t,n,r){do Zn();while(nn!==null);if((we&6)!==0)throw Error(s(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if($c(e,o),e===Ve&&(Ie=Ve=null,Qe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Hi||(Hi=!0,$u(Gr,function(){return Zn(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=ht.transition,ht.transition=null;var l=ke;ke=1;var d=we;we|=4,Ms.current=null,of(e,n),Ru(n,e),Rd(Vo),ni=!!Bo,Vo=Bo=null,e.current=n,sf(n),Oc(),we=d,ke=l,ht.transition=o}else e.current=n;if(Hi&&(Hi=!1,nn=e,Bi=i),o=e.pendingLanes,o===0&&(tn=null),Ac(n.stateNode),it(e,Le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ui)throw Ui=!1,e=Fs,Fs=null,e;return(Bi&1)!==0&&e.tag!==0&&Zn(),o=e.pendingLanes,(o&1)!==0?e===As?Ir++:(Ir=0,As=e):Ir=0,bt(),null}function Zn(){if(nn!==null){var e=_l(Bi),t=ht.transition,n=ke;try{if(ht.transition=null,ke=16>e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,Bi=0,(we&6)!==0)throw Error(s(331));var i=we;for(we|=4,J=e.current;J!==null;){var o=J,l=o.child;if((J.flags&16)!==0){var d=o.deletions;if(d!==null){for(var m=0;m<d.length;m++){var P=d[m];for(J=P;J!==null;){var W=J;switch(W.tag){case 0:case 11:case 15:Lr(8,W,o)}var B=W.child;if(B!==null)B.return=W,J=B;else for(;J!==null;){W=J;var A=W.sibling,b=W.return;if(Pu(W),W===P){J=null;break}if(A!==null){A.return=b,J=A;break}J=b}}}var ee=o.alternate;if(ee!==null){var te=ee.child;if(te!==null){ee.child=null;do{var Me=te.sibling;te.sibling=null,te=Me}while(te!==null)}}J=o}}if((o.subtreeFlags&2064)!==0&&l!==null)l.return=o,J=l;else e:for(;J!==null;){if(o=J,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Lr(9,o,o.return)}var k=o.sibling;if(k!==null){k.return=o.return,J=k;break e}J=o.return}}var v=e.current;for(J=v;J!==null;){l=J;var N=l.child;if((l.subtreeFlags&2064)!==0&&N!==null)N.return=l,J=N;else e:for(l=v;J!==null;){if(d=J,(d.flags&2048)!==0)try{switch(d.tag){case 0:case 11:case 15:Fi(9,d)}}catch(ie){Te(d,d.return,ie)}if(d===l){J=null;break e}var Q=d.sibling;if(Q!==null){Q.return=d.return,J=Q;break e}J=d.return}}if(we=i,bt(),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(qr,e)}catch{}r=!0}return r}finally{ke=n,ht.transition=t}}return!1}function Hu(e,t,n){t=Kn(n,t),t=ou(e,t,1),e=Jt(e,t,1),t=Je(),e!==null&&(sr(e,1,t),it(e,t))}function Te(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tn===null||!tn.has(r))){e=Kn(n,e),e=su(t,e,1),t=Jt(t,e,1),e=Je(),t!==null&&(sr(t,1,e),it(t,e));break}}t=t.return}}function ff(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(Qe&n)===n&&(Ue===4||Ue===3&&(Qe&130023424)===Qe&&500>Le()-Is?En(e,0):Os|=n),it(e,t)}function Bu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Zr,Zr<<=1,(Zr&130023424)===0&&(Zr=4194304)));var n=Je();e=It(e,t),e!==null&&(sr(e,t,n),it(e,n))}function pf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bu(e,n)}function hf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Bu(e,n)}var Vu;Vu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)nt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return nt=!1,ef(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,je&&(t.flags&1048576)!==0&&ka(t,Si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var i=Un(t,Ke.current);Qn(t,n),i=ps(null,t,r,e,i,n);var o=hs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(o=!0,vi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ss(t),i.updater=Li,t.stateNode=i,i._reactInternals=t,Ss(t,r,e,n),t=Es(null,t,r,!0,o,n)):(t.tag=0,je&&o&&qo(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gf(r),e=St(r,e),i){case 0:t=Ns(null,t,r,e,n);break e;case 1:t=mu(null,t,r,e,n);break e;case 11:t=cu(null,t,r,e,n);break e;case 14:t=du(null,t,r,St(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ns(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),mu(e,t,r,i,n);case 3:e:{if(gu(t),e===null)throw Error(s(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Da(e,t),Ci(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Kn(Error(s(423)),t),t=vu(e,t,r,n,i);break e}else if(r!==i){i=Kn(Error(s(424)),t),t=vu(e,t,r,n,i);break e}else for(at=Kt(t.stateNode.containerInfo.firstChild),lt=t,je=!0,wt=null,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===i){t=At(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return Ma(t),e===null&&Jo(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,$o(r,i)?l=null:o!==null&&$o(r,o)&&(t.flags|=32),hu(e,t),Ze(e,t,l,n),t.child;case 6:return e===null&&Jo(t),null;case 13:return yu(e,t,n);case 4:return ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),cu(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,Pe(Ni,r._currentValue),r._currentValue=l,o!==null)if(yt(o.value,l)){if(o.children===i.children&&!et.current){t=At(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var d=o.dependencies;if(d!==null){l=o.child;for(var m=d.firstContext;m!==null;){if(m.context===r){if(o.tag===1){m=Ft(-1,n&-n),m.tag=2;var P=o.updateQueue;if(P!==null){P=P.shared;var W=P.pending;W===null?m.next=m:(m.next=W.next,W.next=m),P.pending=m}}o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),is(o.return,n,t),d.lanes|=n;break}m=m.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(s(341));l.lanes|=n,d=l.alternate,d!==null&&(d.lanes|=n),is(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Qn(t,n),i=ft(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),du(e,t,r,i,n);case 15:return fu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Oi(e,t),t.tag=1,tt(r)?(e=!0,vi(t)):e=!1,Qn(t,n),ru(t,r,i),Ss(t,r,i,n),Es(null,t,r,!0,e,n);case 19:return Su(e,t,n);case 22:return pu(e,t,n)}throw Error(s(156,t.tag))};function $u(e,t){return Nl(e,t)}function mf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new mf(e,t,n,r)}function $s(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gf(e){if(typeof e=="function")return $s(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===Ce)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qi(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")$s(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case y:return Cn(n.children,i,o,t);case j:l=8,i|=8;break;case $:return e=mt(12,n,t,i|2),e.elementType=$,e.lanes=o,e;case ce:return e=mt(13,n,t,i),e.elementType=ce,e.lanes=o,e;case Ne:return e=mt(19,n,t,i),e.elementType=Ne,e.lanes=o,e;case ve:return Yi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:l=10;break e;case ae:l=9;break e;case oe:l=11;break e;case Ce:l=14;break e;case ye:l=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=mt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Cn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Yi(e,t,n,r){return e=mt(22,e,r,t),e.elementType=ve,e.lanes=n,e.stateNode={isHidden:!1},e}function Xs(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Qs(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vf(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ys(e,t,n,r,i,o,l,d,m){return e=new vf(e,t,n,d,m),t===1?(t=1,o===!0&&(t|=8)):t=0,o=mt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(o),e}function yf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:G,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Xu(e){if(!e)return qt;e=e._reactInternals;e:{if(hn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(tt(n))return wa(e,n,t)}return t}function Qu(e,t,n,r,i,o,l,d,m){return e=Ys(n,r,!0,e,i,o,l,d,m),e.context=Xu(null),n=e.current,r=Je(),i=rn(n),o=Ft(r,i),o.callback=t??null,Jt(n,o,i),e.current.lanes=i,sr(e,i,r),it(e,r),e}function Ki(e,t,n,r){var i=t.current,o=Je(),l=rn(i);return n=Xu(n),t.context===null?t.context=n:t.pendingContext=n,t=Ft(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jt(i,t,l),e!==null&&(Nt(e,i,l,o),Pi(e,i,l)),l}function Gi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ks(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function wf(){return null}var Ku=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}qi.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ki(e,t,null,null)},qi.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){Ki(null,e,null,null)}),t[Tt]=null}};function qi(e){this._internalRoot=e}qi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dl();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xt.length&&t!==0&&t<Xt[n].priority;n++);Xt.splice(n,0,e),n===0&&Ml(e)}};function qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gu(){}function Sf(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var P=Gi(l);o.call(P)}}var l=Qu(t,r,e,0,null,!1,!1,"",Gu);return e._reactRootContainer=l,e[Tt]=l.current,Sr(e.nodeType===8?e.parentNode:e),Nn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var d=r;r=function(){var P=Gi(m);d.call(P)}}var m=Ys(e,0,!1,null,null,!1,!1,"",Gu);return e._reactRootContainer=m,e[Tt]=m.current,Sr(e.nodeType===8?e.parentNode:e),Nn(function(){Ki(t,m,n,r)}),m}function Zi(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var d=i;i=function(){var m=Gi(l);d.call(m)}}Ki(t,l,e,i)}else l=Sf(n,t,e,i,r);return Gi(l)}jl=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=or(t.pendingLanes);n!==0&&(So(t,n|1),it(t,Le()),(we&6)===0&&(bn=Le()+500,bt()))}break;case 13:Nn(function(){var r=It(e,1);if(r!==null){var i=Je();Nt(r,e,1,i)}}),Ks(e,1)}},xo=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var n=Je();Nt(t,e,134217728,n)}Ks(e,134217728)}},Rl=function(e){if(e.tag===13){var t=rn(e),n=It(e,t);if(n!==null){var r=Je();Nt(n,e,t,r)}Ks(e,t)}},Dl=function(){return ke},Tl=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}},po=function(e,t,n){switch(t){case"input":if(er(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=mi(r);if(!i)throw Error(s(90));Br(r),er(r,i)}}}break;case"textarea":Xr(e,n);break;case"select":t=n.value,t!=null&&de(e,!!n.multiple,t,!1)}},gl=Hs,vl=Nn;var xf={usingClientEntryPoint:!1,Events:[Nr,An,mi,hl,ml,Hs]},Fr={findFiberByHostInstance:mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kf={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xl(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||wf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{qr=Ji.inject(kf),Et=Ji}catch{}}return ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xf,ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qs(t))throw Error(s(200));return yf(e,t,null,n)},ot.createRoot=function(e,t){if(!qs(e))throw Error(s(299));var n=!1,r="",i=Ku;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ys(e,1,!1,null,null,n,!1,r,i),e[Tt]=t.current,Sr(e.nodeType===8?e.parentNode:e),new Gs(t)},ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=xl(t),e=e===null?null:e.stateNode,e},ot.flushSync=function(e){return Nn(e)},ot.hydrate=function(e,t,n){if(!bi(t))throw Error(s(200));return Zi(null,e,t,!0,n)},ot.hydrateRoot=function(e,t,n){if(!qs(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=Ku;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Qu(t,null,e,1,n??null,i,!1,o,l),e[Tt]=t.current,Sr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new qi(t)},ot.render=function(e,t,n){if(!bi(t))throw Error(s(200));return Zi(null,e,t,!1,n)},ot.unmountComponentAtNode=function(e){if(!bi(e))throw Error(s(40));return e._reactRootContainer?(Nn(function(){Zi(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},ot.unstable_batchedUpdates=Hs,ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bi(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Zi(e,t,n,!1,r)},ot.version="18.3.1-next-f1338f8080-20240426",ot}var rc;function so(){if(rc)return Js.exports;rc=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),Js.exports=Rf(),Js.exports}var ic;function Df(){if(ic)return eo;ic=1;var u=so();return eo.createRoot=u.createRoot,eo.hydrateRoot=u.hydrateRoot,eo}var Tf=Df();const Lf=al(Tf);var Wr={exports:{}},nl={},rl={exports:{}},il,oc;function Mf(){if(oc)return il;oc=1;var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return il=u,il}var ol,sc;function Of(){if(sc)return ol;sc=1;var u=Mf();function f(){}function s(){}return s.resetWarningCache=f,ol=function(){function a(w,S,E,R,I,x){if(x!==u){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}a.isRequired=a;function p(){return a}var g={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:p,element:a,elementType:a,instanceOf:p,node:a,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:s,resetWarningCache:f};return g.PropTypes=g,g},ol}var lc;function kc(){return lc||(lc=1,rl.exports=Of()()),rl.exports}function Nc(u){var f,s,a="";if(typeof u=="string"||typeof u=="number")a+=u;else if(typeof u=="object")if(Array.isArray(u))for(f=0;f<u.length;f++)u[f]&&(s=Nc(u[f]))&&(a&&(a+=" "),a+=s);else for(f in u)u[f]&&(a&&(a+=" "),a+=f);return a}function ac(){for(var u,f,s=0,a="";s<arguments.length;)(u=arguments[s++])&&(f=Nc(u))&&(a&&(a+=" "),a+=f);return a}const If=Object.freeze(Object.defineProperty({__proto__:null,clsx:ac,default:ac},Symbol.toStringTag,{value:"Module"})),Ff=Ef(If);var Oe={},an={},uc;function lo(){if(uc)return an;uc=1,Object.defineProperty(an,"__esModule",{value:!0}),an.dontSetMe=p,an.findInArray=u,an.int=a,an.isFunction=f,an.isNum=s;function u(g,w){for(let S=0,E=g.length;S<E;S++)if(w.apply(w,[g[S],S,g]))return g[S]}function f(g){return typeof g=="function"||Object.prototype.toString.call(g)==="[object Function]"}function s(g){return typeof g=="number"&&!isNaN(g)}function a(g){return parseInt(g,10)}function p(g,w,S){if(g[w])return new Error("Invalid prop ".concat(w," passed to ").concat(S," - do not set this, set it on the child."))}return an}var un={},cc;function Af(){if(cc)return un;cc=1,Object.defineProperty(un,"__esModule",{value:!0}),un.browserPrefixToKey=s,un.browserPrefixToStyle=a,un.default=void 0,un.getPrefix=f;const u=["Moz","Webkit","O","ms"];function f(){var g;let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const S=(g=window.document)===null||g===void 0||(g=g.documentElement)===null||g===void 0?void 0:g.style;if(!S||w in S)return"";for(let E=0;E<u.length;E++)if(s(w,u[E])in S)return u[E];return""}function s(g,w){return w?"".concat(w).concat(p(g)):g}function a(g,w){return w?"-".concat(w.toLowerCase(),"-").concat(g):g}function p(g){let w="",S=!0;for(let E=0;E<g.length;E++)S?(w+=g[E].toUpperCase(),S=!1):g[E]==="-"?S=!0:w+=g[E];return w}return un.default=f(),un}var dc;function cl(){if(dc)return Oe;dc=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.addClassName=H,Oe.addEvent=S,Oe.addUserSelectStyles=C,Oe.createCSSTransform=X,Oe.createSVGTransform=O,Oe.getTouch=L,Oe.getTouchIdentifier=_,Oe.getTranslation=T,Oe.innerHeight=x,Oe.innerWidth=D,Oe.matchesSelector=g,Oe.matchesSelectorAndParentsTo=w,Oe.offsetXYFromParent=U,Oe.outerHeight=R,Oe.outerWidth=I,Oe.removeClassName=G,Oe.removeEvent=E,Oe.removeUserSelectStyles=M;var u=lo(),f=a(Af());function s(y){if(typeof WeakMap!="function")return null;var j=new WeakMap,$=new WeakMap;return(s=function(ne){return ne?$:j})(y)}function a(y,j){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var $=s(j);if($&&$.has(y))return $.get(y);var ne={},ae=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in y)if(oe!=="default"&&Object.prototype.hasOwnProperty.call(y,oe)){var ce=ae?Object.getOwnPropertyDescriptor(y,oe):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,oe,ce):ne[oe]=y[oe]}return ne.default=y,$&&$.set(y,ne),ne}let p="";function g(y,j){return p||(p=(0,u.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function($){return(0,u.isFunction)(y[$])})),(0,u.isFunction)(y[p])?y[p](j):!1}function w(y,j,$){let ne=y;do{if(g(ne,j))return!0;if(ne===$)return!1;ne=ne.parentNode}while(ne);return!1}function S(y,j,$,ne){if(!y)return;const ae={capture:!0,...ne};y.addEventListener?y.addEventListener(j,$,ae):y.attachEvent?y.attachEvent("on"+j,$):y["on"+j]=$}function E(y,j,$,ne){if(!y)return;const ae={capture:!0,...ne};y.removeEventListener?y.removeEventListener(j,$,ae):y.detachEvent?y.detachEvent("on"+j,$):y["on"+j]=null}function R(y){let j=y.clientHeight;const $=y.ownerDocument.defaultView.getComputedStyle(y);return j+=(0,u.int)($.borderTopWidth),j+=(0,u.int)($.borderBottomWidth),j}function I(y){let j=y.clientWidth;const $=y.ownerDocument.defaultView.getComputedStyle(y);return j+=(0,u.int)($.borderLeftWidth),j+=(0,u.int)($.borderRightWidth),j}function x(y){let j=y.clientHeight;const $=y.ownerDocument.defaultView.getComputedStyle(y);return j-=(0,u.int)($.paddingTop),j-=(0,u.int)($.paddingBottom),j}function D(y){let j=y.clientWidth;const $=y.ownerDocument.defaultView.getComputedStyle(y);return j-=(0,u.int)($.paddingLeft),j-=(0,u.int)($.paddingRight),j}function U(y,j,$){const ae=j===j.ownerDocument.body?{left:0,top:0}:j.getBoundingClientRect(),oe=(y.clientX+j.scrollLeft-ae.left)/$,ce=(y.clientY+j.scrollTop-ae.top)/$;return{x:oe,y:ce}}function X(y,j){const $=T(y,j,"px");return{[(0,f.browserPrefixToKey)("transform",f.default)]:$}}function O(y,j){return T(y,j,"")}function T(y,j,$){let{x:ne,y:ae}=y,oe="translate(".concat(ne).concat($,",").concat(ae).concat($,")");if(j){const ce="".concat(typeof j.x=="string"?j.x:j.x+$),Ne="".concat(typeof j.y=="string"?j.y:j.y+$);oe="translate(".concat(ce,", ").concat(Ne,")")+oe}return oe}function L(y,j){return y.targetTouches&&(0,u.findInArray)(y.targetTouches,$=>j===$.identifier)||y.changedTouches&&(0,u.findInArray)(y.changedTouches,$=>j===$.identifier)}function _(y){if(y.targetTouches&&y.targetTouches[0])return y.targetTouches[0].identifier;if(y.changedTouches&&y.changedTouches[0])return y.changedTouches[0].identifier}function C(y){if(!y)return;let j=y.getElementById("react-draggable-style-el");j||(j=y.createElement("style"),j.type="text/css",j.id="react-draggable-style-el",j.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
41
- `,j.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
42
- `,y.getElementsByTagName("head")[0].appendChild(j)),y.body&&H(y.body,"react-draggable-transparent-selection")}function M(y){if(y)try{if(y.body&&G(y.body,"react-draggable-transparent-selection"),y.selection)y.selection.empty();else{const j=(y.defaultView||window).getSelection();j&&j.type!=="Caret"&&j.removeAllRanges()}}catch{}}function H(y,j){y.classList?y.classList.add(j):y.className.match(new RegExp("(?:^|\\s)".concat(j,"(?!\\S)")))||(y.className+=" ".concat(j))}function G(y,j){y.classList?y.classList.remove(j):y.className=y.className.replace(new RegExp("(?:^|\\s)".concat(j,"(?!\\S)"),"g"),"")}return Oe}var jt={},fc;function Ec(){if(fc)return jt;fc=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.canDragX=p,jt.canDragY=g,jt.createCoreData=S,jt.createDraggableData=E,jt.getBoundPosition=s,jt.getControlPosition=w,jt.snapToGrid=a;var u=lo(),f=cl();function s(x,D,U){if(!x.props.bounds)return[D,U];let{bounds:X}=x.props;X=typeof X=="string"?X:R(X);const O=I(x);if(typeof X=="string"){const{ownerDocument:T}=O,L=T.defaultView;let _;if(X==="parent"?_=O.parentNode:_=T.querySelector(X),!(_ instanceof L.HTMLElement))throw new Error('Bounds selector "'+X+'" could not find an element.');const C=_,M=L.getComputedStyle(O),H=L.getComputedStyle(C);X={left:-O.offsetLeft+(0,u.int)(H.paddingLeft)+(0,u.int)(M.marginLeft),top:-O.offsetTop+(0,u.int)(H.paddingTop)+(0,u.int)(M.marginTop),right:(0,f.innerWidth)(C)-(0,f.outerWidth)(O)-O.offsetLeft+(0,u.int)(H.paddingRight)-(0,u.int)(M.marginRight),bottom:(0,f.innerHeight)(C)-(0,f.outerHeight)(O)-O.offsetTop+(0,u.int)(H.paddingBottom)-(0,u.int)(M.marginBottom)}}return(0,u.isNum)(X.right)&&(D=Math.min(D,X.right)),(0,u.isNum)(X.bottom)&&(U=Math.min(U,X.bottom)),(0,u.isNum)(X.left)&&(D=Math.max(D,X.left)),(0,u.isNum)(X.top)&&(U=Math.max(U,X.top)),[D,U]}function a(x,D,U){const X=Math.round(D/x[0])*x[0],O=Math.round(U/x[1])*x[1];return[X,O]}function p(x){return x.props.axis==="both"||x.props.axis==="x"}function g(x){return x.props.axis==="both"||x.props.axis==="y"}function w(x,D,U){const X=typeof D=="number"?(0,f.getTouch)(x,D):null;if(typeof D=="number"&&!X)return null;const O=I(U),T=U.props.offsetParent||O.offsetParent||O.ownerDocument.body;return(0,f.offsetXYFromParent)(X||x,T,U.props.scale)}function S(x,D,U){const X=!(0,u.isNum)(x.lastX),O=I(x);return X?{node:O,deltaX:0,deltaY:0,lastX:D,lastY:U,x:D,y:U}:{node:O,deltaX:D-x.lastX,deltaY:U-x.lastY,lastX:x.lastX,lastY:x.lastY,x:D,y:U}}function E(x,D){const U=x.props.scale;return{node:D.node,x:x.state.x+D.deltaX/U,y:x.state.y+D.deltaY/U,deltaX:D.deltaX/U,deltaY:D.deltaY/U,lastX:x.state.x,lastY:x.state.y}}function R(x){return{left:x.left,top:x.top,right:x.right,bottom:x.bottom}}function I(x){const D=x.findDOMNode();if(!D)throw new Error("<DraggableCore>: Unmounted during event!");return D}return jt}var Ur={},to={},pc;function Pc(){if(pc)return to;pc=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=u;function u(){}return to}var hc;function Wf(){if(hc)return Ur;hc=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var u=R(Hr()),f=S(kc()),s=S(so()),a=cl(),p=Ec(),g=lo(),w=S(Pc());function S(T){return T&&T.__esModule?T:{default:T}}function E(T){if(typeof WeakMap!="function")return null;var L=new WeakMap,_=new WeakMap;return(E=function(C){return C?_:L})(T)}function R(T,L){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var _=E(L);if(_&&_.has(T))return _.get(T);var C={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in T)if(H!=="default"&&Object.prototype.hasOwnProperty.call(T,H)){var G=M?Object.getOwnPropertyDescriptor(T,H):null;G&&(G.get||G.set)?Object.defineProperty(C,H,G):C[H]=T[H]}return C.default=T,_&&_.set(T,C),C}function I(T,L,_){return L=x(L),L in T?Object.defineProperty(T,L,{value:_,enumerable:!0,configurable:!0,writable:!0}):T[L]=_,T}function x(T){var L=D(T,"string");return typeof L=="symbol"?L:String(L)}function D(T,L){if(typeof T!="object"||T===null)return T;var _=T[Symbol.toPrimitive];if(_!==void 0){var C=_.call(T,L);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(T)}const U={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let X=U.mouse,O=class extends u.Component{constructor(){super(...arguments),I(this,"dragging",!1),I(this,"lastX",NaN),I(this,"lastY",NaN),I(this,"touchIdentifier",null),I(this,"mounted",!1),I(this,"handleDragStart",L=>{if(this.props.onMouseDown(L),!this.props.allowAnyClick&&typeof L.button=="number"&&L.button!==0)return!1;const _=this.findDOMNode();if(!_||!_.ownerDocument||!_.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:C}=_;if(this.props.disabled||!(L.target instanceof C.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(L.target,this.props.handle,_)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(L.target,this.props.cancel,_))return;L.type==="touchstart"&&L.preventDefault();const M=(0,a.getTouchIdentifier)(L);this.touchIdentifier=M;const H=(0,p.getControlPosition)(L,M,this);if(H==null)return;const{x:G,y}=H,j=(0,p.createCoreData)(this,G,y);(0,w.default)("DraggableCore: handleDragStart: %j",j),(0,w.default)("calling",this.props.onStart),!(this.props.onStart(L,j)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(C),this.dragging=!0,this.lastX=G,this.lastY=y,(0,a.addEvent)(C,X.move,this.handleDrag),(0,a.addEvent)(C,X.stop,this.handleDragStop))}),I(this,"handleDrag",L=>{const _=(0,p.getControlPosition)(L,this.touchIdentifier,this);if(_==null)return;let{x:C,y:M}=_;if(Array.isArray(this.props.grid)){let y=C-this.lastX,j=M-this.lastY;if([y,j]=(0,p.snapToGrid)(this.props.grid,y,j),!y&&!j)return;C=this.lastX+y,M=this.lastY+j}const H=(0,p.createCoreData)(this,C,M);if((0,w.default)("DraggableCore: handleDrag: %j",H),this.props.onDrag(L,H)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const j=document.createEvent("MouseEvents");j.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(j)}return}this.lastX=C,this.lastY=M}),I(this,"handleDragStop",L=>{if(!this.dragging)return;const _=(0,p.getControlPosition)(L,this.touchIdentifier,this);if(_==null)return;let{x:C,y:M}=_;if(Array.isArray(this.props.grid)){let j=C-this.lastX||0,$=M-this.lastY||0;[j,$]=(0,p.snapToGrid)(this.props.grid,j,$),C=this.lastX+j,M=this.lastY+$}const H=(0,p.createCoreData)(this,C,M);if(this.props.onStop(L,H)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(y.ownerDocument),(0,w.default)("DraggableCore: handleDragStop: %j",H),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,w.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(y.ownerDocument,X.move,this.handleDrag),(0,a.removeEvent)(y.ownerDocument,X.stop,this.handleDragStop))}),I(this,"onMouseDown",L=>(X=U.mouse,this.handleDragStart(L))),I(this,"onMouseUp",L=>(X=U.mouse,this.handleDragStop(L))),I(this,"onTouchStart",L=>(X=U.touch,this.handleDragStart(L))),I(this,"onTouchEnd",L=>(X=U.touch,this.handleDragStop(L)))}componentDidMount(){this.mounted=!0;const L=this.findDOMNode();L&&(0,a.addEvent)(L,U.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const L=this.findDOMNode();if(L){const{ownerDocument:_}=L;(0,a.removeEvent)(_,U.mouse.move,this.handleDrag),(0,a.removeEvent)(_,U.touch.move,this.handleDrag),(0,a.removeEvent)(_,U.mouse.stop,this.handleDragStop),(0,a.removeEvent)(_,U.touch.stop,this.handleDragStop),(0,a.removeEvent)(L,U.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(_)}}findDOMNode(){var L,_;return(L=this.props)!==null&&L!==void 0&&L.nodeRef?(_=this.props)===null||_===void 0||(_=_.nodeRef)===null||_===void 0?void 0:_.current:s.default.findDOMNode(this)}render(){return u.cloneElement(u.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ur.default=O,I(O,"displayName","DraggableCore"),I(O,"propTypes",{allowAnyClick:f.default.bool,children:f.default.node.isRequired,disabled:f.default.bool,enableUserSelectHack:f.default.bool,offsetParent:function(T,L){if(T[L]&&T[L].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:f.default.arrayOf(f.default.number),handle:f.default.string,cancel:f.default.string,nodeRef:f.default.object,onStart:f.default.func,onDrag:f.default.func,onStop:f.default.func,onMouseDown:f.default.func,scale:f.default.number,className:g.dontSetMe,style:g.dontSetMe,transform:g.dontSetMe}),I(O,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ur}var mc;function Uf(){return mc||(mc=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(u,"DraggableCore",{enumerable:!0,get:function(){return E.default}}),u.default=void 0;var f=D(Hr()),s=I(kc()),a=I(so()),p=I(Ff),g=cl(),w=Ec(),S=lo(),E=I(Wf()),R=I(Pc());function I(_){return _&&_.__esModule?_:{default:_}}function x(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,M=new WeakMap;return(x=function(H){return H?M:C})(_)}function D(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var M=x(C);if(M&&M.has(_))return M.get(_);var H={},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in _)if(y!=="default"&&Object.prototype.hasOwnProperty.call(_,y)){var j=G?Object.getOwnPropertyDescriptor(_,y):null;j&&(j.get||j.set)?Object.defineProperty(H,y,j):H[y]=_[y]}return H.default=_,M&&M.set(_,H),H}function U(){return U=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var M=arguments[C];for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&(_[H]=M[H])}return _},U.apply(this,arguments)}function X(_,C,M){return C=O(C),C in _?Object.defineProperty(_,C,{value:M,enumerable:!0,configurable:!0,writable:!0}):_[C]=M,_}function O(_){var C=T(_,"string");return typeof C=="symbol"?C:String(C)}function T(_,C){if(typeof _!="object"||_===null)return _;var M=_[Symbol.toPrimitive];if(M!==void 0){var H=M.call(_,C);if(typeof H!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}class L extends f.Component{static getDerivedStateFromProps(C,M){let{position:H}=C,{prevPropsPosition:G}=M;return H&&(!G||H.x!==G.x||H.y!==G.y)?((0,R.default)("Draggable: getDerivedStateFromProps %j",{position:H,prevPropsPosition:G}),{x:H.x,y:H.y,prevPropsPosition:{...H}}):null}constructor(C){super(C),X(this,"onDragStart",(M,H)=>{if((0,R.default)("Draggable: onDragStart: %j",H),this.props.onStart(M,(0,w.createDraggableData)(this,H))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),X(this,"onDrag",(M,H)=>{if(!this.state.dragging)return!1;(0,R.default)("Draggable: onDrag: %j",H);const G=(0,w.createDraggableData)(this,H),y={x:G.x,y:G.y,slackX:0,slackY:0};if(this.props.bounds){const{x:$,y:ne}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[ae,oe]=(0,w.getBoundPosition)(this,y.x,y.y);y.x=ae,y.y=oe,y.slackX=this.state.slackX+($-y.x),y.slackY=this.state.slackY+(ne-y.y),G.x=y.x,G.y=y.y,G.deltaX=y.x-this.state.x,G.deltaY=y.y-this.state.y}if(this.props.onDrag(M,G)===!1)return!1;this.setState(y)}),X(this,"onDragStop",(M,H)=>{if(!this.state.dragging||this.props.onStop(M,(0,w.createDraggableData)(this,H))===!1)return!1;(0,R.default)("Draggable: onDragStop: %j",H);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:$,y:ne}=this.props.position;y.x=$,y.y=ne}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,M;return(C=(M=this.props)===null||M===void 0||(M=M.nodeRef)===null||M===void 0?void 0:M.current)!==null&&C!==void 0?C:a.default.findDOMNode(this)}render(){const{axis:C,bounds:M,children:H,defaultPosition:G,defaultClassName:y,defaultClassNameDragging:j,defaultClassNameDragged:$,position:ne,positionOffset:ae,scale:oe,...ce}=this.props;let Ne={},Ce=null;const ve=!!!ne||this.state.dragging,Y=ne||G,re={x:(0,w.canDragX)(this)&&ve?this.state.x:Y.x,y:(0,w.canDragY)(this)&&ve?this.state.y:Y.y};this.state.isElementSVG?Ce=(0,g.createSVGTransform)(re,ae):Ne=(0,g.createCSSTransform)(re,ae);const V=(0,p.default)(H.props.className||"",y,{[j]:this.state.dragging,[$]:this.state.dragged});return f.createElement(E.default,U({},ce,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),f.cloneElement(f.Children.only(H),{className:V,style:{...H.props.style,...Ne},transform:Ce}))}}u.default=L,X(L,"displayName","Draggable"),X(L,"propTypes",{...E.default.propTypes,axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:S.dontSetMe,style:S.dontSetMe,transform:S.dontSetMe}),X(L,"defaultProps",{...E.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(nl)),nl}var gc;function Hf(){if(gc)return Wr.exports;gc=1;const{default:u,DraggableCore:f}=Uf();return Wr.exports=u,Wr.exports.default=u,Wr.exports.DraggableCore=f,Wr.exports}var Bf=Hf();const Vf=al(Bf);var Cc=so(),Fe=function(){return Fe=Object.assign||function(u){for(var f,s=1,a=arguments.length;s<a;s++){f=arguments[s];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(u[p]=f[p])}return u},Fe.apply(this,arguments)},vc={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},yc={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},no={width:"20px",height:"20px",position:"absolute",zIndex:1},$f={top:Fe(Fe({},vc),{top:"-5px"}),right:Fe(Fe({},yc),{left:void 0,right:"-5px"}),bottom:Fe(Fe({},vc),{top:void 0,bottom:"-5px"}),left:Fe(Fe({},yc),{left:"-5px"}),topRight:Fe(Fe({},no),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Fe(Fe({},no),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Fe(Fe({},no),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Fe(Fe({},no),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Xf=K.memo(function(u){var f=u.onResizeStart,s=u.direction,a=u.children,p=u.replaceStyles,g=u.className,w=K.useCallback(function(R){f(R,s)},[f,s]),S=K.useCallback(function(R){f(R,s)},[f,s]),E=K.useMemo(function(){return Fe(Fe({position:"absolute",userSelect:"none"},$f[s]),p??{})},[p,s]);return c.jsx("div",{className:g||void 0,style:E,onMouseDown:w,onTouchStart:S,children:a})}),Qf=(function(){var u=function(f,s){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(a[g]=p[g])},u(f,s)};return function(f,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");u(f,s);function a(){this.constructor=f}f.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})(),Rt=function(){return Rt=Object.assign||function(u){for(var f,s=1,a=arguments.length;s<a;s++){f=arguments[s];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(u[p]=f[p])}return u},Rt.apply(this,arguments)},Yf={width:"auto",height:"auto"},ro=function(u,f,s){return Math.max(Math.min(u,s),f)},wc=function(u,f,s){var a=Math.round(u/f);return a*f+s*(a-1)},Jn=function(u,f){return new RegExp(u,"i").test(f)},io=function(u){return!!(u.touches&&u.touches.length)},Kf=function(u){return!!((u.clientX||u.clientX===0)&&(u.clientY||u.clientY===0))},Sc=function(u,f,s){s===void 0&&(s=0);var a=f.reduce(function(g,w,S){return Math.abs(w-u)<Math.abs(f[g]-u)?S:g},0),p=Math.abs(f[a]-u);return s===0||p<s?f[a]:u},sl=function(u){return u=u.toString(),u==="auto"||u.endsWith("px")||u.endsWith("%")||u.endsWith("vh")||u.endsWith("vw")||u.endsWith("vmax")||u.endsWith("vmin")?u:"".concat(u,"px")},oo=function(u,f,s,a){if(u&&typeof u=="string"){if(u.endsWith("px"))return Number(u.replace("px",""));if(u.endsWith("%")){var p=Number(u.replace("%",""))/100;return f*p}if(u.endsWith("vw")){var p=Number(u.replace("vw",""))/100;return s*p}if(u.endsWith("vh")){var p=Number(u.replace("vh",""))/100;return a*p}}return u},Gf=function(u,f,s,a,p,g,w){return a=oo(a,u.width,f,s),p=oo(p,u.height,f,s),g=oo(g,u.width,f,s),w=oo(w,u.height,f,s),{maxWidth:typeof a>"u"?void 0:Number(a),maxHeight:typeof p>"u"?void 0:Number(p),minWidth:typeof g>"u"?void 0:Number(g),minHeight:typeof w>"u"?void 0:Number(w)}},qf=function(u){return Array.isArray(u)?u:[u,u]},bf=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],xc="__resizable_base__",Zf=(function(u){Qf(f,u);function f(s){var a,p,g,w,S=u.call(this,s)||this;return S.ratio=1,S.resizable=null,S.parentLeft=0,S.parentTop=0,S.resizableLeft=0,S.resizableRight=0,S.resizableTop=0,S.resizableBottom=0,S.targetLeft=0,S.targetTop=0,S.delta={width:0,height:0},S.appendBase=function(){if(!S.resizable||!S.window)return null;var E=S.parentNode;if(!E)return null;var R=S.window.document.createElement("div");return R.style.width="100%",R.style.height="100%",R.style.position="absolute",R.style.transform="scale(0, 0)",R.style.left="0",R.style.flex="0 0 100%",R.classList?R.classList.add(xc):R.className+=xc,E.appendChild(R),R},S.removeBase=function(E){var R=S.parentNode;R&&R.removeChild(E)},S.state={isResizing:!1,width:(p=(a=S.propsSize)===null||a===void 0?void 0:a.width)!==null&&p!==void 0?p:"auto",height:(w=(g=S.propsSize)===null||g===void 0?void 0:g.height)!==null&&w!==void 0?w:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},S.onResizeStart=S.onResizeStart.bind(S),S.onMouseMove=S.onMouseMove.bind(S),S.onMouseUp=S.onMouseUp.bind(S),S}return Object.defineProperty(f.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Yf},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"size",{get:function(){var s=0,a=0;if(this.resizable&&this.window){var p=this.resizable.offsetWidth,g=this.resizable.offsetHeight,w=this.resizable.style.position;w!=="relative"&&(this.resizable.style.position="relative"),s=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:p,a=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:g,this.resizable.style.position=w}return{width:s,height:a}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"sizeStyle",{get:function(){var s=this,a=this.props.size,p=function(S){var E;if(typeof s.state[S]>"u"||s.state[S]==="auto")return"auto";if(s.propsSize&&s.propsSize[S]&&(!((E=s.propsSize[S])===null||E===void 0)&&E.toString().endsWith("%"))){if(s.state[S].toString().endsWith("%"))return s.state[S].toString();var R=s.getParentSize(),I=Number(s.state[S].toString().replace("px","")),x=I/R[S]*100;return"".concat(x,"%")}return sl(s.state[S])},g=a&&typeof a.width<"u"&&!this.state.isResizing?sl(a.width):p("width"),w=a&&typeof a.height<"u"&&!this.state.isResizing?sl(a.height):p("height");return{width:g,height:w}},enumerable:!1,configurable:!0}),f.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var s=this.appendBase();if(!s)return{width:0,height:0};var a=!1,p=this.parentNode.style.flexWrap;p!=="wrap"&&(a=!0,this.parentNode.style.flexWrap="wrap"),s.style.position="relative",s.style.minWidth="100%",s.style.minHeight="100%";var g={width:s.offsetWidth,height:s.offsetHeight};return a&&(this.parentNode.style.flexWrap=p),this.removeBase(s),g},f.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},f.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},f.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var s=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:s.flexBasis!=="auto"?s.flexBasis:void 0})}},f.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},f.prototype.createSizeForCssProperty=function(s,a){var p=this.propsSize&&this.propsSize[a];return this.state[a]==="auto"&&this.state.original[a]===s&&(typeof p>"u"||p==="auto")?"auto":s},f.prototype.calculateNewMaxFromBoundary=function(s,a){var p=this.props.boundsByDirection,g=this.state.direction,w=p&&Jn("left",g),S=p&&Jn("top",g),E,R;if(this.props.bounds==="parent"){var I=this.parentNode;I&&(E=w?this.resizableRight-this.parentLeft:I.offsetWidth+(this.parentLeft-this.resizableLeft),R=S?this.resizableBottom-this.parentTop:I.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(E=w?this.resizableRight:this.window.innerWidth-this.resizableLeft,R=S?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(E=w?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),R=S?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return E&&Number.isFinite(E)&&(s=s&&s<E?s:E),R&&Number.isFinite(R)&&(a=a&&a<R?a:R),{maxWidth:s,maxHeight:a}},f.prototype.calculateNewSizeFromDirection=function(s,a){var p=this.props.scale||1,g=qf(this.props.resizeRatio||1),w=g[0],S=g[1],E=this.state,R=E.direction,I=E.original,x=this.props,D=x.lockAspectRatio,U=x.lockAspectRatioExtraHeight,X=x.lockAspectRatioExtraWidth,O=I.width,T=I.height,L=U||0,_=X||0;return Jn("right",R)&&(O=I.width+(s-I.x)*w/p,D&&(T=(O-_)/this.ratio+L)),Jn("left",R)&&(O=I.width-(s-I.x)*w/p,D&&(T=(O-_)/this.ratio+L)),Jn("bottom",R)&&(T=I.height+(a-I.y)*S/p,D&&(O=(T-L)*this.ratio+_)),Jn("top",R)&&(T=I.height-(a-I.y)*S/p,D&&(O=(T-L)*this.ratio+_)),{newWidth:O,newHeight:T}},f.prototype.calculateNewSizeFromAspectRatio=function(s,a,p,g){var w=this.props,S=w.lockAspectRatio,E=w.lockAspectRatioExtraHeight,R=w.lockAspectRatioExtraWidth,I=typeof g.width>"u"?10:g.width,x=typeof p.width>"u"||p.width<0?s:p.width,D=typeof g.height>"u"?10:g.height,U=typeof p.height>"u"||p.height<0?a:p.height,X=E||0,O=R||0;if(S){var T=(D-X)*this.ratio+O,L=(U-X)*this.ratio+O,_=(I-O)/this.ratio+X,C=(x-O)/this.ratio+X,M=Math.max(I,T),H=Math.min(x,L),G=Math.max(D,_),y=Math.min(U,C);s=ro(s,M,H),a=ro(a,G,y)}else s=ro(s,I,x),a=ro(a,D,U);return{newWidth:s,newHeight:a}},f.prototype.setBoundingClientRect=function(){var s=1/(this.props.scale||1);if(this.props.bounds==="parent"){var a=this.parentNode;if(a){var p=a.getBoundingClientRect();this.parentLeft=p.left*s,this.parentTop=p.top*s}}if(this.props.bounds&&typeof this.props.bounds!="string"){var g=this.props.bounds.getBoundingClientRect();this.targetLeft=g.left*s,this.targetTop=g.top*s}if(this.resizable){var w=this.resizable.getBoundingClientRect(),S=w.left,E=w.top,R=w.right,I=w.bottom;this.resizableLeft=S*s,this.resizableRight=R*s,this.resizableTop=E*s,this.resizableBottom=I*s}},f.prototype.onResizeStart=function(s,a){if(!(!this.resizable||!this.window)){var p=0,g=0;if(s.nativeEvent&&Kf(s.nativeEvent)?(p=s.nativeEvent.clientX,g=s.nativeEvent.clientY):s.nativeEvent&&io(s.nativeEvent)&&(p=s.nativeEvent.touches[0].clientX,g=s.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var w=this.props.onResizeStart(s,a,this.resizable);if(w===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var S,E=this.window.getComputedStyle(this.resizable);if(E.flexBasis!=="auto"){var R=this.parentNode;if(R){var I=this.window.getComputedStyle(R).flexDirection;this.flexDir=I.startsWith("row")?"row":"column",S=E.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var x={original:{x:p,y:g,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Rt(Rt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(s.target).cursor||"auto"}),direction:a,flexBasis:S};this.setState(x)}},f.prototype.onMouseMove=function(s){var a=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&io(s))try{s.preventDefault(),s.stopPropagation()}catch{}var p=this.props,g=p.maxWidth,w=p.maxHeight,S=p.minWidth,E=p.minHeight,R=io(s)?s.touches[0].clientX:s.clientX,I=io(s)?s.touches[0].clientY:s.clientY,x=this.state,D=x.direction,U=x.original,X=x.width,O=x.height,T=this.getParentSize(),L=Gf(T,this.window.innerWidth,this.window.innerHeight,g,w,S,E);g=L.maxWidth,w=L.maxHeight,S=L.minWidth,E=L.minHeight;var _=this.calculateNewSizeFromDirection(R,I),C=_.newHeight,M=_.newWidth,H=this.calculateNewMaxFromBoundary(g,w);this.props.snap&&this.props.snap.x&&(M=Sc(M,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(C=Sc(C,this.props.snap.y,this.props.snapGap));var G=this.calculateNewSizeFromAspectRatio(M,C,{width:H.maxWidth,height:H.maxHeight},{width:S,height:E});if(M=G.newWidth,C=G.newHeight,this.props.grid){var y=wc(M,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),j=wc(C,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,ne=$===0||Math.abs(y-M)<=$?y:M,ae=$===0||Math.abs(j-C)<=$?j:C;M=ne,C=ae}var oe={width:M-U.width,height:C-U.height};if(this.delta=oe,X&&typeof X=="string"){if(X.endsWith("%")){var ce=M/T.width*100;M="".concat(ce,"%")}else if(X.endsWith("vw")){var Ne=M/this.window.innerWidth*100;M="".concat(Ne,"vw")}else if(X.endsWith("vh")){var Ce=M/this.window.innerHeight*100;M="".concat(Ce,"vh")}}if(O&&typeof O=="string"){if(O.endsWith("%")){var ce=C/T.height*100;C="".concat(ce,"%")}else if(O.endsWith("vw")){var Ne=C/this.window.innerWidth*100;C="".concat(Ne,"vw")}else if(O.endsWith("vh")){var Ce=C/this.window.innerHeight*100;C="".concat(Ce,"vh")}}var ye={width:this.createSizeForCssProperty(M,"width"),height:this.createSizeForCssProperty(C,"height")};this.flexDir==="row"?ye.flexBasis=ye.width:this.flexDir==="column"&&(ye.flexBasis=ye.height);var ve=this.state.width!==ye.width,Y=this.state.height!==ye.height,re=this.state.flexBasis!==ye.flexBasis,V=ve||Y||re;V&&Cc.flushSync(function(){a.setState(ye)}),this.props.onResize&&V&&this.props.onResize(s,D,this.resizable,oe)}},f.prototype.onMouseUp=function(s){var a,p,g=this.state,w=g.isResizing,S=g.direction;g.original,!(!w||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(s,S,this.resizable,this.delta),this.props.size&&this.setState({width:(a=this.props.size.width)!==null&&a!==void 0?a:"auto",height:(p=this.props.size.height)!==null&&p!==void 0?p:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Rt(Rt({},this.state.backgroundStyle),{cursor:"auto"})}))},f.prototype.updateSize=function(s){var a,p;this.setState({width:(a=s.width)!==null&&a!==void 0?a:"auto",height:(p=s.height)!==null&&p!==void 0?p:"auto"})},f.prototype.renderResizer=function(){var s=this,a=this.props,p=a.enable,g=a.handleStyles,w=a.handleClasses,S=a.handleWrapperStyle,E=a.handleWrapperClass,R=a.handleComponent;if(!p)return null;var I=Object.keys(p).map(function(x){return p[x]!==!1?c.jsx(Xf,{direction:x,onResizeStart:s.onResizeStart,replaceStyles:g&&g[x],className:w&&w[x],children:R&&R[x]?R[x]:null},x):null});return c.jsx("div",{className:E,style:S,children:I})},f.prototype.render=function(){var s=this,a=Object.keys(this.props).reduce(function(w,S){return bf.indexOf(S)!==-1||(w[S]=s.props[S]),w},{}),p=Rt(Rt(Rt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(p.flexBasis=this.state.flexBasis);var g=this.props.as||"div";return c.jsxs(g,Rt({style:p,className:this.props.className},a,{ref:function(w){w&&(s.resizable=w)},children:[this.state.isResizing&&c.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},f.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},f})(K.PureComponent);/*! *****************************************************************************
43
- Copyright (c) Microsoft Corporation. All rights reserved.
44
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
45
- this file except in compliance with the License. You may obtain a copy of the
46
- License at http://www.apache.org/licenses/LICENSE-2.0
47
-
48
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
49
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
50
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
51
- MERCHANTABLITY OR NON-INFRINGEMENT.
52
-
53
- See the Apache Version 2.0 License for specific language governing permissions
54
- and limitations under the License.
55
- ***************************************************************************** */var ll=function(u,f){return ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var p in a)a.hasOwnProperty(p)&&(s[p]=a[p])},ll(u,f)};function Jf(u,f){ll(u,f);function s(){this.constructor=u}u.prototype=f===null?Object.create(f):(s.prototype=f.prototype,new s)}var He=function(){return He=Object.assign||function(f){for(var s,a=1,p=arguments.length;a<p;a++){s=arguments[a];for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(f[g]=s[g])}return f},He.apply(this,arguments)};function ep(u,f){var s={};for(var a in u)Object.prototype.hasOwnProperty.call(u,a)&&f.indexOf(a)<0&&(s[a]=u[a]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,a=Object.getOwnPropertySymbols(u);p<a.length;p++)f.indexOf(a[p])<0&&Object.prototype.propertyIsEnumerable.call(u,a[p])&&(s[a[p]]=u[a[p]]);return s}var tp={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},np=function(u){return{bottom:u,bottomLeft:u,bottomRight:u,left:u,right:u,top:u,topLeft:u,topRight:u}},rp=(function(u){Jf(f,u);function f(s){var a=u.call(this,s)||this;return a.resizingPosition={x:0,y:0},a.offsetFromParent={left:0,top:0},a.resizableElement={current:null},a.originalPosition={x:0,y:0},a.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:s.maxWidth,maxHeight:s.maxHeight},a.onResizeStart=a.onResizeStart.bind(a),a.onResize=a.onResize.bind(a),a.onResizeStop=a.onResizeStop.bind(a),a.onDragStart=a.onDragStart.bind(a),a.onDrag=a.onDrag.bind(a),a.onDragStop=a.onDragStop.bind(a),a.getMaxSizesFromProps=a.getMaxSizesFromProps.bind(a),a}return f.prototype.componentDidMount=function(){this.updateOffsetFromParent();var s=this.offsetFromParent,a=s.left,p=s.top,g=this.getDraggablePosition(),w=g.x,S=g.y;this.draggable.setState({x:w-a,y:S-p}),this.forceUpdate()},f.prototype.getDraggablePosition=function(){var s=this.draggable.state,a=s.x,p=s.y;return{x:a,y:p}},f.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},f.prototype.getParentSize=function(){return this.resizable.getParentSize()},f.prototype.getMaxSizesFromProps=function(){var s=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,a=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:s,maxHeight:a}},f.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},f.prototype.getOffsetHeight=function(s){var a=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/a;case"body":return document.body.offsetHeight/a;default:return s.offsetHeight}},f.prototype.getOffsetWidth=function(s){var a=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/a;case"body":return document.body.offsetWidth/a;default:return s.offsetWidth}},f.prototype.onDragStart=function(s,a){this.props.onDragStart&&this.props.onDragStart(s,a);var p=this.getDraggablePosition();if(this.originalPosition=p,!!this.props.bounds){var g=this.getParent(),w=this.props.scale,S;if(this.props.bounds==="parent")S=g;else if(this.props.bounds==="body"){var E=g.getBoundingClientRect(),R=E.left,I=E.top,x=document.body.getBoundingClientRect(),D=-(R-g.offsetLeft*w-x.left)/w,U=-(I-g.offsetTop*w-x.top)/w,X=(document.body.offsetWidth-this.resizable.size.width*w)/w+D,O=(document.body.offsetHeight-this.resizable.size.height*w)/w+U;return this.setState({bounds:{top:U,right:X,bottom:O,left:D}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var T=g.getBoundingClientRect(),L=T.left,_=T.top,C=-(L-g.offsetLeft*w)/w,M=-(_-g.offsetTop*w)/w,X=(window.innerWidth-this.resizable.size.width*w)/w+C,O=(window.innerHeight-this.resizable.size.height*w)/w+M;return this.setState({bounds:{top:M,right:X,bottom:O,left:C}})}else typeof this.props.bounds=="string"?S=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(S=this.props.bounds);if(!(!(S instanceof HTMLElement)||!(g instanceof HTMLElement))){var H=S.getBoundingClientRect(),G=H.left,y=H.top,j=g.getBoundingClientRect(),$=j.left,ne=j.top,ae=(G-$)/w,oe=y-ne;if(this.resizable){this.updateOffsetFromParent();var ce=this.offsetFromParent;this.setState({bounds:{top:oe-ce.top,right:ae+(S.offsetWidth-this.resizable.size.width)-ce.left/w,bottom:oe+(S.offsetHeight-this.resizable.size.height)-ce.top,left:ae-ce.left/w}})}}}},f.prototype.onDrag=function(s,a){if(this.props.onDrag){var p=this.offsetFromParent,g=p.left,w=p.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(s,He(He({},a),{x:a.x+g,y:a.y+w}));if(this.props.dragAxis==="x")return this.props.onDrag(s,He(He({},a),{x:a.x+g,y:this.originalPosition.y+w,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(s,He(He({},a),{x:this.originalPosition.x+g,y:a.y+w,deltaX:0}))}},f.prototype.onDragStop=function(s,a){if(this.props.onDragStop){var p=this.offsetFromParent,g=p.left,w=p.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(s,He(He({},a),{x:a.x+g,y:a.y+w}));if(this.props.dragAxis==="x")return this.props.onDragStop(s,He(He({},a),{x:a.x+g,y:this.originalPosition.y+w,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(s,He(He({},a),{x:this.originalPosition.x+g,y:a.y+w,deltaX:0}))}},f.prototype.onResizeStart=function(s,a,p){s.stopPropagation(),this.setState({resizing:!0});var g=this.props.scale,w=this.offsetFromParent,S=this.getDraggablePosition();if(this.resizingPosition={x:S.x+w.left,y:S.y+w.top},this.originalPosition=S,this.props.bounds){var E=this.getParent(),R=void 0;this.props.bounds==="parent"?R=E:this.props.bounds==="body"?R=document.body:this.props.bounds==="window"?R=window:typeof this.props.bounds=="string"?R=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(R=this.props.bounds);var I=this.getSelfElement();if(I instanceof Element&&(R instanceof HTMLElement||R===window)&&E instanceof HTMLElement){var x=this.getMaxSizesFromProps(),D=x.maxWidth,U=x.maxHeight,X=this.getParentSize();if(D&&typeof D=="string")if(D.endsWith("%")){var O=Number(D.replace("%",""))/100;D=X.width*O}else D.endsWith("px")&&(D=Number(D.replace("px","")));if(U&&typeof U=="string")if(U.endsWith("%")){var O=Number(U.replace("%",""))/100;U=X.height*O}else U.endsWith("px")&&(U=Number(U.replace("px","")));var T=I.getBoundingClientRect(),L=T.left,_=T.top,C=this.props.bounds==="window"?{left:0,top:0}:R.getBoundingClientRect(),M=C.left,H=C.top,G=this.getOffsetWidth(R),y=this.getOffsetHeight(R),j=a.toLowerCase().endsWith("left"),$=a.toLowerCase().endsWith("right"),ne=a.startsWith("top"),ae=a.startsWith("bottom");if((j||ne)&&this.resizable){var oe=(L-M)/g+this.resizable.size.width;this.setState({maxWidth:oe>Number(D)?D:oe})}if($||this.props.lockAspectRatio&&!j&&!ne){var oe=G+(M-L)/g;this.setState({maxWidth:oe>Number(D)?D:oe})}if((ne||j)&&this.resizable){var oe=(_-H)/g+this.resizable.size.height;this.setState({maxHeight:oe>Number(U)?U:oe})}if(ae||this.props.lockAspectRatio&&!ne&&!j){var oe=y+(H-_)/g;this.setState({maxHeight:oe>Number(U)?U:oe})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(s,a,p)},f.prototype.onResize=function(s,a,p,g){var w=this,S={x:this.originalPosition.x,y:this.originalPosition.y},E=-g.width,R=-g.height,I=["top","left","topLeft","bottomLeft","topRight"];I.includes(a)&&(a==="bottomLeft"?S.x+=E:(a==="topRight"||(S.x+=E),S.y+=R));var x=this.draggable.state;(S.x!==x.x||S.y!==x.y)&&Cc.flushSync(function(){w.draggable.setState(S)}),this.updateOffsetFromParent();var D=this.offsetFromParent,U=this.getDraggablePosition().x+D.left,X=this.getDraggablePosition().y+D.top;this.resizingPosition={x:U,y:X},this.props.onResize&&this.props.onResize(s,a,p,g,{x:U,y:X})},f.prototype.onResizeStop=function(s,a,p,g){this.setState({resizing:!1});var w=this.getMaxSizesFromProps(),S=w.maxWidth,E=w.maxHeight;this.setState({maxWidth:S,maxHeight:E}),this.props.onResizeStop&&this.props.onResizeStop(s,a,p,g,this.resizingPosition)},f.prototype.updateSize=function(s){this.resizable&&this.resizable.updateSize({width:s.width,height:s.height})},f.prototype.updatePosition=function(s){this.draggable.setState(s)},f.prototype.updateOffsetFromParent=function(){var s=this.props.scale,a=this.getParent(),p=this.getSelfElement();if(!a||p===null)return{top:0,left:0};var g=a.getBoundingClientRect(),w=g.left,S=g.top,E=p.getBoundingClientRect(),R=this.getDraggablePosition(),I=a.scrollLeft,x=a.scrollTop;this.offsetFromParent={left:E.left-w+I-R.x*s,top:E.top-S+x-R.y*s}},f.prototype.render=function(){var s=this,a=this.props,p=a.disableDragging,g=a.style,w=a.dragHandleClassName,S=a.position,E=a.onMouseDown,R=a.onMouseUp,I=a.dragAxis,x=a.dragGrid,D=a.bounds,U=a.enableUserSelectHack,X=a.cancel,O=a.children;a.onResizeStart,a.onResize,a.onResizeStop,a.onDragStart,a.onDrag,a.onDragStop;var T=a.resizeHandleStyles,L=a.resizeHandleClasses,_=a.resizeHandleComponent,C=a.enableResizing,M=a.resizeGrid,H=a.resizeHandleWrapperClass,G=a.resizeHandleWrapperStyle,y=a.scale,j=a.allowAnyClick,$=a.dragPositionOffset,ne=ep(a,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),ae=this.props.default?He({},this.props.default):void 0;delete ne.default;var oe=p||w?{cursor:"auto"}:{cursor:"move"},ce=He(He(He({},tp),oe),g),Ne=this.offsetFromParent,Ce=Ne.left,ye=Ne.top,ve;S&&(ve={x:S.x-Ce,y:S.y-ye});var Y=this.state.resizing?void 0:ve,re=this.state.resizing?"both":I;return K.createElement(Vf,{ref:function(V){V&&(s.draggable=V)},handle:w?".".concat(w):void 0,defaultPosition:ae,onMouseDown:E,onMouseUp:R,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:re,disabled:p,grid:x,bounds:D?this.state.bounds:void 0,position:Y,enableUserSelectHack:U,cancel:X,scale:y,allowAnyClick:j,nodeRef:this.resizableElement,positionOffset:$},K.createElement(Zf,He({},ne,{ref:function(V){V&&(s.resizable=V,s.resizableElement.current=V.resizable)},defaultSize:ae,size:this.props.size,enable:typeof C=="boolean"?np(C):C,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:ce,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:M,handleWrapperClass:H,handleWrapperStyle:G,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:T,handleClasses:L,handleComponent:_,scale:this.props.scale}),O))},f.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},f})(K.PureComponent);function ip(u){const f=u.split("/").filter(Boolean);if(f.length===0)return u;const s=f[f.length-1];return s==="src"&&f.length>1?f[f.length-2]:s}const op=({projects:u,selectedProject:f,onSelectProject:s,loading:a,runningProcesses:p=[],keyboardFocusedIndex:g=-1,onKeyboardFocusChange:w})=>{if(a)return c.jsx("div",{className:"project-list-loading",children:c.jsx("p",{children:"Loading projects..."})});if(u.length===0)return c.jsxs("div",{className:"project-list-empty",children:[c.jsx("p",{children:"No projects yet"}),c.jsx("p",{className:"hint",children:"Add a project to get started"})]});const S=ul.useRef(null);return c.jsx("div",{ref:S,className:"project-list",role:"listbox","aria-label":"Projects",tabIndex:0,onFocus:E=>{g<0&&u.length>0&&w&&w(0)},onBlur:E=>{var R;w&&!((R=S.current)!=null&&R.contains(E.relatedTarget))&&w(-1)},children:u.map((E,R)=>{const I=(f==null?void 0:f.id)===E.id,x=g===R,D=p.filter(O=>O.projectPath===E.path),U=D.length>0,X=Array.from(new Set(D.map(O=>O.port).filter(O=>O!=null))).sort((O,T)=>O-T);return c.jsxs("div",{className:`project-item ${I?"selected":""} ${U?"running":""} ${x?"keyboard-focused":""}`,onClick:()=>s(E),role:"option","aria-selected":I,tabIndex:R===0?0:-1,onFocus:O=>{O.currentTarget.scrollIntoView({block:"nearest",behavior:"smooth"}),w&&w(R)},ref:O=>{x&&O&&w&&O.scrollIntoView({block:"nearest",behavior:"smooth"})},children:[c.jsx("div",{className:"project-item-header",children:c.jsxs("h3",{className:"project-name",children:[U&&c.jsx("span",{className:"running-indicator-dot",children:"●"}),E.name]})}),c.jsx("p",{className:"project-path",children:E.description||ip(E.path)}),E.tags&&E.tags.length>0&&c.jsx("div",{className:"project-tags",children:E.tags.map(O=>c.jsx("span",{className:"project-tag",children:O},O))}),U&&c.jsxs("div",{className:"project-meta",children:[c.jsxs("span",{className:"running-count",children:[D.length," running"]}),X.length>0&&c.jsx("div",{className:"running-ports",children:X.map(O=>c.jsxs("span",{className:"port-badge",children:[":",O]},O))})]})]},E.id)})})},sp=({urls:u,onOpenUrl:f})=>u.length===0?null:c.jsxs("div",{className:"project-urls-section",children:[c.jsx("div",{className:"section-header",children:c.jsxs("h3",{children:["Detected URLs (",u.length,")"]})}),c.jsx("div",{className:"urls-list",children:u.map((s,a)=>c.jsxs("div",{className:"url-item",children:[c.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"url-text",onClick:p=>{p.preventDefault(),window.electronAPI.openExternal(s)},children:s}),c.jsx("button",{onClick:()=>f(s),className:"btn btn-secondary btn-small",title:"Open in configured browser",children:"Open"})]},a))})]}),lp=({project:u,onProjectUpdate:f,onRemoveProject:s,onOpenTerminal:a})=>{var zn;const[p,g]=K.useState(!1),[w,S]=K.useState(u.name),[E,R]=K.useState(!1),[I,x]=K.useState(u.description||""),[D,U]=K.useState(null),[X,O]=K.useState(!1),[T,L]=K.useState([]),[_,C]=K.useState(!1),[M,H]=K.useState(new Set),[G,y]=K.useState([]),[j,$]=K.useState(!1),[ne,ae]=K.useState(!1),[oe,ce]=K.useState(""),[Ne,Ce]=K.useState([]),[ye,ve]=K.useState(u.tags||[]),[Y,re]=K.useState(null),[V,h]=K.useState(null),[z,q]=K.useState(!1);K.useEffect(()=>{S(u.name),x(u.description||""),ve(u.tags||[]),pe(),ge(),Ut(),Z(),ue(),he();const F=setInterval(()=>{Ut(),he()},5e3);return()=>clearInterval(F)},[u]);const Z=async()=>{try{const F=await fetch("http://localhost:3001/api/projects/tags");if(!F.ok){console.error("Failed to load tags:",F.status),Ce([]);return}const de=await F.json();Ce(Array.isArray(de)?de:[])}catch(F){console.error("Error loading tags:",F),Ce([])}},ue=async()=>{try{const F=await window.electronAPI.getSettings();re(F.editor)}catch(F){console.error("Error loading editor settings:",F)}},pe=async()=>{try{O(!0);const F=await window.electronAPI.getProjectScripts(u.path);U(F)}catch(F){console.error("Error loading scripts:",F),U(null)}finally{O(!1)}},ge=async()=>{try{C(!0);const F=await window.electronAPI.getProjectPorts(u.id);L(F)}catch(F){console.error("Error loading ports:",F),L([])}finally{C(!1)}},he=async()=>{try{q(!0);const F=await window.electronAPI.getLatestTestResult(u.id);h(F)}catch{h(null)}finally{q(!1)}},Ee=async()=>{if(!w.trim()||w===u.name){g(!1),S(u.name);return}try{const F=await window.electronAPI.renameProject(u.id,w.trim());g(!1),f&&f(F)}catch(F){console.error("Error renaming project:",F),alert("Failed to rename project"),S(u.name)}},Ye=async()=>{const F=I.trim()||null;if(F===(u.description||"")){R(!1),x(u.description||"");return}try{const de=await window.electronAPI.updateProject(u.id,{description:F});R(!1),f&&f(de)}catch(de){console.error("Error updating description:",de),alert("Failed to update description"),x(u.description||"")}},cn=async()=>{const F=oe.trim();if(!F||ye.includes(F)){ce("");return}const de=[...ye,F];try{const Se=await window.electronAPI.updateProject(u.id,{tags:de});ve(de),ce(""),f&&f(Se),await Z(),ue()}catch(Se){console.error("Error adding tag:",Se),alert("Failed to add tag")}},Br=async F=>{const de=ye.filter(Se=>Se!==F);try{const Se=await window.electronAPI.updateProject(u.id,{tags:de});ve(de),f&&f(Se),await Z(),ue()}catch(Se){console.error("Error removing tag:",Se),alert("Failed to remove tag")}},dn=Ne.filter(F=>!ye.includes(F)&&F.toLowerCase().includes(oe.toLowerCase())),Ut=async()=>{try{$(!0);const de=(await window.electronAPI.getRunningProcesses()).filter(gt=>gt.projectPath===u.path);y(de);const Se=new Set(de.map(gt=>gt.scriptName));H(Se)}catch(F){console.error("Error loading running processes:",F)}finally{$(!1)}},Vr=async(F,de=!0)=>{try{H(Se=>new Set(Se).add(F)),await window.electronAPI.runScript(u.path,F,[],de),de&&setTimeout(()=>{Ut()},1e3)}catch(Se){console.error("Error running script:",Se),alert(`Failed to run script: ${Se instanceof Error?Se.message:String(Se)}`)}finally{H(Se=>{const gt=new Set(Se);return gt.delete(F),gt})}},$r=async F=>{try{await window.electronAPI.stopScript(F)?await Ut():alert("Failed to stop script")}catch(de){console.error("Error stopping script:",de),alert(`Failed to stop script: ${de instanceof Error?de.message:String(de)}`)}},er=async F=>{try{await window.electronAPI.openUrl(F)}catch(de){console.error("Error opening URL:",de),alert(`Failed to open URL: ${de instanceof Error?de.message:String(de)}`)}},tr=K.useMemo(()=>{const F=new Set;for(const de of G)if(de.detectedUrls&&Array.isArray(de.detectedUrls))for(const Se of de.detectedUrls)F.add(Se);for(const de of T){const Se=`http://localhost:${de.port}`;F.add(Se)}return Array.from(F).sort()},[G,T]);return u.last_scanned&&new Date(u.last_scanned*1e3).toLocaleString(),c.jsxs("div",{className:"project-details",children:[c.jsxs("div",{className:"project-details-header",children:[c.jsxs("div",{children:[p?c.jsx("div",{className:"project-name-edit",children:c.jsx("input",{type:"text",value:w,onChange:F=>S(F.target.value),onBlur:Ee,onKeyDown:F=>{F.key==="Enter"?Ee():F.key==="Escape"&&(g(!1),S(u.name))},className:"project-name-input",autoFocus:!0})}):c.jsx("h2",{onClick:()=>g(!0),className:"project-name-editable",title:"Click to rename",children:u.name}),E?c.jsx("div",{className:"project-description-edit",children:c.jsx("textarea",{value:I,onChange:F=>x(F.target.value),onBlur:Ye,onKeyDown:F=>{F.key==="Enter"&&(F.metaKey||F.ctrlKey)?Ye():F.key==="Escape"&&(R(!1),x(u.description||""))},className:"project-description-input",placeholder:"Add a description...",autoFocus:!0,rows:2})}):c.jsxs("div",{children:[c.jsx("p",{className:"project-description",onClick:()=>R(!0),title:"Click to edit description",children:u.description||"Click to add a description..."}),c.jsx("p",{className:"project-path",children:u.path})]})]}),c.jsxs("div",{className:"header-actions-group",children:[c.jsx("button",{onClick:async()=>{try{await window.electronAPI.openInEditor(u.path)}catch(F){console.error("Error opening in editor:",F),alert(`Failed to open in editor: ${F instanceof Error?F.message:String(F)}`)}},className:"btn btn-secondary",title:"Open in editor",children:"Editor"}),c.jsx("button",{onClick:async()=>{try{await window.electronAPI.openInFiles(u.path)}catch(F){console.error("Error opening directory:",F),alert(`Failed to open directory: ${F instanceof Error?F.message:String(F)}`)}},className:"btn btn-secondary",title:"Open in file manager",children:"Files"})]})]}),c.jsxs("div",{className:"project-stats",children:[c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-value",children:T.length}),c.jsx("div",{className:"stat-label",children:"Ports"})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx("div",{className:"stat-value",children:((zn=D==null?void 0:D.scripts)==null?void 0:zn.length)||0}),c.jsx("div",{className:"stat-label",children:"Scripts"})]})]}),V&&c.jsxs("div",{className:"test-results-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx("h3",{children:"Latest Test Results"}),c.jsx("span",{className:"test-timestamp",children:new Date(V.timestamp*1e3).toLocaleString()})]}),c.jsxs("div",{className:"test-results-content",children:[c.jsxs("div",{className:"test-stats-grid",children:[c.jsxs("div",{className:"test-stat passed",children:[c.jsx("div",{className:"test-stat-icon",children:"✓"}),c.jsxs("div",{className:"test-stat-info",children:[c.jsx("div",{className:"test-stat-value",children:V.passed}),c.jsx("div",{className:"test-stat-label",children:"Passed"})]})]}),c.jsxs("div",{className:"test-stat failed",children:[c.jsx("div",{className:"test-stat-icon",children:"✗"}),c.jsxs("div",{className:"test-stat-info",children:[c.jsx("div",{className:"test-stat-value",children:V.failed}),c.jsx("div",{className:"test-stat-label",children:"Failed"})]})]}),V.skipped>0&&c.jsxs("div",{className:"test-stat skipped",children:[c.jsx("div",{className:"test-stat-icon",children:"⊘"}),c.jsxs("div",{className:"test-stat-info",children:[c.jsx("div",{className:"test-stat-value",children:V.skipped}),c.jsx("div",{className:"test-stat-label",children:"Skipped"})]})]}),c.jsxs("div",{className:"test-stat total",children:[c.jsx("div",{className:"test-stat-icon",children:"∑"}),c.jsxs("div",{className:"test-stat-info",children:[c.jsx("div",{className:"test-stat-value",children:V.total}),c.jsx("div",{className:"test-stat-label",children:"Total"})]})]})]}),c.jsxs("div",{className:"test-meta",children:[V.framework&&c.jsx("span",{className:"test-framework-badge",children:V.framework}),V.duration&&c.jsxs("span",{className:"test-duration",children:["⏱ ",(V.duration/1e3).toFixed(2),"s"]}),V.coverage&&c.jsxs("span",{className:"test-coverage",children:["📊 ",V.coverage.toFixed(1),"% coverage"]}),c.jsxs("span",{className:"test-script-name",children:["Script: ",V.script_name]})]})]})]}),c.jsxs("div",{className:"tags-section",children:[c.jsx("div",{className:"section-header",children:c.jsx("h3",{children:"Tags"})}),c.jsx("div",{className:"tags-content",children:c.jsxs("div",{className:"tags-list",children:[ye.map(F=>c.jsxs("span",{className:"tag-item",children:[F,c.jsx("button",{onClick:()=>Br(F),className:"tag-remove",title:"Remove tag",children:"×"})]},F)),ne?c.jsxs("div",{className:"tag-input-wrapper",children:[c.jsx("input",{type:"text",value:oe,onChange:F=>ce(F.target.value),onKeyDown:F=>{F.key==="Enter"?cn():F.key==="Escape"&&(ae(!1),ce(""))},onBlur:()=>{cn(),ae(!1)},className:"tag-input",placeholder:"Add tag...",autoFocus:!0}),dn.length>0&&oe&&c.jsx("div",{className:"tag-suggestions",children:dn.slice(0,5).map(F=>c.jsx("div",{className:"tag-suggestion",onMouseDown:de=>{de.preventDefault(),ce(F)},children:F},F))})]}):c.jsx("button",{onClick:()=>ae(!0),className:"tag-add-btn",title:"Add tag",children:"+ Add Tag"})]})})]}),tr.length>0&&c.jsx(sp,{urls:tr,onOpenUrl:er}),D&&c.jsxs("div",{className:"scripts-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsxs("h3",{children:["Available Scripts (",D.scripts.length,")"]}),c.jsx("span",{className:"project-type-badge",children:D.type})]}),X?c.jsx("div",{className:"loading-state",children:"Loading scripts..."}):D.scripts.length===0?c.jsx("div",{className:"no-scripts",children:"No scripts found in this project."}):c.jsx("div",{className:"scripts-list",children:D.scripts.map(F=>{const de=G.filter(Ae=>Ae.scriptName===F.name),Se=de.length>0,gt=T.filter(Ae=>Ae.script_name===F.name).map(Ae=>Ae.port),Xr=Array.from(new Set(gt)).sort((Ae,fn)=>Ae-fn);return c.jsxs("div",{className:`script-item ${Se?"running":""}`,children:[c.jsxs("div",{className:"script-info",children:[c.jsxs("div",{className:"script-header",children:[c.jsx("span",{className:"script-name",children:F.name}),c.jsx("span",{className:"script-command",children:F.command}),c.jsx("span",{className:"script-runner",children:F.runner})]}),Se&&c.jsx("div",{className:"script-process-info",children:de.map(Ae=>{const fn=Math.floor((Date.now()-Ae.startedAt)/1e3),_n=Math.floor(fn/60),pn=fn%60,Qr=_n>0?`${_n}m ${pn}s`:`${pn}s`,Ht=Ae.detectedPorts&&Ae.detectedPorts.length>0?Ae.detectedPorts:Xr;return c.jsxs("div",{className:"process-badge",children:[c.jsx("span",{className:"process-indicator",children:"●"}),c.jsxs("span",{className:"process-pid",children:["PID: ",Ae.pid]}),c.jsx("span",{className:"process-uptime",children:Qr}),Ht.length>0&&c.jsxs("span",{className:"process-port",children:[":",Ht.join(", ")]}),c.jsx("button",{onClick:Dt=>{Dt.stopPropagation(),a&&a(Ae.pid,F.name,u.name)},className:"btn btn-secondary btn-tiny",title:"View terminal output",children:c.jsx("span",{className:"terminal-icon",children:"⌘"})}),c.jsx("button",{onClick:Dt=>{Dt.stopPropagation(),$r(Ae.pid)},className:"btn btn-danger btn-tiny",title:"Stop process",children:"Stop"})]},Ae.pid)})})]}),c.jsx("div",{className:"script-actions",children:!Se&&c.jsx("button",{onClick:()=>Vr(F.name,!0),className:"btn btn-secondary btn-small",title:"Run in background",children:"Run"})})]},F.name)})})]}),c.jsxs("div",{className:"jenkins-placeholder",children:[c.jsx("h3",{children:"Jenkins Integration"}),c.jsx("p",{className:"placeholder-text",children:"Jenkins integration will be available in a future update. This section will display Jenkins job statuses and build information for your projects."})]}),s&&c.jsxs("div",{className:"danger-zone",children:[c.jsx("h3",{children:"Danger Zone"}),c.jsx("p",{className:"danger-zone-text",children:"Once you delete a project, there is no going back. Please be certain."}),c.jsx("button",{onClick:async()=>{confirm(`Are you sure you want to remove "${u.name}"?
56
-
57
- This will delete the project from PROJAX (not from your filesystem).
58
-
59
- This action cannot be undone.`)&&await s(u.id)},className:"btn btn-danger",title:"Remove project",children:"Delete Project"})]})]})},ap=({onAdd:u,onClose:f})=>{const[s,a]=K.useState(""),[p,g]=K.useState(!1),w=async()=>{try{const E=await window.electronAPI.selectDirectory();E&&a(E)}catch(E){console.error("Error selecting directory:",E)}},S=async E=>{if(E.preventDefault(),!s.trim()){alert("Please select a project directory");return}try{g(!0),await u(s)}catch{}finally{g(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:f,children:c.jsxs("div",{className:"modal-content",onClick:E=>E.stopPropagation(),children:[c.jsxs("div",{className:"modal-header",children:[c.jsx("h2",{children:"Add Project"}),c.jsx("button",{className:"modal-close",onClick:f,children:"×"})]}),c.jsxs("form",{onSubmit:S,children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{htmlFor:"project-path",children:"Project Directory"}),c.jsxs("div",{className:"path-input-group",children:[c.jsx("input",{id:"project-path",type:"text",value:s,onChange:E=>a(E.target.value),placeholder:"Select or enter project directory path",disabled:p}),c.jsx("button",{type:"button",onClick:w,disabled:p,className:"btn btn-secondary",children:"Browse"})]})]}),c.jsxs("div",{className:"modal-actions",children:[c.jsx("button",{type:"button",onClick:f,disabled:p,className:"btn btn-secondary",children:"Cancel"}),c.jsx("button",{type:"submit",disabled:p||!s.trim(),className:"btn btn-primary",children:p?"Adding...":"Add Project"})]})]})]})})},up=({onSearchChange:u,onSortChange:f,searchInputRef:s})=>{const[a,p]=K.useState(""),[g,w]=K.useState("all"),[S,E]=K.useState("name-asc"),[R,I]=K.useState(!1),x=K.useRef(null),D=K.useRef(null),U=s||D,X=L=>{const _=L.target.value;p(_),u(_,"all")},O=L=>{E(L),I(!1),f&&f(L)};K.useEffect(()=>{const L=_=>{x.current&&!x.current.contains(_.target)&&I(!1)};if(R)return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[R]);const T=[{value:"name-asc",label:"Name (A-Z)"},{value:"name-desc",label:"Name (Z-A)"},{value:"recent",label:"Recently Scanned"},{value:"oldest",label:"Oldest First"},{value:"running",label:"Running First"}];return c.jsx("div",{className:"project-search",children:c.jsxs("div",{className:"search-input-group",ref:x,children:[c.jsxs("div",{className:"search-input-wrapper",children:[c.jsx("input",{ref:U,type:"text",placeholder:"Search projects... (⌘/)",value:a,onChange:X,className:"search-input"}),c.jsx("button",{className:"sort-icon-btn",onClick:()=>I(!R),title:"Sort options",tabIndex:0,children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:c.jsx("path",{d:"M3 4h10M3 8h7M3 12h4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),R&&c.jsx("div",{className:"sort-menu",children:T.map(L=>c.jsxs("div",{className:`sort-menu-item ${S===L.value?"active":""}`,onClick:()=>O(L.value),children:[L.label,S===L.value&&c.jsx("span",{className:"checkmark",children:"✓"})]},L.value))})]})})},cp=({onClose:u})=>{const[f,s]=K.useState({editor:{type:"vscode"},browser:{type:"chrome"}}),[a,p]=K.useState(!0),[g,w]=K.useState(!1);K.useEffect(()=>{const x=D=>{D.key==="Escape"&&u()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[u]),K.useEffect(()=>{S()},[]);const S=async()=>{try{p(!0);const x=await window.electronAPI.getSettings();s(x)}catch(x){console.error("Error loading settings:",x)}finally{p(!1)}},E=async()=>{try{w(!0),await window.electronAPI.saveSettings(f),u()}catch(x){console.error("Error saving settings:",x),alert(`Failed to save settings: ${x instanceof Error?x.message:String(x)}`)}finally{w(!1)}},R=x=>{s({...f,editor:{type:x,customPath:x==="custom"?f.editor.customPath:void 0}})},I=x=>{s({...f,browser:{type:x,customPath:x==="custom"?f.browser.customPath:void 0}})};return a?c.jsx("div",{className:"settings-overlay",children:c.jsx("div",{className:"settings-modal",children:c.jsx("div",{className:"loading-state",children:"Loading settings..."})})}):c.jsx("div",{className:"settings-overlay",onClick:u,children:c.jsxs("div",{className:"settings-modal",onClick:x=>x.stopPropagation(),children:[c.jsxs("div",{className:"settings-header",children:[c.jsx("h2",{children:"Settings"}),c.jsx("button",{onClick:u,className:"settings-close-btn",title:"Close",children:"×"})]}),c.jsxs("div",{className:"settings-content",children:[c.jsxs("div",{className:"settings-section",children:[c.jsx("h3",{children:"Editor"}),c.jsxs("div",{className:"settings-field",children:[c.jsx("label",{children:"Editor Type"}),c.jsxs("select",{value:f.editor.type,onChange:x=>R(x.target.value),className:"settings-select",children:[c.jsx("option",{value:"vscode",children:"VS Code"}),c.jsx("option",{value:"cursor",children:"Cursor"}),c.jsx("option",{value:"windsurf",children:"Windsurf"}),c.jsx("option",{value:"zed",children:"Zed"}),c.jsx("option",{value:"custom",children:"Custom"})]})]}),f.editor.type==="custom"&&c.jsxs("div",{className:"settings-field",children:[c.jsx("label",{children:"Custom Editor Path"}),c.jsx("input",{type:"text",value:f.editor.customPath||"",onChange:x=>s({...f,editor:{...f.editor,customPath:x.target.value}}),placeholder:"/path/to/editor",className:"settings-input"})]})]}),c.jsxs("div",{className:"settings-section",children:[c.jsx("h3",{children:"Browser"}),c.jsxs("div",{className:"settings-field",children:[c.jsx("label",{children:"Browser Type"}),c.jsxs("select",{value:f.browser.type,onChange:x=>I(x.target.value),className:"settings-select",children:[c.jsx("option",{value:"chrome",children:"Chrome"}),c.jsx("option",{value:"firefox",children:"Firefox"}),c.jsx("option",{value:"safari",children:"Safari"}),c.jsx("option",{value:"edge",children:"Edge"}),c.jsx("option",{value:"custom",children:"Custom"})]})]}),f.browser.type==="custom"&&c.jsxs("div",{className:"settings-field",children:[c.jsx("label",{children:"Custom Browser Path"}),c.jsx("input",{type:"text",value:f.browser.customPath||"",onChange:x=>s({...f,browser:{...f.browser,customPath:x.target.value}}),placeholder:"/path/to/browser",className:"settings-input"})]})]})]}),c.jsxs("div",{className:"settings-footer",children:[c.jsx("button",{onClick:u,className:"btn btn-secondary",children:"Cancel"}),c.jsx("button",{onClick:E,disabled:g,className:"btn btn-primary",children:g?"Saving...":"Save"})]})]})})},dp=({children:u})=>c.jsxs("div",{className:"app-header",children:[c.jsx("h1",{className:"app-logo",children:"PROJAX"}),u]}),fp=({apiPort:u})=>{const[f,s]=K.useState(!1),[a,p]=K.useState(u||null),[g,w]=K.useState("...");return K.useEffect(()=>{(async()=>{try{const x=await window.electronAPI.getAppVersion();w(x)}catch(x){console.error("Failed to get app version:",x),w("3.3.24")}})();const E=async()=>{if(a)R(a);else try{const x=[38124,38125,38126,38127,38128];for(const D of x)try{if((await fetch(`http://localhost:${D}/health`)).ok){p(D),R(D);return}}catch{}}catch(x){console.error("Failed to detect API port:",x)}},R=async x=>{try{const D=await fetch(`http://localhost:${x}/health`);s(D.ok)}catch{s(!1)}};E();const I=setInterval(()=>{a&&R(a)},5e3);return()=>clearInterval(I)},[a]),c.jsx("div",{className:"status-bar",children:c.jsxs("div",{className:"status-bar-content",children:[c.jsxs("div",{className:"status-version",children:["v",g]}),c.jsxs("div",{className:"status-right",children:[c.jsxs("div",{className:"status-indicator",children:[c.jsx("span",{className:`status-dot ${f?"connected":"disconnected"}`}),c.jsx("span",{className:"status-text",children:f?"API Connected":"API Disconnected"})]}),a&&c.jsxs("div",{className:"api-port",children:["Port: ",a]})]})]})})},pp=({pid:u,scriptName:f,projectName:s,onClose:a})=>{const[p,g]=K.useState([]),[w,S]=K.useState(!1),E=K.useRef(null),[R,I]=K.useState(!0),[x,D]=K.useState([]),U=K.useCallback(C=>{const M=[],H=new Set,G=[/https?:\/\/(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d+)/gi,/(?:port|PORT)\s+(\d+)/gi,/(?:localhost|127\.0\.0\.1):(\d+)/gi];for(const y of G){const j=C.matchAll(y);for(const $ of j){let ne,ae;$[0].includes("http")?(ne=$[0],ae=Number.parseInt($[2],10)):$[0].toLowerCase().includes("port")?(ae=Number.parseInt($[1],10),ne=`http://localhost:${ae}`):(ae=Number.parseInt($[1],10),ne=$[0].includes("://")?$[0]:`http://${$[0]}`),ae>=1e3&&ae<=65535&&!H.has(ne)&&(H.add(ne),M.push({url:ne,port:ae}))}}return M},[]);K.useEffect(()=>{const C=p.join(`
60
- `),M=U(C);M.length>0&&D(M)},[p,U]),K.useEffect(()=>{const C=M=>{M.key==="Escape"&&a()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[a]),K.useEffect(()=>{(async()=>{try{await window.electronAPI.watchProcessOutput(u),S(!0)}catch(G){console.error("Failed to start watching process:",G),g(y=>[...y,`Error: Failed to connect to process ${u}`])}})();const M=(G,y)=>{y.pid===u&&g(j=>[...j,y.data])},H=(G,y)=>{y.pid===u&&(g(j=>[...j,`
61
- [Process exited with code ${y.code}]`]),S(!1))};return window.electronAPI.onProcessOutput(M),window.electronAPI.onProcessExit(H),()=>{window.electronAPI.unwatchProcessOutput(u),window.electronAPI.removeProcessOutputListener(M),window.electronAPI.removeProcessExitListener(H)}},[u]),K.useEffect(()=>{R&&E.current&&(E.current.scrollTop=E.current.scrollHeight)},[R]);const X=()=>{if(E.current){const{scrollTop:C,scrollHeight:M,clientHeight:H}=E.current,G=M-C-H<50;I(G)}},O=()=>{g([])},T=()=>{E.current&&(E.current.scrollTop=E.current.scrollHeight,I(!0))},L=C=>{window.open(C,"_blank")},_=C=>{navigator.clipboard.writeText(C)};return c.jsxs("div",{className:"terminal-sidebar",children:[c.jsxs("div",{className:"terminal-header",children:[c.jsxs("div",{className:"terminal-title-row",children:[c.jsxs("div",{className:"terminal-title-content",children:[c.jsx("span",{className:`terminal-status-indicator ${w?"running":"stopped"}`,children:w?"●":"○"}),c.jsxs("div",{className:"terminal-info",children:[c.jsx("span",{className:"terminal-script",children:f}),c.jsx("span",{className:"terminal-project",children:s})]})]}),c.jsxs("div",{className:"terminal-meta",children:[c.jsx("span",{className:`terminal-status-badge ${w?"running":"stopped"}`,children:w?"Running":"Stopped"}),c.jsxs("span",{className:"terminal-pid",children:["PID: ",u]})]})]}),c.jsxs("div",{className:"terminal-toolbar",children:[c.jsx("button",{type:"button",onClick:O,className:"btn btn-secondary btn-tiny",title:"Clear output",children:"Clear"}),!R&&c.jsx("button",{type:"button",onClick:T,className:"btn btn-secondary btn-tiny",title:"Scroll to bottom",children:"↓ Bottom"}),c.jsx("button",{type:"button",onClick:a,className:"btn btn-danger btn-tiny",title:"Close terminal",children:"Close"})]})]}),c.jsx("div",{ref:E,className:"terminal-output",onScroll:X,children:p.length===0?c.jsxs("div",{className:"terminal-empty",children:[c.jsx("div",{className:"terminal-empty-icon",children:"⌘"}),c.jsx("div",{className:"terminal-empty-text",children:"Waiting for output..."}),c.jsxs("div",{className:"terminal-empty-hint",children:["Process PID ",u]})]}):p.map((C,M)=>c.jsx("div",{className:"terminal-line",children:C},`${M}-${C.slice(0,20)}`))}),x.length>0&&c.jsxs("div",{className:"terminal-loupe",children:[c.jsxs("div",{className:"terminal-loupe-header",children:[c.jsx("span",{className:"terminal-loupe-icon",children:"🔍"}),c.jsx("span",{className:"terminal-loupe-title",children:"Detected Servers"})]}),c.jsx("div",{className:"terminal-loupe-servers",children:x.map(C=>c.jsxs("div",{className:"terminal-loupe-server",children:[c.jsxs("div",{className:"terminal-loupe-server-info",children:[c.jsxs("span",{className:"terminal-loupe-port",children:[":",C.port]}),c.jsx("span",{className:"terminal-loupe-url",children:C.url})]}),c.jsxs("div",{className:"terminal-loupe-actions",children:[c.jsx("button",{type:"button",onClick:()=>L(C.url),className:"btn btn-primary btn-tiny",title:"Open in browser",children:"Open"}),c.jsx("button",{type:"button",onClick:()=>_(C.url),className:"btn btn-secondary btn-tiny",title:"Copy URL",children:"Copy"})]})]},C.url))})]})]})};function hp(){const[u,f]=K.useState([]),[s,a]=K.useState(null),[p,g]=K.useState(!0),[w,S]=K.useState(!1),[E,R]=K.useState(""),[I,x]=K.useState("all"),[D,U]=K.useState("name-asc"),[X,O]=K.useState(!1),[T,L]=K.useState([]),[_,C]=K.useState(-1),[M,H]=K.useState("sidebar"),G=ul.useRef(null),[y,j]=K.useState(280),[$,ne]=K.useState(550),[ae,oe]=K.useState(null);K.useEffect(()=>{ce(),Ne();const h=setInterval(()=>{Ne()},5e3);return()=>clearInterval(h)},[]);const ce=async()=>{try{g(!0);const h=await window.electronAPI.getProjects();f(h),h.length===0&&console.log('No projects found. Use "Add Project" to add one.')}catch(h){console.error("Error loading projects:",h),alert(`Error loading projects: ${h instanceof Error?h.message:String(h)}
62
-
63
- Check the console for more details.`)}finally{g(!1)}},Ne=async()=>{try{const h=await window.electronAPI.getRunningProcesses();L(h)}catch(h){console.error("Error loading running processes:",h)}},Ce=async h=>{try{const z=await window.electronAPI.addProject(h);await ce(),S(!1),await window.electronAPI.scanProject(z.id),await ce()}catch(z){console.error("Error adding project:",z),alert(z instanceof Error?z.message:"Failed to add project")}},ye=async h=>{if(confirm("Are you sure you want to remove this project?"))try{await window.electronAPI.removeProject(h),(s==null?void 0:s.id)===h&&a(null),await ce()}catch(z){console.error("Error removing project:",z),alert("Failed to remove project")}},ve=(h,z)=>{R(h),x(z)},Y=K.useMemo(()=>{let h=u;if(E.trim()){const q=E.toLowerCase().trim();h=u.filter(Z=>{switch(I){case"name":return Z.name.toLowerCase().includes(q);case"path":return Z.path.toLowerCase().includes(q);case"ports":return!1;case"running":return q==="running"||q==="not running";case"all":default:return Z.name.toLowerCase().includes(q)||Z.path.toLowerCase().includes(q)||Z.tags&&Z.tags.some(ue=>ue.toLowerCase().includes(q))}})}const z=[...h];switch(D){case"name-asc":z.sort((q,Z)=>q.name.localeCompare(Z.name));break;case"name-desc":z.sort((q,Z)=>Z.name.localeCompare(q.name));break;case"recent":z.sort((q,Z)=>(Z.last_scanned||0)-(q.last_scanned||0));break;case"oldest":z.sort((q,Z)=>q.created_at-Z.created_at);break;case"running":z.sort((q,Z)=>{const ue=T.filter(ge=>ge.projectPath===q.path).length;return T.filter(ge=>ge.projectPath===Z.path).length-ue});break}return z},[u,E,I,D,T]);K.useEffect(()=>{const h=z=>{var ge;if((z.metaKey||z.ctrlKey)&&z.key===","){z.preventDefault(),O(!0);return}if((z.metaKey||z.ctrlKey)&&z.key==="/"){z.preventDefault(),(ge=G.current)==null||ge.focus();return}const q=z.target;if(q.tagName==="INPUT"||q.tagName==="TEXTAREA")return;const Z=document.querySelector(".project-list"),ue=Z&&(Z===q||Z.contains(q)||q.closest(".project-item")!==null);if(!ue&&(z.key==="ArrowDown"||z.key==="ArrowUp"))return;const pe=Y;if(z.key==="ArrowDown"&&ue){z.preventDefault();const he=_<pe.length-1?_+1:pe.length>0?0:-1;he>=0&&(C(he),a(pe[he]))}else if(z.key==="ArrowUp"&&ue){z.preventDefault();const he=_>0?_-1:pe.length>0?pe.length-1:-1;he>=0&&(C(he),a(pe[he]))}else z.key==="Enter"&&_>=0&&_<pe.length&&ue?(z.preventDefault(),a(pe[_])):z.key==="Escape"&&ue&&C(-1)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[_,Y,M,s,ae]),K.useEffect(()=>{C(-1)},[Y.length,E]);const re=(h,z,q)=>{oe({pid:h,scriptName:z,projectName:q})},V=()=>{oe(null)};return c.jsxs("div",{className:"app",children:[c.jsx(dp,{children:c.jsxs("div",{className:"header-actions",children:[c.jsx("button",{type:"button",onClick:()=>O(!0),className:"btn-link",title:"Settings",children:"Settings"}),c.jsx("button",{type:"button",onClick:()=>S(!0),className:"btn-link btn-link-primary",children:"+ Add Project"})]})}),c.jsxs("div",{className:"app-content",children:[c.jsx(rp,{size:{width:y,height:"100%"},minWidth:200,maxWidth:600,disableDragging:!0,enableResizing:{right:!0},onResizeStop:(h,z,q,Z)=>{const ue=y+Z.width;j(Math.max(200,Math.min(600,ue)))},style:{position:"relative",display:"flex",flexDirection:"column"},resizeHandleStyles:{right:{width:"4px",right:"-2px",cursor:"col-resize",backgroundColor:"transparent"}},children:c.jsxs("aside",{className:"sidebar",style:{width:"100%",height:"100%"},children:[c.jsx(up,{onSearchChange:ve,onSortChange:U,searchInputRef:G}),c.jsx(op,{projects:Y,selectedProject:s,onSelectProject:h=>{a(h),C(-1)},loading:p,runningProcesses:T,keyboardFocusedIndex:_,onKeyboardFocusChange:C})]})}),c.jsx("main",{className:"main-content",children:s?c.jsx(lp,{project:s,onProjectUpdate:h=>{a(h),ce()},onRemoveProject:ye,onOpenTerminal:re}):c.jsxs("div",{className:"empty-state",children:[c.jsx("h2",{children:"Select a project to view details"}),c.jsx("p",{children:"Choose a project from the sidebar to see its test files and information."})]})}),ae&&c.jsxs("div",{style:{width:`${$}px`,minWidth:"350px",maxWidth:"800px",height:"100%",position:"relative",flexShrink:0,display:"flex",flexDirection:"column"},children:[c.jsx("div",{style:{position:"absolute",left:"-2px",top:0,bottom:0,width:"4px",cursor:"col-resize",zIndex:10},onMouseDown:h=>{h.preventDefault();const z=h.clientX,q=$,Z=pe=>{const ge=z-pe.clientX,he=Math.max(350,Math.min(800,q+ge));ne(he)},ue=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",ue)};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",ue)}}),c.jsx(pp,{pid:ae.pid,scriptName:ae.scriptName,projectName:ae.projectName,onClose:V})]})]}),w&&c.jsx(ap,{onAdd:Ce,onClose:()=>S(!1)}),X&&c.jsx(cp,{onClose:()=>O(!1)}),c.jsx(fp,{})]})}Lf.createRoot(document.getElementById("root")).render(c.jsx(ul.StrictMode,{children:c.jsx(hp,{})}));