@duo-director/cli 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +3 -3
  2. package/dist/{cli-WTCBCBVN.js → cli-QTN5SRNE.js} +61 -15
  3. package/dist/duoctl.js +1 -1
  4. package/dist/runtime-tree.json +12 -12
  5. package/dist/ui/app.js +2 -2
  6. package/node_modules/@modelcontextprotocol/client/dist/{index-CEk3qkZM.d.cts → index-D_CiY-T3.d.cts} +3 -1
  7. package/node_modules/@modelcontextprotocol/client/dist/index-D_CiY-T3.d.cts.map +1 -0
  8. package/node_modules/@modelcontextprotocol/client/dist/{index-BCtJi0p5.d.mts → index-D_QDtbiv.d.mts} +3 -1
  9. package/node_modules/@modelcontextprotocol/client/dist/index-D_QDtbiv.d.mts.map +1 -0
  10. package/node_modules/@modelcontextprotocol/client/dist/index.cjs +100 -55
  11. package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +1 -1
  12. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +157 -30
  13. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -1
  14. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +157 -30
  15. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -1
  16. package/node_modules/@modelcontextprotocol/client/dist/index.mjs +100 -55
  17. package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +1 -1
  18. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +1 -1
  19. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +1 -1
  20. package/node_modules/@modelcontextprotocol/client/dist/{src-D0qEN74R.cjs → src-oZBjf3U1.cjs} +21 -4
  21. package/node_modules/@modelcontextprotocol/client/dist/src-oZBjf3U1.cjs.map +1 -0
  22. package/node_modules/@modelcontextprotocol/client/dist/{src-DDAAhLnO.mjs → src-xKF0PJN-.mjs} +16 -5
  23. package/node_modules/@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs.map +1 -0
  24. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +1 -1
  25. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +1 -1
  26. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +1 -1
  27. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +1 -1
  28. package/node_modules/@modelcontextprotocol/client/package.json +3 -3
  29. package/node_modules/@modelcontextprotocol/core/dist/{auth--n_Yzytt.d.cts → auth-Anm-lwWi.d.mts} +9 -8
  30. package/node_modules/@modelcontextprotocol/core/dist/{auth--n_Yzytt.d.cts.map → auth-Anm-lwWi.d.mts.map} +1 -1
  31. package/node_modules/@modelcontextprotocol/core/dist/{auth-CGP0BDVq.mjs → auth-BNDyLTqp.mjs} +5 -3
  32. package/node_modules/@modelcontextprotocol/core/dist/{auth-CGP0BDVq.mjs.map → auth-BNDyLTqp.mjs.map} +1 -1
  33. package/node_modules/@modelcontextprotocol/core/dist/{auth-4-zilcqg.cjs → auth-D1CeV_Jr.cjs} +5 -3
  34. package/node_modules/@modelcontextprotocol/core/dist/{auth-4-zilcqg.cjs.map → auth-D1CeV_Jr.cjs.map} +1 -1
  35. package/node_modules/@modelcontextprotocol/core/dist/{auth-YUQV3RRv.d.mts → auth-V9XJSCfa.d.cts} +9 -8
  36. package/node_modules/@modelcontextprotocol/core/dist/{auth-YUQV3RRv.d.mts.map → auth-V9XJSCfa.d.cts.map} +1 -1
  37. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +1 -1
  38. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +1 -1
  39. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +1 -1
  40. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +1 -1
  41. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +1 -1
  42. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +1 -1
  43. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +1 -1
  44. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +1 -1
  45. package/node_modules/@modelcontextprotocol/core/package.json +1 -1
  46. package/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-Bt6U_Fqb.d.mts → createMcpHandler-CfX6zgs1.d.mts} +3 -1
  47. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CfX6zgs1.d.mts.map +1 -0
  48. package/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-BLVe3qmU.d.cts → createMcpHandler-LSKhyqpU.d.cts} +3 -1
  49. package/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-BLVe3qmU.d.cts.map → createMcpHandler-LSKhyqpU.d.cts.map} +1 -1
  50. package/node_modules/@modelcontextprotocol/server/dist/index.cjs +5 -3
  51. package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -1
  52. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +1 -1
  53. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +1 -1
  54. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -1
  55. package/node_modules/@modelcontextprotocol/server/dist/index.mjs +5 -3
  56. package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -1
  57. package/node_modules/@modelcontextprotocol/server/dist/{mcp-Dw2OlZ1f.mjs → mcp-DYuW2ZSs.mjs} +6 -2
  58. package/node_modules/@modelcontextprotocol/server/dist/mcp-DYuW2ZSs.mjs.map +1 -0
  59. package/node_modules/@modelcontextprotocol/server/dist/{mcp-DUcCQSTW.cjs → mcp-TfXCpFsH.cjs} +6 -2
  60. package/node_modules/@modelcontextprotocol/server/dist/mcp-TfXCpFsH.cjs.map +1 -0
  61. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +1 -1
  62. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +1 -1
  63. package/node_modules/@modelcontextprotocol/server/dist/{src-D-y6h4N7.mjs → src-BHSMhZ_W.mjs} +8 -4
  64. package/node_modules/@modelcontextprotocol/server/dist/src-BHSMhZ_W.mjs.map +1 -0
  65. package/node_modules/@modelcontextprotocol/server/dist/{src-CgFsfg3E.cjs → src-BtQ5YSyq.cjs} +8 -4
  66. package/node_modules/@modelcontextprotocol/server/dist/src-BtQ5YSyq.cjs.map +1 -0
  67. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +2 -2
  68. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +1 -1
  69. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +1 -1
  70. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +2 -2
  71. package/node_modules/@modelcontextprotocol/server/package.json +3 -3
  72. package/package.json +3 -3
  73. package/node_modules/@modelcontextprotocol/client/dist/index-BCtJi0p5.d.mts.map +0 -1
  74. package/node_modules/@modelcontextprotocol/client/dist/index-CEk3qkZM.d.cts.map +0 -1
  75. package/node_modules/@modelcontextprotocol/client/dist/src-D0qEN74R.cjs.map +0 -1
  76. package/node_modules/@modelcontextprotocol/client/dist/src-DDAAhLnO.mjs.map +0 -1
  77. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-Bt6U_Fqb.d.mts.map +0 -1
  78. package/node_modules/@modelcontextprotocol/server/dist/mcp-DUcCQSTW.cjs.map +0 -1
  79. package/node_modules/@modelcontextprotocol/server/dist/mcp-Dw2OlZ1f.mjs.map +0 -1
  80. package/node_modules/@modelcontextprotocol/server/dist/src-CgFsfg3E.cjs.map +0 -1
  81. package/node_modules/@modelcontextprotocol/server/dist/src-D-y6h4N7.mjs.map +0 -1
package/dist/ui/app.js CHANGED
@@ -6,6 +6,6 @@ var z0=Object.create;var xd=Object.defineProperty;var A0=Object.getOwnPropertyDe
6
6
  `+o[n].replace(" at new "," at ");return t.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",t.displayName)),m}while(1<=n&&0<=a);break}}}finally{Uc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?pl(l):""}function og(t,e){switch(t.tag){case 26:case 27:case 5:return pl(t.type);case 16:return pl("Lazy");case 13:return t.child!==e&&e!==null?pl("Suspense Fallback"):pl("Suspense");case 19:return pl("SuspenseList");case 0:case 15:return Hc(t.type,!1);case 11:return Hc(t.type.render,!1);case 1:return Hc(t.type,!0);case 31:return pl("Activity");case 30:return pl("ViewTransition");default:return""}}function sr(t){try{var e="",l=null;do e+=og(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
7
7
  Error generating stack: `+n.message+`
8
8
  `+n.stack}}var So=Object.prototype.hasOwnProperty,Of=zt.unstable_scheduleCallback,qc=zt.unstable_cancelCallback,fg=zt.unstable_shouldYield,dg=zt.unstable_requestPaint,oe=zt.unstable_now,rg=zt.unstable_getCurrentPriorityLevel,ty=zt.unstable_ImmediatePriority,ey=zt.unstable_UserBlockingPriority,Ei=zt.unstable_NormalPriority,sg=zt.unstable_LowPriority,ly=zt.unstable_IdlePriority,yg=zt.log,mg=zt.unstable_setDisableYieldValue,mu=null,fe=null;function Nl(t){if(typeof yg=="function"&&mg(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(mu,t)}catch{}}var de=Math.clz32?Math.clz32:hg,vg=Math.log,gg=Math.LN2;function hg(t){return t>>>=0,t===0?32:31-(vg(t)/gg|0)|0}var Uu=256,Hu=262144,qu=4194304;function Il(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ji(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=n&134217727;return c!==0?(n=c&~u,n!==0?a=Il(n):(i&=c,i!==0?a=Il(i):l||(l=c&~t,l!==0&&(a=Il(l))))):(c=n&~u,c!==0?a=Il(c):i!==0?a=Il(i):l||(l=n&~t,l!==0&&(a=Il(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function vu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ny(t,e){(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var n=31-de(l),a=1<<n;e|=t[n],l&=~a}return e}function pg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ay(){var t=qu;return qu<<=1,(qu&62914560)===0&&(qu=4194304),t}function Bc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function gu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function bg(t,e,l,n,a,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var c=t.entanglements,o=t.expirationTimes,f=t.hiddenUpdates;for(l=i&~l;0<l;){var m=31-de(l),g=1<<m;c[m]=0,o[m]=-1;var r=f[m];if(r!==null)for(f[m]=null,m=0;m<r.length;m++){var s=r[m];s!==null&&(s.lane&=-536870913)}l&=~g}n!==0&&uy(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function uy(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-de(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function iy(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-de(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function cy(t,e){var l=e&-e;return l=(l&42)!==0?1:zf(l),(l&(t.suspendedLanes|e))!==0?0:l}function zf(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Af(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function oy(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:Xv(t.type))}function yr(t,e){var l=k.p;try{return k.p=t,e()}finally{k.p=l}}var fl=Math.random().toString(36).slice(2),Mt="__reactFiber$"+fl,ee="__reactProps$"+fl,ma="__reactContainer$"+fl,mr="__reactEvents$"+fl,Sg="__reactListeners$"+fl,Eg="__reactHandles$"+fl,vr="__reactResources$"+fl,hu="__reactMarker$"+fl,Ti="__reactLoad$"+fl;function ki(t){delete t[Mt],delete t[ee],delete t[Sg],delete t[Eg]}function en(t){var e;if(e=t[Mt])return e;for(var l=t.parentNode;l;){if(e=l[ma]||l[Mt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Ms(t);t!==null;){if(l=t[Mt])return l;t=Ms(t)}return e}t=l,l=t.parentNode}return null}function va(t){if(t=t[Mt]||t[ma]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function qa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(p(33))}function Zn(t){var e=t[vr];return e||(e=t[vr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function _t(t){t[hu]=!0}function fy(t){t[Ti]=void 0}var dy=new Set,ry={};function pn(t,e){la(t,e),la(t+"Capture",e)}function la(t,e){for(ry[t]=e,t=0;t<e.length;t++)dy.add(e[t])}var Tg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gr={},hr={};function Ng(t){return So.call(hr,t)?!0:So.call(gr,t)?!1:Tg.test(t)?hr[t]=!0:(gr[t]=!0,!1)}var K=!1;function pr(){var t=K;return K=!1,t}function Pu(t,e,l){if(Ng(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,l)}}function Bu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,l)}}function We(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,n)}}function ae(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function sy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Og(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Eo(t){if(!t._valueTracker){var e=sy(t)?"checked":"value";t._valueTracker=Og(t,e,""+t[e])}}function yy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=sy(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}var zg=/[\n"\\]/g;function Se(t){return t.replace(zg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function To(t,e,l,n,a,u,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ae(e)):t.value!==""+ae(e)&&(t.value=""+ae(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?i==="number"&&t.value==e?Lc(t,ae(t.value)):Lc(t,ae(e)):l!=null?Lc(t,ae(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+ae(c):t.removeAttribute("name")}function my(t,e,l,n,a,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Eo(t);return}l=l!=null?""+ae(l):"",e=e!=null?""+ae(e):l,c||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=c?t.checked:!!n,t.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),Eo(t)}function Lc(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Kn(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+ae(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function vy(t,e,l){if(e!=null&&(e=""+ae(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ae(l):""}function gy(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(p(92));if(Ha(n)){if(1<n.length)throw Error(p(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=ae(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),Eo(t)}function na(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Ag=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function br(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Ag.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function hy(t,e,l){if(e!=null&&typeof e!="object")throw Error(p(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="",K=!0);for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&(br(t,a,n),K=!0)}else for(var u in e)e.hasOwnProperty(u)&&br(t,u,e[u])}function Df(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Dg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),xg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ti(t){return xg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function je(){}var No=null;function xf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Bn=null,Jn=null;function Sr(t){var e=va(t);if(e&&(t=e.stateNode)){var l=t[ee]||null;t:switch(t=e.stateNode,e.type){case"input":if(To(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Se(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ee]||null;if(!a)throw Error(p(90));To(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&yy(n)}break t;case"textarea":vy(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Kn(t,!!l.multiple,e,!1)}}}var Yc=!1;function py(t,e,l){if(Yc)return t(e,l);Yc=!0;try{var n=t(e);return n}finally{if(Yc=!1,(Bn!==null||Jn!==null)&&(oc(),Bn&&(e=Bn,t=Jn,Jn=Bn=null,Sr(e),t)))for(e=0;e<t.length;e++)Sr(t[e])}}function Ia(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ee]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(p(231,e,typeof l));return l}var nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(nl)try{Dn={},Object.defineProperty(Dn,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{Oo=!1}var Dn,Ol=null,_f=null,ei=null;function by(){if(ei)return ei;var t,e=_f,l=e.length,n,a="value"in Ol?Ol.value:Ol.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var i=l-t;for(n=1;n<=i&&e[l-n]===a[u-n];n++);return ei=a.slice(t,1<n?1-n:void 0)}function li(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Lu(){return!0}function Er(){return!1}function kt(t){function e(l,n,a,u,i){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(l=t[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Lu:Er,this.isPropagationStopped=Er,this}return nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Lu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Lu)},persist:function(){},isPersistent:Lu}),e}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=kt(Vl),pu=nt({},Vl,{view:0,detail:0}),_g=kt(pu),Gc,jc,xa,Fi=nt({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xa&&(xa&&t.type==="mousemove"?(Gc=t.screenX-xa.screenX,jc=t.screenY-xa.screenY):jc=Gc=0,xa=t),Gc)},movementY:function(t){return"movementY"in t?t.movementY:jc}}),Tr=kt(Fi),Rg=nt({},Fi,{dataTransfer:0}),Cg=kt(Rg),Mg=nt({},pu,{relatedTarget:0}),wc=kt(Mg),Ug=nt({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hg=kt(Ug),qg=nt({},Vl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bg=kt(qg),Lg=nt({},Vl,{data:0}),Nr=kt(Lg),Yg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gg={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"},jg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=jg[t])?!!e[t]:!1}function Rf(){return wg}var Qg=nt({},pu,{key:function(t){if(t.key){var e=Yg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=li(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rf,charCode:function(t){return t.type==="keypress"?li(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?li(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Xg=kt(Qg),Vg=nt({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Or=kt(Vg),Zg=nt({},Vl,{submitter:0}),Kg=kt(Zg),Jg=nt({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rf}),kg=kt(Jg),$g=nt({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fg=kt($g),Wg=nt({},Fi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ig=kt(Wg),Pg=nt({},Vl,{newState:0,oldState:0,source:0}),th=kt(Pg),eh=[9,13,27,32],Cf=nl&&"CompositionEvent"in window,Ya=null;nl&&"documentMode"in document&&(Ya=document.documentMode);var lh=nl&&"TextEvent"in window&&!Ya,Sy=nl&&(!Cf||Ya&&8<Ya&&11>=Ya),zr=" ",Ar=!1;function Ey(t,e){switch(t){case"keyup":return eh.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ty(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ln=!1;function nh(t,e){switch(t){case"compositionend":return Ty(e);case"keypress":return e.which!==32?null:(Ar=!0,zr);case"textInput":return t=e.data,t===zr&&Ar?null:t;default:return null}}function ah(t,e){if(Ln)return t==="compositionend"||!Cf&&Ey(t,e)?(t=by(),ei=_f=Ol=null,Ln=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Sy&&e.locale!=="ko"?null:e.data;default:return null}}var uh={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 Dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!uh[t.type]:e==="textarea"}function Ny(t,e,l,n){Bn?Jn?Jn.push(n):Jn=[n]:Bn=n,e=Vi(e,"onChange"),0<e.length&&(l=new $i("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var Ga=null,Pa=null;function ih(t){pv(t,0)}function Wi(t){var e=qa(t);if(yy(e))return t}function xr(t,e){if(t==="change")return e}var Oy=!1;nl&&(nl?(Gu="oninput"in document,Gu||(Qc=document.createElement("div"),Qc.setAttribute("oninput","return;"),Gu=typeof Qc.oninput=="function"),Yu=Gu):Yu=!1,Oy=Yu&&(!document.documentMode||9<document.documentMode));var Yu,Gu,Qc;function _r(){Ga&&(Ga.detachEvent("onpropertychange",zy),Pa=Ga=null)}function zy(t){if(t.propertyName==="value"&&Wi(Pa)){var e=[];Ny(e,Pa,t,xf(t)),py(ih,e)}}function ch(t,e,l){t==="focusin"?(_r(),Ga=e,Pa=l,Ga.attachEvent("onpropertychange",zy)):t==="focusout"&&_r()}function oh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wi(Pa)}function fh(t,e){if(t==="click")return Wi(e)}function dh(t,e){if(t==="input"||t==="change")return Wi(e)}function rh(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var se=typeof Object.is=="function"?Object.is:rh;function tu(t,e){if(se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!So.call(e,a)||!se(t[a],e[a]))return!1}return!0}function zo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Rr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cr(t,e){var l=Rr(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Rr(l)}}function Ay(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ay(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dy(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=zo(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=zo(t.document)}return e}function Mf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var sh=nl&&"documentMode"in document&&11>=document.documentMode,Yn=null,Ao=null,ja=null,Do=!1;function Mr(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Do||Yn==null||Yn!==zo(n)||(n=Yn,"selectionStart"in n&&Mf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ja&&tu(ja,n)||(ja=n,n=Vi(Ao,"onSelect"),0<n.length&&(e=new $i("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=Yn)))}function Fl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Gn={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionrun:Fl("Transition","TransitionRun"),transitionstart:Fl("Transition","TransitionStart"),transitioncancel:Fl("Transition","TransitionCancel"),transitionend:Fl("Transition","TransitionEnd")},Xc={},xy={};nl&&(xy=document.createElement("div").style,"AnimationEvent"in window||(delete Gn.animationend.animation,delete Gn.animationiteration.animation,delete Gn.animationstart.animation),"TransitionEvent"in window||delete Gn.transitionend.transition);function bn(t){if(Xc[t])return Xc[t];if(!Gn[t])return t;var e=Gn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in xy)return Xc[t]=e[l];return t}var _y=bn("animationend"),Ry=bn("animationiteration"),Cy=bn("animationstart"),yh=bn("transitionrun"),mh=bn("transitionstart"),vh=bn("transitioncancel"),My=bn("transitionend"),Uy=new Map,xo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xo.push("scrollEnd");function Ce(t,e){Uy.set(t,e),pn(e,[t])}var gh=0;function al(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Re.identifierPrefix;var l=gh++;return t="_"+t+"t_"+l.toString(32)+"_",e.autoName=t}function Ur(t){if(t==null||typeof t=="string")return t;var e=null,l=ta;if(l!==null)for(var n=0;n<l.length;n++){var a=t[l[n]];if(a!=null){if(a==="none")return"none";e=e==null?a:e+(" "+a)}}return e??t.default}function dl(t,e){return t=Ur(t),e=Ur(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var Ni=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},he=[],jn=0,Uf=0;function Ii(){for(var t=jn,e=Uf=jn=0;e<t;){var l=he[e];he[e++]=null;var n=he[e];he[e++]=null;var a=he[e];he[e++]=null;var u=he[e];if(he[e++]=null,n!==null&&a!==null){var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}u!==0&&Hy(l,a,u)}}function Pi(t,e,l,n){he[jn++]=t,he[jn++]=e,he[jn++]=l,he[jn++]=n,Uf|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Hf(t,e,l,n){return Pi(t,e,l,n),Oi(t)}function Sn(t,e){return Pi(t,null,null,e),Oi(t)}function Hy(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-de(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function Oi(t){if(50<Fa)throw Fa=0,si=null,Error(p(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wn={};function hh(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(t,e,l,n){return new hh(t,e,l,n)}function qf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function el(t,e){var l=t.alternate;return l===null?(l=It(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&1206910976,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function qy(t,e){t.flags&=1206910978;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ni(t,e,l,n,a,u){var i=0;if(n=t,typeof n=="function")qf(n)&&(i=1);else if(typeof n=="string")i=X1(t,l,Xe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(n){case vo:return t=It(31,l,e,a),t.elementType=vo,t.lanes=u,t;case Hn:return an(l.children,a,u,e);case Is:i=8,a|=24;break;case so:return t=It(12,l,e,a|2),t.elementType=so,t.lanes=u,t;case yo:return t=It(13,l,e,a),t.elementType=yo,t.lanes=u,t;case mo:return t=It(19,l,e,a),t.elementType=mo,t.lanes=u,t;case ag:case go:return t=a|32,t=It(30,l,e,t),t.elementType=go,t.lanes=u,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Ge:i=10;break t;case Ps:i=9;break t;case Tf:i=11;break t;case Nf:i=14;break t;case Sl:i=16,n=null;break t}i=29,l=Error(p(130,t===null?"null":typeof t,"")),n=null}return e=It(i,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function an(t,e,l,n){return t=It(7,t,n,e),t.lanes=l,t}function Vc(t,e,l){return t=It(6,t,null,e),t.lanes=l,t}function By(t){var e=It(18,null,null,0);return e.stateNode=t,e}function Zc(t,e,l){return e=It(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Hr=new WeakMap;function Ee(t,e){if(typeof t=="object"&&t!==null){var l=Hr.get(t);return l!==void 0?l:(e={value:t,source:e,stack:sr(e)},Hr.set(t,e),e)}return{value:t,source:e,stack:sr(e)}}var Qn=[],Xn=0,zi=null,eu=0,pe=[],be=0,Gl=null,we=1,Qe="";function Pe(t,e){Qn[Xn++]=eu,Qn[Xn++]=zi,zi=t,eu=e}function Ly(t,e,l){pe[be++]=we,pe[be++]=Qe,pe[be++]=Gl,Gl=t;var n=we;t=Qe;var a=32-de(n)-1;n&=~(1<<a),l+=1;var u=32-de(e)+a;if(30<u){var i=a-a%5;u=(n&(1<<i)-1).toString(32),n>>=i,a-=i,we=1<<32-de(e)+a|l<<a|n,Qe=u+t}else we=1<<u|l<<a|n,Qe=t}function tc(t){t.return!==null&&(Pe(t,1),Ly(t,1,0))}function Bf(t){for(;t===zi;)zi=Qn[--Xn],Qn[Xn]=null,eu=Qn[--Xn],Qn[Xn]=null;for(;t===Gl;)Gl=pe[--be],pe[be]=null,Qe=pe[--be],pe[be]=null,we=pe[--be],pe[be]=null}function Yy(t,e){pe[be++]=we,pe[be++]=Qe,pe[be++]=Gl,we=e.id,Qe=e.overflow,Gl=t}var Rt=null,ct=null,G=!1,Rl=null,Te=!1,_o=Error(p(519));function jl(t){var e=Error(p(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lu(Ee(e,t)),_o}function qr(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Mt]=t,e[ee]=n,l){case"dialog":j("cancel",e),j("close",e);break;case"iframe":case"object":case"embed":j("load",e);break;case"video":case"audio":for(l=0;l<iu.length;l++)j(iu[l],e);break;case"source":j("error",e);break;case"img":case"image":case"link":j("error",e),j("load",e);break;case"details":j("toggle",e);break;case"input":j("invalid",e),my(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":j("invalid",e);break;case"textarea":j("invalid",e),gy(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||Sv(e.textContent,l)?(n.popover!=null&&(j("beforetoggle",e),j("toggle",e)),n.onScroll!=null&&j("scroll",e),n.onScrollEnd!=null&&j("scrollend",e),n.onClick!=null&&(e.onclick=je),e=!0):e=!1,e||jl(t,!0)}function Ai(t){for(Rt=t.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:Te=!1;return;case 27:case 3:Te=!0;return;default:Rt=Rt.return}}function xn(t){if(t!==Rt)return!1;if(!G)return Ai(t),G=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||mf(t.type,t.memoizedProps)),l=!l),l&&ct&&jl(t),Ai(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(p(317));ct=Cs(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(p(317));ct=Cs(t)}else e===27?(e=ct,Zl(t.type)?(t=pf,pf=null,ct=t):ct=e):ct=Rt?Ne(t.stateNode.nextSibling):null;return!0}function fn(){ct=Rt=null,G=!1}function Kc(){var t=Rl;return t!==null&&(Ft===null?Ft=t:Ft.push.apply(Ft,t),Rl=null),t}function lu(t){Rl===null?Rl=[t]:Rl.push(t)}var Ro=Ke(null),En=null,tl=null;function zl(t,e,l){ot(Ro,e._currentValue),e._currentValue=l}function ll(t){t._currentValue=Ro.current,Ht(Ro)}function ai(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Co(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var i=a.child;u=u.firstContext;t:for(;u!==null;){var c=u;u=a;for(var o=0;o<e.length;o++)if(c.context===e[o]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),ai(u.return,l,t),n||(i=null);break t}u=c.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(p(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),ai(i,l,t),i=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=l,i=a.alternate,i!==null&&(i.lanes|=l),ai(a.return,l,t),i=a.child,i=i!==null?i.sibling:null):i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function dn(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(p(387));if(i=i.memoizedProps,i!==null){var c=a.type;se(a.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(a===pi.current){if(i=a.alternate,i===null)throw Error(p(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(ra):t=[ra])}a=a.return}return t!==null&&Co(e,t,l,n),e.flags|=262144,t!==null}function Di(t){for(t=t.firstContext;t!==null;){if(!se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function rn(t){En=t,tl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ut(t){return Gy(En,t)}function ju(t,e){return En===null&&rn(t),Gy(t,e)}function Gy(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},tl===null){if(t===null)throw Error(p(308));tl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else tl=tl.next=e;return l}var ph=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},bh=zt.unstable_scheduleCallback,Sh=zt.unstable_NormalPriority,Et={$$typeof:Ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lf(){return{controller:new ph,data:new Map,refCount:0}}function bu(t){t.refCount--,t.refCount===0&&bh(Sh,function(){t.controller.abort()})}function Br(t,e){if((t.pendingLanes&4194048)!==0){var l=t.transitionTypes;for(l===null&&(l=t.transitionTypes=[]),t=0;t<e.length;t++){var n=e[t];l.indexOf(n)===-1&&l.push(n)}}}var Ba=null;function Eh(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var wa=null,Mo=0,sn=0,kn=null;function Th(t,e){if(wa===null){var l=wa=[];Mo=0,sn=rd(),kn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Mo++,e.then(Lr,Lr),e}function Lr(){if(--Mo===0&&(Ba=null,wa!==null)){kn!==null&&(kn.status="fulfilled");var t=wa;wa=null,sn=0,kn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Nh(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Yr=C.S;C.S=function(t,e){if(nv=oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Th(t,e),Ba!==null)for(var l=oa;l!==null;)Br(l,Ba),l=l.next;if(l=t.types,l!==null){for(var n=oa;n!==null;)Br(n,l),n=n.next;if(sn!==0){n=Ba,n===null&&(n=Ba=[]);for(var a=0;a<l.length;a++){var u=l[a];n.indexOf(u)===-1&&n.push(u)}}}Yr!==null&&Yr(t,e)};var un=Ke(null);function Yf(){var t=un.current;return t!==null?t:lt.pooledCache}function ui(t,e){e===null?ot(un,un.current):ot(un,e.pool)}function jy(){var t=Yf();return t===null?null:{parent:Et._currentValue,pool:t}}var ga=Error(p(460)),Gf=Error(p(474)),ec=Error(p(542)),xi={then:function(){}};function Gr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function wy(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(je,je),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,wr(t),t===void 0&&!("reason"in e)?Error(p(600)):t;default:if(typeof e.status=="string")e.then(je,je);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(p(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,wr(t),t}throw cn=e,ga}}function Pl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(cn=l,ga):l}}var cn=null;function jr(){if(cn===null)throw Error(p(459));var t=cn;return cn=null,t}function wr(t){if(t===ga||t===ec)throw Error(p(483))}var $n=null,nu=0;function wu(t){var e=nu;return nu+=1,$n===null&&($n=[]),wy($n,t,e)}function hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Qu(t,e){throw e.$$typeof===ng?Error(p(525)):(t=Object.prototype.toString.call(e),Error(p(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qy(t){function e(y,d){if(t){var v=y.deletions;v===null?(y.deletions=[d],y.flags|=16):v.push(d)}}function l(y,d){if(!t)return null;for(;d!==null;)e(y,d),d=d.sibling;return null}function n(y){for(var d=new Map;y!==null;)y.key===null?d.set(y.index,y):d.set(y.key,y),y=y.sibling;return d}function a(y,d){return y=el(y,d),y.index=0,y.sibling=null,y}function u(y,d,v){return y.index=v,t?(v=y.alternate,v!==null?(v=v.index,v<d?(y.flags|=2,d):v):(y.flags|=134217730,d)):(y.flags|=1048576,d)}function i(y){return t&&y.alternate===null&&(y.flags|=134217730),y}function c(y,d,v,h){return d===null||d.tag!==6?(d=Vc(v,y.mode,h),d.return=y,d):(d=a(d,v),d.return=y,d)}function o(y,d,v,h){var x=v.type;return x===Hn?(y=m(y,d,v.props.children,h,v.key),hl(y,v),y):d!==null&&(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sl&&Pl(x)===d.type)?(d=a(d,v.props),hl(d,v),d.return=y,d):(d=ni(v.type,v.key,v.props,null,y.mode,h),hl(d,v),d.return=y,d)}function f(y,d,v,h){return d===null||d.tag!==4||d.stateNode.containerInfo!==v.containerInfo||d.stateNode.implementation!==v.implementation?(d=Zc(v,y.mode,h),d.return=y,d):(d=a(d,v.children||[]),d.return=y,d)}function m(y,d,v,h,x){return d===null||d.tag!==7?(d=an(v,y.mode,h,x),d.return=y,d):(d=a(d,v),d.return=y,d)}function g(y,d,v){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Vc(""+d,y.mode,v),d.return=y,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Mu:return v=ni(d.type,d.key,d.props,null,y.mode,v),hl(v,d),v.return=y,v;case Ua:return d=Zc(d,y.mode,v),d.return=y,d;case Sl:return d=Pl(d),g(y,d,v)}if(Ha(d)||Da(d))return d=an(d,y.mode,v,null),d.return=y,d;if(typeof d.then=="function")return g(y,wu(d),v);if(d.$$typeof===Ge)return g(y,ju(y,d),v);Qu(y,d)}return null}function r(y,d,v,h){var x=d!==null?d.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return x!==null?null:c(y,d,""+v,h);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Mu:return v.key===x?o(y,d,v,h):null;case Ua:return v.key===x?f(y,d,v,h):null;case Sl:return v=Pl(v),r(y,d,v,h)}if(Ha(v)||Da(v))return x!==null?null:m(y,d,v,h,null);if(typeof v.then=="function")return r(y,d,wu(v),h);if(v.$$typeof===Ge)return r(y,d,ju(y,v),h);Qu(y,v)}return null}function s(y,d,v,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return y=y.get(v)||null,c(d,y,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Mu:return y=y.get(h.key===null?v:h.key)||null,o(d,y,h,x);case Ua:return y=y.get(h.key===null?v:h.key)||null,f(d,y,h,x);case Sl:return h=Pl(h),s(y,d,v,h,x)}if(Ha(h)||Da(h))return y=y.get(v)||null,m(d,y,h,x,null);if(typeof h.then=="function")return s(y,d,v,wu(h),x);if(h.$$typeof===Ge)return s(y,d,v,ju(d,h),x);Qu(d,h)}return null}function E(y,d,v,h){for(var x=null,X=null,_=d,R=d=0,bt=null;_!==null&&R<v.length;R++){_.index>R?(bt=_,_=null):bt=_.sibling;var Z=r(y,_,v[R],h);if(Z===null){_===null&&(_=bt);break}t&&_&&Z.alternate===null&&e(y,_),d=u(Z,d,R),X===null?x=Z:X.sibling=Z,X=Z,_=bt}if(R===v.length)return l(y,_),G&&Pe(y,R),x;if(_===null){for(;R<v.length;R++)_=g(y,v[R],h),_!==null&&(d=u(_,d,R),X===null?x=_:X.sibling=_,X=_);return G&&Pe(y,R),x}for(_=n(_);R<v.length;R++)bt=s(_,y,R,v[R],h),bt!==null&&(t&&(Z=bt.alternate,Z!==null&&_.delete(Z.key===null?R:Z.key)),d=u(bt,d,R),X===null?x=bt:X.sibling=bt,X=bt);return t&&_.forEach(function(ml){return e(y,ml)}),G&&Pe(y,R),x}function D(y,d,v,h){if(v==null)throw Error(p(151));for(var x=null,X=null,_=d,R=d=0,bt=null,Z=v.next();_!==null&&!Z.done;R++,Z=v.next()){_.index>R?(bt=_,_=null):bt=_.sibling;var ml=r(y,_,Z.value,h);if(ml===null){_===null&&(_=bt);break}t&&_&&ml.alternate===null&&e(y,_),d=u(ml,d,R),X===null?x=ml:X.sibling=ml,X=ml,_=bt}if(Z.done)return l(y,_),G&&Pe(y,R),x;if(_===null){for(;!Z.done;R++,Z=v.next())Z=g(y,Z.value,h),Z!==null&&(d=u(Z,d,R),X===null?x=Z:X.sibling=Z,X=Z);return G&&Pe(y,R),x}for(_=n(_);!Z.done;R++,Z=v.next())Z=s(_,y,R,Z.value,h),Z!==null&&(t&&(bt=Z.alternate,bt!==null&&_.delete(bt.key===null?R:bt.key)),d=u(Z,d,R),X===null?x=Z:X.sibling=Z,X=Z);return t&&_.forEach(function(O0){return e(y,O0)}),G&&Pe(y,R),x}function H(y,d,v,h){if(typeof v=="object"&&v!==null&&v.type===Hn&&v.key===null&&v.props.ref===void 0&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Mu:t:{for(var x=v.key;d!==null;){if(d.key===x){if(x=v.type,x===Hn){if(d.tag===7){l(y,d.sibling),h=a(d,v.props.children),hl(h,v),h.return=y,y=h;break t}}else if(d.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sl&&Pl(x)===d.type){l(y,d.sibling),h=a(d,v.props),hl(h,v),h.return=y,y=h;break t}l(y,d);break}else e(y,d);d=d.sibling}v.type===Hn?(h=an(v.props.children,y.mode,h,v.key),hl(h,v),h.return=y,y=h):(h=ni(v.type,v.key,v.props,null,y.mode,h),hl(h,v),h.return=y,y=h)}return i(y);case Ua:t:{for(x=v.key;d!==null;){if(d.key===x)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){l(y,d.sibling),h=a(d,v.children||[]),h.return=y,y=h;break t}else{l(y,d);break}else e(y,d);d=d.sibling}h=Zc(v,y.mode,h),h.return=y,y=h}return i(y);case Sl:return v=Pl(v),H(y,d,v,h)}if(Ha(v))return E(y,d,v,h);if(Da(v)){if(x=Da(v),typeof x!="function")throw Error(p(150));return v=x.call(v),D(y,d,v,h)}if(typeof v.then=="function")return H(y,d,wu(v),h);if(v.$$typeof===Ge)return H(y,d,ju(y,v),h);Qu(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,d!==null&&d.tag===6?(l(y,d.sibling),h=a(d,v),h.return=y,y=h):(l(y,d),h=Vc(v,y.mode,h),h.return=y,y=h),i(y)):l(y,d)}return function(y,d,v,h){try{nu=0;var x=H(y,d,v,h);return $n=null,x}catch(_){if(_===ga||_===ec)throw _;var X=It(29,_,null,y.mode);return X.lanes=h,X.return=y,X}}}var yn=Qy(!0),Xy=Qy(!1),El=!1;function jf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ml(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(J&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Oi(t),Hy(t,null,l),e}return Pi(t,n,e,l),Oi(t)}function Qa(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,iy(t,l)}}function Jc(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Ho=!1;function Xa(){if(Ho){var t=kn;if(t!==null)throw t}}function Va(t,e,l,n){Ho=!1;var a=t.updateQueue;El=!1;var u=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var o=c,f=o.next;o.next=null,i===null?u=f:i.next=f,i=o;var m=t.alternate;m!==null&&(m=m.updateQueue,c=m.lastBaseUpdate,c!==i&&(c===null?m.firstBaseUpdate=f:c.next=f,m.lastBaseUpdate=o))}if(u!==null){var g=a.baseState;i=0,m=f=o=null,c=u;do{var r=c.lane&-536870913,s=r!==c.lane;if(s?(V&r)===r:(n&r)===r){r!==0&&r===sn&&(Ho=!0),m!==null&&(m=m.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var E=t,D=c;r=e;var H=l;switch(D.tag){case 1:if(E=D.payload,typeof E=="function"){g=E.call(H,g,r);break t}g=E;break t;case 3:E.flags=E.flags&-65537|128;case 0:if(E=D.payload,r=typeof E=="function"?E.call(H,g,r):E,r==null)break t;g=nt({},g,r);break t;case 2:El=!0}}r=c.callback,r!==null&&(t.flags|=64,s&&(t.flags|=8192),s=a.callbacks,s===null?a.callbacks=[r]:s.push(r))}else s={lane:r,tag:c.tag,payload:c.payload,callback:c.callback,next:null},m===null?(f=m=s,o=g):m=m.next=s,i|=r;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;s=c,c=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}while(!0);m===null&&(o=g),a.baseState=o,a.firstBaseUpdate=f,a.lastBaseUpdate=m,u===null&&(a.shared.lanes=0),Xl|=i,t.lanes=i,t.memoizedState=g}}function Vy(t,e){if(typeof t!="function")throw Error(p(191,t));t.call(e)}function Zy(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Vy(l[t],e)}var wl=Ke(null),_i=Ke(0);function Qr(t,e){t=ol,ot(_i,t),ot(wl,e),ol=t|e.baseLanes}function qo(){ot(_i,ol),ot(wl,wl.current)}function wf(){ol=_i.current,Ht(wl),Ht(_i)}var Lt=Ke(null),Xt=null;function Ul(t){var e=t.alternate;ot(qt,qt.current&1),ot(Lt,t),Xt===null&&(e===null||wl.current!==null||e.memoizedState!==null)&&(Xt=t)}function Bo(t){ot(qt,qt.current),ot(Lt,t),Xt===null&&(Xt=t)}function Ky(t){t.tag===22?(ot(qt,qt.current),ot(Lt,t),Xt===null&&(Xt=t)):Hl()}function Hl(){ot(qt,qt.current),ot(Lt,Lt.current)}function ue(t){Ht(Lt),Xt===t&&(Xt=null),Ht(qt)}var qt=Ke(0);function au(t,e){ot(Lt,Lt.current),ot(qt,e)}function Qf(t){Ht(qt),Ht(Lt),Xt===t&&(Xt=null)}function Ri(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||hf(l)||vd(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ul=0,q=null,tt=null,St=null,Ci=!1,Fn=!1,mn=!1,Mi=0,uu=0,Wn=null,Oh=0;function mt(){throw Error(p(321))}function Xf(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!se(t[l],e[l]))return!1;return!0}function Vf(t,e,l,n,a,u){return ul=u,q=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,C.H=t===null||t.memoizedState===null?Nm:Om,mn=!1,u=l(n,a),mn=!1,Fn&&(u=ky(e,l,n,a)),Jy(t),u}function Jy(t){C.H=Ui;var e=tt!==null&&tt.next!==null;if(ul=0,St=tt=q=null,Ci=!1,uu=0,Wn=null,e)throw Error(p(300));t===null||Tt||(t=t.dependencies,t!==null&&Di(t)&&(Tt=!0))}function ky(t,e,l,n){q=t;var a=0;do{if(Fn&&(Wn=null),uu=0,Fn=!1,25<=a)throw Error(p(301));if(a+=1,St=tt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=Mh,u=e(l,n)}while(Fn);return u}function zh(){var t=C.H,e=t.useState()[0];return e=typeof e.then=="function"?Su(e):e,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(q.flags|=1024),e}function Zf(){var t=Mi!==0;return Mi=0,t}function Kf(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Jf(t){if(Ci){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ci=!1}ul=0,St=tt=q=null,Fn=!1,uu=Mi=0,Wn=null}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?q.memoizedState=St=t:St=St.next=t,St}function gt(){if(tt===null){var t=q.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var e=St===null?q.memoizedState:St.next;if(e!==null)St=e,tt=t;else{if(t===null)throw q.alternate===null?Error(p(467)):Error(p(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},St===null?q.memoizedState=St=t:St=St.next=t}return St}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Su(t){var e=uu;return uu+=1,Wn===null&&(Wn=[]),t=wy(Wn,t,e),e=q,(St===null?e.memoizedState:St.next)===null&&(e=e.alternate,C.H=e===null||e.memoizedState===null?Nm:Om),t}function nc(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Su(t);if(t.$$typeof===ig)return;if(t.$$typeof===Ge)return Ut(t)}throw Error(p(438,String(t)))}function kf(t){var e=null,l=q.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=q.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=lc(),q.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=ug;return e.index++,l}function il(t,e){return typeof e=="function"?e(t):e}function ii(t){var e=gt();return $f(e,tt,t)}function $f(t,e,l){var n=t.queue;if(n===null)throw Error(p(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var i=a.next;a.next=u.next,u.next=i}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var c=i=null,o=null,f=e,m=!1;do{var g=f.lane&-536870913;if(g!==f.lane?(V&g)===g:(ul&g)===g){var r=f.revertLane;if(r===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),g===sn&&(m=!0);else if((ul&r)===r){f=f.next,r===sn&&(m=!0);continue}else g={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},o===null?(c=o=g,i=u):o=o.next=g,q.lanes|=r,Xl|=r;g=f.action,mn&&l(u,g),u=f.hasEagerState?f.eagerState:l(u,g)}else r={lane:g,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},o===null?(c=o=r,i=u):o=o.next=r,q.lanes|=g,Xl|=g;f=f.next}while(f!==null&&f!==e);if(o===null?i=u:o.next=c,!se(u,t.memoizedState)&&(Tt=!0,m&&(l=kn,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=o,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function kc(t){var e=gt(),l=e.queue;if(l===null)throw Error(p(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var i=a=a.next;do u=t(u,i.action),i=i.next;while(i!==a);se(u,e.memoizedState)||(Tt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function $y(t,e,l){var n=q,a=gt(),u=G;if(u){if(l===void 0)throw Error(p(407));l=l()}else l=e();var i=!se((tt||a).memoizedState,l);if(i&&(a.memoizedState=l,Tt=!0),a=a.queue,Ff(Iy.bind(null,n,a,t),[t]),t=a.getSnapshot!==e||i||St!==null&&(St.memoizedState.tag&1)!==0,aa(t?9:8,{destroy:void 0},Wy.bind(null,n,a,l,e),null),t){if(n.flags|=2048,lt===null)throw Error(p(349));u||(ul&127)!==0||Fy(n,e,l)}return l}function Fy(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=q.updateQueue,e===null?(e=lc(),q.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Wy(t,e,l,n){e.value=l,e.getSnapshot=n,Py(e)&&tm(t)}function Iy(t,e,l){return l(function(){Py(e)&&tm(t)})}function Py(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!se(t,l)}catch{return!0}}function tm(t){var e=Sn(t,2);e!==null&&Pt(e,t,2)}function Lo(t){var e=Jt();if(typeof t=="function"){var l=t;if(t=l(),mn){Nl(!0);try{l()}finally{Nl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:t},e}function em(t,e,l,n){return t.baseState=l,$f(t,tt,typeof n=="function"?n:il)}function Ah(t,e,l,n,a){if(uc(t))throw Error(p(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};C.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,lm(e,u)):(u.next=l.next,e.pending=l.next=u)}}function lm(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=C.T,i={};i.types=u!==null?u.types:null,C.T=i;try{var c=l(a,n),o=C.S;o!==null&&o(i,c),Xr(t,e,c)}catch(f){Yo(t,e,f)}finally{u!==null&&i.types!==null&&(u.types=i.types),C.T=u}}else try{u=l(a,n),Xr(t,e,u)}catch(f){Yo(t,e,f)}}function Xr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Vr(t,e,n)},function(n){return Yo(t,e,n)}):Vr(t,e,l)}function Vr(t,e,l){e.status="fulfilled",e.value=l,nm(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,lm(t,l)))}function Yo(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,nm(e),e=e.next;while(e!==n)}t.action=null}function nm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function am(t,e){return e}function Zr(t,e){if(G){var l=lt.formState;if(l!==null){t:{var n=q;if(G){if(ct){e:{for(var a=ct,u=Te;a.nodeType!==8;){if(!u){a=null;break e}if(a=Ne(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){ct=Ne(a.nextSibling),n=a.data==="F!";break t}}jl(n)}n=!1}n&&(e=l[0])}}return l=Jt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:am,lastRenderedState:e},l.queue=n,l=Sm.bind(null,q,n),n.dispatch=l,n=Lo(!1),u=td.bind(null,q,!1,n.queue),n=Jt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Ah.bind(null,q,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Kr(t){var e=gt();return um(e,tt,t)}function um(t,e,l){if(e=$f(t,e,am)[0],t=ii(il)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Su(e)}catch(i){throw i===ga?ec:i}else n=e;e=gt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(q.flags|=2048,aa(9,{destroy:void 0},Dh.bind(null,a,l),null)),[n,u,t]}function Dh(t,e){t.action=e}function Jr(t){var e=gt(),l=tt;if(l!==null)return um(e,l,t);gt(),e=e.memoizedState,l=gt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function aa(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=q.updateQueue,e===null&&(e=lc(),q.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function im(){return gt().memoizedState}function ci(t,e,l,n){var a=Jt();q.flags|=t,a.memoizedState=aa(1|e,{destroy:void 0},l,n===void 0?null:n)}function ac(t,e,l,n){var a=gt();n=n===void 0?null:n;var u=a.memoizedState.inst;tt!==null&&n!==null&&Xf(n,tt.memoizedState.deps)?a.memoizedState=aa(e,u,l,n):(q.flags|=t,a.memoizedState=aa(1|e,u,l,n))}function kr(t,e){ci(8390656,8,t,e)}function Ff(t,e){ac(2048,8,t,e)}function xh(t){q.flags|=4;var e=q.updateQueue;if(e===null)e=lc(),q.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function cm(t){var e=gt().memoizedState;return xh({ref:e,nextImpl:t}),function(){if((J&2)!==0)throw Error(p(440));return e.impl.apply(void 0,arguments)}}function om(t,e){return ac(4,2,t,e)}function fm(t,e){return ac(4,4,t,e)}function dm(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function rm(t,e,l){l=l!=null?l.concat([t]):null,ac(4,4,dm.bind(null,e,t),l)}function Wf(){}function sm(t,e){var l=gt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Xf(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function ym(t,e){var l=gt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Xf(e,n[1]))return n[0];if(n=t(),mn){Nl(!0);try{t()}finally{Nl(!1)}}return l.memoizedState=[n,e],n}function If(t,e,l){return l===void 0||(ul&1073741824)!==0&&(V&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=uv(),q.lanes|=t,Xl|=t,l)}function mm(t,e,l,n){return se(l,e)?l:wl.current!==null?(t=If(t,l,n),se(t,e)||(Tt=!0),t):(ul&106)===0||(ul&1073741824)!==0&&(V&261930)===0?(Tt=!0,t.memoizedState=l):(t=uv(),q.lanes|=t,Xl|=t,e)}function vm(t,e,l,n,a){var u=k.p;k.p=u!==0&&8>u?u:8;var i=C.T,c={};c.types=i!==null?i.types:null,C.T=c,td(t,!1,e,l);try{var o=a(),f=C.S;if(f!==null&&f(c,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var m=Nh(o,n);Za(t,e,m,re(t))}else Za(t,e,n,re(t))}catch(g){Za(t,e,{then:function(){},status:"rejected",reason:g},re())}finally{k.p=u,i!==null&&c.types!==null&&(i.types=c.types),C.T=i}}function _h(){}function Go(t,e,l,n){if(t.tag!==5)throw Error(p(476));var a=gm(t).queue;vm(t,a,e,nn,l===null?_h:function(){return hm(t),l(n)})}function gm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nn,baseState:nn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:nn},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function hm(t){var e=gm(t);e.next===null&&(e=t.alternate.memoizedState),Za(t,e.next.queue,{},re())}function Pf(){return Ut(ra)}function pm(){return gt().memoizedState}function bm(){return gt().memoizedState}function Rh(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=re();t=Cl(l);var n=Ml(e,t,l);n!==null&&(Pt(n,e,l),Qa(n,e,l)),e={cache:Lf()},t.payload=e;return}e=e.return}}function Ch(t,e,l){var n=re();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},uc(t)?Em(e,l):(l=Hf(t,e,l,n),l!==null&&(Pt(l,t,n),Tm(l,e,n)))}function Sm(t,e,l){var n=re();Za(t,e,l,n)}function Za(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(uc(t))Em(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,c=u(i,l);if(a.hasEagerState=!0,a.eagerState=c,se(c,i))return Pi(t,e,a,0),lt===null&&Ii(),!1}catch{}if(l=Hf(t,e,a,n),l!==null)return Pt(l,t,n),Tm(l,e,n),!0}return!1}function td(t,e,l,n){if(n={lane:2,revertLane:rd(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(t)){if(e)throw Error(p(479))}else e=Hf(t,l,n,2),e!==null&&Pt(e,t,2)}function uc(t){var e=t.alternate;return t===q||e!==null&&e===q}function Em(t,e){Fn=Ci=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Tm(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,iy(t,l)}}var Ui={readContext:Ut,use:nc,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt,useEffectEvent:mt},Nm={readContext:Ut,use:nc,useCallback:function(t,e){return Jt().memoizedState=[t,e===void 0?null:e],t},useContext:Ut,useEffect:kr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,ci(4194308,4,dm.bind(null,e,t),l)},useLayoutEffect:function(t,e){return ci(4194308,4,t,e)},useInsertionEffect:function(t,e){ci(4,2,t,e)},useMemo:function(t,e){var l=Jt();e=e===void 0?null:e;var n=t();if(mn){Nl(!0);try{t()}finally{Nl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Jt();if(l!==void 0){var a=l(e);if(mn){Nl(!0);try{l(e)}finally{Nl(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Ch.bind(null,q,t),[n.memoizedState,t]},useRef:function(t){var e=Jt();return t={current:t},e.memoizedState=t},useState:function(t){t=Lo(t);var e=t.queue,l=Sm.bind(null,q,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Wf,useDeferredValue:function(t,e){var l=Jt();return If(l,t,e)},useTransition:function(){var t=Lo(!1);return t=vm.bind(null,q,t.queue,!0,!1),Jt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=q,a=Jt();if(G){if(l===void 0)throw Error(p(407));l=l()}else{if(l=e(),lt===null)throw Error(p(349));(V&127)!==0||Fy(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,kr(Iy.bind(null,n,u,t),[t]),n.flags|=2048,aa(9,{destroy:void 0},Wy.bind(null,n,u,l,e),null),l},useId:function(){var t=Jt(),e=lt.identifierPrefix;if(G){var l=Qe,n=we;l=(n&~(1<<32-de(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Mi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Oh++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Pf,useFormState:Zr,useActionState:Zr,useOptimistic:function(t){var e=Jt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=td.bind(null,q,!0,l),l.dispatch=e,[t,e]},useMemoCache:kf,useCacheRefresh:function(){return Jt().memoizedState=Rh.bind(null,q)},useEffectEvent:function(t){var e=Jt(),l={impl:t};return e.memoizedState=l,function(){if((J&2)!==0)throw Error(p(440));return l.impl.apply(void 0,arguments)}}},Om={readContext:Ut,use:nc,useCallback:sm,useContext:Ut,useEffect:Ff,useImperativeHandle:rm,useInsertionEffect:om,useLayoutEffect:fm,useMemo:ym,useReducer:ii,useRef:im,useState:function(){return ii(il)},useDebugValue:Wf,useDeferredValue:function(t,e){var l=gt();return mm(l,tt.memoizedState,t,e)},useTransition:function(){var t=ii(il)[0],e=gt().memoizedState;return[typeof t=="boolean"?t:Su(t),e]},useSyncExternalStore:$y,useId:pm,useHostTransitionStatus:Pf,useFormState:Kr,useActionState:Kr,useOptimistic:function(t,e){var l=gt();return em(l,tt,t,e)},useMemoCache:kf,useCacheRefresh:bm,useEffectEvent:cm},Mh={readContext:Ut,use:nc,useCallback:sm,useContext:Ut,useEffect:Ff,useImperativeHandle:rm,useInsertionEffect:om,useLayoutEffect:fm,useMemo:ym,useReducer:kc,useRef:im,useState:function(){return kc(il)},useDebugValue:Wf,useDeferredValue:function(t,e){var l=gt();return tt===null?If(l,t,e):mm(l,tt.memoizedState,t,e)},useTransition:function(){var t=kc(il)[0],e=gt().memoizedState;return[typeof t=="boolean"?t:Su(t),e]},useSyncExternalStore:$y,useId:pm,useHostTransitionStatus:Pf,useFormState:Jr,useActionState:Jr,useOptimistic:function(t,e){var l=gt();return tt!==null?em(l,tt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:kf,useCacheRefresh:bm,useEffectEvent:cm};function $c(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:nt({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var jo={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=re(),a=Cl(n);a.payload=e,l!=null&&(a.callback=l),e=Ml(t,a,n),e!==null&&(Pt(e,t,n),Qa(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=re(),a=Cl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=Ml(t,a,n),e!==null&&(Pt(e,t,n),Qa(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=re(),n=Cl(l);n.tag=2,e!=null&&(n.callback=e),e=Ml(t,n,l),e!==null&&(Pt(e,t,l),Qa(e,t,l))}};function $r(t,e,l,n,a,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,i):e.prototype&&e.prototype.isPureReactComponent?!tu(l,n)||!tu(a,u):!0}function Fr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&jo.enqueueReplaceState(e,e.state,null)}function vn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=nt({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function zm(t){Ni(t)}function Am(t){console.error(t)}function Dm(t){Ni(t)}function Hi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Wr(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function wo(t,e,l){return l=Cl(l),l.tag=3,l.payload={element:null},l.callback=function(){Hi(t,e)},l}function xm(t){return t=Cl(t),t.tag=3,t}function _m(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){Wr(e,l,n)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Wr(e,l,n),typeof a!="function"&&(ql===null?ql=new Set([this]):ql.add(this));var c=n.stack;this.componentDidCatch(n.value,{componentStack:c!==null?c:""})})}function Uh(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&dn(e,l,a,!0),l=Lt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Xt===null?Qi():l.alternate===null&&vt===0&&(vt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===xi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),lo(t,n,a)),!1;case 22:return l.flags|=65536,n===xi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),lo(t,n,a)),!1}throw Error(p(435,l.tag))}return lo(t,n,a),Qi(),!1}if(G)return e=Lt.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==_o&&(t=Error(p(422),{cause:n}),lu(Ee(t,l)))):(n!==_o&&(e=Error(p(423),{cause:n}),lu(Ee(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Ee(n,l),a=wo(t.stateNode,n,a),Jc(t,a),vt!==4&&(vt=2)),!1;var u=Error(p(520),{cause:n});if(u=Ee(u,l),$a===null?$a=[u]:$a.push(u),vt!==4&&(vt=2),e===null)return!0;n=Ee(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=wo(l.stateNode,n,t),Jc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ql===null||!ql.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=xm(a),_m(a,t,l,n),Jc(l,a),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var ed=Error(p(461)),Tt=!1;function Nt(t,e,l,n){e.child=t===null?Xy(e,null,l,n):yn(e,t.child,l,n)}function Ir(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var i={};for(var c in n)c!=="ref"&&(i[c]=n[c])}else i=n;return rn(e),n=Vf(t,e,l,i,u,a),c=Zf(),t!==null&&!Tt?(Kf(t,e,a),cl(t,e,a)):(G&&c&&tc(e),e.flags|=1,Nt(t,e,n,a),e.child)}function Pr(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!qf(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Rm(t,e,u,n,a)):(t=ni(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!nd(t,a)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:tu,l(i,n)&&t.ref===e.ref)return cl(t,e,a)}return e.flags|=1,t=el(u,n),t.ref=e.ref,t.return=e,e.child=t}function Rm(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(tu(u,n)&&t.ref===e.ref)if(Tt=!1,e.pendingProps=n=u,nd(t,a))(t.flags&131072)!==0&&(Tt=!0);else return e.lanes=t.lanes,cl(t,e,a)}return Qo(t,e,l,n,a)}function Cm(t,e,l,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,e.child=null;return ts(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ui(e,u!==null?u.cachePool:null),u!==null?Qr(e,u):qo(),Ky(e);else return n=e.lanes=536870912,ts(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(ui(e,u.cachePool),Qr(e,u),Hl(),e.memoizedState=null):(t!==null&&ui(e,null),qo(),Hl());return Nt(t,e,a,l),e.child}function Ka(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ts(t,e,l,n,a){var u=Yf();return u=u===null?null:{parent:Et._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&ui(e,null),qo(),Ky(e),t!==null&&dn(t,e,n,!0),e.childLanes=a,null}function oi(t,e){return e=ic({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function es(t,e,l){return yn(e,t.child,null,l),t=oi(e,e.pendingProps),t.flags|=2,ue(e),e.memoizedState=null,t}function Hh(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(G){if(n.mode==="hidden")return t=oi(e,n),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Ka(null,t);if(Bo(e),(t=ct)?(t=Cv(t,Te),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gl!==null?{id:we,overflow:Qe}:null,retryLane:536870912,hydrationErrors:null},l=By(t),l.return=e,e.child=l,Rt=e,ct=null)):t=null,t===null)throw jl(e);return e.lanes=536870912,null}return oi(e,n)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Bo(e),a)if(e.flags&256)e.flags&=-257,e=es(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(p(558));else if(Tt||dn(t,e,l,!1),a=(l&t.childLanes)!==0,Tt||a){if(wl.current===null){if(n=lt,n!==null&&(i=cy(n,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Sn(t,i),Pt(n,t,i),ed;Qi()}e=es(t,e,l)}else t=u.treeContext,ct=Ne(i.nextSibling),Rt=e,G=!0,Rl=null,Te=!1,t!==null&&Yy(e,t),e=oi(e,n),e.flags|=134221824;return e}return t=el(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Rn(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(p(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Qo(t,e,l,n,a){return rn(e),l=Vf(t,e,l,n,void 0,a),n=Zf(),t!==null&&!Tt?(Kf(t,e,a),cl(t,e,a)):(G&&n&&tc(e),e.flags|=1,Nt(t,e,l,a),e.child)}function ls(t,e,l,n,a,u){return rn(e),e.updateQueue=null,l=ky(e,n,l,a),Jy(t),n=Zf(),t!==null&&!Tt?(Kf(t,e,u),cl(t,e,u)):(G&&n&&tc(e),e.flags|=1,Nt(t,e,l,u),e.child)}function ns(t,e,l,n,a){if(rn(e),e.stateNode===null){var u=wn,i=l.contextType;typeof i=="object"&&i!==null&&(u=Ut(i)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=jo,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},jf(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?Ut(i):wn,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&($c(e,l,i,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&jo.enqueueReplaceState(u,u.state,null),Va(e,n,u,a),Xa(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var c=e.memoizedProps,o=vn(l,c);u.props=o;var f=u.context,m=l.contextType;i=wn,typeof m=="object"&&m!==null&&(i=Ut(m));var g=l.getDerivedStateFromProps;m=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=e.pendingProps!==c,m||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||f!==i)&&Fr(e,u,n,i),El=!1;var r=e.memoizedState;u.state=r,Va(e,n,u,a),Xa(),f=e.memoizedState,c||r!==f||El?(typeof g=="function"&&($c(e,l,g,n),f=e.memoizedState),(o=El||$r(e,l,o,n,r,f,i))?(m||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=f),u.props=n,u.state=f,u.context=i,n=o):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,Uo(t,e),i=e.memoizedProps,m=vn(l,i),u.props=m,g=e.pendingProps,r=u.context,f=l.contextType,o=wn,typeof f=="object"&&f!==null&&(o=Ut(f)),c=l.getDerivedStateFromProps,(f=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==g||r!==o)&&Fr(e,u,n,o),El=!1,r=e.memoizedState,u.state=r,Va(e,n,u,a),Xa();var s=e.memoizedState;i!==g||r!==s||El||t!==null&&t.dependencies!==null&&Di(t.dependencies)?(typeof c=="function"&&($c(e,l,c,n),s=e.memoizedState),(m=El||$r(e,l,m,n,r,s,o)||t!==null&&t.dependencies!==null&&Di(t.dependencies))?(f||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,s,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,s,o)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&r===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&r===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=s),u.props=n,u.state=s,u.context=o,n=m):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&r===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&r===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Rn(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=yn(e,t.child,null,a),e.child=yn(e,null,l,a)):Nt(t,e,l,a),e.memoizedState=u.state,t=e.child):t=cl(t,e,a),t}function as(t,e,l,n){return fn(),e.flags|=256,Nt(t,e,l,n),e.child}var Xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vo(t){return{baseLanes:t,cachePool:jy()}}function Zo(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ce),t}function Mm(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),i&&(a=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(G){if(a?Ul(e):Hl(),(t=ct)?(t=Cv(t,Te),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gl!==null?{id:we,overflow:Qe}:null,retryLane:536870912,hydrationErrors:null},l=By(t),l.return=e,e.child=l,Rt=e,ct=null)):t=null,t===null)throw jl(e);return vd(t)?e.lanes=32:e.lanes=536870912,null}return u=n.children,n=n.fallback,a?(Hl(),a=e.mode,u=ic({mode:"hidden",children:u},a),n=an(n,a,l,null),u.return=e,n.return=e,u.sibling=n,e.child=u,n=e.child,n.memoizedState=Vo(l),n.childLanes=Zo(t,i,l),e.memoizedState=Xo,Ka(null,n)):(Ul(e),ld(e,u))}var c=t.memoizedState;if(c!==null){var o=c.dehydrated;if(o!==null)return qh(t,e,u,i,n,o,c,l)}return a?(Hl(),a=n.fallback,u=e.mode,c=t.child,o=c.sibling,n=el(c,{mode:"hidden",children:n.children}),n.subtreeFlags=c.subtreeFlags&1206910976,o!==null?a=el(o,a):(a=an(a,u,l,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,Ka(null,n),n=e.child,a=t.child.memoizedState,a===null?a=Vo(l):(u=a.cachePool,u!==null?(c=Et._currentValue,u=u.parent!==c?{parent:c,pool:c}:u):u=jy(),a={baseLanes:a.baseLanes|l,cachePool:u}),n.memoizedState=a,n.childLanes=Zo(t,i,l),e.memoizedState=Xo,Ka(t.child,n)):(Ul(e),l=t.child,t=l.sibling,l=el(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function ld(t,e){return e=ic({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ic(t,e){return t=It(22,t,null,e),t.lanes=0,t}function Xu(t,e,l){return yn(e,t.child,null,l),t=ld(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function qh(t,e,l,n,a,u,i,c){if(l)return e.flags&256?(Ul(e),e.flags&=-257,Xu(t,e,c)):e.memoizedState!==null?(Hl(),e.child=t.child,e.flags|=128,null):(Hl(),u=a.fallback,i=e.mode,a=ic({mode:"visible",children:a.children},i),u=an(u,i,c,null),u.flags|=2,a.return=e,u.return=e,a.sibling=u,e.child=a,yn(e,t.child,null,c),a=e.child,a.memoizedState=Vo(c),a.childLanes=Zo(t,n,c),e.memoizedState=Xo,Ka(null,a));if(Ul(e),vd(u)){if(n=u.nextSibling&&u.nextSibling.dataset,n)var o=n.dgst;return n=o,n!==""&&(a=Error(p(419)),a.stack="",a.digest=n,lu({value:a,source:null,stack:null})),Xu(t,e,c)}if(Tt||dn(t,e,c,!1),n=(c&t.childLanes)!==0,Tt||n){if(wl.current!==null)return Xu(t,e,c);if(n=lt,n!==null&&(a=cy(n,c),a!==0&&a!==i.retryLane))throw i.retryLane=a,Sn(t,a),Pt(n,t,a),ed;return hf(u)||Qi(),Xu(t,e,c)}return hf(u)?(e.flags|=192,e.child=t.child,null):(t=i.treeContext,ct=Ne(u.nextSibling),Rt=e,G=!0,Rl=null,Te=!1,t!==null&&Yy(e,t),e=ld(e,a.children),e.flags|=134221824,e)}function us(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ai(t.return,e,l)}function is(t){for(var e=null;t!==null;){var l=t.alternate;l!==null&&Ri(l)===null&&(e=t),t=t.sibling}return e}function Vu(t,e,l,n,a,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=l,i.tailMode=a,i.treeForkCount=u)}function Fc(t){var e=t.child;for(t.child=null;e!==null;){var l=e.sibling;e.sibling=t.child,t.child=e,e=l}}function Ko(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var i=qt.current;if(e.flags&128)return au(e,i),null;var c=(i&2)!==0;if(c?(i=i&1|2,e.flags|=128):i&=1,au(e,i),a==="backwards"&&t!==null?(Fc(t),Nt(t,e,n,l),Fc(t)):Nt(t,e,n,l),n=G?eu:0,!c&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&us(t,l,e);else if(t.tag===19)us(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"backwards":l=is(e.child),l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null,Fc(e)),Vu(e,!0,a,null,u,n);break;case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ri(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Vu(e,!0,l,null,u,n);break;case"together":Vu(e,!1,null,null,void 0,n);break;case"independent":e.memoizedState=null;break;default:l=is(e.child),l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Vu(e,!1,a,l,u,n)}return e.child}function cs(t,e,l){var n=e.pendingProps;return zl(e,e.type,n.value),Nt(t,e,n.children,l),e.child}function cl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Xl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(dn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(p(153));if(e.child!==null){for(t=e.child,l=el(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=el(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function nd(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Di(t)))}function Bh(t,e,l){switch(e.tag){case 3:bi(e,e.stateNode.containerInfo),zl(e,Et,t.memoizedState.cache),fn();break;case 27:case 5:bo(e);break;case 4:bi(e,e.stateNode.containerInfo);break;case 10:zl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Bo(e),null;break;case 13:var n=e.memoizedState;if(n!==null){if(n.dehydrated!==null)return Ul(e),e.flags|=128,null;n=dn(t,e,l,!1);var a=e.child.childLanes;return n||(l&a)!==0?Mm(t,e,l):(Ul(e),t=cl(t,e,l),t!==null?t.sibling:null)}Ul(e);break;case 19:if(e.flags&128)return Ko(t,e,l);if(a=(t.flags&128)!==0,n=(l&e.childLanes)!==0,n||(dn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return Ko(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),au(e,qt.current),n)break;return null;case 22:return e.lanes=0,Cm(t,e,l,e.pendingProps);case 24:zl(e,Et,t.memoizedState.cache)}return cl(t,e,l)}function Um(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Tt=!0;else{if(!nd(t,l)&&(e.flags&128)===0)return Tt=!1,Bh(t,e,l);Tt=(t.flags&131072)!==0}else Tt=!1,G&&(e.flags&1048576)!==0&&Ly(e,eu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Pl(e.elementType),e.type=t,typeof t=="function")qf(t)?(n=vn(t,n),e.tag=1,e=ns(null,e,t,n,l)):(e.tag=0,e=Qo(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===Tf){e.tag=11,e=Ir(null,e,t,n,l);break t}else if(a===Nf){e.tag=14,e=Pr(null,e,t,n,l);break t}else if(a===Ge){e.tag=10,e.type=t,e=cs(null,e,l);break t}}throw e=ho(t)||t,Error(p(306,e,""))}}return e;case 0:return Qo(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=vn(n,e.pendingProps),ns(t,e,n,a,l);case 3:t:{if(bi(e,e.stateNode.containerInfo),t===null)throw Error(p(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,Uo(t,e),Va(e,n,null,l);var i=e.memoizedState;if(n=i.cache,zl(e,Et,n),n!==u.cache&&Co(e,[Et],l,!0),Xa(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=as(t,e,n,l);break t}else if(n!==a){a=Ee(Error(p(424)),e),lu(a),e=as(t,e,n,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ct=Ne(t.firstChild),Rt=e,G=!0,Rl=null,Te=!0,l=Xy(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling;else{if(fn(),n===a){e=cl(t,e,l);break t}Nt(t,e,n,l)}e=e.child}return e;case 26:return Rn(t,e),t===null?(l=Hs(e.type,null,e.pendingProps,null))?e.memoizedState=l:G||(e.stateNode=Tv(e.type,e.pendingProps,_l.current,e)):e.memoizedState=Hs(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return bo(e),t===null&&G&&(n=e.stateNode=Mv(e.type,e.pendingProps,_l.current),Rt=e,Te=!0,a=ct,Zl(e.type)?(pf=a,ct=Ne(n.firstChild)):ct=a),Nt(t,e,e.pendingProps.children,l),Rn(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&G&&((a=n=ct)&&(n=x1(n,e.type,e.pendingProps,Te),n!==null?(e.stateNode=n,Rt=e,ct=Ne(n.firstChild),Te=!1,a=!0):a=!1),a||jl(e)),bo(e),a=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,n=u.children,mf(a,u)?n=null:i!==null&&mf(a,i)&&(e.flags|=32),e.memoizedState!==null&&(a=Vf(t,e,zh,null,null,l),ra._currentValue=a),Rn(t,e),Nt(t,e,n,l),e.child;case 6:return t===null&&G&&((t=l=ct)&&(l=_1(l,e.pendingProps,Te),l!==null?(e.stateNode=l,Rt=e,ct=null,t=!0):t=!1),t||jl(e)),null;case 13:return Mm(t,e,l);case 4:return bi(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=yn(e,null,n,l):Nt(t,e,n,l),e.child;case 11:return Ir(t,e,e.type,e.pendingProps,l);case 7:return n=e.pendingProps,Rn(t,e),Nt(t,e,n,l),e.child;case 8:return Nt(t,e,e.pendingProps.children,l),e.child;case 12:return Nt(t,e,e.pendingProps.children,l),e.child;case 10:return cs(t,e,l);case 9:return a=e.type._context,n=e.pendingProps.children,rn(e),a=Ut(a),n=n(a),e.flags|=1,Nt(t,e,n,l),e.child;case 14:return Pr(t,e,e.type,e.pendingProps,l);case 15:return Rm(t,e,e.type,e.pendingProps,l);case 19:return Ko(t,e,l);case 31:return Hh(t,e,l);case 22:return Cm(t,e,l,e.pendingProps);case 24:return rn(e),n=Ut(Et),t===null?(a=Yf(),a===null&&(a=lt,u=Lf(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},jf(e),zl(e,Et,a)):((t.lanes&l)!==0&&(Uo(t,e),Va(e,null,null,l),Xa()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),zl(e,Et,n)):(n=u.cache,zl(e,Et,n),n!==a.cache&&Co(e,[Et],l,!0))),Nt(t,e,e.pendingProps.children,l),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=e.pendingProps,n.name!=null&&n.name!=="auto"?e.flags|=t===null?18882560:18874368:G&&tc(e),t!==null&&t.memoizedProps.name!==n.name?e.flags|=4194816:Rn(t,e),Nt(t,e,n.children,l),e.child;case 29:throw e.pendingProps}throw Error(p(156,e.tag))}function Ie(t){t.flags|=4}function Wc(t,e,l,n,a){var u;if((u=(t.mode&32)!==0)&&(u=l===null?Ls(e,n):Ls(e,n)&&(n.src!==l.src||n.srcSet!==l.srcSet)),u){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(ov())t.flags|=8192;else throw cn=xi,Gf}else t.flags&=-16777217}function os(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bv(e))if(ov())t.flags|=8192;else throw cn=xi,Gf}function Zu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ay():536870912,t.lanes|=e,ua|=e)}function _a(t,e){if(!G)switch(t.tailMode){case"visible":break;case"collapsed":for(var l=t.tail,n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null;break;default:for(e=t.tail,l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null}}function it(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&1206910976,n|=a.flags&1206910976,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Lh(t,e,l){var n=e.pendingProps;switch(Bf(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(e),null;case 1:return it(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ll(Et),ea(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(xn(e)?Ie(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Kc())),it(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(Ie(e),u!==null?(it(e),os(e,u)):(it(e),Wc(e,a,null,n,l))):u?u!==t.memoizedState?(Ie(e),it(e),os(e,u)):(it(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Ie(e),it(e),Wc(e,a,t,n,l)),null;case 27:if(Si(e),l=_l.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(p(166));return it(e),e.subtreeFlags&=-33554433,null}t=Xe.current,xn(e)?qr(e,t):(t=Mv(a,n,l),e.stateNode=t,Ie(e))}return it(e),e.subtreeFlags&=-33554433,null;case 5:if(Si(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(p(166));return it(e),e.subtreeFlags&=-33554433,null}if(u=Xe.current,xn(e))qr(e,u);else{var i=ou(_l.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?i.createElement(a,{is:n.is}):i.createElement(a)}}u[Mt]=e,u[ee]=n;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(Bt(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Ie(e)}}return it(e),e.subtreeFlags&=-33554433,Wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(p(166));if(t=_l.current,xn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Rt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Mt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Sv(t.nodeValue,l)),t||jl(e,!0)}else t=ou(t).createTextNode(n),t[Mt]=e,e.stateNode=t}return it(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=xn(e),l!==null){if(t===null){if(!n)throw Error(p(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(p(557));t[Mt]=e}else fn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;it(e),t=!1}else l=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ue(e),e):(ue(e),null);if((e.flags&128)!==0)throw Error(p(558))}return it(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=xn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(p(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(p(317));a[Mt]=e}else fn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;it(e),a=!1}else a=Kc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ue(e),e):(ue(e),null)}return ue(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Zu(e,e.updateQueue),it(e),null);case 4:return ea(),t===null&&sd(e.stateNode.containerInfo),e.flags|=67108864,it(e),null;case 10:return ll(e.type),it(e),null;case 19:if(Qf(e),n=e.memoizedState,n===null)return it(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)_a(n,!1);else{if(vt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ri(t),u!==null){for(e.flags|=128,_a(n,!1),t=u.updateQueue,e.updateQueue=t,Zu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)qy(l,t),l=l.sibling;return au(e,qt.current&1|2),G&&Pe(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&oe()>ji&&(e.flags|=128,a=!0,_a(n,!1),e.lanes=4194304)}else{if(!a)if(t=Ri(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Zu(e,t),_a(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!u.alternate&&!G)return it(e),null}else 2*oe()-n.renderingStartTime>ji&&l!==536870912&&(e.flags|=128,a=!0,_a(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}if(n.tail!==null){t=n.tail;t:{for(l=t;l!==null;){if(l.alternate!==null){l=!1;break t}l=l.sibling}l=!0}return n.rendering=t,n.tail=t.sibling,n.renderingStartTime=oe(),t.sibling=null,u=qt.current,u=a?u&1|2:u&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!l||G?au(e,u):(l=u,ot(Lt,e),ot(qt,l),Xt===null&&(Xt=e)),G&&Pe(e,n.treeForkCount),t}return it(e),null;case 22:case 23:return ue(e),wf(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(it(e),e.subtreeFlags&6&&(e.flags|=8192)):it(e),l=e.updateQueue,l!==null&&Zu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&Ht(un),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ll(Et),it(e),null;case 25:return null;case 30:return e.flags|=33554432,it(e),null}throw Error(p(156,e.tag))}function Yh(t,e){switch(Bf(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ll(Et),ea(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Si(e),null;case 31:if(e.memoizedState!==null){if(ue(e),e.alternate===null)throw Error(p(340));fn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ue(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(p(340));fn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Qf(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return ea(),null;case 10:return ll(e.type),null;case 22:case 23:return ue(e),wf(),t!==null&&Ht(un),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ll(Et),null;case 25:return null;default:return null}}function Hm(t,e){switch(Bf(e),e.tag){case 3:ll(Et),ea();break;case 26:case 27:case 5:Si(e);break;case 4:ea();break;case 31:e.memoizedState!==null&&ue(e);break;case 13:ue(e);break;case 19:Qf(e);break;case 10:ll(e.type);break;case 22:case 23:ue(e),wf(),t!==null&&Ht(un);break;case 24:ll(Et)}}function Eu(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,i=l.inst;n=u(),i.destroy=n}l=l.next}while(l!==a)}}catch(c){P(e,e.return,c)}}function Ql(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var i=n.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=e;var o=l,f=c;try{f()}catch(m){P(a,o,m)}}}n=n.next}while(n!==u)}}catch(m){P(e,e.return,m)}}function qm(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Zy(e,l)}catch(n){P(t,t.return,n)}}}function Bm(t,e,l){l.props=vn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){P(t,e,n)}}function Le(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:var a=t.stateNode,u=al(t.memoizedProps,a);(a.ref===null||a.ref.name!==u)&&(a.ref=Av(u)),n=a.ref;break;case 7:if(t.stateNode===null){var i=new ye(t);te(t.child,!1,A1,i,void 0,void 0),t.stateNode=i}n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(c){P(t,e,c)}}function Ct(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){P(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){P(t,e,a)}else l.current=null}function qi(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var l=0;l<e.length;l++)Rv(t.stateNode,e[l])}function fs(t){for(var e=t.return;e!==null&&(ud(e)&&Rv(t.stateNode,e.stateNode),!ad(e));)e=e.return}function Ja(t){for(var e=t.return;e!==null&&(ud(e)&&D1(t.stateNode,e.stateNode),!ad(e));)e=e.return}function ad(t){return t.tag===5||t.tag===3||t.tag===27}function ud(t){return t&&t.tag===7&&t.stateNode!==null}function Jo(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){P(t,t.return,a)}}function Ic(t,e,l){try{var n=t.stateNode;o1(n,t.type,l,e),n[ee]=e}catch(a){P(t,t.return,a)}}function Lm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Zl(t.type)||t.tag===4}function Pc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Lm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Zl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ko(t,e,l,n){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(a),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=je)),qi(t,n),K=!0;else if(a!==4&&(a===27&&(qi(t,n),n=null,Zl(t.type)&&(l=t.stateNode,e=null)),t=t.child,t!==null))for(ko(t,e,l,n),t=t.sibling;t!==null;)ko(t,e,l,n),t=t.sibling}function Bi(t,e,l,n){var a=t.tag;if(a===5||a===6)a=t.stateNode,e?l.insertBefore(a,e):l.appendChild(a),qi(t,n),K=!0;else if(a!==4&&(a===27&&(qi(t,n),n=null,Zl(t.type)&&(l=t.stateNode)),t=t.child,t!==null))for(Bi(t,e,l,n),t=t.sibling;t!==null;)Bi(t,e,l,n),t=t.sibling}function Ym(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Bt(e,n,l),e[Mt]=t,e[ee]=l}catch(u){P(t,t.return,u)}}var Li=!1,ie=null;function ds(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(Li=!0)}var Ye=null;function rs(){var t=Ye;return Ye=null,t}var Wt=0;function ha(t,e,l,n,a){return Wt=0,Gm(t.child,e,l,n,a)}function Gm(t,e,l,n,a){for(var u=!1;t!==null;){if(t.tag===5){var i=t.stateNode;if(n!==null){var c=vf(i);n.push(c),c.view&&(u=!0)}else u||vf(i).view&&(u=!0);Li=!0,Nv(i,Wt===0?e:e+"_"+Wt,l),Wt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&a||Gm(t.child,e,l,n,a)&&(u=!0));t=t.sibling}return u}function Ze(t,e){for(;t!==null;)t.tag===5?Ov(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||Ze(t.child,e)),t=t.sibling}function fi(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(fi(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(p(544));var l=e.name;e=dl(e.default,e.share),e!=="none"&&(ha(t,l,e,null,!1)||Ze(t.child,!1))}t=t.sibling}}function $o(t,e){if(t.tag===30){var l=t.stateNode,n=t.memoizedProps,a=al(n,l),u=dl(n.default,l.paired?n.share:n.enter);u!=="none"?ha(t,a,u,null,!1)?(fi(t),l.paired||e||ia(t,n.onEnter)):Ze(t.child,!1):fi(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)$o(t,e),t=t.sibling;else fi(t)}function Fo(t){if(ie!==null&&ie.size!==0){var e=ie;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var l=t.memoizedProps,n=l.name;if(n!=null&&n!=="auto"){var a=e.get(n);if(a!==void 0){var u=dl(l.default,l.share);if(u!=="none"&&(ha(t,n,u,null,!1)?(u=t.stateNode,a.paired=u,u.paired=a,ia(t,l.onShare)):Ze(t.child,!1)),e.delete(n),e.size===0)break}}}Fo(t)}t=t.sibling}}}function Wo(t){if(t.tag===30){var e=t.memoizedProps,l=al(e,t.stateNode),n=ie!==null?ie.get(l):void 0,a=dl(e.default,n!==void 0?e.share:e.exit);a!=="none"&&(ha(t,l,a,null,!1)?n!==void 0?(a=t.stateNode,n.paired=a,a.paired=n,ie.delete(l),ia(t,e.onShare)):ia(t,e.onExit):Ze(t.child,!1)),ie!==null&&Fo(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Wo(t),t=t.sibling;else ie!==null&&Fo(t)}function jm(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,l=al(e,t.stateNode);e=dl(e.default,e.update),t.flags&=-5,e!=="none"&&ha(t,l,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&jm(t);t=t.sibling}}function Io(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,Ze(t.child,!1))}Io(t)}t=t.sibling}}function di(t){if(t.tag===30)t.stateNode.paired=null,Ze(t.child,!1),Io(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)di(t),t=t.sibling;else Io(t)}function wm(t){for(t=t.child;t!==null;)t.tag===30?Ze(t.child,!1):(t.subtreeFlags&33554432)!==0&&wm(t),t=t.sibling}function id(t,e,l,n,a,u,i){for(var c=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(u!==null&&Wt<u.length){var f=u[Wt],m=vf(o);(f.view||m.view)&&(c=!0);var g;if(g=(t.flags&4)===0)if(m.clip)g=!0;else{g=f.rect;var r=m.rect;g=g.y!==r.y||g.x!==r.x||g.height!==r.height||g.width!==r.width}g&&(t.flags|=4),m.abs?m=!f.abs:(f=f.rect,m=m.rect,m=f.height!==m.height||f.width!==m.width),m&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&Nv(o,Wt===0?l:l+"_"+Wt,a),c&&(t.flags&4)!==0||(Ye===null&&(Ye=[]),Ye.push(o,Wt===0?n:n+"_"+Wt,e.memoizedProps)),Wt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i?t.flags|=e.flags&32:id(t,e.child,l,n,a,u,i)&&(c=!0));e=e.sibling}return c}function Qm(t,e){for(t=t.child;t!==null;){if(t.tag===30){var l=t.memoizedProps,n=t.stateNode,a=al(l,n),u=dl(l.default,l.update);if(e){n=n.clones;var i=n===null?null:n.map(m1)}else i=t.memoizedState,t.memoizedState=null;n=t;var c=t.child;Wt=0,a=id(n,c,a,a,u,i,!1),(t.flags&4)!==0&&a&&(e||ia(t,l.onUpdate))}else(t.subtreeFlags&33554432)!==0&&Qm(t,e);t=t.sibling}}var Dt=!1,F=!1,He=!1,to=!1,ss=typeof WeakSet=="function"?WeakSet:Set,xt=null,qe=!1,La=!1,Yi=!1,Po=!1;function Gh(t,e,l){if(t=t.containerInfo,sf=sa,t=Dy(t),Mf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break t}var c=0,o=-1,f=-1,m=0,g=0,r=t,s=null;e:for(;;){for(var E;r!==n||u!==0&&r.nodeType!==3||(o=c+u),r!==i||a!==0&&r.nodeType!==3||(f=c+a),r.nodeType===3&&(c+=r.nodeValue.length),(E=r.firstChild)!==null;)s=r,r=E;for(;;){if(r===t)break e;if(s===n&&++m===u&&(o=c),s===i&&++g===a&&(f=c),(E=r.nextSibling)!==null)break;r=s,s=r.parentNode}r=E}n=o===-1||f===-1?null:{start:o,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(yf={focusedElem:t,selectionRange:n},sa=!1,l=(l&335544064)===l,xt=e,e=l?9270:1024;xt!==null;){if(t=xt,l&&(n=t.deletions,n!==null))for(u=0;u<n.length;u++)l&&Wo(n[u]);if(t.alternate===null&&(t.flags&2)!==0)l&&ds(t),Ku(l);else{if(t.tag===22){if(n=t.alternate,t.memoizedState!==null){n!==null&&n.memoizedState===null&&l&&Wo(n),Ku(l);continue}else if(n!==null&&n.memoizedState!==null){l&&ds(t),Ku(l);continue}}n=t.child,(t.subtreeFlags&e)!==0&&n!==null?(n.return=t,xt=n):(l&&jm(t),Ku(l))}}ie=null}function Ku(t){for(;xt!==null;){var e=xt,l=t,n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&n!==null){l=void 0,a=n.memoizedProps,n=n.memoizedState;var u=e.stateNode;try{var i=vn(e.type,a);l=u.getSnapshotBeforeUpdate(i,n),u.__reactInternalSnapshotBeforeUpdate=l}catch(c){P(e,e.return,c)}}break;case 3:if((a&1024)!==0){if(n=e.stateNode.containerInfo,l=n.nodeType,l===9)gf(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":gf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&n!==null&&(l=al(n.memoizedProps,n.stateNode),a=e.memoizedProps,a=dl(a.default,a.update),a!=="none"&&ha(n,l,a,n.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(p(163))}if(n=e.sibling,n!==null){n.return=e.return,xt=n;break}xt=e.return}}function Xm(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Be(t,l),n&4&&Eu(5,l);break;case 1:if(Be(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){P(l,l.return,i)}else{var a=vn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){P(l,l.return,i)}}n&64&&qm(l),n&512&&Le(l,l.return);break;case 3:if(Be(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Zy(t,e)}catch(i){P(l,l.return,i)}}break;case 27:e===null&&n&4&&Ym(l);case 26:case 5:Be(t,l),e===null&&n&4&&Jo(l),n&512&&Le(l,l.return);break;case 12:Be(t,l);break;case 31:Be(t,l),n&4&&Jm(t,l);break;case 13:Be(t,l),n&4&&km(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Wh.bind(null,l),R1(t,l))));break;case 22:if(n=l.memoizedState!==null||Dt,!n){var u=e!==null&&e.memoizedState!==null||F;e=Dt,a=F,Dt=n,(F=u)&&!a?(n=2,(l.subtreeFlags&8772)!==0&&(n|=1),De(t,l,n)):Be(t,l),Dt=e,F=a}break;case 30:Be(t,l),n&512&&Le(l,l.return);break;case 7:n&512&&Le(l,l.return);default:Be(t,l)}}function tf(t,e){for(t=t.child;t!==null;)Vm(t,e),t=t.sibling}function Vm(t,e){switch(t.tag){case 5:case 26:try{var l=t.stateNode;if(e){var n=l.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var a=t.stateNode,u=t.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null;a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(o){P(t,t.return,o)}ef(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,K=!0}catch(o){P(t,t.return,o)}break;case 18:try{var c=t.stateNode;e?xs(c,!0):xs(t.stateNode,!1)}catch(o){P(t,t.return,o)}break;case 22:case 23:t.memoizedState===null&&tf(t,e);break;default:tf(t,e)}}function ef(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var l=t,n=e;switch(l.tag){case 4:Vm(l,n);break t;case 22:l.memoizedState===null&&ef(l,n);break t;default:ef(l,n)}}t=t.sibling}}function Zm(t){var e=t.alternate;e!==null&&(t.alternate=null,Zm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ki(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var rt=null,$t=!1;function Ae(t,e,l){for(l=l.child;l!==null;)Km(t,e,l),l=l.sibling}function Km(t,e,l){if(fe&&typeof fe.onCommitFiberUnmount=="function")try{fe.onCommitFiberUnmount(mu,l)}catch{}switch(l.tag){case 26:F||Ct(l,e),Ae(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!F&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:F||Ct(l,e),Ja(l);var n=rt,a=$t;Zl(l.type)&&(rt=l.stateNode,$t=!1),Ae(t,e,l),Uv(l.stateNode,l.type,l.memoizedProps),rt=n,$t=a;break;case 5:F||Ct(l,e),Ja(l);case 6:if(l.tag===6&&Ja(l),n=rt,a=$t,rt=null,Ae(t,e,l),rt=n,$t=a,rt!==null)if($t)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(l.stateNode),K=!0}catch(u){P(l,e,u)}else try{rt.removeChild(l.stateNode),K=!0}catch(u){P(l,e,u)}break;case 18:rt!==null&&($t?(t=rt,Ds(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ya(t)):Ds(rt,l.stateNode));break;case 4:n=rt,a=$t,rt=l.stateNode.containerInfo,$t=!0,Ae(t,e,l),rt=n,$t=a;break;case 0:case 11:case 14:case 15:Ql(2,l,e),F||Ql(4,l,e),Ae(t,e,l);break;case 1:F||(Ct(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Bm(l,e,n)),Ae(t,e,l);break;case 21:Ae(t,e,l);break;case 22:F=(n=F)||l.memoizedState!==null,Ae(t,e,l),F=n;break;case 30:Ct(l,e),Ae(t,e,l);break;case 7:F||Ct(l,e),Ae(t,e,l);break;default:Ae(t,e,l)}}function Jm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ya(t)}catch(l){P(e,e.return,l)}}}function km(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ya(t)}catch(l){P(e,e.return,l)}}function jh(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ss),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ss),e;default:throw Error(p(435,t.tag))}}function Ju(t,e){var l=jh(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=Ih.bind(null,t,n);n.then(a,a)}})}function Zt(t,e,l){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],i=t,c=e,o=c;t:for(;o!==null;){switch(o.tag){case 27:if(Zl(o.type)){rt=o.stateNode,$t=!1;break t}break;case 5:rt=o.stateNode,$t=!1;break t;case 3:case 4:rt=o.stateNode.containerInfo,$t=!0;break t}o=o.return}if(rt===null)throw Error(p(160));Km(i,c,u),rt=null,$t=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)$m(e,t,l),e=e.sibling}var xe=null;function $m(t,e,l){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(a&4&&(n=t.updateQueue,n=n!==null?n.events:null,n!==null))for(var u=0;u<n.length;u++){var i=n[u];i.ref.impl=i.nextImpl}Zt(e,t,l),Kt(t),a&4&&(Ql(3,t,t.return),Eu(3,t),Ql(5,t,t.return));break;case 1:Zt(e,t,l),Kt(t),a&512&&(F||n===null||Ct(n,n.return)),a&64&&Dt&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?e:l.concat(e))));break;case 26:if(u=xe,Zt(e,t,l),Kt(t),a&512&&(F||n===null||Ct(n,n.return)),a&4)if(a=n!==null?n.memoizedState:null,l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null)if(Dt)t.stateNode=Tv(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,l=t.memoizedProps,a=u.ownerDocument||u;e:switch(e){case"title":n=a.getElementsByTagName("title")[0],(!n||n[hu]||n[Mt]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(e),a.head.insertBefore(n,a.querySelector("head > title"))),Bt(n,e,l),n[Mt]=t,_t(n),e=n;break t;case"link":if(u=Bs("link","href",a).get(e+(l.href||""))){for(i=0;i<u.length;i++)if(n=u[i],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(i,1);break e}}n=a.createElement(e),Bt(n,e,l),a.head.appendChild(n);break;case"meta":if(u=Bs("meta","content",a).get(e+(l.content||""))){for(i=0;i<u.length;i++)if(n=u[i],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(i,1);break e}}n=a.createElement(e),Bt(n,e,l),a.head.appendChild(n);break;default:throw Error(p(468,e))}n[Mt]=t,_t(n),e=n}t.stateNode=e}else Dt||bf(u,t.type,t.stateNode);else t.stateNode=qs(u,l,t.memoizedProps);else a!==l?(a===null?(e=n.stateNode,e===null||F||e.parentNode.removeChild(e)):a.count--,l===null?Dt||bf(u,t.type,t.stateNode):qs(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Ic(t,t.memoizedProps,n.memoizedProps);break;case 27:Zt(e,t,l),Kt(t),a&512&&(F||n===null||Ct(n,n.return)),n!==null&&a&4&&Ic(t,t.memoizedProps,n.memoizedProps);break;case 5:if(u=He,He=!1,Zt(e,t,l),He=u,Kt(t),a&512&&(F||n===null||Ct(n,n.return)),t.flags&32){e=t.stateNode;try{na(e,""),K=!0}catch(m){P(t,t.return,m)}}a&4&&t.stateNode!=null&&(e=t.memoizedProps,Ic(t,e,n!==null?n.memoizedProps:e)),a&1024&&(to=!0);break;case 6:if(Zt(e,t,l),Kt(t),a&4){if(t.stateNode===null)throw Error(p(162));e=t.memoizedProps,l=t.stateNode;try{l.nodeValue=e,K=!0}catch(m){P(t,t.return,m)}}break;case 3:if(K=!1,mi=null,u=xe,xe=fu(e.containerInfo),Zt(e,t,l),xe=u,Kt(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ya(e.containerInfo)}catch(m){P(t,t.return,m)}to&&(to=!1,Fm(t)),K=!1;break;case 4:a=He,He=Dt,n=pr(),u=xe,xe=fu(t.stateNode.containerInfo),Zt(e,t,l),Kt(t),xe=u,K&&La&&(Yi=!0),K=n,He=a;break;case 12:Zt(e,t,l),Kt(t);break;case 31:Zt(e,t,l),Kt(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ju(t,e)));break;case 13:Zt(e,t,l),Kt(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(cc=oe()),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ju(t,e)));break;case 22:u=t.memoizedState!==null,i=n!==null&&n.memoizedState!==null;var c=Dt,o=F,f=He;Dt=c||u,He=f||u,F=o||i,Zt(e,t,l),F=o,He=f,Dt=c,Kt(t),a&8192&&(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,!u||n===null||i||Dt||F||(e=i||F,l=Dt,n=F,Dt=u||Dt,F=e,bl(t,2),Dt=l,F=n),!u&&He||tf(t,u)),a&4&&(e=t.updateQueue,e!==null&&(l=e.retryQueue,l!==null&&(e.retryQueue=null,Ju(t,l))));break;case 19:Zt(e,t,l),Kt(t),a&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,Ju(t,e)));break;case 30:a&512&&(F||n===null||Ct(n,n.return)),a=pr(),u=La,i=(l&335544064)===l,c=t.memoizedProps,La=i&&dl(c.default,c.update)!=="none",Zt(e,t,l),Kt(t),i&&n!==null&&K&&(t.flags|=4),La=u,K=a;break;case 21:break;case 7:a&512&&(F||n===null||Ct(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=t);default:Zt(e,t,l),Kt(t)}}function Kt(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Lm(n)){l=n;break}n=n.return}n=null;for(var a=t.return;a!==null;){if(ud(a)){var u=a.stateNode;n===null?n=[u]:n.push(u)}if(ad(a))break;a=a.return}var i=n;if(l==null)throw Error(p(160));switch(l.tag){case 27:var c=l.stateNode,o=Pc(t);Bi(t,o,c,i);break;case 5:var f=l.stateNode;l.flags&32&&(na(f,""),l.flags&=-33);var m=Pc(t);Bi(t,m,f,i);break;case 3:case 4:var g=l.stateNode.containerInfo,r=Pc(t);ko(t,r,g,i);break;default:throw Error(p(161))}}catch(s){P(t,t.return,s)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fm(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,sa=!0,e.reset(),sa=!1),t=t.sibling}}function _n(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Wm(e,t),e=e.sibling;else Qm(e,!1)}function Wm(t,e){var l=t.alternate;if(l===null)$o(t,!1);else switch(t.tag){case 3:if(Po=qe=!1,rs(),_n(e,t),!qe&&!Yi){if(t=Ye,t!==null)for(var n=0;n<t.length;n+=3){l=t[n];var a=t[n+1];Ov(l,t[n+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Po=!0}Ye=null;break;case 5:_n(e,t);break;case 4:n=qe,qe=!1,_n(e,t),qe&&(Yi=!0),qe=n;break;case 22:t.memoizedState===null&&(l.memoizedState!==null?$o(t,!1):_n(e,t));break;case 30:n=qe,a=rs(),qe=!1,_n(e,t),qe&&(t.flags|=4);var u=t.memoizedProps,i=t.stateNode;e=al(u,i),i=al(l.memoizedProps,i);var c=dl(u.default,u.update);c==="none"?e=!1:(u=l.memoizedState,l.memoizedState=null,l=t.child,Wt=0,e=id(t,l,e,i,c,u,!0),Wt!==(u===null?0:u.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(ia(t,t.memoizedProps.onUpdate),Ye=a):a!==null&&(a.push.apply(a,Ye),Ye=a),qe=(t.flags&32)!==0?!0:n;break;default:_n(e,t)}}function Be(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Xm(t,e.alternate,e),e=e.sibling}function bl(t,e){for(t=t.child;t!==null;){var l=t,n=e;switch(l.tag){case 0:case 11:case 14:case 15:Ql(4,l,l.return),bl(l,n);break;case 1:Ct(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&Bm(l,l.return,a),bl(l,n);break;case 27:(n&2)!==0&&Uv(l.stateNode,l.type,l.memoizedProps);case 5:Ct(l,l.return),l.tag!==5&&l.tag!==27||Ja(l),bl(l,n);break;case 6:Ja(l);break;case 26:Ct(l,l.return),a=l.stateNode,l.memoizedState!==null||a===null||F||a.parentNode.removeChild(a),bl(l,n);break;case 22:l.memoizedState===null&&bl(l,n);break;case 30:Ct(l,l.return),bl(l,n);break;case 7:Ct(l,l.return);default:bl(l,n)}t=t.sibling}}function De(t,e,l){for(l=(e.subtreeFlags&8772)!==0?l:l&-2,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,i=u.flags,c=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:De(a,u,l),Eu(4,u);break;case 1:if(De(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(m){P(n,n.return,m)}if(n=u,a=n.updateQueue,a!==null){var o=n.stateNode;try{var f=a.shared.hiddenCallbacks;if(f!==null)for(a.shared.hiddenCallbacks=null,a=0;a<f.length;a++)Vy(f[a],o)}catch(m){P(n,n.return,m)}}c&&i&64&&qm(u),Le(u,u.return);break;case 27:(l&2)!==0&&Ym(u);case 5:u.tag!==5&&u.tag!==27||fs(u),De(a,u,l),c&&n===null&&i&4&&Jo(u),Le(u,u.return);break;case 6:fs(u);break;case 26:o=u.stateNode,u.memoizedState!==null||o===null||Dt||bf(fu(o.ownerDocument),u.type,o),De(a,u,l),c&&n===null&&i&4&&Jo(u),Le(u,u.return);break;case 12:De(a,u,l);break;case 31:De(a,u,l),c&&i&4&&Jm(a,u);break;case 13:De(a,u,l),c&&i&4&&km(a,u);break;case 22:u.memoizedState===null&&De(a,u,l),Le(u,u.return);break;case 30:De(a,u,l),Le(u,u.return);break;case 7:Le(u,u.return);default:De(a,u,l)}e=e.sibling}}function cd(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&bu(l))}function od(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bu(t))}function ge(t,e,l,n){var a=(l&335544064)===l;if(e.subtreeFlags&(a?10262:10256))for(e=e.child;e!==null;)Im(t,e,l,n),e=e.sibling;else a&&wm(e)}function Im(t,e,l,n){var a=(l&335544064)===l;a&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&di(e);var u=e.flags;switch(e.tag){case 0:case 11:case 15:ge(t,e,l,n),u&2048&&Eu(9,e);break;case 1:ge(t,e,l,n);break;case 3:ge(t,e,l,n),a&&Po&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),u&2048&&(u=null,e.alternate!==null&&(u=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==u&&(e.refCount++,u!=null&&bu(u)));break;case 12:if(u&2048){ge(t,e,l,n),u=e.stateNode;try{var i=e.memoizedProps,c=i.id,o=i.onPostCommit;typeof o=="function"&&o(c,e.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(f){P(e,e.return,f)}}else ge(t,e,l,n);break;case 31:ge(t,e,l,n);break;case 13:ge(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,c=e.alternate,e.memoizedState!==null?(a&&c!==null&&c.memoizedState===null&&di(c),i._visibility&2?ge(t,e,l,n):ka(t,e)):(a&&c!==null&&c.memoizedState!==null&&di(e),i._visibility&2?ge(t,e,l,n):(i._visibility|=2,Cn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1))),u&2048&&cd(c,e);break;case 24:ge(t,e,l,n),u&2048&&od(e.alternate,e);break;case 30:a&&(u=e.alternate,u!==null&&(Ze(u.child,!0),Ze(e.child,!0))),ge(t,e,l,n);break;default:ge(t,e,l,n)}}function Cn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,c=l,o=n,f=i.flags;switch(i.tag){case 0:case 11:case 15:Cn(u,i,c,o,a),Eu(8,i);break;case 23:break;case 22:var m=i.stateNode;i.memoizedState!==null?m._visibility&2?Cn(u,i,c,o,a):ka(u,i):(m._visibility|=2,Cn(u,i,c,o,a)),a&&f&2048&&cd(i.alternate,i);break;case 24:Cn(u,i,c,o,a),a&&f&2048&&od(i.alternate,i);break;default:Cn(u,i,c,o,a)}e=e.sibling}}function ka(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:ka(l,n),a&2048&&cd(n.alternate,n);break;case 24:ka(l,n),a&2048&&od(n.alternate,n);break;default:ka(l,n)}e=e.sibling}}var tn=8192;function Wl(t,e,l){if(t.subtreeFlags&tn)for(t=t.child;t!==null;)Pm(t,e,l),t=t.sibling}function Pm(t,e,l){switch(t.tag){case 26:Wl(t,e,l),t.flags&tn&&(t.memoizedState!==null?V1(l,xe,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Ys(l,t)));break;case 5:Wl(t,e,l),t.flags&tn&&(t=t.stateNode,(e&335544128)===e&&Ys(l,t));break;case 3:case 4:var n=xe;xe=fu(t.stateNode.containerInfo),Wl(t,e,l),xe=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=tn,tn=16777216,Wl(t,e,l),tn=n):Wl(t,e,l));break;case 30:if((t.flags&tn)!==0&&(n=t.memoizedProps.name,n!=null&&n!=="auto")){var a=t.stateNode;a.paired=null,ie===null&&(ie=new Map),ie.set(n,a)}Wl(t,e,l);break;default:Wl(t,e,l)}}function tv(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ra(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];xt=n,lv(n,t)}tv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ev(t),t=t.sibling}function ev(t){switch(t.tag){case 0:case 11:case 15:Ra(t),t.flags&2048&&Ql(9,t,t.return);break;case 3:Ra(t);break;case 12:Ra(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ri(t)):Ra(t);break;default:Ra(t)}}function ri(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];xt=n,lv(n,t)}tv(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ql(8,e,e.return),ri(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,ri(e));break;default:ri(e)}t=t.sibling}}function lv(t,e){for(;xt!==null;){var l=xt;switch(l.tag){case 0:case 11:case 15:Ql(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:bu(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,xt=n;else t:for(l=t;xt!==null;){n=xt;var a=n.sibling,u=n.return;if(Zm(n),n===l){xt=null;break t}if(a!==null){a.return=u,xt=a;break t}xt=u}}}var wh={getCacheForType:function(t){var e=Ut(Et),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Ut(Et).controller.signal}},Qh=typeof WeakMap=="function"?WeakMap:Map,J=0,lt=null,w=null,V=0,W=0,ne=null,Al=!1,pa=!1,fd=!1,ol=0,vt=0,Xl=0,on=0,Gi=0,ce=0,ua=0,$a=null,Ft=null,lf=!1,cc=0,nv=0,ji=1/0,wi=null,ql=null,st=0,Re=null,gn=null,Ve=0,nf=0,af=null,av=null,In=null,Pn=null,ta=null,Fa=0,si=null;function re(){return(J&2)!==0&&V!==0?V&-V:C.T!==null?rd():oy()}function uv(){if(ce===0)if((V&536870912)===0||G){var t=Hu;Hu<<=1,(Hu&3932160)===0&&(Hu=262144),ce=t}else ce=536870912;return t=Lt.current,t!==null&&(t.flags|=32),ce}function ia(t,e){if(e!=null){var l=t.stateNode,n=l.ref;n===null&&(n=l.ref=Av(al(t.memoizedProps,l))),Pn===null&&(Pn=[]),Pn.push(e.bind(null,n))}}function Pt(t,e,l){(t===lt&&(W===2||W===9)||t.cancelPendingCommit!==null)&&(ca(t,0),Dl(t,V,ce,!1)),gu(t,l),((J&2)===0||t!==lt)&&(t===lt&&((J&2)===0&&(on|=l),vt===4&&Dl(t,V,ce,!1)),Je(t))}function iv(t,e,l){if((J&6)!==0)throw Error(p(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||vu(t,e),a=n?Zh(t,e):eo(t,e,!0),u=n;do{if(a===0){pa&&!n&&Dl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Xh(l)){a=eo(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var c=t;a=$a;var o=c.current.memoizedState.isDehydrated;if(o&&(ca(c,i).flags|=256),i=eo(c,i,!1),i!==2&&i!==6){if(fd&&!o){c.errorRecoveryDisabledLanes|=u,on|=u,a=4;break t}u=Ft,Ft=a,u!==null&&(Ft===null?Ft=u:Ft.push.apply(Ft,u))}a=i}if(u=!1,a!==2)continue}}if(a===1){ca(t,0),Dl(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(p(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:Dl(n,e,ce,!Al);break t;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(p(329))}if((e&62914560)===e&&(a=cc+300-oe(),10<a)){if(Dl(n,e,ce,!Al),Ji(n,0,!0)!==0)break t;Ve=e,n.timeoutHandle=yd(ys.bind(null,n,l,Ft,wi,lf,e,ce,on,ua,Al,u,"Throttled",-0,0),a);break t}ys(n,l,Ft,wi,lf,e,ce,on,ua,Al,u,null,-0,0)}}break}while(!0);Je(t)}function ys(t,e,l,n,a,u,i,c,o,f,m,g,r,s){t.timeoutHandle=-1;var E=e.subtreeFlags,D=(u&335544064)===u;if(g=null,(D||E&8192||(E&16785408)===16785408)&&(g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:je},ie=null,Pm(e,u,g),D&&(E=g,D=t.containerInfo,D=(D.nodeType===9?D:D.ownerDocument).__reactViewTransition,D!=null&&(E.count++,E.waitingForViewTransition=!0,E=du.bind(E),D.finished.then(E,E))),E=(u&62914560)===u?cc-oe():(u&4194048)===u?nv-oe():0,E=Z1(g,E),E!==null)){Ve=u,t.cancelPendingCommit=E(vs.bind(null,t,e,u,l,n,a,i,c,o,f,m,g,null,r,s)),Dl(t,u,i,!f);return}vs(t,e,u,l,n,a,i,c,o,f,m,g)}function Xh(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!se(u(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Dl(t,e,l,n){e=ny(t,e),e&=~Gi,e&=~on,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-de(a),i=1<<u;n[u]=-1,a&=~i}l!==0&&uy(t,l,e)}function oc(){return(J&6)===0?(Tu(0,!1),!1):!0}function dd(){if(w!==null){if(W===0)var t=w.return;else t=w,tl=En=null,Jf(t),$n=null,nu=0,t=w;for(;t!==null;)Hm(t.alternate,t),t=t.return;w=null}}function ca(t,e){var l=t.timeoutHandle;return l!==-1&&(t.timeoutHandle=-1,r1(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Ve=0,dd(),lt=t,w=l=el(t.current,null),V=e,W=0,ne=null,Al=!1,pa=vu(t,e),fd=!1,ua=ce=Gi=on=Xl=vt=0,Ft=$a=null,lf=!1,ol=ny(t,e),Ii(),l}function cv(t,e){q=null,C.H=Ui,e===ga||e===ec?(e=jr(),W=3):e===Gf?(e=jr(),W=4):W=e===ed?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ne=e,w===null&&(vt=1,Hi(t,Ee(e,t.current)))}function ov(){var t=Lt.current;return t===null?!0:(V&4194048)===V?Xt===null:(V&62914560)===V||(V&536870912)!==0?t===Xt:!1}function fv(){var t=C.H;return C.H=Ui,t===null?Ui:t}function dv(){var t=C.A;return C.A=wh,t}function Qi(){vt=4,Al||(V&4194048)!==V&&Lt.current!==null||(pa=!0),(Xl&134217727)===0&&(on&134217727)===0||lt===null||Dl(lt,V,ce,!1)}function eo(t,e,l){var n=J;J|=2;var a=fv(),u=dv();(lt!==t||V!==e)&&(wi=null,ca(t,e)),e=!1;var i=vt;t:do try{if(W!==0&&w!==null){var c=w,o=ne;switch(W){case 8:dd(),i=6;break t;case 3:case 2:case 9:case 6:Lt.current===null&&(e=!0);var f=W;if(W=0,ne=null,Vn(t,c,o,f),l&&pa){i=0;break t}break;default:f=W,W=0,ne=null,Vn(t,c,o,f)}}Vh(),i=vt;break}catch(m){cv(t,m)}while(!0);return e&&t.shellSuspendCounter++,tl=En=null,J=n,C.H=a,C.A=u,w===null&&(lt=null,V=0,Ii()),i}function Vh(){for(;w!==null;)rv(w)}function Zh(t,e){var l=J;J|=2;var n=fv(),a=dv();lt!==t||V!==e?(wi=null,ji=oe()+500,ca(t,e)):pa=vu(t,e);t:do try{if(W!==0&&w!==null){e=w;var u=ne;e:switch(W){case 1:W=0,ne=null,Vn(t,e,u,1);break;case 2:case 9:if(Gr(u)){W=0,ne=null,ms(e);break}e=function(){W!==2&&W!==9||lt!==t||(W=7),Je(t)},u.then(e,e);break t;case 3:W=7;break t;case 4:W=5;break t;case 7:Gr(u)?(W=0,ne=null,ms(e)):(W=0,ne=null,Vn(t,e,u,7));break;case 5:var i=null;switch(w.tag){case 26:i=w.memoizedState;case 5:case 27:var c=w;if(i?Bv(i):c.stateNode.complete){W=0,ne=null;var o=c.sibling;if(o!==null)w=o;else{var f=c.return;f!==null?(w=f,fc(f)):w=null}break e}}W=0,ne=null,Vn(t,e,u,5);break;case 6:W=0,ne=null,Vn(t,e,u,6);break;case 8:dd(),vt=6;break t;default:throw Error(p(462))}}Kh();break}catch(m){cv(t,m)}while(!0);return tl=En=null,C.H=n,C.A=a,J=l,w!==null?0:(lt=null,V=0,Ii(),vt)}function Kh(){for(;w!==null&&!fg();)rv(w)}function rv(t){var e=Um(t.alternate,t,ol);t.memoizedProps=t.pendingProps,e===null?fc(t):w=e}function ms(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ls(l,e,e.pendingProps,e.type,void 0,V);break;case 11:e=ls(l,e,e.pendingProps,e.type.render,e.ref,V);break;case 5:Jf(e);var n=e;n===Rt&&(G?(Ai(n),n.tag===5&&n.stateNode!=null&&(ct=n.stateNode)):(Ai(n),G=!0));default:Hm(l,e),e=w=qy(e,ol),e=Um(l,e,ol)}t.memoizedProps=t.pendingProps,e===null?fc(t):w=e}function Vn(t,e,l,n){tl=En=null,Jf(e),$n=null,nu=0;var a=e.return;try{if(Uh(t,a,e,l,V)){vt=1,Hi(t,Ee(l,t.current)),w=null;return}}catch(u){if(a!==null)throw w=a,u;vt=1,Hi(t,Ee(l,t.current)),w=null;return}e.flags&32768?(G||n===1?t=!0:pa||(V&536870912)!==0?t=!1:(Al=t=!0,(n===2||n===9||n===3||n===6)&&(n=Lt.current,n!==null&&n.tag===13&&(n.flags|=16384))),sv(e,t)):fc(e)}function fc(t){var e=t;do{if((e.flags&32768)!==0){sv(e,Al);return}t=e.return;var l=Lh(e.alternate,e,ol);if(l!==null){w=l;return}if(e=e.sibling,e!==null){w=e;return}w=e=t}while(e!==null);vt===0&&(vt=5)}function sv(t,e){do{var l=Yh(t.alternate,t);if(l!==null){l.flags&=32767,w=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){w=t;return}w=t=l}while(t!==null);vt=6,w=null}function vs(t,e,l,n,a,u,i,c,o,f,m,g){t.cancelPendingCommit=null;do dc();while(st!==0);if((J&6)!==0)throw Error(p(327));if(e!==null){if(e===t.current)throw Error(p(177));t===lt&&(w=lt=null,V=0),gn=e,Re=t,Ve=l,af=a,av=n,Jh(t,e,l,i,c,o,g)}}function Jh(t,e,l,n,a,u,i){var c=e.lanes|e.childLanes;if(nf=c,c|=Uf,bg(t,l,c,n,a,u),Pn=null,(l&335544064)===l?(ta=Eh(t),n=10262):(ta=null,n=10256),(e.subtreeFlags&n)!==0||(e.flags&n)!==0?(t.callbackNode=null,t.callbackPriority=0,Ph(Ei,function(){return ff(),null})):(t.callbackNode=null,t.callbackPriority=0),Li=!1,n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null,a=k.p,k.p=2,u=J,J|=4;try{Gh(t,e,l)}finally{J=u,k.p=a,C.T=n}}st=1,Li?In=h1(i,t.containerInfo,ta,uf,cf,$h,of,ff,kh,null,null):(uf(),cf(),of())}function kh(t){if(st!==0){var e=Re.onRecoverableError;e(t,{componentStack:null})}}function $h(){st===3&&(st=0,Wm(gn,Re),st=4)}function uf(){if(st===1){st=0;var t=Re,e=gn,l=Ve,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var a=k.p;k.p=2;var u=J;J|=4;try{La=Yi=!1,$m(e,t,l),l=yf;var i=Dy(t.containerInfo),c=l.focusedElem,o=l.selectionRange;if(i!==c&&c&&c.ownerDocument&&Ay(c.ownerDocument.documentElement,c)){if(o!==null&&Mf(c)){var f=o.start,m=o.end;if(m===void 0&&(m=f),"selectionStart"in c)c.selectionStart=f,c.selectionEnd=Math.min(m,c.value.length);else{var g=c.ownerDocument||document,r=g&&g.defaultView||window;if(r.getSelection){var s=r.getSelection(),E=c.textContent.length,D=Math.min(o.start,E),H=o.end===void 0?D:Math.min(o.end,E);!s.extend&&D>H&&(i=H,H=D,D=i);var y=Cr(c,D),d=Cr(c,H);if(y&&d&&(s.rangeCount!==1||s.anchorNode!==y.node||s.anchorOffset!==y.offset||s.focusNode!==d.node||s.focusOffset!==d.offset)){var v=g.createRange();v.setStart(y.node,y.offset),s.removeAllRanges(),D>H?(s.addRange(v),s.extend(d.node,d.offset)):(v.setEnd(d.node,d.offset),s.addRange(v))}}}}for(g=[],s=c;s=s.parentNode;)s.nodeType===1&&g.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<g.length;c++){var h=g[c];h.element.scrollLeft=h.left,h.element.scrollTop=h.top}}sa=!!sf,yf=sf=null}finally{J=u,k.p=a,C.T=n}}t.current=e,st=2}}function cf(){if(st===2){st=0;var t=Re,e=gn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var n=k.p;k.p=2;var a=J;J|=4;try{Xm(t,e.alternate,e)}finally{J=a,k.p=n,C.T=l}}st=3}}function of(){if(st===4||st===3){st=0;var t=In;In=null,dg();var e=Re,l=gn,n=Ve,a=av,u=(n&335544064)===n?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?st=5:(st=0,gn=Re=null,yv(e,e.pendingLanes)),u=e.pendingLanes,u===0&&(ql=null),Af(n),l=l.stateNode,fe&&typeof fe.onCommitFiberRoot=="function")try{fe.onCommitFiberRoot(mu,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=C.T,u=k.p,k.p=2,C.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];i(o.value,{componentStack:o.stack})}}finally{C.T=l,k.p=u}}if(a=Pn,i=ta,ta=null,a!==null&&(Pn=null,i===null&&(i=[]),t!==null))for(o=0;o<a.length;o++)l=(0,a[o])(i),l!==void 0&&t.finished.finally(l);(Ve&3)!==0&&dc(),Je(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===si?Fa++:(Fa=0,si=e):(Fa=0,si=null),Tu(0,!1)}}function yv(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,bu(e)))}function dc(){return In!==null&&(In.skipTransition(),In=null),uf(),cf(),of(),ff()}function ff(){if(st!==5)return!1;var t=Re,e=nf;nf=0;var l=Af(Ve),n=C.T,a=k.p;try{k.p=32>l?32:l,C.T=null,l=af,af=null;var u=Re,i=Ve;if(st=0,gn=Re=null,Ve=0,(J&6)!==0)throw Error(p(331));var c=J;if(J|=4,ev(u.current),Im(u,u.current,i,l),J=c,Tu(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(mu,u)}catch{}return!0}finally{k.p=a,C.T=n,yv(t,e)}}function gs(t,e,l){e=Ee(l,e),e=wo(t.stateNode,e,2),t=Ml(t,e,2),t!==null&&(gu(t,2),Je(t))}function P(t,e,l){if(t.tag===3)gs(t,t,l);else for(;e!==null;){if(e.tag===3){gs(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ql===null||!ql.has(n))){t=Ee(l,t),l=xm(2),n=Ml(e,l,2),n!==null&&(_m(l,n,e,t),gu(n,2),Je(n));break}}e=e.return}}function lo(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Qh;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(fd=!0,a.add(l),t=Fh.bind(null,t,e,l),e.then(t,t))}function Fh(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,lt===t&&(V&l)===l&&((vt===4||vt===3&&(V&62914560)===V&&300>oe()-cc)&&(J&2)===0?ca(t,0):Gi|=l,ua===V&&(ua=0)),Je(t)}function mv(t,e){e===0&&(e=ay()),t=Sn(t,e),t!==null&&(gu(t,e),Je(t))}function Wh(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),mv(t,l)}function Ih(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(p(314))}n!==null&&n.delete(e),mv(t,l)}function Ph(t,e){return Of(t,e)}var oa=null,Mn=null,df=!1,Xi=!1,no=!1,xl=0;function Je(t){t!==Mn&&t.next===null&&(Mn===null?oa=Mn=t:Mn=Mn.next=t),Xi=!0,df||(df=!0,e1())}function Tu(t,e){if(!no&&Xi){no=!0;do for(var l=!1,n=oa;n!==null;){if(!e)if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var i=n.suspendedLanes,c=n.pingedLanes;u=(1<<31-de(42|t)+1)-1,u&=a&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,hs(n,u))}else u=V,u=Ji(n,n===lt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||vu(n,u)||(l=!0,hs(n,u));n=n.next}while(l);no=!1}}function t1(){vv()}function vv(){Xi=df=!1;var t=0;xl!==0&&d1()&&(t=xl);for(var e=oe(),l=null,n=oa;n!==null;){var a=n.next,u=gv(n,e);u===0?(n.next=null,l===null?oa=a:l.next=a,a===null&&(Mn=l)):(l=n,(t!==0||(u&3)!==0)&&(Xi=!0)),n=a}st!==0&&st!==5||Tu(t,!1),xl!==0&&(xl=0)}function gv(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-de(u),c=1<<i,o=a[i];o===-1?((c&l)===0||(c&n)!==0)&&(a[i]=pg(c,e)):o<=e&&(t.expiredLanes|=c),u&=~c}if(e=lt,l=V,l=Ji(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(W===2||W===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&qc(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||vu(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&qc(n),Af(l)){case 2:case 8:l=ey;break;case 32:l=Ei;break;case 268435456:l=ly;break;default:l=Ei}return n=hv.bind(null,t),l=Of(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&qc(n),t.callbackPriority=2,t.callbackNode=null,2}function hv(t,e){if(st!==0&&st!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(dc()&&t.callbackNode!==l)return null;var n=V;return n=Ji(t,t===lt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(iv(t,n,e),gv(t,oe()),t.callbackNode!=null&&t.callbackNode===l?hv.bind(null,t):null)}function hs(t,e){if(dc())return null;iv(t,e,!0)}function e1(){s1(function(){(J&6)!==0?Of(ty,t1):vv()})}function rd(){if(xl===0){var t=sn;t===0&&(t=Uu,Uu<<=1,(Uu&261888)===0&&(Uu=256)),xl=t}return xl}function ps(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ti(t)}function l1(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=ps((a[ee]||null).action),i=n.submitter;i&&(e=(e=i[ee]||null)?ps(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var c=new $i("action","action",null,n,a);t.push({event:c,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(xl!==0){var o=new FormData(a,i);Go(l,{pending:!0,data:o,method:a.method,action:u},null,o)}}else typeof u=="function"&&(c.preventDefault(),o=new FormData(a,i),Go(l,{pending:!0,data:o,method:a.method,action:u},u,o))},currentTarget:a}]})}}for(ku=0;ku<xo.length;ku++)$u=xo[ku],bs=$u.toLowerCase(),Ss=$u[0].toUpperCase()+$u.slice(1),Ce(bs,"on"+Ss);var $u,bs,Ss,ku;Ce(_y,"onAnimationEnd");Ce(Ry,"onAnimationIteration");Ce(Cy,"onAnimationStart");Ce("dblclick","onDoubleClick");Ce("focusin","onFocus");Ce("focusout","onBlur");Ce(yh,"onTransitionRun");Ce(mh,"onTransitionStart");Ce(vh,"onTransitionCancel");Ce(My,"onTransitionEnd");la("onMouseEnter",["mouseout","mouseover"]);la("onMouseLeave",["mouseout","mouseover"]);la("onPointerEnter",["pointerout","pointerover"]);la("onPointerLeave",["pointerout","pointerover"]);pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pn("onBeforeInput",["compositionend","keypress","textInput","paste"]);pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iu="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(" "),n1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iu));function pv(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var i=n.length-1;0<=i;i--){var c=n[i],o=c.instance,f=c.currentTarget;if(c=c.listener,o!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=f;try{u(a)}catch(m){Ni(m)}a.currentTarget=null,u=o}else for(i=0;i<n.length;i++){if(c=n[i],o=c.instance,f=c.currentTarget,c=c.listener,o!==u&&a.isPropagationStopped())break t;u=c,a.currentTarget=f;try{u(a)}catch(m){Ni(m)}a.currentTarget=null,u=o}}}}function j(t,e){var l=e[mr];l===void 0&&(l=e[mr]=new Set);var n=t+"__bubble";l.has(n)||(bv(e,t,2,!1),l.add(n))}function ao(t,e,l){var n=0;e&&(n|=4),bv(l,t,n,e)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function sd(t){if(!t[Fu]){t[Fu]=!0,dy.forEach(function(l){l!=="selectionchange"&&(n1.has(l)||ao(l,!1,t),ao(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Fu]||(e[Fu]=!0,ao("selectionchange",!1,e))}}function bv(t,e,l,n){switch(Xv(e)){case 2:var a=$1;break;case 8:a=F1;break;default:a=bd}l=a.bind(null,e,l,t),a=void 0,!Oo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function uo(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var c=n.stateNode.containerInfo;if(c===a)break;if(i===4)for(i=n.return;i!==null;){var o=i.tag;if((o===3||o===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;c!==null;){if(i=en(c),i===null)return;if(o=i.tag,o===5||o===6||o===26||o===27){n=u=i;continue t}c=c.parentNode}}n=n.return}py(function(){var f=u,m=xf(l),g=[];t:{var r=Uy.get(t);if(r!==void 0){var s=$i,E=t;switch(t){case"keypress":if(li(l)===0)break t;case"keydown":case"keyup":s=Xg;break;case"focusin":E="focus",s=wc;break;case"focusout":E="blur",s=wc;break;case"beforeblur":case"afterblur":s=wc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=kg;break;case _y:case Ry:case Cy:s=Hg;break;case My:s=Fg;break;case"scroll":case"scrollend":s=_g;break;case"wheel":s=Ig;break;case"copy":case"cut":case"paste":s=Bg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Or;break;case"submit":s=Kg;break;case"toggle":case"beforetoggle":s=th}var D=(e&4)!==0,H=!D&&(t==="scroll"||t==="scrollend"),y=D?r!==null?r+"Capture":null:r;D=[];for(var d=f,v;d!==null;){var h=d;if(v=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||v===null||y===null||(h=Ia(d,y),h!=null&&D.push(cu(d,h,v))),H)break;d=d.return}0<D.length&&(r=new s(r,E,null,l,m),g.push({event:r,listeners:D}))}}if((e&7)===0){t:{if(s=t==="mouseover"||t==="pointerover",r=t==="mouseout"||t==="pointerout",s&&l!==No&&(E=l.relatedTarget||l.fromElement)&&(en(E)||E[ma]))break t;(r||s)&&(E=m.window===m?m:(s=m.ownerDocument)?s.defaultView||s.parentWindow:window,r?(s=l.relatedTarget||l.toElement,r=f,s=s?en(s):null,s!==null&&(H=yu(s),D=s.tag,s!==H||D!==5&&D!==27&&D!==6)&&(s=null)):(r=null,s=f),r!==s&&(D=Tr,h="onMouseLeave",y="onMouseEnter",d="mouse",(t==="pointerout"||t==="pointerover")&&(D=Or,h="onPointerLeave",y="onPointerEnter",d="pointer"),H=r==null?E:qa(r),v=s==null?E:qa(s),E=new D(h,d+"leave",r,l,m),E.target=H,E.relatedTarget=v,h=null,en(m)===f&&(D=new D(y,d+"enter",s,l,m),D.target=v,D.relatedTarget=H,h=D),H=h,D=r&&s?ro(r,s,a1):null,r!==null&&Es(g,E,r,D,!1),s!==null&&H!==null&&Es(g,H,s,D,!0)))}t:{if(r=f?qa(f):window,s=r.nodeName&&r.nodeName.toLowerCase(),s==="select"||s==="input"&&r.type==="file")var x=xr;else if(Dr(r))if(Oy)x=dh;else{x=oh;var X=ch}else s=r.nodeName,!s||s.toLowerCase()!=="input"||r.type!=="checkbox"&&r.type!=="radio"?f&&Df(f.elementType)&&(x=xr):x=fh;if(x&&(x=x(t,f))){Ny(g,x,l,m);break t}X&&X(t,r,f)}switch(X=f?qa(f):window,t){case"focusin":(Dr(X)||X.contentEditable==="true")&&(Yn=X,Ao=f,ja=null);break;case"focusout":ja=Ao=Yn=null;break;case"mousedown":Do=!0;break;case"contextmenu":case"mouseup":case"dragend":Do=!1,Mr(g,l,m);break;case"selectionchange":if(sh)break;case"keydown":case"keyup":Mr(g,l,m)}var _;if(Cf)t:{switch(t){case"compositionstart":var R="onCompositionStart";break t;case"compositionend":R="onCompositionEnd";break t;case"compositionupdate":R="onCompositionUpdate";break t}R=void 0}else Ln?Ey(t,l)&&(R="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(R="onCompositionStart");R&&(Sy&&l.locale!=="ko"&&(Ln||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ln&&(_=by()):(Ol=m,_f="value"in Ol?Ol.value:Ol.textContent,Ln=!0)),X=Vi(f,R),0<X.length&&(R=new Nr(R,t,null,l,m),g.push({event:R,listeners:X}),_?R.data=_:(_=Ty(l),_!==null&&(R.data=_)))),(_=lh?nh(t,l):ah(t,l))&&(R=Vi(f,"onBeforeInput"),0<R.length&&(X=new Nr("onBeforeInput","beforeinput",null,l,m),g.push({event:X,listeners:R}),X.data=_)),l1(g,t,f,l,m)}pv(g,e)})}function cu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Vi(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Ia(t,l),a!=null&&n.unshift(cu(t,a,u)),a=Ia(t,e),a!=null&&n.push(cu(t,a,u))),t.tag===3)return n;t=t.return}return[]}function a1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Es(t,e,l,n,a){for(var u=e._reactName,i=[];l!==null&&l!==n;){var c=l,o=c.alternate,f=c.stateNode;if(c=c.tag,o!==null&&o===n)break;c!==5&&c!==26&&c!==27||f===null||(o=f,a?(f=Ia(l,u),f!=null&&i.unshift(cu(l,f,o))):a||(f=Ia(l,u),f!=null&&i.push(cu(l,f,o)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var u1=/\r\n?/g,i1=/\u0000|\uFFFD/g;function Ts(t){return(typeof t=="string"?t:""+t).replace(u1,`
9
- `).replace(i1,"")}function Sv(t,e){return e=Ts(e),Ts(t)===e}function I(t,e,l,n,a,u){switch(l){case"children":if(typeof n=="string")e==="body"||e==="textarea"&&n===""||na(t,n);else if(typeof n=="number"||typeof n=="bigint")e!=="body"&&na(t,""+n);else return;break;case"className":Bu(t,"class",n);break;case"tabIndex":Bu(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Bu(t,l,n);break;case"style":hy(t,n,u);return;case"data":if(e!=="object"){Bu(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=ti(n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&I(t,e,"name",a.name,a,null),I(t,e,"formEncType",a.formEncType,a,null),I(t,e,"formMethod",a.formMethod,a,null),I(t,e,"formTarget",a.formTarget,a,null)):(I(t,e,"encType",a.encType,a,null),I(t,e,"method",a.method,a,null),I(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=ti(n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=je);return;case"onScroll":n!=null&&j("scroll",t);return;case"onScrollEnd":n!=null&&j("scrollend",t);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(p(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(p(60));u?.__html!==l&&(t.innerHTML=l)}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=ti(n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":j("beforetoggle",t),j("toggle",t),Pu(t,"popover",n);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Pu(t,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=Dg.get(l)||l,Pu(t,l,n);else return}K=!0}function rf(t,e,l,n,a,u){switch(l){case"style":hy(t,n,u);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(p(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(p(60));u?.__html!==l&&(t.innerHTML=l)}}break;case"children":if(typeof n=="string")na(t,n);else if(typeof n=="number"||typeof n=="bigint")na(t,""+n);else return;break;case"onScroll":n!=null&&j("scroll",t);return;case"onScrollEnd":n!=null&&j("scrollend",t);return;case"onClick":n!=null&&(t.onclick=je);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!ry.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),u=l.slice(2,a?l.length-7:void 0),e=t[ee]||null,e=e!=null?e[l]:null,typeof e=="function"&&t.removeEventListener(u,e,a),typeof n=="function")){typeof e!="function"&&e!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(u,n,a);break t}K=!0,l in t?t[l]=n:n===!0?t.setAttribute(l,""):Pu(t,l,n)}return}K=!0}function Bt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":j("error",t),j("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(p(137,e));default:I(t,e,u,i,l,null)}}a&&I(t,e,"srcSet",l.srcSet,l,null),n&&I(t,e,"src",l.src,l,null);return;case"input":j("invalid",t);var c=u=i=a=null,o=null,f=null;for(n in l)if(l.hasOwnProperty(n)){var m=l[n];if(m!=null)switch(n){case"name":a=m;break;case"type":i=m;break;case"checked":o=m;break;case"defaultChecked":f=m;break;case"value":u=m;break;case"defaultValue":c=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(p(137,e));break;default:I(t,e,n,m,l,null)}}my(t,u,c,o,f,i,a,!1);return;case"select":j("invalid",t),n=i=u=null;for(a in l)if(l.hasOwnProperty(a)&&(c=l[a],c!=null))switch(a){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":n=c;default:I(t,e,a,c,l,null)}e=u,l=i,t.multiple=!!n,e!=null?Kn(t,!!n,e,!1):l!=null&&Kn(t,!!n,l,!0);return;case"textarea":j("invalid",t),u=a=n=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":n=c;break;case"defaultValue":a=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(p(91));break;default:I(t,e,i,c,l,null)}gy(t,n,a,u);return;case"option":for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null)&&(o==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":I(t,e,o,n,l,null));return;case"dialog":j("beforetoggle",t),j("toggle",t),j("cancel",t),j("close",t);break;case"iframe":case"object":j("load",t);break;case"video":case"audio":for(n=0;n<iu.length;n++)j(iu[n],t);break;case"image":j("error",t),j("load",t);break;case"details":j("toggle",t);break;case"embed":case"source":case"link":j("error",t),j("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in l)if(l.hasOwnProperty(f)&&(n=l[f],n!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(p(137,e));default:I(t,e,f,n,l,null)}return;default:if(Df(e)){for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!==void 0&&rf(t,e,m,n,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(n=l[c],n!=null&&I(t,e,c,n,l,null))}var c1={};function o1(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,i=null,c=null,o=null,f=null,m=null;for(s in l){var g=l[s];if(l.hasOwnProperty(s)&&g!=null)switch(s){case"checked":break;case"value":break;case"defaultValue":o=g;default:n.hasOwnProperty(s)||I(t,e,s,null,n,g)}}for(var r in n){var s=n[r];if(g=l[r],n.hasOwnProperty(r)&&(s!=null||g!=null))switch(r){case"type":s!==g&&(K=!0),u=s;break;case"name":s!==g&&(K=!0),a=s;break;case"checked":s!==g&&(K=!0),f=s;break;case"defaultChecked":s!==g&&(K=!0),m=s;break;case"value":s!==g&&(K=!0),i=s;break;case"defaultValue":s!==g&&(K=!0),c=s;break;case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(p(137,e));break;default:s!==g&&I(t,e,r,s,n,g)}}To(t,i,c,o,f,m,u,a);return;case"select":s=i=c=r=null;for(u in l)if(o=l[u],l.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":s=o;default:n.hasOwnProperty(u)||I(t,e,u,null,n,o)}for(a in n)if(u=n[a],o=l[a],n.hasOwnProperty(a)&&(u!=null||o!=null))switch(a){case"value":u!==o&&(K=!0),r=u;break;case"defaultValue":u!==o&&(K=!0),c=u;break;case"multiple":u!==o&&(K=!0),i=u;default:u!==o&&I(t,e,a,u,n,o)}e=c,l=i,n=s,r!=null?Kn(t,!!l,r,!1):!!n!=!!l&&(e!=null?Kn(t,!!l,e,!0):Kn(t,!!l,l?[]:"",!1));return;case"textarea":s=r=null;for(c in l)if(a=l[c],l.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:I(t,e,c,null,n,a)}for(i in n)if(a=n[i],u=l[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":a!==u&&(K=!0),r=a;break;case"defaultValue":a!==u&&(K=!0),s=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(p(91));break;default:a!==u&&I(t,e,i,a,n,u)}vy(t,r,s);return;case"option":for(var E in l)r=l[E],l.hasOwnProperty(E)&&r!=null&&!n.hasOwnProperty(E)&&(E==="selected"?t.selected=!1:I(t,e,E,null,n,r));for(o in n)r=n[o],s=l[o],n.hasOwnProperty(o)&&r!==s&&(r!=null||s!=null)&&(o==="selected"?(r!==s&&(K=!0),t.selected=r&&typeof r!="function"&&typeof r!="symbol"):I(t,e,o,r,n,s));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var D in l)r=l[D],l.hasOwnProperty(D)&&r!=null&&!n.hasOwnProperty(D)&&I(t,e,D,null,n,r);for(f in n)if(r=n[f],s=l[f],n.hasOwnProperty(f)&&r!==s&&(r!=null||s!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(p(137,e));break;default:I(t,e,f,r,n,s)}return;default:if(Df(e)){for(var H in l)r=l[H],l.hasOwnProperty(H)&&r!==void 0&&!n.hasOwnProperty(H)&&rf(t,e,H,void 0,n,r);for(m in n)r=n[m],s=l[m],!n.hasOwnProperty(m)||r===s||r===void 0&&s===void 0||rf(t,e,m,r,n,s);return}}for(var y in l)r=l[y],l.hasOwnProperty(y)&&r!=null&&!n.hasOwnProperty(y)&&I(t,e,y,null,n,r);for(g in n)r=n[g],s=l[g],!n.hasOwnProperty(g)||r===s||r==null&&s==null||I(t,e,g,r,n,s)}function Ns(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&Ns(i)){for(i=0,c=a.responseEnd,n+=1;n<l.length;n++){var o=l[n],f=o.startTime;if(f>c)break;var m=o.transferSize,g=o.initiatorType;m&&Ns(g)&&(o=o.responseEnd,i+=m*(o<c?1:(c-f)/(o-f)))}if(--n,e+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var sf=null,yf=null;function ou(t){return t.nodeType===9?t:t.ownerDocument}function Os(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ev(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tv(t,e,l,n){return l=ou(l).createElement(t),l[Mt]=n,l[ee]=e,Bt(l,t,e),_t(l),l}function mf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var io=null;function d1(){var t=window.event;return t&&t.type==="popstate"?t===io?!1:(io=t,!0):(io=null,!1)}var yd=typeof setTimeout=="function"?setTimeout:void 0,r1=typeof clearTimeout=="function"?clearTimeout:void 0,zs=typeof Promise=="function"?Promise:void 0,As=typeof requestAnimationFrame=="function"?requestAnimationFrame:yd,s1=typeof queueMicrotask=="function"?queueMicrotask:typeof zs<"u"?function(t){return zs.resolve(null).then(t).catch(y1)}:yd;function y1(t){setTimeout(function(){throw t})}function Zl(t){return t==="head"}function Ds(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),ya(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")oo(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,oo(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[hu]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&oo(t.ownerDocument.body);l=a}while(l);ya(e)}function xs(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Nv(t,e,l){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,l!=null&&(t.style.viewTransitionClass=l),l=getComputedStyle(t),l.display==="inline"){if(e=t.getClientRects(),e.length===1)var n=1;else for(var a=n=0;a<e.length;a++){var u=e[a];0<u.width&&0<u.height&&n++}n===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+l.paddingTop,t.marginBottom="-"+l.paddingBottom)}}function Ov(t,e){t=t.style,e=e.style;var l=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(l=e.display,t.display=l==null||typeof l=="boolean"?"":l,l=e.margin,l!=null?t.margin=l:(l=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=l==null||typeof l=="boolean"?"":l,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function zv(t,e,l){return l=l.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=l.innerHeight&&t.left<=l.innerWidth}}function vf(t){var e=t.getBoundingClientRect(),l=getComputedStyle(t);return zv(e,l,t)}function m1(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var l=getComputedStyle(t);return zv(e,l,t)}function v1(t){return t.documentElement.clientHeight}function g1(t){this.addEventListener("load",t),this.addEventListener("error",t)}function h1(t,e,l,n,a,u,i,c,o){var f=e.nodeType===9?e:e.ownerDocument;try{var m=f.startViewTransition({update:function(){var r=f.defaultView,s=r.navigation&&r.navigation.transition,E=f.fonts.status;n();var D=[];if(E==="loaded"&&(v1(f),f.fonts.status==="loading"&&D.push(f.fonts.ready)),E=D.length,t!==null)for(var H=t.suspenseyImages,y=0,d=0;d<H.length;d++){var v=H[d];if(!v.complete){var h=v.getBoundingClientRect();if(0<h.bottom&&0<h.right&&h.top<r.innerHeight&&h.left<r.innerWidth){if(y+=Lv(v),y>vi){D.length=E;break}v=new Promise(g1.bind(v)),D.push(v)}}}if(0<D.length)return r=Promise.race([Promise.all(D),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(s?Promise.allSettled([s.finished,r]):r).then(u,u);if(a(),s)return s.finished.then(u,u);u()},types:l});f.__reactViewTransition=m;var g=[];return m.ready.then(function(){for(var r=f.documentElement.getAnimations({subtree:!0}),s=0;s<r.length;s++){var E=r[s],D=E.effect,H=D.pseudoElement;if(H!=null&&H.startsWith("::view-transition")){g.push(E),E=D.getKeyframes();for(var y=H=void 0,d=!0,v=0;v<E.length;v++){var h=E[v],x=h.width;if(H===void 0)H=x;else if(H!==x){d=!1;break}if(x=h.height,y===void 0)y=x;else if(y!==x){d=!1;break}delete h.width,delete h.height,h.transform==="none"&&delete h.transform}d&&H!==void 0&&y!==void 0&&(D.setKeyframes(E),d=getComputedStyle(D.target,D.pseudoElement),d.width!==H||d.height!==y)&&(d=E[0],d.width=H,d.height=y,d=E[E.length-1],d.width=H,d.height=y,D.setKeyframes(E))}}i()},function(r){f.__reactViewTransition===m&&(f.__reactViewTransition=null);try{typeof r=="object"&&r!==null&&r.name==="InvalidStateError"&&(r.message==="View transition was skipped because document visibility state is hidden."||r.message==="Skipping view transition because document visibility state has become hidden."||r.message==="Skipping view transition because viewport size changed."||r.message==="Transition was aborted because of invalid state")&&(r=null),r!==null&&o(r)}finally{n(),a(),i()}}),m.finished.finally(function(){for(var r=0;r<g.length;r++)g[r].cancel();f.__reactViewTransition===m&&(f.__reactViewTransition=null),c()}),m}catch{return n(),a(),i(),null}}function ln(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}ln.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:nt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};ln.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,l=t.getAnimations({subtree:!0}),n=[],a=0;a<l.length;a++){var u=l[a].effect;u!==null&&u.target===t&&u.pseudoElement===e&&n.push(l[a])}return n};ln.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Av(t){return{name:t,group:new ln("group",t),imagePair:new ln("image-pair",t),old:new ln("old",t),new:new ln("new",t)}}function ye(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}ye.prototype.addEventListener=function(t,e,l){var n=null,a=null;if(!(l!=null&&typeof l!="boolean"&&(n=l.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Dv(u,t,e,l)===-1){var i=this,c=e;l!=null&&typeof l!="boolean"&&l.once===!0&&(c=function(o){i.removeEventListener(t,e,l),typeof e=="function"?e.call(this,o):e.handleEvent(o)}),n!==null&&(a=i.removeEventListener.bind(i,t,e,l),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=fa(l),u.push({type:t,listener:e,optionsOrUseCapture:l,attachedListener:c,cleanup:a}),te(this._fragmentFiber.child,!1,p1,t,c,n)}this._eventListeners=u}};function p1(t,e,l,n){return Ot(t).addEventListener(e,l,n),!1}ye.prototype.removeEventListener=function(t,e,l){var n=this._eventListeners;if(n!==null&&(e=Dv(n,t,e,l),e!==-1)){var a=n[e];l=a.attachedListener;var u=a.cleanup;a=fa(a.optionsOrUseCapture),te(this._fragmentFiber.child,!1,b1,t,l,a),n.splice(e,1),u!==null&&u()}};function b1(t,e,l,n){return Ot(t).removeEventListener(e,l,n),!1}function fa(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function _s(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Dv(t,e,l,n){if(t.length===0)return-1;n=_s(n);for(var a=0;a<t.length;a++){var u=t[a];if(u.type===e&&u.listener===l&&_s(u.optionsOrUseCapture)===n)return a}return-1}ye.prototype.dispatchEvent=function(t){var e=hn(this._fragmentFiber);if(e===null)return!0;e=Ot(e);var l=this._eventListeners;if(l!==null&&0<l.length||!t.bubbles){var n=e.nodeType===9?e.createComment(""):document.createTextNode("");if(l)for(var a=0;a<l.length;a++){var u=l[a];n.addEventListener(u.type,u.attachedListener,fa(u.optionsOrUseCapture))}if(e.appendChild(n),t=n.dispatchEvent(t),l)for(a=0;a<l.length;a++)u=l[a],n.removeEventListener(u.type,u.attachedListener,fa(u.optionsOrUseCapture));return e.removeChild(n),t}return e.dispatchEvent(t)};ye.prototype.focus=function(t){te(this._fragmentFiber.child,!0,xv,t,void 0,void 0)};function xv(t,e){return t.tag===6?!1:(t=Ot(t),C1(t,e))}ye.prototype.focusLast=function(t){var e=[];te(this._fragmentFiber.child,!0,md,e,void 0,void 0);for(var l=e.length-1;0<=l&&!xv(e[l],t);l--);};function md(t,e){return e.push(t),!1}ye.prototype.blur=function(){var t=hn(this._fragmentFiber);t!==null&&(t=Ot(t),t=ou(t).activeElement,t!==null&&te(this._fragmentFiber.child,!1,S1,t,void 0,void 0))};function S1(t,e){return t.tag===6?!1:(t=Ot(t),t===e||t.contains(e)?(e.blur(),!0):!1)}ye.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),te(this._fragmentFiber.child,!1,E1,t,void 0,void 0)};function E1(t,e){return t.tag===6||(t=Ot(t),e.observe(t)),!1}ye.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),te(this._fragmentFiber.child,!1,T1,t,void 0,void 0);for(var l=e=0;l<_e.length;l++){var n=_e[l];n.fragmentInstance===this&&n.observer===t?t.unobserve(n.instance):_e[e++]=n}_e.length=e}};function T1(t,e){return t.tag===6||(t=Ot(t),e.unobserve(t)),!1}var _e=[],co=!1;function N1(t,e,l){_e.push({fragmentInstance:t,observer:e,instance:l}),co||(co=!0,M1(function(){co=!1;var n=_e;_e=[];for(var a=0;a<n.length;a++){var u=n[a];u.observer.unobserve(u.instance)}}))}ye.prototype.getClientRects=function(){var t=[];return te(this._fragmentFiber.child,!1,O1,t,void 0,void 0),t};function O1(t,e){if(t.tag===6){t=t.stateNode;var l=t.ownerDocument.createRange();l.selectNodeContents(t),e.push.apply(e,l.getClientRects())}else t=Ot(t),e.push.apply(e,t.getClientRects());return!1}ye.prototype.getRootNode=function(t){var e=hn(this._fragmentFiber);return e===null?this:Ot(e).getRootNode(t)};ye.prototype.compareDocumentPosition=function(t){var e=hn(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];te(this._fragmentFiber.child,!1,md,l,void 0,void 0);var n=Ot(e);if(l.length===0){if(l=n,or(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(l=e)}e=this._fragmentFiber;var a=n=l.compareDocumentPosition(t);return l===t?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=Fs(e)[1],l===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=Ot(l).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Ot(l[0]),a=Ot(l[l.length-1]);var u=or(this._fragmentFiber)?e.parentElement:n;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=u.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=e.compareDocumentPosition(t),c=a.compareDocumentPosition(t),o=i&Node.DOCUMENT_POSITION_CONTAINED_BY||c&Node.DOCUMENT_POSITION_CONTAINED_BY;return c=n&&u&&i&Node.DOCUMENT_POSITION_FOLLOWING&&c&Node.DOCUMENT_POSITION_PRECEDING,e=n&&e===t||u&&a===t||o||c?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&e===t||!u&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||z1(e,this._fragmentFiber,l[0],l[l.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function z1(t,e,l,n,a){var u=en(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)t:{for(;u!==null;){if(u.tag===7&&(u===e||u.alternate===e)){l=!0;break t}u=u.return}l=!1}return l}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=a.ownerDocument,a===u||a===u.documentElement||a===u.body;t:{for(u=e,e=hn(e);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==e&&u.alternate!==e)){u=!0;break t}u=u.return}u=!1}return u}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!u)&&!(e=u===l)&&(e=ro(l,u,fr),e===null?e=!1:(te(e,!0,eg,u,l),u=Un,Un=null,e=u!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!u)&&!(e=u===n)&&(e=ro(n,u,fr),e===null?e=!1:(te(e,!0,lg,u,n),u=Un,fo=Un=null,e=u!==null)),e):!1}function Rs(t,e){var l=t.ownerDocument.createRange();l.selectNodeContents(t),t=l.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}ye.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(p(566));var e=[];te(this._fragmentFiber.child,!1,md,e,void 0,void 0);var l=t!==!1;if(e.length===0){var n=Fs(this._fragmentFiber);if(n=l?n[1]||n[0]||hn(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){t=Ot(n),Rs(t,l);return}if(n=Ot(n),n.nodeType!==9){if(n.nodeType===11){l="host"in n?n.host:null,l!==null&&l.scrollIntoView(t);return}n.scrollIntoView(t)}}for(n=l?e.length-1:0;n!==(l?-1:e.length);){var a=e[n];a.tag===6?(a=Ot(a),Rs(a,l)):Ot(a).scrollIntoView(t),n+=l?-1:1}};function A1(t,e){return t=Ot(t),_v(t,e),!1}function _v(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function Rv(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.addEventListener(a.type,a.attachedListener,fa(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(u){for(var i=0,c=0;c<_e.length;c++){var o=_e[c];(o.fragmentInstance!==e||o.observer!==u||o.instance!==t)&&(_e[i++]=o)}_e.length=i,u.observe(t)}),_v(t,e))}function D1(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.removeEventListener(a.type,a.attachedListener,fa(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?N1(e,u,t):u.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function gf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gf(l),ki(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function x1(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[hu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function _1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ne(t.nextSibling),t===null))return null;return t}function Cv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function hf(t){return t.data==="$?"||t.data==="$~"}function vd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function R1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ne(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var pf=null;function Cs(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ne(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ms(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function C1(t,e){function l(){n=!0}if(t.ownerDocument.activeElement===t)return!0;var n=!1;try{t.ownerDocument.addEventListener("focus",l,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",l,!0)}return n}function M1(t){As(function(){As(function(e){return t(e)})})}function Mv(t,e,l){switch(e=ou(l),t){case"html":if(t=e.documentElement,!t)throw Error(p(452));return t;case"head":if(t=e.head,!t)throw Error(p(453));return t;case"body":if(t=e.body,!t)throw Error(p(454));return t;default:throw Error(p(451))}}function Uv(t,e,l){for(var n in l){var a=l[n];l.hasOwnProperty(n)&&a!=null&&I(t,e,n,null,c1,a)}l.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===je&&(t.onclick=null),ki(t)}function oo(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ki(t)}var Oe=new Map,Us=new Set;function fu(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var rl=k.d;k.d={f:U1,r:H1,D:q1,C:B1,L:L1,m:Y1,X:j1,S:G1,M:w1};function U1(){var t=rl.f(),e=oc();return t||e}function H1(t){var e=va(t);e!==null&&e.tag===5&&e.type==="form"?hm(e):rl.r(t)}var ba=typeof document>"u"?null:document;function Hv(t,e,l){var n=ba;if(n&&typeof e=="string"&&e){var a=Se(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Us.has(a)||(Us.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Bt(e,"link",t),_t(e),n.head.appendChild(e)))}}function q1(t){rl.D(t),Hv("dns-prefetch",t,null)}function B1(t,e){rl.C(t,e),Hv("preconnect",t,e)}function L1(t,e,l){rl.L(t,e,l);var n=ba;if(n&&t&&e){var a='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Se(l.imageSizes)+'"]')):a+='[href="'+Se(t)+'"]';var u=a;switch(e){case"style":u=da(t);break;case"script":u=Sa(t)}if(!(Oe.has(u)||(t=nt({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Oe.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Nu(u))||e==="script"&&n.querySelector(Ou(u))))){var i=n.createElement("link");Bt(i,"link",t),e==="style"&&(i[Ti]=!0,i.onload=i.onerror=function(){fy(i)}),_t(i),n.head.appendChild(i)}}}function Y1(t,e){rl.m(t,e);var l=ba;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Se(n)+'"][href="'+Se(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sa(t)}if(!Oe.has(u)&&(t=nt({rel:"modulepreload",href:t},e),Oe.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ou(u)))return}n=l.createElement("link"),Bt(n,"link",t),_t(n),l.head.appendChild(n)}}}function G1(t,e,l){rl.S(t,e,l);var n=ba;if(n&&t){var a=Zn(n).hoistableStyles,u=da(t);e=e||"default";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=n.querySelector(Nu(u)))c.loading=5;else{t=nt({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Oe.get(u))&&gd(t,l);var o=i=n.createElement("link");_t(o),Bt(o,"link",t),o._p=new Promise(function(f,m){o.onload=f,o.onerror=m}),o.addEventListener("load",function(){c.loading|=1}),o.addEventListener("error",function(){c.loading|=2}),c.loading|=4,yi(i,e,n)}i={type:"stylesheet",instance:i,count:1,state:c},a.set(u,i)}}}function j1(t,e){rl.X(t,e);var l=ba;if(l&&t){var n=Zn(l).hoistableScripts,a=Sa(t),u=n.get(a);u||(u=l.querySelector(Ou(a)),u||(t=nt({src:t,async:!0},e),(e=Oe.get(a))&&hd(t,e),u=l.createElement("script"),_t(u),Bt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function w1(t,e){rl.M(t,e);var l=ba;if(l&&t){var n=Zn(l).hoistableScripts,a=Sa(t),u=n.get(a);u||(u=l.querySelector(Ou(a)),u||(t=nt({src:t,async:!0,type:"module"},e),(e=Oe.get(a))&&hd(t,e),u=l.createElement("script"),_t(u),Bt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Hs(t,e,l,n){var a=(a=_l.current)?fu(a):null;if(!a)throw Error(p(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=da(l.href),e=Zn(a).hoistableStyles,n=e.get(l),n||(n={type:"style",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=da(l.href);var u=Zn(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(Nu(t)))?u._p||(i.instance=u,i.state.loading=5):(u=Oe.get(t),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Oe.set(t,u)),Q1(a,t,u,i.state))),e&&n===null)throw Error(p(528,""));return i}if(e&&n!==null)throw Error(p(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(l=Sa(l),e=Zn(a).hoistableScripts,n=e.get(l),n||(n={type:"script",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(p(444,t))}}function da(t){return'href="'+Se(t)+'"'}function Nu(t){return'link[rel="stylesheet"]['+t+"]"}function qv(t){return nt({},t,{"data-precedence":t.precedence,precedence:null})}function Q1(t,e,l,n){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Ti]!==!0){n.loading=1;return}}else e=t.createElement("link"),e[Ti]=!0,e.onload=e.onerror=fy.bind(null,e),Bt(e,"link",l),_t(e),t.head.appendChild(e);n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2})}function Sa(t){return'[src="'+Se(t)+'"]'}function Ou(t){return"script[async]"+t}function qs(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(n)return e.instance=n,_t(n),n;var a=nt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),_t(n),Bt(n,"style",a),yi(n,l.precedence,t),e.instance=n;case"stylesheet":a=da(l.href);var u=t.querySelector(Nu(a));if(u)return e.state.loading|=4,e.instance=u,_t(u),u;n=qv(l),(a=Oe.get(a))&&gd(n,a),u=(t.ownerDocument||t).createElement("link"),_t(u);var i=u;return i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Bt(u,"link",n),e.state.loading|=4,yi(u,l.precedence,t),e.instance=u;case"script":return u=Sa(l.src),(a=t.querySelector(Ou(u)))?(e.instance=a,_t(a),a):(n=l,(a=Oe.get(u))&&(n=nt({},l),hd(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),_t(a),Bt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(p(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,yi(n,l.precedence,t));return e.instance}function yi(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var c=n[i];if(c.dataset.precedence===e)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function gd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function hd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var mi=null;function Bs(t,e,l){if(mi===null){var n=new Map,a=mi=new Map;a.set(l,n)}else a=mi,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[hu]||u[Mt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var c=n.get(i);c?c.push(u):n.set(i,[u])}}return n}function bf(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function X1(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ls(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Bv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Lv(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Ys(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Lv(e),t.suspenseyImages.push(e)),t=K1.bind(t),e.decode().then(t,t))}function V1(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=da(n.href),u=e.querySelector(Nu(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=du.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,_t(u);return}u=e.ownerDocument||e,n=qv(n),(a=Oe.get(a))&&gd(n,a),u=u.createElement("link"),_t(u);var i=u;i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Bt(u,"link",n),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=du.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var vi=0;function Z1(t,e){return t.stylesheets&&t.count===0&&gi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&gi(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&vi===0&&(vi=62500*f1());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&gi(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>vi?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Yv(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)gi(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function du(){this.count--,Yv(this)}function K1(){this.imgCount--,Yv(this)}var Zi=null;function gi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zi=new Map,e.forEach(J1,t),Zi=null,du.call(t))}function J1(t,e){if(!(e.state.loading&4)){var l=Zi.get(t);if(l)var n=l.get(null);else{l=new Map,Zi.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var i=a[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),n=i)}n&&l.set(null,n)}a=e.instance,i=a.getAttribute("data-precedence"),u=l.get(i)||n,u===n&&l.set(null,a),l.set(i,a),this.count++,n=du.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var ra={$$typeof:Ge,Provider:null,Consumer:null,_currentValue:nn,_currentValue2:nn,_threadCount:0};function k1(t,e,l,n,a,u,i,c,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bc(0),this.hiddenUpdates=Bc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.transitionTypes=null,this.incompleteTransitions=new Map}function Gv(t,e,l,n,a,u,i,c,o,f,m,g){return t=new k1(t,e,l,i,o,f,m,g,c),e=1,u===!0&&(e|=24),u=It(3,null,null,e),t.current=u,u.stateNode=t,e=Lf(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},jf(u),t}function jv(t){return t?(t=wn,t):wn}function wv(t,e,l,n,a,u){a=jv(a),n.context===null?n.context=a:n.pendingContext=a,n=Cl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Ml(t,n,e),l!==null&&(Pt(l,t,e),Qa(l,t,e))}function Gs(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function pd(t,e){Gs(t,e),(t=t.alternate)&&Gs(t,e)}function Qv(t){if(t.tag===13||t.tag===31){var e=Sn(t,67108864);e!==null&&Pt(e,t,67108864),pd(t,67108864)}}function js(t){if(t.tag===13||t.tag===31){var e=re();e=zf(e);var l=Sn(t,e);l!==null&&Pt(l,t,e),pd(t,e)}}var sa=!0;function $1(t,e,l,n){var a=C.T;C.T=null;var u=k.p;try{k.p=2,bd(t,e,l,n)}finally{k.p=u,C.T=a}}function F1(t,e,l,n){var a=C.T;C.T=null;var u=k.p;try{k.p=8,bd(t,e,l,n)}finally{k.p=u,C.T=a}}function bd(t,e,l,n){if(sa){var a=Sf(n);if(a===null)uo(t,e,n,Ki,l),ws(t,n);else if(I1(a,t,e,l,n))n.stopPropagation();else if(ws(t,n),e&4&&-1<W1.indexOf(t)){for(;a!==null;){var u=va(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Il(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var o=1<<31-de(i);c.entanglements[1]|=o,i&=~o}Je(u),(J&6)===0&&(ji=oe()+500,Tu(0,!1))}}break;case 31:case 13:c=Sn(u,2),c!==null&&Pt(c,u,2),oc(),pd(u,2)}if(u=Sf(n),u===null&&uo(t,e,n,Ki,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else uo(t,e,n,null,l)}}function Sf(t){return t=xf(t),Sd(t)}var Ki=null;function Sd(t){if(Ki=null,t=en(t),t!==null){var e=yu(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=Js(e),t!==null)return t;t=null}else if(l===31){if(t=ks(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ki=t,null}function Xv(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(rg()){case ty:return 2;case ey:return 8;case Ei:case sg:return 32;case ly:return 268435456;default:return 32}default:return 32}}var Ef=!1,Bl=null,Ll=null,Yl=null,ru=new Map,su=new Map,Tl=[],W1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ws(t,e){switch(t){case"focusin":case"focusout":Bl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Yl=null;break;case"pointerover":case"pointerout":ru.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":su.delete(e.pointerId)}}function Ca(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=va(e),e!==null&&Qv(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function I1(t,e,l,n,a){switch(e){case"focusin":return Bl=Ca(Bl,t,e,l,n,a),!0;case"dragenter":return Ll=Ca(Ll,t,e,l,n,a),!0;case"mouseover":return Yl=Ca(Yl,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return ru.set(u,Ca(ru.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,su.set(u,Ca(su.get(u)||null,t,e,l,n,a)),!0}return!1}function Vv(t){var e=en(t.target);if(e!==null){var l=yu(e);if(l!==null){if(e=l.tag,e===13){if(e=Js(l),e!==null){t.blockedOn=e,yr(t.priority,function(){js(l)});return}}else if(e===31){if(e=ks(l),e!==null){t.blockedOn=e,yr(t.priority,function(){js(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Sf(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);No=n,l.target.dispatchEvent(n),No=null}else return e=va(l),e!==null&&Qv(e),t.blockedOn=l,!1;e.shift()}return!0}function Qs(t,e,l){hi(t)&&l.delete(e)}function P1(){Ef=!1,Bl!==null&&hi(Bl)&&(Bl=null),Ll!==null&&hi(Ll)&&(Ll=null),Yl!==null&&hi(Yl)&&(Yl=null),ru.forEach(Qs),su.forEach(Qs)}function Wu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ef||(Ef=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,P1)))}var Iu=null;function Xs(t){Iu!==t&&(Iu=t,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,function(){Iu===t&&(Iu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Sd(n||l)===null)continue;break}var u=va(l);u!==null&&(t.splice(e,3),e-=3,Go(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ya(t){function e(o){return Wu(o,t)}Bl!==null&&Wu(Bl,t),Ll!==null&&Wu(Ll,t),Yl!==null&&Wu(Yl,t),ru.forEach(e),su.forEach(e);for(var l=0;l<Tl.length;l++){var n=Tl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Tl.length&&(l=Tl[0],l.blockedOn===null);)Vv(l),l.blockedOn===null&&Tl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],i=a[ee]||null;if(typeof u=="function")i||Xs(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(a=u,i=u[ee]||null)c=i.formAction;else if(Sd(a)!==null)continue}else c=i.action;typeof c=="function"?l[n+1]=c:(l.splice(n,3),n-=3),Xs(l)}}}function Zv(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Ed(t){this._internalRoot=t}rc.prototype.render=Ed.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(p(409));var l=e.current,n=re();wv(l,n,t,e,null,null)};rc.prototype.unmount=Ed.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;wv(t.current,2,null,t,null,null),oc(),e[ma]=null}};function rc(t){this._internalRoot=t}rc.prototype.unstable_scheduleHydration=function(t){if(t){var e=oy();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Tl.length&&e!==0&&e<Tl[l].priority;l++);Tl.splice(l,0,t),l===0&&Vv(t)}};var Vs=Zs.version;if(Vs!=="19.3.0")throw Error(p(527,Vs,"19.3.0"));k.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(p(188)):(t=Object.keys(t).join(","),Error(p(268,t)));return t=tg(e),t=t!==null?$s(t):null,t=t===null?null:t.stateNode,t};var tp={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ma=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ma.isDisabled&&Ma.supportsFiber))try{mu=Ma.inject(tp),fe=Ma}catch{}var Ma;sc.createRoot=function(t,e){if(!Ks(t))throw Error(p(299));var l=!1,n="",a=zm,u=Am,i=Dm;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Gv(t,1,!1,null,null,l,n,null,a,u,i,Zv),t[ma]=e.current,sd(t),new Ed(e)};sc.hydrateRoot=function(t,e,l){if(!Ks(t))throw Error(p(299));var n=!1,a="",u=zm,i=Am,c=Dm,o=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),e=Gv(t,1,!0,e,l??null,n,a,o,u,i,c,Zv),e.context=jv(null),l=e.current,n=re(),n=zf(n),a=Cl(n),a.callback=null,Ml(l,a,n),l=n,e.current.lanes=l,gu(e,l),Je(e),t[ma]=e.current,sd(t),new rc(e)};sc.version="19.3.0"});var $v=Me((Up,kv)=>{"use strict";function Jv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jv)}catch(t){console.error(t)}}Jv(),kv.exports=Kv()});var Iv=Me(yc=>{"use strict";var ep=Symbol.for("react.transitional.element"),lp=Symbol.for("react.fragment");function Wv(t,e,l){var n=null;if(l!==void 0&&(n=""+l),e.key!==void 0&&(n=""+e.key),"key"in e){l={};for(var a in e)a!=="key"&&(l[a]=e[a])}else l=e;return e=l.ref,{$$typeof:ep,type:t,key:n,ref:e!==void 0?e:null,props:l}}yc.Fragment=lp;yc.jsx=Wv;yc.jsxs=Wv});var $=Me((Bp,Pv)=>{"use strict";Pv.exports=Iv()});var T0=L(me(),1),N0=L($v(),1);var Tn=L(me(),1);var Kl=class extends Error{constructor(l,n,a){super(a);this.status=l;this.code=n}status;code},Fv;async function Td(t,e,l){let n={Accept:"application/json"};t==="POST"&&(Fv??=(await Td("GET","/api/session")).data.csrf,n["Content-Type"]="application/json",n["X-Duo-CSRF"]=Fv);let a=await fetch(e,{method:t,headers:n,credentials:"same-origin",...l===void 0?{}:{body:JSON.stringify(l)}}),u;try{u=await a.json()}catch{u=void 0}if(!a.ok||u===void 0||!u.ok)throw new Kl(a.status,u?.error?.code??"UI_TRANSPORT",u?.error?.message??`HTTP ${a.status}`);return u}var ke={get:t=>Td("GET",t),post:(t,e)=>Td("POST",t,e)},Jl=t=>new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0&&e!=="").map(([e,l])=>[e,String(l)])).toString();var ft=L($(),1);function Yt(t){let[e,l]=(0,Tn.useState)({state:"loading"}),[n,a]=(0,Tn.useState)(0);return(0,Tn.useEffect)(()=>{if(t===void 0)return;let u=!0;return l({state:"loading"}),ke.get(t).then(i=>{u&&l({state:"ok",data:i.data,...i.meta===void 0?{}:{durationMs:i.meta.durationMs}})},i=>{u&&l({state:"error",error:i instanceof Error?i:new Error(String(i))})}),()=>{u=!1}},[t,n]),[e,(0,Tn.useCallback)(()=>a(u=>u+1),[])]}function Gt(){return(0,ft.jsx)("p",{role:"status",className:"muted",children:"Loading\u2026"})}function ht(t){let e=t.error,l=e instanceof Kl&&e.status===401;return(0,ft.jsxs)("div",{role:"alert",className:"box box-error",children:[(0,ft.jsx)("strong",{children:l?"No UI session":"Request failed"}),(0,ft.jsx)("p",{children:l?"Open the URL printed by duoctl ui (the session is valid for one server run).":e.message}),e instanceof Kl?(0,ft.jsxs)("p",{className:"muted",children:[e.code," \xB7 HTTP ",e.status]}):null]})}function pt(t){return(0,ft.jsxs)("section",{"aria-labelledby":"page-title",children:[(0,ft.jsxs)("header",{className:"page-head",children:[(0,ft.jsx)("h1",{id:"page-title",children:t.title}),t.onRefresh===void 0?null:(0,ft.jsx)("button",{type:"button",onClick:t.onRefresh,children:"Refresh"}),t.durationMs===void 0?null:(0,ft.jsxs)("span",{className:"muted small","aria-label":"server time",children:[t.durationMs," ms"]})]}),t.children]})}function Y(t){return(0,ft.jsxs)("details",{className:"section",open:t.open??!0,children:[(0,ft.jsx)("summary",{children:(0,ft.jsxs)("h2",{children:[t.title,t.count===void 0?null:(0,ft.jsxs)("span",{className:"count",children:[" (",t.count,")"]})]})}),(0,ft.jsx)("div",{className:"section-body",children:t.children})]})}function B(t){return(0,ft.jsx)("p",{className:"empty",children:t.children})}var np={PASS:"\u2713",WARN:"!",ASK:"?",BLOCK:"\u2715"};function sl(t){let e=t.verdict??"\u2014";return(0,ft.jsxs)("span",{className:`badge verdict verdict-${e.toLowerCase()}`,children:[(0,ft.jsxs)("span",{"aria-hidden":"true",children:[np[e]??""," "]}),e]})}function U(t){return(0,ft.jsx)("span",{className:`badge tone-${t.tone??"info"}`,children:t.text})}var ap={introduced:{text:"introduced",tone:"block",help:"new since the Adoption Baseline"},"pre-existing":{text:"pre-existing",tone:"muted",help:"existed at adoption, not touched by this change: history, not a new violation"},"pre-existing-touched":{text:"pre-existing \xB7 touched",tone:"warn",help:"existed at adoption and this change touches it: a warning, never a block"},"unverified-at-adoption":{text:"unverified at adoption",tone:"warn",help:"the baseline could not analyze this language: a warning, never a block"},"adoption-bootstrap":{text:"adoption bootstrap",tone:"muted",help:"Truth files exactly as init wrote them: not reviewed until changed"}};function yl(t){if(t.value===void 0)return null;let e=ap[t.value]??{text:t.value,tone:"info",help:""};return(0,ft.jsx)("span",{className:`badge tone-${e.tone}`,title:e.help,children:e.text})}function Ea(t){let e=t.level==="L0"?"L0 \xB7 file-level analysis":t.level==="L1"?"L1 \xB7 structural":t.level==="L2"?"L2 \xB7 partial semantics":t.level;return(0,ft.jsx)("span",{className:`badge level level-${t.level.toLowerCase()}`,children:e})}function $e(t){let e=t.location;if(e===void 0)return null;let l=e.startLine===void 0?"":e.endLine===void 0||e.endLine===e.startLine?`:${e.startLine}`:`:${e.startLine}-${e.endLine}`;return(0,ft.jsxs)("code",{className:"loc",children:[e.path,l]})}function ze(t){return(0,ft.jsx)("code",{className:"command",children:t.children})}var mc=t=>typeof t.status=="object"&&t.status!==null;var Q=L($(),1);function t0(){let[t,e]=Yt("/api/overview");return(0,Q.jsxs)(pt,{title:"Analysis coverage",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,Q.jsx)("p",{className:"muted",children:"Every file in the Git repository gets file-level analysis (L0). Languages with an analyzer get structure (L1); TypeScript and JavaScript also get resolved imports and calls (L2). A missing analyzer lowers precision; it is not a failure."}),t.state==="loading"?(0,Q.jsx)(Gt,{}):t.state==="error"?(0,Q.jsx)(ht,{error:t.error}):!mc(t.data)||t.data.status.analysis===null?(0,Q.jsxs)(B,{children:["No index yet: run ",(0,Q.jsx)(ze,{children:"duoctl index"}),"."]}):(0,Q.jsx)(up,{analysis:t.data.status.analysis})]})}function up(t){let e=t.analysis;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("p",{children:[e.files.total," indexed files \xB7 ",e.files.structural," with structural analysis \xB7 ",e.files.fileOnly," file-level only"]}),(0,Q.jsxs)("table",{children:[(0,Q.jsx)("thead",{children:(0,Q.jsx)("tr",{children:["Language","Level","Files","Analyzer","Symbols","Tests","Imports","Calls","Type resolution"].map(l=>(0,Q.jsx)("th",{scope:"col",children:l},l))})}),(0,Q.jsxs)("tbody",{children:[e.languages.map(l=>(0,Q.jsxs)("tr",{children:[(0,Q.jsx)("th",{scope:"row",children:l.language}),(0,Q.jsx)("td",{children:(0,Q.jsx)(Ea,{level:l.level})}),(0,Q.jsx)("td",{children:l.files}),(0,Q.jsx)("td",{children:l.analyzer}),(0,Q.jsx)("td",{children:l.symbols}),(0,Q.jsx)("td",{children:l.tests}),(0,Q.jsx)("td",{children:l.imports}),(0,Q.jsx)("td",{children:l.calls}),(0,Q.jsx)("td",{children:l.typeResolution})]},l.language)),e.fileOnly.files===0?null:(0,Q.jsxs)("tr",{children:[(0,Q.jsx)("th",{scope:"row",children:"other files"}),(0,Q.jsx)("td",{children:(0,Q.jsx)(Ea,{level:"L0"})}),(0,Q.jsx)("td",{children:e.fileOnly.files}),(0,Q.jsx)("td",{children:"\u2014"}),(0,Q.jsxs)("td",{colSpan:5,children:["File-level analysis: path, fingerprint, Git history and diff, Truth references. ",e.fileOnly.extensions.map(l=>`${l.extension===""?"(no extension)":`.${l.extension}`} ${l.files}`).join(" \xB7 ")]})]})]})]}),(0,Q.jsx)("p",{className:"muted small",children:'Limitations follow from these values: "syntactic" imports do not link files, "syntactic" calls have no CALLS edges, "partial" resolves only what syntax makes certain. A missing edge is not proof that a relation does not exist.'})]})}var Au=L(me(),1);var e0=L(me(),1),l0=L($(),1),Nd="duo:navigate",ip=t=>(window.addEventListener("popstate",t),window.addEventListener(Nd,t),()=>{window.removeEventListener("popstate",t),window.removeEventListener(Nd,t)});function Ta(){return(0,e0.useSyncExternalStore)(ip,()=>window.location.pathname+window.location.search,()=>"/overview")}function zu(t){window.history.pushState(null,"",t),window.dispatchEvent(new Event(Nd)),document.getElementById("main")?.focus()}function at(t){let e=l=>{l.button!==0||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||(l.preventDefault(),zu(t.to))};return(0,l0.jsx)("a",{href:t.to,onClick:e,className:t.className,"aria-current":t.current===!0?"page":void 0,children:t.children})}var le=t=>`/entity/${encodeURIComponent(t)}`;var b=L($(),1);function vc(t){return t.items.length===0?(0,b.jsx)(B,{children:"None."}):(0,b.jsx)("ol",{className:"packet-items",children:t.items.map(e=>(0,b.jsxs)("li",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(at,{to:le(e.ref),children:e.ref})," ",(0,b.jsxs)("span",{className:"muted",children:["rank ",e.rank," \xB7 ",e.level," \xB7 ",e.tokens," tokens"]})]}),(0,b.jsx)("pre",{className:"slice",children:e.text})]},e.id))})}function Od(t){let e=t.gaps.filter(n=>n.action!=="ignore"),l=t.gaps.length-e.length;return(0,b.jsxs)(b.Fragment,{children:[e.length===0?(0,b.jsx)(B,{children:"No gap needs attention."}):(0,b.jsx)("ul",{children:e.map(n=>(0,b.jsxs)("li",{children:[(0,b.jsx)(U,{text:n.action.toUpperCase(),tone:n.action==="ask"?"warn":"info"})," ",n.kind," ",(0,b.jsxs)("span",{className:"muted",children:["(",n.relevance,")"]}),n.text===void 0?null:(0,b.jsxs)(b.Fragment,{children:[" \u2014 ",n.text]})]},n.id))}),l===0?null:(0,b.jsxs)("p",{className:"muted small",children:[l," gap(s) judged not relevant (IGNORE) are not listed."]})]})}function n0(){let[t,e]=(0,Au.useState)(""),[l,n]=(0,Au.useState)(""),[a,u]=(0,Au.useState)(!1),[i,c]=(0,Au.useState)(),o=async()=>{u(!0);try{let f=await ke.post("/api/context",{task:t,...l.trim()===""?{}:{budget:Number(l)}});c({data:f.data,...f.meta===void 0?{}:{ms:f.meta.durationMs}})}catch(f){c(f instanceof Error?f:new Error(String(f)))}finally{u(!1)}};return(0,b.jsxs)(pt,{title:"Context Inspector",durationMs:i!==void 0&&!(i instanceof Error)?i.ms:void 0,children:[(0,b.jsxs)("form",{className:"form",onSubmit:f=>{f.preventDefault(),t.trim()!==""&&o()},children:[(0,b.jsxs)("label",{children:["Task ",(0,b.jsx)("textarea",{value:t,onChange:f=>e(f.target.value),rows:2,placeholder:"AUTH-03, a symbol, a path or a sentence"})]}),(0,b.jsxs)("label",{children:["Budget (tokens, optional) ",(0,b.jsx)("input",{value:l,onChange:f=>n(f.target.value),inputMode:"numeric",size:8})]}),(0,b.jsx)("button",{type:"submit",disabled:a||t.trim()==="",children:a?"Compiling\u2026":"Compile context"})]}),i===void 0?null:i instanceof Error?(0,b.jsx)(ht,{error:i}):(0,b.jsx)(cp,{data:i.data})]})}function cp(t){let{data:e}=t;if(e.status==="index-required")return(0,b.jsxs)("p",{role:"status",className:"box box-warn",children:[(0,b.jsx)(U,{text:"index-required",tone:"warn"})," The index is not current. Run ",(0,b.jsx)(ze,{children:"duoctl index"}),", then compile again."]});if(e.status==="not-initialized"||e.status==="failed")return(0,b.jsxs)("p",{role:"alert",className:"box box-error",children:[e.status,": ",(e.diagnostics??[]).map(u=>u.message).join("; ")]});let l=e.context,n=l?.packet,a=e.gaps;return(0,b.jsxs)("div",{"aria-live":"polite",children:[(0,b.jsx)("p",{children:(0,b.jsx)(U,{text:`status: ${e.status}`,tone:e.status==="ready"?"ok":"warn"})}),a==null?null:a.requiresHumanInput&&a.primaryQuestion!==void 0?(0,b.jsxs)("div",{role:"alert",className:"box box-warn",children:[(0,b.jsx)("strong",{children:"Question for the human:"})," ",a.primaryQuestion.question,a.additionalQuestions.length===0?null:(0,b.jsx)("ul",{children:a.additionalQuestions.map(u=>(0,b.jsx)("li",{children:u.question},u.id))})]}):null,l?.resolution?.ambiguities.length?(0,b.jsxs)("div",{className:"box box-warn",children:["Ambiguous: ",l.resolution.ambiguities.map(u=>`${u.term} \u2192 ${u.options.map(i=>i.ref).join(", ")}`).join("; ")]}):null,n===void 0?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Y,{title:"Token metrics",children:(0,b.jsxs)("dl",{className:"facts",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Packet tokens"}),(0,b.jsxs)("dd",{children:[n.metrics.budget.used," of ",n.metrics.budget.total," (o200k_base)"]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Candidate tokens"}),(0,b.jsxs)("dd",{children:[n.metrics.candidateTokens," (",n.metrics.candidates," candidates, ",n.metrics.selected," selected, ",n.metrics.omitted," omitted)"]})]}),l?.metrics===void 0?null:(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Repository tokens"}),(0,b.jsxs)("dd",{children:[l.metrics.repository.tokens," in ",l.metrics.repository.files," files"]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"LLM calls"}),(0,b.jsx)("dd",{children:n.metrics.llmCalls})]})]})}),(0,b.jsx)(Y,{title:"Seeds",count:n.seeds.length,children:(0,b.jsx)("ul",{children:n.seeds.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)(at,{to:le(u.ref),children:u.ref})," ",(0,b.jsxs)("span",{className:"muted",children:["(",u.match,")"]})]},u.id))})}),(0,b.jsx)(Y,{title:"Confirmed intent",count:n.intent.requirements.length+n.intent.constraints.length,children:(0,b.jsx)(vc,{items:[...n.intent.requirements,...n.intent.constraints]})}),(0,b.jsx)(Y,{title:"Active decisions",count:n.decisions.active.length,children:(0,b.jsx)(vc,{items:n.decisions.active})}),(0,b.jsx)(Y,{title:"Relevant code",count:n.code.length,children:(0,b.jsx)(vc,{items:n.code})}),(0,b.jsx)(Y,{title:"Tests",count:n.tests.length,children:(0,b.jsx)(vc,{items:n.tests})}),(0,b.jsx)(Y,{title:"Pending human decisions (not confirmed)",count:n.pendingDecisions.length,children:n.pendingDecisions.length===0?(0,b.jsx)(B,{children:"None."}):(0,b.jsx)("ul",{children:n.pendingDecisions.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)(U,{text:"PENDING / NOT CONFIRMED",tone:"info"})," ",u.id," ",u.title]},u.id))})}),(0,b.jsx)(Y,{title:"Knowledge gaps",count:a?.assessment.gaps.filter(u=>u.action!=="ignore").length??0,children:a==null?(0,b.jsx)(B,{children:"Not assessed."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{className:"muted small",children:a.notice}),(0,b.jsx)(Od,{gaps:a.assessment.gaps})]})}),(0,b.jsx)(Y,{title:"Evidence",count:n.evidence.length,open:!1,children:(0,b.jsx)("ul",{children:n.evidence.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)("code",{children:u.ref}),": ",u.via.steps.length===0?"seed":u.via.steps.map(i=>`${i.from} ${i.type} ${i.to}`).join(" \u2192 ")]},u.id))})}),(0,b.jsx)(Y,{title:"Limitations",count:n.limitations.length,open:!1,children:(0,b.jsx)("ul",{children:n.limitations.map(u=>(0,b.jsx)("li",{children:u.message},u.code))})}),(0,b.jsx)(Y,{title:"Omitted candidates",count:n.omittedCandidates.length,open:!1,children:n.omittedCandidates.length===0?(0,b.jsx)(B,{children:"Nothing was left out."}):(0,b.jsx)("ul",{children:n.omittedCandidates.map(u=>(0,b.jsxs)("li",{children:[u.ref," ",(0,b.jsxs)("span",{className:"muted",children:["rank ",u.rank," \xB7 ",u.tier]})]},u.id))})})]})]})}var kl=L(me(),1);var N=L($(),1);function u0(){let[t,e]=Yt("/api/proposals"),[l,n]=(0,kl.useState)(),a=(u,i=!1)=>{n({text:u,error:i}),e()};return(0,N.jsxs)(pt,{title:"Pending decisions",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,N.jsxs)("p",{className:"muted",children:["AI may propose; only a human confirms or rejects. Actions here use the same DecisionService as ",(0,N.jsx)(ze,{children:"duoctl decision"})," with your Git user name as the actor label (not an authentication)."]}),l===void 0?null:(0,N.jsx)("p",{role:l.error?"alert":"status",className:l.error?"box box-error":"box box-ok",children:l.text}),t.state==="loading"?(0,N.jsx)(Gt,{}):t.state==="error"?(0,N.jsx)(ht,{error:t.error}):(0,N.jsx)(op,{data:t.data,done:a})]})}function op(t){let{proposals:e,previews:l}=t.data;if(e===void 0)return(0,N.jsx)(B,{children:"Not a DUO project yet: run duoctl init."});let n=a=>e.filter(u=>u.status===a);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(Y,{title:"Pending",count:n("pending").length,children:n("pending").length===0?(0,N.jsx)(B,{children:"No proposal is waiting for a human."}):n("pending").map(a=>(0,N.jsx)(fp,{p:a,preview:l[a.id],done:t.done},a.id))}),(0,N.jsx)(Y,{title:"Committed (confirmed as Decisions)",count:n("committed").length,open:!1,children:n("committed").length===0?(0,N.jsx)(B,{children:"None."}):(0,N.jsx)("ul",{children:n("committed").map(a=>(0,N.jsxs)("li",{children:[a.id," ",a.title," \u2192 ",(0,N.jsx)(at,{to:le(a.decisionId??""),children:a.decisionId})," ",(0,N.jsx)(U,{text:"CONFIRMED",tone:"ok"})]},a.id))})}),(0,N.jsx)(Y,{title:"Rejected",count:n("rejected").length,open:!1,children:n("rejected").length===0?(0,N.jsx)(B,{children:"None."}):(0,N.jsx)("ul",{children:n("rejected").map(a=>(0,N.jsxs)("li",{children:[a.id," ",a.title," ",(0,N.jsx)(U,{text:"REJECTED",tone:"muted"}),a.reason===void 0?null:(0,N.jsxs)("span",{className:"muted",children:[" \xB7 ",a.reason]})]},a.id))})})]})}function a0(t){let{p:e}=t;return(0,N.jsxs)("dl",{className:"facts",children:[(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Question"}),(0,N.jsx)("dd",{children:(0,N.jsx)("code",{children:e.question})})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Answer"}),(0,N.jsx)("dd",{children:e.answer})]}),e.rationale===null?null:(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Rationale"}),(0,N.jsx)("dd",{children:e.rationale})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Governs"}),(0,N.jsx)("dd",{children:[...e.governs.requirements,...e.governs.paths,...e.governs.symbols].join(", ")||"\u2014"})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Supersedes"}),(0,N.jsx)("dd",{children:e.supersedes??"\u2014"})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Proposed by"}),(0,N.jsxs)("dd",{children:[e.proposedBy,e.proposedAt===null?null:(0,N.jsxs)("span",{className:"muted",children:[" \xB7 ",e.proposedAt]})]})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"File"}),(0,N.jsx)("dd",{children:(0,N.jsx)($e,{location:e.location})})]})]})}function fp(t){let{p:e,preview:l}=t,n=(0,kl.useRef)(null),a=(0,kl.useRef)(null),[u,i]=(0,kl.useState)(""),[c,o]=(0,kl.useState)(""),[f,m]=(0,kl.useState)(!1),g=async r=>{m(!0);try{let s=r==="confirm"?{confirmId:u}:c.trim()===""?{}:{reason:c.trim()},E=(await ke.post(`/api/proposals/${encodeURIComponent(e.id)}/${r}`,s)).data;E.status==="failed"?t.done(`${e.id}: ${(E.diagnostics??[]).map(D=>`${D.code} ${D.message}`).join("; ")}`,!0):r==="confirm"?t.done(`${e.id} confirmed as ${E.result?.decisionId??"?"} (${E.result?.path??""}). Run duoctl index so the graph shows it.${(E.warnings??[]).length>0?` Warnings: ${(E.warnings??[]).map(D=>D.code).join(", ")}`:""}`):t.done(`${e.id} rejected.`)}catch(s){t.done(s instanceof Kl?`${s.code}: ${s.message}`:String(s),!0)}finally{m(!1),n.current?.close(),a.current?.close()}};return(0,N.jsxs)("article",{className:"card","aria-labelledby":`p-${e.id}`,children:[(0,N.jsxs)("h3",{id:`p-${e.id}`,children:[e.id," ",(0,N.jsx)(U,{text:"PROPOSED \xB7 pending",tone:"info"})," ",e.title]}),(0,N.jsx)(a0,{p:e}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsx)("button",{type:"button",onClick:()=>{i(""),n.current?.showModal()},children:"Confirm\u2026"}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>{o(""),a.current?.showModal()},children:"Reject\u2026"})]}),(0,N.jsx)("dialog",{ref:n,"aria-labelledby":`c-${e.id}`,children:(0,N.jsxs)("form",{method:"dialog",onSubmit:r=>{r.preventDefault(),u.trim()===e.id&&g("confirm")},children:[(0,N.jsxs)("h2",{id:`c-${e.id}`,children:["Confirm ",e.id,"?"]}),(0,N.jsxs)("p",{children:["Confirming makes this proposal a ",(0,N.jsx)("strong",{children:"confirmed Decision"})," in Project Truth",l?.nextDecisionId===void 0?"":` (${l.nextDecisionId})`,"."]}),(0,N.jsx)(a0,{p:e}),l?.stale===void 0?null:(0,N.jsxs)("p",{role:"alert",className:"box box-warn",children:["Stale: Project Truth changed since this proposal was made",l.stale.changedRefs.length>0?` (changed: ${l.stale.changedRefs.join(", ")})`:"",". Check it before confirming."]}),l?.supersedes===void 0?null:(0,N.jsxs)("p",{className:"box box-warn",children:["It supersedes ",(0,N.jsx)("strong",{children:l.supersedes.id})," \u201C",l.supersedes.title,"\u201D (",l.supersedes.state,"), which becomes SUPERSEDED."]}),l?.error===void 0?null:(0,N.jsxs)("p",{role:"alert",className:"box box-error",children:["Cannot preview: ",l.error.join(", ")]}),(0,N.jsxs)("label",{children:["Type ",(0,N.jsx)("code",{children:e.id})," to confirm ",(0,N.jsx)("input",{value:u,onChange:r=>i(r.target.value),autoFocus:!0,"aria-describedby":`c-${e.id}`})]}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsxs)("button",{type:"submit",disabled:f||u.trim()!==e.id,children:["Confirm ",e.id]}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>n.current?.close(),children:"Cancel"})]})]})}),(0,N.jsx)("dialog",{ref:a,"aria-labelledby":`r-${e.id}`,children:(0,N.jsxs)("form",{method:"dialog",onSubmit:r=>{r.preventDefault(),g("reject")},children:[(0,N.jsxs)("h2",{id:`r-${e.id}`,children:["Reject ",e.id,"?"]}),(0,N.jsx)("p",{children:"The proposal stays as a rejected record; it never becomes a Decision."}),(0,N.jsxs)("label",{children:["Reason (optional) ",(0,N.jsx)("textarea",{value:c,onChange:r=>o(r.target.value),maxLength:2e3,rows:3})]}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsxs)("button",{type:"submit",disabled:f,children:["Reject ",e.id]}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>a.current?.close(),children:"Cancel"})]})]})})]})}var S=L($(),1),dp={CONFIRMED:"ok",PROPOSED:"info",SUPERSEDED:"muted",REJECTED:"muted"};function zd(t){return(0,S.jsx)(U,{text:t.label,tone:dp[t.label]})}function gc(t){return t.items.length===0?(0,S.jsx)(B,{children:"None."}):(0,S.jsxs)("table",{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{scope:"col",children:"ID"}),(0,S.jsx)("th",{scope:"col",children:"State"}),(0,S.jsx)("th",{scope:"col",children:"Decision"}),(0,S.jsx)("th",{scope:"col",children:"Enforcement"}),(0,S.jsx)("th",{scope:"col",children:"Source"})]})}),(0,S.jsx)("tbody",{children:t.items.map(e=>(0,S.jsxs)("tr",{children:[(0,S.jsx)("td",{children:(0,S.jsx)(at,{to:le(e.id),children:e.id})}),(0,S.jsxs)("td",{children:[(0,S.jsx)(zd,{label:e.label}),e.supersededBy===null?null:(0,S.jsxs)("span",{className:"muted",children:[" by ",e.supersededBy]})]}),(0,S.jsxs)("td",{children:[(0,S.jsx)("strong",{children:e.title}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{className:"muted",children:e.question})," = ",e.answer]}),(0,S.jsx)("td",{children:e.enforcement??"\u2014"}),(0,S.jsx)("td",{children:(0,S.jsx)($e,{location:e.location})})]},e.id))})]})}function i0(){let[t,e]=Yt("/api/direction");return(0,S.jsx)(pt,{title:"Direction",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:t.state==="loading"?(0,S.jsx)(Gt,{}):t.state==="error"?(0,S.jsx)(ht,{error:t.error}):(0,S.jsx)(rp,{d:t.data})})}function rp(t){let{d:e}=t;if(e.requirements===void 0)return(0,S.jsx)(B,{children:"Not a DUO project yet: run duoctl init."});let l=a=>e.decisions.filter(u=>u.label===a),n=e.proposals.filter(a=>a.status==="pending").length;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{title:"Vision",children:e.vision===null?(0,S.jsx)(B,{children:"No vision document yet."}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("p",{children:[(0,S.jsx)(U,{text:e.vision.status.toUpperCase(),tone:e.vision.status==="confirmed"?"ok":"info"})," ",(0,S.jsx)($e,{location:e.vision.location})]}),(0,S.jsx)("pre",{className:"truth",children:e.vision.body.trim()})]})}),(0,S.jsx)(Y,{title:"Milestones",count:e.milestones.length,children:e.milestones.length===0?(0,S.jsx)(B,{children:"No milestones yet."}):(0,S.jsx)("ul",{children:e.milestones.map(a=>(0,S.jsxs)("li",{children:[(0,S.jsx)(at,{to:le(a.id),children:a.id})," ",a.title," ",(0,S.jsx)(U,{text:a.state,tone:"muted"}),a.current?(0,S.jsx)(U,{text:"current",tone:"ok"}):null," ",(0,S.jsx)($e,{location:a.location})]},a.id))})}),(0,S.jsx)(Y,{title:"Requirements",count:e.requirements.length,children:e.requirements.length===0?(0,S.jsx)(B,{children:"No confirmed requirements yet. DUO can still analyze repository structure and changes."}):(0,S.jsxs)("table",{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{scope:"col",children:"ID"}),(0,S.jsx)("th",{scope:"col",children:"Title"}),(0,S.jsx)("th",{scope:"col",children:"Status"}),(0,S.jsx)("th",{scope:"col",children:"Milestone"}),(0,S.jsx)("th",{scope:"col",children:"Priority"}),(0,S.jsx)("th",{scope:"col",children:"Source"})]})}),(0,S.jsx)("tbody",{children:e.requirements.map(a=>(0,S.jsxs)("tr",{children:[(0,S.jsx)("td",{children:(0,S.jsx)(at,{to:le(a.id),children:a.id})}),(0,S.jsx)("td",{children:a.title}),(0,S.jsx)("td",{children:a.status}),(0,S.jsx)("td",{children:a.milestone??"\u2014"}),(0,S.jsx)("td",{children:a.priority??"\u2014"}),(0,S.jsx)("td",{children:(0,S.jsx)($e,{location:a.location})})]},a.id))})]})}),(0,S.jsx)(Y,{title:"Constraints",count:e.constraints.length,children:e.constraints.length===0?(0,S.jsx)(B,{children:"No constraints yet."}):(0,S.jsx)("ul",{children:e.constraints.map(a=>(0,S.jsxs)("li",{children:[(0,S.jsx)(at,{to:le(a.id),children:a.id})," ",(0,S.jsx)(U,{text:a.state.toUpperCase(),tone:a.state==="confirmed"?"ok":"muted"})," ",a.statement," ",(0,S.jsxs)("span",{className:"muted",children:["(",a.enforcement,")"]})," ",(0,S.jsx)($e,{location:a.location})]},a.id))})}),(0,S.jsx)(Y,{title:"Active decisions",count:l("CONFIRMED").length,children:(0,S.jsx)(gc,{items:l("CONFIRMED")})}),(0,S.jsxs)(Y,{title:"Proposed decisions (not confirmed intent)",count:l("PROPOSED").length+n,open:l("PROPOSED").length+n>0,children:[(0,S.jsx)(gc,{items:l("PROPOSED")}),n===0?null:(0,S.jsxs)("p",{children:[n," proposal(s) wait for a human: ",(0,S.jsx)(at,{to:"/decisions",children:"Pending decisions"}),". A proposal is not a Decision until a human confirms it."]})]}),(0,S.jsx)(Y,{title:"Superseded decisions",count:l("SUPERSEDED").length,open:!1,children:(0,S.jsx)(gc,{items:l("SUPERSEDED")})}),(0,S.jsx)(Y,{title:"Rejected decisions",count:l("REJECTED").length,open:!1,children:(0,S.jsx)(gc,{items:l("REJECTED")})})]})}var et=L($(),1);function c0(t){let[e,l]=Yt(`/api/entity/${encodeURIComponent(t.id)}`);return(0,et.jsx)(pt,{title:t.id,onRefresh:l,durationMs:e.state==="ok"?e.durationMs:void 0,children:e.state==="loading"?(0,et.jsx)(Gt,{}):e.state==="error"?(0,et.jsx)(ht,{error:e.error}):e.data.status!=="found"?(0,et.jsxs)(B,{children:[t.id," is not a Truth definition or graph node."]}):(0,et.jsx)(sp,{e:e.data})})}function sp(t){let{e}=t,l=e.definition;return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)("p",{children:[(0,et.jsx)(U,{text:e.type??"node",tone:"muted"})," ",l?.label===void 0?null:(0,et.jsx)(zd,{label:l.label})," ",l?.status===void 0?null:(0,et.jsx)(U,{text:l.status,tone:"info"}),e.type==="proposal"?(0,et.jsx)(U,{text:"PROPOSED \xB7 not confirmed intent",tone:"info"}):null," ",l?.title??l?.statement??""," ",(0,et.jsx)($e,{location:l?.location})]}),l?.question===void 0?null:(0,et.jsxs)("p",{children:[(0,et.jsx)("code",{children:l.question})," = ",l.answer]}),e.text===void 0?null:(0,et.jsx)(Y,{title:"Definition source",children:(0,et.jsx)("pre",{className:"truth",children:e.text})}),e.trace?.nodes===void 0?null:(0,et.jsxs)(Y,{title:"Direct relations",count:e.trace.edges?.length??0,children:[(e.trace.edges??[]).length===0?(0,et.jsx)(B,{children:"No recorded relation."}):(0,et.jsx)("ul",{children:e.trace.edges?.map(n=>(0,et.jsxs)("li",{children:[(0,et.jsx)("code",{children:n.from})," ",n.type," ",(0,et.jsx)("code",{children:n.to})]},`${n.from}${n.type}${n.to}`))}),(0,et.jsx)("p",{children:(0,et.jsx)(at,{to:`/graph?node=${encodeURIComponent(e.id)}`,children:"Explore in the graph"})})]})]})}var r0=L(me(),1);var O=L($(),1);function yp(t){return t.llm==="disabled"?{text:"LLM disabled (default): DUO works without it",tone:"muted"}:t.llm==="configured"?{text:`Semantic assistance available \xB7 ${t.llmProvider?.provider??""} ${t.llmProvider?.model??""}`.trim(),tone:"ok"}:{text:`Semantic assistance unavailable${t.llmProvider?.reason===void 0?"":` \xB7 ${t.llmProvider.reason}`}`,tone:"warn"}}function Ad(t){return t.status==="current"?(0,O.jsx)(U,{text:"index current",tone:"ok"}):(0,O.jsxs)("span",{children:[(0,O.jsx)(U,{text:`Index required (${t.status??"unknown"})`,tone:"warn"})," Run ",(0,O.jsx)(ze,{children:"duoctl index"})," in the repository, then Refresh."]})}function o0(){let[t,e]=Yt("/api/overview");return(0,O.jsx)(pt,{title:"Overview",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:t.state==="loading"?(0,O.jsx)(Gt,{}):t.state==="error"?(0,O.jsx)(ht,{error:t.error}):mc(t.data)?(0,O.jsx)(mp,{o:t.data}):(0,O.jsx)(B,{children:t.data.message??"Not a DUO project yet: run duoctl init."})})}function mp(t){let{o:e}=t,l=e.status,n=yp(l),a=Object.entries(e.requirements.byStatus).map(([u,i])=>`${u} ${i}`).join(" \xB7 ");return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("dl",{className:"facts",children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Project"}),(0,O.jsxs)("dd",{children:[l.project.name," ",(0,O.jsxs)("span",{className:"muted",children:["\xB7 vision ",l.project.vision]})]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Current milestone"}),(0,O.jsx)("dd",{children:e.currentMilestone===null?(0,O.jsx)("span",{className:"muted",children:"not set"}):(0,O.jsxs)(at,{to:`/entity/${encodeURIComponent(e.currentMilestone.id)}`,children:[e.currentMilestone.id," ",e.currentMilestone.title]})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Index"}),(0,O.jsxs)("dd",{children:[(0,O.jsx)(Ad,{status:l.index?.status}),l.index!==null&&l.index.status!=="current"?(0,O.jsxs)("span",{className:"muted",children:[" \xB7 ",l.index.changes.files," changed files"]}):null]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Adoption baseline"}),(0,O.jsx)("dd",{children:l.baseline===null?"\u2014":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(U,{text:l.baseline.status,tone:l.baseline.status==="current"||l.baseline.status==="advanced"?"ok":"muted"}),l.baseline.findings===void 0?null:(0,O.jsxs)("span",{className:"muted",children:[" \xB7 ",l.baseline.findings," pre-existing findings"]})]})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Requirements"}),(0,O.jsxs)("dd",{children:[e.requirements.total,a===""?null:(0,O.jsxs)("span",{className:"muted",children:[" \xB7 ",a]})]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Decisions"}),(0,O.jsxs)("dd",{children:[e.decisions.active," active ",(0,O.jsxs)("span",{className:"muted",children:["\xB7 ",e.decisions.total," total"]})]})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Pending human decisions"}),(0,O.jsx)("dd",{children:l.pendingDecisions.length===0?"none":(0,O.jsxs)(at,{to:"/decisions",children:[l.pendingDecisions.length," waiting for a human"]})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Declared knowledge gaps"}),(0,O.jsx)("dd",{children:e.declaredGaps.length})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"Latest recorded review"}),(0,O.jsx)("dd",{children:e.latestReview===null?(0,O.jsx)("span",{className:"muted",children:"none recorded (duoctl review --record)"}):(0,O.jsxs)(at,{to:`/reviews/${e.latestReview.id}`,children:[(0,O.jsx)(sl,{verdict:e.latestReview.verdict})," ",e.latestReview.id]})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("dt",{children:"LLM"}),(0,O.jsx)("dd",{children:(0,O.jsx)(U,{text:n.text,tone:n.tone})})]})]}),e.requirements.total===0&&e.decisions.total===0?(0,O.jsx)(B,{children:"No confirmed requirements yet. DUO can still analyze repository structure and changes."}):null,(0,O.jsx)(Y,{title:"Analysis coverage",children:l.analysis===null?(0,O.jsxs)(B,{children:["No index yet: run ",(0,O.jsx)(ze,{children:"duoctl index"}),"."]}):(0,O.jsxs)("p",{children:[l.analysis.languages.map(u=>(0,O.jsxs)("span",{className:"chip",children:[u.language," ",(0,O.jsx)(Ea,{level:u.level})," ",u.files]},u.language)),l.analysis.fileOnly.files>0?(0,O.jsxs)("span",{className:"chip",children:["other files ",(0,O.jsx)(Ea,{level:"L0"})," ",l.analysis.fileOnly.files]}):null," ",(0,O.jsx)(at,{to:"/coverage",children:"details"})]})}),(0,O.jsx)(Y,{title:"Declared knowledge gaps",count:e.declaredGaps.length,open:e.declaredGaps.length>0,children:e.declaredGaps.length===0?(0,O.jsx)(B,{children:"No UNKNOWN lines in Project Truth."}):(0,O.jsx)("ul",{children:e.declaredGaps.map(u=>(0,O.jsxs)("li",{children:[(0,O.jsx)("code",{children:u.owner}),u.key===void 0?null:(0,O.jsxs)(O.Fragment,{children:[" \xB7 ",(0,O.jsx)("code",{children:u.key})]})," \u2014 ",u.text]},u.id))})})]})}var A=L($(),1),f0=["project","milestone","requirement","decision","issue","file","symbol","test"];function s0(){let t=Ta(),e=new URLSearchParams(t.split("?")[1]??""),l=e.get("node")??"",n=e.get("kind")==="impact"?"impact":"trace",a=Math.min(3,Math.max(1,Number(e.get("depth")??"1")||1)),[u,i]=(0,r0.useState)(l),c=(m,g=n,r=a)=>zu(`/graph?${Jl({node:m,kind:g,depth:r})}`),[o,f]=Yt(l===""?void 0:`/api/graph?${Jl({node:l,kind:n,depth:a})}`);return(0,A.jsxs)(pt,{title:"Graph",onRefresh:l===""?void 0:f,durationMs:o.state==="ok"?o.durationMs:void 0,children:[(0,A.jsxs)("form",{className:"form",onSubmit:m=>{m.preventDefault(),u.trim()!==""&&c(u.trim())},children:[(0,A.jsxs)("label",{children:["Seed ",(0,A.jsx)("input",{value:u,onChange:m=>i(m.target.value),placeholder:"AUTH-03, src/a.ts, Class.method, sym:\u2026",size:40})]}),(0,A.jsxs)("label",{children:["View ",(0,A.jsxs)("select",{value:n,onChange:m=>l!==""&&c(l,m.target.value),children:[(0,A.jsx)("option",{value:"trace",children:"trace (relations)"}),(0,A.jsx)("option",{value:"impact",children:"impact (what may be affected)"})]})]}),(0,A.jsxs)("label",{children:["Depth ",(0,A.jsx)("select",{value:a,onChange:m=>l!==""&&c(l,n,Number(m.target.value)),children:[1,2,3].map(m=>(0,A.jsx)("option",{value:m,children:m},m))})]}),(0,A.jsx)("button",{type:"submit",children:"Explore"})]}),l===""?(0,A.jsx)(B,{children:"Choose a seed: a Requirement or Decision ID, a file path or a symbol. The explorer shows a bounded neighbourhood, never the whole graph."}):o.state==="loading"?(0,A.jsx)(Gt,{}):o.state==="error"?(0,A.jsx)(ht,{error:o.error}):(0,A.jsx)(vp,{g:o.data,go:m=>{i(m),c(m)}})]})}function d0(t){return(0,A.jsxs)("span",{className:"node",children:[(0,A.jsx)("button",{type:"button",className:"link",onClick:()=>t.go(t.id),title:"explore from here",children:t.id})," ",(0,A.jsx)(at,{to:le(t.id),className:"small",children:"detail"})]})}function vp(t){let{g:e}=t;return e.status==="not-found"?(0,A.jsx)(B,{children:"No such node in the graph."}):e.status!=="found"?(0,A.jsx)("p",{role:"alert",className:"box box-error",children:e.status}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("p",{children:[e.index==="current"?null:(0,A.jsx)(Ad,{status:e.index})," ",e.truncated?(0,A.jsx)(U,{text:"truncated: limits reached",tone:"warn"}):null]}),e.nodes!==void 0?(0,A.jsx)("div",{className:"graph-columns",children:[...new Set(e.nodes.map(l=>l.depth))].sort().map(l=>(0,A.jsxs)("section",{"aria-label":`depth ${l}`,children:[(0,A.jsx)("h2",{children:l===0?"Seed":`Depth ${l}`}),(0,A.jsx)("ul",{children:e.nodes?.filter(n=>n.depth===l).sort((n,a)=>f0.indexOf(n.type)-f0.indexOf(a.type)||n.id.localeCompare(a.id)).map(n=>(0,A.jsxs)("li",{children:[(0,A.jsx)(U,{text:n.type,tone:"muted"})," ",(0,A.jsx)(d0,{id:n.id,go:t.go})]},n.id))})]},l))}):null,e.edges===void 0?null:(0,A.jsxs)("details",{className:"section",children:[(0,A.jsx)("summary",{children:(0,A.jsxs)("h2",{children:["Edges (",e.edges.length,")"]})}),(0,A.jsxs)("table",{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{scope:"col",children:"From"}),(0,A.jsx)("th",{scope:"col",children:"Edge"}),(0,A.jsx)("th",{scope:"col",children:"To"})]})}),(0,A.jsx)("tbody",{children:e.edges.map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{children:(0,A.jsx)("code",{children:l.from})}),(0,A.jsx)("td",{children:l.type}),(0,A.jsx)("td",{children:(0,A.jsx)("code",{children:l.to})})]},`${l.from} ${l.type} ${l.to}`))})]})]}),e.items===void 0?null:(0,A.jsxs)(A.Fragment,{children:[e.items.length===0?(0,A.jsx)(B,{children:"No recorded relation reaches another node."}):(0,A.jsxs)("table",{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{scope:"col",children:"Relation"}),(0,A.jsx)("th",{scope:"col",children:"Depth"}),(0,A.jsx)("th",{scope:"col",children:"Node"}),(0,A.jsx)("th",{scope:"col",children:"Via"})]})}),(0,A.jsx)("tbody",{children:e.items.map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{children:l.relation}),(0,A.jsx)("td",{children:l.depth}),(0,A.jsx)("td",{children:(0,A.jsx)(d0,{id:l.id,go:t.go})}),(0,A.jsxs)("td",{children:[l.via.edge," from ",(0,A.jsx)("code",{children:l.via.from})]})]},l.id))})]}),e.notice===void 0?null:(0,A.jsx)("p",{className:"muted small",children:e.notice}),(e.limitations??[]).length===0?null:(0,A.jsx)("ul",{className:"muted small",children:e.limitations?.map(l=>(0,A.jsx)("li",{children:l.message},l.code))})]})]})}var $l=L(me(),1);var y0=L(me(),1);var At=L($(),1),gp={"project-truth":"Project Truth",repository:"Repository",git:"Git",test:"Test",llm:"LLM"};function m0(t){let e=new Map(t.evidence.map(l=>[l.id,l]));return(0,At.jsx)("ul",{className:"evidence",children:t.ids.map(l=>(0,At.jsx)(hp,{id:l,e:e.get(l)},l))})}function hp(t){let{e}=t,[l,n]=(0,y0.useState)(),a=e?.pointer,u=a?.lines,i=async()=>{if(!(a?.path===void 0||u===void 0))try{let c=await ke.get(`/api/source?${Jl({path:a.path,start:u[0],end:u[1]})}`);n(c.data)}catch(c){n(c instanceof Error?c.message:String(c))}};return(0,At.jsxs)("li",{children:[(0,At.jsx)(U,{text:gp[e?.basis??""]??e?.basis??"?",tone:e?.basis==="llm"?"warn":"info"})," ",(0,At.jsx)("code",{children:t.id})," ",e?.summary??"",a?.path===void 0?null:(0,At.jsxs)(At.Fragment,{children:[" \xB7 ",(0,At.jsxs)("code",{className:"loc",children:[a.path,u===void 0?"":`:${u[0]}-${u[1]}`]})]}),a?.commit===void 0?null:(0,At.jsxs)(At.Fragment,{children:[" \xB7 commit ",(0,At.jsx)("code",{children:a.commit.slice(0,12)})]}),a?.path!==void 0&&u!==void 0&&l===void 0?(0,At.jsxs)(At.Fragment,{children:[" ",(0,At.jsx)("button",{type:"button",className:"link",onClick:()=>{i()},children:"Show lines"})]}):null,typeof l=="string"?(0,At.jsx)("p",{className:"muted",children:l}):l===void 0?null:(0,At.jsxs)("pre",{className:"slice",children:[l.lines.map((c,o)=>`${String(l.start+o).padStart(5)} ${c}`).join(`
9
+ `).replace(i1,"")}function Sv(t,e){return e=Ts(e),Ts(t)===e}function I(t,e,l,n,a,u){switch(l){case"children":if(typeof n=="string")e==="body"||e==="textarea"&&n===""||na(t,n);else if(typeof n=="number"||typeof n=="bigint")e!=="body"&&na(t,""+n);else return;break;case"className":Bu(t,"class",n);break;case"tabIndex":Bu(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Bu(t,l,n);break;case"style":hy(t,n,u);return;case"data":if(e!=="object"){Bu(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=ti(n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&I(t,e,"name",a.name,a,null),I(t,e,"formEncType",a.formEncType,a,null),I(t,e,"formMethod",a.formMethod,a,null),I(t,e,"formTarget",a.formTarget,a,null)):(I(t,e,"encType",a.encType,a,null),I(t,e,"method",a.method,a,null),I(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=ti(n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=je);return;case"onScroll":n!=null&&j("scroll",t);return;case"onScrollEnd":n!=null&&j("scrollend",t);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(p(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(p(60));u?.__html!==l&&(t.innerHTML=l)}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=ti(n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":j("beforetoggle",t),j("toggle",t),Pu(t,"popover",n);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Pu(t,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=Dg.get(l)||l,Pu(t,l,n);else return}K=!0}function rf(t,e,l,n,a,u){switch(l){case"style":hy(t,n,u);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(p(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(p(60));u?.__html!==l&&(t.innerHTML=l)}}break;case"children":if(typeof n=="string")na(t,n);else if(typeof n=="number"||typeof n=="bigint")na(t,""+n);else return;break;case"onScroll":n!=null&&j("scroll",t);return;case"onScrollEnd":n!=null&&j("scrollend",t);return;case"onClick":n!=null&&(t.onclick=je);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!ry.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),u=l.slice(2,a?l.length-7:void 0),e=t[ee]||null,e=e!=null?e[l]:null,typeof e=="function"&&t.removeEventListener(u,e,a),typeof n=="function")){typeof e!="function"&&e!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(u,n,a);break t}K=!0,l in t?t[l]=n:n===!0?t.setAttribute(l,""):Pu(t,l,n)}return}K=!0}function Bt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":j("error",t),j("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(p(137,e));default:I(t,e,u,i,l,null)}}a&&I(t,e,"srcSet",l.srcSet,l,null),n&&I(t,e,"src",l.src,l,null);return;case"input":j("invalid",t);var c=u=i=a=null,o=null,f=null;for(n in l)if(l.hasOwnProperty(n)){var m=l[n];if(m!=null)switch(n){case"name":a=m;break;case"type":i=m;break;case"checked":o=m;break;case"defaultChecked":f=m;break;case"value":u=m;break;case"defaultValue":c=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(p(137,e));break;default:I(t,e,n,m,l,null)}}my(t,u,c,o,f,i,a,!1);return;case"select":j("invalid",t),n=i=u=null;for(a in l)if(l.hasOwnProperty(a)&&(c=l[a],c!=null))switch(a){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":n=c;default:I(t,e,a,c,l,null)}e=u,l=i,t.multiple=!!n,e!=null?Kn(t,!!n,e,!1):l!=null&&Kn(t,!!n,l,!0);return;case"textarea":j("invalid",t),u=a=n=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":n=c;break;case"defaultValue":a=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(p(91));break;default:I(t,e,i,c,l,null)}gy(t,n,a,u);return;case"option":for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null)&&(o==="selected"?t.selected=n&&typeof n!="function"&&typeof n!="symbol":I(t,e,o,n,l,null));return;case"dialog":j("beforetoggle",t),j("toggle",t),j("cancel",t),j("close",t);break;case"iframe":case"object":j("load",t);break;case"video":case"audio":for(n=0;n<iu.length;n++)j(iu[n],t);break;case"image":j("error",t),j("load",t);break;case"details":j("toggle",t);break;case"embed":case"source":case"link":j("error",t),j("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in l)if(l.hasOwnProperty(f)&&(n=l[f],n!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(p(137,e));default:I(t,e,f,n,l,null)}return;default:if(Df(e)){for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!==void 0&&rf(t,e,m,n,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(n=l[c],n!=null&&I(t,e,c,n,l,null))}var c1={};function o1(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,i=null,c=null,o=null,f=null,m=null;for(s in l){var g=l[s];if(l.hasOwnProperty(s)&&g!=null)switch(s){case"checked":break;case"value":break;case"defaultValue":o=g;default:n.hasOwnProperty(s)||I(t,e,s,null,n,g)}}for(var r in n){var s=n[r];if(g=l[r],n.hasOwnProperty(r)&&(s!=null||g!=null))switch(r){case"type":s!==g&&(K=!0),u=s;break;case"name":s!==g&&(K=!0),a=s;break;case"checked":s!==g&&(K=!0),f=s;break;case"defaultChecked":s!==g&&(K=!0),m=s;break;case"value":s!==g&&(K=!0),i=s;break;case"defaultValue":s!==g&&(K=!0),c=s;break;case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(p(137,e));break;default:s!==g&&I(t,e,r,s,n,g)}}To(t,i,c,o,f,m,u,a);return;case"select":s=i=c=r=null;for(u in l)if(o=l[u],l.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":s=o;default:n.hasOwnProperty(u)||I(t,e,u,null,n,o)}for(a in n)if(u=n[a],o=l[a],n.hasOwnProperty(a)&&(u!=null||o!=null))switch(a){case"value":u!==o&&(K=!0),r=u;break;case"defaultValue":u!==o&&(K=!0),c=u;break;case"multiple":u!==o&&(K=!0),i=u;default:u!==o&&I(t,e,a,u,n,o)}e=c,l=i,n=s,r!=null?Kn(t,!!l,r,!1):!!n!=!!l&&(e!=null?Kn(t,!!l,e,!0):Kn(t,!!l,l?[]:"",!1));return;case"textarea":s=r=null;for(c in l)if(a=l[c],l.hasOwnProperty(c)&&a!=null&&!n.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:I(t,e,c,null,n,a)}for(i in n)if(a=n[i],u=l[i],n.hasOwnProperty(i)&&(a!=null||u!=null))switch(i){case"value":a!==u&&(K=!0),r=a;break;case"defaultValue":a!==u&&(K=!0),s=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(p(91));break;default:a!==u&&I(t,e,i,a,n,u)}vy(t,r,s);return;case"option":for(var E in l)r=l[E],l.hasOwnProperty(E)&&r!=null&&!n.hasOwnProperty(E)&&(E==="selected"?t.selected=!1:I(t,e,E,null,n,r));for(o in n)r=n[o],s=l[o],n.hasOwnProperty(o)&&r!==s&&(r!=null||s!=null)&&(o==="selected"?(r!==s&&(K=!0),t.selected=r&&typeof r!="function"&&typeof r!="symbol"):I(t,e,o,r,n,s));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var D in l)r=l[D],l.hasOwnProperty(D)&&r!=null&&!n.hasOwnProperty(D)&&I(t,e,D,null,n,r);for(f in n)if(r=n[f],s=l[f],n.hasOwnProperty(f)&&r!==s&&(r!=null||s!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(p(137,e));break;default:I(t,e,f,r,n,s)}return;default:if(Df(e)){for(var H in l)r=l[H],l.hasOwnProperty(H)&&r!==void 0&&!n.hasOwnProperty(H)&&rf(t,e,H,void 0,n,r);for(m in n)r=n[m],s=l[m],!n.hasOwnProperty(m)||r===s||r===void 0&&s===void 0||rf(t,e,m,r,n,s);return}}for(var y in l)r=l[y],l.hasOwnProperty(y)&&r!=null&&!n.hasOwnProperty(y)&&I(t,e,y,null,n,r);for(g in n)r=n[g],s=l[g],!n.hasOwnProperty(g)||r===s||r==null&&s==null||I(t,e,g,r,n,s)}function Ns(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,i=a.initiatorType,c=a.duration;if(u&&c&&Ns(i)){for(i=0,c=a.responseEnd,n+=1;n<l.length;n++){var o=l[n],f=o.startTime;if(f>c)break;var m=o.transferSize,g=o.initiatorType;m&&Ns(g)&&(o=o.responseEnd,i+=m*(o<c?1:(c-f)/(o-f)))}if(--n,e+=8*(u+i)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var sf=null,yf=null;function ou(t){return t.nodeType===9?t:t.ownerDocument}function Os(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ev(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tv(t,e,l,n){return l=ou(l).createElement(t),l[Mt]=n,l[ee]=e,Bt(l,t,e),_t(l),l}function mf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var io=null;function d1(){var t=window.event;return t&&t.type==="popstate"?t===io?!1:(io=t,!0):(io=null,!1)}var yd=typeof setTimeout=="function"?setTimeout:void 0,r1=typeof clearTimeout=="function"?clearTimeout:void 0,zs=typeof Promise=="function"?Promise:void 0,As=typeof requestAnimationFrame=="function"?requestAnimationFrame:yd,s1=typeof queueMicrotask=="function"?queueMicrotask:typeof zs<"u"?function(t){return zs.resolve(null).then(t).catch(y1)}:yd;function y1(t){setTimeout(function(){throw t})}function Zl(t){return t==="head"}function Ds(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),ya(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")oo(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,oo(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[hu]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&oo(t.ownerDocument.body);l=a}while(l);ya(e)}function xs(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Nv(t,e,l){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,l!=null&&(t.style.viewTransitionClass=l),l=getComputedStyle(t),l.display==="inline"){if(e=t.getClientRects(),e.length===1)var n=1;else for(var a=n=0;a<e.length;a++){var u=e[a];0<u.width&&0<u.height&&n++}n===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+l.paddingTop,t.marginBottom="-"+l.paddingBottom)}}function Ov(t,e){t=t.style,e=e.style;var l=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(l=e.display,t.display=l==null||typeof l=="boolean"?"":l,l=e.margin,l!=null?t.margin=l:(l=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=l==null||typeof l=="boolean"?"":l,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function zv(t,e,l){return l=l.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=l.innerHeight&&t.left<=l.innerWidth}}function vf(t){var e=t.getBoundingClientRect(),l=getComputedStyle(t);return zv(e,l,t)}function m1(t){var e=t.getBoundingClientRect();e=new DOMRect(e.x+2e4,e.y+2e4,e.width,e.height);var l=getComputedStyle(t);return zv(e,l,t)}function v1(t){return t.documentElement.clientHeight}function g1(t){this.addEventListener("load",t),this.addEventListener("error",t)}function h1(t,e,l,n,a,u,i,c,o){var f=e.nodeType===9?e:e.ownerDocument;try{var m=f.startViewTransition({update:function(){var r=f.defaultView,s=r.navigation&&r.navigation.transition,E=f.fonts.status;n();var D=[];if(E==="loaded"&&(v1(f),f.fonts.status==="loading"&&D.push(f.fonts.ready)),E=D.length,t!==null)for(var H=t.suspenseyImages,y=0,d=0;d<H.length;d++){var v=H[d];if(!v.complete){var h=v.getBoundingClientRect();if(0<h.bottom&&0<h.right&&h.top<r.innerHeight&&h.left<r.innerWidth){if(y+=Lv(v),y>vi){D.length=E;break}v=new Promise(g1.bind(v)),D.push(v)}}}if(0<D.length)return r=Promise.race([Promise.all(D),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(s?Promise.allSettled([s.finished,r]):r).then(u,u);if(a(),s)return s.finished.then(u,u);u()},types:l});f.__reactViewTransition=m;var g=[];return m.ready.then(function(){for(var r=f.documentElement.getAnimations({subtree:!0}),s=0;s<r.length;s++){var E=r[s],D=E.effect,H=D.pseudoElement;if(H!=null&&H.startsWith("::view-transition")){g.push(E),E=D.getKeyframes();for(var y=H=void 0,d=!0,v=0;v<E.length;v++){var h=E[v],x=h.width;if(H===void 0)H=x;else if(H!==x){d=!1;break}if(x=h.height,y===void 0)y=x;else if(y!==x){d=!1;break}delete h.width,delete h.height,h.transform==="none"&&delete h.transform}d&&H!==void 0&&y!==void 0&&(D.setKeyframes(E),d=getComputedStyle(D.target,D.pseudoElement),d.width!==H||d.height!==y)&&(d=E[0],d.width=H,d.height=y,d=E[E.length-1],d.width=H,d.height=y,D.setKeyframes(E))}}i()},function(r){f.__reactViewTransition===m&&(f.__reactViewTransition=null);try{typeof r=="object"&&r!==null&&r.name==="InvalidStateError"&&(r.message==="View transition was skipped because document visibility state is hidden."||r.message==="Skipping view transition because document visibility state has become hidden."||r.message==="Skipping view transition because viewport size changed."||r.message==="Transition was aborted because of invalid state")&&(r=null),r!==null&&o(r)}finally{n(),a(),i()}}),m.finished.finally(function(){for(var r=0;r<g.length;r++)g[r].cancel();f.__reactViewTransition===m&&(f.__reactViewTransition=null),c()}),m}catch{return n(),a(),i(),null}}function ln(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}ln.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:nt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};ln.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,l=t.getAnimations({subtree:!0}),n=[],a=0;a<l.length;a++){var u=l[a].effect;u!==null&&u.target===t&&u.pseudoElement===e&&n.push(l[a])}return n};ln.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Av(t){return{name:t,group:new ln("group",t),imagePair:new ln("image-pair",t),old:new ln("old",t),new:new ln("new",t)}}function ye(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}ye.prototype.addEventListener=function(t,e,l){var n=null,a=null;if(!(l!=null&&typeof l!="boolean"&&(n=l.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Dv(u,t,e,l)===-1){var i=this,c=e;l!=null&&typeof l!="boolean"&&l.once===!0&&(c=function(o){i.removeEventListener(t,e,l),typeof e=="function"?e.call(this,o):e.handleEvent(o)}),n!==null&&(a=i.removeEventListener.bind(i,t,e,l),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=fa(l),u.push({type:t,listener:e,optionsOrUseCapture:l,attachedListener:c,cleanup:a}),te(this._fragmentFiber.child,!1,p1,t,c,n)}this._eventListeners=u}};function p1(t,e,l,n){return Ot(t).addEventListener(e,l,n),!1}ye.prototype.removeEventListener=function(t,e,l){var n=this._eventListeners;if(n!==null&&(e=Dv(n,t,e,l),e!==-1)){var a=n[e];l=a.attachedListener;var u=a.cleanup;a=fa(a.optionsOrUseCapture),te(this._fragmentFiber.child,!1,b1,t,l,a),n.splice(e,1),u!==null&&u()}};function b1(t,e,l,n){return Ot(t).removeEventListener(e,l,n),!1}function fa(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function _s(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function Dv(t,e,l,n){if(t.length===0)return-1;n=_s(n);for(var a=0;a<t.length;a++){var u=t[a];if(u.type===e&&u.listener===l&&_s(u.optionsOrUseCapture)===n)return a}return-1}ye.prototype.dispatchEvent=function(t){var e=hn(this._fragmentFiber);if(e===null)return!0;e=Ot(e);var l=this._eventListeners;if(l!==null&&0<l.length||!t.bubbles){var n=e.nodeType===9?e.createComment(""):document.createTextNode("");if(l)for(var a=0;a<l.length;a++){var u=l[a];n.addEventListener(u.type,u.attachedListener,fa(u.optionsOrUseCapture))}if(e.appendChild(n),t=n.dispatchEvent(t),l)for(a=0;a<l.length;a++)u=l[a],n.removeEventListener(u.type,u.attachedListener,fa(u.optionsOrUseCapture));return e.removeChild(n),t}return e.dispatchEvent(t)};ye.prototype.focus=function(t){te(this._fragmentFiber.child,!0,xv,t,void 0,void 0)};function xv(t,e){return t.tag===6?!1:(t=Ot(t),C1(t,e))}ye.prototype.focusLast=function(t){var e=[];te(this._fragmentFiber.child,!0,md,e,void 0,void 0);for(var l=e.length-1;0<=l&&!xv(e[l],t);l--);};function md(t,e){return e.push(t),!1}ye.prototype.blur=function(){var t=hn(this._fragmentFiber);t!==null&&(t=Ot(t),t=ou(t).activeElement,t!==null&&te(this._fragmentFiber.child,!1,S1,t,void 0,void 0))};function S1(t,e){return t.tag===6?!1:(t=Ot(t),t===e||t.contains(e)?(e.blur(),!0):!1)}ye.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),te(this._fragmentFiber.child,!1,E1,t,void 0,void 0)};function E1(t,e){return t.tag===6||(t=Ot(t),e.observe(t)),!1}ye.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),te(this._fragmentFiber.child,!1,T1,t,void 0,void 0);for(var l=e=0;l<_e.length;l++){var n=_e[l];n.fragmentInstance===this&&n.observer===t?t.unobserve(n.instance):_e[e++]=n}_e.length=e}};function T1(t,e){return t.tag===6||(t=Ot(t),e.unobserve(t)),!1}var _e=[],co=!1;function N1(t,e,l){_e.push({fragmentInstance:t,observer:e,instance:l}),co||(co=!0,M1(function(){co=!1;var n=_e;_e=[];for(var a=0;a<n.length;a++){var u=n[a];u.observer.unobserve(u.instance)}}))}ye.prototype.getClientRects=function(){var t=[];return te(this._fragmentFiber.child,!1,O1,t,void 0,void 0),t};function O1(t,e){if(t.tag===6){t=t.stateNode;var l=t.ownerDocument.createRange();l.selectNodeContents(t),e.push.apply(e,l.getClientRects())}else t=Ot(t),e.push.apply(e,t.getClientRects());return!1}ye.prototype.getRootNode=function(t){var e=hn(this._fragmentFiber);return e===null?this:Ot(e).getRootNode(t)};ye.prototype.compareDocumentPosition=function(t){var e=hn(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];te(this._fragmentFiber.child,!1,md,l,void 0,void 0);var n=Ot(e);if(l.length===0){if(l=n,or(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(l=e)}e=this._fragmentFiber;var a=n=l.compareDocumentPosition(t);return l===t?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=Fs(e)[1],l===null?a=Node.DOCUMENT_POSITION_PRECEDING:(t=Ot(l).compareDocumentPosition(t),a=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Ot(l[0]),a=Ot(l[l.length-1]);var u=or(this._fragmentFiber)?e.parentElement:n;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=u.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=e.compareDocumentPosition(t),c=a.compareDocumentPosition(t),o=i&Node.DOCUMENT_POSITION_CONTAINED_BY||c&Node.DOCUMENT_POSITION_CONTAINED_BY;return c=n&&u&&i&Node.DOCUMENT_POSITION_FOLLOWING&&c&Node.DOCUMENT_POSITION_PRECEDING,e=n&&e===t||u&&a===t||o||c?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&e===t||!u&&a===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||z1(e,this._fragmentFiber,l[0],l[l.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function z1(t,e,l,n,a){var u=en(a);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)t:{for(;u!==null;){if(u.tag===7&&(u===e||u.alternate===e)){l=!0;break t}u=u.return}l=!1}return l}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=a.ownerDocument,a===u||a===u.documentElement||a===u.body;t:{for(u=e,e=hn(e);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==e&&u.alternate!==e)){u=!0;break t}u=u.return}u=!1}return u}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!u)&&!(e=u===l)&&(e=ro(l,u,fr),e===null?e=!1:(te(e,!0,eg,u,l),u=Un,Un=null,e=u!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!u)&&!(e=u===n)&&(e=ro(n,u,fr),e===null?e=!1:(te(e,!0,lg,u,n),u=Un,fo=Un=null,e=u!==null)),e):!1}function Rs(t,e){var l=t.ownerDocument.createRange();l.selectNodeContents(t),t=l.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}ye.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(p(566));var e=[];te(this._fragmentFiber.child,!1,md,e,void 0,void 0);var l=t!==!1;if(e.length===0){var n=Fs(this._fragmentFiber);if(n=l?n[1]||n[0]||hn(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){t=Ot(n),Rs(t,l);return}if(n=Ot(n),n.nodeType!==9){if(n.nodeType===11){l="host"in n?n.host:null,l!==null&&l.scrollIntoView(t);return}n.scrollIntoView(t)}}for(n=l?e.length-1:0;n!==(l?-1:e.length);){var a=e[n];a.tag===6?(a=Ot(a),Rs(a,l)):Ot(a).scrollIntoView(t),n+=l?-1:1}};function A1(t,e){return t=Ot(t),_v(t,e),!1}function _v(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function Rv(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.addEventListener(a.type,a.attachedListener,fa(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(u){for(var i=0,c=0;c<_e.length;c++){var o=_e[c];(o.fragmentInstance!==e||o.observer!==u||o.instance!==t)&&(_e[i++]=o)}_e.length=i,u.observe(t)}),_v(t,e))}function D1(t,e){var l=e._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];t.removeEventListener(a.type,a.attachedListener,fa(a.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?N1(e,u,t):u.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function gf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gf(l),ki(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function x1(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[hu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function _1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ne(t.nextSibling),t===null))return null;return t}function Cv(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function hf(t){return t.data==="$?"||t.data==="$~"}function vd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function R1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ne(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var pf=null;function Cs(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ne(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ms(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function C1(t,e){function l(){n=!0}if(t.ownerDocument.activeElement===t)return!0;var n=!1;try{t.ownerDocument.addEventListener("focus",l,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",l,!0)}return n}function M1(t){As(function(){As(function(e){return t(e)})})}function Mv(t,e,l){switch(e=ou(l),t){case"html":if(t=e.documentElement,!t)throw Error(p(452));return t;case"head":if(t=e.head,!t)throw Error(p(453));return t;case"body":if(t=e.body,!t)throw Error(p(454));return t;default:throw Error(p(451))}}function Uv(t,e,l){for(var n in l){var a=l[n];l.hasOwnProperty(n)&&a!=null&&I(t,e,n,null,c1,a)}l.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===je&&(t.onclick=null),ki(t)}function oo(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ki(t)}var Oe=new Map,Us=new Set;function fu(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var rl=k.d;k.d={f:U1,r:H1,D:q1,C:B1,L:L1,m:Y1,X:j1,S:G1,M:w1};function U1(){var t=rl.f(),e=oc();return t||e}function H1(t){var e=va(t);e!==null&&e.tag===5&&e.type==="form"?hm(e):rl.r(t)}var ba=typeof document>"u"?null:document;function Hv(t,e,l){var n=ba;if(n&&typeof e=="string"&&e){var a=Se(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Us.has(a)||(Us.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Bt(e,"link",t),_t(e),n.head.appendChild(e)))}}function q1(t){rl.D(t),Hv("dns-prefetch",t,null)}function B1(t,e){rl.C(t,e),Hv("preconnect",t,e)}function L1(t,e,l){rl.L(t,e,l);var n=ba;if(n&&t&&e){var a='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Se(l.imageSizes)+'"]')):a+='[href="'+Se(t)+'"]';var u=a;switch(e){case"style":u=da(t);break;case"script":u=Sa(t)}if(!(Oe.has(u)||(t=nt({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Oe.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Nu(u))||e==="script"&&n.querySelector(Ou(u))))){var i=n.createElement("link");Bt(i,"link",t),e==="style"&&(i[Ti]=!0,i.onload=i.onerror=function(){fy(i)}),_t(i),n.head.appendChild(i)}}}function Y1(t,e){rl.m(t,e);var l=ba;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Se(n)+'"][href="'+Se(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sa(t)}if(!Oe.has(u)&&(t=nt({rel:"modulepreload",href:t},e),Oe.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ou(u)))return}n=l.createElement("link"),Bt(n,"link",t),_t(n),l.head.appendChild(n)}}}function G1(t,e,l){rl.S(t,e,l);var n=ba;if(n&&t){var a=Zn(n).hoistableStyles,u=da(t);e=e||"default";var i=a.get(u);if(!i){var c={loading:0,preload:null};if(i=n.querySelector(Nu(u)))c.loading=5;else{t=nt({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Oe.get(u))&&gd(t,l);var o=i=n.createElement("link");_t(o),Bt(o,"link",t),o._p=new Promise(function(f,m){o.onload=f,o.onerror=m}),o.addEventListener("load",function(){c.loading|=1}),o.addEventListener("error",function(){c.loading|=2}),c.loading|=4,yi(i,e,n)}i={type:"stylesheet",instance:i,count:1,state:c},a.set(u,i)}}}function j1(t,e){rl.X(t,e);var l=ba;if(l&&t){var n=Zn(l).hoistableScripts,a=Sa(t),u=n.get(a);u||(u=l.querySelector(Ou(a)),u||(t=nt({src:t,async:!0},e),(e=Oe.get(a))&&hd(t,e),u=l.createElement("script"),_t(u),Bt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function w1(t,e){rl.M(t,e);var l=ba;if(l&&t){var n=Zn(l).hoistableScripts,a=Sa(t),u=n.get(a);u||(u=l.querySelector(Ou(a)),u||(t=nt({src:t,async:!0,type:"module"},e),(e=Oe.get(a))&&hd(t,e),u=l.createElement("script"),_t(u),Bt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Hs(t,e,l,n){var a=(a=_l.current)?fu(a):null;if(!a)throw Error(p(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=da(l.href),e=Zn(a).hoistableStyles,n=e.get(l),n||(n={type:"style",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=da(l.href);var u=Zn(a).hoistableStyles,i=u.get(t);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=a.querySelector(Nu(t)))?u._p||(i.instance=u,i.state.loading=5):(u=Oe.get(t),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Oe.set(t,u)),Q1(a,t,u,i.state))),e&&n===null)throw Error(p(528,""));return i}if(e&&n!==null)throw Error(p(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(l=Sa(l),e=Zn(a).hoistableScripts,n=e.get(l),n||(n={type:"script",instance:null,count:0,state:null},e.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(p(444,t))}}function da(t){return'href="'+Se(t)+'"'}function Nu(t){return'link[rel="stylesheet"]['+t+"]"}function qv(t){return nt({},t,{"data-precedence":t.precedence,precedence:null})}function Q1(t,e,l,n){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Ti]!==!0){n.loading=1;return}}else e=t.createElement("link"),e[Ti]=!0,e.onload=e.onerror=fy.bind(null,e),Bt(e,"link",l),_t(e),t.head.appendChild(e);n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2})}function Sa(t){return'[src="'+Se(t)+'"]'}function Ou(t){return"script[async]"+t}function qs(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(n)return e.instance=n,_t(n),n;var a=nt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),_t(n),Bt(n,"style",a),yi(n,l.precedence,t),e.instance=n;case"stylesheet":a=da(l.href);var u=t.querySelector(Nu(a));if(u)return e.state.loading|=4,e.instance=u,_t(u),u;n=qv(l),(a=Oe.get(a))&&gd(n,a),u=(t.ownerDocument||t).createElement("link"),_t(u);var i=u;return i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Bt(u,"link",n),e.state.loading|=4,yi(u,l.precedence,t),e.instance=u;case"script":return u=Sa(l.src),(a=t.querySelector(Ou(u)))?(e.instance=a,_t(a),a):(n=l,(a=Oe.get(u))&&(n=nt({},l),hd(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),_t(a),Bt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(p(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,yi(n,l.precedence,t));return e.instance}function yi(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,i=0;i<n.length;i++){var c=n[i];if(c.dataset.precedence===e)u=c;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function gd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function hd(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var mi=null;function Bs(t,e,l){if(mi===null){var n=new Map,a=mi=new Map;a.set(l,n)}else a=mi,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[hu]||u[Mt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var c=n.get(i);c?c.push(u):n.set(i,[u])}}return n}function bf(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function X1(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ls(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Bv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Lv(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Ys(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Lv(e),t.suspenseyImages.push(e)),t=K1.bind(t),e.decode().then(t,t))}function V1(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=da(n.href),u=e.querySelector(Nu(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=du.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,_t(u);return}u=e.ownerDocument||e,n=qv(n),(a=Oe.get(a))&&gd(n,a),u=u.createElement("link"),_t(u);var i=u;i._p=new Promise(function(c,o){i.onload=c,i.onerror=o}),Bt(u,"link",n),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=du.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var vi=0;function Z1(t,e){return t.stylesheets&&t.count===0&&gi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&gi(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&vi===0&&(vi=62500*f1());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&gi(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>vi?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Yv(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)gi(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function du(){this.count--,Yv(this)}function K1(){this.imgCount--,Yv(this)}var Zi=null;function gi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zi=new Map,e.forEach(J1,t),Zi=null,du.call(t))}function J1(t,e){if(!(e.state.loading&4)){var l=Zi.get(t);if(l)var n=l.get(null);else{l=new Map,Zi.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var i=a[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),n=i)}n&&l.set(null,n)}a=e.instance,i=a.getAttribute("data-precedence"),u=l.get(i)||n,u===n&&l.set(null,a),l.set(i,a),this.count++,n=du.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var ra={$$typeof:Ge,Provider:null,Consumer:null,_currentValue:nn,_currentValue2:nn,_threadCount:0};function k1(t,e,l,n,a,u,i,c,o){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bc(0),this.hiddenUpdates=Bc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.transitionTypes=null,this.incompleteTransitions=new Map}function Gv(t,e,l,n,a,u,i,c,o,f,m,g){return t=new k1(t,e,l,i,o,f,m,g,c),e=1,u===!0&&(e|=24),u=It(3,null,null,e),t.current=u,u.stateNode=t,e=Lf(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},jf(u),t}function jv(t){return t?(t=wn,t):wn}function wv(t,e,l,n,a,u){a=jv(a),n.context===null?n.context=a:n.pendingContext=a,n=Cl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Ml(t,n,e),l!==null&&(Pt(l,t,e),Qa(l,t,e))}function Gs(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function pd(t,e){Gs(t,e),(t=t.alternate)&&Gs(t,e)}function Qv(t){if(t.tag===13||t.tag===31){var e=Sn(t,67108864);e!==null&&Pt(e,t,67108864),pd(t,67108864)}}function js(t){if(t.tag===13||t.tag===31){var e=re();e=zf(e);var l=Sn(t,e);l!==null&&Pt(l,t,e),pd(t,e)}}var sa=!0;function $1(t,e,l,n){var a=C.T;C.T=null;var u=k.p;try{k.p=2,bd(t,e,l,n)}finally{k.p=u,C.T=a}}function F1(t,e,l,n){var a=C.T;C.T=null;var u=k.p;try{k.p=8,bd(t,e,l,n)}finally{k.p=u,C.T=a}}function bd(t,e,l,n){if(sa){var a=Sf(n);if(a===null)uo(t,e,n,Ki,l),ws(t,n);else if(I1(a,t,e,l,n))n.stopPropagation();else if(ws(t,n),e&4&&-1<W1.indexOf(t)){for(;a!==null;){var u=va(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Il(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var o=1<<31-de(i);c.entanglements[1]|=o,i&=~o}Je(u),(J&6)===0&&(ji=oe()+500,Tu(0,!1))}}break;case 31:case 13:c=Sn(u,2),c!==null&&Pt(c,u,2),oc(),pd(u,2)}if(u=Sf(n),u===null&&uo(t,e,n,Ki,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else uo(t,e,n,null,l)}}function Sf(t){return t=xf(t),Sd(t)}var Ki=null;function Sd(t){if(Ki=null,t=en(t),t!==null){var e=yu(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=Js(e),t!==null)return t;t=null}else if(l===31){if(t=ks(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ki=t,null}function Xv(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(rg()){case ty:return 2;case ey:return 8;case Ei:case sg:return 32;case ly:return 268435456;default:return 32}default:return 32}}var Ef=!1,Bl=null,Ll=null,Yl=null,ru=new Map,su=new Map,Tl=[],W1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ws(t,e){switch(t){case"focusin":case"focusout":Bl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Yl=null;break;case"pointerover":case"pointerout":ru.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":su.delete(e.pointerId)}}function Ca(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=va(e),e!==null&&Qv(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function I1(t,e,l,n,a){switch(e){case"focusin":return Bl=Ca(Bl,t,e,l,n,a),!0;case"dragenter":return Ll=Ca(Ll,t,e,l,n,a),!0;case"mouseover":return Yl=Ca(Yl,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return ru.set(u,Ca(ru.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,su.set(u,Ca(su.get(u)||null,t,e,l,n,a)),!0}return!1}function Vv(t){var e=en(t.target);if(e!==null){var l=yu(e);if(l!==null){if(e=l.tag,e===13){if(e=Js(l),e!==null){t.blockedOn=e,yr(t.priority,function(){js(l)});return}}else if(e===31){if(e=ks(l),e!==null){t.blockedOn=e,yr(t.priority,function(){js(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Sf(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);No=n,l.target.dispatchEvent(n),No=null}else return e=va(l),e!==null&&Qv(e),t.blockedOn=l,!1;e.shift()}return!0}function Qs(t,e,l){hi(t)&&l.delete(e)}function P1(){Ef=!1,Bl!==null&&hi(Bl)&&(Bl=null),Ll!==null&&hi(Ll)&&(Ll=null),Yl!==null&&hi(Yl)&&(Yl=null),ru.forEach(Qs),su.forEach(Qs)}function Wu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ef||(Ef=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,P1)))}var Iu=null;function Xs(t){Iu!==t&&(Iu=t,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,function(){Iu===t&&(Iu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(Sd(n||l)===null)continue;break}var u=va(l);u!==null&&(t.splice(e,3),e-=3,Go(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ya(t){function e(o){return Wu(o,t)}Bl!==null&&Wu(Bl,t),Ll!==null&&Wu(Ll,t),Yl!==null&&Wu(Yl,t),ru.forEach(e),su.forEach(e);for(var l=0;l<Tl.length;l++){var n=Tl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Tl.length&&(l=Tl[0],l.blockedOn===null);)Vv(l),l.blockedOn===null&&Tl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],i=a[ee]||null;if(typeof u=="function")i||Xs(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(a=u,i=u[ee]||null)c=i.formAction;else if(Sd(a)!==null)continue}else c=i.action;typeof c=="function"?l[n+1]=c:(l.splice(n,3),n-=3),Xs(l)}}}function Zv(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Ed(t){this._internalRoot=t}rc.prototype.render=Ed.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(p(409));var l=e.current,n=re();wv(l,n,t,e,null,null)};rc.prototype.unmount=Ed.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;wv(t.current,2,null,t,null,null),oc(),e[ma]=null}};function rc(t){this._internalRoot=t}rc.prototype.unstable_scheduleHydration=function(t){if(t){var e=oy();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Tl.length&&e!==0&&e<Tl[l].priority;l++);Tl.splice(l,0,t),l===0&&Vv(t)}};var Vs=Zs.version;if(Vs!=="19.3.0")throw Error(p(527,Vs,"19.3.0"));k.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(p(188)):(t=Object.keys(t).join(","),Error(p(268,t)));return t=tg(e),t=t!==null?$s(t):null,t=t===null?null:t.stateNode,t};var tp={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ma=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ma.isDisabled&&Ma.supportsFiber))try{mu=Ma.inject(tp),fe=Ma}catch{}var Ma;sc.createRoot=function(t,e){if(!Ks(t))throw Error(p(299));var l=!1,n="",a=zm,u=Am,i=Dm;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Gv(t,1,!1,null,null,l,n,null,a,u,i,Zv),t[ma]=e.current,sd(t),new Ed(e)};sc.hydrateRoot=function(t,e,l){if(!Ks(t))throw Error(p(299));var n=!1,a="",u=zm,i=Am,c=Dm,o=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),e=Gv(t,1,!0,e,l??null,n,a,o,u,i,c,Zv),e.context=jv(null),l=e.current,n=re(),n=zf(n),a=Cl(n),a.callback=null,Ml(l,a,n),l=n,e.current.lanes=l,gu(e,l),Je(e),t[ma]=e.current,sd(t),new rc(e)};sc.version="19.3.0"});var $v=Me((Up,kv)=>{"use strict";function Jv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jv)}catch(t){console.error(t)}}Jv(),kv.exports=Kv()});var Iv=Me(yc=>{"use strict";var ep=Symbol.for("react.transitional.element"),lp=Symbol.for("react.fragment");function Wv(t,e,l){var n=null;if(l!==void 0&&(n=""+l),e.key!==void 0&&(n=""+e.key),"key"in e){l={};for(var a in e)a!=="key"&&(l[a]=e[a])}else l=e;return e=l.ref,{$$typeof:ep,type:t,key:n,ref:e!==void 0?e:null,props:l}}yc.Fragment=lp;yc.jsx=Wv;yc.jsxs=Wv});var $=Me((Bp,Pv)=>{"use strict";Pv.exports=Iv()});var T0=L(me(),1),N0=L($v(),1);var Tn=L(me(),1);var Kl=class extends Error{constructor(l,n,a){super(a);this.status=l;this.code=n}status;code},Fv;async function Td(t,e,l){let n={Accept:"application/json"};t==="POST"&&(Fv??=(await Td("GET","/api/session")).data.csrf,n["Content-Type"]="application/json",n["X-Duo-CSRF"]=Fv);let a=await fetch(e,{method:t,headers:n,credentials:"same-origin",...l===void 0?{}:{body:JSON.stringify(l)}}),u;try{u=await a.json()}catch{u=void 0}if(!a.ok||u===void 0||!u.ok)throw new Kl(a.status,u?.error?.code??"UI_TRANSPORT",u?.error?.message??`HTTP ${a.status}`);return u}var ke={get:t=>Td("GET",t),post:(t,e)=>Td("POST",t,e)},Jl=t=>new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0&&e!=="").map(([e,l])=>[e,String(l)])).toString();var ft=L($(),1);function Yt(t){let[e,l]=(0,Tn.useState)({state:"loading"}),[n,a]=(0,Tn.useState)(0);return(0,Tn.useEffect)(()=>{if(t===void 0)return;let u=!0;return l({state:"loading"}),ke.get(t).then(i=>{u&&l({state:"ok",data:i.data,...i.meta===void 0?{}:{durationMs:i.meta.durationMs}})},i=>{u&&l({state:"error",error:i instanceof Error?i:new Error(String(i))})}),()=>{u=!1}},[t,n]),[e,(0,Tn.useCallback)(()=>a(u=>u+1),[])]}function Gt(){return(0,ft.jsx)("p",{role:"status",className:"muted",children:"Loading\u2026"})}function ht(t){let e=t.error,l=e instanceof Kl&&e.status===401;return(0,ft.jsxs)("div",{role:"alert",className:"box box-error",children:[(0,ft.jsx)("strong",{children:l?"No UI session":"Request failed"}),(0,ft.jsx)("p",{children:l?"Open the URL printed by duoctl ui (the session is valid for one server run).":e.message}),e instanceof Kl?(0,ft.jsxs)("p",{className:"muted",children:[e.code," \xB7 HTTP ",e.status]}):null]})}function pt(t){return(0,ft.jsxs)("section",{"aria-labelledby":"page-title",children:[(0,ft.jsxs)("header",{className:"page-head",children:[(0,ft.jsx)("h1",{id:"page-title",children:t.title}),t.onRefresh===void 0?null:(0,ft.jsx)("button",{type:"button",onClick:t.onRefresh,children:"Refresh"}),t.durationMs===void 0?null:(0,ft.jsxs)("span",{className:"muted small","aria-label":"server time",children:[t.durationMs," ms"]})]}),t.children]})}function Y(t){return(0,ft.jsxs)("details",{className:"section",open:t.open??!0,children:[(0,ft.jsx)("summary",{children:(0,ft.jsxs)("h2",{children:[t.title,t.count===void 0?null:(0,ft.jsxs)("span",{className:"count",children:[" (",t.count,")"]})]})}),(0,ft.jsx)("div",{className:"section-body",children:t.children})]})}function B(t){return(0,ft.jsx)("p",{className:"empty",children:t.children})}var np={PASS:"\u2713",WARN:"!",ASK:"?",BLOCK:"\u2715"};function sl(t){let e=t.verdict??"\u2014";return(0,ft.jsxs)("span",{className:`badge verdict verdict-${e.toLowerCase()}`,children:[(0,ft.jsxs)("span",{"aria-hidden":"true",children:[np[e]??""," "]}),e]})}function U(t){return(0,ft.jsx)("span",{className:`badge tone-${t.tone??"info"}`,children:t.text})}var ap={introduced:{text:"introduced",tone:"block",help:"new since the Adoption Baseline"},"pre-existing":{text:"pre-existing",tone:"muted",help:"existed at adoption, not touched by this change: history, not a new violation"},"pre-existing-touched":{text:"pre-existing \xB7 touched",tone:"warn",help:"existed at adoption and this change touches it: a warning, never a block"},"unverified-at-adoption":{text:"unverified at adoption",tone:"warn",help:"the baseline could not analyze this language: a warning, never a block"},"adoption-bootstrap":{text:"adoption bootstrap",tone:"muted",help:"Truth files exactly as init wrote them: not reviewed until changed"}};function yl(t){if(t.value===void 0)return null;let e=ap[t.value]??{text:t.value,tone:"info",help:""};return(0,ft.jsx)("span",{className:`badge tone-${e.tone}`,title:e.help,children:e.text})}function Ea(t){let e=t.level==="L0"?"L0 \xB7 file-level analysis":t.level==="L1"?"L1 \xB7 structural":t.level==="L2"?"L2 \xB7 partial semantics":t.level;return(0,ft.jsx)("span",{className:`badge level level-${t.level.toLowerCase()}`,children:e})}function $e(t){let e=t.location;if(e===void 0)return null;let l=e.startLine===void 0?"":e.endLine===void 0||e.endLine===e.startLine?`:${e.startLine}`:`:${e.startLine}-${e.endLine}`;return(0,ft.jsxs)("code",{className:"loc",children:[e.path,l]})}function ze(t){return(0,ft.jsx)("code",{className:"command",children:t.children})}var mc=t=>typeof t.status=="object"&&t.status!==null;var Q=L($(),1);function t0(){let[t,e]=Yt("/api/overview");return(0,Q.jsxs)(pt,{title:"Analysis coverage",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,Q.jsx)("p",{className:"muted",children:"Every file in the Git repository gets file-level analysis (L0). Languages with an analyzer get structure (L1); TypeScript and JavaScript also get resolved imports and calls (L2). A missing analyzer lowers precision; it is not a failure."}),t.state==="loading"?(0,Q.jsx)(Gt,{}):t.state==="error"?(0,Q.jsx)(ht,{error:t.error}):!mc(t.data)||t.data.status.analysis===null?(0,Q.jsxs)(B,{children:["No index yet: run ",(0,Q.jsx)(ze,{children:"duoctl index"}),"."]}):(0,Q.jsx)(up,{analysis:t.data.status.analysis})]})}function up(t){let e=t.analysis;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("p",{children:[e.files.total," indexed files \xB7 ",e.files.structural," with structural analysis \xB7 ",e.files.fileOnly," file-level only"]}),(0,Q.jsxs)("table",{children:[(0,Q.jsx)("thead",{children:(0,Q.jsx)("tr",{children:["Language","Level","Files","Analyzer","Symbols","Tests","Imports","Calls","Type resolution"].map(l=>(0,Q.jsx)("th",{scope:"col",children:l},l))})}),(0,Q.jsxs)("tbody",{children:[e.languages.map(l=>(0,Q.jsxs)("tr",{children:[(0,Q.jsx)("th",{scope:"row",children:l.language}),(0,Q.jsx)("td",{children:(0,Q.jsx)(Ea,{level:l.level})}),(0,Q.jsx)("td",{children:l.files}),(0,Q.jsx)("td",{children:l.analyzer}),(0,Q.jsx)("td",{children:l.symbols}),(0,Q.jsx)("td",{children:l.tests}),(0,Q.jsx)("td",{children:l.imports}),(0,Q.jsx)("td",{children:l.calls}),(0,Q.jsx)("td",{children:l.typeResolution})]},l.language)),e.fileOnly.files===0?null:(0,Q.jsxs)("tr",{children:[(0,Q.jsx)("th",{scope:"row",children:"other files"}),(0,Q.jsx)("td",{children:(0,Q.jsx)(Ea,{level:"L0"})}),(0,Q.jsx)("td",{children:e.fileOnly.files}),(0,Q.jsx)("td",{children:"\u2014"}),(0,Q.jsxs)("td",{colSpan:5,children:["File-level analysis: path, fingerprint, Git history and diff, Truth references. ",e.fileOnly.extensions.map(l=>`${l.extension===""?"(no extension)":`.${l.extension}`} ${l.files}`).join(" \xB7 ")]})]})]})]}),(0,Q.jsx)("p",{className:"muted small",children:'Limitations follow from these values: "syntactic" imports do not link files, "syntactic" calls have no CALLS edges, "partial" resolves only what syntax makes certain. A missing edge is not proof that a relation does not exist.'})]})}var Au=L(me(),1);var e0=L(me(),1),l0=L($(),1),Nd="duo:navigate",ip=t=>(window.addEventListener("popstate",t),window.addEventListener(Nd,t),()=>{window.removeEventListener("popstate",t),window.removeEventListener(Nd,t)});function Ta(){return(0,e0.useSyncExternalStore)(ip,()=>window.location.pathname+window.location.search,()=>"/overview")}function zu(t){window.history.pushState(null,"",t),window.dispatchEvent(new Event(Nd)),document.getElementById("main")?.focus()}function at(t){let e=l=>{l.button!==0||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||(l.preventDefault(),zu(t.to))};return(0,l0.jsx)("a",{href:t.to,onClick:e,className:t.className,"aria-current":t.current===!0?"page":void 0,children:t.children})}var le=t=>`/entity/${encodeURIComponent(t)}`;var b=L($(),1);function vc(t){return t.items.length===0?(0,b.jsx)(B,{children:"None."}):(0,b.jsx)("ol",{className:"packet-items",children:t.items.map(e=>(0,b.jsxs)("li",{children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(at,{to:le(e.ref),children:e.ref})," ",(0,b.jsxs)("span",{className:"muted",children:["rank ",e.rank," \xB7 ",e.level," \xB7 ",e.tokens," tokens"]})]}),(0,b.jsx)("pre",{className:"slice",children:e.text})]},e.id))})}function Od(t){let e=t.gaps.filter(n=>n.action!=="ignore"),l=t.gaps.length-e.length;return(0,b.jsxs)(b.Fragment,{children:[e.length===0?(0,b.jsx)(B,{children:"No gap needs attention."}):(0,b.jsx)("ul",{children:e.map(n=>(0,b.jsxs)("li",{children:[(0,b.jsx)(U,{text:n.action.toUpperCase(),tone:n.action==="ask"?"warn":"info"})," ",n.kind," ",(0,b.jsxs)("span",{className:"muted",children:["(",n.relevance,")"]}),n.text===void 0?null:(0,b.jsxs)(b.Fragment,{children:[" \u2014 ",n.text]})]},n.id))}),l===0?null:(0,b.jsxs)("p",{className:"muted small",children:[l," gap(s) judged not relevant (IGNORE) are not listed."]})]})}function n0(){let[t,e]=(0,Au.useState)(""),[l,n]=(0,Au.useState)(""),[a,u]=(0,Au.useState)(!1),[i,c]=(0,Au.useState)(),o=async()=>{u(!0);try{let f=await ke.post("/api/context",{task:t,...l.trim()===""?{}:{budget:Number(l)}});c({data:f.data,...f.meta===void 0?{}:{ms:f.meta.durationMs}})}catch(f){c(f instanceof Error?f:new Error(String(f)))}finally{u(!1)}};return(0,b.jsxs)(pt,{title:"Context Inspector",durationMs:i!==void 0&&!(i instanceof Error)?i.ms:void 0,children:[(0,b.jsxs)("form",{className:"form",onSubmit:f=>{f.preventDefault(),t.trim()!==""&&o()},children:[(0,b.jsxs)("label",{children:["Task ",(0,b.jsx)("textarea",{value:t,onChange:f=>e(f.target.value),rows:2,placeholder:"AUTH-03, a symbol, a path or a sentence"})]}),(0,b.jsxs)("label",{children:["Budget (tokens, optional) ",(0,b.jsx)("input",{value:l,onChange:f=>n(f.target.value),inputMode:"numeric",size:8})]}),(0,b.jsx)("button",{type:"submit",disabled:a||t.trim()==="",children:a?"Compiling\u2026":"Compile context"})]}),i===void 0?null:i instanceof Error?(0,b.jsx)(ht,{error:i}):(0,b.jsx)(cp,{data:i.data})]})}function cp(t){let{data:e}=t;if(e.status==="index-required")return(0,b.jsxs)("p",{role:"status",className:"box box-warn",children:[(0,b.jsx)(U,{text:"index-required",tone:"warn"})," The index is not current. Run ",(0,b.jsx)(ze,{children:"duoctl index"}),", then compile again."]});if(e.status==="not-initialized"||e.status==="failed")return(0,b.jsxs)("p",{role:"alert",className:"box box-error",children:[e.status,": ",(e.diagnostics??[]).map(u=>u.message).join("; ")]});let l=e.context,n=l?.packet,a=e.gaps;return(0,b.jsxs)("div",{"aria-live":"polite",children:[(0,b.jsx)("p",{children:(0,b.jsx)(U,{text:`status: ${e.status}`,tone:e.status==="ready"?"ok":"warn"})}),a==null?null:a.requiresHumanInput&&a.primaryQuestion!==void 0?(0,b.jsxs)("div",{role:"alert",className:"box box-warn",children:[(0,b.jsx)("strong",{children:"Question for the human:"})," ",a.primaryQuestion.question,a.additionalQuestions.length===0?null:(0,b.jsx)("ul",{children:a.additionalQuestions.map(u=>(0,b.jsx)("li",{children:u.question},u.id))})]}):null,l?.resolution?.ambiguities.length?(0,b.jsxs)("div",{className:"box box-warn",children:["Ambiguous: ",l.resolution.ambiguities.map(u=>`${u.term} \u2192 ${u.options.map(i=>i.ref).join(", ")}`).join("; ")]}):null,n===void 0?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Y,{title:"Token metrics",children:(0,b.jsxs)("dl",{className:"facts",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Packet tokens"}),(0,b.jsxs)("dd",{children:[n.metrics.budget.used," of ",n.metrics.budget.total," (o200k_base)"]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Candidate tokens"}),(0,b.jsxs)("dd",{children:[n.metrics.candidateTokens," (",n.metrics.candidates," candidates, ",n.metrics.selected," selected, ",n.metrics.omitted," omitted)"]})]}),l?.metrics===void 0?null:(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"Repository tokens"}),(0,b.jsxs)("dd",{children:[l.metrics.repository.tokens," in ",l.metrics.repository.files," files"]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("dt",{children:"LLM calls"}),(0,b.jsx)("dd",{children:n.metrics.llmCalls})]})]})}),(0,b.jsx)(Y,{title:"Seeds",count:n.seeds.length,children:(0,b.jsx)("ul",{children:n.seeds.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)(at,{to:le(u.ref),children:u.ref})," ",(0,b.jsxs)("span",{className:"muted",children:["(",u.match,")"]})]},u.id))})}),(0,b.jsx)(Y,{title:"Confirmed intent",count:n.intent.requirements.length+n.intent.constraints.length,children:(0,b.jsx)(vc,{items:[...n.intent.requirements,...n.intent.constraints]})}),(0,b.jsx)(Y,{title:"Active decisions",count:n.decisions.active.length,children:(0,b.jsx)(vc,{items:n.decisions.active})}),(0,b.jsx)(Y,{title:"Relevant code",count:n.code.length,children:(0,b.jsx)(vc,{items:n.code})}),(0,b.jsx)(Y,{title:"Tests",count:n.tests.length,children:(0,b.jsx)(vc,{items:n.tests})}),(0,b.jsx)(Y,{title:"Pending human decisions (not confirmed)",count:n.pendingDecisions.length,children:n.pendingDecisions.length===0?(0,b.jsx)(B,{children:"None."}):(0,b.jsx)("ul",{children:n.pendingDecisions.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)(U,{text:"PENDING / NOT CONFIRMED",tone:"info"})," ",u.id," ",u.title]},u.id))})}),(0,b.jsx)(Y,{title:"Knowledge gaps",count:a?.assessment.gaps.filter(u=>u.action!=="ignore").length??0,children:a==null?(0,b.jsx)(B,{children:"Not assessed."}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{className:"muted small",children:a.notice}),(0,b.jsx)(Od,{gaps:a.assessment.gaps})]})}),(0,b.jsx)(Y,{title:"Evidence",count:n.evidence.length,open:!1,children:(0,b.jsx)("ul",{children:n.evidence.map(u=>(0,b.jsxs)("li",{children:[(0,b.jsx)("code",{children:u.ref}),": ",u.via.steps.length===0?"seed":u.via.steps.map(i=>`${i.from} ${i.type} ${i.to}`).join(" \u2192 ")]},u.id))})}),(0,b.jsx)(Y,{title:"Limitations",count:n.limitations.length,open:!1,children:(0,b.jsx)("ul",{children:n.limitations.map(u=>(0,b.jsx)("li",{children:u.message},u.code))})}),(0,b.jsx)(Y,{title:"Omitted candidates",count:n.omittedCandidates.length,open:!1,children:n.omittedCandidates.length===0?(0,b.jsx)(B,{children:"Nothing was left out."}):(0,b.jsx)("ul",{children:n.omittedCandidates.map(u=>(0,b.jsxs)("li",{children:[u.ref," ",(0,b.jsxs)("span",{className:"muted",children:["rank ",u.rank," \xB7 ",u.tier]})]},u.id))})})]})]})}var kl=L(me(),1);var N=L($(),1);function u0(){let[t,e]=Yt("/api/proposals"),[l,n]=(0,kl.useState)(),a=(u,i=!1)=>{n({text:u,error:i}),e()};return(0,N.jsxs)(pt,{title:"Pending decisions",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,N.jsxs)("p",{className:"muted",children:["AI may propose; only a human confirms or rejects. Actions here use the same DecisionService as ",(0,N.jsx)(ze,{children:"duoctl decision"})," with your Git user name as the actor label (not an authentication)."]}),l===void 0?null:(0,N.jsx)("p",{role:l.error?"alert":"status",className:l.error?"box box-error":"box box-ok",children:l.text}),t.state==="loading"?(0,N.jsx)(Gt,{}):t.state==="error"?(0,N.jsx)(ht,{error:t.error}):(0,N.jsx)(op,{data:t.data,done:a})]})}function op(t){let{proposals:e,previews:l}=t.data;if(e===void 0)return(0,N.jsx)(B,{children:"Not a DUO project yet: run duoctl init."});let n=a=>e.filter(u=>u.status===a);return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(Y,{title:"Pending",count:n("pending").length,children:n("pending").length===0?(0,N.jsx)(B,{children:"No proposal is waiting for a human."}):n("pending").map(a=>(0,N.jsx)(fp,{p:a,preview:l[a.id],done:t.done},a.id))}),(0,N.jsx)(Y,{title:"Committed (confirmed as Decisions)",count:n("committed").length,open:!1,children:n("committed").length===0?(0,N.jsx)(B,{children:"None."}):(0,N.jsx)("ul",{children:n("committed").map(a=>(0,N.jsxs)("li",{children:[a.id," ",a.title," \u2192 ",(0,N.jsx)(at,{to:le(a.decisionId??""),children:a.decisionId})," ",(0,N.jsx)(U,{text:"CONFIRMED",tone:"ok"})]},a.id))})}),(0,N.jsx)(Y,{title:"Rejected",count:n("rejected").length,open:!1,children:n("rejected").length===0?(0,N.jsx)(B,{children:"None."}):(0,N.jsx)("ul",{children:n("rejected").map(a=>(0,N.jsxs)("li",{children:[a.id," ",a.title," ",(0,N.jsx)(U,{text:"REJECTED",tone:"muted"}),a.reason===void 0?null:(0,N.jsxs)("span",{className:"muted",children:[" \xB7 ",a.reason]})]},a.id))})})]})}function a0(t){let{p:e}=t;return(0,N.jsxs)("dl",{className:"facts",children:[(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Question"}),(0,N.jsx)("dd",{children:(0,N.jsx)("code",{children:e.question})})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Answer"}),(0,N.jsx)("dd",{children:e.answer})]}),e.rationale===null?null:(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Rationale"}),(0,N.jsx)("dd",{children:e.rationale})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Governs"}),(0,N.jsx)("dd",{children:[...e.governs.requirements,...e.governs.paths,...e.governs.symbols].join(", ")||"\u2014"})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Supersedes"}),(0,N.jsx)("dd",{children:e.supersedes??"\u2014"})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"Proposed by"}),(0,N.jsxs)("dd",{children:[e.proposedBy,e.proposedAt===null?null:(0,N.jsxs)("span",{className:"muted",children:[" \xB7 ",e.proposedAt]})]})]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("dt",{children:"File"}),(0,N.jsx)("dd",{children:(0,N.jsx)($e,{location:e.location})})]})]})}function fp(t){let{p:e,preview:l}=t,n=(0,kl.useRef)(null),a=(0,kl.useRef)(null),[u,i]=(0,kl.useState)(""),[c,o]=(0,kl.useState)(""),[f,m]=(0,kl.useState)(!1),g=async r=>{m(!0);try{let s=r==="confirm"?{confirmId:u}:c.trim()===""?{}:{reason:c.trim()},E=(await ke.post(`/api/proposals/${encodeURIComponent(e.id)}/${r}`,s)).data;E.status==="failed"?t.done(`${e.id}: ${(E.diagnostics??[]).map(D=>`${D.code} ${D.message}`).join("; ")}`,!0):r==="confirm"?t.done(`${e.id} confirmed as ${E.result?.decisionId??"?"} (${E.result?.path??""}). Run duoctl index so the graph shows it.${(E.warnings??[]).length>0?` Warnings: ${(E.warnings??[]).map(D=>D.code).join(", ")}`:""}`):t.done(`${e.id} rejected.`)}catch(s){t.done(s instanceof Kl?`${s.code}: ${s.message}`:String(s),!0)}finally{m(!1),n.current?.close(),a.current?.close()}};return(0,N.jsxs)("article",{className:"card","aria-labelledby":`p-${e.id}`,children:[(0,N.jsxs)("h3",{id:`p-${e.id}`,children:[e.id," ",(0,N.jsx)(U,{text:"PROPOSED \xB7 pending",tone:"info"})," ",e.title]}),(0,N.jsx)(a0,{p:e}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsx)("button",{type:"button",onClick:()=>{i(""),n.current?.showModal()},children:"Confirm\u2026"}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>{o(""),a.current?.showModal()},children:"Reject\u2026"})]}),(0,N.jsx)("dialog",{ref:n,"aria-labelledby":`c-${e.id}`,children:(0,N.jsxs)("form",{method:"dialog",onSubmit:r=>{r.preventDefault(),u.trim()===e.id&&g("confirm")},children:[(0,N.jsxs)("h2",{id:`c-${e.id}`,children:["Confirm ",e.id,"?"]}),(0,N.jsxs)("p",{children:["Confirming makes this proposal a ",(0,N.jsx)("strong",{children:"confirmed Decision"})," in Project Truth",l?.nextDecisionId===void 0?"":` (${l.nextDecisionId})`,"."]}),(0,N.jsx)(a0,{p:e}),l?.stale===void 0?null:(0,N.jsxs)("p",{role:"alert",className:"box box-warn",children:["Stale: Project Truth changed since this proposal was made",l.stale.changedRefs.length>0?` (changed: ${l.stale.changedRefs.join(", ")})`:"",". Check it before confirming."]}),l?.supersedes===void 0?null:(0,N.jsxs)("p",{className:"box box-warn",children:["It supersedes ",(0,N.jsx)("strong",{children:l.supersedes.id})," \u201C",l.supersedes.title,"\u201D (",l.supersedes.state,"), which becomes SUPERSEDED."]}),l?.error===void 0?null:(0,N.jsxs)("p",{role:"alert",className:"box box-error",children:["Cannot preview: ",l.error.join(", ")]}),(0,N.jsxs)("label",{children:["Type ",(0,N.jsx)("code",{children:e.id})," to confirm ",(0,N.jsx)("input",{value:u,onChange:r=>i(r.target.value),autoFocus:!0,"aria-describedby":`c-${e.id}`})]}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsxs)("button",{type:"submit",disabled:f||u.trim()!==e.id,children:["Confirm ",e.id]}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>n.current?.close(),children:"Cancel"})]})]})}),(0,N.jsx)("dialog",{ref:a,"aria-labelledby":`r-${e.id}`,children:(0,N.jsxs)("form",{method:"dialog",onSubmit:r=>{r.preventDefault(),g("reject")},children:[(0,N.jsxs)("h2",{id:`r-${e.id}`,children:["Reject ",e.id,"?"]}),(0,N.jsx)("p",{children:"The proposal stays as a rejected record; it never becomes a Decision."}),(0,N.jsxs)("label",{children:["Reason (optional) ",(0,N.jsx)("textarea",{value:c,onChange:r=>o(r.target.value),maxLength:2e3,rows:3})]}),(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsxs)("button",{type:"submit",disabled:f,children:["Reject ",e.id]}),(0,N.jsx)("button",{type:"button",className:"secondary",onClick:()=>a.current?.close(),children:"Cancel"})]})]})})]})}var S=L($(),1),dp={CONFIRMED:"ok",PROPOSED:"info",SUPERSEDED:"muted",REJECTED:"muted"};function zd(t){return(0,S.jsx)(U,{text:t.label,tone:dp[t.label]})}function gc(t){return t.items.length===0?(0,S.jsx)(B,{children:"None."}):(0,S.jsxs)("table",{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{scope:"col",children:"ID"}),(0,S.jsx)("th",{scope:"col",children:"State"}),(0,S.jsx)("th",{scope:"col",children:"Decision"}),(0,S.jsx)("th",{scope:"col",children:"Enforcement"}),(0,S.jsx)("th",{scope:"col",children:"Source"})]})}),(0,S.jsx)("tbody",{children:t.items.map(e=>(0,S.jsxs)("tr",{children:[(0,S.jsx)("td",{children:(0,S.jsx)(at,{to:le(e.id),children:e.id})}),(0,S.jsxs)("td",{children:[(0,S.jsx)(zd,{label:e.label}),e.supersededBy===null?null:(0,S.jsxs)("span",{className:"muted",children:[" by ",e.supersededBy]})]}),(0,S.jsxs)("td",{children:[(0,S.jsx)("strong",{children:e.title}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{className:"muted",children:e.question})," = ",e.answer]}),(0,S.jsx)("td",{children:e.enforcement??"\u2014"}),(0,S.jsx)("td",{children:(0,S.jsx)($e,{location:e.location})})]},e.id))})]})}function i0(){let[t,e]=Yt("/api/direction");return(0,S.jsx)(pt,{title:"Direction",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:t.state==="loading"?(0,S.jsx)(Gt,{}):t.state==="error"?(0,S.jsx)(ht,{error:t.error}):(0,S.jsx)(rp,{d:t.data})})}function rp(t){let{d:e}=t;if(e.requirements===void 0)return(0,S.jsx)(B,{children:"Not a DUO project yet: run duoctl init."});let l=a=>e.decisions.filter(u=>u.label===a),n=e.proposals.filter(a=>a.status==="pending").length;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y,{title:"Vision",children:e.vision===null?(0,S.jsx)(B,{children:"No vision document yet."}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("p",{children:[(0,S.jsx)(U,{text:e.vision.status.toUpperCase(),tone:e.vision.status==="confirmed"?"ok":"info"})," ",(0,S.jsx)($e,{location:e.vision.location})]}),(0,S.jsx)("pre",{className:"truth",children:e.vision.body.trim()})]})}),(0,S.jsx)(Y,{title:"Milestones",count:e.milestones.length,children:e.milestones.length===0?(0,S.jsx)(B,{children:"No milestones yet."}):(0,S.jsx)("ul",{children:e.milestones.map(a=>(0,S.jsxs)("li",{children:[(0,S.jsx)(at,{to:le(a.id),children:a.id})," ",a.title," ",(0,S.jsx)(U,{text:a.state,tone:"muted"}),a.current?(0,S.jsx)(U,{text:"current",tone:"ok"}):null," ",(0,S.jsx)($e,{location:a.location})]},a.id))})}),(0,S.jsx)(Y,{title:"Requirements",count:e.requirements.length,children:e.requirements.length===0?(0,S.jsx)(B,{children:"No confirmed requirements yet. DUO can still analyze repository structure and changes."}):(0,S.jsxs)("table",{children:[(0,S.jsx)("thead",{children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("th",{scope:"col",children:"ID"}),(0,S.jsx)("th",{scope:"col",children:"Title"}),(0,S.jsx)("th",{scope:"col",children:"Status"}),(0,S.jsx)("th",{scope:"col",children:"Milestone"}),(0,S.jsx)("th",{scope:"col",children:"Priority"}),(0,S.jsx)("th",{scope:"col",children:"Source"})]})}),(0,S.jsx)("tbody",{children:e.requirements.map(a=>(0,S.jsxs)("tr",{children:[(0,S.jsx)("td",{children:(0,S.jsx)(at,{to:le(a.id),children:a.id})}),(0,S.jsx)("td",{children:a.title}),(0,S.jsx)("td",{children:a.status}),(0,S.jsx)("td",{children:a.milestone??"\u2014"}),(0,S.jsx)("td",{children:a.priority??"\u2014"}),(0,S.jsx)("td",{children:(0,S.jsx)($e,{location:a.location})})]},a.id))})]})}),(0,S.jsx)(Y,{title:"Constraints",count:e.constraints.length,children:e.constraints.length===0?(0,S.jsx)(B,{children:"No constraints yet."}):(0,S.jsx)("ul",{children:e.constraints.map(a=>(0,S.jsxs)("li",{children:[(0,S.jsx)(at,{to:le(a.id),children:a.id})," ",(0,S.jsx)(U,{text:a.state.toUpperCase(),tone:a.state==="confirmed"?"ok":"muted"})," ",a.statement," ",(0,S.jsxs)("span",{className:"muted",children:["(",a.enforcement,")"]})," ",(0,S.jsx)($e,{location:a.location})]},a.id))})}),(0,S.jsx)(Y,{title:"Active decisions",count:l("CONFIRMED").length,children:(0,S.jsx)(gc,{items:l("CONFIRMED")})}),(0,S.jsxs)(Y,{title:"Proposed decisions (not confirmed intent)",count:l("PROPOSED").length+n,open:l("PROPOSED").length+n>0,children:[(0,S.jsx)(gc,{items:l("PROPOSED")}),n===0?null:(0,S.jsxs)("p",{children:[n," proposal(s) wait for a human: ",(0,S.jsx)(at,{to:"/decisions",children:"Pending decisions"}),". A proposal is not a Decision until a human confirms it."]})]}),(0,S.jsx)(Y,{title:"Superseded decisions",count:l("SUPERSEDED").length,open:!1,children:(0,S.jsx)(gc,{items:l("SUPERSEDED")})}),(0,S.jsx)(Y,{title:"Rejected decisions",count:l("REJECTED").length,open:!1,children:(0,S.jsx)(gc,{items:l("REJECTED")})})]})}var et=L($(),1);function c0(t){let[e,l]=Yt(`/api/entity/${encodeURIComponent(t.id)}`);return(0,et.jsx)(pt,{title:t.id,onRefresh:l,durationMs:e.state==="ok"?e.durationMs:void 0,children:e.state==="loading"?(0,et.jsx)(Gt,{}):e.state==="error"?(0,et.jsx)(ht,{error:e.error}):e.data.status!=="found"?(0,et.jsxs)(B,{children:[t.id," is not a Truth definition or graph node."]}):(0,et.jsx)(sp,{e:e.data})})}function sp(t){let{e}=t,l=e.definition;return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)("p",{children:[(0,et.jsx)(U,{text:e.type??"node",tone:"muted"})," ",l?.label===void 0?null:(0,et.jsx)(zd,{label:l.label})," ",l?.status===void 0?null:(0,et.jsx)(U,{text:l.status,tone:"info"}),e.type==="proposal"?(0,et.jsx)(U,{text:"PROPOSED \xB7 not confirmed intent",tone:"info"}):null," ",l?.title??l?.statement??""," ",(0,et.jsx)($e,{location:l?.location})]}),l?.question===void 0?null:(0,et.jsxs)("p",{children:[(0,et.jsx)("code",{children:l.question})," = ",l.answer]}),e.text===void 0?null:(0,et.jsx)(Y,{title:"Definition source",children:(0,et.jsx)("pre",{className:"truth",children:e.text})}),e.trace?.nodes===void 0?null:(0,et.jsxs)(Y,{title:"Direct relations",count:e.trace.edges?.length??0,children:[(e.trace.edges??[]).length===0?(0,et.jsx)(B,{children:"No recorded relation."}):(0,et.jsx)("ul",{children:e.trace.edges?.map(n=>(0,et.jsxs)("li",{children:[(0,et.jsx)("code",{children:n.from})," ",n.type," ",(0,et.jsx)("code",{children:n.to})]},`${n.from}${n.type}${n.to}`))}),(0,et.jsx)("p",{children:(0,et.jsx)(at,{to:`/graph?node=${encodeURIComponent(e.id)}`,children:"Explore in the graph"})})]})]})}var r0=L(me(),1);var z=L($(),1);function yp(t){return t.llm==="disabled"?{text:"LLM disabled (default): DUO works without it",tone:"muted"}:t.llm==="configured"?{text:`Semantic assistance available \xB7 ${t.llmProvider?.provider??""} ${t.llmProvider?.model??""}`.trim(),tone:"ok"}:{text:`Semantic assistance unavailable${t.llmProvider?.reason===void 0?"":` \xB7 ${t.llmProvider.reason}`}`,tone:"warn"}}function Ad(t){return t.status==="current"?(0,z.jsx)(U,{text:"index current",tone:"ok"}):(0,z.jsxs)("span",{children:[(0,z.jsx)(U,{text:`Index required (${t.status??"unknown"})`,tone:"warn"})," Run ",(0,z.jsx)(ze,{children:"duoctl index"})," in the repository, then Refresh."]})}function o0(){let[t,e]=Yt("/api/overview");return(0,z.jsx)(pt,{title:"Overview",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:t.state==="loading"?(0,z.jsx)(Gt,{}):t.state==="error"?(0,z.jsx)(ht,{error:t.error}):mc(t.data)?(0,z.jsx)(mp,{o:t.data}):(0,z.jsx)(B,{children:t.data.message??"Not a DUO project yet: run duoctl init."})})}function mp(t){let{o:e}=t,l=e.status,n=yp(l),a=Object.entries(e.requirements.byStatus).map(([u,i])=>`${u} ${i}`).join(" \xB7 ");return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("dl",{className:"facts",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Project"}),(0,z.jsxs)("dd",{children:[l.project.name," ",(0,z.jsxs)("span",{className:"muted",children:["\xB7 vision ",l.project.vision]})]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Current milestone"}),(0,z.jsx)("dd",{children:e.currentMilestone===null?(0,z.jsx)("span",{className:"muted",children:"not set"}):(0,z.jsxs)(at,{to:`/entity/${encodeURIComponent(e.currentMilestone.id)}`,children:[e.currentMilestone.id," ",e.currentMilestone.title]})})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Index"}),(0,z.jsxs)("dd",{children:[(0,z.jsx)(Ad,{status:l.index?.status}),l.index!==null&&l.index.status!=="current"?(0,z.jsxs)("span",{className:"muted",children:[" \xB7 ",l.index.changes.files," changed files"]}):null]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Adoption baseline"}),(0,z.jsx)("dd",{children:l.baseline===null?"\u2014":(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U,{text:l.baseline.status,tone:l.baseline.status==="current"||l.baseline.status==="advanced"?"ok":"muted"}),l.baseline.findings===void 0?null:(0,z.jsxs)("span",{className:"muted",children:[" \xB7 ",l.baseline.findings," pre-existing findings"]})]})})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Requirements"}),(0,z.jsxs)("dd",{children:[e.requirements.total,a===""?null:(0,z.jsxs)("span",{className:"muted",children:[" \xB7 ",a]})]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Decisions"}),(0,z.jsxs)("dd",{children:[e.decisions.active," active ",(0,z.jsxs)("span",{className:"muted",children:["\xB7 ",e.decisions.total," total"]})]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Pending human decisions"}),(0,z.jsx)("dd",{children:l.pendingDecisions.length===0?"none":(0,z.jsxs)(at,{to:"/decisions",children:[l.pendingDecisions.length," waiting for a human"]})})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Declared knowledge gaps"}),(0,z.jsx)("dd",{children:e.declaredGaps.length})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"Latest recorded review"}),(0,z.jsx)("dd",{children:e.latestReview===null?(0,z.jsx)("span",{className:"muted",children:"none recorded (duoctl review --record)"}):(0,z.jsxs)(at,{to:`/reviews/${e.latestReview.id}`,children:[(0,z.jsx)(sl,{verdict:e.latestReview.verdict})," ",e.latestReview.id]})})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("dt",{children:"LLM"}),(0,z.jsx)("dd",{children:(0,z.jsx)(U,{text:n.text,tone:n.tone})})]})]}),e.requirements.total===0&&e.decisions.total===0?(0,z.jsx)(B,{children:"No confirmed requirements yet. DUO can still analyze repository structure and changes."}):null,(0,z.jsx)(Y,{title:"Analysis coverage",children:l.analysis===null?(0,z.jsxs)(B,{children:["No index yet: run ",(0,z.jsx)(ze,{children:"duoctl index"}),"."]}):(0,z.jsxs)("p",{children:[l.analysis.languages.map(u=>(0,z.jsxs)("span",{className:"chip",children:[u.language," ",(0,z.jsx)(Ea,{level:u.level})," ",u.files]},u.language)),l.analysis.fileOnly.files>0?(0,z.jsxs)("span",{className:"chip",children:["other files ",(0,z.jsx)(Ea,{level:"L0"})," ",l.analysis.fileOnly.files]}):null," ",(0,z.jsx)(at,{to:"/coverage",children:"details"})]})}),(0,z.jsx)(Y,{title:"Declared knowledge gaps",count:e.declaredGaps.length,open:e.declaredGaps.length>0,children:e.declaredGaps.length===0?(0,z.jsx)(B,{children:"No UNKNOWN lines in Project Truth."}):(0,z.jsx)("ul",{children:e.declaredGaps.map(u=>(0,z.jsxs)("li",{children:[(0,z.jsx)("code",{children:u.owner}),u.key===void 0?null:(0,z.jsxs)(z.Fragment,{children:[" \xB7 ",(0,z.jsx)("code",{children:u.key})]})," \u2014 ",u.text]},u.id))})})]})}var A=L($(),1),f0=["project","milestone","requirement","decision","issue","file","symbol","test"];function s0(){let t=Ta(),e=new URLSearchParams(t.split("?")[1]??""),l=e.get("node")??"",n=e.get("kind")==="impact"?"impact":"trace",a=Math.min(3,Math.max(1,Number(e.get("depth")??"1")||1)),[u,i]=(0,r0.useState)(l),c=(m,g=n,r=a)=>zu(`/graph?${Jl({node:m,kind:g,depth:r})}`),[o,f]=Yt(l===""?void 0:`/api/graph?${Jl({node:l,kind:n,depth:a})}`);return(0,A.jsxs)(pt,{title:"Graph",onRefresh:l===""?void 0:f,durationMs:o.state==="ok"?o.durationMs:void 0,children:[(0,A.jsxs)("form",{className:"form",onSubmit:m=>{m.preventDefault(),u.trim()!==""&&c(u.trim())},children:[(0,A.jsxs)("label",{children:["Seed ",(0,A.jsx)("input",{value:u,onChange:m=>i(m.target.value),placeholder:"AUTH-03, src/a.ts, Class.method, sym:\u2026",size:40})]}),(0,A.jsxs)("label",{children:["View ",(0,A.jsxs)("select",{value:n,onChange:m=>l!==""&&c(l,m.target.value),children:[(0,A.jsx)("option",{value:"trace",children:"trace (relations)"}),(0,A.jsx)("option",{value:"impact",children:"impact (what may be affected)"})]})]}),(0,A.jsxs)("label",{children:["Depth ",(0,A.jsx)("select",{value:a,onChange:m=>l!==""&&c(l,n,Number(m.target.value)),children:[1,2,3].map(m=>(0,A.jsx)("option",{value:m,children:m},m))})]}),(0,A.jsx)("button",{type:"submit",children:"Explore"})]}),l===""?(0,A.jsx)(B,{children:"Choose a seed: a Requirement or Decision ID, a file path or a symbol. The explorer shows a bounded neighbourhood, never the whole graph."}):o.state==="loading"?(0,A.jsx)(Gt,{}):o.state==="error"?(0,A.jsx)(ht,{error:o.error}):(0,A.jsx)(vp,{g:o.data,go:m=>{i(m),c(m)}})]})}function d0(t){return(0,A.jsxs)("span",{className:"node",children:[(0,A.jsx)("button",{type:"button",className:"link",onClick:()=>t.go(t.id),title:"explore from here",children:t.id})," ",(0,A.jsx)(at,{to:le(t.id),className:"small",children:"detail"})]})}function vp(t){let{g:e}=t;return e.status==="not-found"?(0,A.jsx)(B,{children:"No such node in the graph."}):e.status!=="found"?(0,A.jsx)("p",{role:"alert",className:"box box-error",children:e.status}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("p",{children:[e.index==="current"?null:(0,A.jsx)(Ad,{status:e.index})," ",e.truncated?(0,A.jsx)(U,{text:"truncated: limits reached",tone:"warn"}):null]}),e.nodes!==void 0?(0,A.jsx)("div",{className:"graph-columns",children:[...new Set(e.nodes.map(l=>l.depth))].sort().map(l=>(0,A.jsxs)("section",{"aria-label":`depth ${l}`,children:[(0,A.jsx)("h2",{children:l===0?"Seed":`Depth ${l}`}),(0,A.jsx)("ul",{children:e.nodes?.filter(n=>n.depth===l).sort((n,a)=>f0.indexOf(n.type)-f0.indexOf(a.type)||n.id.localeCompare(a.id)).map(n=>(0,A.jsxs)("li",{children:[(0,A.jsx)(U,{text:n.type,tone:"muted"})," ",(0,A.jsx)(d0,{id:n.id,go:t.go})]},n.id))})]},l))}):null,e.edges===void 0?null:(0,A.jsxs)("details",{className:"section",children:[(0,A.jsx)("summary",{children:(0,A.jsxs)("h2",{children:["Edges (",e.edges.length,")"]})}),(0,A.jsxs)("table",{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{scope:"col",children:"From"}),(0,A.jsx)("th",{scope:"col",children:"Edge"}),(0,A.jsx)("th",{scope:"col",children:"To"})]})}),(0,A.jsx)("tbody",{children:e.edges.map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{children:(0,A.jsx)("code",{children:l.from})}),(0,A.jsx)("td",{children:l.type}),(0,A.jsx)("td",{children:(0,A.jsx)("code",{children:l.to})})]},`${l.from} ${l.type} ${l.to}`))})]})]}),e.items===void 0?null:(0,A.jsxs)(A.Fragment,{children:[e.items.length===0?(0,A.jsx)(B,{children:"No recorded relation reaches another node."}):(0,A.jsxs)("table",{children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{scope:"col",children:"Relation"}),(0,A.jsx)("th",{scope:"col",children:"Depth"}),(0,A.jsx)("th",{scope:"col",children:"Node"}),(0,A.jsx)("th",{scope:"col",children:"Via"})]})}),(0,A.jsx)("tbody",{children:e.items.map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{children:l.relation}),(0,A.jsx)("td",{children:l.depth}),(0,A.jsx)("td",{children:(0,A.jsx)(d0,{id:l.id,go:t.go})}),(0,A.jsxs)("td",{children:[l.via.edge," from ",(0,A.jsx)("code",{children:l.via.from})]})]},l.id))})]}),e.notice===void 0?null:(0,A.jsx)("p",{className:"muted small",children:e.notice}),(e.limitations??[]).length===0?null:(0,A.jsx)("ul",{className:"muted small",children:e.limitations?.map(l=>(0,A.jsx)("li",{children:l.message},l.code))})]})]})}var $l=L(me(),1);var y0=L(me(),1);var At=L($(),1),gp={"project-truth":"Project Truth",repository:"Repository",git:"Git",test:"Test",llm:"LLM"};function m0(t){let e=new Map(t.evidence.map(l=>[l.id,l]));return(0,At.jsx)("ul",{className:"evidence",children:t.ids.map(l=>(0,At.jsx)(hp,{id:l,e:e.get(l)},l))})}function hp(t){let{e}=t,[l,n]=(0,y0.useState)(),a=e?.pointer,u=a?.lines,i=async()=>{if(!(a?.path===void 0||u===void 0))try{let c=await ke.get(`/api/source?${Jl({path:a.path,start:u[0],end:u[1]})}`);n(c.data)}catch(c){n(c instanceof Error?c.message:String(c))}};return(0,At.jsxs)("li",{children:[(0,At.jsx)(U,{text:gp[e?.basis??""]??e?.basis??"?",tone:e?.basis==="llm"?"warn":"info"})," ",(0,At.jsx)("code",{children:t.id})," ",e?.summary??"",a?.path===void 0?null:(0,At.jsxs)(At.Fragment,{children:[" \xB7 ",(0,At.jsxs)("code",{className:"loc",children:[a.path,u===void 0?"":`:${u[0]}-${u[1]}`]})]}),a?.commit===void 0?null:(0,At.jsxs)(At.Fragment,{children:[" \xB7 commit ",(0,At.jsx)("code",{children:a.commit.slice(0,12)})]}),a?.path!==void 0&&u!==void 0&&l===void 0?(0,At.jsxs)(At.Fragment,{children:[" ",(0,At.jsx)("button",{type:"button",className:"link",onClick:()=>{i()},children:"Show lines"})]}):null,typeof l=="string"?(0,At.jsx)("p",{className:"muted",children:l}):l===void 0?null:(0,At.jsxs)("pre",{className:"slice",children:[l.lines.map((c,o)=>`${String(l.start+o).padStart(5)} ${c}`).join(`
10
10
  `),l.truncated?`
11
- \u2026`:""]})]})}var z=L($(),1),pp="PASS means no Project Direction violation was found in the available evidence. It does not mean the tests pass or the code is bug-free.";function bp(t){let[e,l]=(0,$l.useState)();return t.claims.length===0?(0,z.jsx)(B,{children:"No claims."}):(0,z.jsxs)("table",{children:[(0,z.jsx)("thead",{children:(0,z.jsxs)("tr",{children:[(0,z.jsx)("th",{scope:"col",children:"Alignment"}),(0,z.jsx)("th",{scope:"col",children:"Rule"}),(0,z.jsx)("th",{scope:"col",children:"Subject"}),(0,z.jsx)("th",{scope:"col",children:"Reason"}),(0,z.jsx)("th",{scope:"col",children:"Provenance"}),(0,z.jsx)("th",{scope:"col",children:"Evidence"})]})}),(0,z.jsx)("tbody",{children:t.claims.map(n=>(0,z.jsxs)("tr",{children:[(0,z.jsxs)("td",{children:[(0,z.jsx)(U,{text:n.alignment,tone:n.alignment==="ALIGNED"?"ok":n.alignment==="CONFLICT"?n.blockEligible?"block":"warn":"info"}),n.blockEligible?(0,z.jsx)(U,{text:"blocking",tone:"block"}):null,n.drift?(0,z.jsx)(U,{text:"drift",tone:"warn"}):null]}),(0,z.jsx)("td",{children:n.rule}),(0,z.jsx)("td",{children:(0,z.jsx)("code",{children:n.subject.id})}),(0,z.jsxs)("td",{children:[n.reason,n.observed===void 0?null:(0,z.jsx)("div",{className:"muted small",children:n.observed})]}),(0,z.jsx)("td",{children:(0,z.jsx)(yl,{value:n.provenance})}),(0,z.jsxs)("td",{children:[(0,z.jsxs)("button",{type:"button",className:"link","aria-expanded":e===n.id,onClick:()=>l(e===n.id?void 0:n.id),children:[n.evidenceIds.length," item(s)"]}),e===n.id?(0,z.jsx)(m0,{ids:n.evidenceIds,evidence:t.evidence}):null]})]},n.id))})]})}function Sp(t){let{a:e}=t;return e.status==="not-requested"?null:(0,z.jsxs)(Y,{title:"Semantic assistance (supplemental, never blocks)",children:[(0,z.jsxs)("p",{children:[(0,z.jsx)(U,{text:e.status,tone:e.status==="success"?"ok":"muted"}),e.failure===void 0?null:(0,z.jsxs)("span",{className:"muted",children:[" \xB7 ",e.failure]}),e.provider===void 0?null:(0,z.jsxs)("span",{className:"muted",children:[" \xB7 ",e.provider.id," ",e.provider.model??""]}),e.cacheHits>0?(0,z.jsx)("span",{className:"muted",children:" \xB7 cached"}):null]}),(0,z.jsx)("p",{className:"muted small",children:"LLM answers are kept apart from the deterministic claims above; they never change them. At most they raise PASS to WARN."}),e.claims.length===0?null:(0,z.jsx)("ul",{children:e.claims.map(l=>(0,z.jsxs)("li",{children:[(0,z.jsx)(U,{text:l.alignment,tone:"info"})," ",(0,z.jsx)("code",{children:l.claimId})," ",l.reason??""]},l.claimId))}),e.verdict===void 0?null:(0,z.jsxs)("p",{children:["With semantic assistance: ",(0,z.jsx)(sl,{verdict:e.verdict})]})]})}function Ep(t){let{r:e}=t;if(e.status==="index-required")return(0,z.jsxs)("p",{role:"status",className:"box box-warn",children:[(0,z.jsx)(U,{text:"index-required",tone:"warn"})," The index is ",e.freshness?.status??"not current",". Run ",(0,z.jsx)(ze,{children:"duoctl index"}),", then review again."]});if(e.status!=="ready")return(0,z.jsx)("p",{role:"alert",className:"box box-error",children:e.status});let l=e.diff?.files.filter(n=>n.provenance==="adoption-bootstrap")??[];return(0,z.jsxs)("div",{"aria-live":"polite",children:[(0,z.jsxs)("h2",{className:"verdict-line",children:["Deterministic review: ",(0,z.jsx)(sl,{verdict:e.verdict})]}),e.verdict==="PASS"?(0,z.jsx)("p",{className:"muted",children:pp}):null,(0,z.jsxs)("p",{className:"muted small",children:["Diff ",e.diff?.from," \u2192 ",e.diff?.to," \xB7 ",e.diff?.files.length??0," files \xB7 baseline ",e.baseline.status," \xB7 llm calls ",e.metrics.llmCalls]}),l.length===0?null:(0,z.jsxs)("p",{children:[(0,z.jsx)(yl,{value:"adoption-bootstrap"})," ",l.length," Truth file(s) exactly as init wrote them are not reviewed until changed."]}),(0,z.jsx)(Y,{title:"Claims",count:e.claims.length,children:(0,z.jsx)(bp,{claims:e.claims,evidence:e.evidence})}),(0,z.jsx)(Y,{title:"Knowledge gaps",count:e.gaps?.gaps.filter(n=>n.action!=="ignore").length??0,children:e.gaps===void 0?(0,z.jsx)(B,{children:"Not assessed."}):(0,z.jsx)(Od,{gaps:e.gaps.gaps})}),(0,z.jsx)(Y,{title:"Limitations",count:e.limitations.length,open:!1,children:(0,z.jsx)("ul",{children:e.limitations.map(n=>(0,z.jsxs)("li",{children:[(0,z.jsx)("code",{children:n.code})," ",n.message]},n.code))})}),(0,z.jsx)(Sp,{a:e.semanticAssist,evidence:e.evidence}),(0,z.jsxs)("p",{className:"muted small",children:["This review is not recorded. To keep it as history, run ",(0,z.jsx)(ze,{children:"duoctl review --record"}),"."]})]})}function v0(){let[t,e]=(0,$l.useState)(""),[l,n]=(0,$l.useState)("HEAD"),[a,u]=(0,$l.useState)("WORKTREE"),[i,c]=(0,$l.useState)(!1),[o,f]=(0,$l.useState)(!1),[m,g]=(0,$l.useState)(),r=async()=>{f(!0);try{let s=await ke.post("/api/review",{from:l,to:a,...t.trim()===""?{}:{task:t},...i?{includeSemanticAssist:!0}:{}});g({r:s.data,...s.meta===void 0?{}:{ms:s.meta.durationMs}})}catch(s){g(s instanceof Error?s:new Error(String(s)))}finally{f(!1)}};return(0,z.jsxs)(pt,{title:"Review",durationMs:m!==void 0&&!(m instanceof Error)?m.ms:void 0,children:[(0,z.jsxs)("form",{className:"form",onSubmit:s=>{s.preventDefault(),r()},children:[(0,z.jsxs)("label",{children:["From ",(0,z.jsx)("input",{value:l,onChange:s=>n(s.target.value),size:12})]}),(0,z.jsxs)("label",{children:["To ",(0,z.jsx)("input",{value:a,onChange:s=>u(s.target.value),size:12})]}),(0,z.jsxs)("label",{children:["Task (optional) ",(0,z.jsx)("input",{value:t,onChange:s=>e(s.target.value),size:30})]}),(0,z.jsxs)("label",{className:"check",children:[(0,z.jsx)("input",{type:"checkbox",checked:i,onChange:s=>c(s.target.checked)})," Use semantic assistance"]}),(0,z.jsx)("button",{type:"submit",disabled:o,children:o?"Reviewing\u2026":"Review changes"})]}),i?(0,z.jsx)("p",{className:"box box-warn small",children:"Selected evidence slices will be sent to the configured OpenAI provider."}):null,m===void 0?null:m instanceof Error?(0,z.jsx)(ht,{error:m}):(0,z.jsx)(Ep,{r:m.r})]})}var T=L($(),1);function g0(){let[t,e]=Yt("/api/reviews");return(0,T.jsxs)(pt,{title:"Review history",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,T.jsxs)("p",{className:"muted",children:["Reviews a human recorded with ",(0,T.jsx)("code",{children:"duoctl review --record"}),". Running a review in the UI does not record it."]}),t.state==="loading"?(0,T.jsx)(Gt,{}):t.state==="error"?(0,T.jsx)(ht,{error:t.error}):(0,T.jsxs)(T.Fragment,{children:[t.data.problems?.length?(0,T.jsx)("div",{role:"alert",className:"box box-error",children:t.data.problems.map(l=>(0,T.jsxs)("p",{children:[l.code,": ",l.message]},l.message))}):null,t.data.records===void 0||t.data.records.length===0?(0,T.jsx)(B,{children:"No recorded reviews yet."}):(0,T.jsxs)("table",{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{scope:"col",children:"Review"}),(0,T.jsx)("th",{scope:"col",children:"Verdict"}),(0,T.jsx)("th",{scope:"col",children:"Diff"}),(0,T.jsx)("th",{scope:"col",children:"Claims"}),(0,T.jsx)("th",{scope:"col",children:"Recorded"})]})}),(0,T.jsx)("tbody",{children:t.data.records.map(l=>(0,T.jsxs)("tr",{children:[(0,T.jsxs)("td",{children:[(0,T.jsx)(at,{to:`/reviews/${l.id}`,children:l.id}),l.assist===void 0?null:(0,T.jsxs)(T.Fragment,{children:[" ",(0,T.jsx)(U,{text:"+ semantic supplement",tone:"muted"})]})]}),(0,T.jsx)("td",{children:(0,T.jsx)(sl,{verdict:l.body.review?.verdict})}),(0,T.jsxs)("td",{children:[(0,T.jsx)("code",{children:(l.body.diff?.identity??"").slice(0,19)})," ",l.body.diff?.from," \u2192 ",l.body.diff?.to]}),(0,T.jsx)("td",{children:l.body.claims?.length??0}),(0,T.jsxs)("td",{children:[l.recorded?.at??""," ",l.recorded?.by??""]})]},l.id))})]})]})]})}function h0(t){let[e,l]=Yt(`/api/reviews/${t.id}`);return(0,T.jsx)(pt,{title:`Review ${t.id}`,onRefresh:l,children:e.state==="loading"?(0,T.jsx)(Gt,{}):e.state==="error"?(0,T.jsx)(ht,{error:e.error}):e.data.record===void 0?(0,T.jsxs)(B,{children:["No recorded review ",t.id,"."]}):(0,T.jsx)(Tp,{r:e.data.record})})}function Tp(t){let{r:e}=t,l=new Map((e.body.evidence??[]).map(n=>[n.id,n]));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("h2",{className:"verdict-line",children:["Recorded verdict: ",(0,T.jsx)(sl,{verdict:e.body.review?.verdict})]}),(0,T.jsxs)("p",{className:"muted small",children:[e.path," \xB7 diff ",(0,T.jsx)("code",{children:e.body.diff?.identity})," ",e.body.diff?.from," \u2192 ",e.body.diff?.to," \xB7 recorded ",e.recorded?.at??""," by ",e.recorded?.by??""]}),(0,T.jsx)(Y,{title:"Claims",count:e.body.claims?.length??0,children:(0,T.jsxs)("table",{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{scope:"col",children:"Alignment"}),(0,T.jsx)("th",{scope:"col",children:"Rule"}),(0,T.jsx)("th",{scope:"col",children:"Subject"}),(0,T.jsx)("th",{scope:"col",children:"Reason"}),(0,T.jsx)("th",{scope:"col",children:"Provenance"}),(0,T.jsx)("th",{scope:"col",children:"Evidence pointers"})]})}),(0,T.jsx)("tbody",{children:(e.body.claims??[]).map(n=>(0,T.jsxs)("tr",{children:[(0,T.jsxs)("td",{children:[(0,T.jsx)(U,{text:n.alignment,tone:n.alignment==="ALIGNED"?"ok":"info"}),n.blockEligible?(0,T.jsx)(U,{text:"blocking",tone:"block"}):null]}),(0,T.jsx)("td",{children:n.rule}),(0,T.jsx)("td",{children:(0,T.jsx)("code",{children:n.subject.id})}),(0,T.jsx)("td",{children:n.reason}),(0,T.jsx)("td",{children:(0,T.jsx)(yl,{value:n.provenance})}),(0,T.jsx)("td",{children:(0,T.jsx)("ul",{className:"evidence",children:n.evidenceIds.map(a=>{let u=l.get(a);return(0,T.jsxs)("li",{children:[u?.basis??"?"," ",u?.pointer?.path??"",u?.pointer?.lines===void 0?"":`:${u.pointer.lines[0]}-${u.pointer.lines[1]}`,u?.pointer?.commit===void 0?"":` @${u.pointer.commit.slice(0,12)}`]},a)})})})]},n.id))})]})}),(0,T.jsx)(Y,{title:"Gap summary",count:e.body.gaps?.gaps?.length??0,children:e.body.gaps===null||e.body.gaps===void 0?(0,T.jsx)(B,{children:"None recorded."}):(0,T.jsx)("ul",{children:(e.body.gaps.gaps??[]).map(n=>(0,T.jsxs)("li",{children:[(0,T.jsx)(U,{text:n.action.toUpperCase(),tone:"info"})," ",n.kind]},n.id))})}),e.assist===void 0?null:(0,T.jsxs)(Y,{title:"Semantic supplement (separate record, not deterministic history)",open:!1,children:[(0,T.jsxs)("p",{className:"muted small",children:[e.assist.path," \xB7 ",e.assist.body.provider?.id??""," ",e.assist.body.provider?.model??""]}),(0,T.jsx)("ul",{children:(e.assist.body.claims??[]).map(n=>(0,T.jsxs)("li",{children:[(0,T.jsx)(U,{text:n.alignment,tone:"info"})," ",(0,T.jsx)("code",{children:n.claimId})]},n.claimId))}),e.assist.body.verdict===void 0?null:(0,T.jsxs)("p",{children:["With semantic assistance: ",(0,T.jsx)(sl,{verdict:e.assist.body.verdict})]})]}),(e.body.claims??[]).some(n=>n.provenance!==void 0)?(0,T.jsxs)("p",{className:"muted small",children:["Provenance legend: ",(0,T.jsx)(yl,{value:"introduced"})," ",(0,T.jsx)(yl,{value:"pre-existing"})," ",(0,T.jsx)(yl,{value:"pre-existing-touched"})," ",(0,T.jsx)(yl,{value:"unverified-at-adoption"})]}):null]})}var p0=L(me(),1);var jt=L($(),1);function b0(){let t=Ta(),e=new URLSearchParams(t.split("?")[1]??"").get("q")??"",[l,n]=(0,p0.useState)(e),[a]=Yt(e===""?void 0:`/api/search?${Jl({q:e})}`);return(0,jt.jsxs)(pt,{title:"Search",children:[(0,jt.jsxs)("form",{className:"form",role:"search",onSubmit:u=>{u.preventDefault(),l.trim()!==""&&zu(`/search?${Jl({q:l.trim()})}`)},children:[(0,jt.jsxs)("label",{children:["Find ",(0,jt.jsx)("input",{value:l,onChange:u=>n(u.target.value),placeholder:"Requirement or Decision ID, symbol, file, text",size:40})]}),(0,jt.jsx)("button",{type:"submit",children:"Search"})]}),e===""?null:a.state==="loading"?(0,jt.jsx)(Gt,{}):a.state==="error"?(0,jt.jsx)(ht,{error:a.error}):(a.data.candidates??[]).length===0?(0,jt.jsx)(B,{children:"No match."}):(0,jt.jsx)("ul",{children:a.data.candidates?.map(u=>(0,jt.jsxs)("li",{children:[(0,jt.jsx)(U,{text:u.kind,tone:"muted"})," ",(0,jt.jsx)(at,{to:le(u.id),children:u.id})," ",(0,jt.jsxs)("span",{className:"muted",children:[u.match,u.path===void 0?"":` \xB7 ${u.path}`]})]},`${u.source}${u.id}`))}),(0,jt.jsxs)("p",{className:"muted small",children:["Review records are listed under ",(0,jt.jsx)(at,{to:"/reviews",children:"Review history"}),"."]})]})}var yt=L($(),1),Np=[["/overview","Overview"],["/direction","Direction"],["/decisions","Pending decisions"],["/graph","Graph"],["/coverage","Analysis coverage"],["/context","Context"],["/review","Review"],["/reviews","Review history"],["/search","Search"]];function Op(t){let e=/^\/entity\/(.+)$/u.exec(t);if(e!==null)return(0,yt.jsx)(c0,{id:decodeURIComponent(e[1])});let l=/^\/reviews\/([\w.-]+)$/u.exec(t);if(l!==null)return(0,yt.jsx)(h0,{id:l[1]});switch(t){case"/direction":return(0,yt.jsx)(i0,{});case"/decisions":return(0,yt.jsx)(u0,{});case"/graph":return(0,yt.jsx)(s0,{});case"/coverage":return(0,yt.jsx)(t0,{});case"/context":return(0,yt.jsx)(n0,{});case"/review":return(0,yt.jsx)(v0,{});case"/reviews":return(0,yt.jsx)(g0,{});case"/search":return(0,yt.jsx)(b0,{});default:return(0,yt.jsx)(o0,{})}}function S0(){let e=Ta().split("?")[0]??"/";return(0,yt.jsxs)("div",{className:"layout",children:[(0,yt.jsx)("a",{href:"#main",className:"skip",children:"Skip to content"}),(0,yt.jsxs)("nav",{"aria-label":"DUO",children:[(0,yt.jsxs)("p",{className:"brand",children:["DUO ",(0,yt.jsx)("span",{className:"muted small",children:"Project Direction Console"})]}),(0,yt.jsx)("ul",{children:Np.map(([l,n])=>(0,yt.jsx)("li",{children:(0,yt.jsx)(at,{to:l,current:e===l||l==="/overview"&&e==="/",children:n})},l))}),(0,yt.jsx)("p",{className:"muted small",children:"Local only. Reads Project Truth; writes only human Decision confirm/reject."})]}),(0,yt.jsx)("main",{id:"main",tabIndex:-1,children:Op(e)})]})}var Dd=L($(),1),E0=document.getElementById("root");E0!==null&&(0,N0.createRoot)(E0).render((0,Dd.jsx)(T0.StrictMode,{children:(0,Dd.jsx)(S0,{})}));
11
+ \u2026`:""]})]})}var O=L($(),1),pp="PASS means no Project Direction violation was found in the available evidence. It does not mean the tests pass or the code is bug-free.";function bp(t){let[e,l]=(0,$l.useState)();return t.claims.length===0?(0,O.jsx)(B,{children:"No claims."}):(0,O.jsxs)("table",{children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{scope:"col",children:"Alignment"}),(0,O.jsx)("th",{scope:"col",children:"Rule"}),(0,O.jsx)("th",{scope:"col",children:"Subject"}),(0,O.jsx)("th",{scope:"col",children:"Reason"}),(0,O.jsx)("th",{scope:"col",children:"Provenance"}),(0,O.jsx)("th",{scope:"col",children:"Evidence"})]})}),(0,O.jsx)("tbody",{children:t.claims.map(n=>(0,O.jsxs)("tr",{children:[(0,O.jsxs)("td",{children:[(0,O.jsx)(U,{text:n.alignment,tone:n.alignment==="ALIGNED"?"ok":n.alignment==="CONFLICT"?n.blockEligible?"block":"warn":"info"}),n.blockEligible?(0,O.jsx)(U,{text:"blocking",tone:"block"}):null,n.drift?(0,O.jsx)(U,{text:"drift",tone:"warn"}):null]}),(0,O.jsx)("td",{children:n.rule}),(0,O.jsx)("td",{children:(0,O.jsx)("code",{children:n.subject.id})}),(0,O.jsxs)("td",{children:[n.reason,n.observed===void 0?null:(0,O.jsx)("div",{className:"muted small",children:n.observed})]}),(0,O.jsx)("td",{children:(0,O.jsx)(yl,{value:n.provenance})}),(0,O.jsxs)("td",{children:[(0,O.jsxs)("button",{type:"button",className:"link","aria-expanded":e===n.id,onClick:()=>l(e===n.id?void 0:n.id),children:[n.evidenceIds.length," item(s)"]}),e===n.id?(0,O.jsx)(m0,{ids:n.evidenceIds,evidence:t.evidence}):null]})]},n.id))})]})}function Sp(t){let{a:e}=t;return e.status==="not-requested"?null:(0,O.jsxs)(Y,{title:"Semantic assistance (supplemental, never blocks)",children:[(0,O.jsxs)("p",{children:[(0,O.jsx)(U,{text:e.status,tone:e.status==="success"?"ok":"muted"}),e.failure===void 0?null:(0,O.jsxs)("span",{className:"muted",children:[" \xB7 ",e.failure]}),e.provider===void 0?null:(0,O.jsxs)("span",{className:"muted",children:[" \xB7 ",e.provider.id," ",e.provider.model??""]}),e.cacheHits>0?(0,O.jsx)("span",{className:"muted",children:" \xB7 cached"}):null]}),(0,O.jsx)("p",{className:"muted small",children:"LLM answers are kept apart from the deterministic claims above; they never change them. At most they raise PASS to WARN."}),e.claims.length===0?null:(0,O.jsx)("ul",{children:e.claims.map(l=>(0,O.jsxs)("li",{children:[(0,O.jsx)(U,{text:l.alignment,tone:"info"})," ",(0,O.jsx)("code",{children:l.claimId})," ",l.reason??""]},l.claimId))}),e.verdict===void 0?null:(0,O.jsxs)("p",{children:["With semantic assistance: ",(0,O.jsx)(sl,{verdict:e.verdict})]})]})}function Ep(t){let{r:e}=t;if(e.status==="index-required")return(0,O.jsxs)("p",{role:"status",className:"box box-warn",children:[(0,O.jsx)(U,{text:"index-required",tone:"warn"})," The index is ",e.freshness?.status??"not current",". Run ",(0,O.jsx)(ze,{children:"duoctl index"}),", then review again."]});if(e.status==="failed")return(0,O.jsxs)("div",{role:"alert",className:"box box-error",children:[(0,O.jsx)("strong",{children:"Review not run: no verdict"}),(0,O.jsx)("ul",{children:(e.diagnostics??[]).map((n,a)=>(0,O.jsxs)("li",{children:[(0,O.jsx)("code",{children:n.code})," ",n.message]},a))})]});if(e.status!=="ready")return(0,O.jsx)("p",{role:"alert",className:"box box-error",children:e.status});let l=e.diff?.files.filter(n=>n.provenance==="adoption-bootstrap")??[];return(0,O.jsxs)("div",{"aria-live":"polite",children:[(0,O.jsxs)("h2",{className:"verdict-line",children:["Deterministic review: ",(0,O.jsx)(sl,{verdict:e.verdict})]}),e.verdict==="PASS"?(0,O.jsx)("p",{className:"muted",children:pp}):null,(0,O.jsxs)("p",{className:"muted small",children:["Diff ",e.diff?.from," \u2192 ",e.diff?.to," \xB7 ",e.diff?.files.length??0," files \xB7 baseline ",e.baseline.status," \xB7 llm calls ",e.metrics.llmCalls]}),l.length===0?null:(0,O.jsxs)("p",{children:[(0,O.jsx)(yl,{value:"adoption-bootstrap"})," ",l.length," Truth file(s) exactly as init wrote them are not reviewed until changed."]}),(0,O.jsx)(Y,{title:"Claims",count:e.claims.length,children:(0,O.jsx)(bp,{claims:e.claims,evidence:e.evidence})}),(0,O.jsx)(Y,{title:"Knowledge gaps",count:e.gaps?.gaps.filter(n=>n.action!=="ignore").length??0,children:e.gaps===void 0?(0,O.jsx)(B,{children:"Not assessed."}):(0,O.jsx)(Od,{gaps:e.gaps.gaps})}),(0,O.jsx)(Y,{title:"Limitations",count:e.limitations.length,open:!1,children:(0,O.jsx)("ul",{children:e.limitations.map(n=>(0,O.jsxs)("li",{children:[(0,O.jsx)("code",{children:n.code})," ",n.message]},n.code))})}),(0,O.jsx)(Sp,{a:e.semanticAssist,evidence:e.evidence}),(0,O.jsxs)("p",{className:"muted small",children:["This review is not recorded. To keep it as history, run ",(0,O.jsx)(ze,{children:"duoctl review --record"}),"."]})]})}function v0(){let[t,e]=(0,$l.useState)(""),[l,n]=(0,$l.useState)("HEAD"),[a,u]=(0,$l.useState)("WORKTREE"),[i,c]=(0,$l.useState)(!1),[o,f]=(0,$l.useState)(!1),[m,g]=(0,$l.useState)(),r=async()=>{f(!0);try{let s=await ke.post("/api/review",{from:l,to:a,...t.trim()===""?{}:{task:t},...i?{includeSemanticAssist:!0}:{}});g({r:s.data,...s.meta===void 0?{}:{ms:s.meta.durationMs}})}catch(s){g(s instanceof Error?s:new Error(String(s)))}finally{f(!1)}};return(0,O.jsxs)(pt,{title:"Review",durationMs:m!==void 0&&!(m instanceof Error)?m.ms:void 0,children:[(0,O.jsxs)("form",{className:"form",onSubmit:s=>{s.preventDefault(),r()},children:[(0,O.jsxs)("label",{children:["From ",(0,O.jsx)("input",{value:l,onChange:s=>n(s.target.value),size:12})]}),(0,O.jsxs)("label",{children:["To ",(0,O.jsx)("input",{value:a,onChange:s=>u(s.target.value),size:12})]}),(0,O.jsxs)("label",{children:["Task (optional) ",(0,O.jsx)("input",{value:t,onChange:s=>e(s.target.value),size:30})]}),(0,O.jsxs)("label",{className:"check",children:[(0,O.jsx)("input",{type:"checkbox",checked:i,onChange:s=>c(s.target.checked)})," Use semantic assistance"]}),(0,O.jsx)("button",{type:"submit",disabled:o,children:o?"Reviewing\u2026":"Review changes"})]}),i?(0,O.jsx)("p",{className:"box box-warn small",children:"Selected evidence slices will be sent to the configured OpenAI provider."}):null,m===void 0?null:m instanceof Error?(0,O.jsx)(ht,{error:m}):(0,O.jsx)(Ep,{r:m.r})]})}var T=L($(),1);function g0(){let[t,e]=Yt("/api/reviews");return(0,T.jsxs)(pt,{title:"Review history",onRefresh:e,durationMs:t.state==="ok"?t.durationMs:void 0,children:[(0,T.jsxs)("p",{className:"muted",children:["Reviews a human recorded with ",(0,T.jsx)("code",{children:"duoctl review --record"}),". Running a review in the UI does not record it."]}),t.state==="loading"?(0,T.jsx)(Gt,{}):t.state==="error"?(0,T.jsx)(ht,{error:t.error}):(0,T.jsxs)(T.Fragment,{children:[t.data.problems?.length?(0,T.jsx)("div",{role:"alert",className:"box box-error",children:t.data.problems.map(l=>(0,T.jsxs)("p",{children:[l.code,": ",l.message]},l.message))}):null,t.data.records===void 0||t.data.records.length===0?(0,T.jsx)(B,{children:"No recorded reviews yet."}):(0,T.jsxs)("table",{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{scope:"col",children:"Review"}),(0,T.jsx)("th",{scope:"col",children:"Verdict"}),(0,T.jsx)("th",{scope:"col",children:"Diff"}),(0,T.jsx)("th",{scope:"col",children:"Claims"}),(0,T.jsx)("th",{scope:"col",children:"Recorded"})]})}),(0,T.jsx)("tbody",{children:t.data.records.map(l=>(0,T.jsxs)("tr",{children:[(0,T.jsxs)("td",{children:[(0,T.jsx)(at,{to:`/reviews/${l.id}`,children:l.id}),l.assist===void 0?null:(0,T.jsxs)(T.Fragment,{children:[" ",(0,T.jsx)(U,{text:"+ semantic supplement",tone:"muted"})]})]}),(0,T.jsx)("td",{children:(0,T.jsx)(sl,{verdict:l.body.review?.verdict})}),(0,T.jsxs)("td",{children:[(0,T.jsx)("code",{children:(l.body.diff?.identity??"").slice(0,19)})," ",l.body.diff?.from," \u2192 ",l.body.diff?.to]}),(0,T.jsx)("td",{children:l.body.claims?.length??0}),(0,T.jsxs)("td",{children:[l.recorded?.at??""," ",l.recorded?.by??""]})]},l.id))})]})]})]})}function h0(t){let[e,l]=Yt(`/api/reviews/${t.id}`);return(0,T.jsx)(pt,{title:`Review ${t.id}`,onRefresh:l,children:e.state==="loading"?(0,T.jsx)(Gt,{}):e.state==="error"?(0,T.jsx)(ht,{error:e.error}):e.data.record===void 0?(0,T.jsxs)(B,{children:["No recorded review ",t.id,"."]}):(0,T.jsx)(Tp,{r:e.data.record})})}function Tp(t){let{r:e}=t,l=new Map((e.body.evidence??[]).map(n=>[n.id,n]));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("h2",{className:"verdict-line",children:["Recorded verdict: ",(0,T.jsx)(sl,{verdict:e.body.review?.verdict})]}),(0,T.jsxs)("p",{className:"muted small",children:[e.path," \xB7 diff ",(0,T.jsx)("code",{children:e.body.diff?.identity})," ",e.body.diff?.from," \u2192 ",e.body.diff?.to," \xB7 recorded ",e.recorded?.at??""," by ",e.recorded?.by??""]}),(0,T.jsx)(Y,{title:"Claims",count:e.body.claims?.length??0,children:(0,T.jsxs)("table",{children:[(0,T.jsx)("thead",{children:(0,T.jsxs)("tr",{children:[(0,T.jsx)("th",{scope:"col",children:"Alignment"}),(0,T.jsx)("th",{scope:"col",children:"Rule"}),(0,T.jsx)("th",{scope:"col",children:"Subject"}),(0,T.jsx)("th",{scope:"col",children:"Reason"}),(0,T.jsx)("th",{scope:"col",children:"Provenance"}),(0,T.jsx)("th",{scope:"col",children:"Evidence pointers"})]})}),(0,T.jsx)("tbody",{children:(e.body.claims??[]).map(n=>(0,T.jsxs)("tr",{children:[(0,T.jsxs)("td",{children:[(0,T.jsx)(U,{text:n.alignment,tone:n.alignment==="ALIGNED"?"ok":"info"}),n.blockEligible?(0,T.jsx)(U,{text:"blocking",tone:"block"}):null]}),(0,T.jsx)("td",{children:n.rule}),(0,T.jsx)("td",{children:(0,T.jsx)("code",{children:n.subject.id})}),(0,T.jsx)("td",{children:n.reason}),(0,T.jsx)("td",{children:(0,T.jsx)(yl,{value:n.provenance})}),(0,T.jsx)("td",{children:(0,T.jsx)("ul",{className:"evidence",children:n.evidenceIds.map(a=>{let u=l.get(a);return(0,T.jsxs)("li",{children:[u?.basis??"?"," ",u?.pointer?.path??"",u?.pointer?.lines===void 0?"":`:${u.pointer.lines[0]}-${u.pointer.lines[1]}`,u?.pointer?.commit===void 0?"":` @${u.pointer.commit.slice(0,12)}`]},a)})})})]},n.id))})]})}),(0,T.jsx)(Y,{title:"Gap summary",count:e.body.gaps?.gaps?.length??0,children:e.body.gaps===null||e.body.gaps===void 0?(0,T.jsx)(B,{children:"None recorded."}):(0,T.jsx)("ul",{children:(e.body.gaps.gaps??[]).map(n=>(0,T.jsxs)("li",{children:[(0,T.jsx)(U,{text:n.action.toUpperCase(),tone:"info"})," ",n.kind]},n.id))})}),e.assist===void 0?null:(0,T.jsxs)(Y,{title:"Semantic supplement (separate record, not deterministic history)",open:!1,children:[(0,T.jsxs)("p",{className:"muted small",children:[e.assist.path," \xB7 ",e.assist.body.provider?.id??""," ",e.assist.body.provider?.model??""]}),(0,T.jsx)("ul",{children:(e.assist.body.claims??[]).map(n=>(0,T.jsxs)("li",{children:[(0,T.jsx)(U,{text:n.alignment,tone:"info"})," ",(0,T.jsx)("code",{children:n.claimId})]},n.claimId))}),e.assist.body.verdict===void 0?null:(0,T.jsxs)("p",{children:["With semantic assistance: ",(0,T.jsx)(sl,{verdict:e.assist.body.verdict})]})]}),(e.body.claims??[]).some(n=>n.provenance!==void 0)?(0,T.jsxs)("p",{className:"muted small",children:["Provenance legend: ",(0,T.jsx)(yl,{value:"introduced"})," ",(0,T.jsx)(yl,{value:"pre-existing"})," ",(0,T.jsx)(yl,{value:"pre-existing-touched"})," ",(0,T.jsx)(yl,{value:"unverified-at-adoption"})]}):null]})}var p0=L(me(),1);var jt=L($(),1);function b0(){let t=Ta(),e=new URLSearchParams(t.split("?")[1]??"").get("q")??"",[l,n]=(0,p0.useState)(e),[a]=Yt(e===""?void 0:`/api/search?${Jl({q:e})}`);return(0,jt.jsxs)(pt,{title:"Search",children:[(0,jt.jsxs)("form",{className:"form",role:"search",onSubmit:u=>{u.preventDefault(),l.trim()!==""&&zu(`/search?${Jl({q:l.trim()})}`)},children:[(0,jt.jsxs)("label",{children:["Find ",(0,jt.jsx)("input",{value:l,onChange:u=>n(u.target.value),placeholder:"Requirement or Decision ID, symbol, file, text",size:40})]}),(0,jt.jsx)("button",{type:"submit",children:"Search"})]}),e===""?null:a.state==="loading"?(0,jt.jsx)(Gt,{}):a.state==="error"?(0,jt.jsx)(ht,{error:a.error}):(a.data.candidates??[]).length===0?(0,jt.jsx)(B,{children:"No match."}):(0,jt.jsx)("ul",{children:a.data.candidates?.map(u=>(0,jt.jsxs)("li",{children:[(0,jt.jsx)(U,{text:u.kind,tone:"muted"})," ",(0,jt.jsx)(at,{to:le(u.id),children:u.id})," ",(0,jt.jsxs)("span",{className:"muted",children:[u.match,u.path===void 0?"":` \xB7 ${u.path}`]})]},`${u.source}${u.id}`))}),(0,jt.jsxs)("p",{className:"muted small",children:["Review records are listed under ",(0,jt.jsx)(at,{to:"/reviews",children:"Review history"}),"."]})]})}var yt=L($(),1),Np=[["/overview","Overview"],["/direction","Direction"],["/decisions","Pending decisions"],["/graph","Graph"],["/coverage","Analysis coverage"],["/context","Context"],["/review","Review"],["/reviews","Review history"],["/search","Search"]];function Op(t){let e=/^\/entity\/(.+)$/u.exec(t);if(e!==null)return(0,yt.jsx)(c0,{id:decodeURIComponent(e[1])});let l=/^\/reviews\/([\w.-]+)$/u.exec(t);if(l!==null)return(0,yt.jsx)(h0,{id:l[1]});switch(t){case"/direction":return(0,yt.jsx)(i0,{});case"/decisions":return(0,yt.jsx)(u0,{});case"/graph":return(0,yt.jsx)(s0,{});case"/coverage":return(0,yt.jsx)(t0,{});case"/context":return(0,yt.jsx)(n0,{});case"/review":return(0,yt.jsx)(v0,{});case"/reviews":return(0,yt.jsx)(g0,{});case"/search":return(0,yt.jsx)(b0,{});default:return(0,yt.jsx)(o0,{})}}function S0(){let e=Ta().split("?")[0]??"/";return(0,yt.jsxs)("div",{className:"layout",children:[(0,yt.jsx)("a",{href:"#main",className:"skip",children:"Skip to content"}),(0,yt.jsxs)("nav",{"aria-label":"DUO",children:[(0,yt.jsxs)("p",{className:"brand",children:["DUO ",(0,yt.jsx)("span",{className:"muted small",children:"Project Direction Console"})]}),(0,yt.jsx)("ul",{children:Np.map(([l,n])=>(0,yt.jsx)("li",{children:(0,yt.jsx)(at,{to:l,current:e===l||l==="/overview"&&e==="/",children:n})},l))}),(0,yt.jsx)("p",{className:"muted small",children:"Local only. Reads Project Truth; writes only human Decision confirm/reject."})]}),(0,yt.jsx)("main",{id:"main",tabIndex:-1,children:Op(e)})]})}var Dd=L($(),1),E0=document.getElementById("root");E0!==null&&(0,N0.createRoot)(E0).render((0,Dd.jsx)(T0.StrictMode,{children:(0,Dd.jsx)(S0,{})}));