@shipbench/board 0.1.0

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 (112) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -0
  3. package/dist/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
  4. package/dist/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
  5. package/dist/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
  6. package/dist/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
  7. package/dist/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
  8. package/dist/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
  9. package/dist/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2 +0 -0
  10. package/dist/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff +0 -0
  11. package/dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
  12. package/dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
  13. package/dist/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
  14. package/dist/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
  15. package/dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
  16. package/dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
  17. package/dist/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2 +0 -0
  18. package/dist/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff +0 -0
  19. package/dist/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
  20. package/dist/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
  21. package/dist/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
  22. package/dist/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
  23. package/dist/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
  24. package/dist/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
  25. package/dist/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff +0 -0
  26. package/dist/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2 +0 -0
  27. package/dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  28. package/dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  29. package/dist/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
  30. package/dist/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
  31. package/dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  32. package/dist/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  33. package/dist/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff +0 -0
  34. package/dist/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 +0 -0
  35. package/dist/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
  36. package/dist/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
  37. package/dist/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
  38. package/dist/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
  39. package/dist/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
  40. package/dist/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
  41. package/dist/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff +0 -0
  42. package/dist/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2 +0 -0
  43. package/dist/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
  44. package/dist/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
  45. package/dist/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
  46. package/dist/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
  47. package/dist/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
  48. package/dist/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
  49. package/dist/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff +0 -0
  50. package/dist/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2 +0 -0
  51. package/dist/assets/intel-one-mono-latin-400-normal-CqVdU6iH.woff2 +0 -0
  52. package/dist/assets/intel-one-mono-latin-400-normal-Dz-D6UFM.woff +0 -0
  53. package/dist/assets/intel-one-mono-latin-500-normal-CDhGZfRp.woff +0 -0
  54. package/dist/assets/intel-one-mono-latin-500-normal-Iu7MK5Mj.woff2 +0 -0
  55. package/dist/assets/intel-one-mono-latin-600-normal-DJb_B24X.woff2 +0 -0
  56. package/dist/assets/intel-one-mono-latin-600-normal-UTD3q2hA.woff +0 -0
  57. package/dist/assets/intel-one-mono-latin-700-normal-BFFlk8Op.woff2 +0 -0
  58. package/dist/assets/intel-one-mono-latin-700-normal-BzzNQkyM.woff +0 -0
  59. package/dist/assets/intel-one-mono-latin-ext-400-normal-BW7QmGmG.woff +0 -0
  60. package/dist/assets/intel-one-mono-latin-ext-400-normal-DpSum8DV.woff2 +0 -0
  61. package/dist/assets/intel-one-mono-latin-ext-500-normal-Cr2TADCY.woff +0 -0
  62. package/dist/assets/intel-one-mono-latin-ext-500-normal-i6u6XqNL.woff2 +0 -0
  63. package/dist/assets/intel-one-mono-latin-ext-600-normal-VDQcLlxR.woff +0 -0
  64. package/dist/assets/intel-one-mono-latin-ext-600-normal-wurdkzs-.woff2 +0 -0
  65. package/dist/assets/intel-one-mono-latin-ext-700-normal-Cszyb8TI.woff +0 -0
  66. package/dist/assets/intel-one-mono-latin-ext-700-normal-DHqel5Cm.woff2 +0 -0
  67. package/dist/assets/intel-one-mono-symbols2-400-normal-CD7uMPNv.woff2 +0 -0
  68. package/dist/assets/intel-one-mono-symbols2-400-normal-DrJQZ3Wk.woff +0 -0
  69. package/dist/assets/intel-one-mono-symbols2-500-normal-CFnvmC0p.woff +0 -0
  70. package/dist/assets/intel-one-mono-symbols2-500-normal-CW_cPKTh.woff2 +0 -0
  71. package/dist/assets/intel-one-mono-symbols2-600-normal-DhzUCacJ.woff2 +0 -0
  72. package/dist/assets/intel-one-mono-symbols2-600-normal-DoqMVv6l.woff +0 -0
  73. package/dist/assets/intel-one-mono-symbols2-700-normal-CYi7u3jm.woff +0 -0
  74. package/dist/assets/intel-one-mono-symbols2-700-normal-CkmMEo1z.woff2 +0 -0
  75. package/dist/assets/intel-one-mono-vietnamese-400-normal-Bn-nXHDK.woff2 +0 -0
  76. package/dist/assets/intel-one-mono-vietnamese-400-normal-nd8xkrKu.woff +0 -0
  77. package/dist/assets/intel-one-mono-vietnamese-500-normal-5IwQQhVi.woff2 +0 -0
  78. package/dist/assets/intel-one-mono-vietnamese-500-normal-Cm4Q0YKh.woff +0 -0
  79. package/dist/assets/intel-one-mono-vietnamese-600-normal-B9HWtSu2.woff2 +0 -0
  80. package/dist/assets/intel-one-mono-vietnamese-600-normal-Dm9ZhbyQ.woff +0 -0
  81. package/dist/assets/intel-one-mono-vietnamese-700-normal-Da_Xc8bO.woff +0 -0
  82. package/dist/assets/intel-one-mono-vietnamese-700-normal-xgkGRJps.woff2 +0 -0
  83. package/dist/assets/standalone-BPsBcSWX.css +1 -0
  84. package/dist/assets/standalone-BWUDRXLh.js +106 -0
  85. package/dist/index.d.ts +13 -0
  86. package/dist/index.js +18137 -0
  87. package/dist/standalone.d.ts +8 -0
  88. package/dist/standalone.html +13 -0
  89. package/dist/store/BoardStoreProvider.d.ts +8 -0
  90. package/dist/store/boardStore.d.ts +51 -0
  91. package/dist/styles.css +1 -0
  92. package/dist/ui/ArchiveTaskDialog.d.ts +8 -0
  93. package/dist/ui/ArchiveView.d.ts +1 -0
  94. package/dist/ui/Board.d.ts +8 -0
  95. package/dist/ui/BoardCanvas.d.ts +1 -0
  96. package/dist/ui/BoardHeader.d.ts +3 -0
  97. package/dist/ui/BoardThemeToggle.d.ts +4 -0
  98. package/dist/ui/BoardToaster.d.ts +1 -0
  99. package/dist/ui/Chevron.d.ts +7 -0
  100. package/dist/ui/DetailView.d.ts +3 -0
  101. package/dist/ui/KanbanBoard.d.ts +116 -0
  102. package/dist/ui/Markdown.d.ts +15 -0
  103. package/dist/ui/MetadataInputs.d.ts +16 -0
  104. package/dist/ui/NewTaskDialog.d.ts +5 -0
  105. package/dist/ui/PriorityMeter.d.ts +9 -0
  106. package/dist/ui/Select.d.ts +19 -0
  107. package/dist/ui/SyncEffects.d.ts +4 -0
  108. package/dist/ui/TaskCard.d.ts +11 -0
  109. package/dist/ui/useAutosizeTextarea.d.ts +2 -0
  110. package/dist/utils/links.d.ts +31 -0
  111. package/dist/utils/time.d.ts +2 -0
  112. package/package.json +81 -0
@@ -0,0 +1,106 @@
1
+ var o0=t=>{throw TypeError(t)};var s0=(t,r,l)=>r.has(t)||o0("Cannot "+l);var nn=(t,r,l)=>(s0(t,r,"read from private field"),l?l.call(t):r.get(t)),u0=(t,r,l)=>r.has(t)?o0("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,l),ud=(t,r,l,a)=>(s0(t,r,"write to private field"),a?a.call(t,l):r.set(t,l),l);function g3(t,r){for(var l=0;l<r.length;l++){const a=r[l];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(t,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function Ou(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cd={exports:{}},Wa={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var c0;function v3(){if(c0)return Wa;c0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var d in s)d!=="key"&&(u[d]=s[d])}else u=s;return s=u.ref,{$$typeof:t,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Wa.Fragment=r,Wa.jsx=l,Wa.jsxs=l,Wa}var f0;function y3(){return f0||(f0=1,cd.exports=v3()),cd.exports}var S=y3(),fd={exports:{}},eo={},dd={exports:{}},hd={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var d0;function b3(){return d0||(d0=1,(function(t){function r(U,G){var le=U.length;U.push(G);e:for(;0<le;){var ce=le-1>>>1,M=U[ce];if(0<s(M,G))U[ce]=G,U[le]=M,le=ce;else break e}}function l(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var G=U[0],le=U.pop();if(le!==G){U[0]=le;e:for(var ce=0,M=U.length,L=M>>>1;ce<L;){var Y=2*(ce+1)-1,O=U[Y],ne=Y+1,de=U[ne];if(0>s(O,le))ne<M&&0>s(de,O)?(U[ce]=de,U[ne]=le,ce=ne):(U[ce]=O,U[Y]=le,ce=Y);else if(ne<M&&0>s(de,le))U[ce]=de,U[ne]=le,ce=ne;else break e}}return G}function s(U,G){var le=U.sortIndex-G.sortIndex;return le!==0?le:U.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var g=[],h=[],v=1,p=null,b=3,y=!1,w=!1,T=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function N(U){for(var G=l(h);G!==null;){if(G.callback===null)a(h);else if(G.startTime<=U)a(h),G.sortIndex=G.expirationTime,r(g,G);else break;G=l(h)}}function z(U){if(T=!1,N(U),!w)if(l(g)!==null)w=!0,k||(k=!0,K());else{var G=l(h);G!==null&&W(z,G.startTime-U)}}var k=!1,H=-1,I=5,j=-1;function Q(){return A?!0:!(t.unstable_now()-j<I)}function Z(){if(A=!1,k){var U=t.unstable_now();j=U;var G=!0;try{e:{w=!1,T&&(T=!1,_(H),H=-1),y=!0;var le=b;try{t:{for(N(U),p=l(g);p!==null&&!(p.expirationTime>U&&Q());){var ce=p.callback;if(typeof ce=="function"){p.callback=null,b=p.priorityLevel;var M=ce(p.expirationTime<=U);if(U=t.unstable_now(),typeof M=="function"){p.callback=M,N(U),G=!0;break t}p===l(g)&&a(g),N(U)}else a(g);p=l(g)}if(p!==null)G=!0;else{var L=l(h);L!==null&&W(z,L.startTime-U),G=!1}}break e}finally{p=null,b=le,y=!1}G=void 0}}finally{G?K():k=!1}}}var K;if(typeof R=="function")K=function(){R(Z)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,te=oe.port2;oe.port1.onmessage=Z,K=function(){te.postMessage(null)}}else K=function(){E(Z,0)};function W(U,G){H=E(function(){U(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(U){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var le=b;b=G;try{return U()}finally{b=le}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var le=b;b=U;try{return G()}finally{b=le}},t.unstable_scheduleCallback=function(U,G,le){var ce=t.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ce+le:ce):le=ce,U){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=le+M,U={id:v++,callback:G,priorityLevel:U,startTime:le,expirationTime:M,sortIndex:-1},le>ce?(U.sortIndex=le,r(h,U),l(g)===null&&U===l(h)&&(T?(_(H),H=-1):T=!0,W(z,le-ce))):(U.sortIndex=M,r(g,U),w||y||(w=!0,k||(k=!0,K()))),U},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(U){var G=b;return function(){var le=b;b=G;try{return U.apply(this,arguments)}finally{b=le}}}})(hd)),hd}var h0;function x3(){return h0||(h0=1,dd.exports=b3()),dd.exports}var md={exports:{}},Re={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var m0;function S3(){if(m0)return Re;m0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),b=Symbol.iterator;function y(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function E(L,Y,O){this.props=L,this.context=Y,this.refs=A,this.updater=O||w}E.prototype.isReactComponent={},E.prototype.setState=function(L,Y){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,Y,"setState")},E.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function _(){}_.prototype=E.prototype;function R(L,Y,O){this.props=L,this.context=Y,this.refs=A,this.updater=O||w}var N=R.prototype=new _;N.constructor=R,T(N,E.prototype),N.isPureReactComponent=!0;var z=Array.isArray;function k(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function j(L,Y,O){var ne=O.ref;return{$$typeof:t,type:L,key:Y,ref:ne!==void 0?ne:null,props:O}}function Q(L,Y){return j(L.type,Y,L.props)}function Z(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function K(L){var Y={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(O){return Y[O]})}var oe=/\/+/g;function te(L,Y){return typeof L=="object"&&L!==null&&L.key!=null?K(""+L.key):Y.toString(36)}function W(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(k,k):(L.status="pending",L.then(function(Y){L.status==="pending"&&(L.status="fulfilled",L.value=Y)},function(Y){L.status==="pending"&&(L.status="rejected",L.reason=Y)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function U(L,Y,O,ne,de){var se=typeof L;(se==="undefined"||se==="boolean")&&(L=null);var ve=!1;if(L===null)ve=!0;else switch(se){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(L.$$typeof){case t:case r:ve=!0;break;case v:return ve=L._init,U(ve(L._payload),Y,O,ne,de)}}if(ve)return de=de(L),ve=ne===""?"."+te(L,0):ne,z(de)?(O="",ve!=null&&(O=ve.replace(oe,"$&/")+"/"),U(de,Y,O,"",function(ge){return ge})):de!=null&&(Z(de)&&(de=Q(de,O+(de.key==null||L&&L.key===de.key?"":(""+de.key).replace(oe,"$&/")+"/")+ve)),Y.push(de)),1;ve=0;var me=ne===""?".":ne+":";if(z(L))for(var he=0;he<L.length;he++)ne=L[he],se=me+te(ne,he),ve+=U(ne,Y,O,se,de);else if(he=y(L),typeof he=="function")for(L=he.call(L),he=0;!(ne=L.next()).done;)ne=ne.value,se=me+te(ne,he++),ve+=U(ne,Y,O,se,de);else if(se==="object"){if(typeof L.then=="function")return U(W(L),Y,O,ne,de);throw Y=String(L),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ve}function G(L,Y,O){if(L==null)return L;var ne=[],de=0;return U(L,ne,"","",function(se){return Y.call(O,se,de++)}),ne}function le(L){if(L._status===-1){var Y=L._result;Y=Y(),Y.then(function(O){(L._status===0||L._status===-1)&&(L._status=1,L._result=O)},function(O){(L._status===0||L._status===-1)&&(L._status=2,L._result=O)}),L._status===-1&&(L._status=0,L._result=Y)}if(L._status===1)return L._result.default;throw L._result}var ce=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},M={map:G,forEach:function(L,Y,O){G(L,function(){Y.apply(this,arguments)},O)},count:function(L){var Y=0;return G(L,function(){Y++}),Y},toArray:function(L){return G(L,function(Y){return Y})||[]},only:function(L){if(!Z(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Re.Activity=p,Re.Children=M,Re.Component=E,Re.Fragment=l,Re.Profiler=s,Re.PureComponent=R,Re.StrictMode=a,Re.Suspense=g,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Re.__COMPILER_RUNTIME={__proto__:null,c:function(L){return H.H.useMemoCache(L)}},Re.cache=function(L){return function(){return L.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(L,Y,O){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ne=T({},L.props),de=L.key;if(Y!=null)for(se in Y.key!==void 0&&(de=""+Y.key),Y)!I.call(Y,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(ne[se]=Y[se]);var se=arguments.length-2;if(se===1)ne.children=O;else if(1<se){for(var ve=Array(se),me=0;me<se;me++)ve[me]=arguments[me+2];ne.children=ve}return j(L.type,de,ne)},Re.createContext=function(L){return L={$$typeof:c,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:u,_context:L},L},Re.createElement=function(L,Y,O){var ne,de={},se=null;if(Y!=null)for(ne in Y.key!==void 0&&(se=""+Y.key),Y)I.call(Y,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(de[ne]=Y[ne]);var ve=arguments.length-2;if(ve===1)de.children=O;else if(1<ve){for(var me=Array(ve),he=0;he<ve;he++)me[he]=arguments[he+2];de.children=me}if(L&&L.defaultProps)for(ne in ve=L.defaultProps,ve)de[ne]===void 0&&(de[ne]=ve[ne]);return j(L,se,de)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(L){return{$$typeof:d,render:L}},Re.isValidElement=Z,Re.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:le}},Re.memo=function(L,Y){return{$$typeof:h,type:L,compare:Y===void 0?null:Y}},Re.startTransition=function(L){var Y=H.T,O={};H.T=O;try{var ne=L(),de=H.S;de!==null&&de(O,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(k,ce)}catch(se){ce(se)}finally{Y!==null&&O.types!==null&&(Y.types=O.types),H.T=Y}},Re.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Re.use=function(L){return H.H.use(L)},Re.useActionState=function(L,Y,O){return H.H.useActionState(L,Y,O)},Re.useCallback=function(L,Y){return H.H.useCallback(L,Y)},Re.useContext=function(L){return H.H.useContext(L)},Re.useDebugValue=function(){},Re.useDeferredValue=function(L,Y){return H.H.useDeferredValue(L,Y)},Re.useEffect=function(L,Y){return H.H.useEffect(L,Y)},Re.useEffectEvent=function(L){return H.H.useEffectEvent(L)},Re.useId=function(){return H.H.useId()},Re.useImperativeHandle=function(L,Y,O){return H.H.useImperativeHandle(L,Y,O)},Re.useInsertionEffect=function(L,Y){return H.H.useInsertionEffect(L,Y)},Re.useLayoutEffect=function(L,Y){return H.H.useLayoutEffect(L,Y)},Re.useMemo=function(L,Y){return H.H.useMemo(L,Y)},Re.useOptimistic=function(L,Y){return H.H.useOptimistic(L,Y)},Re.useReducer=function(L,Y,O){return H.H.useReducer(L,Y,O)},Re.useRef=function(L){return H.H.useRef(L)},Re.useState=function(L){return H.H.useState(L)},Re.useSyncExternalStore=function(L,Y,O){return H.H.useSyncExternalStore(L,Y,O)},Re.useTransition=function(){return H.H.useTransition()},Re.version="19.2.8",Re}var p0;function Oh(){return p0||(p0=1,md.exports=S3()),md.exports}var pd={exports:{}},rn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var g0;function C3(){if(g0)return rn;g0=1;var t=Oh();function r(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(g,h,v){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:g,containerInfo:h,implementation:v}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,rn.createPortal=function(g,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return u(g,h,null,v)},rn.flushSync=function(g){var h=c.T,v=a.p;try{if(c.T=null,a.p=2,g)return g()}finally{c.T=h,a.p=v,a.d.f()}},rn.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(g,h))},rn.prefetchDNS=function(g){typeof g=="string"&&a.d.D(g)},rn.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?a.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:y}):v==="script"&&a.d.X(g,{crossOrigin:p,integrity:b,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rn.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=d(h.as,h.crossOrigin);a.d.M(g,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(g)},rn.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin);a.d.L(g,v,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},rn.preloadModule=function(g,h){if(typeof g=="string")if(h){var v=d(h.as,h.crossOrigin);a.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(g)},rn.requestFormReset=function(g){a.d.r(g)},rn.unstable_batchedUpdates=function(g,h){return g(h)},rn.useFormState=function(g,h,v){return c.H.useFormState(g,h,v)},rn.useFormStatus=function(){return c.H.useHostTransitionStatus()},rn.version="19.2.8",rn}var v0;function ny(){if(v0)return pd.exports;v0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),pd.exports=C3(),pd.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var y0;function w3(){if(y0)return eo;y0=1;var t=x3(),r=Oh(),l=ny();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(u(e)!==e)throw Error(a(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,o=n;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(o=f.return,o!==null){i=o;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return g(f),e;if(m===o)return g(f),n;m=m.sibling}throw Error(a(188))}if(i.return!==o.return)i=f,o=m;else{for(var x=!1,D=f.child;D;){if(D===i){x=!0,i=f,o=m;break}if(D===o){x=!0,o=f,i=m;break}D=D.sibling}if(!x){for(D=m.child;D;){if(D===i){x=!0,i=m,o=f;break}if(D===o){x=!0,o=m,i=f;break}D=D.sibling}if(!x)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var p=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),R=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case k:return"SuspenseList";case j:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case R:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case N:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case I:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var W=Array.isArray,U=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ce=[],M=-1;function L(e){return{current:e}}function Y(e){0>M||(e.current=ce[M],ce[M]=null,M--)}function O(e,n){M++,ce[M]=e.current,e.current=n}var ne=L(null),de=L(null),se=L(null),ve=L(null);function me(e,n){switch(O(se,n),O(de,e),O(ne,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Rg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Rg(n),e=kg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ne),O(ne,e)}function he(){Y(ne),Y(de),Y(se)}function ge(e){e.memoizedState!==null&&O(ve,e);var n=ne.current,i=kg(n,e.type);n!==i&&(O(de,e),O(ne,i))}function Te(e){de.current===e&&(Y(ne),Y(de)),ve.current===e&&(Y(ve),Qa._currentValue=le)}var we,De;function Ve(e){if(we===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);we=n&&n[1]||"",De=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+we+e+De}var at=!1;function mt(e,n){if(!e||at)return"";at=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch($){var F=$}Reflect.construct(e,[],ae)}else{try{ae.call()}catch($){F=$}e.call(ae.prototype)}}else{try{throw Error()}catch($){F=$}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch($){if($&&F&&typeof $.stack=="string")return[$.stack,F.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),x=m[0],D=m[1];if(x&&D){var B=x.split(`
44
+ `),X=D.split(`
45
+ `);for(f=o=0;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;for(;f<X.length&&!X[f].includes("DetermineComponentFrameRoot");)f++;if(o===B.length||f===X.length)for(o=B.length-1,f=X.length-1;1<=o&&0<=f&&B[o]!==X[f];)f--;for(;1<=o&&0<=f;o--,f--)if(B[o]!==X[f]){if(o!==1||f!==1)do if(o--,f--,0>f||B[o]!==X[f]){var J=`
46
+ `+B[o].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=o&&0<=f);break}}}finally{at=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Ve(i):""}function Rt(e,n){switch(e.tag){case 26:case 27:case 5:return Ve(e.type);case 16:return Ve("Lazy");case 13:return e.child!==n&&n!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return Ve("Activity");default:return""}}function tn(e){try{var n="",i=null;do n+=Rt(e,i),i=e,e=e.return;while(e);return n}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}var wt=Object.prototype.hasOwnProperty,Ut=t.unstable_scheduleCallback,dn=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Er=t.unstable_requestPaint,ut=t.unstable_now,kl=t.unstable_getCurrentPriorityLevel,ee=t.unstable_ImmediatePriority,ue=t.unstable_UserBlockingPriority,xe=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,_e=t.unstable_IdlePriority,Qe=t.log,an=t.unstable_setDisableYieldValue,pt=null,yt=null;function kt(e){if(typeof Qe=="function"&&an(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(pt,e)}catch{}}var qe=Math.clz32?Math.clz32:ua,Tn=Math.log,ct=Math.LN2;function ua(e){return e>>>=0,e===0?32:31-(Tn(e)/ct|0)|0}var ur=256,on=262144,gt=4194304;function bt(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Dt(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var f=0,m=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var D=o&134217727;return D!==0?(o=D&~m,o!==0?f=bt(o):(x&=D,x!==0?f=bt(x):i||(i=D&~e,i!==0&&(f=bt(i))))):(D=o&~m,D!==0?f=bt(D):x!==0?f=bt(x):i||(i=o&~e,i!==0&&(f=bt(i)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:f}function Ft(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function be(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 He(){var e=gt;return gt<<=1,(gt&62914560)===0&&(gt=4194304),e}function Xe(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function rt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ft(e,n,i,o,f,m){var x=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var D=e.entanglements,B=e.expirationTimes,X=e.hiddenUpdates;for(i=x&~i;0<i;){var J=31-qe(i),ae=1<<J;D[J]=0,B[J]=-1;var F=X[J];if(F!==null)for(X[J]=null,J=0;J<F.length;J++){var $=F[J];$!==null&&($.lane&=-536870913)}i&=~ae}o!==0&&Ke(e,o,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(x&~n))}function Ke(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-qe(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&261930}function ot(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-qe(i),f=1<<o;f&n|e[o]&n&&(e[o]|=n),i&=~f}}function xt(e,n){var i=n&-n;return i=(i&42)!==0?1:An(i),(i&(e.suspendedLanes|n))!==0?0:i}function An(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sn(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:e0(e.type))}function Qr(e,n){var i=G.p;try{return G.p=e,n()}finally{G.p=i}}var Hn=Math.random().toString(36).slice(2),Qt="__reactFiber$"+Hn,hn="__reactProps$"+Hn,li="__reactContainer$"+Hn,Wu="__reactEvents$"+Hn,i2="__reactListeners$"+Hn,a2="__reactHandles$"+Hn,vm="__reactResources$"+Hn,ca="__reactMarker$"+Hn;function ec(e){delete e[Qt],delete e[hn],delete e[Wu],delete e[i2],delete e[a2]}function ii(e){var n=e[Qt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[li]||i[Qt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Hg(e);e!==null;){if(i=e[Qt])return i;e=Hg(e)}return n}e=i,i=e.parentNode}return null}function ai(e){if(e=e[Qt]||e[li]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function fa(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function oi(e){var n=e[vm];return n||(n=e[vm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Yt(e){e[ca]=!0}var ym=new Set,bm={};function Ml(e,n){si(e,n),si(e+"Capture",n)}function si(e,n){for(bm[e]=n,e=0;e<n.length;e++)ym.add(n[e])}var o2=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]*$"),xm={},Sm={};function s2(e){return wt.call(Sm,e)?!0:wt.call(xm,e)?!1:o2.test(e)?Sm[e]=!0:(xm[e]=!0,!1)}function _o(e,n,i){if(s2(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function jo(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Tr(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}function Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function u2(e,n,i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,m=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){i=""+x,m.call(this,x)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(x){i=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function tc(e){if(!e._valueTracker){var n=Cm(e)?"checked":"value";e._valueTracker=u2(e,n,""+e[n])}}function wm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=Cm(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function zo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var c2=/[\n"\\]/g;function In(e){return e.replace(c2,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function nc(e,n,i,o,f,m,x,D){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Un(n)):e.value!==""+Un(n)&&(e.value=""+Un(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?rc(e,x,Un(n)):i!=null?rc(e,x,Un(i)):o!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?e.name=""+Un(D):e.removeAttribute("name")}function Em(e,n,i,o,f,m,x,D){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){tc(e);return}i=i!=null?""+Un(i):"",n=n!=null?""+Un(n):i,D||n===e.value||(e.value=n),e.defaultValue=n}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=D?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),tc(e)}function rc(e,n,i){n==="number"&&zo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function ui(e,n,i,o){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&o&&(e[i].defaultSelected=!0)}else{for(i=""+Un(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,o&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Tm(e,n,i){if(n!=null&&(n=""+Un(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Un(i):""}function Am(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(W(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=Un(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o),tc(e)}function ci(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var f2=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 Dm(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||f2.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Nm(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var f in n)o=n[f],n.hasOwnProperty(f)&&i[f]!==o&&Dm(e,f,o)}else for(var m in n)n.hasOwnProperty(m)&&Dm(e,m,n[m])}function lc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var d2=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"],["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"]]),h2=/^[\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 Lo(e){return h2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ar(){}var ic=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,di=null;function Om(e){var n=ai(e);if(n&&(e=n.stateNode)){var i=e[hn]||null;e:switch(e=n.stateNode,n.type){case"input":if(nc(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+In(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var f=o[hn]||null;if(!f)throw Error(a(90));nc(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&wm(o)}break e;case"textarea":Tm(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&ui(e,!!i.multiple,n,!1)}}}var oc=!1;function Rm(e,n,i){if(oc)return e(n,i);oc=!0;try{var o=e(n);return o}finally{if(oc=!1,(fi!==null||di!==null)&&(ws(),fi&&(n=fi,e=di,di=fi=null,Om(n),e)))for(n=0;n<e.length;n++)Om(e[n])}}function da(e,n){var i=e.stateNode;if(i===null)return null;var o=i[hn]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=!1;if(Dr)try{var ha={};Object.defineProperty(ha,"passive",{get:function(){sc=!0}}),window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{sc=!1}var Kr=null,uc=null,Bo=null;function km(){if(Bo)return Bo;var e,n=uc,i=n.length,o,f="value"in Kr?Kr.value:Kr.textContent,m=f.length;for(e=0;e<i&&n[e]===f[e];e++);var x=i-e;for(o=1;o<=x&&n[i-o]===f[m-o];o++);return Bo=f.slice(e,1<o?1-o:void 0)}function Ho(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Uo(){return!0}function Mm(){return!1}function mn(e){function n(i,o,f,m,x){this._reactName=i,this._targetInst=f,this.type=o,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var D in e)e.hasOwnProperty(D)&&(i=e[D],this[D]=i?i(m):m[D]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Uo:Mm,this.isPropagationStopped=Mm,this}return p(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),n}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Io=mn(_l),ma=p({},_l,{view:0,detail:0}),m2=mn(ma),cc,fc,pa,Vo=p({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pa&&(pa&&e.type==="mousemove"?(cc=e.screenX-pa.screenX,fc=e.screenY-pa.screenY):fc=cc=0,pa=e),cc)},movementY:function(e){return"movementY"in e?e.movementY:fc}}),_m=mn(Vo),p2=p({},Vo,{dataTransfer:0}),g2=mn(p2),v2=p({},ma,{relatedTarget:0}),dc=mn(v2),y2=p({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),b2=mn(y2),x2=p({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S2=mn(x2),C2=p({},_l,{data:0}),jm=mn(C2),w2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E2={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"},T2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=T2[e])?!!n[e]:!1}function hc(){return A2}var D2=p({},ma,{key:function(e){if(e.key){var n=w2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?E2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(e){return e.type==="keypress"?Ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),N2=mn(D2),O2=p({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zm=mn(O2),R2=p({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),k2=mn(R2),M2=p({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),_2=mn(M2),j2=p({},Vo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),z2=mn(j2),L2=p({},_l,{newState:0,oldState:0}),B2=mn(L2),H2=[9,13,27,32],mc=Dr&&"CompositionEvent"in window,ga=null;Dr&&"documentMode"in document&&(ga=document.documentMode);var U2=Dr&&"TextEvent"in window&&!ga,Lm=Dr&&(!mc||ga&&8<ga&&11>=ga),Bm=" ",Hm=!1;function Um(e,n){switch(e){case"keyup":return H2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Im(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hi=!1;function I2(e,n){switch(e){case"compositionend":return Im(n);case"keypress":return n.which!==32?null:(Hm=!0,Bm);case"textInput":return e=n.data,e===Bm&&Hm?null:e;default:return null}}function V2(e,n){if(hi)return e==="compositionend"||!mc&&Um(e,n)?(e=km(),Bo=uc=Kr=null,hi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Lm&&n.locale!=="ko"?null:n.data;default:return null}}var q2={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 Vm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!q2[e.type]:n==="textarea"}function qm(e,n,i,o){fi?di?di.push(o):di=[o]:fi=o,n=Rs(n,"onChange"),0<n.length&&(i=new Io("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var va=null,ya=null;function Y2(e){Eg(e,0)}function qo(e){var n=fa(e);if(wm(n))return e}function Ym(e,n){if(e==="change")return n}var Pm=!1;if(Dr){var pc;if(Dr){var gc="oninput"in document;if(!gc){var Xm=document.createElement("div");Xm.setAttribute("oninput","return;"),gc=typeof Xm.oninput=="function"}pc=gc}else pc=!1;Pm=pc&&(!document.documentMode||9<document.documentMode)}function Zm(){va&&(va.detachEvent("onpropertychange",Gm),ya=va=null)}function Gm(e){if(e.propertyName==="value"&&qo(ya)){var n=[];qm(n,ya,e,ac(e)),Rm(Y2,n)}}function P2(e,n,i){e==="focusin"?(Zm(),va=n,ya=i,va.attachEvent("onpropertychange",Gm)):e==="focusout"&&Zm()}function X2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qo(ya)}function Z2(e,n){if(e==="click")return qo(n)}function G2(e,n){if(e==="input"||e==="change")return qo(n)}function F2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Dn=typeof Object.is=="function"?Object.is:F2;function ba(e,n){if(Dn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var f=i[o];if(!wt.call(n,f)||!Dn(e[f],n[f]))return!1}return!0}function Fm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qm(e,n){var i=Fm(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Fm(i)}}function Km(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Km(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $m(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=zo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=zo(e.document)}return n}function vc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Q2=Dr&&"documentMode"in document&&11>=document.documentMode,mi=null,yc=null,xa=null,bc=!1;function Jm(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;bc||mi==null||mi!==zo(o)||(o=mi,"selectionStart"in o&&vc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),xa&&ba(xa,o)||(xa=o,o=Rs(yc,"onSelect"),0<o.length&&(n=new Io("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=mi)))}function jl(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var pi={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},xc={},Wm={};Dr&&(Wm=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function zl(e){if(xc[e])return xc[e];if(!pi[e])return e;var n=pi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Wm)return xc[e]=n[i];return e}var ep=zl("animationend"),tp=zl("animationiteration"),np=zl("animationstart"),K2=zl("transitionrun"),$2=zl("transitionstart"),J2=zl("transitioncancel"),rp=zl("transitionend"),lp=new Map,Sc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Sc.push("scrollEnd");function Wn(e,n){lp.set(e,n),Ml(n,[e])}var Yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vn=[],gi=0,Cc=0;function Po(){for(var e=gi,n=Cc=gi=0;n<e;){var i=Vn[n];Vn[n++]=null;var o=Vn[n];Vn[n++]=null;var f=Vn[n];Vn[n++]=null;var m=Vn[n];if(Vn[n++]=null,o!==null&&f!==null){var x=o.pending;x===null?f.next=f:(f.next=x.next,x.next=f),o.pending=f}m!==0&&ip(i,f,m)}}function Xo(e,n,i,o){Vn[gi++]=e,Vn[gi++]=n,Vn[gi++]=i,Vn[gi++]=o,Cc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function wc(e,n,i,o){return Xo(e,n,i,o),Zo(e)}function Ll(e,n){return Xo(e,null,null,n),Zo(e)}function ip(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var f=!1,m=e.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&n!==null&&(f=31-qe(i),e=m.hiddenUpdates,o=e[f],o===null?e[f]=[n]:o.push(n),n.lane=i|536870912),m):null}function Zo(e){if(50<qa)throw qa=0,_f=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var vi={};function W2(e,n,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(e,n,i,o){return new W2(e,n,i,o)}function Ec(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nr(e,n){var i=e.alternate;return i===null?(i=Nn(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function ap(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Go(e,n,i,o,f,m){var x=0;if(o=e,typeof e=="function")Ec(e)&&(x=1);else if(typeof e=="string")x=l3(e,i,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case j:return e=Nn(31,i,n,f),e.elementType=j,e.lanes=m,e;case T:return Bl(i.children,f,m,n);case A:x=8,f|=24;break;case E:return e=Nn(12,i,n,f|2),e.elementType=E,e.lanes=m,e;case z:return e=Nn(13,i,n,f),e.elementType=z,e.lanes=m,e;case k:return e=Nn(19,i,n,f),e.elementType=k,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:x=10;break e;case _:x=9;break e;case N:x=11;break e;case H:x=14;break e;case I:x=16,o=null;break e}x=29,i=Error(a(130,e===null?"null":typeof e,"")),o=null}return n=Nn(x,i,n,f),n.elementType=e,n.type=o,n.lanes=m,n}function Bl(e,n,i,o){return e=Nn(7,e,o,n),e.lanes=i,e}function Tc(e,n,i){return e=Nn(6,e,null,n),e.lanes=i,e}function op(e){var n=Nn(18,null,null,0);return n.stateNode=e,n}function Ac(e,n,i){return n=Nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var sp=new WeakMap;function qn(e,n){if(typeof e=="object"&&e!==null){var i=sp.get(e);return i!==void 0?i:(n={value:e,source:n,stack:tn(n)},sp.set(e,n),n)}return{value:e,source:n,stack:tn(n)}}var yi=[],bi=0,Fo=null,Sa=0,Yn=[],Pn=0,$r=null,cr=1,fr="";function Or(e,n){yi[bi++]=Sa,yi[bi++]=Fo,Fo=e,Sa=n}function up(e,n,i){Yn[Pn++]=cr,Yn[Pn++]=fr,Yn[Pn++]=$r,$r=e;var o=cr;e=fr;var f=32-qe(o)-1;o&=~(1<<f),i+=1;var m=32-qe(n)+f;if(30<m){var x=f-f%5;m=(o&(1<<x)-1).toString(32),o>>=x,f-=x,cr=1<<32-qe(n)+f|i<<f|o,fr=m+e}else cr=1<<m|i<<f|o,fr=e}function Dc(e){e.return!==null&&(Or(e,1),up(e,1,0))}function Nc(e){for(;e===Fo;)Fo=yi[--bi],yi[bi]=null,Sa=yi[--bi],yi[bi]=null;for(;e===$r;)$r=Yn[--Pn],Yn[Pn]=null,fr=Yn[--Pn],Yn[Pn]=null,cr=Yn[--Pn],Yn[Pn]=null}function cp(e,n){Yn[Pn++]=cr,Yn[Pn++]=fr,Yn[Pn++]=$r,cr=n.id,fr=n.overflow,$r=e}var Kt=null,dt=null,Ue=!1,Jr=null,Xn=!1,Oc=Error(a(519));function Wr(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ca(qn(n,e)),Oc}function fp(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[Qt]=e,n[hn]=o,i){case"dialog":ze("cancel",n),ze("close",n);break;case"iframe":case"object":case"embed":ze("load",n);break;case"video":case"audio":for(i=0;i<Pa.length;i++)ze(Pa[i],n);break;case"source":ze("error",n);break;case"img":case"image":case"link":ze("error",n),ze("load",n);break;case"details":ze("toggle",n);break;case"input":ze("invalid",n),Em(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ze("invalid",n);break;case"textarea":ze("invalid",n),Am(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||Ng(n.textContent,i)?(o.popover!=null&&(ze("beforetoggle",n),ze("toggle",n)),o.onScroll!=null&&ze("scroll",n),o.onScrollEnd!=null&&ze("scrollend",n),o.onClick!=null&&(n.onclick=Ar),n=!0):n=!1,n||Wr(e,!0)}function dp(e){for(Kt=e.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Xn=!1;return;case 27:case 3:Xn=!0;return;default:Kt=Kt.return}}function xi(e){if(e!==Kt)return!1;if(!Ue)return dp(e),Ue=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Ff(e.type,e.memoizedProps)),i=!i),i&&dt&&Wr(e),dp(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));dt=Bg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));dt=Bg(e)}else n===27?(n=dt,hl(e.type)?(e=Wf,Wf=null,dt=e):dt=n):dt=Kt?Gn(e.stateNode.nextSibling):null;return!0}function Hl(){dt=Kt=null,Ue=!1}function Rc(){var e=Jr;return e!==null&&(yn===null?yn=e:yn.push.apply(yn,e),Jr=null),e}function Ca(e){Jr===null?Jr=[e]:Jr.push(e)}var kc=L(null),Ul=null,Rr=null;function el(e,n,i){O(kc,n._currentValue),n._currentValue=i}function kr(e){e._currentValue=kc.current,Y(kc)}function Mc(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function _c(e,n,i,o){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var x=f.child;m=m.firstContext;e:for(;m!==null;){var D=m;m=f;for(var B=0;B<n.length;B++)if(D.context===n[B]){m.lanes|=i,D=m.alternate,D!==null&&(D.lanes|=i),Mc(m.return,i,e),o||(x=null);break e}m=D.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(a(341));x.lanes|=i,m=x.alternate,m!==null&&(m.lanes|=i),Mc(x,i,e),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===e){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Si(e,n,i,o){e=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var D=f.type;Dn(f.pendingProps.value,x.value)||(e!==null?e.push(D):e=[D])}}else if(f===ve.current){if(x=f.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Qa):e=[Qa])}f=f.return}e!==null&&_c(n,e,i,o),n.flags|=262144}function Qo(e){for(e=e.firstContext;e!==null;){if(!Dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){Ul=e,Rr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $t(e){return hp(Ul,e)}function Ko(e,n){return Ul===null&&Il(e),hp(e,n)}function hp(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Rr===null){if(e===null)throw Error(a(308));Rr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Rr=Rr.next=n;return i}var e5=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},t5=t.unstable_scheduleCallback,n5=t.unstable_NormalPriority,_t={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jc(){return{controller:new e5,data:new Map,refCount:0}}function wa(e){e.refCount--,e.refCount===0&&t5(n5,function(){e.controller.abort()})}var Ea=null,zc=0,Ci=0,wi=null;function r5(e,n){if(Ea===null){var i=Ea=[];zc=0,Ci=Uf(),wi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return zc++,n.then(mp,mp),n}function mp(){if(--zc===0&&Ea!==null){wi!==null&&(wi.status="fulfilled");var e=Ea;Ea=null,Ci=0,wi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function l5(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(o.status="rejected",o.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),o}var pp=U.S;U.S=function(e,n){J1=ut(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&r5(e,n),pp!==null&&pp(e,n)};var Vl=L(null);function Lc(){var e=Vl.current;return e!==null?e:lt.pooledCache}function $o(e,n){n===null?O(Vl,Vl.current):O(Vl,n.pool)}function gp(){var e=Lc();return e===null?null:{parent:_t._currentValue,pool:e}}var Ei=Error(a(460)),Bc=Error(a(474)),Jo=Error(a(542)),Wo={then:function(){}};function vp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yp(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Ar,Ar),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,xp(e),e;default:if(typeof n.status=="string")n.then(Ar,Ar);else{if(e=lt,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=o}},function(o){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,xp(e),e}throw Yl=n,Ei}}function ql(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Yl=i,Ei):i}}var Yl=null;function bp(){if(Yl===null)throw Error(a(459));var e=Yl;return Yl=null,e}function xp(e){if(e===Ei||e===Jo)throw Error(a(483))}var Ti=null,Ta=0;function es(e){var n=Ta;return Ta+=1,Ti===null&&(Ti=[]),yp(Ti,e,n)}function Aa(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ts(e,n){throw n.$$typeof===b?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Sp(e){function n(q,V){if(e){var P=q.deletions;P===null?(q.deletions=[V],q.flags|=16):P.push(V)}}function i(q,V){if(!e)return null;for(;V!==null;)n(q,V),V=V.sibling;return null}function o(q){for(var V=new Map;q!==null;)q.key!==null?V.set(q.key,q):V.set(q.index,q),q=q.sibling;return V}function f(q,V){return q=Nr(q,V),q.index=0,q.sibling=null,q}function m(q,V,P){return q.index=P,e?(P=q.alternate,P!==null?(P=P.index,P<V?(q.flags|=67108866,V):P):(q.flags|=67108866,V)):(q.flags|=1048576,V)}function x(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function D(q,V,P,re){return V===null||V.tag!==6?(V=Tc(P,q.mode,re),V.return=q,V):(V=f(V,P),V.return=q,V)}function B(q,V,P,re){var Se=P.type;return Se===T?J(q,V,P.props.children,re,P.key):V!==null&&(V.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===I&&ql(Se)===V.type)?(V=f(V,P.props),Aa(V,P),V.return=q,V):(V=Go(P.type,P.key,P.props,null,q.mode,re),Aa(V,P),V.return=q,V)}function X(q,V,P,re){return V===null||V.tag!==4||V.stateNode.containerInfo!==P.containerInfo||V.stateNode.implementation!==P.implementation?(V=Ac(P,q.mode,re),V.return=q,V):(V=f(V,P.children||[]),V.return=q,V)}function J(q,V,P,re,Se){return V===null||V.tag!==7?(V=Bl(P,q.mode,re,Se),V.return=q,V):(V=f(V,P),V.return=q,V)}function ae(q,V,P){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Tc(""+V,q.mode,P),V.return=q,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case y:return P=Go(V.type,V.key,V.props,null,q.mode,P),Aa(P,V),P.return=q,P;case w:return V=Ac(V,q.mode,P),V.return=q,V;case I:return V=ql(V),ae(q,V,P)}if(W(V)||K(V))return V=Bl(V,q.mode,P,null),V.return=q,V;if(typeof V.then=="function")return ae(q,es(V),P);if(V.$$typeof===R)return ae(q,Ko(q,V),P);ts(q,V)}return null}function F(q,V,P,re){var Se=V!==null?V.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Se!==null?null:D(q,V,""+P,re);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case y:return P.key===Se?B(q,V,P,re):null;case w:return P.key===Se?X(q,V,P,re):null;case I:return P=ql(P),F(q,V,P,re)}if(W(P)||K(P))return Se!==null?null:J(q,V,P,re,null);if(typeof P.then=="function")return F(q,V,es(P),re);if(P.$$typeof===R)return F(q,V,Ko(q,P),re);ts(q,P)}return null}function $(q,V,P,re,Se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return q=q.get(P)||null,D(V,q,""+re,Se);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case y:return q=q.get(re.key===null?P:re.key)||null,B(V,q,re,Se);case w:return q=q.get(re.key===null?P:re.key)||null,X(V,q,re,Se);case I:return re=ql(re),$(q,V,P,re,Se)}if(W(re)||K(re))return q=q.get(P)||null,J(V,q,re,Se,null);if(typeof re.then=="function")return $(q,V,P,es(re),Se);if(re.$$typeof===R)return $(q,V,P,Ko(V,re),Se);ts(V,re)}return null}function pe(q,V,P,re){for(var Se=null,Ye=null,ye=V,Me=V=0,Be=null;ye!==null&&Me<P.length;Me++){ye.index>Me?(Be=ye,ye=null):Be=ye.sibling;var Pe=F(q,ye,P[Me],re);if(Pe===null){ye===null&&(ye=Be);break}e&&ye&&Pe.alternate===null&&n(q,ye),V=m(Pe,V,Me),Ye===null?Se=Pe:Ye.sibling=Pe,Ye=Pe,ye=Be}if(Me===P.length)return i(q,ye),Ue&&Or(q,Me),Se;if(ye===null){for(;Me<P.length;Me++)ye=ae(q,P[Me],re),ye!==null&&(V=m(ye,V,Me),Ye===null?Se=ye:Ye.sibling=ye,Ye=ye);return Ue&&Or(q,Me),Se}for(ye=o(ye);Me<P.length;Me++)Be=$(ye,q,Me,P[Me],re),Be!==null&&(e&&Be.alternate!==null&&ye.delete(Be.key===null?Me:Be.key),V=m(Be,V,Me),Ye===null?Se=Be:Ye.sibling=Be,Ye=Be);return e&&ye.forEach(function(yl){return n(q,yl)}),Ue&&Or(q,Me),Se}function Ee(q,V,P,re){if(P==null)throw Error(a(151));for(var Se=null,Ye=null,ye=V,Me=V=0,Be=null,Pe=P.next();ye!==null&&!Pe.done;Me++,Pe=P.next()){ye.index>Me?(Be=ye,ye=null):Be=ye.sibling;var yl=F(q,ye,Pe.value,re);if(yl===null){ye===null&&(ye=Be);break}e&&ye&&yl.alternate===null&&n(q,ye),V=m(yl,V,Me),Ye===null?Se=yl:Ye.sibling=yl,Ye=yl,ye=Be}if(Pe.done)return i(q,ye),Ue&&Or(q,Me),Se;if(ye===null){for(;!Pe.done;Me++,Pe=P.next())Pe=ae(q,Pe.value,re),Pe!==null&&(V=m(Pe,V,Me),Ye===null?Se=Pe:Ye.sibling=Pe,Ye=Pe);return Ue&&Or(q,Me),Se}for(ye=o(ye);!Pe.done;Me++,Pe=P.next())Pe=$(ye,q,Me,Pe.value,re),Pe!==null&&(e&&Pe.alternate!==null&&ye.delete(Pe.key===null?Me:Pe.key),V=m(Pe,V,Me),Ye===null?Se=Pe:Ye.sibling=Pe,Ye=Pe);return e&&ye.forEach(function(p3){return n(q,p3)}),Ue&&Or(q,Me),Se}function tt(q,V,P,re){if(typeof P=="object"&&P!==null&&P.type===T&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case y:e:{for(var Se=P.key;V!==null;){if(V.key===Se){if(Se=P.type,Se===T){if(V.tag===7){i(q,V.sibling),re=f(V,P.props.children),re.return=q,q=re;break e}}else if(V.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===I&&ql(Se)===V.type){i(q,V.sibling),re=f(V,P.props),Aa(re,P),re.return=q,q=re;break e}i(q,V);break}else n(q,V);V=V.sibling}P.type===T?(re=Bl(P.props.children,q.mode,re,P.key),re.return=q,q=re):(re=Go(P.type,P.key,P.props,null,q.mode,re),Aa(re,P),re.return=q,q=re)}return x(q);case w:e:{for(Se=P.key;V!==null;){if(V.key===Se)if(V.tag===4&&V.stateNode.containerInfo===P.containerInfo&&V.stateNode.implementation===P.implementation){i(q,V.sibling),re=f(V,P.children||[]),re.return=q,q=re;break e}else{i(q,V);break}else n(q,V);V=V.sibling}re=Ac(P,q.mode,re),re.return=q,q=re}return x(q);case I:return P=ql(P),tt(q,V,P,re)}if(W(P))return pe(q,V,P,re);if(K(P)){if(Se=K(P),typeof Se!="function")throw Error(a(150));return P=Se.call(P),Ee(q,V,P,re)}if(typeof P.then=="function")return tt(q,V,es(P),re);if(P.$$typeof===R)return tt(q,V,Ko(q,P),re);ts(q,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,V!==null&&V.tag===6?(i(q,V.sibling),re=f(V,P),re.return=q,q=re):(i(q,V),re=Tc(P,q.mode,re),re.return=q,q=re),x(q)):i(q,V)}return function(q,V,P,re){try{Ta=0;var Se=tt(q,V,P,re);return Ti=null,Se}catch(ye){if(ye===Ei||ye===Jo)throw ye;var Ye=Nn(29,ye,null,q.mode);return Ye.lanes=re,Ye.return=q,Ye}finally{}}}var Pl=Sp(!0),Cp=Sp(!1),tl=!1;function Hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function rl(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ze&2)!==0){var f=o.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),o.pending=n,n=Zo(e),ip(e,null,i),n}return Xo(e,o,n,i),Zo(e)}function Da(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,ot(e,i)}}function Ic(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=x:m=m.next=x,i=i.next}while(i!==null);m===null?f=m=n:m=m.next=n}else f=m=n;i={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Vc=!1;function Na(){if(Vc){var e=wi;if(e!==null)throw e}}function Oa(e,n,i,o){Vc=!1;var f=e.updateQueue;tl=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,D=f.shared.pending;if(D!==null){f.shared.pending=null;var B=D,X=B.next;B.next=null,x===null?m=X:x.next=X,x=B;var J=e.alternate;J!==null&&(J=J.updateQueue,D=J.lastBaseUpdate,D!==x&&(D===null?J.firstBaseUpdate=X:D.next=X,J.lastBaseUpdate=B))}if(m!==null){var ae=f.baseState;x=0,J=X=B=null,D=m;do{var F=D.lane&-536870913,$=F!==D.lane;if($?(Le&F)===F:(o&F)===F){F!==0&&F===Ci&&(Vc=!0),J!==null&&(J=J.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var pe=e,Ee=D;F=n;var tt=i;switch(Ee.tag){case 1:if(pe=Ee.payload,typeof pe=="function"){ae=pe.call(tt,ae,F);break e}ae=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ee.payload,F=typeof pe=="function"?pe.call(tt,ae,F):pe,F==null)break e;ae=p({},ae,F);break e;case 2:tl=!0}}F=D.callback,F!==null&&(e.flags|=64,$&&(e.flags|=8192),$=f.callbacks,$===null?f.callbacks=[F]:$.push(F))}else $={lane:F,tag:D.tag,payload:D.payload,callback:D.callback,next:null},J===null?(X=J=$,B=ae):J=J.next=$,x|=F;if(D=D.next,D===null){if(D=f.shared.pending,D===null)break;$=D,D=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);J===null&&(B=ae),f.baseState=B,f.firstBaseUpdate=X,f.lastBaseUpdate=J,m===null&&(f.shared.lanes=0),sl|=x,e.lanes=x,e.memoizedState=ae}}function wp(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function Ep(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)wp(i[e],n)}var Ai=L(null),ns=L(0);function Tp(e,n){e=Ir,O(ns,e),O(Ai,n),Ir=e|n.baseLanes}function qc(){O(ns,Ir),O(Ai,Ai.current)}function Yc(){Ir=ns.current,Y(Ai),Y(ns)}var On=L(null),Zn=null;function ll(e){var n=e.alternate;O(Nt,Nt.current&1),O(On,e),Zn===null&&(n===null||Ai.current!==null||n.memoizedState!==null)&&(Zn=e)}function Pc(e){O(Nt,Nt.current),O(On,e),Zn===null&&(Zn=e)}function Ap(e){e.tag===22?(O(Nt,Nt.current),O(On,e),Zn===null&&(Zn=e)):il()}function il(){O(Nt,Nt.current),O(On,On.current)}function Rn(e){Y(On),Zn===e&&(Zn=null),Y(Nt)}var Nt=L(0);function rs(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||$f(i)||Jf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Mr=0,ke=null,We=null,jt=null,ls=!1,Di=!1,Xl=!1,is=0,Ra=0,Ni=null,i5=0;function Et(){throw Error(a(321))}function Xc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Dn(e[i],n[i]))return!1;return!0}function Zc(e,n,i,o,f,m){return Mr=m,ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=e===null||e.memoizedState===null?u1:sf,Xl=!1,m=i(o,f),Xl=!1,Di&&(m=Np(n,i,o,f)),Dp(e),m}function Dp(e){U.H=_a;var n=We!==null&&We.next!==null;if(Mr=0,jt=We=ke=null,ls=!1,Ra=0,Ni=null,n)throw Error(a(300));e===null||zt||(e=e.dependencies,e!==null&&Qo(e)&&(zt=!0))}function Np(e,n,i,o){ke=e;var f=0;do{if(Di&&(Ni=null),Ra=0,Di=!1,25<=f)throw Error(a(301));if(f+=1,jt=We=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=c1,m=n(i,o)}while(Di);return m}function a5(){var e=U.H,n=e.useState()[0];return n=typeof n.then=="function"?ka(n):n,e=e.useState()[0],(We!==null?We.memoizedState:null)!==e&&(ke.flags|=1024),n}function Gc(){var e=is!==0;return is=0,e}function Fc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Qc(e){if(ls){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ls=!1}Mr=0,jt=We=ke=null,Di=!1,Ra=is=0,Ni=null}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?ke.memoizedState=jt=e:jt=jt.next=e,jt}function Ot(){if(We===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var n=jt===null?ke.memoizedState:jt.next;if(n!==null)jt=n,We=e;else{if(e===null)throw ke.alternate===null?Error(a(467)):Error(a(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},jt===null?ke.memoizedState=jt=e:jt=jt.next=e}return jt}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ka(e){var n=Ra;return Ra+=1,Ni===null&&(Ni=[]),e=yp(Ni,e,n),n=ke,(jt===null?n.memoizedState:jt.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?u1:sf),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ka(e);if(e.$$typeof===R)return $t(e)}throw Error(a(438,String(e)))}function Kc(e){var n=null,i=ke.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=as(),ke.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=Q;return n.index++,i}function _r(e,n){return typeof n=="function"?n(e):n}function ss(e){var n=Ot();return $c(n,We,e)}function $c(e,n,i){var o=e.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var f=e.baseQueue,m=o.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}n.baseQueue=f=m,o.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var D=x=null,B=null,X=n,J=!1;do{var ae=X.lane&-536870913;if(ae!==X.lane?(Le&ae)===ae:(Mr&ae)===ae){var F=X.revertLane;if(F===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ae===Ci&&(J=!0);else if((Mr&F)===F){X=X.next,F===Ci&&(J=!0);continue}else ae={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},B===null?(D=B=ae,x=m):B=B.next=ae,ke.lanes|=F,sl|=F;ae=X.action,Xl&&i(m,ae),m=X.hasEagerState?X.eagerState:i(m,ae)}else F={lane:ae,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},B===null?(D=B=F,x=m):B=B.next=F,ke.lanes|=ae,sl|=ae;X=X.next}while(X!==null&&X!==n);if(B===null?x=m:B.next=D,!Dn(m,e.memoizedState)&&(zt=!0,J&&(i=wi,i!==null)))throw i;e.memoizedState=m,e.baseState=x,e.baseQueue=B,o.lastRenderedState=m}return f===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Jc(e){var n=Ot(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var o=i.dispatch,f=i.pending,m=n.memoizedState;if(f!==null){i.pending=null;var x=f=f.next;do m=e(m,x.action),x=x.next;while(x!==f);Dn(m,n.memoizedState)||(zt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,o]}function Op(e,n,i){var o=ke,f=Ot(),m=Ue;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=n();var x=!Dn((We||f).memoizedState,i);if(x&&(f.memoizedState=i,zt=!0),f=f.queue,tf(Mp.bind(null,o,f,e),[e]),f.getSnapshot!==n||x||jt!==null&&jt.memoizedState.tag&1){if(o.flags|=2048,Oi(9,{destroy:void 0},kp.bind(null,o,f,i,n),null),lt===null)throw Error(a(349));m||(Mr&127)!==0||Rp(o,n,i)}return i}function Rp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=ke.updateQueue,n===null?(n=as(),ke.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function kp(e,n,i,o){n.value=i,n.getSnapshot=o,_p(n)&&jp(e)}function Mp(e,n,i){return i(function(){_p(n)&&jp(e)})}function _p(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Dn(e,i)}catch{return!0}}function jp(e){var n=Ll(e,2);n!==null&&bn(n,e,2)}function Wc(e){var n=un();if(typeof e=="function"){var i=e;if(e=i(),Xl){kt(!0);try{i()}finally{kt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:e},n}function zp(e,n,i,o){return e.baseState=i,$c(e,We,typeof o=="function"?o:_r)}function o5(e,n,i,o,f){if(fs(e))throw Error(a(485));if(e=n.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};U.T!==null?i(!0):m.isTransition=!1,o(m),i=n.pending,i===null?(m.next=n.pending=m,Lp(n,m)):(m.next=i.next,n.pending=i.next=m)}}function Lp(e,n){var i=n.action,o=n.payload,f=e.state;if(n.isTransition){var m=U.T,x={};U.T=x;try{var D=i(f,o),B=U.S;B!==null&&B(x,D),Bp(e,n,D)}catch(X){ef(e,n,X)}finally{m!==null&&x.types!==null&&(m.types=x.types),U.T=m}}else try{m=i(f,o),Bp(e,n,m)}catch(X){ef(e,n,X)}}function Bp(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Hp(e,n,o)},function(o){return ef(e,n,o)}):Hp(e,n,i)}function Hp(e,n,i){n.status="fulfilled",n.value=i,Up(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Lp(e,i)))}function ef(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Up(n),n=n.next;while(n!==o)}e.action=null}function Up(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Ip(e,n){return n}function Vp(e,n){if(Ue){var i=lt.formState;if(i!==null){e:{var o=ke;if(Ue){if(dt){t:{for(var f=dt,m=Xn;f.nodeType!==8;){if(!m){f=null;break t}if(f=Gn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){dt=Gn(f.nextSibling),o=f.data==="F!";break e}}Wr(o)}o=!1}o&&(n=i[0])}}return i=un(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ip,lastRenderedState:n},i.queue=o,i=a1.bind(null,ke,o),o.dispatch=i,o=Wc(!1),m=of.bind(null,ke,!1,o.queue),o=un(),f={state:n,dispatch:null,action:e,pending:null},o.queue=f,i=o5.bind(null,ke,f,m,i),f.dispatch=i,o.memoizedState=e,[n,i,!1]}function qp(e){var n=Ot();return Yp(n,We,e)}function Yp(e,n,i){if(n=$c(e,n,Ip)[0],e=ss(_r)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=ka(n)}catch(x){throw x===Ei?Jo:x}else o=n;n=Ot();var f=n.queue,m=f.dispatch;return i!==n.memoizedState&&(ke.flags|=2048,Oi(9,{destroy:void 0},s5.bind(null,f,i),null)),[o,m,e]}function s5(e,n){e.action=n}function Pp(e){var n=Ot(),i=We;if(i!==null)return Yp(n,i,e);Ot(),n=n.memoizedState,i=Ot();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function Oi(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=ke.updateQueue,n===null&&(n=as(),ke.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function Xp(){return Ot().memoizedState}function us(e,n,i,o){var f=un();ke.flags|=e,f.memoizedState=Oi(1|n,{destroy:void 0},i,o===void 0?null:o)}function cs(e,n,i,o){var f=Ot();o=o===void 0?null:o;var m=f.memoizedState.inst;We!==null&&o!==null&&Xc(o,We.memoizedState.deps)?f.memoizedState=Oi(n,m,i,o):(ke.flags|=e,f.memoizedState=Oi(1|n,m,i,o))}function Zp(e,n){us(8390656,8,e,n)}function tf(e,n){cs(2048,8,e,n)}function u5(e){ke.flags|=4;var n=ke.updateQueue;if(n===null)n=as(),ke.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Gp(e){var n=Ot().memoizedState;return u5({ref:n,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Fp(e,n){return cs(4,2,e,n)}function Qp(e,n){return cs(4,4,e,n)}function Kp(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function $p(e,n,i){i=i!=null?i.concat([e]):null,cs(4,4,Kp.bind(null,n,e),i)}function nf(){}function Jp(e,n){var i=Ot();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&Xc(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function Wp(e,n){var i=Ot();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&Xc(n,o[1]))return o[0];if(o=e(),Xl){kt(!0);try{e()}finally{kt(!1)}}return i.memoizedState=[o,n],o}function rf(e,n,i){return i===void 0||(Mr&1073741824)!==0&&(Le&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=eg(),ke.lanes|=e,sl|=e,i)}function e1(e,n,i,o){return Dn(i,n)?i:Ai.current!==null?(e=rf(e,i,o),Dn(e,n)||(zt=!0),e):(Mr&42)===0||(Mr&1073741824)!==0&&(Le&261930)===0?(zt=!0,e.memoizedState=i):(e=eg(),ke.lanes|=e,sl|=e,n)}function t1(e,n,i,o,f){var m=G.p;G.p=m!==0&&8>m?m:8;var x=U.T,D={};U.T=D,of(e,!1,n,i);try{var B=f(),X=U.S;if(X!==null&&X(D,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var J=l5(B,o);Ma(e,n,J,_n(e))}else Ma(e,n,o,_n(e))}catch(ae){Ma(e,n,{then:function(){},status:"rejected",reason:ae},_n())}finally{G.p=m,x!==null&&D.types!==null&&(x.types=D.types),U.T=x}}function c5(){}function lf(e,n,i,o){if(e.tag!==5)throw Error(a(476));var f=n1(e).queue;t1(e,f,n,le,i===null?c5:function(){return r1(e),i(o)})}function n1(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:le},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function r1(e){var n=n1(e);n.next===null&&(n=e.alternate.memoizedState),Ma(e,n.next.queue,{},_n())}function af(){return $t(Qa)}function l1(){return Ot().memoizedState}function i1(){return Ot().memoizedState}function f5(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=_n();e=nl(i);var o=rl(n,e,i);o!==null&&(bn(o,n,i),Da(o,n,i)),n={cache:jc()},e.payload=n;return}n=n.return}}function d5(e,n,i){var o=_n();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},fs(e)?o1(n,i):(i=wc(e,n,i,o),i!==null&&(bn(i,e,o),s1(i,n,o)))}function a1(e,n,i){var o=_n();Ma(e,n,i,o)}function Ma(e,n,i,o){var f={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(fs(e))o1(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var x=n.lastRenderedState,D=m(x,i);if(f.hasEagerState=!0,f.eagerState=D,Dn(D,x))return Xo(e,n,f,0),lt===null&&Po(),!1}catch{}finally{}if(i=wc(e,n,f,o),i!==null)return bn(i,e,o),s1(i,n,o),!0}return!1}function of(e,n,i,o){if(o={lane:2,revertLane:Uf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(n)throw Error(a(479))}else n=wc(e,i,o,2),n!==null&&bn(n,e,2)}function fs(e){var n=e.alternate;return e===ke||n!==null&&n===ke}function o1(e,n){Di=ls=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function s1(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,ot(e,i)}}var _a={readContext:$t,use:os,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};_a.useEffectEvent=Et;var u1={readContext:$t,use:os,useCallback:function(e,n){return un().memoizedState=[e,n===void 0?null:n],e},useContext:$t,useEffect:Zp,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,us(4194308,4,Kp.bind(null,n,e),i)},useLayoutEffect:function(e,n){return us(4194308,4,e,n)},useInsertionEffect:function(e,n){us(4,2,e,n)},useMemo:function(e,n){var i=un();n=n===void 0?null:n;var o=e();if(Xl){kt(!0);try{e()}finally{kt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=un();if(i!==void 0){var f=i(n);if(Xl){kt(!0);try{i(n)}finally{kt(!1)}}}else f=n;return o.memoizedState=o.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},o.queue=e,e=e.dispatch=d5.bind(null,ke,e),[o.memoizedState,e]},useRef:function(e){var n=un();return e={current:e},n.memoizedState=e},useState:function(e){e=Wc(e);var n=e.queue,i=a1.bind(null,ke,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:nf,useDeferredValue:function(e,n){var i=un();return rf(i,e,n)},useTransition:function(){var e=Wc(!1);return e=t1.bind(null,ke,e.queue,!0,!1),un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=ke,f=un();if(Ue){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),lt===null)throw Error(a(349));(Le&127)!==0||Rp(o,n,i)}f.memoizedState=i;var m={value:i,getSnapshot:n};return f.queue=m,Zp(Mp.bind(null,o,m,e),[e]),o.flags|=2048,Oi(9,{destroy:void 0},kp.bind(null,o,m,i,n),null),i},useId:function(){var e=un(),n=lt.identifierPrefix;if(Ue){var i=fr,o=cr;i=(o&~(1<<32-qe(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=is++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=i5++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:af,useFormState:Vp,useActionState:Vp,useOptimistic:function(e){var n=un();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=of.bind(null,ke,!0,i),i.dispatch=n,[e,n]},useMemoCache:Kc,useCacheRefresh:function(){return un().memoizedState=f5.bind(null,ke)},useEffectEvent:function(e){var n=un(),i={impl:e};return n.memoizedState=i,function(){if((Ze&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},sf={readContext:$t,use:os,useCallback:Jp,useContext:$t,useEffect:tf,useImperativeHandle:$p,useInsertionEffect:Fp,useLayoutEffect:Qp,useMemo:Wp,useReducer:ss,useRef:Xp,useState:function(){return ss(_r)},useDebugValue:nf,useDeferredValue:function(e,n){var i=Ot();return e1(i,We.memoizedState,e,n)},useTransition:function(){var e=ss(_r)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:ka(e),n]},useSyncExternalStore:Op,useId:l1,useHostTransitionStatus:af,useFormState:qp,useActionState:qp,useOptimistic:function(e,n){var i=Ot();return zp(i,We,e,n)},useMemoCache:Kc,useCacheRefresh:i1};sf.useEffectEvent=Gp;var c1={readContext:$t,use:os,useCallback:Jp,useContext:$t,useEffect:tf,useImperativeHandle:$p,useInsertionEffect:Fp,useLayoutEffect:Qp,useMemo:Wp,useReducer:Jc,useRef:Xp,useState:function(){return Jc(_r)},useDebugValue:nf,useDeferredValue:function(e,n){var i=Ot();return We===null?rf(i,e,n):e1(i,We.memoizedState,e,n)},useTransition:function(){var e=Jc(_r)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:ka(e),n]},useSyncExternalStore:Op,useId:l1,useHostTransitionStatus:af,useFormState:Pp,useActionState:Pp,useOptimistic:function(e,n){var i=Ot();return We!==null?zp(i,We,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Kc,useCacheRefresh:i1};c1.useEffectEvent=Gp;function uf(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:p({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var cf={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=_n(),f=nl(o);f.payload=n,i!=null&&(f.callback=i),n=rl(e,f,o),n!==null&&(bn(n,e,o),Da(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=_n(),f=nl(o);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=rl(e,f,o),n!==null&&(bn(n,e,o),Da(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=_n(),o=nl(i);o.tag=2,n!=null&&(o.callback=n),n=rl(e,o,i),n!==null&&(bn(n,e,i),Da(n,e,i))}};function f1(e,n,i,o,f,m,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,m,x):n.prototype&&n.prototype.isPureReactComponent?!ba(i,o)||!ba(f,m):!0}function d1(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&cf.enqueueReplaceState(n,n.state,null)}function Zl(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=p({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function h1(e){Yo(e)}function m1(e){console.error(e)}function p1(e){Yo(e)}function ds(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function g1(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function ff(e,n,i){return i=nl(i),i.tag=3,i.payload={element:null},i.callback=function(){ds(e,n)},i}function v1(e){return e=nl(e),e.tag=3,e}function y1(e,n,i,o){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=o.value;e.payload=function(){return f(m)},e.callback=function(){g1(n,i,o)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){g1(n,i,o),typeof f!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var D=o.stack;this.componentDidCatch(o.value,{componentStack:D!==null?D:""})})}function h5(e,n,i,o,f){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&Si(n,i,f,!0),i=On.current,i!==null){switch(i.tag){case 31:case 13:return Zn===null?Es():i.alternate===null&&Tt===0&&(Tt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,o===Wo?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Lf(e,o,f)),!1;case 22:return i.flags|=65536,o===Wo?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Lf(e,o,f)),!1}throw Error(a(435,i.tag))}return Lf(e,o,f),Es(),!1}if(Ue)return n=On.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,o!==Oc&&(e=Error(a(422),{cause:o}),Ca(qn(e,i)))):(o!==Oc&&(n=Error(a(423),{cause:o}),Ca(qn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,o=qn(o,i),f=ff(e.stateNode,o,f),Ic(e,f),Tt!==4&&(Tt=2)),!1;var m=Error(a(520),{cause:o});if(m=qn(m,i),Va===null?Va=[m]:Va.push(m),Tt!==4&&(Tt=2),n===null)return!0;o=qn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=ff(i.stateNode,o,e),Ic(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ul===null||!ul.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=v1(f),y1(f,e,i,o),Ic(i,f),!1}i=i.return}while(i!==null);return!1}var df=Error(a(461)),zt=!1;function Jt(e,n,i,o){n.child=e===null?Cp(n,null,i,o):Pl(n,e.child,i,o)}function b1(e,n,i,o,f){i=i.render;var m=n.ref;if("ref"in o){var x={};for(var D in o)D!=="ref"&&(x[D]=o[D])}else x=o;return Il(n),o=Zc(e,n,i,x,m,f),D=Gc(),e!==null&&!zt?(Fc(e,n,f),jr(e,n,f)):(Ue&&D&&Dc(n),n.flags|=1,Jt(e,n,o,f),n.child)}function x1(e,n,i,o,f){if(e===null){var m=i.type;return typeof m=="function"&&!Ec(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,S1(e,n,m,o,f)):(e=Go(i.type,null,o,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!xf(e,f)){var x=m.memoizedProps;if(i=i.compare,i=i!==null?i:ba,i(x,o)&&e.ref===n.ref)return jr(e,n,f)}return n.flags|=1,e=Nr(m,o),e.ref=n.ref,e.return=n,n.child=e}function S1(e,n,i,o,f){if(e!==null){var m=e.memoizedProps;if(ba(m,o)&&e.ref===n.ref)if(zt=!1,n.pendingProps=o=m,xf(e,f))(e.flags&131072)!==0&&(zt=!0);else return n.lanes=e.lanes,jr(e,n,f)}return hf(e,n,i,o,f)}function C1(e,n,i,o){var f=o.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~m}else o=0,n.child=null;return w1(e,n,m,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&$o(n,m!==null?m.cachePool:null),m!==null?Tp(n,m):qc(),Ap(n);else return o=n.lanes=536870912,w1(e,n,m!==null?m.baseLanes|i:i,i,o)}else m!==null?($o(n,m.cachePool),Tp(n,m),il(),n.memoizedState=null):(e!==null&&$o(n,null),qc(),il());return Jt(e,n,f,i),n.child}function ja(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function w1(e,n,i,o,f){var m=Lc();return m=m===null?null:{parent:_t._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},e!==null&&$o(n,null),qc(),Ap(n),e!==null&&Si(e,n,o,!0),n.childLanes=f,null}function hs(e,n){return n=ps({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function E1(e,n,i){return Pl(n,e.child,null,i),e=hs(n,n.pendingProps),e.flags|=2,Rn(n),n.memoizedState=null,e}function m5(e,n,i){var o=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ue){if(o.mode==="hidden")return e=hs(n,o),n.lanes=536870912,ja(null,e);if(Pc(n),(e=dt)?(e=Lg(e,Xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:$r!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},i=op(e),i.return=n,n.child=i,Kt=n,dt=null)):e=null,e===null)throw Wr(n);return n.lanes=536870912,null}return hs(n,o)}var m=e.memoizedState;if(m!==null){var x=m.dehydrated;if(Pc(n),f)if(n.flags&256)n.flags&=-257,n=E1(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(zt||Si(e,n,i,!1),f=(i&e.childLanes)!==0,zt||f){if(o=lt,o!==null&&(x=xt(o,i),x!==0&&x!==m.retryLane))throw m.retryLane=x,Ll(e,x),bn(o,e,x),df;Es(),n=E1(e,n,i)}else e=m.treeContext,dt=Gn(x.nextSibling),Kt=n,Ue=!0,Jr=null,Xn=!1,e!==null&&cp(n,e),n=hs(n,o),n.flags|=4096;return n}return e=Nr(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ms(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function hf(e,n,i,o,f){return Il(n),i=Zc(e,n,i,o,void 0,f),o=Gc(),e!==null&&!zt?(Fc(e,n,f),jr(e,n,f)):(Ue&&o&&Dc(n),n.flags|=1,Jt(e,n,i,f),n.child)}function T1(e,n,i,o,f,m){return Il(n),n.updateQueue=null,i=Np(n,o,i,f),Dp(e),o=Gc(),e!==null&&!zt?(Fc(e,n,m),jr(e,n,m)):(Ue&&o&&Dc(n),n.flags|=1,Jt(e,n,i,m),n.child)}function A1(e,n,i,o,f){if(Il(n),n.stateNode===null){var m=vi,x=i.contextType;typeof x=="object"&&x!==null&&(m=$t(x)),m=new i(o,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=cf,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=o,m.state=n.memoizedState,m.refs={},Hc(n),x=i.contextType,m.context=typeof x=="object"&&x!==null?$t(x):vi,m.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(uf(n,i,x,o),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&cf.enqueueReplaceState(m,m.state,null),Oa(n,o,m,f),Na(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){m=n.stateNode;var D=n.memoizedProps,B=Zl(i,D);m.props=B;var X=m.context,J=i.contextType;x=vi,typeof J=="object"&&J!==null&&(x=$t(J));var ae=i.getDerivedStateFromProps;J=typeof ae=="function"||typeof m.getSnapshotBeforeUpdate=="function",D=n.pendingProps!==D,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(D||X!==x)&&d1(n,m,o,x),tl=!1;var F=n.memoizedState;m.state=F,Oa(n,o,m,f),Na(),X=n.memoizedState,D||F!==X||tl?(typeof ae=="function"&&(uf(n,i,ae,o),X=n.memoizedState),(B=tl||f1(n,i,B,o,F,X,x))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=X),m.props=o,m.state=X,m.context=x,o=B):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{m=n.stateNode,Uc(e,n),x=n.memoizedProps,J=Zl(i,x),m.props=J,ae=n.pendingProps,F=m.context,X=i.contextType,B=vi,typeof X=="object"&&X!==null&&(B=$t(X)),D=i.getDerivedStateFromProps,(X=typeof D=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==ae||F!==B)&&d1(n,m,o,B),tl=!1,F=n.memoizedState,m.state=F,Oa(n,o,m,f),Na();var $=n.memoizedState;x!==ae||F!==$||tl||e!==null&&e.dependencies!==null&&Qo(e.dependencies)?(typeof D=="function"&&(uf(n,i,D,o),$=n.memoizedState),(J=tl||f1(n,i,J,o,F,$,B)||e!==null&&e.dependencies!==null&&Qo(e.dependencies))?(X||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,$,B),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,$,B)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=$),m.props=o,m.state=$,m.context=B,o=J):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),o=!1)}return m=o,ms(e,n),o=(n.flags&128)!==0,m||o?(m=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&o?(n.child=Pl(n,e.child,null,f),n.child=Pl(n,null,i,f)):Jt(e,n,i,f),n.memoizedState=m.state,e=n.child):e=jr(e,n,f),e}function D1(e,n,i,o){return Hl(),n.flags|=256,Jt(e,n,i,o),n.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pf(e){return{baseLanes:e,cachePool:gp()}}function gf(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Mn),e}function N1(e,n,i){var o=n.pendingProps,f=!1,m=(n.flags&128)!==0,x;if((x=m)||(x=e!==null&&e.memoizedState===null?!1:(Nt.current&2)!==0),x&&(f=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ue){if(f?ll(n):il(),(e=dt)?(e=Lg(e,Xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:$r!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},i=op(e),i.return=n,n.child=i,Kt=n,dt=null)):e=null,e===null)throw Wr(n);return Jf(e)?n.lanes=32:n.lanes=536870912,null}var D=o.children;return o=o.fallback,f?(il(),f=n.mode,D=ps({mode:"hidden",children:D},f),o=Bl(o,f,i,null),D.return=n,o.return=n,D.sibling=o,n.child=D,o=n.child,o.memoizedState=pf(i),o.childLanes=gf(e,x,i),n.memoizedState=mf,ja(null,o)):(ll(n),vf(n,D))}var B=e.memoizedState;if(B!==null&&(D=B.dehydrated,D!==null)){if(m)n.flags&256?(ll(n),n.flags&=-257,n=yf(e,n,i)):n.memoizedState!==null?(il(),n.child=e.child,n.flags|=128,n=null):(il(),D=o.fallback,f=n.mode,o=ps({mode:"visible",children:o.children},f),D=Bl(D,f,i,null),D.flags|=2,o.return=n,D.return=n,o.sibling=D,n.child=o,Pl(n,e.child,null,i),o=n.child,o.memoizedState=pf(i),o.childLanes=gf(e,x,i),n.memoizedState=mf,n=ja(null,o));else if(ll(n),Jf(D)){if(x=D.nextSibling&&D.nextSibling.dataset,x)var X=x.dgst;x=X,o=Error(a(419)),o.stack="",o.digest=x,Ca({value:o,source:null,stack:null}),n=yf(e,n,i)}else if(zt||Si(e,n,i,!1),x=(i&e.childLanes)!==0,zt||x){if(x=lt,x!==null&&(o=xt(x,i),o!==0&&o!==B.retryLane))throw B.retryLane=o,Ll(e,o),bn(x,e,o),df;$f(D)||Es(),n=yf(e,n,i)}else $f(D)?(n.flags|=192,n.child=e.child,n=null):(e=B.treeContext,dt=Gn(D.nextSibling),Kt=n,Ue=!0,Jr=null,Xn=!1,e!==null&&cp(n,e),n=vf(n,o.children),n.flags|=4096);return n}return f?(il(),D=o.fallback,f=n.mode,B=e.child,X=B.sibling,o=Nr(B,{mode:"hidden",children:o.children}),o.subtreeFlags=B.subtreeFlags&65011712,X!==null?D=Nr(X,D):(D=Bl(D,f,i,null),D.flags|=2),D.return=n,o.return=n,o.sibling=D,n.child=o,ja(null,o),o=n.child,D=e.child.memoizedState,D===null?D=pf(i):(f=D.cachePool,f!==null?(B=_t._currentValue,f=f.parent!==B?{parent:B,pool:B}:f):f=gp(),D={baseLanes:D.baseLanes|i,cachePool:f}),o.memoizedState=D,o.childLanes=gf(e,x,i),n.memoizedState=mf,ja(e.child,o)):(ll(n),i=e.child,e=i.sibling,i=Nr(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=i,n.memoizedState=null,i)}function vf(e,n){return n=ps({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ps(e,n){return e=Nn(22,e,null,n),e.lanes=0,e}function yf(e,n,i){return Pl(n,e.child,null,i),e=vf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function O1(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Mc(e.return,n,i)}function bf(e,n,i,o,f,m){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:f,treeForkCount:m}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=i,x.tailMode=f,x.treeForkCount=m)}function R1(e,n,i){var o=n.pendingProps,f=o.revealOrder,m=o.tail;o=o.children;var x=Nt.current,D=(x&2)!==0;if(D?(x=x&1|2,n.flags|=128):x&=1,O(Nt,x),Jt(e,n,o,i),o=Ue?Sa:0,!D&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&O1(e,i,n);else if(e.tag===19)O1(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&rs(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),bf(n,!1,f,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&rs(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}bf(n,!0,i,null,m,o);break;case"together":bf(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function jr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),sl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Si(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Nr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Nr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function xf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Qo(e)))}function p5(e,n,i){switch(n.tag){case 3:me(n,n.stateNode.containerInfo),el(n,_t,e.memoizedState.cache),Hl();break;case 27:case 5:ge(n);break;case 4:me(n,n.stateNode.containerInfo);break;case 10:el(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Pc(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(ll(n),n.flags|=128,null):(i&n.child.childLanes)!==0?N1(e,n,i):(ll(n),e=jr(e,n,i),e!==null?e.sibling:null);ll(n);break;case 19:var f=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(Si(e,n,i,!1),o=(i&n.childLanes)!==0),f){if(o)return R1(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),O(Nt,Nt.current),o)break;return null;case 22:return n.lanes=0,C1(e,n,i,n.pendingProps);case 24:el(n,_t,e.memoizedState.cache)}return jr(e,n,i)}function k1(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)zt=!0;else{if(!xf(e,i)&&(n.flags&128)===0)return zt=!1,p5(e,n,i);zt=(e.flags&131072)!==0}else zt=!1,Ue&&(n.flags&1048576)!==0&&up(n,Sa,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=ql(n.elementType),n.type=e,typeof e=="function")Ec(e)?(o=Zl(e,o),n.tag=1,n=A1(null,n,e,o,i)):(n.tag=0,n=hf(null,n,e,o,i));else{if(e!=null){var f=e.$$typeof;if(f===N){n.tag=11,n=b1(null,n,e,o,i);break e}else if(f===H){n.tag=14,n=x1(null,n,e,o,i);break e}}throw n=te(e)||e,Error(a(306,n,""))}}return n;case 0:return hf(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,f=Zl(o,n.pendingProps),A1(e,n,o,f,i);case 3:e:{if(me(n,n.stateNode.containerInfo),e===null)throw Error(a(387));o=n.pendingProps;var m=n.memoizedState;f=m.element,Uc(e,n),Oa(n,o,null,i);var x=n.memoizedState;if(o=x.cache,el(n,_t,o),o!==m.cache&&_c(n,[_t],i,!0),Na(),o=x.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=D1(e,n,o,i);break e}else if(o!==f){f=qn(Error(a(424)),n),Ca(f),n=D1(e,n,o,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(dt=Gn(e.firstChild),Kt=n,Ue=!0,Jr=null,Xn=!0,i=Cp(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Hl(),o===f){n=jr(e,n,i);break e}Jt(e,n,o,i)}n=n.child}return n;case 26:return ms(e,n),e===null?(i=qg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ue||(i=n.type,e=n.pendingProps,o=ks(se.current).createElement(i),o[Qt]=n,o[hn]=e,Wt(o,i,e),Yt(o),n.stateNode=o):n.memoizedState=qg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ge(n),e===null&&Ue&&(o=n.stateNode=Ug(n.type,n.pendingProps,se.current),Kt=n,Xn=!0,f=dt,hl(n.type)?(Wf=f,dt=Gn(o.firstChild)):dt=f),Jt(e,n,n.pendingProps.children,i),ms(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ue&&((f=o=dt)&&(o=X5(o,n.type,n.pendingProps,Xn),o!==null?(n.stateNode=o,Kt=n,dt=Gn(o.firstChild),Xn=!1,f=!0):f=!1),f||Wr(n)),ge(n),f=n.type,m=n.pendingProps,x=e!==null?e.memoizedProps:null,o=m.children,Ff(f,m)?o=null:x!==null&&Ff(f,x)&&(n.flags|=32),n.memoizedState!==null&&(f=Zc(e,n,a5,null,null,i),Qa._currentValue=f),ms(e,n),Jt(e,n,o,i),n.child;case 6:return e===null&&Ue&&((e=i=dt)&&(i=Z5(i,n.pendingProps,Xn),i!==null?(n.stateNode=i,Kt=n,dt=null,e=!0):e=!1),e||Wr(n)),null;case 13:return N1(e,n,i);case 4:return me(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Pl(n,null,o,i):Jt(e,n,o,i),n.child;case 11:return b1(e,n,n.type,n.pendingProps,i);case 7:return Jt(e,n,n.pendingProps,i),n.child;case 8:return Jt(e,n,n.pendingProps.children,i),n.child;case 12:return Jt(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,el(n,n.type,o.value),Jt(e,n,o.children,i),n.child;case 9:return f=n.type._context,o=n.pendingProps.children,Il(n),f=$t(f),o=o(f),n.flags|=1,Jt(e,n,o,i),n.child;case 14:return x1(e,n,n.type,n.pendingProps,i);case 15:return S1(e,n,n.type,n.pendingProps,i);case 19:return R1(e,n,i);case 31:return m5(e,n,i);case 22:return C1(e,n,i,n.pendingProps);case 24:return Il(n),o=$t(_t),e===null?(f=Lc(),f===null&&(f=lt,m=jc(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),n.memoizedState={parent:o,cache:f},Hc(n),el(n,_t,f)):((e.lanes&i)!==0&&(Uc(e,n),Oa(n,null,null,i),Na()),f=e.memoizedState,m=n.memoizedState,f.parent!==o?(f={parent:o,cache:o},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),el(n,_t,o)):(o=m.cache,el(n,_t,o),o!==f.cache&&_c(n,[_t],i,!0))),Jt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function zr(e){e.flags|=4}function Sf(e,n,i,o,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(lg())e.flags|=8192;else throw Yl=Wo,Bc}else e.flags&=-16777217}function M1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gg(n))if(lg())e.flags|=8192;else throw Yl=Wo,Bc}function gs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?He():536870912,e.lanes|=n,_i|=n)}function za(e,n){if(!Ue)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ht(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function g5(e,n,i){var o=n.pendingProps;switch(Nc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(n),null;case 1:return ht(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),kr(_t),he(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(xi(n)?zr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Rc())),ht(n),null;case 26:var f=n.type,m=n.memoizedState;return e===null?(zr(n),m!==null?(ht(n),M1(n,m)):(ht(n),Sf(n,f,null,o,i))):m?m!==e.memoizedState?(zr(n),ht(n),M1(n,m)):(ht(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&zr(n),ht(n),Sf(n,f,e,o,i)),null;case 27:if(Te(n),i=se.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&zr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ht(n),null}e=ne.current,xi(n)?fp(n):(e=Ug(f,o,i),n.stateNode=e,zr(n))}return ht(n),null;case 5:if(Te(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&zr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ht(n),null}if(m=ne.current,xi(n))fp(n);else{var x=ks(se.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?x.createElement("select",{is:o.is}):x.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?x.createElement(f,{is:o.is}):x.createElement(f)}}m[Qt]=n,m[hn]=o;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=m;e:switch(Wt(m,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&zr(n)}}return ht(n),Sf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&zr(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(e=se.current,xi(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,f=Kt,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}e[Qt]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||Ng(e.nodeValue,i)),e||Wr(n,!0)}else e=ks(e).createTextNode(o),e[Qt]=n,n.stateNode=e}return ht(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(o=xi(n),i!==null){if(e===null){if(!o)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[Qt]=n}else Hl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ht(n),e=!1}else i=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Rn(n),n):(Rn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return ht(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=xi(n),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[Qt]=n}else Hl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ht(n),f=!1}else f=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Rn(n),n):(Rn(n),null)}return Rn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,e=e!==null&&e.memoizedState!==null,i&&(o=n.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==f&&(o.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),gs(n,n.updateQueue),ht(n),null);case 4:return he(),e===null&&Yf(n.stateNode.containerInfo),ht(n),null;case 10:return kr(n.type),ht(n),null;case 19:if(Y(Nt),o=n.memoizedState,o===null)return ht(n),null;if(f=(n.flags&128)!==0,m=o.rendering,m===null)if(f)za(o,!1);else{if(Tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=rs(e),m!==null){for(n.flags|=128,za(o,!1),e=m.updateQueue,n.updateQueue=e,gs(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)ap(i,e),i=i.sibling;return O(Nt,Nt.current&1|2),Ue&&Or(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&ut()>Ss&&(n.flags|=128,f=!0,za(o,!1),n.lanes=4194304)}else{if(!f)if(e=rs(m),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,gs(n,e),za(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!Ue)return ht(n),null}else 2*ut()-o.renderingStartTime>Ss&&i!==536870912&&(n.flags|=128,f=!0,za(o,!1),n.lanes=4194304);o.isBackwards?(m.sibling=n.child,n.child=m):(e=o.last,e!==null?e.sibling=m:n.child=m,o.last=m)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ut(),e.sibling=null,i=Nt.current,O(Nt,f?i&1|2:i&1),Ue&&Or(n,o.treeForkCount),e):(ht(n),null);case 22:case 23:return Rn(n),Yc(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(ht(n),n.subtreeFlags&6&&(n.flags|=8192)):ht(n),i=n.updateQueue,i!==null&&gs(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&Y(Vl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),kr(_t),ht(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function v5(e,n){switch(Nc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return kr(_t),he(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Te(n),null;case 31:if(n.memoizedState!==null){if(Rn(n),n.alternate===null)throw Error(a(340));Hl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Rn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Hl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(Nt),null;case 4:return he(),null;case 10:return kr(n.type),null;case 22:case 23:return Rn(n),Yc(),e!==null&&Y(Vl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return kr(_t),null;case 25:return null;default:return null}}function _1(e,n){switch(Nc(n),n.tag){case 3:kr(_t),he();break;case 26:case 27:case 5:Te(n);break;case 4:he();break;case 31:n.memoizedState!==null&&Rn(n);break;case 13:Rn(n);break;case 19:Y(Nt);break;case 10:kr(n.type);break;case 22:case 23:Rn(n),Yc(),e!==null&&Y(Vl);break;case 24:kr(_t)}}function La(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var f=o.next;i=f;do{if((i.tag&e)===e){o=void 0;var m=i.create,x=i.inst;o=m(),x.destroy=o}i=i.next}while(i!==f)}}catch(D){Je(n,n.return,D)}}function al(e,n,i){try{var o=n.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var m=f.next;o=m;do{if((o.tag&e)===e){var x=o.inst,D=x.destroy;if(D!==void 0){x.destroy=void 0,f=n;var B=i,X=D;try{X()}catch(J){Je(f,B,J)}}}o=o.next}while(o!==m)}}catch(J){Je(n,n.return,J)}}function j1(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Ep(n,i)}catch(o){Je(e,e.return,o)}}}function z1(e,n,i){i.props=Zl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Je(e,n,o)}}function Ba(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(f){Je(e,n,f)}}function dr(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(f){Je(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Je(e,n,f)}else i.current=null}function L1(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(f){Je(e,e.return,f)}}function Cf(e,n,i){try{var o=e.stateNode;U5(o,e.type,i,n),o[hn]=n}catch(f){Je(e,e.return,f)}}function B1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hl(e.type)||e.tag===4}function wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ef(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ar));else if(o!==4&&(o===27&&hl(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Ef(e,n,i),e=e.sibling;e!==null;)Ef(e,n,i),e=e.sibling}function vs(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&hl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(vs(e,n,i),e=e.sibling;e!==null;)vs(e,n,i),e=e.sibling}function H1(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Wt(n,o,i),n[Qt]=e,n[hn]=i}catch(m){Je(e,e.return,m)}}var Lr=!1,Lt=!1,Tf=!1,U1=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function y5(e,n){if(e=e.containerInfo,Zf=Hs,e=$m(e),vc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var f=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var x=0,D=-1,B=-1,X=0,J=0,ae=e,F=null;t:for(;;){for(var $;ae!==i||f!==0&&ae.nodeType!==3||(D=x+f),ae!==m||o!==0&&ae.nodeType!==3||(B=x+o),ae.nodeType===3&&(x+=ae.nodeValue.length),($=ae.firstChild)!==null;)F=ae,ae=$;for(;;){if(ae===e)break t;if(F===i&&++X===f&&(D=x),F===m&&++J===o&&(B=x),($=ae.nextSibling)!==null)break;ae=F,F=ae.parentNode}ae=$}i=D===-1||B===-1?null:{start:D,end:B}}else i=null}i=i||{start:0,end:0}}else i=null;for(Gf={focusedElem:e,selectionRange:i},Hs=!1,Pt=n;Pt!==null;)if(n=Pt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Pt=e;else for(;Pt!==null;){switch(n=Pt,m=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=n,f=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var pe=Zl(i.type,f);e=o.getSnapshotBeforeUpdate(pe,m),o.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Je(i,i.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)Kf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,Pt=e;break}Pt=n.return}}function I1(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Hr(e,i),o&4&&La(5,i);break;case 1:if(Hr(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(x){Je(i,i.return,x)}else{var f=Zl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Je(i,i.return,x)}}o&64&&j1(i),o&512&&Ba(i,i.return);break;case 3:if(Hr(e,i),o&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Ep(e,n)}catch(x){Je(i,i.return,x)}}break;case 27:n===null&&o&4&&H1(i);case 26:case 5:Hr(e,i),n===null&&o&4&&L1(i),o&512&&Ba(i,i.return);break;case 12:Hr(e,i);break;case 31:Hr(e,i),o&4&&Y1(e,i);break;case 13:Hr(e,i),o&4&&P1(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=D5.bind(null,i),G5(e,i))));break;case 22:if(o=i.memoizedState!==null||Lr,!o){n=n!==null&&n.memoizedState!==null||Lt,f=Lr;var m=Lt;Lr=o,(Lt=n)&&!m?Ur(e,i,(i.subtreeFlags&8772)!==0):Hr(e,i),Lr=f,Lt=m}break;case 30:break;default:Hr(e,i)}}function V1(e){var n=e.alternate;n!==null&&(e.alternate=null,V1(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ec(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var vt=null,pn=!1;function Br(e,n,i){for(i=i.child;i!==null;)q1(e,n,i),i=i.sibling}function q1(e,n,i){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(pt,i)}catch{}switch(i.tag){case 26:Lt||dr(i,n),Br(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Lt||dr(i,n);var o=vt,f=pn;hl(i.type)&&(vt=i.stateNode,pn=!1),Br(e,n,i),Za(i.stateNode),vt=o,pn=f;break;case 5:Lt||dr(i,n);case 6:if(o=vt,f=pn,vt=null,Br(e,n,i),vt=o,pn=f,vt!==null)if(pn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(i.stateNode)}catch(m){Je(i,n,m)}else try{vt.removeChild(i.stateNode)}catch(m){Je(i,n,m)}break;case 18:vt!==null&&(pn?(e=vt,jg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Vi(e)):jg(vt,i.stateNode));break;case 4:o=vt,f=pn,vt=i.stateNode.containerInfo,pn=!0,Br(e,n,i),vt=o,pn=f;break;case 0:case 11:case 14:case 15:al(2,i,n),Lt||al(4,i,n),Br(e,n,i);break;case 1:Lt||(dr(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&z1(i,n,o)),Br(e,n,i);break;case 21:Br(e,n,i);break;case 22:Lt=(o=Lt)||i.memoizedState!==null,Br(e,n,i),Lt=o;break;default:Br(e,n,i)}}function Y1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vi(e)}catch(i){Je(n,n.return,i)}}}function P1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vi(e)}catch(i){Je(n,n.return,i)}}function b5(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new U1),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new U1),n;default:throw Error(a(435,e.tag))}}function ys(e,n){var i=b5(e);n.forEach(function(o){if(!i.has(o)){i.add(o);var f=N5.bind(null,e,o);o.then(f,f)}})}function gn(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var f=i[o],m=e,x=n,D=x;e:for(;D!==null;){switch(D.tag){case 27:if(hl(D.type)){vt=D.stateNode,pn=!1;break e}break;case 5:vt=D.stateNode,pn=!1;break e;case 3:case 4:vt=D.stateNode.containerInfo,pn=!0;break e}D=D.return}if(vt===null)throw Error(a(160));q1(m,x,f),vt=null,pn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)X1(n,e),n=n.sibling}var er=null;function X1(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gn(n,e),vn(e),o&4&&(al(3,e,e.return),La(3,e),al(5,e,e.return));break;case 1:gn(n,e),vn(e),o&512&&(Lt||i===null||dr(i,i.return)),o&64&&Lr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var f=er;if(gn(n,e),vn(e),o&512&&(Lt||i===null||dr(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":m=f.getElementsByTagName("title")[0],(!m||m[ca]||m[Qt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(o),f.head.insertBefore(m,f.querySelector("head > title"))),Wt(m,o,i),m[Qt]=e,Yt(m),o=m;break e;case"link":var x=Xg("link","href",f).get(o+(i.href||""));if(x){for(var D=0;D<x.length;D++)if(m=x[D],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(D,1);break t}}m=f.createElement(o),Wt(m,o,i),f.head.appendChild(m);break;case"meta":if(x=Xg("meta","content",f).get(o+(i.content||""))){for(D=0;D<x.length;D++)if(m=x[D],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(D,1);break t}}m=f.createElement(o),Wt(m,o,i),f.head.appendChild(m);break;default:throw Error(a(468,o))}m[Qt]=e,Yt(m),o=m}e.stateNode=o}else Zg(f,e.type,e.stateNode);else e.stateNode=Pg(f,o,e.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?Zg(f,e.type,e.stateNode):Pg(f,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Cf(e,e.memoizedProps,i.memoizedProps)}break;case 27:gn(n,e),vn(e),o&512&&(Lt||i===null||dr(i,i.return)),i!==null&&o&4&&Cf(e,e.memoizedProps,i.memoizedProps);break;case 5:if(gn(n,e),vn(e),o&512&&(Lt||i===null||dr(i,i.return)),e.flags&32){f=e.stateNode;try{ci(f,"")}catch(pe){Je(e,e.return,pe)}}o&4&&e.stateNode!=null&&(f=e.memoizedProps,Cf(e,f,i!==null?i.memoizedProps:f)),o&1024&&(Tf=!0);break;case 6:if(gn(n,e),vn(e),o&4){if(e.stateNode===null)throw Error(a(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(pe){Je(e,e.return,pe)}}break;case 3:if(js=null,f=er,er=Ms(n.containerInfo),gn(n,e),er=f,vn(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Vi(n.containerInfo)}catch(pe){Je(e,e.return,pe)}Tf&&(Tf=!1,Z1(e));break;case 4:o=er,er=Ms(e.stateNode.containerInfo),gn(n,e),vn(e),er=o;break;case 12:gn(n,e),vn(e);break;case 31:gn(n,e),vn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,ys(e,o)));break;case 13:gn(n,e),vn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xs=ut()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,ys(e,o)));break;case 22:f=e.memoizedState!==null;var B=i!==null&&i.memoizedState!==null,X=Lr,J=Lt;if(Lr=X||f,Lt=J||B,gn(n,e),Lt=J,Lr=X,vn(e),o&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||B||Lr||Lt||Gl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){B=i=n;try{if(m=B.stateNode,f)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{D=B.stateNode;var ae=B.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;D.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(pe){Je(B,B.return,pe)}}}else if(n.tag===6){if(i===null){B=n;try{B.stateNode.nodeValue=f?"":B.memoizedProps}catch(pe){Je(B,B.return,pe)}}}else if(n.tag===18){if(i===null){B=n;try{var $=B.stateNode;f?zg($,!0):zg(B.stateNode,!1)}catch(pe){Je(B,B.return,pe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,ys(e,i))));break;case 19:gn(n,e),vn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,ys(e,o)));break;case 30:break;case 21:break;default:gn(n,e),vn(e)}}function vn(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if(B1(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,m=wf(e);vs(e,m,f);break;case 5:var x=i.stateNode;i.flags&32&&(ci(x,""),i.flags&=-33);var D=wf(e);vs(e,D,x);break;case 3:case 4:var B=i.stateNode.containerInfo,X=wf(e);Ef(e,X,B);break;default:throw Error(a(161))}}catch(J){Je(e,e.return,J)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Z1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Z1(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Hr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)I1(e,n.alternate,n),n=n.sibling}function Gl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:al(4,n,n.return),Gl(n);break;case 1:dr(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&z1(n,n.return,i),Gl(n);break;case 27:Za(n.stateNode);case 26:case 5:dr(n,n.return),Gl(n);break;case 22:n.memoizedState===null&&Gl(n);break;case 30:Gl(n);break;default:Gl(n)}e=e.sibling}}function Ur(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,f=e,m=n,x=m.flags;switch(m.tag){case 0:case 11:case 15:Ur(f,m,i),La(4,m);break;case 1:if(Ur(f,m,i),o=m,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(X){Je(o,o.return,X)}if(o=m,f=o.updateQueue,f!==null){var D=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)wp(B[f],D)}catch(X){Je(o,o.return,X)}}i&&x&64&&j1(m),Ba(m,m.return);break;case 27:H1(m);case 26:case 5:Ur(f,m,i),i&&o===null&&x&4&&L1(m),Ba(m,m.return);break;case 12:Ur(f,m,i);break;case 31:Ur(f,m,i),i&&x&4&&Y1(f,m);break;case 13:Ur(f,m,i),i&&x&4&&P1(f,m);break;case 22:m.memoizedState===null&&Ur(f,m,i),Ba(m,m.return);break;case 30:break;default:Ur(f,m,i)}n=n.sibling}}function Af(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&wa(i))}function Df(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&wa(e))}function tr(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)G1(e,n,i,o),n=n.sibling}function G1(e,n,i,o){var f=n.flags;switch(n.tag){case 0:case 11:case 15:tr(e,n,i,o),f&2048&&La(9,n);break;case 1:tr(e,n,i,o);break;case 3:tr(e,n,i,o),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&wa(e)));break;case 12:if(f&2048){tr(e,n,i,o),e=n.stateNode;try{var m=n.memoizedProps,x=m.id,D=m.onPostCommit;typeof D=="function"&&D(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(B){Je(n,n.return,B)}}else tr(e,n,i,o);break;case 31:tr(e,n,i,o);break;case 13:tr(e,n,i,o);break;case 23:break;case 22:m=n.stateNode,x=n.alternate,n.memoizedState!==null?m._visibility&2?tr(e,n,i,o):Ha(e,n):m._visibility&2?tr(e,n,i,o):(m._visibility|=2,Ri(e,n,i,o,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Af(x,n);break;case 24:tr(e,n,i,o),f&2048&&Df(n.alternate,n);break;default:tr(e,n,i,o)}}function Ri(e,n,i,o,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,x=n,D=i,B=o,X=x.flags;switch(x.tag){case 0:case 11:case 15:Ri(m,x,D,B,f),La(8,x);break;case 23:break;case 22:var J=x.stateNode;x.memoizedState!==null?J._visibility&2?Ri(m,x,D,B,f):Ha(m,x):(J._visibility|=2,Ri(m,x,D,B,f)),f&&X&2048&&Af(x.alternate,x);break;case 24:Ri(m,x,D,B,f),f&&X&2048&&Df(x.alternate,x);break;default:Ri(m,x,D,B,f)}n=n.sibling}}function Ha(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,f=o.flags;switch(o.tag){case 22:Ha(i,o),f&2048&&Af(o.alternate,o);break;case 24:Ha(i,o),f&2048&&Df(o.alternate,o);break;default:Ha(i,o)}n=n.sibling}}var Ua=8192;function ki(e,n,i){if(e.subtreeFlags&Ua)for(e=e.child;e!==null;)F1(e,n,i),e=e.sibling}function F1(e,n,i){switch(e.tag){case 26:ki(e,n,i),e.flags&Ua&&e.memoizedState!==null&&i3(i,er,e.memoizedState,e.memoizedProps);break;case 5:ki(e,n,i);break;case 3:case 4:var o=er;er=Ms(e.stateNode.containerInfo),ki(e,n,i),er=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Ua,Ua=16777216,ki(e,n,i),Ua=o):ki(e,n,i));break;default:ki(e,n,i)}}function Q1(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Ia(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Pt=o,$1(o,e)}Q1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)K1(e),e=e.sibling}function K1(e){switch(e.tag){case 0:case 11:case 15:Ia(e),e.flags&2048&&al(9,e,e.return);break;case 3:Ia(e);break;case 12:Ia(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,bs(e)):Ia(e);break;default:Ia(e)}}function bs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Pt=o,$1(o,e)}Q1(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:al(8,n,n.return),bs(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,bs(n));break;default:bs(n)}e=e.sibling}}function $1(e,n){for(;Pt!==null;){var i=Pt;switch(i.tag){case 0:case 11:case 15:al(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:wa(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Pt=o;else e:for(i=e;Pt!==null;){o=Pt;var f=o.sibling,m=o.return;if(V1(o),o===i){Pt=null;break e}if(f!==null){f.return=m,Pt=f;break e}Pt=m}}}var x5={getCacheForType:function(e){var n=$t(_t),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return $t(_t).controller.signal}},S5=typeof WeakMap=="function"?WeakMap:Map,Ze=0,lt=null,je=null,Le=0,$e=0,kn=null,ol=!1,Mi=!1,Nf=!1,Ir=0,Tt=0,sl=0,Fl=0,Of=0,Mn=0,_i=0,Va=null,yn=null,Rf=!1,xs=0,J1=0,Ss=1/0,Cs=null,ul=null,It=0,cl=null,ji=null,Vr=0,kf=0,Mf=null,W1=null,qa=0,_f=null;function _n(){return(Ze&2)!==0&&Le!==0?Le&-Le:U.T!==null?Uf():sn()}function eg(){if(Mn===0)if((Le&536870912)===0||Ue){var e=on;on<<=1,(on&3932160)===0&&(on=262144),Mn=e}else Mn=536870912;return e=On.current,e!==null&&(e.flags|=32),Mn}function bn(e,n,i){(e===lt&&($e===2||$e===9)||e.cancelPendingCommit!==null)&&(zi(e,0),fl(e,Le,Mn,!1)),rt(e,i),((Ze&2)===0||e!==lt)&&(e===lt&&((Ze&2)===0&&(Fl|=i),Tt===4&&fl(e,Le,Mn,!1)),hr(e))}function tg(e,n,i){if((Ze&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&e.expiredLanes)===0||Ft(e,n),f=o?E5(e,n):zf(e,n,!0),m=o;do{if(f===0){Mi&&!o&&fl(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!C5(i)){f=zf(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var D=e;f=Va;var B=D.current.memoizedState.isDehydrated;if(B&&(zi(D,x).flags|=256),x=zf(D,x,!1),x!==2){if(Nf&&!B){D.errorRecoveryDisabledLanes|=m,Fl|=m,f=4;break e}m=yn,yn=f,m!==null&&(yn===null?yn=m:yn.push.apply(yn,m))}f=x}if(m=!1,f!==2)continue}}if(f===1){zi(e,0),fl(e,n,0,!0);break}e:{switch(o=e,m=f,m){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:fl(o,n,Mn,!ol);break e;case 2:yn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=xs+300-ut(),10<f)){if(fl(o,n,Mn,!ol),Dt(o,0,!0)!==0)break e;Vr=n,o.timeoutHandle=Mg(ng.bind(null,o,i,yn,Cs,Rf,n,Mn,Fl,_i,ol,m,"Throttled",-0,0),f);break e}ng(o,i,yn,Cs,Rf,n,Mn,Fl,_i,ol,m,null,-0,0)}}break}while(!0);hr(e)}function ng(e,n,i,o,f,m,x,D,B,X,J,ae,F,$){if(e.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ar},F1(n,m,ae);var pe=(m&62914560)===m?xs-ut():(m&4194048)===m?J1-ut():0;if(pe=a3(ae,pe),pe!==null){Vr=m,e.cancelPendingCommit=pe(cg.bind(null,e,n,m,i,o,f,x,D,B,J,ae,null,F,$)),fl(e,m,x,!X);return}}cg(e,n,m,i,o,f,x,D,B)}function C5(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var f=i[o],m=f.getSnapshot;f=f.value;try{if(!Dn(m(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function fl(e,n,i,o){n&=~Of,n&=~Fl,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var f=n;0<f;){var m=31-qe(f),x=1<<m;o[m]=-1,f&=~x}i!==0&&Ke(e,i,n)}function ws(){return(Ze&6)===0?(Ya(0),!1):!0}function jf(){if(je!==null){if($e===0)var e=je.return;else e=je,Rr=Ul=null,Qc(e),Ti=null,Ta=0,e=je;for(;e!==null;)_1(e.alternate,e),e=e.return;je=null}}function zi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,q5(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Vr=0,jf(),lt=e,je=i=Nr(e.current,null),Le=n,$e=0,kn=null,ol=!1,Mi=Ft(e,n),Nf=!1,_i=Mn=Of=Fl=sl=Tt=0,yn=Va=null,Rf=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var f=31-qe(o),m=1<<f;n|=e[f],o&=~m}return Ir=n,Po(),i}function rg(e,n){ke=null,U.H=_a,n===Ei||n===Jo?(n=bp(),$e=3):n===Bc?(n=bp(),$e=4):$e=n===df?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,kn=n,je===null&&(Tt=1,ds(e,qn(n,e.current)))}function lg(){var e=On.current;return e===null?!0:(Le&4194048)===Le?Zn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Zn:!1}function ig(){var e=U.H;return U.H=_a,e===null?_a:e}function ag(){var e=U.A;return U.A=x5,e}function Es(){Tt=4,ol||(Le&4194048)!==Le&&On.current!==null||(Mi=!0),(sl&134217727)===0&&(Fl&134217727)===0||lt===null||fl(lt,Le,Mn,!1)}function zf(e,n,i){var o=Ze;Ze|=2;var f=ig(),m=ag();(lt!==e||Le!==n)&&(Cs=null,zi(e,n)),n=!1;var x=Tt;e:do try{if($e!==0&&je!==null){var D=je,B=kn;switch($e){case 8:jf(),x=6;break e;case 3:case 2:case 9:case 6:On.current===null&&(n=!0);var X=$e;if($e=0,kn=null,Li(e,D,B,X),i&&Mi){x=0;break e}break;default:X=$e,$e=0,kn=null,Li(e,D,B,X)}}w5(),x=Tt;break}catch(J){rg(e,J)}while(!0);return n&&e.shellSuspendCounter++,Rr=Ul=null,Ze=o,U.H=f,U.A=m,je===null&&(lt=null,Le=0,Po()),x}function w5(){for(;je!==null;)og(je)}function E5(e,n){var i=Ze;Ze|=2;var o=ig(),f=ag();lt!==e||Le!==n?(Cs=null,Ss=ut()+500,zi(e,n)):Mi=Ft(e,n);e:do try{if($e!==0&&je!==null){n=je;var m=kn;t:switch($e){case 1:$e=0,kn=null,Li(e,n,m,1);break;case 2:case 9:if(vp(m)){$e=0,kn=null,sg(n);break}n=function(){$e!==2&&$e!==9||lt!==e||($e=7),hr(e)},m.then(n,n);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:vp(m)?($e=0,kn=null,sg(n)):($e=0,kn=null,Li(e,n,m,7));break;case 5:var x=null;switch(je.tag){case 26:x=je.memoizedState;case 5:case 27:var D=je;if(x?Gg(x):D.stateNode.complete){$e=0,kn=null;var B=D.sibling;if(B!==null)je=B;else{var X=D.return;X!==null?(je=X,Ts(X)):je=null}break t}}$e=0,kn=null,Li(e,n,m,5);break;case 6:$e=0,kn=null,Li(e,n,m,6);break;case 8:jf(),Tt=6;break e;default:throw Error(a(462))}}T5();break}catch(J){rg(e,J)}while(!0);return Rr=Ul=null,U.H=o,U.A=f,Ze=i,je!==null?0:(lt=null,Le=0,Po(),Tt)}function T5(){for(;je!==null&&!Fe();)og(je)}function og(e){var n=k1(e.alternate,e,Ir);e.memoizedProps=e.pendingProps,n===null?Ts(e):je=n}function sg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=T1(i,n,n.pendingProps,n.type,void 0,Le);break;case 11:n=T1(i,n,n.pendingProps,n.type.render,n.ref,Le);break;case 5:Qc(n);default:_1(i,n),n=je=ap(n,Ir),n=k1(i,n,Ir)}e.memoizedProps=e.pendingProps,n===null?Ts(e):je=n}function Li(e,n,i,o){Rr=Ul=null,Qc(n),Ti=null,Ta=0;var f=n.return;try{if(h5(e,f,n,i,Le)){Tt=1,ds(e,qn(i,e.current)),je=null;return}}catch(m){if(f!==null)throw je=f,m;Tt=1,ds(e,qn(i,e.current)),je=null;return}n.flags&32768?(Ue||o===1?e=!0:Mi||(Le&536870912)!==0?e=!1:(ol=e=!0,(o===2||o===9||o===3||o===6)&&(o=On.current,o!==null&&o.tag===13&&(o.flags|=16384))),ug(n,e)):Ts(n)}function Ts(e){var n=e;do{if((n.flags&32768)!==0){ug(n,ol);return}e=n.return;var i=g5(n.alternate,n,Ir);if(i!==null){je=i;return}if(n=n.sibling,n!==null){je=n;return}je=n=e}while(n!==null);Tt===0&&(Tt=5)}function ug(e,n){do{var i=v5(e.alternate,e);if(i!==null){i.flags&=32767,je=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){je=e;return}je=e=i}while(e!==null);Tt=6,je=null}function cg(e,n,i,o,f,m,x,D,B){e.cancelPendingCommit=null;do As();while(It!==0);if((Ze&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(m=n.lanes|n.childLanes,m|=Cc,ft(e,i,m,x,D,B),e===lt&&(je=lt=null,Le=0),ji=n,cl=e,Vr=i,kf=m,Mf=f,W1=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O5(xe,function(){return pg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,f=G.p,G.p=2,x=Ze,Ze|=4;try{y5(e,n,i)}finally{Ze=x,G.p=f,U.T=o}}It=1,fg(),dg(),hg()}}function fg(){if(It===1){It=0;var e=cl,n=ji,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var o=G.p;G.p=2;var f=Ze;Ze|=4;try{X1(n,e);var m=Gf,x=$m(e.containerInfo),D=m.focusedElem,B=m.selectionRange;if(x!==D&&D&&D.ownerDocument&&Km(D.ownerDocument.documentElement,D)){if(B!==null&&vc(D)){var X=B.start,J=B.end;if(J===void 0&&(J=X),"selectionStart"in D)D.selectionStart=X,D.selectionEnd=Math.min(J,D.value.length);else{var ae=D.ownerDocument||document,F=ae&&ae.defaultView||window;if(F.getSelection){var $=F.getSelection(),pe=D.textContent.length,Ee=Math.min(B.start,pe),tt=B.end===void 0?Ee:Math.min(B.end,pe);!$.extend&&Ee>tt&&(x=tt,tt=Ee,Ee=x);var q=Qm(D,Ee),V=Qm(D,tt);if(q&&V&&($.rangeCount!==1||$.anchorNode!==q.node||$.anchorOffset!==q.offset||$.focusNode!==V.node||$.focusOffset!==V.offset)){var P=ae.createRange();P.setStart(q.node,q.offset),$.removeAllRanges(),Ee>tt?($.addRange(P),$.extend(V.node,V.offset)):(P.setEnd(V.node,V.offset),$.addRange(P))}}}}for(ae=[],$=D;$=$.parentNode;)$.nodeType===1&&ae.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ae.length;D++){var re=ae[D];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Hs=!!Zf,Gf=Zf=null}finally{Ze=f,G.p=o,U.T=i}}e.current=n,It=2}}function dg(){if(It===2){It=0;var e=cl,n=ji,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var o=G.p;G.p=2;var f=Ze;Ze|=4;try{I1(e,n.alternate,n)}finally{Ze=f,G.p=o,U.T=i}}It=3}}function hg(){if(It===4||It===3){It=0,Er();var e=cl,n=ji,i=Vr,o=W1;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?It=5:(It=0,ji=cl=null,mg(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(ul=null),Mt(i),n=n.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(pt,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=U.T,f=G.p,G.p=2,U.T=null;try{for(var m=e.onRecoverableError,x=0;x<o.length;x++){var D=o[x];m(D.value,{componentStack:D.stack})}}finally{U.T=n,G.p=f}}(Vr&3)!==0&&As(),hr(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===_f?qa++:(qa=0,_f=e):qa=0,Ya(0)}}function mg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,wa(n)))}function As(){return fg(),dg(),hg(),pg()}function pg(){if(It!==5)return!1;var e=cl,n=kf;kf=0;var i=Mt(Vr),o=U.T,f=G.p;try{G.p=32>i?32:i,U.T=null,i=Mf,Mf=null;var m=cl,x=Vr;if(It=0,ji=cl=null,Vr=0,(Ze&6)!==0)throw Error(a(331));var D=Ze;if(Ze|=4,K1(m.current),G1(m,m.current,x,i),Ze=D,Ya(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(pt,m)}catch{}return!0}finally{G.p=f,U.T=o,mg(e,n)}}function gg(e,n,i){n=qn(i,n),n=ff(e.stateNode,n,2),e=rl(e,n,2),e!==null&&(rt(e,2),hr(e))}function Je(e,n,i){if(e.tag===3)gg(e,e,i);else for(;n!==null;){if(n.tag===3){gg(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ul===null||!ul.has(o))){e=qn(i,e),i=v1(2),o=rl(n,i,2),o!==null&&(y1(i,o,n,e),rt(o,2),hr(o));break}}n=n.return}}function Lf(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new S5;var f=new Set;o.set(n,f)}else f=o.get(n),f===void 0&&(f=new Set,o.set(n,f));f.has(i)||(Nf=!0,f.add(i),e=A5.bind(null,e,n,i),n.then(e,e))}function A5(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,lt===e&&(Le&i)===i&&(Tt===4||Tt===3&&(Le&62914560)===Le&&300>ut()-xs?(Ze&2)===0&&zi(e,0):Of|=i,_i===Le&&(_i=0)),hr(e)}function vg(e,n){n===0&&(n=He()),e=Ll(e,n),e!==null&&(rt(e,n),hr(e))}function D5(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),vg(e,i)}function N5(e,n){var i=0;switch(e.tag){case 31:case 13:var o=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),vg(e,i)}function O5(e,n){return Ut(e,n)}var Ds=null,Bi=null,Bf=!1,Ns=!1,Hf=!1,dl=0;function hr(e){e!==Bi&&e.next===null&&(Bi===null?Ds=Bi=e:Bi=Bi.next=e),Ns=!0,Bf||(Bf=!0,k5())}function Ya(e,n){if(!Hf&&Ns){Hf=!0;do for(var i=!1,o=Ds;o!==null;){if(e!==0){var f=o.pendingLanes;if(f===0)var m=0;else{var x=o.suspendedLanes,D=o.pingedLanes;m=(1<<31-qe(42|e)+1)-1,m&=f&~(x&~D),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Sg(o,m))}else m=Le,m=Dt(o,o===lt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||Ft(o,m)||(i=!0,Sg(o,m));o=o.next}while(i);Hf=!1}}function R5(){yg()}function yg(){Ns=Bf=!1;var e=0;dl!==0&&V5()&&(e=dl);for(var n=ut(),i=null,o=Ds;o!==null;){var f=o.next,m=bg(o,n);m===0?(o.next=null,i===null?Ds=f:i.next=f,f===null&&(Bi=i)):(i=o,(e!==0||(m&3)!==0)&&(Ns=!0)),o=f}It!==0&&It!==5||Ya(e),dl!==0&&(dl=0)}function bg(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var x=31-qe(m),D=1<<x,B=f[x];B===-1?((D&i)===0||(D&o)!==0)&&(f[x]=be(D,n)):B<=n&&(e.expiredLanes|=D),m&=~D}if(n=lt,i=Le,i=Dt(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&($e===2||$e===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&dn(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Ft(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&dn(o),Mt(i)){case 2:case 8:i=ue;break;case 32:i=xe;break;case 268435456:i=_e;break;default:i=xe}return o=xg.bind(null,e),i=Ut(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&dn(o),e.callbackPriority=2,e.callbackNode=null,2}function xg(e,n){if(It!==0&&It!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(As()&&e.callbackNode!==i)return null;var o=Le;return o=Dt(e,e===lt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(tg(e,o,n),bg(e,ut()),e.callbackNode!=null&&e.callbackNode===i?xg.bind(null,e):null)}function Sg(e,n){if(As())return null;tg(e,n,!0)}function k5(){Y5(function(){(Ze&6)!==0?Ut(ee,R5):yg()})}function Uf(){if(dl===0){var e=Ci;e===0&&(e=ur,ur<<=1,(ur&261888)===0&&(ur=256)),dl=e}return dl}function Cg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lo(""+e)}function wg(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function M5(e,n,i,o,f){if(n==="submit"&&i&&i.stateNode===f){var m=Cg((f[hn]||null).action),x=o.submitter;x&&(n=(n=x[hn]||null)?Cg(n.formAction):x.getAttribute("formAction"),n!==null&&(m=n,x=null));var D=new Io("action","action",null,o,f);e.push({event:D,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(dl!==0){var B=x?wg(f,x):new FormData(f);lf(i,{pending:!0,data:B,method:f.method,action:m},null,B)}}else typeof m=="function"&&(D.preventDefault(),B=x?wg(f,x):new FormData(f),lf(i,{pending:!0,data:B,method:f.method,action:m},m,B))},currentTarget:f}]})}}for(var If=0;If<Sc.length;If++){var Vf=Sc[If],_5=Vf.toLowerCase(),j5=Vf[0].toUpperCase()+Vf.slice(1);Wn(_5,"on"+j5)}Wn(ep,"onAnimationEnd"),Wn(tp,"onAnimationIteration"),Wn(np,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(K2,"onTransitionRun"),Wn($2,"onTransitionStart"),Wn(J2,"onTransitionCancel"),Wn(rp,"onTransitionEnd"),si("onMouseEnter",["mouseout","mouseover"]),si("onMouseLeave",["mouseout","mouseover"]),si("onPointerEnter",["pointerout","pointerover"]),si("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),z5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function Eg(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],f=o.event;o=o.listeners;e:{var m=void 0;if(n)for(var x=o.length-1;0<=x;x--){var D=o[x],B=D.instance,X=D.currentTarget;if(D=D.listener,B!==m&&f.isPropagationStopped())break e;m=D,f.currentTarget=X;try{m(f)}catch(J){Yo(J)}f.currentTarget=null,m=B}else for(x=0;x<o.length;x++){if(D=o[x],B=D.instance,X=D.currentTarget,D=D.listener,B!==m&&f.isPropagationStopped())break e;m=D,f.currentTarget=X;try{m(f)}catch(J){Yo(J)}f.currentTarget=null,m=B}}}}function ze(e,n){var i=n[Wu];i===void 0&&(i=n[Wu]=new Set);var o=e+"__bubble";i.has(o)||(Tg(n,e,2,!1),i.add(o))}function qf(e,n,i){var o=0;n&&(o|=4),Tg(i,e,o,n)}var Os="_reactListening"+Math.random().toString(36).slice(2);function Yf(e){if(!e[Os]){e[Os]=!0,ym.forEach(function(i){i!=="selectionchange"&&(z5.has(i)||qf(i,!1,e),qf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Os]||(n[Os]=!0,qf("selectionchange",!1,n))}}function Tg(e,n,i,o){switch(e0(n)){case 2:var f=u3;break;case 8:f=c3;break;default:f=ld}i=f.bind(null,n,i,e),f=void 0,!sc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),o?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Pf(e,n,i,o,f){var m=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var D=o.stateNode.containerInfo;if(D===f)break;if(x===4)for(x=o.return;x!==null;){var B=x.tag;if((B===3||B===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;D!==null;){if(x=ii(D),x===null)return;if(B=x.tag,B===5||B===6||B===26||B===27){o=m=x;continue e}D=D.parentNode}}o=o.return}Rm(function(){var X=m,J=ac(i),ae=[];e:{var F=lp.get(e);if(F!==void 0){var $=Io,pe=e;switch(e){case"keypress":if(Ho(i)===0)break e;case"keydown":case"keyup":$=N2;break;case"focusin":pe="focus",$=dc;break;case"focusout":pe="blur",$=dc;break;case"beforeblur":case"afterblur":$=dc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=g2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=k2;break;case ep:case tp:case np:$=b2;break;case rp:$=_2;break;case"scroll":case"scrollend":$=m2;break;case"wheel":$=z2;break;case"copy":case"cut":case"paste":$=S2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=zm;break;case"toggle":case"beforetoggle":$=B2}var Ee=(n&4)!==0,tt=!Ee&&(e==="scroll"||e==="scrollend"),q=Ee?F!==null?F+"Capture":null:F;Ee=[];for(var V=X,P;V!==null;){var re=V;if(P=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||P===null||q===null||(re=da(V,q),re!=null&&Ee.push(Xa(V,re,P))),tt)break;V=V.return}0<Ee.length&&(F=new $(F,pe,null,i,J),ae.push({event:F,listeners:Ee}))}}if((n&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",F&&i!==ic&&(pe=i.relatedTarget||i.fromElement)&&(ii(pe)||pe[li]))break e;if(($||F)&&(F=J.window===J?J:(F=J.ownerDocument)?F.defaultView||F.parentWindow:window,$?(pe=i.relatedTarget||i.toElement,$=X,pe=pe?ii(pe):null,pe!==null&&(tt=u(pe),Ee=pe.tag,pe!==tt||Ee!==5&&Ee!==27&&Ee!==6)&&(pe=null)):($=null,pe=X),$!==pe)){if(Ee=_m,re="onMouseLeave",q="onMouseEnter",V="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=zm,re="onPointerLeave",q="onPointerEnter",V="pointer"),tt=$==null?F:fa($),P=pe==null?F:fa(pe),F=new Ee(re,V+"leave",$,i,J),F.target=tt,F.relatedTarget=P,re=null,ii(J)===X&&(Ee=new Ee(q,V+"enter",pe,i,J),Ee.target=P,Ee.relatedTarget=tt,re=Ee),tt=re,$&&pe)t:{for(Ee=L5,q=$,V=pe,P=0,re=q;re;re=Ee(re))P++;re=0;for(var Se=V;Se;Se=Ee(Se))re++;for(;0<P-re;)q=Ee(q),P--;for(;0<re-P;)V=Ee(V),re--;for(;P--;){if(q===V||V!==null&&q===V.alternate){Ee=q;break t}q=Ee(q),V=Ee(V)}Ee=null}else Ee=null;$!==null&&Ag(ae,F,$,Ee,!1),pe!==null&&tt!==null&&Ag(ae,tt,pe,Ee,!0)}}e:{if(F=X?fa(X):window,$=F.nodeName&&F.nodeName.toLowerCase(),$==="select"||$==="input"&&F.type==="file")var Ye=Ym;else if(Vm(F))if(Pm)Ye=G2;else{Ye=X2;var ye=P2}else $=F.nodeName,!$||$.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?X&&lc(X.elementType)&&(Ye=Ym):Ye=Z2;if(Ye&&(Ye=Ye(e,X))){qm(ae,Ye,i,J);break e}ye&&ye(e,F,X),e==="focusout"&&X&&F.type==="number"&&X.memoizedProps.value!=null&&rc(F,"number",F.value)}switch(ye=X?fa(X):window,e){case"focusin":(Vm(ye)||ye.contentEditable==="true")&&(mi=ye,yc=X,xa=null);break;case"focusout":xa=yc=mi=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,Jm(ae,i,J);break;case"selectionchange":if(Q2)break;case"keydown":case"keyup":Jm(ae,i,J)}var Me;if(mc)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else hi?Um(e,i)&&(Be="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Be="onCompositionStart");Be&&(Lm&&i.locale!=="ko"&&(hi||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&hi&&(Me=km()):(Kr=J,uc="value"in Kr?Kr.value:Kr.textContent,hi=!0)),ye=Rs(X,Be),0<ye.length&&(Be=new jm(Be,e,null,i,J),ae.push({event:Be,listeners:ye}),Me?Be.data=Me:(Me=Im(i),Me!==null&&(Be.data=Me)))),(Me=U2?I2(e,i):V2(e,i))&&(Be=Rs(X,"onBeforeInput"),0<Be.length&&(ye=new jm("onBeforeInput","beforeinput",null,i,J),ae.push({event:ye,listeners:Be}),ye.data=Me)),M5(ae,e,X,i,J)}Eg(ae,n)})}function Xa(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Rs(e,n){for(var i=n+"Capture",o=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=da(e,i),f!=null&&o.unshift(Xa(e,f,m)),f=da(e,n),f!=null&&o.push(Xa(e,f,m))),e.tag===3)return o;e=e.return}return[]}function L5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ag(e,n,i,o,f){for(var m=n._reactName,x=[];i!==null&&i!==o;){var D=i,B=D.alternate,X=D.stateNode;if(D=D.tag,B!==null&&B===o)break;D!==5&&D!==26&&D!==27||X===null||(B=X,f?(X=da(i,m),X!=null&&x.unshift(Xa(i,X,B))):f||(X=da(i,m),X!=null&&x.push(Xa(i,X,B)))),i=i.return}x.length!==0&&e.push({event:n,listeners:x})}var B5=/\r\n?/g,H5=/\u0000|\uFFFD/g;function Dg(e){return(typeof e=="string"?e:""+e).replace(B5,`
49
+ `).replace(H5,"")}function Ng(e,n){return n=Dg(n),Dg(e)===n}function et(e,n,i,o,f,m){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||ci(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&ci(e,""+o);break;case"className":jo(e,"class",o);break;case"tabIndex":jo(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":jo(e,i,o);break;case"style":Nm(e,o,m);break;case"data":if(n!=="object"){jo(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Lo(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"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 m=="function"&&(i==="formAction"?(n!=="input"&&et(e,n,"name",f.name,f,null),et(e,n,"formEncType",f.formEncType,f,null),et(e,n,"formMethod",f.formMethod,f,null),et(e,n,"formTarget",f.formTarget,f,null)):(et(e,n,"encType",f.encType,f,null),et(e,n,"method",f.method,f,null),et(e,n,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Lo(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=Ar);break;case"onScroll":o!=null&&ze("scroll",e);break;case"onScrollEnd":o!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=Lo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":ze("beforetoggle",e),ze("toggle",e),_o(e,"popover",o);break;case"xlinkActuate":Tr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Tr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Tr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Tr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Tr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Tr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Tr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Tr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Tr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":_o(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=d2.get(i)||i,_o(e,i,o))}}function Xf(e,n,i,o,f,m){switch(i){case"style":Nm(e,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof o=="string"?ci(e,o):(typeof o=="number"||typeof o=="bigint")&&ci(e,""+o);break;case"onScroll":o!=null&&ze("scroll",e);break;case"onScrollEnd":o!=null&&ze("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Ar);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bm.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),m=e[hn]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof o=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,f);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):_o(e,i,o)}}}function Wt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var o=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var x=i[m];if(x!=null)switch(m){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:et(e,n,m,x,i,null)}}f&&et(e,n,"srcSet",i.srcSet,i,null),o&&et(e,n,"src",i.src,i,null);return;case"input":ze("invalid",e);var D=m=x=f=null,B=null,X=null;for(o in i)if(i.hasOwnProperty(o)){var J=i[o];if(J!=null)switch(o){case"name":f=J;break;case"type":x=J;break;case"checked":B=J;break;case"defaultChecked":X=J;break;case"value":m=J;break;case"defaultValue":D=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,n));break;default:et(e,n,o,J,i,null)}}Em(e,m,D,B,X,x,f,!1);return;case"select":ze("invalid",e),o=x=m=null;for(f in i)if(i.hasOwnProperty(f)&&(D=i[f],D!=null))switch(f){case"value":m=D;break;case"defaultValue":x=D;break;case"multiple":o=D;default:et(e,n,f,D,i,null)}n=m,i=x,e.multiple=!!o,n!=null?ui(e,!!o,n,!1):i!=null&&ui(e,!!o,i,!0);return;case"textarea":ze("invalid",e),m=f=o=null;for(x in i)if(i.hasOwnProperty(x)&&(D=i[x],D!=null))switch(x){case"value":o=D;break;case"defaultValue":f=D;break;case"children":m=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(a(91));break;default:et(e,n,x,D,i,null)}Am(e,o,f,m);return;case"option":for(B in i)if(i.hasOwnProperty(B)&&(o=i[B],o!=null))switch(B){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:et(e,n,B,o,i,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(o=0;o<Pa.length;o++)ze(Pa[o],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in i)if(i.hasOwnProperty(X)&&(o=i[X],o!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:et(e,n,X,o,i,null)}return;default:if(lc(n)){for(J in i)i.hasOwnProperty(J)&&(o=i[J],o!==void 0&&Xf(e,n,J,o,i,void 0));return}}for(D in i)i.hasOwnProperty(D)&&(o=i[D],o!=null&&et(e,n,D,o,i,null))}function U5(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,x=null,D=null,B=null,X=null,J=null;for($ in i){var ae=i[$];if(i.hasOwnProperty($)&&ae!=null)switch($){case"checked":break;case"value":break;case"defaultValue":B=ae;default:o.hasOwnProperty($)||et(e,n,$,null,o,ae)}}for(var F in o){var $=o[F];if(ae=i[F],o.hasOwnProperty(F)&&($!=null||ae!=null))switch(F){case"type":m=$;break;case"name":f=$;break;case"checked":X=$;break;case"defaultChecked":J=$;break;case"value":x=$;break;case"defaultValue":D=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,n));break;default:$!==ae&&et(e,n,F,$,o,ae)}}nc(e,x,D,B,X,J,m,f);return;case"select":$=x=D=F=null;for(m in i)if(B=i[m],i.hasOwnProperty(m)&&B!=null)switch(m){case"value":break;case"multiple":$=B;default:o.hasOwnProperty(m)||et(e,n,m,null,o,B)}for(f in o)if(m=o[f],B=i[f],o.hasOwnProperty(f)&&(m!=null||B!=null))switch(f){case"value":F=m;break;case"defaultValue":D=m;break;case"multiple":x=m;default:m!==B&&et(e,n,f,m,o,B)}n=D,i=x,o=$,F!=null?ui(e,!!i,F,!1):!!o!=!!i&&(n!=null?ui(e,!!i,n,!0):ui(e,!!i,i?[]:"",!1));return;case"textarea":$=F=null;for(D in i)if(f=i[D],i.hasOwnProperty(D)&&f!=null&&!o.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:et(e,n,D,null,o,f)}for(x in o)if(f=o[x],m=i[x],o.hasOwnProperty(x)&&(f!=null||m!=null))switch(x){case"value":F=f;break;case"defaultValue":$=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==m&&et(e,n,x,f,o,m)}Tm(e,F,$);return;case"option":for(var pe in i)if(F=i[pe],i.hasOwnProperty(pe)&&F!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:et(e,n,pe,null,o,F)}for(B in o)if(F=o[B],$=i[B],o.hasOwnProperty(B)&&F!==$&&(F!=null||$!=null))switch(B){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:et(e,n,B,F,o,$)}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 Ee in i)F=i[Ee],i.hasOwnProperty(Ee)&&F!=null&&!o.hasOwnProperty(Ee)&&et(e,n,Ee,null,o,F);for(X in o)if(F=o[X],$=i[X],o.hasOwnProperty(X)&&F!==$&&(F!=null||$!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:et(e,n,X,F,o,$)}return;default:if(lc(n)){for(var tt in i)F=i[tt],i.hasOwnProperty(tt)&&F!==void 0&&!o.hasOwnProperty(tt)&&Xf(e,n,tt,void 0,o,F);for(J in o)F=o[J],$=i[J],!o.hasOwnProperty(J)||F===$||F===void 0&&$===void 0||Xf(e,n,J,F,o,$);return}}for(var q in i)F=i[q],i.hasOwnProperty(q)&&F!=null&&!o.hasOwnProperty(q)&&et(e,n,q,null,o,F);for(ae in o)F=o[ae],$=i[ae],!o.hasOwnProperty(ae)||F===$||F==null&&$==null||et(e,n,ae,F,o,$)}function Og(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var f=i[o],m=f.transferSize,x=f.initiatorType,D=f.duration;if(m&&D&&Og(x)){for(x=0,D=f.responseEnd,o+=1;o<i.length;o++){var B=i[o],X=B.startTime;if(X>D)break;var J=B.transferSize,ae=B.initiatorType;J&&Og(ae)&&(B=B.responseEnd,x+=J*(B<D?1:(D-X)/(B-X)))}if(--o,n+=8*(m+x)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Zf=null,Gf=null;function ks(e){return e.nodeType===9?e:e.ownerDocument}function Rg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Ff(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Qf=null;function V5(){var e=window.event;return e&&e.type==="popstate"?e===Qf?!1:(Qf=e,!0):(Qf=null,!1)}var Mg=typeof setTimeout=="function"?setTimeout:void 0,q5=typeof clearTimeout=="function"?clearTimeout:void 0,_g=typeof Promise=="function"?Promise:void 0,Y5=typeof queueMicrotask=="function"?queueMicrotask:typeof _g<"u"?function(e){return _g.resolve(null).then(e).catch(P5)}:Mg;function P5(e){setTimeout(function(){throw e})}function hl(e){return e==="head"}function jg(e,n){var i=n,o=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(o===0){e.removeChild(f),Vi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")Za(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Za(i);for(var m=i.firstChild;m;){var x=m.nextSibling,D=m.nodeName;m[ca]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=x}}else i==="body"&&Za(e.ownerDocument.body);i=f}while(i);Vi(n)}function zg(e,n){var i=e;e=0;do{var o=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=o}while(i)}function Kf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Kf(i),ec(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function X5(e,n,i,o){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ca])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function Z5(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Gn(e.nextSibling),e===null))return null;return e}function Lg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gn(e.nextSibling),e===null))return null;return e}function $f(e){return e.data==="$?"||e.data==="$~"}function Jf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function G5(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Gn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Wf=null;function Bg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return Gn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Hg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Ug(e,n,i){switch(n=ks(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Za(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ec(e)}var Fn=new Map,Ig=new Set;function Ms(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qr=G.d;G.d={f:F5,r:Q5,D:K5,C:$5,L:J5,m:W5,X:t3,S:e3,M:n3};function F5(){var e=qr.f(),n=ws();return e||n}function Q5(e){var n=ai(e);n!==null&&n.tag===5&&n.type==="form"?r1(n):qr.r(e)}var Hi=typeof document>"u"?null:document;function Vg(e,n,i){var o=Hi;if(o&&typeof n=="string"&&n){var f=In(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Ig.has(f)||(Ig.add(f),e={rel:e,crossOrigin:i,href:n},o.querySelector(f)===null&&(n=o.createElement("link"),Wt(n,"link",e),Yt(n),o.head.appendChild(n)))}}function K5(e){qr.D(e),Vg("dns-prefetch",e,null)}function $5(e,n){qr.C(e,n),Vg("preconnect",e,n)}function J5(e,n,i){qr.L(e,n,i);var o=Hi;if(o&&e&&n){var f='link[rel="preload"][as="'+In(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+In(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+In(i.imageSizes)+'"]')):f+='[href="'+In(e)+'"]';var m=f;switch(n){case"style":m=Ui(e);break;case"script":m=Ii(e)}Fn.has(m)||(e=p({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),Fn.set(m,e),o.querySelector(f)!==null||n==="style"&&o.querySelector(Ga(m))||n==="script"&&o.querySelector(Fa(m))||(n=o.createElement("link"),Wt(n,"link",e),Yt(n),o.head.appendChild(n)))}}function W5(e,n){qr.m(e,n);var i=Hi;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+In(o)+'"][href="'+In(e)+'"]',m=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ii(e)}if(!Fn.has(m)&&(e=p({rel:"modulepreload",href:e},n),Fn.set(m,e),i.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Fa(m)))return}o=i.createElement("link"),Wt(o,"link",e),Yt(o),i.head.appendChild(o)}}}function e3(e,n,i){qr.S(e,n,i);var o=Hi;if(o&&e){var f=oi(o).hoistableStyles,m=Ui(e);n=n||"default";var x=f.get(m);if(!x){var D={loading:0,preload:null};if(x=o.querySelector(Ga(m)))D.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":n},i),(i=Fn.get(m))&&ed(e,i);var B=x=o.createElement("link");Yt(B),Wt(B,"link",e),B._p=new Promise(function(X,J){B.onload=X,B.onerror=J}),B.addEventListener("load",function(){D.loading|=1}),B.addEventListener("error",function(){D.loading|=2}),D.loading|=4,_s(x,n,o)}x={type:"stylesheet",instance:x,count:1,state:D},f.set(m,x)}}}function t3(e,n){qr.X(e,n);var i=Hi;if(i&&e){var o=oi(i).hoistableScripts,f=Ii(e),m=o.get(f);m||(m=i.querySelector(Fa(f)),m||(e=p({src:e,async:!0},n),(n=Fn.get(f))&&td(e,n),m=i.createElement("script"),Yt(m),Wt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(f,m))}}function n3(e,n){qr.M(e,n);var i=Hi;if(i&&e){var o=oi(i).hoistableScripts,f=Ii(e),m=o.get(f);m||(m=i.querySelector(Fa(f)),m||(e=p({src:e,async:!0,type:"module"},n),(n=Fn.get(f))&&td(e,n),m=i.createElement("script"),Yt(m),Wt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(f,m))}}function qg(e,n,i,o){var f=(f=se.current)?Ms(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Ui(i.href),i=oi(f).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Ui(i.href);var m=oi(f).hoistableStyles,x=m.get(e);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,x),(m=f.querySelector(Ga(e)))&&!m._p&&(x.instance=m,x.state.loading=5),Fn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Fn.set(e,i),m||r3(f,e,i,x.state))),n&&o===null)throw Error(a(528,""));return x}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ii(i),i=oi(f).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Ui(e){return'href="'+In(e)+'"'}function Ga(e){return'link[rel="stylesheet"]['+e+"]"}function Yg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function r3(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Wt(n,"link",i),Yt(n),e.head.appendChild(n))}function Ii(e){return'[src="'+In(e)+'"]'}function Fa(e){return"script[async]"+e}function Pg(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+In(i.href)+'"]');if(o)return n.instance=o,Yt(o),o;var f=p({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Yt(o),Wt(o,"style",f),_s(o,i.precedence,e),n.instance=o;case"stylesheet":f=Ui(i.href);var m=e.querySelector(Ga(f));if(m)return n.state.loading|=4,n.instance=m,Yt(m),m;o=Yg(i),(f=Fn.get(f))&&ed(o,f),m=(e.ownerDocument||e).createElement("link"),Yt(m);var x=m;return x._p=new Promise(function(D,B){x.onload=D,x.onerror=B}),Wt(m,"link",o),n.state.loading|=4,_s(m,i.precedence,e),n.instance=m;case"script":return m=Ii(i.src),(f=e.querySelector(Fa(m)))?(n.instance=f,Yt(f),f):(o=i,(f=Fn.get(m))&&(o=p({},i),td(o,f)),e=e.ownerDocument||e,f=e.createElement("script"),Yt(f),Wt(f,"link",o),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,_s(o,i.precedence,e));return n.instance}function _s(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,m=f,x=0;x<o.length;x++){var D=o[x];if(D.dataset.precedence===n)m=D;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function ed(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function td(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var js=null;function Xg(e,n,i){if(js===null){var o=new Map,f=js=new Map;f.set(i,o)}else f=js,o=f.get(i),o||(o=new Map,f.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var m=i[f];if(!(m[ca]||m[Qt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(n)||"";x=e+x;var D=o.get(x);D?D.push(m):o.set(x,[m])}}return o}function Zg(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function l3(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function i3(e,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Ui(o.href),m=n.querySelector(Ga(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=zs.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=m,Yt(m);return}m=n.ownerDocument||n,o=Yg(o),(f=Fn.get(f))&&ed(o,f),m=m.createElement("link"),Yt(m);var x=m;x._p=new Promise(function(D,B){x.onload=D,x.onerror=B}),Wt(m,"link",o),i.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=zs.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var nd=0;function a3(e,n){return e.stylesheets&&e.count===0&&Bs(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var o=setTimeout(function(){if(e.stylesheets&&Bs(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&nd===0&&(nd=62500*I5());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bs(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>nd?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ls=null;function Bs(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ls=new Map,n.forEach(o3,e),Ls=null,zs.call(e))}function o3(e,n){if(!(n.state.loading&4)){var i=Ls.get(e);if(i)var o=i.get(null);else{i=new Map,Ls.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var x=f[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),o=x)}o&&i.set(null,o)}f=n.instance,x=f.getAttribute("data-precedence"),m=i.get(x)||o,m===o&&i.set(null,f),i.set(x,f),this.count++,o=zs.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Qa={$$typeof:R,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function s3(e,n,i,o,f,m,x,D,B){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function Fg(e,n,i,o,f,m,x,D,B,X,J,ae){return e=new s3(e,n,i,x,B,X,J,ae,D),n=1,m===!0&&(n|=24),m=Nn(3,null,null,n),e.current=m,m.stateNode=e,n=jc(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:n},Hc(m),e}function Qg(e){return e?(e=vi,e):vi}function Kg(e,n,i,o,f,m){f=Qg(f),o.context===null?o.context=f:o.pendingContext=f,o=nl(n),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=rl(e,o,n),i!==null&&(bn(i,e,n),Da(i,e,n))}function $g(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function rd(e,n){$g(e,n),(e=e.alternate)&&$g(e,n)}function Jg(e){if(e.tag===13||e.tag===31){var n=Ll(e,67108864);n!==null&&bn(n,e,67108864),rd(e,67108864)}}function Wg(e){if(e.tag===13||e.tag===31){var n=_n();n=An(n);var i=Ll(e,n);i!==null&&bn(i,e,n),rd(e,n)}}var Hs=!0;function u3(e,n,i,o){var f=U.T;U.T=null;var m=G.p;try{G.p=2,ld(e,n,i,o)}finally{G.p=m,U.T=f}}function c3(e,n,i,o){var f=U.T;U.T=null;var m=G.p;try{G.p=8,ld(e,n,i,o)}finally{G.p=m,U.T=f}}function ld(e,n,i,o){if(Hs){var f=id(o);if(f===null)Pf(e,n,o,Us,i),t0(e,o);else if(d3(f,e,n,i,o))o.stopPropagation();else if(t0(e,o),n&4&&-1<f3.indexOf(e)){for(;f!==null;){var m=ai(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=bt(m.pendingLanes);if(x!==0){var D=m;for(D.pendingLanes|=2,D.entangledLanes|=2;x;){var B=1<<31-qe(x);D.entanglements[1]|=B,x&=~B}hr(m),(Ze&6)===0&&(Ss=ut()+500,Ya(0))}}break;case 31:case 13:D=Ll(m,2),D!==null&&bn(D,m,2),ws(),rd(m,2)}if(m=id(o),m===null&&Pf(e,n,o,Us,i),m===f)break;f=m}f!==null&&o.stopPropagation()}else Pf(e,n,o,null,i)}}function id(e){return e=ac(e),ad(e)}var Us=null;function ad(e){if(Us=null,e=ii(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Us=e,null}function e0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kl()){case ee:return 2;case ue:return 8;case xe:case Ne:return 32;case _e:return 268435456;default:return 32}default:return 32}}var od=!1,ml=null,pl=null,gl=null,Ka=new Map,$a=new Map,vl=[],f3="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 t0(e,n){switch(e){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":pl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":Ka.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":$a.delete(n.pointerId)}}function Ja(e,n,i,o,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[f]},n!==null&&(n=ai(n),n!==null&&Jg(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function d3(e,n,i,o,f){switch(n){case"focusin":return ml=Ja(ml,e,n,i,o,f),!0;case"dragenter":return pl=Ja(pl,e,n,i,o,f),!0;case"mouseover":return gl=Ja(gl,e,n,i,o,f),!0;case"pointerover":var m=f.pointerId;return Ka.set(m,Ja(Ka.get(m)||null,e,n,i,o,f)),!0;case"gotpointercapture":return m=f.pointerId,$a.set(m,Ja($a.get(m)||null,e,n,i,o,f)),!0}return!1}function n0(e){var n=ii(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,Qr(e.priority,function(){Wg(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,Qr(e.priority,function(){Wg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=id(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);ic=o,i.target.dispatchEvent(o),ic=null}else return n=ai(i),n!==null&&Jg(n),e.blockedOn=i,!1;n.shift()}return!0}function r0(e,n,i){Is(e)&&i.delete(n)}function h3(){od=!1,ml!==null&&Is(ml)&&(ml=null),pl!==null&&Is(pl)&&(pl=null),gl!==null&&Is(gl)&&(gl=null),Ka.forEach(r0),$a.forEach(r0)}function Vs(e,n){e.blockedOn===n&&(e.blockedOn=null,od||(od=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,h3)))}var qs=null;function l0(e){qs!==e&&(qs=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){qs===e&&(qs=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],f=e[n+2];if(typeof o!="function"){if(ad(o||i)===null)continue;break}var m=ai(i);m!==null&&(e.splice(n,3),n-=3,lf(m,{pending:!0,data:f,method:i.method,action:o},o,f))}}))}function Vi(e){function n(B){return Vs(B,e)}ml!==null&&Vs(ml,e),pl!==null&&Vs(pl,e),gl!==null&&Vs(gl,e),Ka.forEach(n),$a.forEach(n);for(var i=0;i<vl.length;i++){var o=vl[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<vl.length&&(i=vl[0],i.blockedOn===null);)n0(i),i.blockedOn===null&&vl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var f=i[o],m=i[o+1],x=f[hn]||null;if(typeof m=="function")x||l0(i);else if(x){var D=null;if(m&&m.hasAttribute("formAction")){if(f=m,x=m[hn]||null)D=x.formAction;else if(ad(f)!==null)continue}else D=x.action;typeof D=="function"?i[o+1]=D:(i.splice(o,3),o-=3),l0(i)}}}function i0(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function sd(e){this._internalRoot=e}Ys.prototype.render=sd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=_n();Kg(i,o,e,n,null,null)},Ys.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Kg(e.current,2,null,e,null,null),ws(),n[li]=null}};function Ys(e){this._internalRoot=e}Ys.prototype.unstable_scheduleHydration=function(e){if(e){var n=sn();e={blockedOn:null,target:e,priority:n};for(var i=0;i<vl.length&&n!==0&&n<vl[i].priority;i++);vl.splice(i,0,e),i===0&&n0(e)}};var a0=r.version;if(a0!=="19.2.8")throw Error(a(527,a0,"19.2.8"));G.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=h(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var m3={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ps.isDisabled&&Ps.supportsFiber)try{pt=Ps.inject(m3),yt=Ps}catch{}}return eo.createRoot=function(e,n){if(!s(e))throw Error(a(299));var i=!1,o="",f=h1,m=m1,x=p1;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Fg(e,1,!1,null,null,i,o,null,f,m,x,i0),e[li]=n.current,Yf(e),new sd(n)},eo.hydrateRoot=function(e,n,i){if(!s(e))throw Error(a(299));var o=!1,f="",m=h1,x=m1,D=p1,B=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(D=i.onRecoverableError),i.formState!==void 0&&(B=i.formState)),n=Fg(e,1,!0,n,i??null,o,f,B,m,x,D,i0),n.context=Qg(null),i=n.current,o=_n(),o=An(o),f=nl(o),f.callback=null,rl(i,f,o),i=o,n.current.lanes=i,rt(n,i),hr(n),e[li]=n.current,Yf(e),new Ys(n)},eo.version="19.2.8",eo}var b0;function E3(){if(b0)return fd.exports;b0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),fd.exports=w3(),fd.exports}var T3=E3(),C=Oh();const ie=Ou(C),Co=g3({__proto__:null,default:ie},[C]),x0=t=>{let r;const l=new Set,a=(h,v)=>{const p=typeof h=="function"?h(r):h;if(!Object.is(p,r)){const b=r;r=v??(typeof p!="object"||p===null)?p:Object.assign({},r,p),l.forEach(y=>y(r,b))}},s=()=>r,d={setState:a,getState:s,getInitialState:()=>g,subscribe:h=>(l.add(h),()=>l.delete(h))},g=r=t(a,s,d);return d},A3=(t=>t?x0(t):x0),D3=t=>t;function N3(t,r=D3){const l=ie.useSyncExternalStore(t.subscribe,ie.useCallback(()=>r(t.getState()),[t,r]),ie.useCallback(()=>r(t.getInitialState()),[t,r]));return ie.useDebugValue(l),l}function Fd(t,r){return Date.parse(r.frontmatter.created)-Date.parse(t.frontmatter.created)}function O3(t,r){return Date.parse(r.frontmatter.updated)-Date.parse(t.frontmatter.updated)}function cu(t,r,l){const a={};for(const[s,u]of Object.entries(t))a[s]=u.filter(c=>c!==r&&(l===void 0||l.has(c)));return a}function gd({layout:t,tasks:r,slug:l,toStatus:a,position:s,doneColumn:u}){const c=new Set(r.map(y=>y.slug)),d=cu(t,l,c);if(delete d[u],a===u)return d;const g=d[a]??[],h=new Set(g),v=r.filter(y=>y.frontmatter.status===a&&y.slug!==l&&!h.has(y.slug)).slice().sort(Fd).map(y=>y.slug),p=[...g,...v],b=s<0||s>p.length?p.length:s;return p.splice(b,0,l),d[a]=p,d}function fu(t,r,l,a,s){if(!a.has(l))return t.filter(v=>!a.has(v.frontmatter.status)).slice().sort(Fd);if(l===s)return t.filter(v=>v.frontmatter.status===l).slice().sort(O3);const u=t.filter(v=>v.frontmatter.status===l),c=new Map(u.map(v=>[v.slug,v])),d=[],g=new Set;for(const v of(r==null?void 0:r[l])??[]){const p=c.get(v);p&&(d.push(p),g.add(v))}const h=u.filter(v=>!g.has(v.slug)).slice().sort(Fd);return[...d,...h]}var lr=ny();const R3=Ou(lr);function k3(t){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}const M3=t=>{switch(t){case"success":return z3;case"info":return B3;case"warning":return L3;case"error":return H3;default:return null}},_3=Array(12).fill(0),j3=({visible:t,className:r})=>ie.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},ie.createElement("div",{className:"sonner-spinner"},_3.map((l,a)=>ie.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),z3=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ie.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),L3=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ie.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),B3=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ie.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),H3=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},ie.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),U3=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},ie.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ie.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),I3=()=>{const[t,r]=ie.useState(document.hidden);return ie.useEffect(()=>{const l=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",l),()=>document.removeEventListener("visibilitychange",l)},[]),t};let V3=1;const q3=100,S0=t=>{var r;return typeof(t==null?void 0:t.id)=="number"||(t==null||(r=t.id)==null?void 0:r.length)>0?t.id:V3++};class Y3{constructor(){this.subscribe=r=>(this.subscribers.push(r),this.getActiveToasts().forEach(l=>r(l)),()=>{const l=this.subscribers.indexOf(r);this.subscribers.splice(l,1)}),this.publish=r=>{this.subscribers.forEach(l=>l(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r],this.trimHistory()},this.trimHistory=()=>{let r=this.toasts.length-q3;r<=0||(this.toasts=this.toasts.filter(l=>r>0&&this.dismissedToasts.has(l.id)?(this.dismissedToasts.delete(l.id),r--,!1):!0))},this.create=r=>{const{message:l,...a}=r,s=S0(r),u=this.pendingDismissals.get(s);u!==void 0&&(cancelAnimationFrame(u),this.pendingDismissals.delete(s),this.dismissedToasts.delete(s));const c=this.dismissedToasts.has(s),d=r.dismissible===void 0?!0:r.dismissible;return c&&(this.dismissedToasts.delete(s),this.toasts=this.toasts.filter(h=>h.id!==s)),(c?void 0:this.toasts.find(h=>h.id===s))?this.toasts=this.toasts.map(h=>h.id===s?(this.publish({...h,...r,id:s,title:l}),{...h,...r,id:s,dismissible:d,title:l}):h):this.addToast({title:l,...a,dismissible:d,id:s}),s},this.dismiss=r=>{if(r==null)return this.getActiveToasts().forEach(a=>{this.dismissedToasts.add(a.id),this.subscribers.forEach(s=>s({id:a.id,dismiss:!0}))}),r;this.dismissedToasts.add(r);const l=this.pendingDismissals.get(r);return l!==void 0&&cancelAnimationFrame(l),this.pendingDismissals.set(r,requestAnimationFrame(()=>{this.pendingDismissals.delete(r),this.subscribers.forEach(a=>a({id:r,dismiss:!0}))})),r},this.message=(r,l)=>this.create({...l,message:r,type:void 0}),this.error=(r,l)=>this.create({...l,message:r,type:"error"}),this.success=(r,l)=>this.create({...l,type:"success",message:r}),this.info=(r,l)=>this.create({...l,type:"info",message:r}),this.warning=(r,l)=>this.create({...l,type:"warning",message:r}),this.loading=(r,l)=>this.create({...l,type:"loading",message:r}),this.promise=(r,l)=>{if(!l)return;let a;l.loading!==void 0&&(a=this.create({...l,promise:r,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const s=Promise.resolve(r instanceof Function?r():r);let u=a!==void 0,c;const d=s.then(async h=>{if(c=["resolve",h],ie.isValidElement(h))u=!1,this.create({id:a,type:"default",message:h});else if(X3(h)&&!h.ok){u=!1;const p=typeof l.error=="function"?await l.error(`HTTP error! status: ${h.status}`):l.error,b=typeof l.description=="function"?await l.description(`HTTP error! status: ${h.status}`):l.description,w=typeof p=="object"&&!ie.isValidElement(p)?p:{message:p};this.create({id:a,type:"error",description:b,...w})}else if(h instanceof Error){u=!1;const p=typeof l.error=="function"?await l.error(h):l.error,b=typeof l.description=="function"?await l.description(h):l.description,w=typeof p=="object"&&!ie.isValidElement(p)?p:{message:p};this.create({id:a,type:"error",description:b,...w})}else if(l.success!==void 0){u=!1;const p=typeof l.success=="function"?await l.success(h):l.success,b=typeof l.description=="function"?await l.description(h):l.description,w=typeof p=="object"&&!ie.isValidElement(p)?p:{message:p};this.create({id:a,type:"success",description:b,...w})}}).catch(async h=>{if(c=["reject",h],l.error!==void 0){u=!1;const v=typeof l.error=="function"?await l.error(h):l.error,p=typeof l.description=="function"?await l.description(h):l.description,y=typeof v=="object"&&!ie.isValidElement(v)?v:{message:v};this.create({id:a,type:"error",description:p,...y})}}).finally(()=>{u&&(this.dismiss(a),a=void 0),l.finally==null||l.finally.call(l)}),g=()=>new Promise((h,v)=>d.then(()=>c[0]==="reject"?v(c[1]):h(c[1])).catch(v));return typeof a!="string"&&typeof a!="number"?{unwrap:g}:Object.assign(a,{unwrap:g})},this.custom=(r,l)=>{const a=S0(l);return this.create({...l,jsx:r(a),id:a,type:void 0}),a},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}const Sn=new Y3,P3=(t,r)=>Sn.message(t,r),X3=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Z3=P3,G3=()=>Sn.toasts,F3=()=>Sn.getActiveToasts(),ao=Object.assign(Z3,{success:Sn.success,info:Sn.info,warning:Sn.warning,error:Sn.error,custom:Sn.custom,message:Sn.message,promise:Sn.promise,dismiss:Sn.dismiss,loading:Sn.loading},{getHistory:G3,getToasts:F3});k3("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Xs(t){return t.label!==void 0}const Q3=3,K3="24px",$3="16px",C0=4e3,J3=356,W3=14,e4=45,t4=200;function mr(...t){return t.filter(Boolean).join(" ")}function n4(t){const[r,l]=t.split("-"),a=[];return r&&a.push(r),l&&a.push(l),a}const r4=t=>{var r,l,a,s,u,c,d,g,h;const{invert:v,toast:p,unstyled:b,interacting:y,setHeights:w,visibleToasts:T,heights:A,index:E,toasts:_,expanded:R,removeToast:N,defaultRichColors:z,closeButton:k,style:H,cancelButtonStyle:I,actionButtonStyle:j,className:Q="",descriptionClassName:Z="",duration:K,position:oe,gap:te,expandByDefault:W,classNames:U,icons:G,closeButtonAriaLabel:le="Close toast"}=t,[ce,M]=ie.useState(null),[L,Y]=ie.useState(null),[O,ne]=ie.useState(!1),[de,se]=ie.useState(!1),[ve,me]=ie.useState(!1),[he,ge]=ie.useState(!1),[Te,we]=ie.useState(!1),[De,Ve]=ie.useState(0),[at,mt]=ie.useState(0),Rt=ie.useRef(p.duration||K||C0),tn=ie.useRef(null),wt=ie.useRef(null),Ut=E===0,dn=E+1<=T,Fe=p.type,Er=Fe??"default",ut=p.dismissible!==!1,kl=p.className||"",ee=p.descriptionClassName||"",ue=ie.useMemo(()=>A.findIndex(be=>be.toastId===p.id)||0,[A,p.id]),xe=ie.useMemo(()=>{var be;return(be=p.closeButton)!=null?be:k},[p.closeButton,k]),Ne=ie.useMemo(()=>p.duration||K||C0,[p.duration,K]),_e=ie.useRef(0),Qe=ie.useRef(0),an=ie.useRef(0),pt=ie.useRef(null),[yt,kt]=oe.split("-"),qe=ie.useMemo(()=>A.reduce((be,He,Xe)=>Xe>=ue?be:be+He.height,0),[A,ue]),Tn=I3(),ct=ie.useMemo(()=>{var be;return(be=t.swipeDirections)!=null?be:n4(oe)},[t.swipeDirections,oe]),ua=p.invert||v,ur=Fe==="loading";Qe.current=ie.useMemo(()=>ue*te+qe,[ue,qe]),ie.useEffect(()=>{Rt.current=Ne},[Ne]),ie.useEffect(()=>{ne(!0)},[]),ie.useEffect(()=>{const be=wt.current;if(be){const He=be.getBoundingClientRect().height;return mt(He),w(Xe=>[{toastId:p.id,height:He,position:p.position},...Xe]),()=>w(Xe=>Xe.filter(rt=>rt.toastId!==p.id))}},[w,p.id]),ie.useLayoutEffect(()=>{if(!O)return;const be=wt.current,He=be.style.height;be.style.height="auto";const Xe=be.getBoundingClientRect().height;be.style.height=He,mt(Xe),w(rt=>rt.find(Ke=>Ke.toastId===p.id)?rt.map(Ke=>Ke.toastId===p.id?{...Ke,height:Xe}:Ke):[{toastId:p.id,height:Xe,position:p.position},...rt])},[O,p.title,p.description,w,p.id,p.jsx,p.action,p.cancel]);const on=ie.useCallback(()=>{se(!0),Ve(Qe.current),w(be=>be.filter(He=>He.toastId!==p.id)),setTimeout(()=>{N(p)},t4)},[p,N,w,Qe]);ie.useEffect(()=>{if(p.promise&&Fe==="loading"||p.duration===1/0||p.type==="loading")return;let be;return R||y||Tn?(()=>{if(an.current<_e.current){const rt=new Date().getTime()-_e.current;Rt.current=Rt.current-rt}an.current=new Date().getTime()})():(()=>{Rt.current!==1/0&&(_e.current=new Date().getTime(),be=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),on()},Rt.current))})(),()=>clearTimeout(be)},[R,y,p,Fe,Tn,on]),ie.useEffect(()=>{p.delete&&(on(),p.onDismiss==null||p.onDismiss.call(p,p))},[on,p.delete]);function gt(){var be;if(G!=null&&G.loading){var He;return ie.createElement("div",{className:mr(U==null?void 0:U.loader,p==null||(He=p.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Fe==="loading"},G.loading)}return ie.createElement(j3,{className:mr(U==null?void 0:U.loader,p==null||(be=p.classNames)==null?void 0:be.loader),visible:Fe==="loading"})}const bt=p.icon||(G==null?void 0:G[Fe])||M3(Fe);var Dt,Ft;return ie.createElement("li",{tabIndex:0,ref:wt,className:mr(Q,kl,U==null?void 0:U.toast,p==null||(r=p.classNames)==null?void 0:r.toast,U==null?void 0:U[Er],p==null||(l=p.classNames)==null?void 0:l[Er]),"data-sonner-toast":"","data-rich-colors":(Dt=p.richColors)!=null?Dt:z,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":O,"data-promise":!!p.promise,"data-swiped":Te,"data-removed":de,"data-visible":dn,"data-y-position":yt,"data-x-position":kt,"data-index":E,"data-front":Ut,"data-swiping":ve,"data-dismissible":ut,"data-type":Fe,"data-invert":ua,"data-swipe-out":he,"data-swipe-direction":L,"data-expanded":!!(R||W&&O),"data-testid":p.testId,style:{"--index":E,"--toasts-before":E,"--z-index":_.length-E,"--offset":`${de?De:Qe.current}px`,"--initial-height":W?"auto":`${at}px`,...H,...p.style},onDragEnd:()=>{me(!1),M(null),pt.current=null},onPointerDown:be=>{be.button!==2&&(ur||!ut||(tn.current=new Date,Ve(Qe.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(me(!0),pt.current={x:be.clientX,y:be.clientY})))},onPointerUp:()=>{var be,He,Xe;if(he||!ut)return;pt.current=null;const rt=Number(((be=wt.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ft=Number(((He=wt.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((Xe=tn.current)==null?void 0:Xe.getTime()),ot=ce==="x"?rt:ft,xt=Math.abs(ot)/Ke;if((ce==="x"?ct.includes(rt>0?"right":"left"):ct.includes(ft>0?"bottom":"top"))&&(Math.abs(ot)>=e4||xt>.11)){Ve(Qe.current),p.onDismiss==null||p.onDismiss.call(p,p),Y(ce==="x"?rt>0?"right":"left":ft>0?"down":"up"),on(),ge(!0);return}else{var Mt,sn;(Mt=wt.current)==null||Mt.style.setProperty("--swipe-amount-x","0px"),(sn=wt.current)==null||sn.style.setProperty("--swipe-amount-y","0px")}we(!1),me(!1),M(null)},onPointerMove:be=>{var He,Xe,rt;if(!pt.current||!ut||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;const Ke=be.clientY-pt.current.y,ot=be.clientX-pt.current.x;!ce&&(Math.abs(ot)>1||Math.abs(Ke)>1)&&M(Math.abs(ot)>Math.abs(Ke)?"x":"y");let xt={x:0,y:0};const An=Mt=>1/(1.5+Math.abs(Mt)/20);if(ce==="y"){if(ct.includes("top")||ct.includes("bottom"))if(ct.includes("top")&&Ke<0||ct.includes("bottom")&&Ke>0)xt.y=Ke;else{const Mt=Ke*An(Ke);xt.y=Math.abs(Mt)<Math.abs(Ke)?Mt:Ke}}else if(ce==="x"&&(ct.includes("left")||ct.includes("right")))if(ct.includes("left")&&ot<0||ct.includes("right")&&ot>0)xt.x=ot;else{const Mt=ot*An(ot);xt.x=Math.abs(Mt)<Math.abs(ot)?Mt:ot}(Math.abs(xt.x)>0||Math.abs(xt.y)>0)&&we(!0),(Xe=wt.current)==null||Xe.style.setProperty("--swipe-amount-x",`${xt.x}px`),(rt=wt.current)==null||rt.style.setProperty("--swipe-amount-y",`${xt.y}px`)}},xe&&!p.jsx&&Fe!=="loading"?ie.createElement("button",{"aria-label":le,"data-disabled":ur,"data-close-button":!0,onClick:ur||!ut?()=>{}:()=>{on(),p.onDismiss==null||p.onDismiss.call(p,p)},className:mr(U==null?void 0:U.closeButton,p==null||(a=p.classNames)==null?void 0:a.closeButton)},(Ft=G==null?void 0:G.close)!=null?Ft:U3):null,(Fe||p.icon||p.promise)&&p.icon!==null&&((G==null?void 0:G[Fe])!==null||p.icon)?ie.createElement("div",{"data-icon":"",className:mr(U==null?void 0:U.icon,p==null||(s=p.classNames)==null?void 0:s.icon)},Fe==="loading"?p.icon||gt():p.promise?gt():null,Fe!=="loading"?bt:null):null,ie.createElement("div",{"data-content":"",className:mr(U==null?void 0:U.content,p==null||(u=p.classNames)==null?void 0:u.content)},ie.createElement("div",{"data-title":"",className:mr(U==null?void 0:U.title,p==null||(c=p.classNames)==null?void 0:c.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?ie.createElement("div",{"data-description":"",className:mr(Z,ee,U==null?void 0:U.description,p==null||(d=p.classNames)==null?void 0:d.description)},typeof p.description=="function"?p.description():p.description):null),ie.isValidElement(p.cancel)?p.cancel:p.cancel&&Xs(p.cancel)?ie.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||I,onClick:be=>{Xs(p.cancel)&&ut&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,be),on())},className:mr(U==null?void 0:U.cancelButton,p==null||(g=p.classNames)==null?void 0:g.cancelButton)},p.cancel.label):null,ie.isValidElement(p.action)?p.action:p.action&&Xs(p.action)?ie.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||j,onClick:be=>{Xs(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,be),!be.defaultPrevented&&on())},className:mr(U==null?void 0:U.actionButton,p==null||(h=p.classNames)==null?void 0:h.actionButton)},p.action.label):null)};function w0(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function l4(t,r){const l={};return[t,r].forEach((a,s)=>{const u=s===1,c=u?"--mobile-offset":"--offset",d=u?$3:K3;function g(h){["top","right","bottom","left"].forEach(v=>{l[`${c}-${v}`]=typeof h=="number"?`${h}px`:h})}typeof a=="number"||typeof a=="string"?g(a):typeof a=="object"?["top","right","bottom","left"].forEach(h=>{a[h]===void 0?l[`${c}-${h}`]=d:l[`${c}-${h}`]=typeof a[h]=="number"?`${a[h]}px`:a[h]}):g(d)}),l}const i4=ie.forwardRef(function(r,l){const{id:a,invert:s,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:g,className:h,offset:v,mobileOffset:p,theme:b="light",richColors:y,duration:w,style:T,visibleToasts:A=Q3,toastOptions:E,dir:_=w0(),gap:R=W3,icons:N,customAriaLabel:z,containerAriaLabel:k="Notifications"}=r,[H,I]=ie.useState([]),j=ie.useMemo(()=>a?H.filter(ne=>ne.toasterId===a):H.filter(ne=>!ne.toasterId),[H,a]),Q=ie.useMemo(()=>Array.from(new Set([u].concat(j.filter(ne=>ne.position).map(ne=>ne.position)))),[j,u]),[Z,K]=ie.useState([]),[oe,te]=ie.useState(!1),[W,U]=ie.useState(!1),[G,le]=ie.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ce=ie.useRef(null),M=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=ie.useRef(null),Y=ie.useRef(!1),O=ie.useCallback(ne=>{I(de=>{var se;return(se=de.find(ve=>ve.id===ne.id))!=null&&se.delete||Sn.dismiss(ne.id),de.filter(({id:ve})=>ve!==ne.id)})},[]);return ie.useEffect(()=>Sn.subscribe(ne=>{if(ne.dismiss){requestAnimationFrame(()=>{I(de=>de.map(se=>se.id===ne.id?{...se,delete:!0}:se))});return}setTimeout(()=>{R3.flushSync(()=>{I(de=>{const se=de.findIndex(ve=>ve.id===ne.id);return se!==-1?[...de.slice(0,se),{...de[se],...ne},...de.slice(se+1)]:[ne,...de]})})})}),[]),ie.useEffect(()=>{if(b!=="system"){le(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?le("dark"):le("light")),typeof window>"u")return;const ne=window.matchMedia("(prefers-color-scheme: dark)");try{ne.addEventListener("change",({matches:de})=>{le(de?"dark":"light")})}catch{ne.addListener(({matches:se})=>{try{le(se?"dark":"light")}catch(ve){console.error(ve)}})}},[b]),ie.useEffect(()=>{H.length<=1&&te(!1)},[H]),ie.useEffect(()=>{const ne=de=>{var se;if(c.length>0&&c.every(he=>de[he]||de.code===he)){var me;te(!0),(me=ce.current)==null||me.focus()}de.code==="Escape"&&(document.activeElement===ce.current||(se=ce.current)!=null&&se.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[c]),ie.useEffect(()=>{if(ce.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,Y.current=!1)}},[ce.current]),ie.createElement("section",{ref:l,"aria-label":z??`${k} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},Q.map((ne,de)=>{var se;const[ve,me]=ne.split("-");return j.length?ie.createElement("ol",{key:ne,dir:_==="auto"?w0():_,tabIndex:-1,ref:ce,className:h,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":ve,"data-x-position":me,style:{"--front-toast-height":`${((se=Z[0])==null?void 0:se.height)||0}px`,"--width":`${J3}px`,"--gap":`${R}px`,...T,...l4(v,p)},onBlur:he=>{Y.current&&!he.currentTarget.contains(he.relatedTarget)&&(Y.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,L.current=he.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{W||te(!1)},onDragEnd:()=>te(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},j.filter(he=>!he.position&&de===0||he.position===ne).map((he,ge)=>{var Te,we;return ie.createElement(r4,{key:he.id,icons:N,index:ge,toast:he,defaultRichColors:y,duration:(Te=E==null?void 0:E.duration)!=null?Te:w,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:s,visibleToasts:A,closeButton:(we=E==null?void 0:E.closeButton)!=null?we:g,interacting:W,position:ne,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:O,toasts:j.filter(De=>De.position==he.position),heights:Z.filter(De=>De.position==he.position),setHeights:K,expandByDefault:d,gap:R,expanded:oe,swipeDirections:r.swipeDirections})})):null}))}),Jl="__uncategorized__";function a4(t){const r=new Map,l=new Map;let a=!1,s;function u(d){l.set(d,(l.get(d)??0)+1)}function c(d){const g=(l.get(d)??0)-1;if(g>0){l.set(d,g);return}l.delete(d),l.size===0&&a&&(a=!1,s==null||s.getState().refresh())}return s=A3((d,g)=>({readOnly:!!t.readOnly,resolveRepoLink:t.resolveRepoLink?h=>{var v;return((v=t.resolveRepoLink)==null?void 0:v.call(t,h))??null}:null,config:null,tasks:[],warnings:[],archiveViewOpen:!1,archivedTasks:null,archiveWarnings:[],isArchiveLoading:!1,archiveLoadError:null,selectedTaskSlug:null,searchQuery:"",lastSyncedAt:null,isSyncing:!1,hasLoaded:!1,initialLoadError:null,errorAtBySlug:{},refresh:async()=>{d({isSyncing:!0});try{const[h,v]=await Promise.all([t.getConfig(),t.listTasks()]);l.size>0&&(a=!0),d(p=>({...s4(p,h,v,l),lastSyncedAt:Date.now(),isSyncing:!1,hasLoaded:!0,initialLoadError:null}))}catch(h){const v=nr(h);if(!g().hasLoaded){d({initialLoadError:v,isSyncing:!1});return}d({isSyncing:!1}),ao.error(`Sync failed: ${v}`)}},moveTask:async(h,v)=>{await g().reorderTask(h,v,-1)},reorderTask:async(h,v,p)=>{const b=bl(g(),h);if(b.task){d(y=>({tasks:y.tasks.map(w=>w.slug===h?{...w,frontmatter:{...w.frontmatter,status:v}}:w),config:y.config?{...y.config,layout:gd({layout:y.config.layout??{},tasks:y.tasks,slug:h,toStatus:v,position:p,doneColumn:y.config.done_column})}:null})),u(h);try{const{task:y,layout:w}=await t.reorderTask(h,v,p);d(T=>({tasks:T.tasks.map(A=>A.slug===h?y:A),config:T.config?{...T.config,layout:w}:null}))}catch(y){xl(d,b,`Move failed: ${nr(y)}`)}finally{c(h)}}},updateTask:async(h,v,p)=>{const b=bl(g(),h),y=b.task!==void 0&&v.status!==void 0&&v.status!==b.task.frontmatter.status;d(w=>({tasks:w.tasks.map(T=>T.slug===h?{...T,frontmatter:{...T.frontmatter,...v},body:p??T.body}:T),config:y&&w.config?{...w.config,layout:gd({layout:w.config.layout??{},tasks:w.tasks,slug:h,toStatus:v.status,position:-1,doneColumn:w.config.done_column})}:w.config})),u(h);try{const{task:w,layout:T}=await t.updateTask(h,v,p);to(d,w,h),T&&d(E=>({config:E.config?{...E.config,layout:T}:E.config}));const A=new Set(Object.keys(v));A.size&&d(E=>({warnings:E.warnings.filter(_=>_.slug!==h||!A.has(_.field))}))}catch(w){xl(d,b,`Update failed: ${nr(w)}`)}finally{c(h)}},addComment:async(h,v)=>{if(g().readOnly)return!1;const p=bl(g(),h);if(!p.task||!v.trim())return!1;const b=new Date().toISOString();d(y=>({tasks:y.tasks.map(w=>w.slug===h?{...w,frontmatter:{...w.frontmatter,updated:b},comments:[...w.comments??[],{timestamp:b,text:v.trim()}]}:w)})),u(h);try{const y=await t.addComment(h,v);return to(d,y,h),!0}catch(y){return xl(d,p,`Task update failed: ${nr(y)}`),!1}finally{c(h)}},editComment:async(h,v,p)=>{var T;if(g().readOnly)return!1;const b=bl(g(),h),y=p.trim();if(!b.task||!y||!Number.isInteger(v)||v<0||v>=(((T=b.task.comments)==null?void 0:T.length)??0))return!1;const w=new Date().toISOString();d(A=>({tasks:A.tasks.map(E=>E.slug===h?{...E,frontmatter:{...E.frontmatter,updated:w},comments:E.comments.map((_,R)=>R===v?{..._,text:y}:_)}:E)})),u(h);try{const A=await t.editComment(h,v,p);return to(d,A,h),!0}catch(A){return xl(d,b,`Task update edit failed: ${nr(A)}`),!1}finally{c(h)}},deleteComment:async(h,v)=>{var y;if(g().readOnly)return!1;const p=bl(g(),h);if(!p.task||!Number.isInteger(v)||v<0||v>=(((y=p.task.comments)==null?void 0:y.length)??0))return!1;const b=new Date().toISOString();d(w=>({tasks:w.tasks.map(T=>T.slug===h?{...T,frontmatter:{...T.frontmatter,updated:b},comments:T.comments.filter((A,E)=>E!==v)}:T)})),u(h);try{const w=await t.deleteComment(h,v);return to(d,w,h),!0}catch(w){return xl(d,p,`Task update delete failed: ${nr(w)}`),!1}finally{c(h)}},createTask:async(h,v)=>{var A,E,_;const p=(v==null?void 0:v.status)??((A=g().config)==null?void 0:A.default_column)??((_=(E=g().config)==null?void 0:E.columns.at(0))==null?void 0:_.id)??Jl,b=`new-${crypto.randomUUID()}`,y=new Date().toISOString(),w={slug:b,frontmatter:{title:h,status:p,priority:v==null?void 0:v.priority,assignee:v==null?void 0:v.assignee,tags:v==null?void 0:v.tags,depends_on:v==null?void 0:v.depends_on,created:y,updated:y},body:"",comments:[]},T=bl(g(),b);d(R=>({tasks:[w,...R.tasks]})),u(b);try{const R=await t.createTask(h,v);to(d,R,b)}catch(R){xl(d,T,`Create failed: ${nr(R)}`)}finally{c(b)}},deleteTask:async h=>{const v=bl(g(),h);d(p=>({tasks:p.tasks.filter(b=>b.slug!==h),selectedTaskSlug:p.selectedTaskSlug===h?null:p.selectedTaskSlug,config:p.config?{...p.config,layout:cu(p.config.layout??{},h)}:null})),u(h);try{await t.deleteTask(h)}catch(p){xl(d,v,`Delete failed: ${nr(p)}`)}finally{c(h)}},archiveTask:async(h,v=!1)=>{const p=g(),b=bl(p,h),y=b.task;if(!y)return;const w=y.frontmatter.status,T=p.config?fu(p.tasks,p.config.layout,w,new Set(p.config.columns.map(A=>A.id)),p.config.done_column).findIndex(A=>A.slug===h):-1;d(A=>({tasks:A.tasks.filter(E=>E.slug!==h),selectedTaskSlug:A.selectedTaskSlug===h?null:A.selectedTaskSlug,config:A.config?{...A.config,layout:cu(A.config.layout??{},h)}:null})),u(h);try{await t.archiveTask(h,v?{force:!0}:void 0),r.set(h,{status:w,position:T}),d(A=>({archivedTasks:A.archivedTasks?[y,...A.archivedTasks.filter(E=>E.slug!==h)]:null})),ao.success("Task archived",{description:y.frontmatter.title,action:{label:"Undo",onClick:()=>void g().unarchiveTask(h)}})}catch(A){xl(d,b,`Archive failed: ${nr(A)}`)}finally{c(h)}},unarchiveTask:async h=>{var v;u(h);try{let p=await t.unarchiveTask(h),b;const y=r.get(h);if(y&&y.position>=0&&p.frontmatter.status===y.status&&p.frontmatter.status!==((v=g().config)==null?void 0:v.done_column)){const w=await t.reorderTask(p.slug,y.status,y.position);p=w.task,b=w.layout}r.delete(h),d(w=>{const T=w.tasks.filter(_=>_.slug!==p.slug),A=[p,...T],E=b??(w.config?gd({layout:w.config.layout??{},tasks:A,slug:p.slug,toStatus:p.frontmatter.status,position:-1,doneColumn:w.config.done_column}):{});return{tasks:A,config:w.config?{...w.config,layout:E}:null,archivedTasks:w.archivedTasks?w.archivedTasks.filter(_=>_.slug!==p.slug):null}}),ao.success("Task restored",{description:p.frontmatter.title})}catch(p){ao.error(`Restore failed: ${nr(p)}`)}finally{c(h)}},openArchive:()=>{g().readOnly||(d({archiveViewOpen:!0,selectedTaskSlug:null}),g().archivedTasks===null&&!g().isArchiveLoading&&g().loadArchivedTasks())},closeArchive:()=>d({archiveViewOpen:!1}),loadArchivedTasks:async()=>{if(!g().readOnly){d({isArchiveLoading:!0,archiveLoadError:null});try{const h=await t.listArchivedTasks();d({archivedTasks:h.tasks,archiveWarnings:h.warnings,isArchiveLoading:!1,archiveLoadError:null})}catch(h){d({isArchiveLoading:!1,archiveLoadError:nr(h)})}}},selectTask:h=>d({selectedTaskSlug:h}),setSearchQuery:h=>d({searchQuery:h})})),s}function o4(t,r){const l=r.trim().toLowerCase();return l?t.filter(a=>[a.slug,a.frontmatter.title,a.frontmatter.assignee??"",...a.frontmatter.tags??[]].join(" ").toLowerCase().includes(l)):t}function s4(t,r,l,a){var d;if(a.size===0)return{config:r,tasks:l.tasks,warnings:l.warnings};const s=new Map(t.tasks.map(g=>[g.slug,g])),u=new Set(l.tasks.map(g=>g.slug)),c=l.tasks.filter(g=>!a.has(g.slug)||s.has(g.slug)).map(g=>a.has(g.slug)?s.get(g.slug)??g:g);for(const[g,h]of s)a.has(g)&&!u.has(g)&&c.push(h);return{config:{...r,layout:((d=t.config)==null?void 0:d.layout)??r.layout},tasks:c,warnings:[...l.warnings.filter(g=>!a.has(g.slug)),...t.warnings.filter(g=>a.has(g.slug))]}}function bl(t,r){var s;let l=null,a=-1;for(const[u,c]of Object.entries(((s=t.config)==null?void 0:s.layout)??{})){const d=c.indexOf(r);if(d>=0){l=u,a=d;break}}return{slug:r,task:t.tasks.find(u=>u.slug===r),column:l,index:a,selectedTaskSlug:t.selectedTaskSlug}}function to(t,r,l){t(a=>({tasks:a.tasks.some(s=>s.slug===l)?a.tasks.map(s=>s.slug===l?r:s):[r,...a.tasks],selectedTaskSlug:a.selectedTaskSlug===l?r.slug:a.selectedTaskSlug}))}function xl(t,r,l){const a=Date.now(),{slug:s,task:u}=r;t(c=>{var v;const d=c.tasks.some(p=>p.slug===s),g=u?d?c.tasks.map(p=>p.slug===s?u:p):[u,...c.tasks]:c.tasks.filter(p=>p.slug!==s),h=cu(((v=c.config)==null?void 0:v.layout)??{},s);if(r.column!==null){const p=[...h[r.column]??[]];p.splice(Math.min(r.index,p.length),0,s),h[r.column]=p}for(const[p,b]of Object.entries(h))b.length===0&&delete h[p];return{tasks:g,selectedTaskSlug:r.selectedTaskSlug===s&&c.selectedTaskSlug===null?s:c.selectedTaskSlug,config:c.config?{...c.config,layout:h}:c.config,errorAtBySlug:{...c.errorAtBySlug,[s]:a}}}),ao.error(l),globalThis.setTimeout(()=>{t(c=>{if(c.errorAtBySlug[s]!==a)return c;const d={...c.errorAtBySlug};return delete d[s],{errorAtBySlug:d}})},350)}function nr(t){return t instanceof Error?t.message:"Unknown error"}const ry=C.createContext(null);function u4({api:t,children:r}){const l=C.useRef(null),a=C.useRef(null);return(!l.current||a.current!==t)&&(l.current=a4(t),a.current=t),S.jsx(ry.Provider,{value:l.current,children:r})}function Ce(t){const r=C.useContext(ry);if(!r)throw new Error("useBoardStore must be used within BoardStoreProvider");return N3(r,t)}var ly={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E0=ie.createContext&&ie.createContext(ly),c4=["attr","size","title"];function f4(t,r){if(t==null)return{};var l,a,s=d4(t,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(a=0;a<u.length;a++)l=u[a],r.indexOf(l)===-1&&{}.propertyIsEnumerable.call(t,l)&&(s[l]=t[l])}return s}function d4(t,r){if(t==null)return{};var l={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(r.indexOf(a)!==-1)continue;l[a]=t[a]}return l}function du(){return du=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var a in l)({}).hasOwnProperty.call(l,a)&&(t[a]=l[a])}return t},du.apply(null,arguments)}function T0(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),l.push.apply(l,a)}return l}function hu(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?T0(Object(l),!0).forEach(function(a){h4(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):T0(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}function h4(t,r,l){return(r=m4(r))in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function m4(t){var r=p4(t,"string");return typeof r=="symbol"?r:r+""}function p4(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var a=l.call(t,r);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function iy(t){return t&&t.map((r,l)=>ie.createElement(r.tag,hu({key:l},r.attr),iy(r.child)))}function Ct(t){return r=>ie.createElement(g4,du({attr:hu({},t.attr)},r),iy(t.child))}function g4(t){var r=l=>{var a=t.attr,s=t.size,u=t.title,c=f4(t,c4),d=s||l.size||"1em",g;return l.className&&(g=l.className),t.className&&(g=(g?g+" ":"")+t.className),ie.createElement("svg",du({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,a,c,{className:g,style:hu(hu({color:t.color||l.color},l.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&ie.createElement("title",null,u),t.children)};return E0!==void 0?ie.createElement(E0.Consumer,null,l=>r(l)):r(ly)}function ay(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.98779 1.56268C8.0409 1.27989 8.3134 1.09275 8.59619 1.14569L8.86475 1.20233C11.6292 1.83955 14.0531 4.23823 14.0532 7.70331C14.0532 9.23977 13.3539 10.4478 12.5376 11.3664C11.9526 12.0246 11.2828 12.5586 10.7446 12.968L12.3823 12.968C12.6583 12.9681 12.8822 13.192 12.8823 13.468C12.8823 13.744 12.6583 13.9678 12.3823 13.968L9.38232 13.968C9.10618 13.968 8.88232 13.7441 8.88232 13.468L8.88232 10.468C8.88242 10.1919 9.10624 9.96796 9.38232 9.96796C9.65828 9.96811 9.88223 10.192 9.88232 10.468L9.88232 12.3137L10.064 12.176C10.5978 11.7712 11.2158 11.2844 11.7583 10.674C12.4727 9.87007 13.0102 8.89839 13.0103 7.70331C13.0101 4.69155 10.8502 2.63051 8.40381 2.17108L8.30225 2.14081C8.07811 2.04924 7.94169 1.80992 7.98779 1.56268ZM0.86084 7.29706C0.860904 5.76062 1.56016 4.55258 2.37646 3.63397C2.96144 2.97579 3.63128 2.44174 4.16943 2.03241L2.53174 2.03241C2.25581 2.03224 2.03185 1.80835 2.03174 1.53241C2.03174 1.25637 2.25574 1.03258 2.53174 1.03241L5.53174 1.03241C5.80788 1.03241 6.03174 1.25627 6.03174 1.53241L6.03174 4.53241C6.03162 4.80845 5.80781 5.03241 5.53174 5.03241C5.25581 5.03224 5.03185 4.80835 5.03174 4.53241L5.03174 2.68671L4.8501 2.8244C4.3163 3.22913 3.6983 3.71593 3.15576 4.32635C2.44134 5.13029 1.90387 6.10199 1.90381 7.29706C1.90397 10.3411 4.11093 12.4148 6.58936 12.8439C6.87264 12.8932 7.06302 13.1631 7.01416 13.4465C6.96499 13.7298 6.69498 13.92 6.41162 13.8713C3.50004 13.3671 0.860998 10.9128 0.86084 7.29706Z",fill:"currentColor"},child:[]}]})(t)}function Qd(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.5 3C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12L10.9951 12.1025C10.9472 12.573 10.573 12.9472 10.1025 12.9951L10 13H5L4.89746 12.9951C4.42703 12.9472 4.05278 12.573 4.00488 12.1025L4 12V4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.22386 3.22386 3 3.5 3H11.5ZM5 12H10V4H5V12ZM9.5 1C9.77614 1 10 1.22386 10 1.5C10 1.77614 9.77614 2 9.5 2H5.5C5.22386 2 5 1.77614 5 1.5C5 1.22386 5.22386 1 5.5 1H9.5Z",fill:"currentColor"},child:[]}]})(t)}function v4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.5 12C7.77614 12 8 12.2239 8 12.5V14.5C8 14.7761 7.77614 15 7.5 15C7.22386 15 7 14.7761 7 14.5V12.5C7 12.2239 7.22386 12 7.5 12ZM3.61133 10.6816C3.80662 10.4868 4.12322 10.4865 4.31836 10.6816C4.5135 10.8768 4.51324 11.1934 4.31836 11.3887L2.90332 12.8037C2.70802 12.9985 2.3914 12.9988 2.19629 12.8037C2.00118 12.6086 2.00147 12.292 2.19629 12.0967L3.61133 10.6816ZM10.6816 10.6816C10.8768 10.4865 11.1934 10.4868 11.3887 10.6816L12.8037 12.0967C12.9985 12.292 12.9988 12.6086 12.8037 12.8037C12.6086 12.9988 12.292 12.9985 12.0967 12.8037L10.6816 11.3887C10.4868 11.1934 10.4865 10.8768 10.6816 10.6816ZM7.5 4.5C9.15685 4.5 10.5 5.84315 10.5 7.5C10.5 9.15685 9.15685 10.5 7.5 10.5C5.84315 10.5 4.5 9.15685 4.5 7.5C4.5 5.84315 5.84315 4.5 7.5 4.5ZM7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5ZM2.5 7C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H2.5ZM14.5 7C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H12.5C12.2239 8 12 7.77614 12 7.5C12 7.22386 12.2239 7 12.5 7H14.5ZM2.19629 2.19629C2.3914 2.00118 2.70802 2.00147 2.90332 2.19629L4.31836 3.61133C4.51324 3.80662 4.5135 4.12322 4.31836 4.31836C4.12322 4.5135 3.80662 4.51324 3.61133 4.31836L2.19629 2.90332C2.00147 2.70802 2.00118 2.3914 2.19629 2.19629ZM12.0967 2.19629C12.292 2.00147 12.6086 2.00118 12.8037 2.19629C12.9988 2.3914 12.9985 2.70802 12.8037 2.90332L11.3887 4.31836C11.1934 4.51324 10.8768 4.5135 10.6816 4.31836C10.4865 4.12322 10.4868 3.80662 10.6816 3.61133L12.0967 2.19629ZM7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0Z",fill:"currentColor"},child:[]}]})(t)}function A0(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M4.22457 2.08224C4.41865 1.95407 4.68261 1.97583 4.85348 2.14669C5.02434 2.31756 5.0461 2.58152 4.91793 2.7756L4.85348 2.85372L3.70699 4.00021H8.99996C11.4852 4.00021 13.5 6.01493 13.5 8.50021C13.5 10.9855 11.4852 13.0002 8.99996 13.0002H4.99996C4.72382 13.0002 4.49996 12.7764 4.49996 12.5002C4.49996 12.2241 4.72382 12.0002 4.99996 12.0002H8.99996C10.933 12.0002 12.5 10.4332 12.5 8.50021C12.5 6.56721 10.933 5.00021 8.99996 5.00021H3.70699L4.85348 6.14669L4.91793 6.22482C5.0461 6.4189 5.02434 6.68286 4.85348 6.85372C4.68261 7.02459 4.41865 7.04634 4.22457 6.91818L4.14645 6.85372L2.14645 4.85372C1.95118 4.65846 1.95118 4.34195 2.14645 4.14669L4.14645 2.14669L4.22457 2.08224Z",fill:"currentColor"},child:[]}]})(t)}function y4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.876907C11.1566 0.876907 14.1218 3.84164 14.1222 7.49898C14.1222 11.1566 11.1568 14.122 7.49915 14.122C3.84181 14.1216 0.877075 11.1564 0.877075 7.49898C0.877487 3.8419 3.84206 0.877319 7.49915 0.876907ZM7.49915 1.82613C4.36674 1.82654 1.82671 4.36657 1.82629 7.49898C1.82629 10.6317 4.36648 13.1714 7.49915 13.1718C10.6321 13.1718 13.172 10.632 13.172 7.49898C13.1716 4.36631 10.6319 1.82613 7.49915 1.82613ZM7.50012 9.74995C7.91423 9.75006 8.25009 10.0858 8.25012 10.5C8.25012 10.9141 7.91425 11.2498 7.50012 11.25C7.08591 11.25 6.75012 10.9142 6.75012 10.5C6.75015 10.0858 7.08593 9.74995 7.50012 9.74995ZM7.50012 3.82515C8.93513 3.82519 10.0499 4.9279 10.0499 6.24995C10.0499 7.35371 9.31972 7.89011 8.78528 8.2148C8.48593 8.39664 8.30488 8.48614 8.15051 8.6064C8.08554 8.65705 8.05977 8.68922 8.0509 8.70308L8.04895 8.70406C8.04674 9.00589 7.80247 9.24991 7.50012 9.24995C7.19643 9.24995 6.95042 9.00382 6.95032 8.70015C6.95034 8.23216 7.2324 7.92706 7.47473 7.73824C7.6953 7.56644 8.01457 7.39708 8.21497 7.27534C8.6804 6.99257 8.95032 6.74107 8.95032 6.24995C8.95028 5.57211 8.36497 4.9248 7.50012 4.92476C6.63522 4.92476 6.04996 5.57208 6.04993 6.24995C6.04993 6.55368 5.80384 6.79971 5.50012 6.79976C5.19637 6.79976 4.95032 6.55371 4.95032 6.24995C4.95035 4.92787 6.06507 3.82515 7.50012 3.82515Z",fill:"currentColor"},child:[]}]})(t)}function wo(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.5 2.25C7.77614 2.25 8 2.47386 8 2.75V7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H8V12.25C8 12.5261 7.77614 12.75 7.5 12.75C7.22386 12.75 7 12.5261 7 12.25V8H2.75C2.47386 8 2.25 7.77614 2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H7V2.75C7 2.47386 7.22386 2.25 7.5 2.25Z",fill:"currentColor"},child:[]}]})(t)}function oy(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.2246 1.08204C11.4187 0.953875 11.6826 0.975633 11.8535 1.14649L13.8535 3.14649L13.9179 3.22462C14.0461 3.41869 14.0244 3.68266 13.8535 3.85352L6.42186 11.2852C6.35442 11.3526 6.27771 11.4105 6.19432 11.4561L6.10838 11.4971L2.69725 12.96C2.50933 13.0405 2.29103 12.9981 2.14647 12.8535C2.0019 12.709 1.95949 12.4907 2.04002 12.3027L3.50291 8.89161L3.54393 8.80567C3.58951 8.72228 3.6474 8.64556 3.71483 8.57813L11.1465 1.14649L11.2246 1.08204ZM4.42186 9.28516L3.78025 10.7803L4.21775 11.2178L5.71483 10.5781L12.7929 3.50001L11.5 2.20704L4.42186 9.28516Z",fill:"currentColor"},child:[]}]})(t)}function b4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M8.54431 0.981842L8.8363 1.03458L9.10095 1.09512L9.42517 1.18497L9.6781 1.267L9.95447 1.37051L10.1937 1.47208L10.307 1.52383L10.6342 1.68887L10.9564 1.87442L11.2484 2.06485L11.4926 2.24161L11.8138 2.50235L12.0355 2.70255L12.1957 2.85977L12.3158 2.9838L12.4789 3.16446L12.6781 3.40372L12.8314 3.60391C13.0355 3.88261 13.2175 4.17782 13.3763 4.48672L13.4506 4.63516L13.5277 4.80118L13.641 5.06876C13.7382 5.31392 13.8213 5.56724 13.889 5.82657C13.9452 6.04133 13.9913 6.26068 14.0258 6.4838L14.0619 6.76114C14.0889 7.00372 14.1029 7.25061 14.1029 7.5004C14.1028 11.1454 11.1483 14.1 7.5033 14.1C7.3745 14.1 7.24648 14.0965 7.11951 14.0893L6.85193 14.0688L6.53552 14.0297C6.40721 14.0108 6.27957 13.9885 6.15369 13.9623C6.04742 13.9402 5.9422 13.9151 5.83826 13.8881C5.70144 13.8525 5.5657 13.8131 5.43201 13.769L5.18884 13.683L4.88513 13.5609L4.62537 13.4408L4.36169 13.3061C4.23548 13.2376 4.11156 13.1654 3.9906 13.0893L3.81482 12.974L3.6283 12.8432L3.5072 12.7533L3.31873 12.6049L3.05896 12.3793L2.98669 12.3129C2.91538 12.2459 2.84503 12.1769 2.77673 12.1068C2.62748 11.9531 2.74608 11.7022 2.96033 11.6908C3.20996 11.6774 3.45726 11.65 3.69861 11.6098C6.82221 11.0879 9.20349 8.3718 9.20349 5.10001C9.20345 3.9692 8.91856 2.90436 8.41736 1.97403C8.29975 1.75576 8.17026 1.54482 8.02966 1.34219C7.90722 1.16575 8.03303 0.917893 8.24646 0.941803L8.54431 0.981842ZM9.8324 2.40567C10.2002 3.2979 10.4037 4.27587 10.4037 5.3002C10.4037 5.60452 10.3848 5.90465 10.35 6.19962L10.4779 6.20645C11.108 6.27052 11.5998 6.80261 11.6 7.44962C11.6 8.13996 11.0403 8.6996 10.35 8.69962C10.1081 8.69962 9.88309 8.63005 9.69177 8.51114C9.63529 8.6321 9.57562 8.75117 9.51306 8.86856C9.84841 8.94335 10.099 9.24212 10.099 9.60001C10.0989 10.0141 9.76312 10.35 9.349 10.35C9.09956 10.3499 8.87982 10.2269 8.74353 10.0395C7.81101 11.2068 6.54234 12.0938 5.08337 12.5522C5.81579 12.9036 6.63654 13.1 7.5033 13.1C10.596 13.1 13.1028 10.5931 13.1029 7.5004C13.1029 5.23879 11.7623 3.28958 9.8324 2.40567ZM1.50037 6.10001C1.7211 6.10022 1.90076 6.27961 1.90076 6.5004V7.10001H2.50037L2.58142 7.1088C2.76323 7.14645 2.90076 7.30743 2.90076 7.5004C2.90057 7.69325 2.76319 7.85443 2.58142 7.892L2.50037 7.90079H1.90076V8.5004C1.90055 8.721 1.72097 8.90058 1.50037 8.90079C1.27958 8.90079 1.10019 8.72113 1.09998 8.5004V7.90079H0.500366C0.279583 7.90079 0.100187 7.72113 0.0999756 7.5004C0.0999756 7.27948 0.279452 7.10001 0.500366 7.10001H1.09998V6.5004C1.09998 6.27948 1.27945 6.10001 1.50037 6.10001ZM5.50037 3.10001C5.7211 3.10022 5.90076 3.27961 5.90076 3.5004V4.10001H6.50037L6.58142 4.1088C6.76323 4.14645 6.90076 4.30743 6.90076 4.5004C6.90057 4.69325 6.76319 4.85443 6.58142 4.892L6.50037 4.90079H5.90076V5.5004C5.90055 5.721 5.72097 5.90058 5.50037 5.90079C5.27958 5.90079 5.10019 5.72113 5.09998 5.5004V4.90079H4.50037C4.27958 4.90079 4.10019 4.72113 4.09998 4.5004C4.09998 4.27948 4.27945 4.10001 4.50037 4.10001H5.09998V3.5004C5.09998 3.27948 5.27945 3.10001 5.50037 3.10001ZM2.50037 0.100006C2.7211 0.100218 2.90076 0.279613 2.90076 0.500397V1.10001H3.50037L3.58142 1.1088C3.76323 1.14645 3.90076 1.30743 3.90076 1.5004C3.90057 1.69325 3.76319 1.85443 3.58142 1.892L3.50037 1.90079H2.90076V2.5004C2.90055 2.721 2.72097 2.90058 2.50037 2.90079C2.27958 2.90079 2.10019 2.72113 2.09998 2.5004V1.90079H1.50037C1.27958 1.90079 1.10019 1.72113 1.09998 1.5004C1.09998 1.27948 1.27945 1.10001 1.50037 1.10001H2.09998V0.500397C2.09998 0.279483 2.27945 0.100006 2.50037 0.100006Z",fill:"currentColor"},child:[]}]})(t)}function Rh(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56246 10.6304 8.5378 10.0146 9.30762L12.8535 12.1465L12.918 12.2246C13.0461 12.4187 13.0244 12.6827 12.8535 12.8535C12.6827 13.0244 12.4187 13.0461 12.2246 12.918L12.1465 12.8535L9.30762 10.0146C8.5378 10.6304 7.56246 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2ZM6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10C8.433 10 10 8.433 10 6.5C10 4.567 8.433 3 6.5 3Z",fill:"currentColor"},child:[]}]})(t)}function x4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.50098 0.97831C8.5754 0.97831 9.46932 1.32269 10.0908 1.99198C10.7073 2.65592 11 3.57934 11 4.63358V5.99979H12C12.5522 5.99979 12.9999 6.4476 13 6.99979V12.9998C13 13.5521 12.5523 13.9998 12 13.9998H3C2.44772 13.9998 2 13.5521 2 12.9998V6.99979C2.00011 6.4476 2.44778 5.99979 3 5.99979H4V4.63554C4.00009 3.58126 4.29322 2.65732 4.91016 1.99296C5.53211 1.32327 6.42651 0.978401 7.50098 0.97831ZM3 12.9998H12V6.99979H3V12.9998ZM7.50098 1.97831C6.64571 1.9784 6.0396 2.24726 5.64355 2.67362C5.24259 3.10537 5.00009 3.76007 5 4.63554V5.99979H10V4.63358C10 3.75741 9.75854 3.10258 9.3584 2.67167C8.96322 2.24619 8.35692 1.97831 7.50098 1.97831Z",fill:"currentColor"},child:[]}]})(t)}function S4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M3.6893 6.37529C3.88335 6.24731 4.14742 6.26897 4.31821 6.43975C4.51323 6.63496 4.51323 6.95156 4.31821 7.14678L3.69907 7.76592C3.37878 8.08621 3.20737 8.25925 3.09751 8.39092L3.00473 8.51201C2.54529 9.18833 2.53677 10.0437 2.95395 10.679L3.03891 10.7933C3.14049 10.9167 3.30254 11.0803 3.61118 11.389C4.02302 11.8008 4.17689 11.9514 4.32114 12.0462L4.44223 12.1194C5.06223 12.4608 5.85391 12.4263 6.48813 11.9954L6.60923 11.9026C6.74094 11.7927 6.91473 11.6216 7.2352 11.3011L7.85337 10.6819C8.04855 10.4869 8.36517 10.487 8.5604 10.6819C8.7556 10.8771 8.75548 11.1937 8.5604 11.389L7.94223 12.0081C7.64648 12.3039 7.43399 12.5174 7.24008 12.678L7.04965 12.8226C6.11777 13.4555 4.9223 13.5259 3.96079 12.9964L3.77231 12.8821C3.52088 12.717 3.28054 12.4734 2.90415 12.097C2.62181 11.8146 2.41357 11.6085 2.25766 11.4173L2.11801 11.2278C1.468 10.2379 1.50252 8.94437 2.17758 7.95049L2.32212 7.76006C2.48279 7.56615 2.69629 7.35366 2.99204 7.05791L3.61118 6.43975L3.6893 6.37529ZM8.91391 5.37822C9.109 5.18318 9.42565 5.18352 9.62094 5.37822C9.81619 5.57347 9.81616 5.88999 9.62094 6.08525L6.08579 9.62041C5.89053 9.81567 5.57402 9.81567 5.37876 9.62041C5.18404 9.4251 5.18368 9.10846 5.37876 8.91338L8.91391 5.37822ZM8.1395 2.05889C9.1042 1.50111 10.2992 1.50903 11.2274 2.11846L11.4168 2.25811C11.6081 2.41402 11.8142 2.62226 12.0965 2.90459C12.4729 3.28097 12.7166 3.52133 12.8817 3.77275L12.9959 3.96123C13.4902 4.85869 13.4619 5.96014 12.9413 6.86064L12.8221 7.0501C12.7365 7.17616 12.6315 7.3007 12.4989 7.44268L12.0077 7.94268L11.3885 8.56084C11.1932 8.75595 10.8767 8.75605 10.6815 8.56084C10.4866 8.3656 10.4865 8.04899 10.6815 7.85381L11.3006 7.23564L11.7684 6.75908C11.8753 6.64519 11.9426 6.56569 11.995 6.48857L12.076 6.35967C12.4289 5.74954 12.4376 5.02132 12.119 4.44268L12.0457 4.32158C11.951 4.17733 11.8004 4.02345 11.3885 3.61162C11.0799 3.30299 10.9163 3.14093 10.7928 3.03936L10.6786 2.95439C10.083 2.56329 9.29401 2.54612 8.64048 2.92412L8.51157 3.00518C8.43446 3.05757 8.35494 3.12484 8.24106 3.23174L7.76548 3.69951L7.14633 4.31865C6.95112 4.5137 6.63453 4.51368 6.4393 4.31865C6.24411 4.12344 6.2442 3.80689 6.4393 3.61162L7.05747 2.99248L7.55747 2.50225C7.69965 2.36939 7.82384 2.26376 7.95005 2.17803L8.1395 2.05889Z",fill:"currentColor"},child:[]}]})(t)}function C4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.876907C11.1566 0.876907 14.1218 3.84164 14.1222 7.49898C14.1222 11.1566 11.1568 14.122 7.49915 14.122C3.84181 14.1216 0.877075 11.1564 0.877075 7.49898C0.877487 3.8419 3.84206 0.877318 7.49915 0.876907ZM7.49915 1.82613C4.36673 1.82654 1.82671 4.36657 1.82629 7.49898C1.82629 10.6317 4.36648 13.1714 7.49915 13.1718C10.6321 13.1718 13.172 10.632 13.172 7.49898C13.1716 4.36631 10.6319 1.82613 7.49915 1.82613ZM7.60071 6.00972C7.82862 6.05627 8.0001 6.25829 8.00012 6.49995V9.99995H9.00012V11H6.00012V9.99995H7.00012V6.99995H6.00012V5.99995H7.50012L7.60071 6.00972ZM7.50012 3.74995C7.91423 3.75006 8.2501 4.08583 8.25012 4.49995C8.25012 4.9141 7.91424 5.24985 7.50012 5.24995C7.08591 5.24995 6.75012 4.91417 6.75012 4.49995C6.75015 4.08576 7.08592 3.74995 7.50012 3.74995Z",fill:"currentColor"},child:[]}]})(t)}function w4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.50002 3C10.6922 3 13.3435 4.70671 14.9239 7.23535C15.0124 7.37717 15.0235 7.55201 14.9571 7.70215L14.9239 7.76465C13.3435 10.2933 10.6922 12 7.50002 12C4.30788 12 1.65659 10.2933 0.0761963 7.76465C-0.0249881 7.6026 -0.0249956 7.3974 0.0761963 7.23535L0.227563 7C1.82294 4.60122 4.4078 3 7.50002 3ZM7.50002 4C4.80354 4 2.53299 5.37905 1.09963 7.5C2.53299 9.62094 4.80354 11 7.50002 11C10.1963 11 12.4661 9.62068 13.8994 7.5C12.4661 5.3793 10.1963 4 7.50002 4ZM7.50002 5.5C8.60459 5.5 9.50002 6.39543 9.50002 7.5C9.50002 8.60457 8.60459 9.5 7.50002 9.5C6.39545 9.5 5.50002 8.60457 5.50002 7.5C5.50002 6.39543 6.39545 5.5 7.50002 5.5Z",fill:"currentColor"},child:[]}]})(t)}function E4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.64204 0.483078C7.10887 -0.10392 8.04464 -0.0624346 8.44477 0.608078L14.8393 11.3366C15.2761 12.0697 14.7473 12.9995 13.894 12.9997H1.1059C0.252569 12.9994 -0.275364 12.0697 0.161567 11.3366L6.55512 0.608078L6.64204 0.483078ZM7.45161 1.08366L7.4145 1.12077L1.01997 11.8483C0.980388 11.9148 1.02858 11.9994 1.1059 11.9997H13.894C13.9714 11.9995 14.0196 11.9149 13.9799 11.8483L7.58637 1.12077C7.55727 1.07208 7.49625 1.05933 7.45161 1.08366ZM7.49946 9.72624C7.91367 9.72624 8.24946 10.062 8.24946 10.4762C8.24933 10.8903 7.91359 11.2262 7.49946 11.2262C7.08549 11.226 6.74958 10.8902 6.74946 10.4762C6.74946 10.0622 7.08542 9.72645 7.49946 9.72624ZM7.49946 3.78679C7.88158 3.78679 8.1879 4.10418 8.17329 4.48601L8.01899 8.48698C8.00826 8.76597 7.77866 8.98698 7.49946 8.98698C7.22048 8.98673 6.99163 8.76581 6.9809 8.48698L6.82661 4.48601C6.812 4.10434 7.11756 3.78706 7.49946 3.78679Z",fill:"currentColor"},child:[]}]})(t)}function T4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M13.8779 2.00684C14.5082 2.07092 15 2.60285 15 3.25V10.75C15 11.4404 14.4404 12 13.75 12H9.92676L10.1699 13.2988L10.1797 13.4238C10.1678 13.7104 9.93104 13.95 9.62988 13.9502H5.37012C5.02598 13.95 4.76674 13.6371 4.83008 13.2988L5.07324 12H1.25C0.559644 12 2.14752e-08 11.4404 0 10.75V3.25C1.34221e-09 2.55964 0.559644 2 1.25 2H13.75L13.8779 2.00684ZM5.98926 12L5.79297 13.0498H9.20703L9.01074 12H5.98926ZM1.25 3C1.11193 3 1 3.11193 1 3.25V10.75C1 10.8881 1.11193 11 1.25 11H13.75C13.8881 11 14 10.8881 14 10.75V3.25C14 3.12931 13.9145 3.02833 13.8008 3.00488L13.75 3H1.25Z",fill:"currentColor"},child:[]}]})(t)}function A4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877045C11.1566 0.877045 14.1218 3.84178 14.1222 7.49911C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1565 0.877075 7.49911C0.877486 3.84203 3.84206 0.877456 7.49915 0.877045ZM7.49915 1.82626C4.36673 1.82667 1.8267 4.3667 1.82629 7.49911C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49911C13.1716 4.36645 10.6319 1.82626 7.49915 1.82626ZM9.14661 5.14658C9.34187 4.95131 9.65838 4.95131 9.85364 5.14658C10.0488 5.34185 10.0489 5.65838 9.85364 5.85361L8.20715 7.50009L9.85364 9.14658L9.91809 9.2247C10.0462 9.41877 10.0245 9.68278 9.85364 9.85361C9.68281 10.0244 9.4188 10.0461 9.22473 9.91806L9.14661 9.85361L7.50012 8.20712L5.85364 9.85361C5.65841 10.0488 5.34188 10.0488 5.14661 9.85361C4.95134 9.65835 4.95134 9.34184 5.14661 9.14658L6.79309 7.50009L5.14661 5.85361L5.08215 5.77548C4.95399 5.5814 4.97574 5.31744 5.14661 5.14658C5.31747 4.97571 5.58143 4.95396 5.77551 5.08212L5.85364 5.14658L7.50012 6.79306L9.14661 5.14658Z",fill:"currentColor"},child:[]}]})(t)}function Ru(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10.9688 3.21871C11.1933 2.99416 11.5567 2.99416 11.7813 3.21871C12.0056 3.44328 12.0057 3.80673 11.7813 4.03121L8.31251 7.49996L11.7813 10.9687L11.8555 11.0586C12.0026 11.2817 11.9777 11.5848 11.7813 11.7812C11.5849 11.9776 11.2818 12.0026 11.0586 11.8554L10.9688 11.7812L7.50001 8.31246L4.03126 11.7812C3.80677 12.0057 3.44332 12.0056 3.21876 11.7812C2.99421 11.5567 2.99421 11.1933 3.21876 10.9687L6.68751 7.49996L3.21876 4.03121L3.14454 3.94137C2.99723 3.71819 3.0223 3.41517 3.21876 3.21871C3.41522 3.02225 3.71823 2.99719 3.94141 3.14449L4.03126 3.21871L7.50001 6.68746L10.9688 3.21871Z",fill:"currentColor"},child:[]}]})(t)}function D4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10 4.00003V2.50003C10 2.22389 9.77614 2.00003 9.5 2.00003H2.5C2.22386 2.00003 2 2.22389 2 2.50003V9.50003C2 9.77617 2.22386 10 2.5 10H4V5.50003C4 4.6716 4.67157 4.00003 5.5 4.00003H10ZM5.5 5.00003C5.22386 5.00003 5 5.22389 5 5.50003V12.5C5.00002 12.7762 5.22387 13 5.5 13H12.5C12.7761 13 13 12.7762 13 12.5V5.50003C13 5.22389 12.7761 5.00003 12.5 5.00003H5.5ZM12.5 4.00003C13.3284 4.00003 14 4.6716 14 5.50003V12.5C14 13.3284 13.3284 14 12.5 14H5.5C4.67159 14 4.00002 13.3284 4 12.5V11H2.5C1.67157 11 1 10.3285 1 9.50003V2.50003C1 1.6716 1.67157 1.00003 2.5 1.00003H9.5C10.3284 1.00003 11 1.6716 11 2.50003V4.00003H12.5Z",fill:"currentColor"},child:[]}]})(t)}function N4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877075C11.1566 0.877075 14.1218 3.84181 14.1222 7.49915C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1566 0.877075 7.49915C0.877487 3.84206 3.84206 0.877487 7.49915 0.877075ZM7.49915 1.82629C4.36674 1.82671 1.82671 4.36674 1.82629 7.49915C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49915C13.1716 4.36648 10.6319 1.82629 7.49915 1.82629Z",fill:"currentColor"},child:[]}]})(t)}function kh(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M10.6015 3.90815C10.7903 3.61941 11.1779 3.53792 11.4667 3.72651C11.7555 3.91533 11.837 4.30288 11.6484 4.59175L7.39837 11.0917C7.29822 11.2449 7.13558 11.3469 6.95404 11.3701C6.77251 11.3932 6.58945 11.3359 6.45404 11.2128L3.70404 8.71284L3.62005 8.61811C3.44857 8.38342 3.4589 8.05252 3.66205 7.82905C3.86511 7.60576 4.19344 7.56371 4.4433 7.71186L4.54584 7.78706L6.75287 9.79292L10.6015 3.90815Z",fill:"currentColor"},child:[]}]})(t)}function sy(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.49915 0.877045C11.1566 0.877045 14.1218 3.84178 14.1222 7.49911C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1565 0.877075 7.49911C0.877486 3.84203 3.84206 0.877456 7.49915 0.877045ZM7.49915 1.82626C4.36673 1.82667 1.8267 4.3667 1.82629 7.49911C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49911C13.1716 4.36645 10.6319 1.82626 7.49915 1.82626ZM9.34094 4.96201C9.49988 4.73626 9.81241 4.68202 10.0382 4.84091C10.2639 4.99988 10.3182 5.31242 10.1593 5.53818L6.99231 10.0382C6.90692 10.1594 6.7719 10.236 6.62415 10.2481C6.47636 10.2602 6.33063 10.2064 6.22668 10.1007L4.64368 8.4874L5.00012 8.13779L5.35657 7.7872L6.51965 8.97079L9.34094 4.96201ZM4.64954 7.78036C4.84653 7.58696 5.16309 7.5903 5.35657 7.7872L4.64368 8.4874C4.45023 8.29035 4.4525 7.97382 4.64954 7.78036Z",fill:"currentColor"},child:[]}]})(t)}function O4(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M6.22457 3.08224C6.41865 2.95407 6.68261 2.97583 6.85348 3.14669C7.02434 3.31756 7.04609 3.58152 6.91793 3.7756L6.85348 3.85372L3.70699 7.00021H12.5C12.7761 7.00021 13 7.22406 13 7.50021C13 7.77635 12.7761 8.00021 12.5 8.00021H3.70699L6.85348 11.1467L6.91793 11.2248C7.04609 11.4189 7.02434 11.6829 6.85348 11.8537C6.68261 12.0246 6.41865 12.0463 6.22457 11.9182L6.14645 11.8537L2.14645 7.85372C1.95118 7.65846 1.95118 7.34195 2.14645 7.14669L6.14645 3.14669L6.22457 3.08224Z",fill:"currentColor"},child:[]}]})(t)}function Eo(t){return Ct({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M11.6914 1C12.0699 1.00016 12.4156 1.21422 12.585 1.55273L13.9473 4.27637L13.9863 4.38477C13.9952 4.42241 14 4.46105 14 4.5V13C14 13.5523 13.5523 14 13 14H2C1.44772 14 1 13.5523 1 13V4.5C1 4.42238 1.01802 4.34579 1.05273 4.27637L2.41504 1.55273L2.48633 1.43164C2.6712 1.16394 2.97741 1.00014 3.30859 1H11.6914ZM2 13H13V5H2V13ZM9.5 7C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5C5 7.22386 5.22386 7 5.5 7H9.5ZM2.30859 4H7V2H3.30859L2.30859 4ZM8 4H12.6914L11.6914 2H8V4Z",fill:"currentColor"},child:[]}]})(t)}const vd=new Intl.RelativeTimeFormat("en",{numeric:"auto"});function mu(t){const l=(typeof t=="string"?Date.parse(t):t)-Date.now(),a=Math.abs(l),s=6e4,u=s*60,c=u*24;return a<s?"just now":a<u?vd.format(Math.round(l/s),"minute"):a<c?vd.format(Math.round(l/u),"hour"):vd.format(Math.round(l/c),"day")}function R4(t){const r=new Date(t);return Number.isNaN(r.getTime())?t:r.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}function k4(){const t=Ce(y=>y.archivedTasks),r=Ce(y=>y.archiveWarnings),l=Ce(y=>y.isArchiveLoading),a=Ce(y=>y.archiveLoadError),s=Ce(y=>y.searchQuery),u=Ce(y=>y.loadArchivedTasks),c=Ce(y=>y.unarchiveTask),[d,g]=C.useState(s),[h,v]=C.useState(()=>new Set),p=C.useMemo(()=>{const y=d.trim().toLowerCase();return(t??[]).filter(T=>y?[T.frontmatter.title,T.slug,T.frontmatter.status,T.frontmatter.assignee??"",...T.frontmatter.tags??[]].join(" ").toLowerCase().includes(y):!0).sort((T,A)=>Date.parse(A.frontmatter.updated)-Date.parse(T.frontmatter.updated))},[t,d]),b=async y=>{v(w=>new Set(w).add(y));try{await c(y)}finally{v(w=>{const T=new Set(w);return T.delete(y),T})}};return S.jsxs("section",{className:"mx-auto max-w-5xl rounded-md border border-sb-iron bg-sb-canvas",children:[S.jsxs("div",{className:"flex flex-col gap-4 border-b border-sb-iron px-4 py-4 sm:flex-row sm:items-center sm:justify-between",children:[S.jsxs("div",{className:"min-w-0",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Eo,{"aria-hidden":"true",className:"h-4 w-4 text-sb-silver"}),S.jsx("h1",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-sb-frosted",children:"Archive"}),t?S.jsx("span",{className:"rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:t.length}):null]}),S.jsx("p",{className:"mt-1.5 text-[13px] text-sb-silver",children:"Browse filed tasks and restore them to their saved status."})]}),S.jsxs("label",{className:"relative block min-w-0 sm:w-80",children:[S.jsx("span",{className:"sr-only",children:"Filter archived tasks"}),S.jsx(Rh,{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-sb-silver"}),S.jsx("input",{"aria-label":"Filter archived tasks",className:"h-9 w-full rounded border border-sb-iron bg-sb-surface2 pl-9 pr-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Filter archive",value:d,onChange:y=>g(y.target.value)})]})]}),r.length>0?S.jsxs("p",{className:"border-b border-sb-iron px-4 py-2 font-mono text-[11px] text-sb-silver",children:[r.length," ",r.length===1?"archived task has":"archived tasks have"," ","validation warnings."]}):null,S.jsx("div",{className:"p-4",children:l&&t===null?S.jsx(D0,{label:"Loading archived tasks..."}):a&&t===null?S.jsxs("div",{className:"rounded-md border border-dashed border-sb-iron px-4 py-10 text-center",children:[S.jsxs("p",{className:"font-mono text-[12px] text-sb-silver",children:["Archive unavailable: ",a]}),S.jsxs("button",{className:"mt-4 inline-flex h-9 items-center gap-2 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:()=>void u(),children:[S.jsx(A0,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Retry"]})]}):p.length===0?S.jsx(D0,{label:t!=null&&t.length?"No archived tasks match this filter.":"Archive is empty."}):S.jsx("ul",{"aria-label":"Archived tasks",className:"space-y-2",children:p.map(y=>{const w=h.has(y.slug);return S.jsxs("li",{className:"flex flex-col gap-3 rounded-md border border-sb-iron bg-sb-surface p-3 transition-colors hover:border-sb-silver sm:flex-row sm:items-center sm:justify-between",children:[S.jsxs("div",{className:"min-w-0",children:[S.jsx("p",{className:"truncate font-sans text-[14px] font-medium text-sb-frosted",children:y.frontmatter.title}),S.jsx("p",{className:"mt-0.5 truncate font-mono text-[11px] text-sb-silver",children:y.slug})]}),S.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:[S.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-sb-iron px-2 py-1 font-mono text-[11px] text-sb-silver",children:[S.jsx("span",{"aria-hidden":"true",className:"h-2 w-2 bg-sb-frosted"}),y.frontmatter.status]}),S.jsxs("time",{className:"font-mono text-[11px] text-sb-silver",dateTime:y.frontmatter.updated,title:y.frontmatter.updated,children:["Updated ",mu(y.frontmatter.updated)]}),S.jsxs("button",{"aria-label":`Unarchive ${y.frontmatter.title}`,className:"inline-flex h-8 items-center gap-1.5 rounded border border-sb-iron bg-transparent px-2.5 text-[12px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2 disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:w,onClick:()=>void b(y.slug),children:[S.jsx(A0,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),w?"Restoring...":"Unarchive"]})]})]},y.slug)})})})]})}function D0({label:t}){return S.jsx("div",{className:"rounded-md border border-dashed border-sb-iron px-4 py-12 text-center font-mono text-[12px] text-sb-silver",children:t})}var M4=Object.defineProperty,ea=(t,r)=>M4(t,"name",{value:r,configurable:!0}),uy=!!(typeof window<"u"&&window.document&&window.document.createElement);function St(t,r,{checkForDefaultPrevented:l=!0}={}){return ea(function(s){if(t==null||t(s),l===!1||!s||!s.defaultPrevented)return r==null?void 0:r(s)},"handleEvent")}ea(St,"composeEventHandlers");function _4(t){var r;if(!uy)throw new Error("Cannot access window outside of the DOM");return((r=t==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)??window}ea(_4,"getOwnerWindow");function Kd(t){if(!uy)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}ea(Kd,"getOwnerDocument");function cy(t,r=!1){const{activeElement:l}=Kd(t);if(!(l!=null&&l.nodeName))return null;if(fy(l)&&l.contentDocument)return cy(l.contentDocument.body,r);if(r){const a=l.getAttribute("aria-activedescendant");if(a){const s=Kd(l).getElementById(a);if(s)return s}}return l}ea(cy,"getActiveElement");function fy(t){return t.tagName==="IFRAME"}ea(fy,"isFrame");var j4=Object.defineProperty,Mh=(t,r)=>j4(t,"name",{value:r,configurable:!0});function $d(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Mh($d,"setRef");function dy(...t){return r=>{let l=!1;const a=t.map(s=>{const u=$d(s,r);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let s=0;s<a.length;s++){const u=a[s];typeof u=="function"?u():$d(t[s],null)}}}}Mh(dy,"composeRefs");function At(...t){return C.useCallback(dy(...t),t)}Mh(At,"useComposedRefs");var z4=Object.defineProperty,Jn=(t,r)=>z4(t,"name",{value:r,configurable:!0});function L4(t,r){const l=C.createContext(r);l.displayName=t+"Context";const a=Jn(u=>{const{children:c,...d}=u,g=C.useMemo(()=>d,Object.values(d));return S.jsx(l.Provider,{value:g,children:c})},"Provider");a.displayName=t+"Provider";function s(u,c={}){const{optional:d=!1}=c,g=C.useContext(l);if(g)return g;if(r!==void 0)return r;if(!d)throw new Error(`\`${u}\` must be used within \`${t}\``)}return Jn(s,"useContext"),[a,s]}Jn(L4,"createContext");function ta(t,r=[]){let l=[];function a(u,c){const d=C.createContext(c);d.displayName=u+"Context";const g=l.length;l=[...l,c];const h=Jn(p=>{var E;const{scope:b,children:y,...w}=p,T=((E=b==null?void 0:b[t])==null?void 0:E[g])||d,A=C.useMemo(()=>w,Object.values(w));return S.jsx(T.Provider,{value:A,children:y})},"Provider");h.displayName=u+"Provider";function v(p,b,y={}){var E;const{optional:w=!1}=y,T=((E=b==null?void 0:b[t])==null?void 0:E[g])||d,A=C.useContext(T);if(A)return A;if(c!==void 0)return c;if(!w)throw new Error(`\`${p}\` must be used within \`${u}\``)}return Jn(v,"useContext"),[h,v]}Jn(a,"createContext");const s=Jn(()=>{const u=l.map(c=>C.createContext(c));return Jn(function(d){const g=(d==null?void 0:d[t])||u;return C.useMemo(()=>({[`__scope${t}`]:{...d,[t]:g}}),[d,g])},"useScope")},"createScope");return s.scopeName=t,[a,hy(s,...r)]}Jn(ta,"createContextScope");function hy(...t){const r=t[0];if(t.length===1)return r;const l=Jn(()=>{const a=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return Jn(function(u){const c=a.reduce((d,{useScope:g,scopeName:h})=>{const p=g(u)[`__scope${h}`];return{...d,...p}},{});return C.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return l.scopeName=r.scopeName,l}Jn(hy,"composeContextScopes");var en=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},B4=Object.defineProperty,H4=(t,r)=>B4(t,"name",{value:r,configurable:!0}),U4=Co[" useId ".trim().toString()]||(()=>{}),I4=0;function Fi(t){const[r,l]=C.useState(U4());return en(()=>{t||l(a=>a??String(I4++))},[t]),t||(r?`radix-${r}`:"")}H4(Fi,"useId");var V4=Object.defineProperty,q4=(t,r)=>V4(t,"name",{value:r,configurable:!0}),N0=Co[" useEffectEvent ".trim().toString()],O0=Co[" useInsertionEffect ".trim().toString()];function my(t){if(typeof N0=="function")return N0(t);const r=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof O0=="function"?O0(()=>{r.current=t}):en(()=>{r.current=t}),C.useMemo(()=>((...l)=>{var a;return(a=r.current)==null?void 0:a.call(r,...l)}),[])}q4(my,"useEffectEvent");var Y4=Object.defineProperty,To=(t,r)=>Y4(t,"name",{value:r,configurable:!0}),P4=Co[" useInsertionEffect ".trim().toString()]||en;function pu({prop:t,defaultProp:r,onChange:l=To(()=>{},"onChange"),caller:a}){const[s,u,c]=py({defaultProp:r,onChange:l}),d=t!==void 0,g=d?t:s,h=C.useCallback(v=>{var p;if(d){const b=gy(v)?v(t):v;b!==t&&((p=c.current)==null||p.call(c,b))}else u(v)},[d,t,u,c]);return[g,h]}To(pu,"useControllableState");function py({defaultProp:t,onChange:r}){const[l,a]=C.useState(t),s=C.useRef(l),u=C.useRef(r);return P4(()=>{u.current=r},[r]),C.useEffect(()=>{var c;s.current!==l&&((c=u.current)==null||c.call(u,l),s.current=l)},[l,s]),[l,a,u]}To(py,"useUncontrolledState");function gy(t){return typeof t=="function"}To(gy,"isFunction");var R0=Symbol("RADIX:SYNC_STATE");function X4(t,r,l,a){const{prop:s,defaultProp:u,onChange:c,caller:d}=r,g=s!==void 0,h=my(c),v=[{...l,state:u}];a&&v.push(a);const[p,b]=C.useReducer((A,E)=>{if(E.type===R0)return{...A,state:E.state};const _=t(A,E);return g&&!Object.is(_.state,A.state)&&h(_.state),_},...v),y=p.state,w=C.useRef(y);C.useEffect(()=>{w.current!==y&&(w.current=y,g||h(y))},[y,w,g]);const T=C.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return C.useEffect(()=>{g&&!Object.is(s,p.state)&&b({type:R0,state:s})},[s,p.state,g]),[T,b]}To(X4,"useControllableStateReducer");var Z4=Object.defineProperty,or=(t,r)=>Z4(t,"name",{value:r,configurable:!0});function El(t){const r=C.forwardRef((l,a)=>{let{children:s,...u}=l,c=null,d=!1;const g=[];Jd(s)&&typeof Zs=="function"&&(s=Zs(s._payload)),C.Children.forEach(s,b=>{var y;if(xy(b)){d=!0;const w=b;let T="child"in w.props?w.props.child:w.props.children;Jd(T)&&typeof Zs=="function"&&(T=Zs(T._payload)),c=F4(w,T),g.push((y=c==null?void 0:c.props)==null?void 0:y.children)}else g.push(b)}),c?c=C.cloneElement(c,void 0,g):!d&&C.Children.count(s)===1&&C.isValidElement(s)&&(c=s);const h=c?by(c):void 0,v=At(a,h);if(!c){if(s||s===0)throw new Error(d?$4(t):K4(t));return s}const p=yy(u,c.props??{});return c.type!==C.Fragment&&(p.ref=a?v:h),C.cloneElement(c,p)});return r.displayName=`${t}.Slot`,r}or(El,"createSlot");var vy=Symbol.for("radix.slottable");function G4(t){const r=or(l=>"child"in l?l.children(l.child):l.children,"Slottable");return r.displayName=`${t}.Slottable`,r.__radixId=vy,r}or(G4,"createSlottable");var F4=or((t,r)=>{if("child"in t.props){const l=t.props.child;return C.isValidElement(l)?C.cloneElement(l,void 0,t.props.children(l.props.children)):null}return C.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function yy(t,r){const l={...r};for(const a in r){const s=t[a],u=r[a];/^on[A-Z]/.test(a)?s&&u?l[a]=(...d)=>{const g=u(...d);return s(...d),g}:s&&(l[a]=s):a==="style"?l[a]={...s,...u}:a==="className"&&(l[a]=[s,u].filter(Boolean).join(" "))}return{...t,...l}}or(yy,"mergeProps");function by(t){var a,s;let r=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?t.ref:(r=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}or(by,"getElementRef");function xy(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===vy}or(xy,"isSlottable");var Q4=Symbol.for("react.lazy");function Jd(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Q4&&"_payload"in t&&Sy(t._payload)}or(Jd,"isLazyComponent");function Sy(t){return typeof t=="object"&&t!==null&&"then"in t}or(Sy,"isPromiseLike");var K4=or(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$4=or(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Zs=Co[" use ".trim().toString()],J4=Object.defineProperty,W4=(t,r)=>J4(t,"name",{value:r,configurable:!0}),eS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=eS.reduce((t,r)=>{const l=El(`Primitive.${r}`),a=C.forwardRef((s,u)=>{const{asChild:c,...d}=s,g=c?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(g,{...d,ref:u})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function Cy(t,r){t&&lr.flushSync(()=>t.dispatchEvent(r))}W4(Cy,"dispatchDiscreteCustomEvent");var tS=Object.defineProperty,nS=(t,r)=>tS(t,"name",{value:r,configurable:!0});function xr(t){const r=C.useRef(t);return C.useEffect(()=>{r.current=t}),C.useMemo(()=>((...l)=>{var a;return(a=r.current)==null?void 0:a.call(r,...l)}),[])}nS(xr,"useCallbackRef");var rS=Object.defineProperty,Zt=(t,r)=>rS(t,"name",{value:r,configurable:!0}),Wd="dismissableLayer.update",lS="dismissableLayer.pointerDownOutside",iS="dismissableLayer.focusOutside",k0,wy=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ey=C.forwardRef(Zt(function(r,l){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:g,onDismiss:h,...v}=r,p=C.useContext(wy),[b,y]=C.useState(null),w=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=C.useState({}),A=At(l,y),E=Array.from(p.layers),[_]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=_?E.indexOf(_):-1,N=b?E.indexOf(b):-1,z=p.layersWithOutsidePointerEventsDisabled.size>0,k=N>=R,H=C.useRef(!1),I=Ay(K=>{c==null||c(K),g==null||g(K),K.defaultPrevented||h==null||h()},{ownerDocument:w,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:H,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(K=>{if(!(K instanceof Node))return!1;const oe=[...p.branches].some(te=>te.contains(K));return k&&!oe},[p.branches,k])}),j=Dy(K=>{if(s&&H.current)return;const oe=K.target;[...p.branches].some(W=>W.contains(oe))||(d==null||d(K),g==null||g(K),K.defaultPrevented||h==null||h())},w),Q=b?N===E.length-1:!1,Z=xr(K=>{K.key==="Escape"&&(u==null||u(K),!K.defaultPrevented&&h&&(K.preventDefault(),h()))});return C.useEffect(()=>{if(Q)return w.addEventListener("keydown",Z,{capture:!0}),()=>w.removeEventListener("keydown",Z,{capture:!0})},[w,Q,Z]),C.useEffect(()=>{if(b)return a&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(k0=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),eh(),()=>{a&&(p.layersWithOutsidePointerEventsDisabled.delete(b),p.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=k0))}},[b,w,a,p]),C.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),eh())},[b,p]),C.useEffect(()=>{const K=Zt(()=>T({}),"handleUpdate");return document.addEventListener(Wd,K),()=>document.removeEventListener(Wd,K)},[]),S.jsx(qt.div,{...v,ref:A,style:{pointerEvents:z?k?"auto":"none":void 0,...r.style},onFocusCapture:St(r.onFocusCapture,j.onFocusCapture),onBlurCapture:St(r.onBlurCapture,j.onBlurCapture),onPointerDownCapture:St(r.onPointerDownCapture,I.onPointerDownCapture)})},"DismissableLayer"));function Ty(){const t=C.useContext(wy),[r,l]=C.useState(null);return C.useEffect(()=>{if(r)return t.dismissableSurfaces.add(r),()=>{t.dismissableSurfaces.delete(r)}},[r,t.dismissableSurfaces]),l}Zt(Ty,"useDismissableLayerSurface");var aS=Zt(()=>!0,"IS_TRUE");function Ay(t,r){const{ownerDocument:l=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:u,shouldHandlePointerDownOutside:c=aS}=r,d=xr(t),g=C.useRef(!1),h=C.useRef(!1),v=C.useRef(new Map),p=C.useRef(()=>{});return C.useEffect(()=>{function b(){h.current=!1,s.current=!1,v.current.clear()}Zt(b,"resetOutsideInteraction");function y(){return Array.from(v.current.values()).some(Boolean)}Zt(y,"isOutsideInteractionIntercepted");function w(R){if(!h.current)return;const N=R.target;N instanceof Node&&[...u].some(k=>k.contains(N))||v.current.set(R.type,!0),R.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Zt(w,"handleInteractionCapture");function T(R){h.current&&v.current.set(R.type,!1)}Zt(T,"handleInteractionBubble");const A=Zt(R=>{if(R.target&&!g.current){let N=function(){l.removeEventListener("click",p.current);const k=y();b(),k||_h(lS,d,z,{discrete:!0})};if(Zt(N,"handleAndDispatchPointerDownOutsideEvent"),!c(R.target)){l.removeEventListener("click",p.current),b(),g.current=!1;return}const z={originalEvent:R};h.current=!0,s.current=a&&R.button===0,v.current.clear(),!a||R.button!==0?N():(l.removeEventListener("click",p.current),p.current=N,l.addEventListener("click",p.current,{once:!0}))}else l.removeEventListener("click",p.current),b();g.current=!1},"handlePointerDown"),E=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const R of E)l.addEventListener(R,w,!0),l.addEventListener(R,T);const _=window.setTimeout(()=>{l.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(_),l.removeEventListener("pointerdown",A),l.removeEventListener("click",p.current);for(const R of E)l.removeEventListener(R,w,!0),l.removeEventListener(R,T)}},[l,d,a,s,u,c]),{onPointerDownCapture:Zt(()=>g.current=!0,"onPointerDownCapture")}}Zt(Ay,"usePointerDownOutside");function Dy(t,r=globalThis==null?void 0:globalThis.document){const l=xr(t),a=C.useRef(!1);return C.useEffect(()=>{const s=Zt(u=>{u.target&&!a.current&&_h(iS,l,{originalEvent:u},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,l]),{onFocusCapture:Zt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:Zt(()=>a.current=!1,"onBlurCapture")}}Zt(Dy,"useFocusOutside");function eh(){const t=new CustomEvent(Wd);document.dispatchEvent(t)}Zt(eh,"dispatchUpdate");function _h(t,r,l,{discrete:a}){const s=l.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:l});r&&s.addEventListener(t,r,{once:!0}),a?Cy(s,u):s.dispatchEvent(u)}Zt(_h,"handleAndDispatchCustomEvent");var oS=Object.defineProperty,cn=(t,r)=>oS(t,"name",{value:r,configurable:!0}),yd="focusScope.autoFocusOnMount",bd="focusScope.autoFocusOnUnmount",M0={bubbles:!1,cancelable:!0},Ny=C.forwardRef(cn(function(r,l){const{loop:a=!1,trapped:s=!1,onMountAutoFocus:u,onUnmountAutoFocus:c,...d}=r,[g,h]=C.useState(null),v=xr(u),p=xr(c),b=C.useRef(null),y=At(l,h),w=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(s){let A=function(N){if(w.paused||!g)return;const z=N.target;g.contains(z)?b.current=z:Yr(b.current,{select:!0})},E=function(N){if(w.paused||!g)return;const z=N.relatedTarget;z!==null&&(g.contains(z)||Yr(b.current,{select:!0}))},_=function(N){if(document.activeElement===document.body)for(const k of N)k.removedNodes.length>0&&Yr(g)};cn(A,"handleFocusIn"),cn(E,"handleFocusOut"),cn(_,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",E);const R=new MutationObserver(_);return g&&R.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",E),R.disconnect()}}},[s,g,w.paused]),C.useEffect(()=>{if(g){_0.add(w);const A=document.activeElement;if(!g.contains(A)){const _=new CustomEvent(yd,M0);g.addEventListener(yd,v),g.dispatchEvent(_),_.defaultPrevented||(Oy(jy(jh(g)),{select:!0}),document.activeElement===A&&Yr(g))}return()=>{g.removeEventListener(yd,v),setTimeout(()=>{const _=new CustomEvent(bd,M0);g.addEventListener(bd,p),g.dispatchEvent(_),_.defaultPrevented||Yr(A??document.body,{select:!0}),g.removeEventListener(bd,p),_0.remove(w)},0)}}},[g,v,p,w]);const T=C.useCallback(A=>{if(!a&&!s||w.paused)return;const E=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,_=document.activeElement;if(E&&_){const R=A.currentTarget,[N,z]=Ry(R);N&&z?!A.shiftKey&&_===z?(A.preventDefault(),a&&Yr(N,{select:!0})):A.shiftKey&&_===N&&(A.preventDefault(),a&&Yr(z,{select:!0})):_===R&&A.preventDefault()}},[a,s,w.paused]);return S.jsx(qt.div,{tabIndex:-1,...d,ref:y,onKeyDown:T})},"FocusScope"));function Oy(t,{select:r=!1}={}){const l=document.activeElement;for(const a of t)if(Yr(a,{select:r}),document.activeElement!==l)return}cn(Oy,"focusFirst");function Ry(t){const r=jh(t),l=th(r,t),a=th(r.reverse(),t);return[l,a]}cn(Ry,"getTabbableEdges");function jh(t){const r=[],l=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:cn(a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;l.nextNode();)r.push(l.currentNode);return r}cn(jh,"getTabbableCandidates");function th(t,r){const l=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(l?!a.checkVisibility({checkVisibilityCSS:!0}):ky(a,{upTo:r})))return a}cn(th,"findVisible");function ky(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}cn(ky,"isHidden");function My(t){return t instanceof HTMLInputElement&&"select"in t}cn(My,"isSelectableInput");function Yr(t,{select:r=!1}={}){if(t&&t.focus){const l=document.activeElement;t.focus({preventScroll:!0}),t!==l&&My(t)&&r&&t.select()}}cn(Yr,"focus");var _0=_y();function _y(){let t=[];return{add(r){const l=t[0];r!==l&&(l==null||l.pause()),t=nh(t,r),t.unshift(r)},remove(r){var l;t=nh(t,r),(l=t[0])==null||l.resume()}}}cn(_y,"createFocusScopesStack");function nh(t,r){const l=[...t],a=l.indexOf(r);return a!==-1&&l.splice(a,1),l}cn(nh,"arrayRemove");function jy(t){return t.filter(r=>r.tagName!=="A")}cn(jy,"removeLinks");var sS=Object.defineProperty,uS=(t,r)=>sS(t,"name",{value:r,configurable:!0}),zy=C.forwardRef(uS(function(r,l){var g;const{container:a,...s}=r,[u,c]=C.useState(!1);en(()=>c(!0),[]);const d=a||u&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return d?lr.createPortal(S.jsx(qt.div,{...s,ref:l}),d):null},"Portal")),cS=Object.defineProperty,Zr=(t,r)=>cS(t,"name",{value:r,configurable:!0});function Ly(t,r){return C.useReducer((l,a)=>r[l][a]??l,t)}Zr(Ly,"useStateMachine");var ku=Zr(t=>{const{present:r,children:l}=t,a=By(r),s=typeof l=="function"?l({present:a.isPresent}):C.Children.only(l),u=Hy(a.ref,Uy(s));return typeof l=="function"||a.isPresent?C.cloneElement(s,{ref:u}):null},"Presence");function By(t){const[r,l]=C.useState(),a=C.useRef(null),s=C.useRef(t),u=C.useRef("none"),c=C.useRef(void 0),d=t?"mounted":"unmounted",[g,h]=Ly(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{g==="mounted"?(u.current=c.current??Gi(a.current),c.current=void 0):u.current="none"},[g]),en(()=>{const v=a.current,p=s.current;if(p!==t){const y=u.current,w=Gi(v);t?(c.current=w,h("MOUNT")):w==="none"||(v==null?void 0:v.display)==="none"?h("UNMOUNT"):h(p&&y!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,h]),en(()=>{if(r){let v;const p=r.ownerDocument.defaultView??window,b=Zr(w=>{const A=Gi(a.current).includes(CSS.escape(w.animationName));if(w.target===r&&A&&(h("ANIMATION_END"),!s.current)){const E=r.style.animationFillMode;r.style.animationFillMode="forwards",v=p.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=E)})}},"handleAnimationEnd"),y=Zr(w=>{w.target===r&&(u.current=Gi(a.current))},"handleAnimationStart");return r.addEventListener("animationstart",y),r.addEventListener("animationcancel",b),r.addEventListener("animationend",b),()=>{p.clearTimeout(v),r.removeEventListener("animationstart",y),r.removeEventListener("animationcancel",b),r.removeEventListener("animationend",b)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:C.useCallback(v=>{if(v){const p=getComputedStyle(v);a.current=p,c.current=Gi(p)}else a.current=null;l(v)},[])}}Zr(By,"usePresence");function rh(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Zr(rh,"setRef");function Hy(...t){const r=C.useRef(t);return r.current=t,C.useCallback(l=>{const a=r.current;let s=!1;const u=a.map(c=>{const d=rh(c,l);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():rh(a[c],null)}}},[])}Zr(Hy,"useStableComposedRefs");function Gi(t){return(t==null?void 0:t.animationName)||"none"}Zr(Gi,"getAnimationName");function Uy(t){var a,s;let r=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?t.ref:(r=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}Zr(Uy,"getElementRef");var fS=Object.defineProperty,zh=(t,r)=>fS(t,"name",{value:r,configurable:!0}),Gs=0,pr=null;function dS(t){return Mu(),t.children}zh(dS,"FocusGuards");function Mu(){C.useEffect(()=>{pr||(pr={start:lh(),end:lh()});const{start:t,end:r}=pr;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Gs++,()=>{Gs===1&&(pr==null||pr.start.remove(),pr==null||pr.end.remove(),pr=null),Gs=Math.max(0,Gs-1)}},[])}zh(Mu,"useFocusGuards");function lh(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}zh(lh,"createFocusGuard");var vr=function(){return vr=Object.assign||function(r){for(var l,a=1,s=arguments.length;a<s;a++){l=arguments[a];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r},vr.apply(this,arguments)};function Iy(t,r){var l={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(l[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(l[a[s]]=t[a[s]]);return l}function hS(t,r,l){if(l||arguments.length===2)for(var a=0,s=r.length,u;a<s;a++)(u||!(a in r))&&(u||(u=Array.prototype.slice.call(r,0,a)),u[a]=r[a]);return t.concat(u||Array.prototype.slice.call(r))}var lu="right-scroll-bar-position",iu="width-before-scroll-bar",mS="with-scroll-bars-hidden",pS="--removed-body-scroll-bar-size";function xd(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function gS(t,r){var l=C.useState(function(){return{value:t,callback:r,facade:{get current(){return l.value},set current(a){var s=l.value;s!==a&&(l.value=a,l.callback(a,s))}}}})[0];return l.callback=r,l.facade}var vS=typeof window<"u"?C.useLayoutEffect:C.useEffect,j0=new WeakMap;function yS(t,r){var l=gS(null,function(a){return t.forEach(function(s){return xd(s,a)})});return vS(function(){var a=j0.get(l);if(a){var s=new Set(a),u=new Set(t),c=l.current;s.forEach(function(d){u.has(d)||xd(d,null)}),u.forEach(function(d){s.has(d)||xd(d,c)})}j0.set(l,t)},[t]),l}function bS(t){return t}function xS(t,r){r===void 0&&(r=bS);var l=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:t},useMedium:function(u){var c=r(u,a);return l.push(c),function(){l=l.filter(function(d){return d!==c})}},assignSyncMedium:function(u){for(a=!0;l.length;){var c=l;l=[],c.forEach(u)}l={push:function(d){return u(d)},filter:function(){return l}}},assignMedium:function(u){a=!0;var c=[];if(l.length){var d=l;l=[],d.forEach(u),c=l}var g=function(){var v=c;c=[],v.forEach(u)},h=function(){return Promise.resolve().then(g)};h(),l={push:function(v){c.push(v),h()},filter:function(v){return c=c.filter(v),l}}}};return s}function SS(t){t===void 0&&(t={});var r=xS(null);return r.options=vr({async:!0,ssr:!1},t),r}var Vy=function(t){var r=t.sideCar,l=Iy(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return C.createElement(a,vr({},l))};Vy.isSideCarExport=!0;function CS(t,r){return t.useMedium(r),Vy}var qy=SS(),Sd=function(){},_u=C.forwardRef(function(t,r){var l=C.useRef(null),a=C.useState({onScrollCapture:Sd,onWheelCapture:Sd,onTouchMoveCapture:Sd}),s=a[0],u=a[1],c=t.forwardProps,d=t.children,g=t.className,h=t.removeScrollBar,v=t.enabled,p=t.shards,b=t.sideCar,y=t.noRelative,w=t.noIsolation,T=t.inert,A=t.allowPinchZoom,E=t.as,_=E===void 0?"div":E,R=t.gapMode,N=Iy(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=b,k=yS([l,r]),H=vr(vr({},N),s);return C.createElement(C.Fragment,null,v&&C.createElement(z,{sideCar:qy,removeScrollBar:h,shards:p,noRelative:y,noIsolation:w,inert:T,setCallbacks:u,allowPinchZoom:!!A,lockRef:l,gapMode:R}),c?C.cloneElement(C.Children.only(d),vr(vr({},H),{ref:k})):C.createElement(_,vr({},H,{className:g,ref:k}),d))});_u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_u.classNames={fullWidth:iu,zeroRight:lu};var wS=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ES(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=wS();return r&&t.setAttribute("nonce",r),t}function TS(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function AS(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var DS=function(){var t=0,r=null;return{add:function(l){t==0&&(r=ES())&&(TS(r,l),AS(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},NS=function(){var t=DS();return function(r,l){C.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&l])}},Yy=function(){var t=NS(),r=function(l){var a=l.styles,s=l.dynamic;return t(a,s),null};return r},OS={left:0,top:0,right:0,gap:0},Cd=function(t){return parseInt(t||"",10)||0},RS=function(t){var r=window.getComputedStyle(document.body),l=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],s=r[t==="padding"?"paddingRight":"marginRight"];return[Cd(l),Cd(a),Cd(s)]},kS=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return OS;var r=RS(t),l=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-l+r[2]-r[0])}},MS=Yy(),Qi="data-scroll-locked",_S=function(t,r,l,a){var s=t.left,u=t.top,c=t.right,d=t.gap;return l===void 0&&(l="margin"),`
50
+ .`.concat(mS,` {
51
+ overflow: hidden `).concat(a,`;
52
+ padding-right: `).concat(d,"px ").concat(a,`;
53
+ }
54
+ body[`).concat(Qi,`] {
55
+ overflow: hidden `).concat(a,`;
56
+ overscroll-behavior: contain;
57
+ `).concat([r&&"position: relative ".concat(a,";"),l==="margin"&&`
58
+ padding-left: `.concat(s,`px;
59
+ padding-top: `).concat(u,`px;
60
+ padding-right: `).concat(c,`px;
61
+ margin-left:0;
62
+ margin-top:0;
63
+ margin-right: `).concat(d,"px ").concat(a,`;
64
+ `),l==="padding"&&"padding-right: ".concat(d,"px ").concat(a,";")].filter(Boolean).join(""),`
65
+ }
66
+
67
+ .`).concat(lu,` {
68
+ right: `).concat(d,"px ").concat(a,`;
69
+ }
70
+
71
+ .`).concat(iu,` {
72
+ margin-right: `).concat(d,"px ").concat(a,`;
73
+ }
74
+
75
+ .`).concat(lu," .").concat(lu,` {
76
+ right: 0 `).concat(a,`;
77
+ }
78
+
79
+ .`).concat(iu," .").concat(iu,` {
80
+ margin-right: 0 `).concat(a,`;
81
+ }
82
+
83
+ body[`).concat(Qi,`] {
84
+ `).concat(pS,": ").concat(d,`px;
85
+ }
86
+ `)},z0=function(){var t=parseInt(document.body.getAttribute(Qi)||"0",10);return isFinite(t)?t:0},jS=function(){C.useEffect(function(){return document.body.setAttribute(Qi,(z0()+1).toString()),function(){var t=z0()-1;t<=0?document.body.removeAttribute(Qi):document.body.setAttribute(Qi,t.toString())}},[])},zS=function(t){var r=t.noRelative,l=t.noImportant,a=t.gapMode,s=a===void 0?"margin":a;jS();var u=C.useMemo(function(){return kS(s)},[s]);return C.createElement(MS,{styles:_S(u,!r,s,l?"":"!important")})},ih=!1;if(typeof window<"u")try{var Fs=Object.defineProperty({},"passive",{get:function(){return ih=!0,!0}});window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch{ih=!1}var qi=ih?{passive:!1}:!1,LS=function(t){return t.tagName==="TEXTAREA"},Py=function(t,r){if(!(t instanceof Element))return!1;var l=window.getComputedStyle(t);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!LS(t)&&l[r]==="visible")},BS=function(t){return Py(t,"overflowY")},HS=function(t){return Py(t,"overflowX")},L0=function(t,r){var l=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Xy(t,a);if(s){var u=Zy(t,a),c=u[1],d=u[2];if(c>d)return!0}a=a.parentNode}while(a&&a!==l.body);return!1},US=function(t){var r=t.scrollTop,l=t.scrollHeight,a=t.clientHeight;return[r,l,a]},IS=function(t){var r=t.scrollLeft,l=t.scrollWidth,a=t.clientWidth;return[r,l,a]},Xy=function(t,r){return t==="v"?BS(r):HS(r)},Zy=function(t,r){return t==="v"?US(r):IS(r)},VS=function(t,r){return t==="h"&&r==="rtl"?-1:1},qS=function(t,r,l,a,s){var u=VS(t,window.getComputedStyle(r).direction),c=u*a,d=l.target,g=r.contains(d),h=!1,v=c>0,p=0,b=0;do{if(!d)break;var y=Zy(t,d),w=y[0],T=y[1],A=y[2],E=T-A-u*w;(w||E)&&Xy(t,d)&&(p+=E,b+=w);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!g&&d!==document.body||g&&(r.contains(d)||r===d));return(v&&Math.abs(p)<1||!v&&Math.abs(b)<1)&&(h=!0),h},Qs=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},B0=function(t){return[t.deltaX,t.deltaY]},H0=function(t){return t&&"current"in t?t.current:t},YS=function(t,r){return t[0]===r[0]&&t[1]===r[1]},PS=function(t){return`
87
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
88
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
89
+ `)},XS=0,Yi=[];function ZS(t){var r=C.useRef([]),l=C.useRef([0,0]),a=C.useRef(),s=C.useState(XS++)[0],u=C.useState(Yy)[0],c=C.useRef(t);C.useEffect(function(){c.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var T=hS([t.lockRef.current],(t.shards||[]).map(H0),!0).filter(Boolean);return T.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var d=C.useCallback(function(T,A){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!c.current.allowPinchZoom;var E=Qs(T),_=l.current,R="deltaX"in T?T.deltaX:_[0]-E[0],N="deltaY"in T?T.deltaY:_[1]-E[1],z,k=T.target,H=Math.abs(R)>Math.abs(N)?"h":"v";if("touches"in T&&H==="h"&&k.type==="range")return!1;var I=window.getSelection(),j=I&&I.anchorNode,Q=j?j===k||j.contains(k):!1;if(Q)return!1;var Z=L0(H,k);if(!Z)return!0;if(Z?z=H:(z=H==="v"?"h":"v",Z=L0(H,k)),!Z)return!1;if(!a.current&&"changedTouches"in T&&(R||N)&&(a.current=z),!z)return!0;var K=a.current||z;return qS(K,A,T,K==="h"?R:N)},[]),g=C.useCallback(function(T){var A=T;if(!(!Yi.length||Yi[Yi.length-1]!==u)){var E="deltaY"in A?B0(A):Qs(A),_=r.current.filter(function(z){return z.name===A.type&&(z.target===A.target||A.target===z.shadowParent)&&YS(z.delta,E)})[0];if(_&&_.should){A.cancelable&&A.preventDefault();return}if(!_){var R=(c.current.shards||[]).map(H0).filter(Boolean).filter(function(z){return z.contains(A.target)}),N=R.length>0?d(A,R[0]):!c.current.noIsolation;N&&A.cancelable&&A.preventDefault()}}},[]),h=C.useCallback(function(T,A,E,_){var R={name:T,delta:A,target:E,should:_,shadowParent:GS(E)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(N){return N!==R})},1)},[]),v=C.useCallback(function(T){l.current=Qs(T),a.current=void 0},[]),p=C.useCallback(function(T){h(T.type,B0(T),T.target,d(T,t.lockRef.current))},[]),b=C.useCallback(function(T){h(T.type,Qs(T),T.target,d(T,t.lockRef.current))},[]);C.useEffect(function(){return Yi.push(u),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",g,qi),document.addEventListener("touchmove",g,qi),document.addEventListener("touchstart",v,qi),function(){Yi=Yi.filter(function(T){return T!==u}),document.removeEventListener("wheel",g,qi),document.removeEventListener("touchmove",g,qi),document.removeEventListener("touchstart",v,qi)}},[]);var y=t.removeScrollBar,w=t.inert;return C.createElement(C.Fragment,null,w?C.createElement(u,{styles:PS(s)}):null,y?C.createElement(zS,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function GS(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const FS=CS(qy,ZS);var Lh=C.forwardRef(function(t,r){return C.createElement(_u,vr({},t,{ref:r,sideCar:FS}))});Lh.classNames=_u.classNames;var QS=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},Pi=new WeakMap,Ks=new WeakMap,$s={},wd=0,Gy=function(t){return t&&(t.host||Gy(t.parentNode))},KS=function(t,r){return r.map(function(l){if(t.contains(l))return l;var a=Gy(l);return a&&t.contains(a)?a:(console.error("aria-hidden",l,"in not contained inside",t,". Doing nothing"),null)}).filter(function(l){return!!l})},$S=function(t,r,l,a){var s=KS(r,Array.isArray(t)?t:[t]);$s[l]||($s[l]=new WeakMap);var u=$s[l],c=[],d=new Set,g=new Set(s),h=function(p){!p||d.has(p)||(d.add(p),h(p.parentNode))};s.forEach(h);var v=function(p){!p||g.has(p)||Array.prototype.forEach.call(p.children,function(b){if(d.has(b))v(b);else try{var y=b.getAttribute(a),w=y!==null&&y!=="false",T=(Pi.get(b)||0)+1,A=(u.get(b)||0)+1;Pi.set(b,T),u.set(b,A),c.push(b),T===1&&w&&Ks.set(b,!0),A===1&&b.setAttribute(l,"true"),w||b.setAttribute(a,"true")}catch(E){console.error("aria-hidden: cannot operate on ",b,E)}})};return v(r),d.clear(),wd++,function(){c.forEach(function(p){var b=Pi.get(p)-1,y=u.get(p)-1;Pi.set(p,b),u.set(p,y),b||(Ks.has(p)||p.removeAttribute(a),Ks.delete(p)),y||p.removeAttribute(l)}),wd--,wd||(Pi=new WeakMap,Pi=new WeakMap,Ks=new WeakMap,$s={})}},Fy=function(t,r,l){l===void 0&&(l="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),s=QS(t);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),$S(a,s,l,"aria-hidden")):function(){return null}},JS=Object.defineProperty,Bn=(t,r)=>JS(t,"name",{value:r,configurable:!0}),Bh="Dialog",[Qy,RD]=ta(Bh),[WS,sr]=Qy(Bh),Ky=Bn(t=>{const{__scopeDialog:r,children:l,open:a,defaultOpen:s,onOpenChange:u,modal:c=!0}=t,d=C.useRef(null),g=C.useRef(null),[h,v]=pu({prop:a,defaultProp:s??!1,onChange:u,caller:Bh}),[p,b]=C.useState(0),[y,w]=C.useState(0);return S.jsx(WS,{scope:r,triggerRef:d,contentRef:g,contentId:Fi(),titleId:Fi(),descriptionId:Fi(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:b,setDescriptionCount:w,open:h,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(T=>!T),[v]),modal:c,children:l})},"Dialog"),e6="DialogTrigger",t6=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,...s}=r,u=sr(e6,a),c=At(l,u.triggerRef);return S.jsx(qt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":ju(u.open),...s,ref:c,onClick:St(r.onClick,u.onOpenToggle)})},"DialogTrigger")),$y="DialogPortal",[n6,Jy]=Qy($y,{forceMount:void 0}),Wy=Bn(t=>{const{__scopeDialog:r,forceMount:l,children:a,container:s}=t,u=sr($y,r);return S.jsx(n6,{scope:r,forceMount:l,children:C.Children.map(a,c=>S.jsx(ku,{present:l||u.open,children:S.jsx(zy,{asChild:!0,container:s,children:c})}))})},"DialogPortal"),ah="DialogOverlay",eb=C.forwardRef(Bn(function(r,l){const a=Jy(ah,r.__scopeDialog),{forceMount:s=a.forceMount,...u}=r,c=sr(ah,r.__scopeDialog);return c.modal?S.jsx(ku,{present:s||c.open,children:S.jsx(l6,{...u,ref:l})}):null},"DialogOverlay")),r6=El("DialogOverlay.RemoveScroll"),l6=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,...s}=r,u=sr(ah,a),c=Ty(),d=At(l,c);return S.jsx(Lh,{as:r6,allowPinchZoom:!0,shards:[u.contentRef],children:S.jsx(qt.div,{"data-state":ju(u.open),...s,ref:d,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),mo="DialogContent",tb=C.forwardRef(Bn(function(r,l){const a=Jy(mo,r.__scopeDialog),{forceMount:s=a.forceMount,...u}=r,c=sr(mo,r.__scopeDialog);return S.jsx(ku,{present:s||c.open,children:c.modal?S.jsx(i6,{...u,ref:l}):S.jsx(a6,{...u,ref:l})})},"DialogContent")),i6=C.forwardRef(Bn(function(r,l){const a=sr(mo,r.__scopeDialog),s=C.useRef(null),u=At(l,a.contentRef,s);return C.useEffect(()=>{const c=s.current;if(c)return Fy(c)},[]),S.jsx(nb,{...r,ref:u,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:St(r.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=a.triggerRef.current)==null||d.focus()}),onPointerDownOutside:St(r.onPointerDownOutside,c=>{const d=c.detail.originalEvent,g=d.button===0&&d.ctrlKey===!0;(d.button===2||g)&&c.preventDefault()}),onFocusOutside:St(r.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),a6=C.forwardRef(Bn(function(r,l){const a=sr(mo,r.__scopeDialog),s=C.useRef(!1),u=C.useRef(!1);return S.jsx(nb,{...r,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,g;(d=r.onCloseAutoFocus)==null||d.call(r,c),c.defaultPrevented||(s.current||(g=a.triggerRef.current)==null||g.focus(),c.preventDefault()),s.current=!1,u.current=!1},onInteractOutside:c=>{var h,v;(h=r.onInteractOutside)==null||h.call(r,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=c.target;((v=a.triggerRef.current)==null?void 0:v.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&u.current&&c.preventDefault()}})},"DialogContentNonModal")),nb=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:c,...d}=r,g=sr(mo,a);return Mu(),S.jsx(S.Fragment,{children:S.jsx(Ny,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:u,onUnmountAutoFocus:c,children:S.jsx(Ey,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionPresent?g.descriptionId:void 0,"aria-labelledby":g.titlePresent?g.titleId:void 0,"data-state":ju(g.open),...d,ref:l,deferPointerDownOutside:!0,onDismiss:()=>g.onOpenChange(!1)})})})},"DialogContentImpl")),o6="DialogTitle",rb=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,...s}=r,u=sr(o6,a),{setTitleCount:c}=u;return en(()=>(c(d=>d+1),()=>c(d=>d-1)),[c]),S.jsx(qt.h2,{id:u.titleId,...s,ref:l})},"DialogTitle")),s6="DialogDescription",lb=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,...s}=r,u=sr(s6,a),{setDescriptionCount:c}=u;return en(()=>(c(d=>d+1),()=>c(d=>d-1)),[c]),S.jsx(qt.p,{id:u.descriptionId,...s,ref:l})},"DialogDescription")),u6="DialogClose",gu=C.forwardRef(Bn(function(r,l){const{__scopeDialog:a,...s}=r,u=sr(u6,a);return S.jsx(qt.button,{type:"button",...s,ref:l,onClick:St(r.onClick,()=>u.onOpenChange(!1))})},"DialogClose"));function ju(t){return t?"open":"closed"}Bn(ju,"getState");function c6({open:t,taskTitle:r,dependents:l,onOpenChange:a,onConfirm:s}){return S.jsx(Ky,{open:t,onOpenChange:a,children:S.jsxs(Wy,{children:[S.jsx(eb,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=open]:fade-in"}),S.jsxs(tb,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-md border border-sb-iron bg-sb-surface p-5 outline-none",children:[S.jsxs("div",{className:"flex items-start justify-between gap-3",children:[S.jsxs("div",{children:[S.jsx(rb,{className:"text-base font-semibold text-sb-frosted",children:"Archive task?"}),S.jsxs(lb,{className:"mt-1 text-[13px] leading-relaxed text-sb-silver",children:["“",r,"” is not done, and these live tasks depend on it:"]})]}),S.jsx(gu,{asChild:!0,children:S.jsx("button",{"aria-label":"Close",className:"rounded p-1 text-sb-silver transition-colors hover:text-sb-frosted",type:"button",children:S.jsx(Ru,{"aria-hidden":"true",className:"h-4 w-4"})})})]}),S.jsx("ul",{"aria-label":"Tasks depending on this task",className:"mt-4 max-h-48 space-y-2 overflow-y-auto rounded border border-sb-iron bg-sb-surface2 p-3",children:l.map(u=>S.jsxs("li",{className:"min-w-0",children:[S.jsx("p",{className:"truncate text-[13px] text-sb-frosted",children:u.frontmatter.title}),S.jsx("p",{className:"truncate font-mono text-[11px] text-sb-silver",children:u.slug})]},u.slug))}),S.jsx("p",{className:"mt-3 text-[12px] leading-relaxed text-sb-silver",children:"Archive anyway only if you intend to treat this dependency as satisfied."}),S.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[S.jsx(gu,{asChild:!0,children:S.jsx("button",{className:"h-9 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",children:"Cancel"})}),S.jsxs("button",{className:"inline-flex h-9 items-center gap-2 rounded bg-sb-accent px-4 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed",type:"button",onClick:()=>{a(!1),s()},children:[S.jsx(Eo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive anyway"]})]})]})]})})}const ib="sb-chev";function U0(){return S.jsx("svg",{width:"0",height:"0",className:"absolute","aria-hidden":"true",children:S.jsx("defs",{children:S.jsx("symbol",{id:ib,viewBox:"0 0 24 24",children:S.jsx("path",{fill:"currentColor",d:"M3 2.5 L15 12 L3 21.5 L8.6 21.5 L20.6 12 L8.6 2.5 Z"})})})})}function po({className:t="h-2.5 w-2.5"}){return S.jsx("svg",{className:t,"aria-hidden":"true",children:S.jsx("use",{href:`#${ib}`})})}function f6(t,r){const l={};return(t[t.length-1]===""?[...t,""]:t).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const d6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m6={};function I0(t,r){return(m6.jsx?h6:d6).test(t)}const p6=/[ \t\n\f\r]/g;function g6(t){return typeof t=="object"?t.type==="text"?V0(t.value):!1:V0(t)}function V0(t){return t.replace(p6,"")===""}class Ao{constructor(r,l,a){this.normal=l,this.property=r,a&&(this.space=a)}}Ao.prototype.normal={};Ao.prototype.property={};Ao.prototype.space=void 0;function ab(t,r){const l={},a={};for(const s of t)Object.assign(l,s.property),Object.assign(a,s.normal);return new Ao(l,a,r)}function oh(t){return t.toLowerCase()}class En{constructor(r,l){this.attribute=l,this.property=r}}En.prototype.attribute="";En.prototype.booleanish=!1;En.prototype.boolean=!1;En.prototype.commaOrSpaceSeparated=!1;En.prototype.commaSeparated=!1;En.prototype.defined=!1;En.prototype.mustUseProperty=!1;En.prototype.number=!1;En.prototype.overloadedBoolean=!1;En.prototype.property="";En.prototype.spaceSeparated=!1;En.prototype.space=void 0;let v6=0;const Oe=ni(),Ht=ni(),sh=ni(),fe=ni(),it=ni(),$l=ni(),jn=ni();function ni(){return 2**++v6}const uh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Ht,commaOrSpaceSeparated:jn,commaSeparated:$l,number:fe,overloadedBoolean:sh,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Ed=Object.keys(uh);class Hh extends En{constructor(r,l,a,s){let u=-1;if(super(r,l),q0(this,"space",s),typeof a=="number")for(;++u<Ed.length;){const c=Ed[u];q0(this,Ed[u],(a&uh[c])===uh[c])}}}Hh.prototype.defined=!0;function q0(t,r,l){l&&(t[r]=l)}function na(t){const r={},l={};for(const[a,s]of Object.entries(t.properties)){const u=new Hh(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,l[oh(a)]=a,l[oh(u.attribute)]=a}return new Ao(r,l,t.space)}const ob=na({properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:it,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:fe,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:it,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Ht,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function sb(t,r){return r in t?t[r]:r}function ub(t,r){return sb(t,r.toLowerCase())}const y6=na({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$l,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alpha:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:it,autoFocus:Oe,autoPlay:Oe,blocking:it,capture:null,charSet:null,checked:Oe,cite:null,className:it,closedBy:null,colorSpace:null,cols:fe,colSpan:fe,command:null,commandFor:null,content:null,contentEditable:Ht,controls:Oe,controlsList:it,coords:fe|$l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:sh,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:it,height:fe,hidden:sh,high:fe,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:it,itemRef:it,itemScope:Oe,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:fe,pattern:null,ping:it,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:it,required:Oe,reversed:Oe,rows:fe,rowSpan:fe,sandbox:it,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootCustomElementRegistry:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shadowRootSerializable:Oe,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Ht,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Oe,disablePictureInPicture:Oe,disableRemotePlayback:Oe,exportParts:$l,part:it,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:ub}),b6=na({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:jn,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:it,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$l,g2:$l,glyphName:$l,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sb}),cb=na({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),fb=na({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ub}),db=na({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),x6={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},S6=/[A-Z]/g,Y0=/-[a-z]/g,C6=/^data[-\w.:]+$/i;function w6(t,r){const l=oh(r);let a=r,s=En;if(l in t.normal)return t.property[t.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&C6.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(Y0,T6);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!Y0.test(u)){let c=u.replace(S6,E6);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=Hh}return new s(a,r)}function E6(t){return"-"+t.toLowerCase()}function T6(t){return t.charAt(1).toUpperCase()}const A6=ab([ob,y6,cb,fb,db],"html"),Uh=ab([ob,b6,cb,fb,db],"svg");function D6(t){return t.join(" ").trim()}var Xi={},Td,P0;function N6(){if(P0)return Td;P0=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,g=`
90
+ `,h="/",v="*",p="",b="comment",y="declaration";function w(A,E){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];E=E||{};var _=1,R=1;function N(te){var W=te.match(r);W&&(_+=W.length);var U=te.lastIndexOf(g);R=~U?te.length-U:R+te.length}function z(){var te={line:_,column:R};return function(W){return W.position=new k(te),j(),W}}function k(te){this.start=te,this.end={line:_,column:R},this.source=E.source}k.prototype.content=A;function H(te){var W=new Error(E.source+":"+_+":"+R+": "+te);if(W.reason=te,W.filename=E.source,W.line=_,W.column=R,W.source=A,!E.silent)throw W}function I(te){var W=te.exec(A);if(W){var U=W[0];return N(U),A=A.slice(U.length),W}}function j(){I(l)}function Q(te){var W;for(te=te||[];W=Z();)W!==!1&&te.push(W);return te}function Z(){var te=z();if(!(h!=A.charAt(0)||v!=A.charAt(1))){for(var W=2;p!=A.charAt(W)&&(v!=A.charAt(W)||h!=A.charAt(W+1));)++W;if(W+=2,p===A.charAt(W-1))return H("End of comment missing");var U=A.slice(2,W-2);return R+=2,N(U),A=A.slice(W),R+=2,te({type:b,comment:U})}}function K(){var te=z(),W=I(a);if(W){if(Z(),!I(s))return H("property missing ':'");var U=I(u),G=te({type:y,property:T(W[0].replace(t,p)),value:U?T(U[0].replace(t,p)):p});return I(c),G}}function oe(){var te=[];Q(te);for(var W;W=K();)W!==!1&&(te.push(W),Q(te));return te}return j(),oe()}function T(A){return A?A.replace(d,p):p}return Td=w,Td}var X0;function O6(){if(X0)return Xi;X0=1;var t=Xi&&Xi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=l;const r=t(N6());function l(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),d=typeof s=="function";return c.forEach(g=>{if(g.type!=="declaration")return;const{property:h,value:v}=g;d?s(h,v,g):v&&(u=u||{},u[h]=v)}),u}return Xi}var no={},Z0;function R6(){if(Z0)return no;Z0=1,Object.defineProperty(no,"__esModule",{value:!0}),no.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(h){return!h||l.test(h)||t.test(h)},c=function(h,v){return v.toUpperCase()},d=function(h,v){return"".concat(v,"-")},g=function(h,v){return v===void 0&&(v={}),u(h)?h:(h=h.toLowerCase(),v.reactCompat?h=h.replace(s,d):h=h.replace(a,d),h.replace(r,c))};return no.camelCase=g,no}var ro,G0;function k6(){if(G0)return ro;G0=1;var t=ro&&ro.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(O6()),l=R6();function a(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(d,g){d&&g&&(c[(0,l.camelCase)(d,u)]=g)}),c}return a.default=a,ro=a,ro}var M6=k6();const _6=Ou(M6),hb=mb("end"),Ih=mb("start");function mb(t){return r;function r(l){const a=l&&l.position&&l.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function j6(t){const r=Ih(t),l=hb(t);if(r&&l)return{start:r,end:l}}function oo(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?F0(t.position):"start"in t||"end"in t?F0(t):"line"in t||"column"in t?ch(t):""}function ch(t){return Q0(t&&t.line)+":"+Q0(t&&t.column)}function F0(t){return ch(t&&t.start)+"-"+ch(t&&t.end)}function Q0(t){return t&&typeof t=="number"?t:1}class ln extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let s="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof r=="string"?s=r:!u.cause&&r&&(c=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const g=a.indexOf(":");g===-1?u.ruleId=a:(u.source=a.slice(0,g),u.ruleId=a.slice(g+1))}if(!u.place&&u.ancestors&&u.ancestors){const g=u.ancestors[u.ancestors.length-1];g&&(u.place=g.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=oo(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ln.prototype.file="";ln.prototype.name="";ln.prototype.reason="";ln.prototype.message="";ln.prototype.stack="";ln.prototype.column=void 0;ln.prototype.line=void 0;ln.prototype.ancestors=void 0;ln.prototype.cause=void 0;ln.prototype.fatal=void 0;ln.prototype.place=void 0;ln.prototype.ruleId=void 0;ln.prototype.source=void 0;const Vh={}.hasOwnProperty,z6=new Map,L6=/[A-Z]/g,B6=new Set(["table","tbody","thead","tfoot","tr"]),H6=new Set(["td","th"]),pb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function U6(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=G6(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=Z6(l,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Uh:A6,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=gb(s,t,void 0);return u&&typeof u!="string"?u:s.create(t,s.Fragment,{children:u||void 0},void 0)}function gb(t,r,l){if(r.type==="element")return I6(t,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return V6(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Y6(t,r,l);if(r.type==="mdxjsEsm")return q6(t,r);if(r.type==="root")return P6(t,r,l);if(r.type==="text")return X6(t,r)}function I6(t,r,l){const a=t.schema;let s=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Uh,t.schema=s),t.ancestors.push(r);const u=yb(t,r.tagName,!1),c=F6(t,r);let d=Yh(t,r);return B6.has(r.tagName)&&(d=d.filter(function(g){return typeof g=="string"?!g6(g):!0})),vb(t,c,u,r),qh(c,d),t.ancestors.pop(),t.schema=a,t.create(r,u,c,l)}function V6(t,r){if(r.data&&r.data.estree&&t.evaluater){const a=r.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}go(t,r.position)}function q6(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);go(t,r.position)}function Y6(t,r,l){const a=t.schema;let s=a;r.name==="svg"&&a.space==="html"&&(s=Uh,t.schema=s),t.ancestors.push(r);const u=r.name===null?t.Fragment:yb(t,r.name,!0),c=Q6(t,r),d=Yh(t,r);return vb(t,c,u,r),qh(c,d),t.ancestors.pop(),t.schema=a,t.create(r,u,c,l)}function P6(t,r,l){const a={};return qh(a,Yh(t,r)),t.create(r,t.Fragment,a,l)}function X6(t,r){return r.value}function vb(t,r,l,a){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(r.node=a)}function qh(t,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(t.children=l)}}function Z6(t,r,l){return a;function a(s,u,c,d){const h=Array.isArray(c.children)?l:r;return d?h(u,c,d):h(u,c)}}function G6(t,r){return l;function l(a,s,u,c){const d=Array.isArray(u.children),g=Ih(a);return r(s,u,c,d,{columnNumber:g?g.column-1:void 0,fileName:t,lineNumber:g?g.line:void 0},void 0)}}function F6(t,r){const l={};let a,s;for(s in r.properties)if(s!=="children"&&Vh.call(r.properties,s)){const u=K6(t,s,r.properties[s]);if(u){const[c,d]=u;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&H6.has(r.tagName)?a=d:l[c]=d}}if(a){const u=l.style||(l.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function Q6(t,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(l,t.evaluater.evaluateExpression(d.argument))}else go(t,r.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,u=t.evaluater.evaluateExpression(d.expression)}else go(t,r.position);else u=a.value===null?!0:a.value;l[s]=u}return l}function Yh(t,r){const l=[];let a=-1;const s=t.passKeys?new Map:z6;for(;++a<r.children.length;){const u=r.children[a];let c;if(t.passKeys){const g=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(g){const h=s.get(g)||0;c=g+"-"+h,s.set(g,h+1)}}const d=gb(t,u,c);d!==void 0&&l.push(d)}return l}function K6(t,r,l){const a=w6(t.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?f6(l):D6(l)),a.property==="style"){let s=typeof l=="object"?l:$6(t,String(l));return t.stylePropertyNameCase==="css"&&(s=J6(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&a.space?x6[a.property]||a.property:a.attribute,l]}}function $6(t,r){try{return _6(r,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const a=l,s=new ln("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=pb+"#cannot-parse-style-attribute",s}}function yb(t,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,c;for(;++u<s.length;){const d=I0(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=I0(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const s=a.value;return Vh.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(a);go(t)}function go(t,r){const l=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=pb+"#cannot-handle-mdx-estrees-without-createevaluater",l}function J6(t){const r={};let l;for(l in t)Vh.call(t,l)&&(r[W6(l)]=t[l]);return r}function W6(t){let r=t.replace(L6,e9);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function e9(t){return"-"+t.toLowerCase()}const Ad={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},t9={};function n9(t,r){const l=t9,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return bb(t,a,s)}function bb(t,r,l){if(r9(t)){if("value"in t)return t.type==="html"&&!l?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return K0(t.children,r,l)}return Array.isArray(t)?K0(t,r,l):""}function K0(t,r,l){const a=[];let s=-1;for(;++s<t.length;)a[s]=bb(t[s],r,l);return a.join("")}function r9(t){return!!(t&&typeof t=="object")}const $0=document.createElement("i");function Ph(t){const r="&"+t+";";$0.innerHTML=r;const l=$0.textContent;return l.charCodeAt(l.length-1)===59&&t!=="semi"||l===r?!1:l}function Sr(t,r,l,a){const s=t.length;let u=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,l=l>0?l:0,a.length<1e4)c=Array.from(a),c.unshift(r,l),t.splice(...c);else for(l&&t.splice(r,l);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),t.splice(...c),u+=1e4,r+=1e4}function $n(t,r){return t.length>0?(Sr(t,t.length,0,r),t):r}const J0={}.hasOwnProperty;function l9(t){const r={};let l=-1;for(;++l<t.length;)i9(r,t[l]);return r}function i9(t,r){let l;for(l in r){const s=(J0.call(t,l)?t[l]:void 0)||(t[l]={}),u=r[l];let c;if(u)for(c in u){J0.call(s,c)||(s[c]=[]);const d=u[c];a9(s[c],Array.isArray(d)?d:d?[d]:[])}}}function a9(t,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?t:a).push(r[l]);Sr(t,0,0,a)}function xb(t,r){const l=Number.parseInt(t,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Ki(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yr=Nl(/[A-Za-z]/),Ln=Nl(/[\dA-Za-z]/),o9=Nl(/[#-'*+\--9=?A-Z^-~]/);function fh(t){return t!==null&&(t<32||t===127)}const dh=Nl(/\d/),s9=Nl(/[\dA-Fa-f]/),u9=Nl(/[!-/:-@[-`{-~]/);function Ae(t){return t!==null&&t<-2}function Cn(t){return t!==null&&(t<0||t===32)}function Ge(t){return t===-2||t===-1||t===32}const c9=Nl(new RegExp("\\p{P}|\\p{S}","u")),f9=Nl(/\s/);function Nl(t){return r;function r(l){return l!==null&&l>-1&&t.test(String.fromCharCode(l))}}function ra(t){const r=[];let l=-1,a=0,s=0;for(;++l<t.length;){const u=t.charCodeAt(l);let c="";if(u===37&&Ln(t.charCodeAt(l+1))&&Ln(t.charCodeAt(l+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=t.charCodeAt(l+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),s=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(t.slice(a,l),encodeURIComponent(c)),a=l+s+1,c=""),s&&(l+=s,s=0)}return r.join("")+t.slice(a)}function st(t,r,l,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(g){return Ge(g)?(t.enter(l),d(g)):r(g)}function d(g){return Ge(g)&&u++<s?(t.consume(g),d):(t.exit(l),r(g))}}const d9={tokenize:h9};function h9(t){const r=t.attempt(this.parser.constructs.contentInitial,a,s);let l;return r;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),st(t,r,"linePrefix")}function s(d){return t.enter("paragraph"),u(d)}function u(d){const g=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=g),l=g,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return Ae(d)?(t.consume(d),t.exit("chunkText"),u):(t.consume(d),c)}}const m9={tokenize:p9},W0={tokenize:g9};function p9(t){const r=this,l=[];let a=0,s,u,c;return d;function d(R){if(a<l.length){const N=l[a];return r.containerState=N[1],t.attempt(N[0].continuation,g,h)(R)}return h(R)}function g(R){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&_();const N=r.events.length;let z=N,k;for(;z--;)if(r.events[z][0]==="exit"&&r.events[z][1].type==="chunkFlow"){k=r.events[z][1].end;break}E(a);let H=N;for(;H<r.events.length;)r.events[H][1].end={...k},H++;return Sr(r.events,z+1,0,r.events.slice(N)),r.events.length=H,h(R)}return d(R)}function h(R){if(a===l.length){if(!s)return b(R);if(s.currentConstruct&&s.currentConstruct.concrete)return w(R);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(W0,v,p)(R)}function v(R){return s&&_(),E(a),b(R)}function p(R){return r.parser.lazy[r.now().line]=a!==l.length,c=r.now().offset,w(R)}function b(R){return r.containerState={},t.attempt(W0,y,w)(R)}function y(R){return a++,l.push([r.currentConstruct,r.containerState]),b(R)}function w(R){if(R===null){s&&_(),E(0),t.consume(R);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),T(R)}function T(R){if(R===null){A(t.exit("chunkFlow"),!0),E(0),t.consume(R);return}return Ae(R)?(t.consume(R),A(t.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(t.consume(R),T)}function A(R,N){const z=r.sliceStream(R);if(N&&z.push(null),R.previous=u,u&&(u.next=R),u=R,s.defineSkip(R.start),s.write(z),r.parser.lazy[R.start.line]){let k=s.events.length;for(;k--;)if(s.events[k][1].start.offset<c&&(!s.events[k][1].end||s.events[k][1].end.offset>c))return;const H=r.events.length;let I=H,j,Q;for(;I--;)if(r.events[I][0]==="exit"&&r.events[I][1].type==="chunkFlow"){if(j){Q=r.events[I][1].end;break}j=!0}for(E(a),k=H;k<r.events.length;)r.events[k][1].end={...Q},k++;Sr(r.events,I+1,0,r.events.slice(H)),r.events.length=k}}function E(R){let N=l.length;for(;N-- >R;){const z=l[N];r.containerState=z[1],z[0].exit.call(r,t)}l.length=R}function _(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function g9(t,r,l){return st(t,t.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ev(t){if(t===null||Cn(t)||f9(t))return 1;if(c9(t))return 2}function Xh(t,r,l){const a=[];let s=-1;for(;++s<t.length;){const u=t[s].resolveAll;u&&!a.includes(u)&&(r=u(r,l),a.push(u))}return r}const hh={name:"attention",resolveAll:v9,tokenize:y9};function v9(t,r){let l=-1,a,s,u,c,d,g,h,v;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(a=l;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&r.sliceSerialize(t[a][1]).charCodeAt(0)===r.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[a][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;g=t[a][1].end.offset-t[a][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const p={...t[a][1].end},b={...t[l][1].start};tv(p,-g),tv(b,g),c={type:g>1?"strongSequence":"emphasisSequence",start:p,end:{...t[a][1].end}},d={type:g>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:b},u={type:g>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[l][1].start}},s={type:g>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[l][1].start={...d.end},h=[],t[a][1].end.offset-t[a][1].start.offset&&(h=$n(h,[["enter",t[a][1],r],["exit",t[a][1],r]])),h=$n(h,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),h=$n(h,Xh(r.parser.constructs.insideSpan.null,t.slice(a+1,l),r)),h=$n(h,[["exit",u,r],["enter",d,r],["exit",d,r],["exit",s,r]]),t[l][1].end.offset-t[l][1].start.offset?(v=2,h=$n(h,[["enter",t[l][1],r],["exit",t[l][1],r]])):v=0,Sr(t,a-1,l-a+3,h),l=a+h.length-v-2;break}}for(l=-1;++l<t.length;)t[l][1].type==="attentionSequence"&&(t[l][1].type="data");return t}function y9(t,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,s=ev(a);let u;return c;function c(g){return u=g,t.enter("attentionSequence"),d(g)}function d(g){if(g===u)return t.consume(g),d;const h=t.exit("attentionSequence"),v=ev(g),p=!v||v===2&&s||l.includes(g),b=!s||s===2&&v||l.includes(a);return h._open=!!(u===42?p:p&&(s||!b)),h._close=!!(u===42?b:b&&(v||!p)),r(g)}}function tv(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const b9={name:"autolink",tokenize:x9};function x9(t,r,l){let a=0;return s;function s(y){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(y),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(y){return yr(y)?(t.consume(y),c):y===64?l(y):h(y)}function c(y){return y===43||y===45||y===46||Ln(y)?(a=1,d(y)):h(y)}function d(y){return y===58?(t.consume(y),a=0,g):(y===43||y===45||y===46||Ln(y))&&a++<32?(t.consume(y),d):(a=0,h(y))}function g(y){return y===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(y),t.exit("autolinkMarker"),t.exit("autolink"),r):y===null||y===32||y===60||fh(y)?l(y):(t.consume(y),g)}function h(y){return y===64?(t.consume(y),v):o9(y)?(t.consume(y),h):l(y)}function v(y){return Ln(y)?p(y):l(y)}function p(y){return y===46?(t.consume(y),a=0,v):y===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(y),t.exit("autolinkMarker"),t.exit("autolink"),r):b(y)}function b(y){if((y===45||Ln(y))&&a++<63){const w=y===45?b:p;return t.consume(y),w}return l(y)}}const zu={partial:!0,tokenize:S9};function S9(t,r,l){return a;function a(u){return Ge(u)?st(t,s,"linePrefix")(u):s(u)}function s(u){return u===null||Ae(u)?r(u):l(u)}}const Sb={continuation:{tokenize:w9},exit:E9,name:"blockQuote",tokenize:C9};function C9(t,r,l){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ge(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function w9(t,r,l){const a=this;return s;function s(c){return Ge(c)?st(t,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return t.attempt(Sb,r,l)(c)}}function E9(t){t.exit("blockQuote")}const Cb={name:"characterEscape",tokenize:T9};function T9(t,r,l){return a;function a(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),s}function s(u){return u9(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):l(u)}}const wb={name:"characterReference",tokenize:A9};function A9(t,r,l){const a=this;let s=0,u,c;return d;function d(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),g}function g(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),u=31,c=Ln,v(p))}function h(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,c=s9,v):(t.enter("characterReferenceValue"),u=7,c=dh,v(p))}function v(p){if(p===59&&s){const b=t.exit("characterReferenceValue");return c===Ln&&!Ph(a.sliceSerialize(b))?l(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(p)&&s++<u?(t.consume(p),v):l(p)}}const nv={partial:!0,tokenize:N9},rv={concrete:!0,name:"codeFenced",tokenize:D9};function D9(t,r,l){const a=this,s={partial:!0,tokenize:z};let u=0,c=0,d;return g;function g(k){return h(k)}function h(k){const H=a.events[a.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=k,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),v(k)}function v(k){return k===d?(c++,t.consume(k),v):c<3?l(k):(t.exit("codeFencedFenceSequence"),Ge(k)?st(t,p,"whitespace")(k):p(k))}function p(k){return k===null||Ae(k)?(t.exit("codeFencedFence"),a.interrupt?r(k):t.check(nv,T,N)(k)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||Ae(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(k)):Ge(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),st(t,y,"whitespace")(k)):k===96&&k===d?l(k):(t.consume(k),b)}function y(k){return k===null||Ae(k)?p(k):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(k))}function w(k){return k===null||Ae(k)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(k)):k===96&&k===d?l(k):(t.consume(k),w)}function T(k){return t.attempt(s,N,A)(k)}function A(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),E}function E(k){return u>0&&Ge(k)?st(t,_,"linePrefix",u+1)(k):_(k)}function _(k){return k===null||Ae(k)?t.check(nv,T,N)(k):(t.enter("codeFlowValue"),R(k))}function R(k){return k===null||Ae(k)?(t.exit("codeFlowValue"),_(k)):(t.consume(k),R)}function N(k){return t.exit("codeFenced"),r(k)}function z(k,H,I){let j=0;return Q;function Q(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),Z}function Z(W){return k.enter("codeFencedFence"),Ge(W)?st(k,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):K(W)}function K(W){return W===d?(k.enter("codeFencedFenceSequence"),oe(W)):I(W)}function oe(W){return W===d?(j++,k.consume(W),oe):j>=c?(k.exit("codeFencedFenceSequence"),Ge(W)?st(k,te,"whitespace")(W):te(W)):I(W)}function te(W){return W===null||Ae(W)?(k.exit("codeFencedFence"),H(W)):I(W)}}}function N9(t,r,l){const a=this;return s;function s(c){return c===null?l(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}const Dd={name:"codeIndented",tokenize:R9},O9={partial:!0,tokenize:k9};function R9(t,r,l){const a=this;return s;function s(h){return t.enter("codeIndented"),st(t,u,"linePrefix",5)(h)}function u(h){const v=a.events[a.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?c(h):l(h)}function c(h){return h===null?g(h):Ae(h)?t.attempt(O9,c,g)(h):(t.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ae(h)?(t.exit("codeFlowValue"),c(h)):(t.consume(h),d)}function g(h){return t.exit("codeIndented"),r(h)}}function k9(t,r,l){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?l(c):Ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):st(t,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):Ae(c)?s(c):l(c)}}const M9={name:"codeText",previous:j9,resolve:_9,tokenize:z9};function _9(t){let r=t.length-4,l=3,a,s;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(a=l;++a<r;)if(t[a][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)s===void 0?a!==r&&t[a][1].type!=="lineEnding"&&(s=a):(a===r||t[a][1].type==="lineEnding")&&(t[s][1].type="codeTextData",a!==s+2&&(t[s][1].end=t[a-1][1].end,t.splice(s+2,a-s-2),r-=a-s-2,a=s+2),s=void 0);return t}function j9(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function z9(t,r,l){let a=0,s,u;return c;function c(p){return t.enter("codeText"),t.enter("codeTextSequence"),d(p)}function d(p){return p===96?(t.consume(p),a++,d):(t.exit("codeTextSequence"),g(p))}function g(p){return p===null?l(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),g):p===96?(u=t.enter("codeTextSequence"),s=0,v(p)):Ae(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),g):(t.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Ae(p)?(t.exit("codeTextData"),g(p)):(t.consume(p),h)}function v(p){return p===96?(t.consume(p),s++,v):s===a?(t.exit("codeTextSequence"),t.exit("codeText"),r(p)):(u.type="codeTextData",h(p))}}class L9{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const s=l||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&lo(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),lo(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),lo(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);lo(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);lo(this.left,l.reverse())}}}function lo(t,r){let l=0;if(r.length<1e4)t.push(...r);else for(;l<r.length;)t.push(...r.slice(l,l+1e4)),l+=1e4}function Eb(t){const r={};let l=-1,a,s,u,c,d,g,h;const v=new L9(t);for(;++l<v.length;){for(;l in r;)l=r[l];if(a=v.get(l),l&&a[1].type==="chunkFlow"&&v.get(l-1)[1].type==="listItemPrefix"&&(g=a[1]._tokenizer.events,u=0,u<g.length&&g[u][1].type==="lineEndingBlank"&&(u+=2),u<g.length&&g[u][1].type==="content"))for(;++u<g.length&&g[u][1].type!=="content";)g[u][1].type==="chunkText"&&(g[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,B9(v,l)),l=r[l],h=!0);else if(a[1]._container){for(u=l,s=void 0;u--;)if(c=v.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(v.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...v.get(s)[1].start},d=v.slice(s,l),d.unshift(a),v.splice(s,l-s+1,d))}}return Sr(t,0,Number.POSITIVE_INFINITY,v.slice(0)),!h}function B9(t,r){const l=t.get(r)[1],a=t.get(r)[2];let s=r-1;const u=[];let c=l._tokenizer;c||(c=a.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,g=[],h={};let v,p,b=-1,y=l,w=0,T=0;const A=[T];for(;y;){for(;t.get(++s)[1]!==y;);u.push(s),y._tokenizer||(v=a.sliceStream(y),y.next||v.push(null),p&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(v),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=l;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(T=b+1,A.push(T),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):A.pop(),b=A.length;b--;){const E=d.slice(A[b],A[b+1]),_=u.pop();g.push([_,_+E.length-1]),t.splice(_,2,E)}for(g.reverse(),b=-1;++b<g.length;)h[w+g[b][0]]=w+g[b][1],w+=g[b][1]-g[b][0]-1;return h}const H9={resolve:I9,tokenize:V9},U9={partial:!0,tokenize:q9};function I9(t){return Eb(t),t}function V9(t,r){let l;return a;function a(d){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?u(d):Ae(d)?t.check(U9,c,u)(d):(t.consume(d),s)}function u(d){return t.exit("chunkContent"),t.exit("content"),r(d)}function c(d){return t.consume(d),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function q9(t,r,l){const a=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),st(t,u,"linePrefix")}function u(c){if(c===null||Ae(c))return l(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):t.interrupt(a.parser.constructs.flow,l,r)(c)}}function Tb(t,r,l,a,s,u,c,d,g){const h=g||Number.POSITIVE_INFINITY;let v=0;return p;function p(E){return E===60?(t.enter(a),t.enter(s),t.enter(u),t.consume(E),t.exit(u),b):E===null||E===32||E===41||fh(E)?l(E):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),T(E))}function b(E){return E===62?(t.enter(u),t.consume(E),t.exit(u),t.exit(s),t.exit(a),r):(t.enter(d),t.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(t.exit("chunkString"),t.exit(d),b(E)):E===null||E===60||Ae(E)?l(E):(t.consume(E),E===92?w:y)}function w(E){return E===60||E===62||E===92?(t.consume(E),y):y(E)}function T(E){return!v&&(E===null||E===41||Cn(E))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),r(E)):v<h&&E===40?(t.consume(E),v++,T):E===41?(t.consume(E),v--,T):E===null||E===32||E===40||fh(E)?l(E):(t.consume(E),E===92?A:T)}function A(E){return E===40||E===41||E===92?(t.consume(E),T):T(E)}}function Ab(t,r,l,a,s,u){const c=this;let d=0,g;return h;function h(y){return t.enter(a),t.enter(s),t.consume(y),t.exit(s),t.enter(u),v}function v(y){return d>999||y===null||y===91||y===93&&!g||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?l(y):y===93?(t.exit(u),t.enter(s),t.consume(y),t.exit(s),t.exit(a),r):Ae(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),v):(t.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Ae(y)||d++>999?(t.exit("chunkString"),v(y)):(t.consume(y),g||(g=!Ge(y)),y===92?b:p)}function b(y){return y===91||y===92||y===93?(t.consume(y),d++,p):p(y)}}function Db(t,r,l,a,s,u){let c;return d;function d(b){return b===34||b===39||b===40?(t.enter(a),t.enter(s),t.consume(b),t.exit(s),c=b===40?41:b,g):l(b)}function g(b){return b===c?(t.enter(s),t.consume(b),t.exit(s),t.exit(a),r):(t.enter(u),h(b))}function h(b){return b===c?(t.exit(u),g(c)):b===null?l(b):Ae(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),st(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),v(b))}function v(b){return b===c||b===null||Ae(b)?(t.exit("chunkString"),h(b)):(t.consume(b),b===92?p:v)}function p(b){return b===c||b===92?(t.consume(b),v):v(b)}}function so(t,r){let l;return a;function a(s){return Ae(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l=!0,a):Ge(s)?st(t,a,l?"linePrefix":"lineSuffix")(s):r(s)}}const Y9={name:"definition",tokenize:X9},P9={partial:!0,tokenize:Z9};function X9(t,r,l){const a=this;let s;return u;function u(y){return t.enter("definition"),c(y)}function c(y){return Ab.call(a,t,d,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return s=Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),y===58?(t.enter("definitionMarker"),t.consume(y),t.exit("definitionMarker"),g):l(y)}function g(y){return Cn(y)?so(t,h)(y):h(y)}function h(y){return Tb(t,v,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function v(y){return t.attempt(P9,p,p)(y)}function p(y){return Ge(y)?st(t,b,"whitespace")(y):b(y)}function b(y){return y===null||Ae(y)?(t.exit("definition"),a.parser.defined.push(s),r(y)):l(y)}}function Z9(t,r,l){return a;function a(d){return Cn(d)?so(t,s)(d):l(d)}function s(d){return Db(t,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ge(d)?st(t,c,"whitespace")(d):c(d)}function c(d){return d===null||Ae(d)?r(d):l(d)}}const G9={name:"hardBreakEscape",tokenize:F9};function F9(t,r,l){return a;function a(u){return t.enter("hardBreakEscape"),t.consume(u),s}function s(u){return Ae(u)?(t.exit("hardBreakEscape"),r(u)):l(u)}}const Q9={name:"headingAtx",resolve:K9,tokenize:$9};function K9(t,r){let l=t.length-2,a=3,s,u;return t[a][1].type==="whitespace"&&(a+=2),l-2>a&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&t[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(s={type:"atxHeadingText",start:t[a][1].start,end:t[l][1].end},u={type:"chunkText",start:t[a][1].start,end:t[l][1].end,contentType:"text"},Sr(t,a,l-a+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),t}function $9(t,r,l){let a=0;return s;function s(v){return t.enter("atxHeading"),u(v)}function u(v){return t.enter("atxHeadingSequence"),c(v)}function c(v){return v===35&&a++<6?(t.consume(v),c):v===null||Cn(v)?(t.exit("atxHeadingSequence"),d(v)):l(v)}function d(v){return v===35?(t.enter("atxHeadingSequence"),g(v)):v===null||Ae(v)?(t.exit("atxHeading"),r(v)):Ge(v)?st(t,d,"whitespace")(v):(t.enter("atxHeadingText"),h(v))}function g(v){return v===35?(t.consume(v),g):(t.exit("atxHeadingSequence"),d(v))}function h(v){return v===null||v===35||Cn(v)?(t.exit("atxHeadingText"),d(v)):(t.consume(v),h)}}const J9=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lv=["pre","script","style","textarea"],W9={concrete:!0,name:"htmlFlow",resolveTo:nC,tokenize:rC},eC={partial:!0,tokenize:iC},tC={partial:!0,tokenize:lC};function nC(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function rC(t,r,l){const a=this;let s,u,c,d,g;return h;function h(O){return v(O)}function v(O){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(O),p}function p(O){return O===33?(t.consume(O),b):O===47?(t.consume(O),u=!0,T):O===63?(t.consume(O),s=3,a.interrupt?r:M):yr(O)?(t.consume(O),c=String.fromCharCode(O),A):l(O)}function b(O){return O===45?(t.consume(O),s=2,y):O===91?(t.consume(O),s=5,d=0,w):yr(O)?(t.consume(O),s=4,a.interrupt?r:M):l(O)}function y(O){return O===45?(t.consume(O),a.interrupt?r:M):l(O)}function w(O){const ne="CDATA[";return O===ne.charCodeAt(d++)?(t.consume(O),d===ne.length?a.interrupt?r:K:w):l(O)}function T(O){return yr(O)?(t.consume(O),c=String.fromCharCode(O),A):l(O)}function A(O){if(O===null||O===47||O===62||Cn(O)){const ne=O===47,de=c.toLowerCase();return!ne&&!u&&lv.includes(de)?(s=1,a.interrupt?r(O):K(O)):J9.includes(c.toLowerCase())?(s=6,ne?(t.consume(O),E):a.interrupt?r(O):K(O)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(O):u?_(O):R(O))}return O===45||Ln(O)?(t.consume(O),c+=String.fromCharCode(O),A):l(O)}function E(O){return O===62?(t.consume(O),a.interrupt?r:K):l(O)}function _(O){return Ge(O)?(t.consume(O),_):Q(O)}function R(O){return O===47?(t.consume(O),Q):O===58||O===95||yr(O)?(t.consume(O),N):Ge(O)?(t.consume(O),R):Q(O)}function N(O){return O===45||O===46||O===58||O===95||Ln(O)?(t.consume(O),N):z(O)}function z(O){return O===61?(t.consume(O),k):Ge(O)?(t.consume(O),z):R(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?l(O):O===34||O===39?(t.consume(O),g=O,H):Ge(O)?(t.consume(O),k):I(O)}function H(O){return O===g?(t.consume(O),g=null,j):O===null||Ae(O)?l(O):(t.consume(O),H)}function I(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Cn(O)?z(O):(t.consume(O),I)}function j(O){return O===47||O===62||Ge(O)?R(O):l(O)}function Q(O){return O===62?(t.consume(O),Z):l(O)}function Z(O){return O===null||Ae(O)?K(O):Ge(O)?(t.consume(O),Z):l(O)}function K(O){return O===45&&s===2?(t.consume(O),U):O===60&&s===1?(t.consume(O),G):O===62&&s===4?(t.consume(O),L):O===63&&s===3?(t.consume(O),M):O===93&&s===5?(t.consume(O),ce):Ae(O)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(eC,Y,oe)(O)):O===null||Ae(O)?(t.exit("htmlFlowData"),oe(O)):(t.consume(O),K)}function oe(O){return t.check(tC,te,Y)(O)}function te(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),W}function W(O){return O===null||Ae(O)?oe(O):(t.enter("htmlFlowData"),K(O))}function U(O){return O===45?(t.consume(O),M):K(O)}function G(O){return O===47?(t.consume(O),c="",le):K(O)}function le(O){if(O===62){const ne=c.toLowerCase();return lv.includes(ne)?(t.consume(O),L):K(O)}return yr(O)&&c.length<8?(t.consume(O),c+=String.fromCharCode(O),le):K(O)}function ce(O){return O===93?(t.consume(O),M):K(O)}function M(O){return O===62?(t.consume(O),L):O===45&&s===2?(t.consume(O),M):K(O)}function L(O){return O===null||Ae(O)?(t.exit("htmlFlowData"),Y(O)):(t.consume(O),L)}function Y(O){return t.exit("htmlFlow"),r(O)}}function lC(t,r,l){const a=this;return s;function s(c){return Ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):l(c)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}function iC(t,r,l){return a;function a(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(zu,r,l)}}const aC={name:"htmlText",tokenize:oC};function oC(t,r,l){const a=this;let s,u,c;return d;function d(M){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(M),g}function g(M){return M===33?(t.consume(M),h):M===47?(t.consume(M),z):M===63?(t.consume(M),R):yr(M)?(t.consume(M),I):l(M)}function h(M){return M===45?(t.consume(M),v):M===91?(t.consume(M),u=0,w):yr(M)?(t.consume(M),_):l(M)}function v(M){return M===45?(t.consume(M),y):l(M)}function p(M){return M===null?l(M):M===45?(t.consume(M),b):Ae(M)?(c=p,G(M)):(t.consume(M),p)}function b(M){return M===45?(t.consume(M),y):p(M)}function y(M){return M===62?U(M):M===45?b(M):p(M)}function w(M){const L="CDATA[";return M===L.charCodeAt(u++)?(t.consume(M),u===L.length?T:w):l(M)}function T(M){return M===null?l(M):M===93?(t.consume(M),A):Ae(M)?(c=T,G(M)):(t.consume(M),T)}function A(M){return M===93?(t.consume(M),E):T(M)}function E(M){return M===62?U(M):M===93?(t.consume(M),E):T(M)}function _(M){return M===null||M===62?U(M):Ae(M)?(c=_,G(M)):(t.consume(M),_)}function R(M){return M===null?l(M):M===63?(t.consume(M),N):Ae(M)?(c=R,G(M)):(t.consume(M),R)}function N(M){return M===62?U(M):R(M)}function z(M){return yr(M)?(t.consume(M),k):l(M)}function k(M){return M===45||Ln(M)?(t.consume(M),k):H(M)}function H(M){return Ae(M)?(c=H,G(M)):Ge(M)?(t.consume(M),H):U(M)}function I(M){return M===45||Ln(M)?(t.consume(M),I):M===47||M===62||Cn(M)?j(M):l(M)}function j(M){return M===47?(t.consume(M),U):M===58||M===95||yr(M)?(t.consume(M),Q):Ae(M)?(c=j,G(M)):Ge(M)?(t.consume(M),j):U(M)}function Q(M){return M===45||M===46||M===58||M===95||Ln(M)?(t.consume(M),Q):Z(M)}function Z(M){return M===61?(t.consume(M),K):Ae(M)?(c=Z,G(M)):Ge(M)?(t.consume(M),Z):j(M)}function K(M){return M===null||M===60||M===61||M===62||M===96?l(M):M===34||M===39?(t.consume(M),s=M,oe):Ae(M)?(c=K,G(M)):Ge(M)?(t.consume(M),K):(t.consume(M),te)}function oe(M){return M===s?(t.consume(M),s=void 0,W):M===null?l(M):Ae(M)?(c=oe,G(M)):(t.consume(M),oe)}function te(M){return M===null||M===34||M===39||M===60||M===61||M===96?l(M):M===47||M===62||Cn(M)?j(M):(t.consume(M),te)}function W(M){return M===47||M===62||Cn(M)?j(M):l(M)}function U(M){return M===62?(t.consume(M),t.exit("htmlTextData"),t.exit("htmlText"),r):l(M)}function G(M){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),le}function le(M){return Ge(M)?st(t,ce,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):ce(M)}function ce(M){return t.enter("htmlTextData"),c(M)}}const Zh={name:"labelEnd",resolveAll:fC,resolveTo:dC,tokenize:hC},sC={tokenize:mC},uC={tokenize:pC},cC={tokenize:gC};function fC(t){let r=-1;const l=[];for(;++r<t.length;){const a=t[r][1];if(l.push(t[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",r+=s}}return t.length!==l.length&&Sr(t,0,t.length,l),t}function dC(t,r){let l=t.length,a=0,s,u,c,d;for(;l--;)if(s=t[l][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[l][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=l,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=l);const g={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[u][1].start},end:{...t[c][1].end}},v={type:"labelText",start:{...t[u+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",g,r],["enter",h,r]],d=$n(d,t.slice(u+1,u+a+3)),d=$n(d,[["enter",v,r]]),d=$n(d,Xh(r.parser.constructs.insideSpan.null,t.slice(u+a+4,c-3),r)),d=$n(d,[["exit",v,r],t[c-2],t[c-1],["exit",h,r]]),d=$n(d,t.slice(c+1)),d=$n(d,[["exit",g,r]]),Sr(t,u,t.length,d),t}function hC(t,r,l){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return d;function d(b){return u?u._inactive?p(b):(c=a.parser.defined.includes(Ki(a.sliceSerialize({start:u.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(b),t.exit("labelMarker"),t.exit("labelEnd"),g):l(b)}function g(b){return b===40?t.attempt(sC,v,c?v:p)(b):b===91?t.attempt(uC,v,c?h:p)(b):c?v(b):p(b)}function h(b){return t.attempt(cC,v,p)(b)}function v(b){return r(b)}function p(b){return u._balanced=!0,l(b)}}function mC(t,r,l){return a;function a(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),s}function s(p){return Cn(p)?so(t,u)(p):u(p)}function u(p){return p===41?v(p):Tb(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function c(p){return Cn(p)?so(t,g)(p):v(p)}function d(p){return l(p)}function g(p){return p===34||p===39||p===40?Db(t,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):v(p)}function h(p){return Cn(p)?so(t,v)(p):v(p)}function v(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),r):l(p)}}function pC(t,r,l){const a=this;return s;function s(d){return Ab.call(a,t,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):l(d)}function c(d){return l(d)}}function gC(t,r,l){return a;function a(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),s}function s(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),r):l(u)}}const vC={name:"labelStartImage",resolveAll:Zh.resolveAll,tokenize:yC};function yC(t,r,l){const a=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),u}function u(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):l(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(d):r(d)}}const bC={name:"labelStartLink",resolveAll:Zh.resolveAll,tokenize:xC};function xC(t,r,l){const a=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(c):r(c)}}const Nd={name:"lineEnding",tokenize:SC};function SC(t,r){return l;function l(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),st(t,r,"linePrefix")}}const au={name:"thematicBreak",tokenize:CC};function CC(t,r,l){let a=0,s;return u;function u(h){return t.enter("thematicBreak"),c(h)}function c(h){return s=h,d(h)}function d(h){return h===s?(t.enter("thematicBreakSequence"),g(h)):a>=3&&(h===null||Ae(h))?(t.exit("thematicBreak"),r(h)):l(h)}function g(h){return h===s?(t.consume(h),a++,g):(t.exit("thematicBreakSequence"),Ge(h)?st(t,d,"whitespace")(h):d(h))}}const xn={continuation:{tokenize:AC},exit:NC,name:"list",tokenize:TC},wC={partial:!0,tokenize:OC},EC={partial:!0,tokenize:DC};function TC(t,r,l){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(y){const w=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:dh(y)){if(a.containerState.type||(a.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),y===42||y===45?t.check(au,l,h)(y):h(y);if(!a.interrupt||y===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),g(y)}return l(y)}function g(y){return dh(y)&&++c<10?(t.consume(y),g):(!a.interrupt||c<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(t.exit("listItemValue"),h(y)):l(y)}function h(y){return t.enter("listItemMarker"),t.consume(y),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,t.check(zu,a.interrupt?l:v,t.attempt(wC,b,p))}function v(y){return a.containerState.initialBlankLine=!0,u++,b(y)}function p(y){return Ge(y)?(t.enter("listItemPrefixWhitespace"),t.consume(y),t.exit("listItemPrefixWhitespace"),b):l(y)}function b(y){return a.containerState.size=u+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(y)}}function AC(t,r,l){const a=this;return a.containerState._closeFlow=void 0,t.check(zu,s,u);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,st(t,r,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Ge(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(EC,r,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,st(t,t.attempt(xn,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function DC(t,r,l){const a=this;return st(t,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):l(u)}}function NC(t){t.exit(this.containerState.type)}function OC(t,r,l){const a=this;return st(t,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Ge(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const iv={name:"setextUnderline",resolveTo:RC,tokenize:kC};function RC(t,r){let l=t.length,a,s,u;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){a=l;break}t[l][1].type==="paragraph"&&(s=l)}else t[l][1].type==="content"&&t.splice(l,1),!u&&t[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",u?(t.splice(s,0,["enter",c,r]),t.splice(u+1,0,["exit",t[a][1],r]),t[a][1].end={...t[u][1].end}):t[a][1]=c,t.push(["exit",c,r]),t}function kC(t,r,l){const a=this;let s;return u;function u(h){let v=a.events.length,p;for(;v--;)if(a.events[v][1].type!=="lineEnding"&&a.events[v][1].type!=="linePrefix"&&a.events[v][1].type!=="content"){p=a.events[v][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(t.enter("setextHeadingLine"),s=h,c(h)):l(h)}function c(h){return t.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(t.consume(h),d):(t.exit("setextHeadingLineSequence"),Ge(h)?st(t,g,"lineSuffix")(h):g(h))}function g(h){return h===null||Ae(h)?(t.exit("setextHeadingLine"),r(h)):l(h)}}const MC={tokenize:_C};function _C(t){const r=this,l=t.attempt(zu,a,t.attempt(this.parser.constructs.flowInitial,s,st(t,t.attempt(this.parser.constructs.flow,s,t.attempt(H9,s)),"linePrefix")));return l;function a(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function s(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),r.currentConstruct=void 0,l}}const jC={resolveAll:Ob()},zC=Nb("string"),LC=Nb("text");function Nb(t){return{resolveAll:Ob(t==="text"?BC:void 0),tokenize:r};function r(l){const a=this,s=this.parser.constructs[t],u=l.attempt(s,c,d);return c;function c(v){return h(v)?u(v):d(v)}function d(v){if(v===null){l.consume(v);return}return l.enter("data"),l.consume(v),g}function g(v){return h(v)?(l.exit("data"),u(v)):(l.consume(v),g)}function h(v){if(v===null)return!0;const p=s[v];let b=-1;if(p)for(;++b<p.length;){const y=p[b];if(!y.previous||y.previous.call(a,a.previous))return!0}return!1}}}function Ob(t){return r;function r(l,a){let s=-1,u;for(;++s<=l.length;)u===void 0?l[s]&&l[s][1].type==="data"&&(u=s,s++):(!l[s]||l[s][1].type!=="data")&&(s!==u+2&&(l[u][1].end=l[s-1][1].end,l.splice(u+2,s-u-2),s=u+2),u=void 0);return t?t(l,a):l}}function BC(t,r){let l=0;for(;++l<=t.length;)if((l===t.length||t[l][1].type==="lineEnding")&&t[l-1][1].type==="data"){const a=t[l-1][1],s=r.sliceStream(a);let u=s.length,c=-1,d=0,g;for(;u--;){const h=s[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)g=!0,d++;else if(h!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===t.length&&(d=0),d){const h={type:l===t.length||g||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(t.splice(l,0,["enter",h,r],["exit",h,r]),l+=2)}l++}return t}const HC={42:xn,43:xn,45:xn,48:xn,49:xn,50:xn,51:xn,52:xn,53:xn,54:xn,55:xn,56:xn,57:xn,62:Sb},UC={91:Y9},IC={[-2]:Dd,[-1]:Dd,32:Dd},VC={35:Q9,42:au,45:[iv,au],60:W9,61:iv,95:au,96:rv,126:rv},qC={38:wb,92:Cb},YC={[-5]:Nd,[-4]:Nd,[-3]:Nd,33:vC,38:wb,42:hh,60:[b9,aC],91:bC,92:[G9,Cb],93:Zh,95:hh,96:M9},PC={null:[hh,jC]},XC={null:[42,95]},ZC={null:[]},GC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:XC,contentInitial:UC,disable:ZC,document:HC,flow:VC,flowInitial:IC,insideSpan:PC,string:qC,text:YC},Symbol.toStringTag,{value:"Module"}));function FC(t,r,l){let a={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const s={},u=[];let c=[],d=[];const g={attempt:H(z),check:H(k),consume:_,enter:R,exit:N,interrupt:H(k,{interrupt:!0})},h={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:t,previous:null,sliceSerialize:b,sliceStream:y,write:p};let v=r.tokenize.call(h,g);return r.resolveAll&&u.push(r),h;function p(Z){return c=$n(c,Z),A(),c[c.length-1]!==null?[]:(I(r,0),h.events=Xh(u,h.events,h),h.events)}function b(Z,K){return KC(y(Z),K)}function y(Z){return QC(c,Z)}function w(){const{_bufferIndex:Z,_index:K,line:oe,column:te,offset:W}=a;return{_bufferIndex:Z,_index:K,line:oe,column:te,offset:W}}function T(Z){s[Z.line]=Z.column,Q()}function A(){let Z;for(;a._index<c.length;){const K=c[a._index];if(typeof K=="string")for(Z=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===Z&&a._bufferIndex<K.length;)E(K.charCodeAt(a._bufferIndex));else E(K)}}function E(Z){v=v(Z)}function _(Z){Ae(Z)?(a.line++,a.column=1,a.offset+=Z===-3?2:1,Q()):Z!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=Z}function R(Z,K){const oe=K||{};return oe.type=Z,oe.start=w(),h.events.push(["enter",oe,h]),d.push(oe),oe}function N(Z){const K=d.pop();return K.end=w(),h.events.push(["exit",K,h]),K}function z(Z,K){I(Z,K.from)}function k(Z,K){K.restore()}function H(Z,K){return oe;function oe(te,W,U){let G,le,ce,M;return Array.isArray(te)?Y(te):"tokenize"in te?Y([te]):L(te);function L(se){return ve;function ve(me){const he=me!==null&&se[me],ge=me!==null&&se.null,Te=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return Y(Te)(me)}}function Y(se){return G=se,le=0,se.length===0?U:O(se[le])}function O(se){return ve;function ve(me){return M=j(),ce=se,se.partial||(h.currentConstruct=se),se.name&&h.parser.constructs.disable.null.includes(se.name)?de():se.tokenize.call(K?Object.assign(Object.create(h),K):h,g,ne,de)(me)}}function ne(se){return Z(ce,M),W}function de(se){return M.restore(),++le<G.length?O(G[le]):U}}}function I(Z,K){Z.resolveAll&&!u.includes(Z)&&u.push(Z),Z.resolve&&Sr(h.events,K,h.events.length-K,Z.resolve(h.events.slice(K),h)),Z.resolveTo&&(h.events=Z.resolveTo(h.events,h))}function j(){const Z=w(),K=h.previous,oe=h.currentConstruct,te=h.events.length,W=Array.from(d);return{from:te,restore:U};function U(){a=Z,h.previous=K,h.currentConstruct=oe,h.events.length=te,d=W,Q()}}function Q(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function QC(t,r){const l=r.start._index,a=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(l===s)c=[t[l].slice(a,u)];else{if(c=t.slice(l,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(t[s].slice(0,u))}return c}function KC(t,r){let l=-1;const a=[];let s;for(;++l<t.length;){const u=t[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
91
+ `;break}case-3:{c=`\r
92
+ `;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function $C(t){const a={constructs:l9([GC,...(t||{}).extensions||[]]),content:s(d9),defined:[],document:s(m9),flow:s(MC),lazy:{},string:s(zC),text:s(LC)};return a;function s(u){return c;function c(d){return FC(a,u,d)}}}function JC(t){for(;!Eb(t););return t}const av=/[\0\t\n\r]/g;function WC(){let t=1,r="",l=!0,a;return s;function s(u,c,d){const g=[];let h,v,p,b,y;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),p=0,r="",l&&(u.charCodeAt(0)===65279&&p++,l=void 0);p<u.length;){if(av.lastIndex=p,h=av.exec(u),b=h&&h.index!==void 0?h.index:u.length,y=u.charCodeAt(b),!h){r=u.slice(p);break}if(y===10&&p===b&&a)g.push(-3),a=void 0;else switch(a&&(g.push(-5),a=void 0),p<b&&(g.push(u.slice(p,b)),t+=b-p),y){case 0:{g.push(65533),t++;break}case 9:{for(v=Math.ceil(t/4)*4,g.push(-2);t++<v;)g.push(-1);break}case 10:{g.push(-4),t=1;break}default:a=!0,t=1}p=b+1}return d&&(a&&g.push(-5),r&&g.push(r),g.push(null)),g}}const e8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t8(t){return t.replace(e8,n8)}function n8(t,r,l){if(r)return r;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),u=s===120||s===88;return xb(l.slice(u?2:1),u?16:10)}return Ph(l)||t}const Rb={}.hasOwnProperty;function r8(t,r,l){return r&&typeof r=="object"&&(l=r,r=void 0),l8(l)(JC($C(l).document().write(WC()(t,r,!0))))}function l8(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(wt),autolinkProtocol:j,autolinkEmail:j,atxHeading:u(at),blockQuote:u(ge),characterEscape:j,characterReference:j,codeFenced:u(Te),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Te,c),codeText:u(we,c),codeTextData:j,data:j,codeFlowValue:j,definition:u(De),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Ve),hardBreakEscape:u(mt),hardBreakTrailing:u(mt),htmlFlow:u(Rt,c),htmlFlowData:j,htmlText:u(Rt,c),htmlTextData:j,image:u(tn),label:c,link:u(wt),listItem:u(dn),listItemValue:b,listOrdered:u(Ut,p),listUnordered:u(Ut),paragraph:u(Fe),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(at),strong:u(Er),thematicBreak:u(kl)},exit:{atxHeading:g(),atxHeadingSequence:z,autolink:g(),autolinkEmail:he,autolinkProtocol:me,blockQuote:g(),characterEscapeValue:Q,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:se,characterReference:ve,codeFenced:g(A),codeFencedFence:T,codeFencedFenceInfo:y,codeFencedFenceMeta:w,codeFlowValue:Q,codeIndented:g(E),codeText:g(W),codeTextData:Q,data:Q,definition:g(),definitionDestinationString:N,definitionLabelString:_,definitionTitleString:R,emphasis:g(),hardBreakEscape:g(K),hardBreakTrailing:g(K),htmlFlow:g(oe),htmlFlowData:Q,htmlText:g(te),htmlTextData:Q,image:g(G),label:ce,labelText:le,lineEnding:Z,link:g(U),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ne,resourceDestinationString:M,resourceTitleString:L,resource:Y,setextHeading:g(I),setextHeadingLineSequence:H,setextHeadingText:k,strong:g(),thematicBreak:g()}};kb(r,(t||{}).mdastExtensions||[]);const l={};return a;function a(ee){let ue={type:"root",children:[]};const xe={stack:[ue],tokenStack:[],config:r,enter:d,exit:h,buffer:c,resume:v,data:l},Ne=[];let _e=-1;for(;++_e<ee.length;)if(ee[_e][1].type==="listOrdered"||ee[_e][1].type==="listUnordered")if(ee[_e][0]==="enter")Ne.push(_e);else{const Qe=Ne.pop();_e=s(ee,Qe,_e)}for(_e=-1;++_e<ee.length;){const Qe=r[ee[_e][0]];Rb.call(Qe,ee[_e][1].type)&&Qe[ee[_e][1].type].call(Object.assign({sliceSerialize:ee[_e][2].sliceSerialize},xe),ee[_e][1])}if(xe.tokenStack.length>0){const Qe=xe.tokenStack[xe.tokenStack.length-1];(Qe[1]||ov).call(xe,void 0,Qe[0])}for(ue.position={start:Sl(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Sl(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<r.transforms.length;)ue=r.transforms[_e](ue)||ue;return ue}function s(ee,ue,xe){let Ne=ue-1,_e=-1,Qe=!1,an,pt,yt,kt;for(;++Ne<=xe;){const qe=ee[Ne];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?_e++:_e--,kt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(an&&!kt&&!_e&&!yt&&(yt=Ne),kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:kt=void 0}if(!_e&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||_e===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(an){let Tn=Ne;for(pt=void 0;Tn--;){const ct=ee[Tn];if(ct[1].type==="lineEnding"||ct[1].type==="lineEndingBlank"){if(ct[0]==="exit")continue;pt&&(ee[pt][1].type="lineEndingBlank",Qe=!0),ct[1].type="lineEnding",pt=Tn}else if(!(ct[1].type==="linePrefix"||ct[1].type==="blockQuotePrefix"||ct[1].type==="blockQuotePrefixWhitespace"||ct[1].type==="blockQuoteMarker"||ct[1].type==="listItemIndent"))break}yt&&(!pt||yt<pt)&&(an._spread=!0),an.end=Object.assign({},pt?ee[pt][1].start:qe[1].end),ee.splice(pt||Ne,0,["exit",an,qe[2]]),Ne++,xe++}if(qe[1].type==="listItemPrefix"){const Tn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};an=Tn,ee.splice(Ne,0,["enter",Tn,qe[2]]),Ne++,xe++,yt=void 0,kt=!0}}}return ee[ue][1]._spread=Qe,xe}function u(ee,ue){return xe;function xe(Ne){d.call(this,ee(Ne),Ne),ue&&ue.call(this,Ne)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ee,ue,xe){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([ue,xe||void 0]),ee.position={start:Sl(ue.start),end:void 0}}function g(ee){return ue;function ue(xe){ee&&ee.call(this,xe),h.call(this,xe)}}function h(ee,ue){const xe=this.stack.pop(),Ne=this.tokenStack.pop();if(Ne)Ne[0].type!==ee.type&&(ue?ue.call(this,ee,Ne[0]):(Ne[1]||ov).call(this,ee,Ne[0]));else throw new Error("Cannot close `"+ee.type+"` ("+oo({start:ee.start,end:ee.end})+"): it’s not open");xe.position.end=Sl(ee.end)}function v(){return n9(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(ee){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=ee}function w(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=ee}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ee.replace(/(\r?\n|\r)$/g,"")}function _(ee){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Ki(this.sliceSerialize(ee)).toLowerCase()}function R(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.title=ee}function N(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.url=ee}function z(ee){const ue=this.stack[this.stack.length-1];if(!ue.depth){const xe=this.sliceSerialize(ee).length;ue.depth=xe}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function H(ee){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function j(ee){const xe=this.stack[this.stack.length-1].children;let Ne=xe[xe.length-1];(!Ne||Ne.type!=="text")&&(Ne=ut(),Ne.position={start:Sl(ee.start),end:void 0},xe.push(Ne)),this.stack.push(Ne)}function Q(ee){const ue=this.stack.pop();ue.value+=this.sliceSerialize(ee),ue.position.end=Sl(ee.end)}function Z(ee){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ue.children[ue.children.length-1];xe.position.end=Sl(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ue.type)&&(j.call(this,ee),Q.call(this,ee))}function K(){this.data.atHardBreak=!0}function oe(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ee}function te(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ee}function W(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.value=ee}function U(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=ue,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function G(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=ue,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function le(ee){const ue=this.sliceSerialize(ee),xe=this.stack[this.stack.length-2];xe.label=t8(ue),xe.identifier=Ki(ue).toLowerCase()}function ce(){const ee=this.stack[this.stack.length-1],ue=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Ne=ee.children;xe.children=Ne}else xe.alt=ue}function M(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.url=ee}function L(){const ee=this.resume(),ue=this.stack[this.stack.length-1];ue.title=ee}function Y(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ne(ee){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Ki(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function de(ee){this.data.characterReferenceType=ee.type}function se(ee){const ue=this.sliceSerialize(ee),xe=this.data.characterReferenceType;let Ne;xe?(Ne=xb(ue,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ne=Ph(ue);const _e=this.stack[this.stack.length-1];_e.value+=Ne}function ve(ee){const ue=this.stack.pop();ue.position.end=Sl(ee.end)}function me(ee){Q.call(this,ee);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(ee)}function he(ee){Q.call(this,ee);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(ee)}function ge(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function we(){return{type:"inlineCode",value:""}}function De(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ve(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:0,children:[]}}function mt(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function tn(){return{type:"image",title:null,url:"",alt:null}}function wt(){return{type:"link",title:null,url:"",children:[]}}function Ut(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function dn(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function Fe(){return{type:"paragraph",children:[]}}function Er(){return{type:"strong",children:[]}}function ut(){return{type:"text",value:""}}function kl(){return{type:"thematicBreak"}}}function Sl(t){return{line:t.line,column:t.column,offset:t.offset}}function kb(t,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?kb(t,a):i8(t,a)}}function i8(t,r){let l;for(l in r)if(Rb.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&t[l].push(...a);break}case"transforms":{const a=r[l];a&&t[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(t[l],a);break}}}function ov(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+oo({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+oo({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+oo({start:r.start,end:r.end})+") is still open")}function a8(t){const r=this;r.parser=l;function l(a){return r8(a,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function o8(t,r){const l={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,l),t.applyData(r,l)}function s8(t,r){const l={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,l),[t.applyData(r,l),{type:"text",value:`
93
+ `}]}function u8(t,r){const l=r.value?r.value+`
94
+ `:"",a={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),t.patch(r,u),u=t.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(r,u),u}function c8(t,r){const l={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function f8(t,r){const l={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function d8(t,r){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),s=ra(a.toLowerCase()),u=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=u+1,d+=1,t.footnoteCounts.set(a,d);const g={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+s,id:l+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,g);const h={type:"element",tagName:"sup",properties:{},children:[g]};return t.patch(r,h),t.applyData(r,h)}function h8(t,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function m8(t,r){if(t.options.allowDangerousHtml){const l={type:"raw",value:r.value};return t.patch(r,l),t.applyData(r,l)}}function Mb(t,r){const l=r.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const s=t.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function p8(t,r){const l=String(r.identifier).toUpperCase(),a=t.definitionById.get(l);if(!a)return Mb(t,r);const s={src:ra(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return t.patch(r,u),t.applyData(r,u)}function g8(t,r){const l={src:ra(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return t.patch(r,a),t.applyData(r,a)}function v8(t,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return t.patch(r,a),t.applyData(r,a)}function y8(t,r){const l=String(r.identifier).toUpperCase(),a=t.definitionById.get(l);if(!a)return Mb(t,r);const s={href:ra(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function b8(t,r){const l={href:ra(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function x8(t,r,l){const a=t.all(r),s=l?S8(l):_b(r),u={},c=[];if(typeof r.checked=="boolean"){const v=a[0];let p;v&&v.type==="element"&&v.tagName==="p"?p=v:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const v=a[d];(s||d!==0||v.type!=="element"||v.tagName!=="p")&&c.push({type:"text",value:`
95
+ `}),v.type==="element"&&v.tagName==="p"&&!s?c.push(...v.children):c.push(v)}const g=a[a.length-1];g&&(s||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
96
+ `});const h={type:"element",tagName:"li",properties:u,children:c};return t.patch(r,h),t.applyData(r,h)}function S8(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const l=t.children;let a=-1;for(;!r&&++a<l.length;)r=_b(l[a])}return r}function _b(t){const r=t.spread;return r??t.children.length>1}function C8(t,r){const l={},a=t.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:l,children:t.wrap(a,!0)};return t.patch(r,u),t.applyData(r,u)}function w8(t,r){const l={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function E8(t,r){const l={type:"root",children:t.wrap(t.all(r))};return t.patch(r,l),t.applyData(r,l)}function T8(t,r){const l={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function A8(t,r){const l=t.all(r),a=l.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(r.children[0],c),s.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(l,!0)},d=Ih(r.children[1]),g=hb(r.children[r.children.length-1]);d&&g&&(c.position={start:d,end:g}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(r,u),t.applyData(r,u)}function D8(t,r,l){const a=l?l.children:void 0,u=(a?a.indexOf(r):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,d=c?c.length:r.children.length;let g=-1;const h=[];for(;++g<d;){const p=r.children[g],b={},y=c?c[g]:void 0;y&&(b.align=y);let w={type:"element",tagName:u,properties:b,children:[]};p&&(w.children=t.all(p),t.patch(p,w),w=t.applyData(p,w)),h.push(w)}const v={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(r,v),t.applyData(r,v)}function N8(t,r){const l={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}const sv=9,uv=32;function O8(t){const r=String(t),l=/\r?\n|\r/g;let a=l.exec(r),s=0;const u=[];for(;a;)u.push(cv(r.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=l.exec(r);return u.push(cv(r.slice(s),s>0,!1)),u.join("")}function cv(t,r,l){let a=0,s=t.length;if(r){let u=t.codePointAt(a);for(;u===sv||u===uv;)a++,u=t.codePointAt(a)}if(l){let u=t.codePointAt(s-1);for(;u===sv||u===uv;)s--,u=t.codePointAt(s-1)}return s>a?t.slice(a,s):""}function R8(t,r){const l={type:"text",value:O8(String(r.value))};return t.patch(r,l),t.applyData(r,l)}function k8(t,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,l),t.applyData(r,l)}const M8={blockquote:o8,break:s8,code:u8,delete:c8,emphasis:f8,footnoteReference:d8,heading:h8,html:m8,imageReference:p8,image:g8,inlineCode:v8,linkReference:y8,link:b8,listItem:x8,list:C8,paragraph:w8,root:E8,strong:T8,table:A8,tableCell:N8,tableRow:D8,text:R8,thematicBreak:k8,toml:Js,yaml:Js,definition:Js,footnoteDefinition:Js};function Js(){}const jb=-1,Lu=0,uo=1,vu=2,Gh=3,Fh=4,Qh=5,Kh=6,zb=7,Lb=8,Bb=typeof self=="object"?self:globalThis,fv=(t,r)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Bb[t](r)},_8=(t,r)=>{const l=(s,u)=>(t.set(u,s),s),a=s=>{if(t.has(s))return t.get(s);const[u,c]=r[s];switch(u){case Lu:case jb:return l(c,s);case uo:{const d=l([],s);for(const g of c)d.push(a(g));return d}case vu:{const d=l({},s);for(const[g,h]of c)d[a(g)]=a(h);return d}case Gh:return l(new Date(c),s);case Fh:{const{source:d,flags:g}=c;return l(new RegExp(d,g),s)}case Qh:{const d=l(new Map,s);for(const[g,h]of c)d.set(a(g),a(h));return d}case Kh:{const d=l(new Set,s);for(const g of c)d.add(a(g));return d}case zb:{const{name:d,message:g}=c;return l(typeof Bb[d]=="function"?fv(d,g):new Error(g),s)}case Lb:return l(BigInt(c),s);case"BigInt":return l(Object(BigInt(c)),s);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return l(new DataView(d),c)}}return l(fv(u,c),s)};return a},dv=t=>_8(new Map,t)(0),Kl="",{toString:j8}={},{keys:z8}=Object,io=t=>{const r=typeof t;if(r!=="object"||!t)return[Lu,r];const l=j8.call(t).slice(8,-1);switch(l){case"Array":return[uo,Kl];case"Object":return[vu,Kl];case"Date":return[Gh,Kl];case"RegExp":return[Fh,Kl];case"Map":return[Qh,Kl];case"Set":return[Kh,Kl];case"DataView":return[uo,l]}return l.includes("Array")?[uo,l]:t instanceof Error?[zb,t.name||"Error"]:[vu,l]},Ws=([t,r])=>t===Lu&&(r==="function"||r==="symbol"),L8=(t,r,l,a)=>{const s=(c,d)=>{const g=a.push(c)-1;return l.set(d,g),g},u=c=>{if(l.has(c))return l.get(c);let[d,g]=io(c);switch(d){case Lu:{let v=c;switch(g){case"bigint":d=Lb,v=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+g);v=null;break;case"undefined":return s([jb],c)}return s([d,v],c)}case uo:{if(g){let b=c;return g==="DataView"?b=new Uint8Array(c.buffer):g==="ArrayBuffer"&&(b=new Uint8Array(c)),s([g,[...b]],c)}const v=[],p=s([d,v],c);for(const b of c)v.push(u(b));return p}case vu:{if(g)switch(g){case"BigInt":return s([g,c.toString()],c);case"Boolean":case"Number":case"String":return s([g,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const v=[],p=s([d,v],c);for(const b of z8(c))(t||!Ws(io(c[b])))&&v.push([u(b),u(c[b])]);return p}case Gh:return s([d,isNaN(c.getTime())?Kl:c.toISOString()],c);case Fh:{const{source:v,flags:p}=c;return s([d,{source:v,flags:p}],c)}case Qh:{const v=[],p=s([d,v],c);for(const[b,y]of c)(t||!(Ws(io(b))||Ws(io(y))))&&v.push([u(b),u(y)]);return p}case Kh:{const v=[],p=s([d,v],c);for(const b of c)(t||!Ws(io(b)))&&v.push(u(b));return p}}const{message:h}=c;return s([d,{name:g,message:h}],c)};return u},hv=(t,{json:r,lossy:l}={})=>{const a=[];return L8(!(r||l),!!r,new Map,a)(t),a},yu=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?dv(hv(t,r)):structuredClone(t):(t,r)=>dv(hv(t,r));function B8(t,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function H8(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function U8(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=t.options.footnoteBackContent||B8,a=t.options.footnoteBackLabel||H8,s=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let g=-1;for(;++g<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[g]);if(!h)continue;const v=t.all(h),p=String(h.identifier).toUpperCase(),b=ra(p.toLowerCase());let y=0;const w=[],T=t.footnoteCounts.get(p);for(;T!==void 0&&++y<=T;){w.length>0&&w.push({type:"text",value:" "});let _=typeof l=="string"?l:l(g,y);typeof _=="string"&&(_={type:"text",value:_}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(g,y),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const A=v[v.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const _=A.children[A.children.length-1];_&&_.type==="text"?_.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...w)}else v.push(...w);const E={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:t.wrap(v,!0)};t.patch(h,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...yu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
97
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
98
+ `}]}}const Hb=(function(t){if(t==null)return Y8;if(typeof t=="function")return Bu(t);if(typeof t=="object")return Array.isArray(t)?I8(t):V8(t);if(typeof t=="string")return q8(t);throw new Error("Expected function, string, or object as test")});function I8(t){const r=[];let l=-1;for(;++l<t.length;)r[l]=Hb(t[l]);return Bu(a);function a(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function V8(t){const r=t;return Bu(l);function l(a){const s=a;let u;for(u in t)if(s[u]!==r[u])return!1;return!0}}function q8(t){return Bu(r);function r(l){return l&&l.type===t}}function Bu(t){return r;function r(l,a,s){return!!(P8(l)&&t.call(this,l,typeof a=="number"?a:void 0,s||void 0))}}function Y8(){return!0}function P8(t){return t!==null&&typeof t=="object"&&"type"in t}const Ub=[],X8=!0,mv=!1,Z8="skip";function G8(t,r,l,a){let s;typeof r=="function"&&typeof l!="function"?(a=l,l=r):s=r;const u=Hb(s),c=a?-1:1;d(t,void 0,[])();function d(g,h,v){const p=g&&typeof g=="object"?g:{};if(typeof p.type=="string"){const y=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(g.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=Ub,w,T,A;if((!r||u(g,h,v[v.length-1]||void 0))&&(y=F8(l(g,v)),y[0]===mv))return y;if("children"in g&&g.children){const E=g;if(E.children&&y[0]!==Z8)for(T=(a?E.children.length:-1)+c,A=v.concat(E);T>-1&&T<E.children.length;){const _=E.children[T];if(w=d(_,T,A)(),w[0]===mv)return w;T=typeof w[1]=="number"?w[1]:T+c}}return y}}}function F8(t){return Array.isArray(t)?t:typeof t=="number"?[X8,t]:t==null?Ub:[t]}function Ib(t,r,l,a){let s,u,c;typeof r=="function"&&typeof l!="function"?(u=void 0,c=r,s=l):(u=r,c=l,s=a),G8(t,u,d,s);function d(g,h){const v=h[h.length-1],p=v?v.children.indexOf(g):void 0;return c(g,p,v)}}const mh={}.hasOwnProperty,Q8={};function K8(t,r){const l=r||Q8,a=new Map,s=new Map,u=new Map,c={...M8,...l.handlers},d={all:h,applyData:J8,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:g,options:l,patch:$8,wrap:ew};return Ib(t,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const p=v.type==="definition"?a:s,b=String(v.identifier).toUpperCase();p.has(b)||p.set(b,v)}}),d;function g(v,p){const b=v.type,y=d.handlers[b];if(mh.call(d.handlers,b)&&y)return y(d,v,p);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in v){const{children:T,...A}=v,E=yu(A);return E.children=d.all(v),E}return yu(v)}return(d.options.unknownHandler||W8)(d,v,p)}function h(v){const p=[];if("children"in v){const b=v.children;let y=-1;for(;++y<b.length;){const w=d.one(b[y],v);if(w){if(y&&b[y-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=pv(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=pv(T.value))}Array.isArray(w)?p.push(...w):p.push(w)}}}return p}}function $8(t,r){t.position&&(r.position=j6(t))}function J8(t,r){let l=r;if(t&&t.data){const a=t.data.hName,s=t.data.hChildren,u=t.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const c="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,yu(u)),"children"in l&&l.children&&s!==null&&s!==void 0&&(l.children=s)}return l}function W8(t,r){const l=r.data||{},a="value"in r&&!(mh.call(l,"hProperties")||mh.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function ew(t,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
99
+ `});++a<t.length;)a&&l.push({type:"text",value:`
100
+ `}),l.push(t[a]);return r&&t.length>0&&l.push({type:"text",value:`
101
+ `}),l}function pv(t){let r=0,l=t.charCodeAt(r);for(;l===9||l===32;)r++,l=t.charCodeAt(r);return t.slice(r)}function gv(t,r){const l=K8(t,r),a=l.one(t,void 0),s=U8(l),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
102
+ `},s),u}function tw(t,r){return t&&"run"in t?async function(l,a){const s=gv(l,{file:a,...r});await t.run(s,a)}:function(l,a){return gv(l,{file:a,...t||r})}}function vv(t){if(t)throw t}var Od,yv;function nw(){if(yv)return Od;yv=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},u=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var v=t.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!p)return!1;var b;for(b in h);return typeof b>"u"||t.call(h,b)},c=function(h,v){l&&v.name==="__proto__"?l(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},d=function(h,v){if(v==="__proto__")if(t.call(h,v)){if(a)return a(h,v).value}else return;return h[v]};return Od=function g(){var h,v,p,b,y,w,T=arguments[0],A=1,E=arguments.length,_=!1;for(typeof T=="boolean"&&(_=T,T=arguments[1]||{},A=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});A<E;++A)if(h=arguments[A],h!=null)for(v in h)p=d(T,v),b=d(h,v),T!==b&&(_&&b&&(u(b)||(y=s(b)))?(y?(y=!1,w=p&&s(p)?p:[]):w=p&&u(p)?p:{},c(T,{name:v,newValue:g(_,w,b)})):typeof b<"u"&&c(T,{name:v,newValue:b}));return T},Od}var rw=nw();const Rd=Ou(rw);function ph(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function lw(){const t=[],r={run:l,use:a};return r;function l(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(g,...h){const v=t[++u];let p=-1;if(g){c(g);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,v?iw(v,d)(...h):c(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function iw(t,r){let l;return a;function a(...c){const d=t.length>c.length;let g;d&&c.push(s);try{g=t.apply(this,c)}catch(h){const v=h;if(d&&l)throw v;return s(v)}d||(g&&g.then&&typeof g.then=="function"?g.then(u,s):g instanceof Error?s(g):u(g))}function s(c,...d){l||(l=!0,r(c,...d))}function u(c){s(null,c)}}const gr={basename:aw,dirname:ow,extname:sw,join:uw,sep:"/"};function aw(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Do(t);let l=0,a=-1,s=t.length,u;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(u){l=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":t.slice(l,a)}if(r===t)return"";let c=-1,d=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(u){l=s+1;break}}else c<0&&(u=!0,c=s+1),d>-1&&(t.codePointAt(s)===r.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return l===a?a=c:a<0&&(a=t.length),t.slice(l,a)}function ow(t){if(Do(t),t.length===0)return".";let r=-1,l=t.length,a;for(;--l;)if(t.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function sw(t){Do(t);let r=t.length,l=-1,a=0,s=-1,u=0,c;for(;r--;){const d=t.codePointAt(r);if(d===47){if(c){a=r+1;break}continue}l<0&&(c=!0,l=r+1),d===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||l<0||u===0||u===1&&s===l-1&&s===a+1?"":t.slice(s,l)}function uw(...t){let r=-1,l;for(;++r<t.length;)Do(t[r]),t[r]&&(l=l===void 0?t[r]:l+"/"+t[r]);return l===void 0?".":cw(l)}function cw(t){Do(t);const r=t.codePointAt(0)===47;let l=fw(t,!r);return l.length===0&&!r&&(l="."),l.length>0&&t.codePointAt(t.length-1)===47&&(l+="/"),r?"/"+l:l}function fw(t,r){let l="",a=0,s=-1,u=0,c=-1,d,g;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(g=l.lastIndexOf("/"),g!==l.length-1){g<0?(l="",a=0):(l=l.slice(0,g),a=l.length-1-l.lastIndexOf("/")),s=c,u=0;continue}}else if(l.length>0){l="",a=0,s=c,u=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+t.slice(s+1,c):l=t.slice(s+1,c),a=c-s-1;s=c,u=0}else d===46&&u>-1?u++:u=-1}return l}function Do(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const dw={cwd:hw};function hw(){return"/"}function gh(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function mw(t){if(typeof t=="string")t=new URL(t);else if(!gh(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return pw(t)}function pw(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=t.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const kd=["history","path","basename","stem","extname","dirname"];class Vb{constructor(r){let l;r?gh(r)?l={path:r}:typeof r=="string"||gw(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":dw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<kd.length;){const u=kd[a];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let s;for(s in l)kd.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?gr.basename(this.path):void 0}set basename(r){_d(r,"basename"),Md(r,"basename"),this.path=gr.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?gr.dirname(this.path):void 0}set dirname(r){bv(this.basename,"dirname"),this.path=gr.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?gr.extname(this.path):void 0}set extname(r){if(Md(r,"extname"),bv(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gr.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){gh(r)&&(r=mw(r)),_d(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?gr.basename(this.path,this.extname):void 0}set stem(r){_d(r,"stem"),Md(r,"stem"),this.path=gr.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const s=this.message(r,l,a);throw s.fatal=!0,s}info(r,l,a){const s=this.message(r,l,a);return s.fatal=void 0,s}message(r,l,a){const s=new ln(r,l,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Md(t,r){if(t&&t.includes(gr.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+gr.sep+"`")}function _d(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function bv(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function gw(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const vw=(function(t){const a=this.constructor.prototype,s=a[t],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),yw={}.hasOwnProperty;class $h extends vw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=lw()}copy(){const r=new $h;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(Rd(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Ld("data",this.frozen),this.namespace[r]=l,this):yw.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Ld("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=l.call(r,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=eu(r),a=this.parser||this.Parser;return jd("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),jd("process",this.parser||this.Parser),zd("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(u,c){const d=eu(r),g=a.parse(d);a.run(g,d,function(v,p,b){if(v||!p||!b)return h(v);const y=p,w=a.stringify(y,b);Sw(w)?b.value=w:b.result=w,h(v,b)});function h(v,p){v||!p?c(v):u?u(p):l(void 0,p)}}}processSync(r){let l=!1,a;return this.freeze(),jd("processSync",this.parser||this.Parser),zd("processSync",this.compiler||this.Compiler),this.process(r,s),Sv("processSync","process",l),a;function s(u,c){l=!0,vv(u),a=c}}run(r,l,a){xv(r),this.freeze();const s=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?u(void 0,a):new Promise(u);function u(c,d){const g=eu(l);s.run(r,g,h);function h(v,p,b){const y=p||r;v?d(v):c?c(y):a(void 0,y,b)}}}runSync(r,l){let a=!1,s;return this.run(r,l,u),Sv("runSync","run",a),s;function u(c,d){vv(c),s=d,a=!0}}stringify(r,l){this.freeze();const a=eu(l),s=this.compiler||this.Compiler;return zd("stringify",s),xv(r),s(r,a)}use(r,...l){const a=this.attachers,s=this.namespace;if(Ld("use",this.frozen),r!=null)if(typeof r=="function")g(r,l);else if(typeof r=="object")Array.isArray(r)?d(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(h){if(typeof h=="function")g(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[v,...p]=h;g(v,p)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(s.settings=Rd(!0,s.settings,h.settings))}function d(h){let v=-1;if(h!=null)if(Array.isArray(h))for(;++v<h.length;){const p=h[v];u(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function g(h,v){let p=-1,b=-1;for(;++p<a.length;)if(a[p][0]===h){b=p;break}if(b===-1)a.push([h,...v]);else if(v.length>0){let[y,...w]=v;const T=a[b][1];ph(T)&&ph(y)&&(y=Rd(!0,T,y)),a[b]=[h,y,...w]}}}}const bw=new $h().freeze();function jd(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function zd(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Ld(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xv(t){if(!ph(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Sv(t,r,l){if(!l)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function eu(t){return xw(t)?t:new Vb(t)}function xw(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Sw(t){return typeof t=="string"||Cw(t)}function Cw(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const ww="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cv=[],wv={allowDangerousHtml:!0},Ew=/^(https?|ircs?|mailto|xmpp)$/i,Tw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Aw(t){const r=Dw(t),l=Nw(t);return Ow(r.runSync(r.parse(l),l),t)}function Dw(t){const r=t.rehypePlugins||Cv,l=t.remarkPlugins||Cv,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...wv}:wv;return bw().use(a8).use(l).use(tw,a).use(r)}function Nw(t){const r=t.children||"",l=new Vb;return typeof r=="string"&&(l.value=r),l}function Ow(t,r){const l=r.allowedElements,a=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,d=r.unwrapDisallowed,g=r.urlTransform||qb;for(const v of Tw)Object.hasOwn(r,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+ww+v.id,void 0);return Ib(t,h),U6(t,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function h(v,p,b){if(v.type==="raw"&&b&&typeof p=="number")return c?b.children.splice(p,1):b.children[p]={type:"text",value:v.value},p;if(v.type==="element"){let y;for(y in Ad)if(Object.hasOwn(Ad,y)&&Object.hasOwn(v.properties,y)){const w=v.properties[y],T=Ad[y];(T===null||T.includes(v.tagName))&&(v.properties[y]=g(String(w||""),y,v))}}if(v.type==="element"){let y=l?!l.includes(v.tagName):u?u.includes(v.tagName):!1;if(!y&&a&&typeof p=="number"&&(y=!a(v,p,b)),y&&b&&typeof p=="number")return d&&v.children?b.children.splice(p,1,...v.children):b.children.splice(p,1),p}}}function qb(t){const r=t.indexOf(":"),l=t.indexOf("?"),a=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||l!==-1&&r>l||a!==-1&&r>a||Ew.test(t.slice(0,r))?t:""}const Rw=".shipbench/tasks/",Bd="https://board.shipbench.invalid",kw=/^([a-z][a-z0-9+.-]*):/i,Mw=/^\.shipbench\/tasks\/([^/]+)\.md$/;function _w(t){try{return decodeURIComponent(t).replace(/^\/+/,"")}catch{return null}}function jw(t){const r=t.trim();if(!r||r.startsWith("#"))return{kind:"default"};if(r.startsWith("//"))return{kind:"external"};const l=kw.exec(r);if(l)return/^https?$/i.test(l[1])?{kind:"external"}:{kind:"default"};const a=r.startsWith("./")||r.startsWith("../")?`${Bd}/${Rw}`:`${Bd}/`;let s;try{s=new URL(r,a)}catch{return{kind:"default"}}if(s.origin!==Bd)return{kind:"external"};const u=_w(s.pathname);if(!u)return{kind:"default"};const c=Mw.exec(u);return{kind:"repo",path:u,suffix:`${s.search}${s.hash}`,taskSlug:c?c[1]:null}}function Yb({children:t}){return S.jsx(Aw,{components:{a:Lw},children:t})}function zw(t){return t&&qb(t)||null}function Lw({href:t,children:r,node:l,...a}){const s=jw(t??""),u=Ce(h=>h.selectTask),c=Ce(h=>h.resolveRepoLink),d=Ce(h=>s.kind==="repo"&&s.taskSlug!==null&&h.tasks.some(v=>v.slug===s.taskSlug)?s.taskSlug:null);if(!t)return S.jsx(S.Fragment,{children:r});if(s.kind==="default")return S.jsx("a",{href:t,...a,children:r});if(s.kind==="external")return S.jsx("a",{href:t,rel:"noopener noreferrer",target:"_blank",...a,children:r});if(d)return S.jsx("a",{href:t,...a,onClick:h=>{h.preventDefault(),u(d)},children:r});const g=c?zw(c(s.path)):null;return g?S.jsx("a",{href:`${g}${s.suffix}`,rel:"noopener noreferrer",target:"_blank",...a,children:r}):S.jsx("span",{className:"sb-md-path",children:`${s.path}${s.suffix}`})}const Ev={ready:{label:"Ready",Icon:sy},gating:{label:"Still gating",Icon:N4},missing:{label:"Missing",Icon:y4}};function Bw({readOnly:t,tags:r,suggestions:l,onChange:a}){const s=C.useId(),u=`${s}-suggestions`,c=`${s}-help`,[d,g]=C.useState(""),[h,v]=C.useState(!1),[p,b]=C.useState(-1),[y,w]=C.useState(""),T=C.useMemo(()=>{const z=new Set(r.map(I=>I.toLocaleLowerCase())),k=new Map;for(const I of l){const j=I.trim(),Q=j.toLocaleLowerCase();j&&!z.has(Q)&&!k.has(Q)&&k.set(Q,j)}const H=d.trim().toLocaleLowerCase();return[...k.values()].filter(I=>H?I.toLocaleLowerCase().includes(H):!0).sort((I,j)=>I.localeCompare(j))},[d,l,r]),A=z=>{const k=z.trim();return k?r.some(H=>H.toLocaleLowerCase()===k.toLocaleLowerCase())?(w(`${k} is already selected.`),g(""),b(-1),!1):(a([...r,k]),g(""),v(!1),b(-1),w(`Added tag ${k}.`),!0):!1},E=z=>{const k=r[z];k&&(a(r.filter((H,I)=>I!==z)),b(-1),w(`Removed tag ${k}.`))},_=()=>A(p>=0&&h?T[p]??d:d),R=z=>{if(z.key==="ArrowDown"&&T.length){z.preventDefault(),v(!0),b(k=>(k+1)%T.length);return}if(z.key==="ArrowUp"&&T.length){z.preventDefault(),v(!0),b(k=>k<=0?T.length-1:k-1);return}if(z.key==="Escape"){v(!1),b(-1);return}if(z.key==="Backspace"&&!d&&r.length){z.preventDefault(),E(r.length-1);return}if(z.key==="Enter"||z.key===","){(d.trim()||p>=0)&&(z.preventDefault(),_());return}z.key==="Tab"&&(d.trim()||p>=0)&&_()};if(t)return S.jsx(Uw,{label:"Tags",children:r.length?S.jsx("ul",{className:"flex min-h-9 flex-wrap items-center gap-1.5","aria-label":"Task tags",children:r.map(z=>S.jsx("li",{className:"sb-metadata-token",children:z},z))}):S.jsx(Pb,{})});const N=p>=0?T[p]:void 0;return S.jsxs("div",{className:"relative grid gap-1.5",children:[S.jsx("label",{className:"sb-metadata-label",htmlFor:s,children:"Tags"}),S.jsx("span",{id:c,className:"font-mono text-[11px] text-sb-silver",children:"Enter, comma, or Tab adds a tag."}),S.jsxs("div",{className:"sb-form-control flex flex-wrap items-center gap-1.5 px-2 py-1.5",children:[r.map((z,k)=>S.jsxs("span",{className:"sb-metadata-token inline-flex items-center gap-1",children:[S.jsx("span",{children:z}),S.jsx("button",{className:"sb-token-action",type:"button","aria-label":`Remove tag ${z}`,onClick:()=>E(k),children:S.jsx(Ru,{"aria-hidden":"true",className:"h-3 w-3"})})]},z)),S.jsx("input",{id:s,className:"min-w-20 flex-1 bg-transparent py-0.5 font-mono text-[12px] text-sb-frosted outline-none placeholder:text-sb-silver",role:"combobox","aria-autocomplete":"list","aria-controls":u,"aria-describedby":c,"aria-expanded":h&&T.length>0,"aria-activedescendant":N?`${u}-${p}`:void 0,autoComplete:"off",placeholder:r.length?"Add tag":"Add tags",value:d,onBlur:()=>v(!1),onChange:z=>{g(z.target.value.replaceAll(",","")),v(!0),b(-1)},onFocus:()=>v(!0),onKeyDown:R})]}),h&&T.length?S.jsx("div",{id:u,className:"sb-combobox-list",role:"listbox","aria-label":"Tag suggestions",children:T.map((z,k)=>S.jsx("button",{id:`${u}-${k}`,className:"sb-combobox-option block w-full text-left",role:"option","aria-selected":k===p,type:"button",tabIndex:-1,onMouseDown:H=>H.preventDefault(),onClick:()=>A(z),children:z},z))}):null,S.jsx(Xb,{children:y})]})}function Hw({readOnly:t,currentTaskSlug:r,dependencies:l,tasks:a,doneColumn:s,warnings:u,onChange:c}){const d=C.useId(),g=`${d}-tasks`,h=`${d}-help`,[v,p]=C.useState(""),[b,y]=C.useState(!1),[w,T]=C.useState(-1),[A,E]=C.useState(""),_=C.useMemo(()=>new Map(a.map(I=>[I.slug,I])),[a]),R=C.useMemo(()=>{const I=new Set(l),j=v.trim().toLocaleLowerCase();return j?a.filter(Q=>Q.slug!==r&&!I.has(Q.slug)).filter(Q=>`${Q.slug} ${Q.frontmatter.title}`.toLocaleLowerCase().includes(j)).sort((Q,Z)=>Q.slug.localeCompare(Z.slug)):[]},[r,l,v,a]),N=I=>{c([...l,I.slug]),p(""),y(!1),T(-1),E(`Added dependency ${I.slug}.`)},z=I=>{c(l.filter(j=>j!==I)),T(-1),E(`Removed dependency ${I}.`)},k=I=>{if(I.key==="ArrowDown"&&R.length){I.preventDefault(),y(!0),T(j=>(j+1)%R.length);return}if(I.key==="ArrowUp"&&R.length){I.preventDefault(),y(!0),T(j=>j<=0?R.length-1:j-1);return}if(I.key==="Enter"&&w>=0){const j=R[w];j&&(I.preventDefault(),N(j));return}if(I.key==="Escape"){y(!1),T(-1);return}if(I.key==="Backspace"&&!v&&l.length){I.preventDefault();const j=l.at(-1);j&&z(j)}},H=l.length?S.jsx("ul",{className:"grid gap-1.5","aria-label":"Selected dependencies",children:l.map(I=>{const j=_.get(I),Q=Tv(j,s),{label:Z,Icon:K}=Ev[Q];return S.jsxs("li",{className:`sb-metadata-token flex min-w-0 items-center gap-2 ${Q==="ready"?"":"border-sb-ironlit"}`,children:[S.jsx(K,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0"}),S.jsx("span",{className:"min-w-0 flex-1 truncate",children:I}),S.jsx("span",{className:"shrink-0 text-[11px]",children:Z}),t?null:S.jsx("button",{className:"sb-token-action",type:"button","aria-label":`Remove dependency ${I}`,onClick:()=>z(I),children:S.jsx(Ru,{"aria-hidden":"true",className:"h-3 w-3"})})]},I)})}):S.jsx(Pb,{});return S.jsxs("div",{className:"relative grid gap-1.5",children:[t?S.jsx("span",{className:"sb-metadata-label",children:"Depends on"}):S.jsx("label",{className:"sb-metadata-label",htmlFor:d,children:"Depends on"}),t?null:S.jsxs(S.Fragment,{children:[S.jsx("span",{id:h,className:"font-mono text-[11px] text-sb-silver",children:"Search tasks, then use arrow keys and Enter to select."}),S.jsx("div",{className:"sb-form-control flex items-center gap-2 px-3 py-2",children:S.jsx("input",{id:d,className:"min-w-0 flex-1 bg-transparent font-mono text-[12px] text-sb-frosted outline-none placeholder:text-sb-silver",role:"combobox","aria-autocomplete":"list","aria-controls":g,"aria-describedby":h,"aria-expanded":b&&v.trim().length>0,"aria-activedescendant":w>=0?`${g}-${w}`:void 0,autoComplete:"off",placeholder:"Search tasks",value:v,onBlur:()=>y(!1),onChange:I=>{p(I.target.value),y(!0),T(-1)},onFocus:()=>y(!0),onKeyDown:k})}),b&&v.trim()?S.jsx("div",{className:"sb-combobox-list",id:g,role:"listbox","aria-label":"Task suggestions",children:R.length?R.map((I,j)=>{const Q=Tv(I,s),{label:Z,Icon:K}=Ev[Q];return S.jsxs("button",{id:`${g}-${j}`,className:"sb-combobox-option grid w-full grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-0.5 text-left",role:"option","aria-selected":j===w,type:"button",tabIndex:-1,onMouseDown:oe=>oe.preventDefault(),onClick:()=>N(I),children:[S.jsx("span",{className:"truncate text-sb-frosted",children:I.slug}),S.jsxs("span",{className:"row-span-2 inline-flex items-center gap-1.5 text-[11px] text-sb-silver",children:[S.jsx(K,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),Z]}),S.jsx("span",{className:"truncate text-[11px] text-sb-silver",children:I.frontmatter.title})]},I.slug)}):S.jsx("p",{className:"px-3 py-2 font-mono text-[11px] text-sb-silver",role:"status",children:"No matching tasks."})}):null]}),H,u.map(I=>S.jsx("p",{className:"font-mono text-[11px] leading-5 text-sb-frosted",role:"alert",children:I},I)),S.jsx(Xb,{children:A})]})}function Tv(t,r){return t?t.frontmatter.status===r?"ready":"gating":"missing"}function Uw({label:t,children:r}){return S.jsxs("div",{className:"grid gap-1.5",children:[S.jsx("span",{className:"sb-metadata-label",children:t}),r]})}function Pb(){return S.jsx("span",{className:"min-h-9 rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] text-sb-silver",children:"None"})}function Xb({children:t}){return S.jsx("span",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:t})}var Iw=Object.defineProperty,Vw=(t,r)=>Iw(t,"name",{value:r,configurable:!0});function vh(t,[r,l]){return Math.min(l,Math.max(r,t))}Vw(vh,"clamp");var qw=Object.defineProperty,Gt=(t,r)=>qw(t,"name",{value:r,configurable:!0});function Zb(t){const r=t+"CollectionProvider",[l,a]=ta(r),[s,u]=l(r,{collectionRef:{current:null},itemMap:new Map}),c=Gt(T=>{const{scope:A,children:E}=T,_=C.useRef(null),R=C.useRef(new Map).current;return S.jsx(s,{scope:A,itemMap:R,collectionRef:_,children:E})},"CollectionProvider");c.displayName=r;const d=t+"CollectionSlot",g=El(d),h=C.forwardRef((T,A)=>{const{scope:E,children:_}=T,R=u(d,E),N=At(A,R.collectionRef);return S.jsx(g,{ref:N,children:_})});h.displayName=d;const v=t+"CollectionItemSlot",p="data-radix-collection-item",b=El(v),y=C.forwardRef((T,A)=>{const{scope:E,children:_,...R}=T,N=C.useRef(null),z=At(A,N),k=u(v,E);return C.useEffect(()=>(k.itemMap.set(N,{ref:N,...R}),()=>void k.itemMap.delete(N))),S.jsx(b,{[p]:"",ref:z,children:_})});y.displayName=v;function w(T){const A=u(t+"CollectionConsumer",T);return C.useCallback(()=>{const _=A.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((k,H)=>R.indexOf(k.ref.current)-R.indexOf(H.ref.current))},[A.collectionRef,A.itemMap])}return Gt(w,"useCollection"),[{Provider:c,Slot:h,ItemSlot:y},w,a]}Gt(Zb,"createCollection");var Av=new WeakMap,Bt,zn,Hd=(zn=class extends Map{constructor(l){super(l);u0(this,Bt);ud(this,Bt,[...super.keys()]),Av.set(this,!0)}set(l,a){return Av.get(this)&&(this.has(l)?nn(this,Bt)[nn(this,Bt).indexOf(l)]=l:nn(this,Bt).push(l)),super.set(l,a),this}insert(l,a,s){const u=this.has(a),c=nn(this,Bt).length,d=Jh(l);let g=d>=0?d:c+d;const h=g<0||g>=c?-1:g;if(h===this.size||u&&h===this.size-1||h===-1)return this.set(a,s),this;const v=this.size+(u?0:1);d<0&&g++;const p=[...nn(this,Bt)];let b,y=!1;for(let w=g;w<v;w++)if(g===w){let T=p[w];p[w]===a&&(T=p[w+1]),u&&this.delete(a),b=this.get(T),this.set(a,s)}else{!y&&p[w-1]===a&&(y=!0);const T=p[y?w:w-1],A=b;b=this.get(T),this.delete(T),this.set(T,A)}return this}with(l,a,s){const u=new zn(this);return u.insert(l,a,s),u}before(l){const a=nn(this,Bt).indexOf(l)-1;if(!(a<0))return this.entryAt(a)}setBefore(l,a,s){const u=nn(this,Bt).indexOf(l);return u===-1?this:this.insert(u,a,s)}after(l){let a=nn(this,Bt).indexOf(l);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(l,a,s){const u=nn(this,Bt).indexOf(l);return u===-1?this:this.insert(u+1,a,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return ud(this,Bt,[]),super.clear()}delete(l){const a=super.delete(l);return a&&nn(this,Bt).splice(nn(this,Bt).indexOf(l),1),a}deleteAt(l){const a=this.keyAt(l);return a!==void 0?this.delete(a):!1}at(l){const a=ou(nn(this,Bt),l);if(a!==void 0)return this.get(a)}entryAt(l){const a=ou(nn(this,Bt),l);if(a!==void 0)return[a,this.get(a)]}indexOf(l){return nn(this,Bt).indexOf(l)}keyAt(l){return ou(nn(this,Bt),l)}from(l,a){const s=this.indexOf(l);if(s===-1)return;let u=s+a;return u<0&&(u=0),u>=this.size&&(u=this.size-1),this.at(u)}keyFrom(l,a){const s=this.indexOf(l);if(s===-1)return;let u=s+a;return u<0&&(u=0),u>=this.size&&(u=this.size-1),this.keyAt(u)}find(l,a){let s=0;for(const u of this){if(Reflect.apply(l,a,[u,s,this]))return u;s++}}findIndex(l,a){let s=0;for(const u of this){if(Reflect.apply(l,a,[u,s,this]))return s;s++}return-1}filter(l,a){const s=[];let u=0;for(const c of this)Reflect.apply(l,a,[c,u,this])&&s.push(c),u++;return new zn(s)}map(l,a){const s=[];let u=0;for(const c of this)s.push([c[0],Reflect.apply(l,a,[c,u,this])]),u++;return new zn(s)}reduce(...l){const[a,s]=l;let u=0,c=s??this.at(0);for(const d of this)u===0&&l.length===1?c=d:c=Reflect.apply(a,this,[c,d,u,this]),u++;return c}reduceRight(...l){const[a,s]=l;let u=s??this.at(-1);for(let c=this.size-1;c>=0;c--){const d=this.at(c);c===this.size-1&&l.length===1?u=d:u=Reflect.apply(a,this,[u,d,c,this])}return u}toSorted(l){const a=[...this.entries()].sort(l);return new zn(a)}toReversed(){const l=new zn;for(let a=this.size-1;a>=0;a--){const s=this.keyAt(a),u=this.get(s);l.set(s,u)}return l}toSpliced(...l){const a=[...this.entries()];return a.splice(...l),new zn(a)}slice(l,a){const s=new zn;let u=this.size-1;if(l===void 0)return s;l<0&&(l=l+this.size),a!==void 0&&a>0&&(u=a-1);for(let c=l;c<=u;c++){const d=this.keyAt(c),g=this.get(d);s.set(d,g)}return s}every(l,a){let s=0;for(const u of this){if(!Reflect.apply(l,a,[u,s,this]))return!1;s++}return!0}some(l,a){let s=0;for(const u of this){if(Reflect.apply(l,a,[u,s,this]))return!0;s++}return!1}},Bt=new WeakMap,Gt(zn,"OrderedDict"),zn);function ou(t,r){if("at"in Array.prototype)return Array.prototype.at.call(t,r);const l=Gb(t,r);return l===-1?void 0:t[l]}Gt(ou,"at");function Gb(t,r){const l=t.length,a=Jh(r),s=a>=0?a:l+a;return s<0||s>=l?-1:s}Gt(Gb,"toSafeIndex");function Jh(t){return t!==t||t===0?0:Math.trunc(t)}Gt(Jh,"toSafeInteger");function Yw(t){const r=t+"CollectionProvider",[l,a]=ta(r),[s,u]=l(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Hd,setItemMap:Gt(()=>{},"setItemMap")}),c=Gt(({state:R,...N})=>R?S.jsx(g,{...N,state:R}):S.jsx(d,{...N}),"CollectionProvider");c.displayName=r;const d=Gt(R=>{const N=A();return S.jsx(g,{...R,state:N})},"CollectionInit");d.displayName=r+"Init";const g=Gt(R=>{const{scope:N,children:z,state:k}=R,H=C.useRef(null),[I,j]=C.useState(null),Q=At(H,j),[Z,K]=k;return C.useEffect(()=>{if(!I)return;const oe=Kb(()=>{});return oe.observe(I,{childList:!0,subtree:!0}),()=>{oe.disconnect()}},[I]),S.jsx(s,{scope:N,itemMap:Z,setItemMap:K,collectionRef:Q,collectionRefObject:H,collectionElement:I,children:z})},"CollectionProviderImpl");g.displayName=r+"Impl";const h=t+"CollectionSlot",v=El(h),p=C.forwardRef((R,N)=>{const{scope:z,children:k}=R,H=u(h,z),I=At(N,H.collectionRef);return S.jsx(v,{ref:I,children:k})});p.displayName=h;const b=t+"CollectionItemSlot",y="data-radix-collection-item",w=El(b),T=C.forwardRef((R,N)=>{const{scope:z,children:k,...H}=R,I=C.useRef(null),[j,Q]=C.useState(null),Z=At(N,I,Q),K=u(b,z),{setItemMap:oe}=K,te=C.useRef(H);Fb(te.current,H)||(te.current=H);const W=te.current;return C.useEffect(()=>{const U=W;return oe(G=>j?G.has(j)?G.set(j,{...U,element:j}).toSorted(yh):(G.set(j,{...U,element:j}),G.toSorted(yh)):G),()=>{oe(G=>!j||!G.has(j)?G:(G.delete(j),new Hd(G)))}},[j,W,oe]),S.jsx(w,{[y]:"",ref:Z,children:k})});T.displayName=b;function A(){return C.useState(new Hd)}Gt(A,"useInitCollection");function E(R){const{itemMap:N}=u(t+"CollectionConsumer",R);return N}return Gt(E,"useCollection"),[{Provider:c,Slot:p,ItemSlot:T},{createCollectionScope:a,useCollection:E,useInitCollection:A}]}Gt(Yw,"createCollection");function Fb(t,r){if(t===r)return!0;if(typeof t!="object"||typeof r!="object"||t==null||r==null)return!1;const l=Object.keys(t),a=Object.keys(r);if(l.length!==a.length)return!1;for(const s of l)if(!Object.prototype.hasOwnProperty.call(r,s)||t[s]!==r[s])return!1;return!0}Gt(Fb,"shallowEqual");function Qb(t,r){return!!(r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}Gt(Qb,"isElementPreceding");function yh(t,r){return!t[1].element||!r[1].element?0:Qb(t[1].element,r[1].element)?-1:1}Gt(yh,"sortByDocumentPosition");function Kb(t){return new MutationObserver(l=>{for(const a of l)if(a.type==="childList"){t();return}})}Gt(Kb,"getChildListObserver");var Pw=Object.defineProperty,Xw=(t,r)=>Pw(t,"name",{value:r,configurable:!0}),Zw=C.createContext(void 0);function $b(t){const r=C.useContext(Zw);return t||r||"ltr"}Xw($b,"useDirection");const Gw=["top","right","bottom","left"],Tl=Math.min,Pr=Math.max,bu=Math.round,tu=Math.floor,Xr=t=>({x:t,y:t}),Fw={left:"right",right:"left",bottom:"top",top:"bottom"};function Jb(t,r,l){return Pr(t,Tl(r,l))}function Gr(t,r){return typeof t=="function"?t(r):t}function Al(t){return t.split("-")[0]}function la(t){return t.split("-")[1]}function Wh(t){return t==="x"?"y":"x"}function em(t){return t==="y"?"height":"width"}function br(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function tm(t){return Wh(br(t))}function Qw(t,r,l){l===void 0&&(l=!1);const a=la(t),s=tm(t),u=em(s);let c=s==="x"?a===(l?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=xu(c)),[c,xu(c)]}function Kw(t){const r=xu(t);return[bh(t),r,bh(r)]}function bh(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Dv=["left","right"],Nv=["right","left"],$w=["top","bottom"],Jw=["bottom","top"];function Ww(t,r,l){switch(t){case"top":case"bottom":return l?r?Nv:Dv:r?Dv:Nv;case"left":case"right":return r?$w:Jw;default:return[]}}function e7(t,r,l,a){const s=la(t);let u=Ww(Al(t),l==="start",a);return s&&(u=u.map(c=>c+"-"+s),r&&(u=u.concat(u.map(bh)))),u}function xu(t){const r=Al(t);return Fw[r]+t.slice(r.length)}function t7(t){var r,l,a,s;return{top:(r=t.top)!=null?r:0,right:(l=t.right)!=null?l:0,bottom:(a=t.bottom)!=null?a:0,left:(s=t.left)!=null?s:0}}function Wb(t){return typeof t!="number"?t7(t):{top:t,right:t,bottom:t,left:t}}function Su(t){const{x:r,y:l,width:a,height:s}=t;return{width:a,height:s,top:l,left:r,right:r+a,bottom:l+s,x:r,y:l}}function Ov(t,r,l){let{reference:a,floating:s}=t;const u=br(r),c=tm(r),d=em(c),g=Al(r),h=u==="y",v=a.x+a.width/2-s.width/2,p=a.y+a.height/2-s.height/2,b=a[d]/2-s[d]/2;let y;switch(g){case"top":y={x:v,y:a.y-s.height};break;case"bottom":y={x:v,y:a.y+a.height};break;case"right":y={x:a.x+a.width,y:p};break;case"left":y={x:a.x-s.width,y:p};break;default:y={x:a.x,y:a.y}}const w=la(r);return w&&(y[c]+=b*(w==="end"?1:-1)*(l&&h?-1:1)),y}async function n7(t,r){var l;r===void 0&&(r={});const{x:a,y:s,platform:u,rects:c,elements:d,strategy:g}=t,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:p="floating",altBoundary:b=!1,padding:y=0}=Gr(r,t),w=Wb(y),A=d[b?p==="floating"?"reference":"floating":p],E=Su(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(A)))==null||l?A:A.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:h,rootBoundary:v,strategy:g})),_=p==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),N=await(u.isElement==null?void 0:u.isElement(R))&&await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1},z=Su(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:_,offsetParent:R,strategy:g}):_);return{top:(E.top-z.top+w.top)/N.y,bottom:(z.bottom-E.bottom+w.bottom)/N.y,left:(E.left-z.left+w.left)/N.x,right:(z.right-E.right+w.right)/N.x}}const r7=50,l7=async(t,r,l)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=l,d=c.detectOverflow?c:{...c,detectOverflow:n7},g=await(c.isRTL==null?void 0:c.isRTL(r));let h=await c.getElementRects({reference:t,floating:r,strategy:s}),{x:v,y:p}=Ov(h,a,g),b=a,y=0;const w={};for(let T=0;T<u.length;T++){const A=u[T];if(!A)continue;const{name:E,fn:_}=A,{x:R,y:N,data:z,reset:k}=await _({x:v,y:p,initialPlacement:a,placement:b,strategy:s,middlewareData:w,rects:h,platform:d,elements:{reference:t,floating:r}});v=R??v,p=N??p,w[E]={...w[E],...z},k&&y<r7&&(y++,typeof k=="object"&&(k.placement&&(b=k.placement),k.rects&&(h=k.rects===!0?await c.getElementRects({reference:t,floating:r,strategy:s}):k.rects),{x:v,y:p}=Ov(h,b,g)),T=-1)}return{x:v,y:p,placement:b,strategy:s,middlewareData:w}},i7=t=>({name:"arrow",options:t,async fn(r){const{x:l,y:a,placement:s,rects:u,platform:c,elements:d,middlewareData:g}=r,{element:h,padding:v=0}=Gr(t,r)||{};if(h==null)return{};const p=Wb(v),b={x:l,y:a},y=tm(s),w=em(y),T=await c.getDimensions(h),A=y==="y",E=A?"top":"left",_=A?"bottom":"right",R=A?"clientHeight":"clientWidth",N=u.reference[w]+u.reference[y]-b[y]-u.floating[w],z=b[y]-u.reference[y],k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let H=k?k[R]:0;(!H||!await(c.isElement==null?void 0:c.isElement(k)))&&(H=d.floating[R]||u.floating[w]);const I=N/2-z/2,j=H/2-T[w]/2-1,Q=Tl(p[E],j),Z=Tl(p[_],j),K=H-T[w]-Z,oe=H/2-T[w]/2+I,te=Jb(Q,oe,K),W=!g.arrow&&la(s)!=null&&oe!==te&&u.reference[w]/2-(oe<Q?Q:Z)-T[w]/2<0,U=W?oe<Q?oe-Q:oe-K:0;return{[y]:b[y]+U,data:{[y]:te,centerOffset:oe-te-U,...W&&{alignmentOffset:U}},reset:W}}}),a7=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var l,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:g,elements:h}=r,{mainAxis:v=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0,...A}=Gr(t,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const E=Al(s),_=br(d),R=Al(d)===d,N=await(g.isRTL==null?void 0:g.isRTL(h.floating)),z=b||(R||!T?[xu(d)]:Kw(d)),k=w!=="none";!b&&k&&z.push(...e7(d,T,w,N));const H=[d,...z],I=await g.detectOverflow(r,A),j=[];let Q=((a=u.flip)==null?void 0:a.overflows)||[];if(v&&j.push(I[E]),p){const te=Qw(s,c,N);j.push(I[te[0]],I[te[1]])}if(Q=[...Q,{placement:s,overflows:j}],!j.every(te=>te<=0)){var Z,K;const te=(((Z=u.flip)==null?void 0:Z.index)||0)+1,W=H[te];if(W&&(!(p==="alignment"?_!==br(W):!1)||Q.every(le=>br(le.placement)===_?le.overflows[0]>0:!0)))return{data:{index:te,overflows:Q},reset:{placement:W}};let U=(K=Q.filter(G=>G.overflows[0]<=0).sort((G,le)=>G.overflows[1]-le.overflows[1])[0])==null?void 0:K.placement;if(!U)switch(y){case"bestFit":{var oe;const G=(oe=Q.filter(le=>{if(k){const ce=br(le.placement);return ce===_||ce==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(ce=>ce>0).reduce((ce,M)=>ce+M,0)]).sort((le,ce)=>le[1]-ce[1])[0])==null?void 0:oe[0];G&&(U=G);break}case"initialPlacement":U=d;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Rv(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function kv(t){return Gw.some(r=>t[r]>=0)}const o7=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:l,platform:a}=r,{strategy:s="referenceHidden",...u}=Gr(t,r);switch(s){case"referenceHidden":{const c=await a.detectOverflow(r,{...u,elementContext:"reference"}),d=Rv(c,l.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:kv(d)}}}case"escaped":{const c=await a.detectOverflow(r,{...u,altBoundary:!0}),d=Rv(c,l.floating);return{data:{escapedOffsets:d,escaped:kv(d)}}}default:return{}}}}},ex=new Set(["left","top"]);async function s7(t,r){const{placement:l,platform:a,elements:s}=t,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=Al(l),d=la(l),g=br(l)==="y",h=ex.has(c)?-1:1,v=u&&g?-1:1,p=Gr(r,t);let{mainAxis:b,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return d&&typeof w=="number"&&(y=d==="end"?w*-1:w),g?{x:y*v,y:b*h}:{x:b*h,y:y*v}}const u7=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var l,a;const{x:s,y:u,placement:c,middlewareData:d}=r,g=await s7(r,t);return c===((l=d.offset)==null?void 0:l.placement)&&(a=d.arrow)!=null&&a.alignmentOffset?{}:{x:s+g.x,y:u+g.y,data:{...g,placement:c}}}}},c7=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:l,y:a,placement:s,platform:u}=r,{mainAxis:c=!0,crossAxis:d=!1,limiter:g={fn:_=>{let{x:R,y:N}=_;return{x:R,y:N}}},...h}=Gr(t,r),v={x:l,y:a},p=await u.detectOverflow(r,h),b=br(s),y=Wh(b);let w=v[y],T=v[b];const A=(_,R)=>Jb(R+p[_==="y"?"top":"left"],R,R-p[_==="y"?"bottom":"right"]);c&&(w=A(y,w)),d&&(T=A(b,T));const E=g.fn({...r,[y]:w,[b]:T});return{...E,data:{x:E.x-l,y:E.y-a,enabled:{[y]:c,[b]:d}}}}}},f7=function(t){return t===void 0&&(t={}),{options:t,fn(r){var l,a;const{x:s,y:u,placement:c,rects:d,middlewareData:g}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=Gr(t,r),b={x:s,y:u},y=br(c),w=Wh(y);let T=b[w],A=b[y];const E=Gr(h,r),_=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:(l=E.mainAxis)!=null?l:0,crossAxis:(a=E.crossAxis)!=null?a:0};if(v){const z=w==="y"?"height":"width",k=d.reference[w]-d.floating[z]+_.mainAxis,H=d.reference[w]+d.reference[z]-_.mainAxis;T<k?T=k:T>H&&(T=H)}if(p){var R,N;const z=w==="y"?"width":"height",k=ex.has(Al(c)),H=d.reference[y]-d.floating[z]+(k&&((R=g.offset)==null?void 0:R[y])||0)+(k?0:_.crossAxis),I=d.reference[y]+d.reference[z]+(k?0:((N=g.offset)==null?void 0:N[y])||0)-(k?_.crossAxis:0);A<H?A=H:A>I&&(A=I)}return{[w]:T,[y]:A}}}},d7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:l,rects:a,platform:s,elements:u}=r,{apply:c=()=>{},...d}=Gr(t,r),g=await s.detectOverflow(r,d),h=Al(l),v=la(l),p=br(l)==="y",{width:b,height:y}=a.floating;let w,T;h==="top"||h==="bottom"?(w=h,T=v===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(T=h,w=v==="end"?"top":"bottom");const A=y-g.top-g.bottom,E=b-g.left-g.right,_=Tl(y-g[w],A),R=Tl(b-g[T],E),N=r.middlewareData.shift,z=!N;let k=_,H=R;N!=null&&N.enabled.x&&(H=E),N!=null&&N.enabled.y&&(k=A),z&&!v&&(p?H=b-2*Pr(g.left,g.right):k=y-2*Pr(g.top,g.bottom)),await c({...r,availableWidth:H,availableHeight:k});const I=await s.getDimensions(u.floating);return b!==I.width||y!==I.height?{reset:{rects:!0}}:{}}}};function Hu(){return typeof window<"u"}function ia(t){return tx(t)?(t.nodeName||"").toLowerCase():"#document"}function wn(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Fr(t){var r;return(r=(tx(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function tx(t){return Hu()?t instanceof Node||t instanceof wn(t).Node:!1}function Cr(t){return Hu()?t instanceof Element||t instanceof wn(t).Element:!1}function Ol(t){return Hu()?t instanceof HTMLElement||t instanceof wn(t).HTMLElement:!1}function Mv(t){return!Hu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof wn(t).ShadowRoot}function Uu(t){const{overflow:r,overflowX:l,overflowY:a,display:s}=wr(t);return/auto|scroll|overlay|hidden|clip/.test(r+a+l)&&s!=="inline"&&s!=="contents"}function h7(t){return/^(table|td|th)$/.test(ia(t))}function Iu(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const m7=/transform|translate|scale|rotate|perspective|filter/,p7=/paint|layout|strict|content/,Ql=t=>!!t&&t!=="none";let Ud;function nm(t){const r=Cr(t)?wr(t):t;return Ql(r.transform)||Ql(r.translate)||Ql(r.scale)||Ql(r.rotate)||Ql(r.perspective)||!rm()&&(Ql(r.backdropFilter)||Ql(r.filter))||m7.test(r.willChange||"")||p7.test(r.contain||"")}function g7(t){let r=Wl(t);for(;Ol(r)&&!vo(r);){if(nm(r))return r;if(Iu(r))return null;r=Wl(r)}return null}function rm(){return Ud==null&&(Ud=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ud}function vo(t){return/^(html|body|#document)$/.test(ia(t))}function wr(t){return wn(t).getComputedStyle(t)}function Vu(t){return Cr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wl(t){if(ia(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Mv(t)&&t.host||Fr(t);return Mv(r)?r.host:r}function nx(t){const r=Wl(t);return vo(r)?(t.ownerDocument||t).body:Ol(r)&&Uu(r)?r:nx(r)}function yo(t,r,l){var a;r===void 0&&(r=[]),l===void 0&&(l=!0);const s=nx(t),u=s===((a=t.ownerDocument)==null?void 0:a.body),c=wn(s);if(u){const d=xh(c);return r.concat(c,c.visualViewport||[],Uu(s)?s:[],d&&l?yo(d):[])}else return r.concat(s,yo(s,[],l))}function xh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rx(t){const r=wr(t);let l=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=Ol(t),u=s?t.offsetWidth:l,c=s?t.offsetHeight:a,d=bu(l)!==u||bu(a)!==c;return d&&(l=u,a=c),{width:l,height:a,$:d}}function lm(t){return Cr(t)?t:t.contextElement}function $i(t){const r=lm(t);if(!Ol(r))return Xr(1);const l=r.getBoundingClientRect(),{width:a,height:s,$:u}=rx(r);let c=(u?bu(l.width):l.width)/a,d=(u?bu(l.height):l.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const v7=Xr(0);function lx(t){const r=wn(t);return!rm()||!r.visualViewport?v7:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function y7(t,r,l){return r===void 0&&(r=!1),!!l&&r&&l===wn(t)}function ei(t,r,l,a){r===void 0&&(r=!1),l===void 0&&(l=!1);const s=t.getBoundingClientRect(),u=lm(t);let c=Xr(1);r&&(a?Cr(a)&&(c=$i(a)):c=$i(t));const d=y7(u,l,a)?lx(u):Xr(0);let g=(s.left+d.x)/c.x,h=(s.top+d.y)/c.y,v=s.width/c.x,p=s.height/c.y;if(u&&a){const b=wn(u),y=Cr(a)?wn(a):a;let w=b,T=xh(w);for(;T&&y!==w;){const A=$i(T),E=T.getBoundingClientRect(),_=wr(T),R=E.left+(T.clientLeft+parseFloat(_.paddingLeft))*A.x,N=E.top+(T.clientTop+parseFloat(_.paddingTop))*A.y;g*=A.x,h*=A.y,v*=A.x,p*=A.y,g+=R,h+=N,w=wn(T),T=xh(w)}}return Su({width:v,height:p,x:g,y:h})}function qu(t,r){const l=Vu(t).scrollLeft;return r?r.left+l:ei(Fr(t)).left+l}function ix(t,r){const l=t.getBoundingClientRect(),a=l.left+r.scrollLeft-qu(t,l),s=l.top+r.scrollTop;return{x:a,y:s}}function b7(t){let{elements:r,rect:l,offsetParent:a,strategy:s}=t;const u=s==="fixed",c=Fr(a),d=r?Iu(r.floating):!1;if(a===c||d&&u)return l;let g={scrollLeft:0,scrollTop:0},h=Xr(1);const v=Xr(0),p=Ol(a);if((p||!u)&&((ia(a)!=="body"||Uu(c))&&(g=Vu(a)),p)){const y=ei(a);h=$i(a),v.x=y.x+a.clientLeft,v.y=y.y+a.clientTop}const b=c&&!p&&!u?ix(c,g):Xr(0);return{width:l.width*h.x,height:l.height*h.y,x:l.x*h.x-g.scrollLeft*h.x+v.x+b.x,y:l.y*h.y-g.scrollTop*h.y+v.y+b.y}}function x7(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function S7(t){const r=Vu(t),l=t.ownerDocument.body,a=Pr(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=Pr(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let u=-r.scrollLeft+qu(t);const c=-r.scrollTop;return wr(l).direction==="rtl"&&(u+=Pr(t.clientWidth,l.clientWidth)-a),{width:a,height:s,x:u,y:c}}const C7=25;function w7(t,r,l){l===void 0&&(l="viewport");const a=l==="layoutViewport",s=wn(t),u=Fr(t),c=s.visualViewport;let d=u.clientWidth,g=u.clientHeight,h=0,v=0;if(c){const b=!rm()||r==="fixed";a?b||(h=-c.offsetLeft,v=-c.offsetTop):(d=c.width,g=c.height,b&&(h=c.offsetLeft,v=c.offsetTop))}if(qu(u)<=0){const b=u.ownerDocument,y=b.body,w=getComputedStyle(y),T=b.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(u.clientWidth-y.clientWidth-T),E=getComputedStyle(u).scrollbarGutter==="stable both-edges"?A/2:A;E<=C7&&(d-=E)}return{width:d,height:g,x:h,y:v}}function E7(t,r){const l=ei(t,!0,r==="fixed"),a=l.top+t.clientTop,s=l.left+t.clientLeft,u=$i(t),c=t.clientWidth*u.x,d=t.clientHeight*u.y,g=s*u.x,h=a*u.y;return{width:c,height:d,x:g,y:h}}function _v(t,r,l){let a;if(r==="viewport"||r==="layoutViewport")a=w7(t,l,r);else if(r==="document")a=S7(Fr(t));else if(Cr(r))a=E7(r,l);else{const s=lx(t);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Su(a)}function T7(t,r){const l=r.get(t);if(l)return l;let a=yo(t,[],!1).filter(d=>Cr(d)&&ia(d)!=="body"),s=null;const u=wr(t).position==="fixed";let c=u?Wl(t):t;for(;Cr(c)&&!vo(c);){const d=wr(c),g=nm(c),h=s?s.position:u?"fixed":"";!g&&(h==="fixed"||h==="absolute"&&d.position==="static")?a=a.filter(p=>p!==c):s=d,c=Wl(c)}return r.set(t,a),a}function A7(t){let{element:r,boundary:l,rootBoundary:a,strategy:s}=t;const c=[...l==="clippingAncestors"?Iu(r)?[]:T7(r,this._c):[].concat(l),a],d=_v(r,c[0],s);let g=d.top,h=d.right,v=d.bottom,p=d.left;for(let b=1;b<c.length;b++){const y=_v(r,c[b],s);g=Pr(y.top,g),h=Tl(y.right,h),v=Tl(y.bottom,v),p=Pr(y.left,p)}return{width:h-p,height:v-g,x:p,y:g}}function D7(t){const{width:r,height:l}=rx(t);return{width:r,height:l}}function N7(t,r,l){const a=Ol(r),s=Fr(r),u=l==="fixed",c=ei(t,!0,u,r);let d={scrollLeft:0,scrollTop:0};const g=Xr(0);if((a||!u)&&((ia(r)!=="body"||Uu(s))&&(d=Vu(r)),a)){const b=ei(r,!0,u,r);g.x=b.x+r.clientLeft,g.y=b.y+r.clientTop}!a&&s&&(g.x=qu(s));const h=s&&!a&&!u?ix(s,d):Xr(0),v=c.left+d.scrollLeft-g.x-h.x,p=c.top+d.scrollTop-g.y-h.y;return{x:v,y:p,width:c.width,height:c.height}}function Id(t){return wr(t).position==="static"}function jv(t,r){if(!Ol(t)||wr(t).position==="fixed")return null;if(r)return r(t);let l=t.offsetParent;return Fr(t)===l&&(l=l.ownerDocument.body),l}function ax(t,r){const l=wn(t);if(Iu(t))return l;if(!Ol(t)){let s=Wl(t);for(;s&&!vo(s);){if(Cr(s)&&!Id(s))return s;s=Wl(s)}return l}let a=jv(t,r);for(;a&&h7(a)&&Id(a);)a=jv(a,r);return a&&vo(a)&&Id(a)&&!nm(a)?l:a||g7(t)||l}const O7=async function(t){const r=this.getOffsetParent||ax,l=this.getDimensions,a=await l(t.floating);return{reference:N7(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function R7(t){return wr(t).direction==="rtl"}const k7={convertOffsetParentRelativeRectToViewportRelativeRect:b7,getDocumentElement:Fr,getClippingRect:A7,getOffsetParent:ax,getElementRects:O7,getClientRects:x7,getDimensions:D7,getScale:$i,isElement:Cr,isRTL:R7};function ox(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function M7(t,r,l){let a=null,s;const u=Fr(t);function c(){var v;clearTimeout(s),(v=a)==null||v.disconnect(),a=null}function d(v,p){v===void 0&&(v=!1),p===void 0&&(p=1),c();const b=t.getBoundingClientRect(),{left:y,top:w,width:T,height:A}=b;if(v||r(),!T||!A)return;const E=tu(w),_=tu(u.clientWidth-(y+T)),R=tu(u.clientHeight-(w+A)),N=tu(y),k={rootMargin:-E+"px "+-_+"px "+-R+"px "+-N+"px",threshold:Pr(0,Tl(1,p))||1};let H=!0;function I(j){const Q=j[0].intersectionRatio;if(!ox(b,t.getBoundingClientRect()))return d();if(Q!==p){if(!H)return d();Q?d(!1,Q):s=setTimeout(()=>{d(!1,1e-7)},1e3)}H=!1}try{a=new IntersectionObserver(I,{...k,root:u.ownerDocument})}catch{a=new IntersectionObserver(I,k)}a.observe(t)}const g=wn(t),h=()=>d(l);return g.addEventListener("resize",h),d(!0),()=>{g.removeEventListener("resize",h),c()}}function _7(t,r,l,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:g=!1}=a,h=lm(t),v=s||u?[...h?yo(h):[],...r?yo(r):[]]:[];v.forEach(E=>{s&&E.addEventListener("scroll",l),u&&E.addEventListener("resize",l)});const p=h&&d?M7(h,l,u):null;let b=-1,y=null;c&&(y=new ResizeObserver(E=>{let[_]=E;_&&_.target===h&&y&&r&&(y.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(r)})),l()}),h&&!g&&y.observe(h),r&&y.observe(r));let w,T=g?ei(t):null;g&&A();function A(){const E=ei(t);T&&!ox(T,E)&&l(),T=E,w=requestAnimationFrame(A)}return l(),()=>{var E;v.forEach(_=>{s&&_.removeEventListener("scroll",l),u&&_.removeEventListener("resize",l)}),p==null||p(),(E=y)==null||E.disconnect(),y=null,g&&cancelAnimationFrame(w)}}const j7=u7,z7=c7,L7=a7,B7=d7,H7=o7,zv=i7,U7=f7,I7=(t,r,l)=>{const a=new Map,s=l??{},u={...k7,...s.platform,_c:a};return l7(t,r,{...s,platform:u})};var V7=typeof document<"u",q7=function(){},su=V7?C.useLayoutEffect:q7;function Cu(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let l,a,s;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==r.length)return!1;for(a=l;a--!==0;)if(!Cu(t[a],r[a]))return!1;return!0}if(s=Object.keys(t),l=s.length,l!==Object.keys(r).length)return!1;for(a=l;a--!==0;)if(!{}.hasOwnProperty.call(r,s[a]))return!1;for(a=l;a--!==0;){const u=s[a];if(!(u==="_owner"&&t.$$typeof)&&!Cu(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function sx(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Lv(t,r){const l=sx(t);return Math.round(r*l)/l}function Vd(t){const r=C.useRef(t);return su(()=>{r.current=t}),r}function Y7(t){t===void 0&&(t={});const{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:d=!0,whileElementsMounted:g,open:h}=t,[v,p]=C.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[b,y]=C.useState(a);Cu(b,a)||y(a);const[w,T]=C.useState(null),[A,E]=C.useState(null),_=C.useCallback(le=>{le!==k.current&&(k.current=le,T(le))},[]),R=C.useCallback(le=>{le!==H.current&&(H.current=le,E(le))},[]),N=u||w,z=c||A,k=C.useRef(null),H=C.useRef(null),I=C.useRef(v),j=g!=null,Q=Vd(g),Z=Vd(s),K=Vd(h),oe=C.useCallback(()=>{if(!k.current||!H.current)return;const le={placement:r,strategy:l,middleware:b};Z.current&&(le.platform=Z.current),I7(k.current,H.current,le).then(ce=>{const M={...ce,isPositioned:K.current!==!1};te.current&&!Cu(I.current,M)&&(I.current=M,lr.flushSync(()=>{p(M)}))})},[b,r,l,Z,K]);su(()=>{h===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,p(le=>({...le,isPositioned:!1})))},[h]);const te=C.useRef(!1);su(()=>(te.current=!0,()=>{te.current=!1}),[]),su(()=>{if(N&&(k.current=N),z&&(H.current=z),N&&z){if(Q.current)return Q.current(N,z,oe);oe()}},[N,z,oe,Q,j]);const W=C.useMemo(()=>({reference:k,floating:H,setReference:_,setFloating:R}),[_,R]),U=C.useMemo(()=>({reference:N,floating:z}),[N,z]),G=C.useMemo(()=>{const le={position:l,left:0,top:0};if(!U.floating)return le;const ce=Lv(U.floating,v.x),M=Lv(U.floating,v.y);return d?{...le,transform:"translate("+ce+"px, "+M+"px)",...sx(U.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ce,top:M}},[l,d,U.floating,v.x,v.y]);return C.useMemo(()=>({...v,update:oe,refs:W,elements:U,floatingStyles:G}),[v,oe,W,U,G])}const P7=t=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:t,fn(l){const{element:a,padding:s}=typeof t=="function"?t(l):t;return a&&r(a)?a.current!=null?zv({element:a.current,padding:s}).fn(l):{}:a?zv({element:a,padding:s}).fn(l):{}}}},X7=(t,r)=>{const l=j7(t);return{name:l.name,fn:l.fn,options:[t,r]}},Z7=(t,r)=>{const l=z7(t);return{name:l.name,fn:l.fn,options:[t,r]}},G7=(t,r)=>({fn:U7(t).fn,options:[t,r]}),F7=(t,r)=>{const l=L7(t);return{name:l.name,fn:l.fn,options:[t,r]}},Q7=(t,r)=>{const l=B7(t);return{name:l.name,fn:l.fn,options:[t,r]}},K7=(t,r)=>{const l=H7(t);return{name:l.name,fn:l.fn,options:[t,r]}},$7=(t,r)=>{const l=P7(t);return{name:l.name,fn:l.fn,options:[t,r]}};var J7=Object.defineProperty,W7=(t,r)=>J7(t,"name",{value:r,configurable:!0});function ux(t){const[r,l]=C.useState(void 0);return en(()=>{if(t){l({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let c,d;if("borderBoxSize"in u){const g=u.borderBoxSize,h=Array.isArray(g)?g[0]:g;c=h.inlineSize,d=h.blockSize}else c=t.offsetWidth,d=t.offsetHeight;l({width:c,height:d})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else l(void 0)},[t]),r}W7(ux,"useSize");var eE=Object.defineProperty,wl=(t,r)=>eE(t,"name",{value:r,configurable:!0}),cx="Popper",[fx,dx]=ta(cx),[tE,hx]=fx(cx),nE=wl(t=>{const{__scopePopper:r,children:l}=t,[a,s]=C.useState(null),[u,c]=C.useState(void 0);return S.jsx(tE,{scope:r,anchor:a,onAnchorChange:s,placementState:u,setPlacementState:c,children:l})},"Popper"),rE="PopperAnchor",lE=C.forwardRef(wl(function(r,l){const{__scopePopper:a,virtualRef:s,...u}=r,c=hx(rE,a),d=C.useRef(null),g=c.onAnchorChange,h=C.useCallback(T=>{d.current=T,T&&g(T)},[g]),v=At(l,h),p=C.useRef(null);C.useEffect(()=>{if(!s)return;const T=p.current;p.current=s.current,T!==p.current&&g(p.current)});const b=c.placementState&&Yu(c.placementState),y=b==null?void 0:b[0],w=b==null?void 0:b[1];return s?null:S.jsx(qt.div,{"data-radix-popper-side":y,"data-radix-popper-align":w,...u,ref:v})},"PopperAnchor")),mx="PopperContent",[iE,kD]=fx(mx),aE=C.forwardRef(wl(function(r,l){var he,ge,Te,we,De,Ve,at;const{__scopePopper:a,side:s="bottom",sideOffset:u=0,align:c="center",alignOffset:d=0,arrowPadding:g=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:p=0,sticky:b="partial",hideWhenDetached:y=!1,updatePositionStrategy:w="optimized",onPlaced:T,...A}=r,E=hx(mx,a),[_,R]=C.useState(null),N=At(l,R),[z,k]=C.useState(null),H=ux(z),I=(H==null?void 0:H.width)??0,j=(H==null?void 0:H.height)??0,Q=s+(c!=="center"?"-"+c:""),Z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},K=Array.isArray(v)?v:[v],oe=K.length>0,te={padding:Z,boundary:K.filter(px),altBoundary:oe},{refs:W,floatingStyles:U,placement:G,isPositioned:le,middlewareData:ce}=Y7({strategy:"fixed",placement:Q,whileElementsMounted:wl((...mt)=>_7(...mt,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:E.anchor},middleware:[X7({mainAxis:u+j,alignmentAxis:d}),h&&Z7({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?G7():void 0,...te}),h&&F7({...te}),Q7({...te,apply:wl(({elements:mt,rects:Rt,availableWidth:tn,availableHeight:wt})=>{const{width:Ut,height:dn}=Rt.reference,Fe=mt.floating.style;Fe.setProperty("--radix-popper-available-width",`${tn}px`),Fe.setProperty("--radix-popper-available-height",`${wt}px`),Fe.setProperty("--radix-popper-anchor-width",`${Ut}px`),Fe.setProperty("--radix-popper-anchor-height",`${dn}px`)},"apply")}),z&&$7({element:z,padding:g}),oE({arrowWidth:I,arrowHeight:j}),y&&K7({strategy:"referenceHidden",...te,boundary:oe?te.boundary:void 0})]}),M=E.setPlacementState;en(()=>(M(G),()=>{M(void 0)}),[G,M]);const[L,Y]=Yu(G),O=xr(T);en(()=>{le&&(O==null||O())},[le,O]);const ne=(he=ce.arrow)==null?void 0:he.x,de=(ge=ce.arrow)==null?void 0:ge.y,se=((Te=ce.arrow)==null?void 0:Te.centerOffset)!==0,[ve,me]=C.useState();return en(()=>{_&&me(window.getComputedStyle(_).zIndex)},[_]),S.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:le?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(we=ce.transformOrigin)==null?void 0:we.x,(De=ce.transformOrigin)==null?void 0:De.y].join(" "),...((Ve=ce.hide)==null?void 0:Ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:S.jsx(iE,{scope:a,placedSide:L,placedAlign:Y,onArrowChange:k,arrowX:ne,arrowY:de,shouldHideArrow:se,children:S.jsx(qt.div,{"data-side":L,"data-align":Y,...A,ref:N,style:{...A.style,animation:le?(at=A.style)==null?void 0:at.animation:"none"}})})})},"PopperContent"));function px(t){return t!==null}wl(px,"isNotNull");var oE=wl(t=>({name:"transformOrigin",options:t,fn(r){var A,E,_;const{placement:l,rects:a,middlewareData:s}=r,c=((A=s.arrow)==null?void 0:A.centerOffset)!==0,d=c?0:t.arrowWidth,g=c?0:t.arrowHeight,[h,v]=Yu(l),p={start:"0%",center:"50%",end:"100%"}[v],b=(((E=s.arrow)==null?void 0:E.x)??0)+d/2,y=(((_=s.arrow)==null?void 0:_.y)??0)+g/2;let w="",T="";return h==="bottom"?(w=c?p:`${b}px`,T=`${-g}px`):h==="top"?(w=c?p:`${b}px`,T=`${a.floating.height+g}px`):h==="right"?(w=`${-g}px`,T=c?p:`${y}px`):h==="left"&&(w=`${a.floating.width+g}px`,T=c?p:`${y}px`),{data:{x:w,y:T}}}}),"transformOrigin");function Yu(t){const[r,l="center"]=t.split("-");return[r,l]}wl(Yu,"getSideAndAlignFromPlacement");var sE=nE,uE=lE,cE=aE,fE=Object.defineProperty,dE=(t,r)=>fE(t,"name",{value:r,configurable:!0});function gx(t){const r=C.useRef({value:t,previous:t});return C.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}dE(gx,"usePrevious");var hE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mE=Object.defineProperty,nt=(t,r)=>mE(t,"name",{value:r,configurable:!0}),pE=[" ","Enter","ArrowUp","ArrowDown"],gE=[" ","Enter"],Wi="Select",[Pu,im,vE]=Zb(Wi),[ri,MD]=ta(Wi,[vE,dx]),am=dx(),[yE,Rl]=ri(Wi),[bE,xE]=ri(Wi);function vx(t){const{__scopeSelect:r,children:l,open:a,defaultOpen:s,onOpenChange:u,value:c,defaultValue:d,onValueChange:g,dir:h,name:v,autoComplete:p,disabled:b,required:y,form:w,internal_do_not_use_render:T}=t,A=am(r),[E,_]=C.useState(null),[R,N]=C.useState(null),[z,k]=C.useState(!1),H=$b(h),[I,j]=pu({prop:a,defaultProp:s??!1,onChange:u,caller:Wi}),[Q,Z]=pu({prop:c,defaultProp:d,onChange:g,caller:Wi}),K=C.useRef(null),oe=C.useRef(Q);C.useEffect(()=>{const Y=w?E==null?void 0:E.ownerDocument.getElementById(w):E==null?void 0:E.form;if(Y instanceof HTMLFormElement){const O=nt(()=>Z(oe.current),"reset");return Y.addEventListener("reset",O),()=>Y.removeEventListener("reset",O)}},[w,E,Z]);const te=E?!!w||!!E.closest("form"):!0,[W,U]=C.useState(new Set),G=Fi(),le=Array.from(W).map(Y=>Y.props.value).join(";"),ce=C.useCallback(Y=>{U(O=>new Set(O).add(Y))},[]),M=C.useCallback(Y=>{U(O=>{const ne=new Set(O);return ne.delete(Y),ne})},[]),L={required:y,trigger:E,onTriggerChange:_,valueNode:R,onValueNodeChange:N,valueNodeHasChildren:z,onValueNodeHasChildrenChange:k,contentId:G,value:Q,onValueChange:Z,open:I,onOpenChange:j,dir:H,triggerPointerDownPosRef:K,disabled:b,name:v,autoComplete:p,form:w,nativeOptions:W,nativeSelectKey:le,isFormControl:te};return S.jsx(sE,{...A,children:S.jsx(yE,{scope:r,...L,children:S.jsx(Pu.Provider,{scope:r,children:S.jsx(bE,{scope:r,onNativeOptionAdd:ce,onNativeOptionRemove:M,children:xx(T)?T(L):l})})})})}nt(vx,"SelectProvider");var SE=nt(t=>{const{__scopeSelect:r,children:l,...a}=t;return S.jsx(vx,{__scopeSelect:r,...a,internal_do_not_use_render:({isFormControl:s})=>S.jsxs(S.Fragment,{children:[l,s?S.jsx(ZE,{__scopeSelect:r}):null]})})},"Select"),CE="SelectTrigger",wE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,disabled:s=!1,...u}=r,c=am(a),d=Rl(CE,a),g=d.disabled||s,h=At(l,d.onTriggerChange),v=im(a),p=C.useRef("touch"),[b,y,w]=om(A=>{const E=v().filter(N=>!N.disabled),_=E.find(N=>N.value===d.value),R=sm(E,A,_);R!==void 0&&d.onValueChange(R.value)}),T=nt(A=>{g||(d.onOpenChange(!0),w()),A&&(d.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return S.jsx(uE,{asChild:!0,...c,children:S.jsx(qt.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:g,"data-disabled":g?"":void 0,"data-placeholder":No(d.value)?"":void 0,...u,ref:h,onClick:St(u.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&T(A)}),onPointerDown:St(u.onPointerDown,A=>{p.current=A.pointerType;const E=A.target;E.hasPointerCapture(A.pointerId)&&E.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(T(A),A.preventDefault())}),onKeyDown:St(u.onKeyDown,A=>{const E=b.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&y(A.key),!(E&&A.key===" ")&&pE.includes(A.key)&&(T(),A.preventDefault())})})})},"SelectTrigger")),EE="SelectValue",TE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,className:s,style:u,children:c,placeholder:d="",...g}=r,h=Rl(EE,a),{onValueNodeHasChildrenChange:v}=h,p=c!==void 0,b=At(l,h.onValueNodeChange);en(()=>{v(p)},[v,p]);const y=No(h.value);return S.jsx(qt.span,{...g,asChild:y?!1:g.asChild,ref:b,style:{pointerEvents:"none"},children:S.jsx(C.Fragment,{children:y?d:c},y?"placeholder":"value")})},"SelectValue")),AE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,children:s,...u}=r;return S.jsx(qt.span,{"aria-hidden":!0,...u,ref:l,children:s||"▼"})},"SelectIcon")),DE="SelectPortal",[NE,OE]=ri(DE,{forceMount:void 0}),RE=nt(t=>{const{__scopeSelect:r,forceMount:l,...a}=t;return S.jsx(NE,{scope:t.__scopeSelect,forceMount:l,children:S.jsx(zy,{asChild:!0,...a})})},"SelectPortal"),ti="SelectContent",kE=C.forwardRef(nt(function(r,l){const a=OE(ti,r.__scopeSelect),{forceMount:s=a.forceMount,...u}=r,c=Rl(ti,r.__scopeSelect),[d,g]=C.useState();return en(()=>{g(new DocumentFragment)},[]),S.jsx(ku,{present:s||c.open,children:({present:h})=>h?S.jsx(jE,{...u,ref:l}):S.jsx(ME,{...u,fragment:d})})},"SelectContent")),ME=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,children:s,fragment:u}=r;return u?lr.createPortal(S.jsx(yx,{scope:a,children:S.jsx(Pu.Slot,{scope:a,children:S.jsx("div",{ref:l,children:s})})}),u):null},"SelectContentFragment")),rr=10,[yx,Xu]=ri(ti),_E=El("SelectContent.RemoveScroll"),jE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a}=r,{position:s="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,side:g,sideOffset:h,align:v,alignOffset:p,arrowPadding:b,collisionBoundary:y,collisionPadding:w,sticky:T,hideWhenDetached:A,avoidCollisions:E,..._}=r,R=Rl(ti,a),[N,z]=C.useState(null),[k,H]=C.useState(null),I=At(l,z),[j,Q]=C.useState(null),[Z,K]=C.useState(null),oe=im(a),[te,W]=C.useState(!1),U=C.useRef(!1);C.useEffect(()=>{if(N)return Fy(N)},[N]),Mu();const G=C.useCallback(me=>{const[he,...ge]=oe().map(De=>De.ref.current),[Te]=ge.slice(-1),we=document.activeElement;for(const De of me)if(De===we||(De==null||De.scrollIntoView({block:"nearest"}),De===he&&k&&(k.scrollTop=0),De===Te&&k&&(k.scrollTop=k.scrollHeight),De==null||De.focus(),document.activeElement!==we))return},[oe,k]),le=C.useCallback(()=>G([j,N]),[G,j,N]);C.useEffect(()=>{te&&le()},[te,le]);const{onOpenChange:ce,triggerPointerDownPosRef:M}=R;C.useEffect(()=>{if(N){let me={x:0,y:0};const he=nt(Te=>{var we,De;me={x:Math.abs(Math.round(Te.pageX)-(((we=M.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((De=M.current)==null?void 0:De.y)??0))}},"handlePointerMove"),ge=nt(Te=>{me.x<=10&&me.y<=10?Te.preventDefault():Te.composedPath().includes(N)||ce(!1),document.removeEventListener("pointermove",he),M.current=null},"handlePointerUp");return M.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",ge,{capture:!0})}}},[N,ce,M]),C.useEffect(()=>{const me=nt(()=>ce(!1),"close");return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[ce]);const[L,Y]=om(me=>{const he=oe().filter(we=>!we.disabled),ge=he.find(we=>we.ref.current===document.activeElement),Te=sm(he,me,ge);Te&&setTimeout(()=>{var we;return(we=Te.ref.current)==null?void 0:we.focus()})}),O=C.useCallback((me,he,ge)=>{const Te=!U.current&&!ge;(R.value!==void 0&&R.value===he||Te)&&(Q(me),Te&&(U.current=!0))},[R.value]),ne=C.useCallback(()=>N==null?void 0:N.focus(),[N]),de=C.useCallback((me,he,ge)=>{const Te=!U.current&&!ge;(R.value!==void 0&&R.value===he||Te)&&K(me)},[R.value]),se=s==="popper"?Bv:zE,ve=se===Bv?{side:g,sideOffset:h,align:v,alignOffset:p,arrowPadding:b,collisionBoundary:y,collisionPadding:w,sticky:T,hideWhenDetached:A,avoidCollisions:E}:{};return S.jsx(yx,{scope:a,content:N,viewport:k,onViewportChange:H,itemRefCallback:O,selectedItem:j,onItemLeave:ne,itemTextRefCallback:de,focusSelectedItem:le,selectedItemText:Z,position:s,isPositioned:te,searchRef:L,children:S.jsx(Lh,{as:_E,allowPinchZoom:!0,children:S.jsx(Ny,{asChild:!0,trapped:R.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:St(u,me=>{var he;(he=R.trigger)==null||he.focus({preventScroll:!0}),me.preventDefault()}),children:S.jsx(Ey,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:S.jsx(se,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:me=>me.preventDefault(),..._,...ve,onPlaced:()=>W(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:St(_.onKeyDown,me=>{const he=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!he&&me.key.length===1&&Y(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let Te=oe().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(me.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const we=me.target,De=Te.indexOf(we);Te=Te.slice(De+1)}setTimeout(()=>G(Te)),me.preventDefault()}})})})})})})},"SelectContentImpl")),zE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,onPlaced:s,...u}=r,c=Rl(ti,a),d=Xu(ti,a),[g,h]=C.useState(null),[v,p]=C.useState(null),b=At(l,p),y=im(a),w=C.useRef(!1),T=C.useRef(!0),{viewport:A,selectedItem:E,selectedItemText:_,focusSelectedItem:R}=d,N=C.useCallback(()=>{if(c.trigger&&c.valueNode&&g&&v&&A&&E&&_){const I=c.trigger.getBoundingClientRect(),j=v.getBoundingClientRect(),Q=c.valueNode.getBoundingClientRect(),Z=_.getBoundingClientRect();if(c.dir!=="rtl"){const we=Z.left-j.left,De=Q.left-we,Ve=I.left-De,at=I.width+Ve,mt=Math.max(at,j.width),Rt=window.innerWidth-rr,tn=vh(De,[rr,Math.max(rr,Rt-mt)]);g.style.minWidth=at+"px",g.style.left=tn+"px"}else{const we=j.right-Z.right,De=window.innerWidth-Q.right-we,Ve=window.innerWidth-I.right-De,at=I.width+Ve,mt=Math.max(at,j.width),Rt=window.innerWidth-rr,tn=vh(De,[rr,Math.max(rr,Rt-mt)]);g.style.minWidth=at+"px",g.style.right=tn+"px"}const K=y(),oe=window.innerHeight-rr*2,te=A.scrollHeight,W=window.getComputedStyle(v),U=parseInt(W.borderTopWidth,10),G=parseInt(W.paddingTop,10),le=parseInt(W.borderBottomWidth,10),ce=parseInt(W.paddingBottom,10),M=U+G+te+ce+le,L=Math.min(E.offsetHeight*5,M),Y=window.getComputedStyle(A),O=parseInt(Y.paddingTop,10),ne=parseInt(Y.paddingBottom,10),de=I.top+I.height/2-rr,se=oe-de,ve=E.offsetHeight/2,me=E.offsetTop+ve,he=U+G+me,ge=M-he;if(he<=de){const we=K.length>0&&E===K[K.length-1].ref.current;g.style.bottom="0px";const De=v.clientHeight-A.offsetTop-A.offsetHeight,Ve=Math.max(se,ve+(we?ne:0)+De+le),at=he+Ve;g.style.height=at+"px"}else{const we=K.length>0&&E===K[0].ref.current;g.style.top="0px";const Ve=Math.max(de,U+A.offsetTop+(we?O:0)+ve)+ge;g.style.height=Ve+"px",A.scrollTop=he-de+A.offsetTop}g.style.margin=`${rr}px 0`,g.style.minHeight=L+"px",g.style.maxHeight=oe+"px",s==null||s(),requestAnimationFrame(()=>w.current=!0)}},[y,c.trigger,c.valueNode,g,v,A,E,_,c.dir,s]);en(()=>N(),[N]);const[z,k]=C.useState();en(()=>{v&&k(window.getComputedStyle(v).zIndex)},[v]);const H=C.useCallback(I=>{I&&T.current===!0&&(N(),R==null||R(),T.current=!1)},[N,R]);return S.jsx(LE,{scope:a,contentWrapper:g,shouldExpandOnScrollRef:w,onScrollButtonChange:H,children:S.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:S.jsx(qt.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})},"SelectItemAlignedPosition")),Bv=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,align:s="start",collisionPadding:u=rr,...c}=r,d=am(a);return S.jsx(cE,{...d,...c,ref:l,align:s,collisionPadding:u,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[LE,BE]=ri(ti,{}),Hv="SelectViewport",HE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,nonce:s,...u}=r,c=Xu(Hv,a),d=BE(Hv,a),g=At(l,c.onViewportChange),h=C.useRef(0);return S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),S.jsx(Pu.Slot,{scope:a,children:S.jsx(qt.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:g,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:St(u.onScroll,v=>{const p=v.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:y}=d;if(y!=null&&y.current&&b){const w=Math.abs(h.current-p.scrollTop);if(w>0){const T=window.innerHeight-rr*2,A=parseFloat(b.style.minHeight),E=parseFloat(b.style.height),_=Math.max(A,E);if(_<T){const R=_+w,N=Math.min(T,R),z=R-N;b.style.height=N+"px",b.style.bottom==="0px"&&(p.scrollTop=z>0?z:0,b.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),UE="SelectGroup",[_D,jD]=ri(UE),Sh="SelectItem",[IE,bx]=ri(Sh),VE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,value:s,disabled:u=!1,textValue:c,...d}=r,g=Rl(Sh,a),h=Xu(Sh,a),v=g.value===s,[p,b]=C.useState(c??""),[y,w]=C.useState(!1),T=xr(N=>{var z;return(z=h.itemRefCallback)==null?void 0:z.call(h,N,s,u)}),A=At(l,T),E=Fi(),_=C.useRef("touch"),R=nt(()=>{u||(g.onValueChange(s),g.onOpenChange(!1))},"handleSelect");return S.jsx(IE,{scope:a,value:s,disabled:u,textId:E,isSelected:v,onItemTextChange:C.useCallback(N=>{b(z=>z||((N==null?void 0:N.textContent)??"").trim())},[]),children:S.jsx(Pu.ItemSlot,{scope:a,value:s,disabled:u,textValue:p,children:S.jsx(qt.div,{role:"option","aria-labelledby":E,"data-highlighted":y?"":void 0,"aria-selected":v&&y,"data-state":v?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:A,onFocus:St(d.onFocus,()=>w(!0)),onBlur:St(d.onBlur,()=>w(!1)),onClick:St(d.onClick,()=>{_.current!=="mouse"&&R()}),onPointerUp:St(d.onPointerUp,()=>{_.current==="mouse"&&R()}),onPointerDown:St(d.onPointerDown,N=>{_.current=N.pointerType}),onPointerMove:St(d.onPointerMove,N=>{var z;_.current=N.pointerType,u?(z=h.onItemLeave)==null||z.call(h):_.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:St(d.onPointerLeave,N=>{var z;N.currentTarget===document.activeElement&&((z=h.onItemLeave)==null||z.call(h))}),onKeyDown:St(d.onKeyDown,N=>{var k;u||N.target!==N.currentTarget||((k=h.searchRef)==null?void 0:k.current)!==""&&N.key===" "||(gE.includes(N.key)&&R(),N.key===" "&&N.preventDefault())})})})})},"SelectItem")),nu="SelectItemText",qE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,className:s,style:u,...c}=r,d=Rl(nu,a),g=Xu(nu,a),h=bx(nu,a),v=xE(nu,a),[p,b]=C.useState(null),y=xr(R=>{var N;return(N=g.itemTextRefCallback)==null?void 0:N.call(g,R,h.value,h.disabled)}),w=At(l,b,h.onItemTextChange,y),T=p==null?void 0:p.textContent,A=C.useMemo(()=>S.jsx("option",{value:h.value,disabled:h.disabled,children:T},h.value),[h.disabled,h.value,T]),{onNativeOptionAdd:E,onNativeOptionRemove:_}=v;return en(()=>(E(A),()=>_(A)),[E,_,A]),S.jsxs(S.Fragment,{children:[S.jsx(qt.span,{id:h.textId,...c,ref:w}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!No(d.value)?lr.createPortal(c.children,d.valueNode):null]})},"SelectItemText")),YE="SelectItemIndicator",PE=C.forwardRef(nt(function(r,l){const{__scopeSelect:a,...s}=r;return bx(YE,a).isSelected?S.jsx(qt.span,{"aria-hidden":!0,...s,ref:l}):null},"SelectItemIndicator")),XE="SelectBubbleInput",ZE=C.forwardRef(nt(function({__scopeSelect:r,...l},a){const s=Rl(XE,r),{value:u,onValueChange:c,required:d,disabled:g,name:h,autoComplete:v,form:p}=s,{nativeOptions:b,nativeSelectKey:y}=s,w=C.useRef(null),T=At(a,w),A=u??"",E=gx(A),_=Array.from(b).some(R=>(R.props.value??"")==="");return C.useEffect(()=>{const R=w.current;if(!R)return;const N=window.HTMLSelectElement.prototype,k=Object.getOwnPropertyDescriptor(N,"value").set;if(E!==A&&k){const H=new Event("change",{bubbles:!0});k.call(R,A),R.dispatchEvent(H)}},[E,A]),S.jsxs(qt.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:h,autoComplete:v,disabled:g,form:p,onChange:R=>c(R.target.value),...l,style:{...hE,...l.style},ref:T,defaultValue:A,children:[No(u)&&!_?S.jsx("option",{value:""}):null,Array.from(b)]},y)},"SelectBubbleInput"));function xx(t){return typeof t=="function"}nt(xx,"isFunction");function No(t){return t===""||t===void 0}nt(No,"shouldShowPlaceholder");function om(t){const r=xr(t),l=C.useRef(""),a=C.useRef(0),s=C.useCallback(c=>{const d=l.current+c;r(d),nt((function g(h){l.current=h,window.clearTimeout(a.current),h!==""&&(a.current=window.setTimeout(()=>g(""),1e3))}),"updateSearch")(d)},[r]),u=C.useCallback(()=>{l.current="",window.clearTimeout(a.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(a.current),[]),[l,s,u]}nt(om,"useTypeaheadSearch");function sm(t,r,l){const s=r.length>1&&Array.from(r).every(h=>h===r[0])?r[0]:r,u=l?t.indexOf(l):-1;let c=Sx(t,Math.max(u,0));s.length===1&&(c=c.filter(h=>h!==l));const g=c.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return g!==l?g:void 0}nt(sm,"findNextItem");function Sx(t,r){return t.map((l,a)=>t[(r+a)%t.length])}nt(Sx,"wrapArray");function Ch({value:t,onValueChange:r,options:l,placeholder:a,ariaLabel:s,emptyOption:u,statusMarker:c=!1}){const d="__none__",g=t===""?d:t;return S.jsxs(SE,{value:g,onValueChange:h=>r(h===d?"":h),children:[S.jsxs(wE,{"aria-label":s,className:"flex h-9 w-full items-center justify-between gap-2 rounded border border-sb-iron bg-sb-surface2 px-3 text-left text-[13px] text-sb-frosted outline-none transition-colors hover:border-sb-silver focus:border-sb-silver data-placeholder:text-sb-silver",children:[S.jsxs("span",{className:"flex min-w-0 items-center gap-2 truncate",children:[c&&g!==d?S.jsx("span",{className:"h-2.5 w-2.5 shrink-0 bg-sb-frosted","aria-hidden":"true"}):null,S.jsx(TE,{placeholder:a})]}),S.jsx(AE,{className:"shrink-0 text-sb-silver",children:S.jsx(po,{className:"h-2.5 w-2.5 rotate-90"})})]}),S.jsx(RE,{children:S.jsx(kE,{className:"z-50 overflow-hidden rounded border border-sb-iron bg-sb-surface text-[13px] text-sb-frosted",position:"popper",sideOffset:4,children:S.jsxs(HE,{className:"p-1",children:[u?S.jsx(Uv,{value:d,children:u.label}):null,l.map(h=>S.jsx(Uv,{value:h.value,children:h.label},h.value))]})})})]})}function Uv({value:t,children:r}){return S.jsxs(VE,{className:"relative flex h-8 cursor-default select-none items-center rounded px-2 pr-8 text-sb-silver outline-none transition-colors data-highlighted:bg-sb-surface2 data-highlighted:text-sb-frosted data-[state=checked]:text-sb-frosted",value:t,children:[S.jsx(qE,{children:r}),S.jsx(PE,{className:"absolute right-2 inline-flex items-center",children:S.jsx(kh,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})]})}function GE(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("field-sizing","content")}function FE(t){if(GE()){t.style.height="";return}const r=[];for(let a=t.parentElement;a;a=a.parentElement)r.push({element:a,left:a.scrollLeft,top:a.scrollTop});const l={left:window.scrollX,top:window.scrollY};t.style.height="auto",t.style.height=`${t.scrollHeight}px`;for(const{element:a,left:s,top:u}of r)a.scrollLeft=s,a.scrollTop=u;(l.left!==0||l.top!==0)&&window.scrollTo(l.left,l.top)}function QE(t,r){const l=C.useRef(null);return C.useLayoutEffect(()=>{const a=l.current;r&&(a==null?void 0:a.value)===t&&FE(a)},[r,t]),l}function KE({slug:t}){var R;const r=Ce(N=>N.config),l=Ce(N=>N.tasks.find(z=>z.slug===t)),a=Ce(N=>N.selectTask),s=Ce(N=>N.updateTask),u=Ce(N=>N.addComment),c=Ce(N=>N.editComment),d=Ce(N=>N.deleteComment),g=Ce(N=>N.archiveTask),h=Ce(N=>N.deleteTask),v=Ce(N=>N.readOnly),p=Ce(N=>N.tasks),b=Ce(N=>N.warnings),[y,w]=C.useState(!1),T=C.useMemo(()=>p.flatMap(N=>N.frontmatter.tags??[]),[p]),A=C.useMemo(()=>l?p.filter(N=>{var z;return N.slug!==l.slug&&((z=N.frontmatter.depends_on)==null?void 0:z.includes(l.slug))}):[],[l,p]),E=C.useMemo(()=>{var I,j;if(!l||!r)return null;const N=new Set(r.columns.map(Q=>Q.id)),z=N.has(l.frontmatter.status)?l.frontmatter.status:Jl,k=fu(p,r.layout,z,N,r.done_column),H=k.findIndex(Q=>Q.slug===l.slug);return k.length<=1||H===-1?null:{currentIndex:H,total:k.length,previousSlug:((I=k[H-1])==null?void 0:I.slug)??null,nextSlug:((j=k[H+1])==null?void 0:j.slug)??null}},[r,l,p]);if(C.useEffect(()=>{if(!E)return;const N=z=>{if(z.defaultPrevented||z.altKey||z.ctrlKey||z.metaKey||JE(z.target))return;const k=z.key.toLowerCase();(k==="k"||z.key==="ArrowUp")&&E.previousSlug&&(z.preventDefault(),a(E.previousSlug)),(k==="j"||z.key==="ArrowDown")&&E.nextSlug&&(z.preventDefault(),a(E.nextSlug))};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[E,a]),!l||!r)return S.jsxs("div",{className:"rounded-md border border-sb-iron bg-sb-surface p-6",children:[S.jsx("button",{className:"font-mono text-[12px] text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:()=>a(null),children:"Tasks"}),S.jsx("p",{className:"mt-4 font-mono text-[12px] text-sb-silver",children:"Task no longer exists."})]});const _=((R=r.columns.find(N=>N.id===l.frontmatter.status))==null?void 0:R.label)??l.frontmatter.status;return S.jsxs("section",{className:"mx-auto max-w-7xl",children:[S.jsxs("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,7fr)_minmax(18rem,3fr)]",children:[S.jsxs("article",{className:"min-w-0 rounded-md border border-sb-iron bg-sb-surface",children:[S.jsxs("div",{className:"border-b border-sb-iron p-5",children:[S.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[S.jsxs("button",{className:"inline-flex h-8 items-center gap-2 rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",type:"button",onClick:()=>a(null),children:[S.jsx(O4,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Back to board"]}),E?S.jsx($E,{currentIndex:E.currentIndex,total:E.total,previousSlug:E.previousSlug,nextSlug:E.nextSlug,onSelect:a}):null]}),S.jsx(nT,{readOnly:v,value:l.frontmatter.title,onChange:N=>void s(l.slug,{title:N})}),S.jsx(WE,{slug:l.slug})]}),S.jsx(eT,{readOnly:v,body:l.body,onSave:N=>void s(l.slug,{},N)}),S.jsx(tT,{readOnly:v,comments:l.comments??[],onAddComment:N=>u(l.slug,N),onEditComment:(N,z)=>c(l.slug,N,z),onDeleteComment:N=>d(l.slug,N)})]}),S.jsx("aside",{className:"h-fit rounded-md border border-sb-iron bg-sb-surface p-4 lg:sticky lg:top-[calc(var(--sb-header-h)+1.25rem)] lg:max-h-[calc(100vh-var(--sb-header-h)-2.5rem)] lg:self-start lg:overflow-y-auto",children:S.jsxs("div",{className:"space-y-4",children:[S.jsx(wh,{label:"Status",children:S.jsx(Iv,{readOnly:v,value:l.frontmatter.status,ariaLabel:"Status",statusMarker:!0,options:r.columns.map(N=>({value:N.id,label:N.label})),readValue:_,onValueChange:N=>void s(l.slug,{status:N})})}),S.jsx(wh,{label:"Priority",children:S.jsx(Iv,{readOnly:v,value:l.frontmatter.priority??"",ariaLabel:"Priority",emptyOption:{label:"None"},options:r.priority.values.map(N=>({value:N,label:N})),readValue:l.frontmatter.priority??"None",onValueChange:N=>void s(l.slug,{priority:N||void 0})})}),S.jsx(rT,{label:"Assignee",readOnly:v,value:l.frontmatter.assignee??"",readValue:l.frontmatter.assignee??"Unassigned",onChange:N=>void s(l.slug,{assignee:N||void 0})}),S.jsx(Bw,{readOnly:v,tags:l.frontmatter.tags??[],suggestions:T,onChange:N=>void s(l.slug,{tags:N})}),S.jsx(Hw,{readOnly:v,currentTaskSlug:l.slug,dependencies:l.frontmatter.depends_on??[],tasks:p,doneColumn:r.done_column,warnings:b.filter(N=>N.slug===l.slug&&N.field==="depends_on").map(N=>N.message),onChange:N=>void s(l.slug,{depends_on:N})}),S.jsxs("dl",{className:"space-y-1.5 border-t border-sb-iron pt-4 font-mono text-[11px] text-sb-silver",children:[S.jsxs("div",{className:"flex justify-between gap-3",children:[S.jsx("dt",{children:"created"}),S.jsx("dd",{className:"text-right text-sb-frosted",children:mu(l.frontmatter.created)})]}),S.jsxs("div",{className:"flex justify-between gap-3",children:[S.jsx("dt",{children:"updated"}),S.jsx("dd",{className:"text-right text-sb-frosted",children:mu(l.frontmatter.updated)})]})]}),v?null:S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>{if(l.frontmatter.status!==r.done_column&&A.length>0){w(!0);return}g(l.slug)},children:[S.jsx(Eo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive task"]}),S.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>{window.confirm("Delete this task?")&&h(l.slug)},children:[S.jsx(Qd,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Delete task"]})]})]})})]}),v?null:S.jsx(c6,{open:y,taskTitle:l.frontmatter.title,dependents:A,onOpenChange:w,onConfirm:()=>void g(l.slug,!0)})]})}function $E({currentIndex:t,total:r,previousSlug:l,nextSlug:a,onSelect:s}){return S.jsxs("div",{className:"ml-auto inline-flex items-center gap-2",children:[S.jsxs("span",{className:"min-w-10 text-right font-mono text-[11px] tabular-nums text-sb-silver",children:[t+1,"/",r]}),S.jsxs("div",{className:"inline-flex overflow-hidden rounded border border-sb-iron",children:[S.jsx("button",{className:"inline-flex h-8 w-8 items-center justify-center text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",type:"button","aria-label":"Previous task in column",disabled:!l,onClick:()=>{l&&s(l)},children:S.jsx(po,{className:"h-2.5 w-2.5 -rotate-90"})}),S.jsx("button",{className:"inline-flex h-8 w-8 items-center justify-center border-l border-sb-iron text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",type:"button","aria-label":"Next task in column",disabled:!a,onClick:()=>{a&&s(a)},children:S.jsx(po,{className:"h-2.5 w-2.5 rotate-90"})})]})]})}function JE(t){return t instanceof HTMLElement?!!t.closest('input, textarea, select, [contenteditable="true"]'):!1}function WE({slug:t}){const[r,l]=C.useState(!1),a=C.useRef(null);C.useEffect(()=>()=>{a.current!==null&&window.clearTimeout(a.current)},[]);const s=async()=>{var u;if((u=navigator.clipboard)!=null&&u.writeText)try{await navigator.clipboard.writeText(t),l(!0),a.current!==null&&window.clearTimeout(a.current),a.current=window.setTimeout(()=>{l(!1),a.current=null},1e3)}catch{}};return S.jsxs("button",{className:"group mt-2 inline-flex max-w-full cursor-copy items-center gap-1.5 rounded border border-transparent py-0.5 pr-2 font-mono text-[11px] text-sb-silver transition-colors hover:border-sb-iron hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",type:"button","aria-label":r?"Copied task slug":`Copy task slug ${t}`,"aria-live":"polite",onClick:()=>void s(),children:[r?S.jsx(kh,{"aria-hidden":"true",className:"h-3.5 w-3.5 text-sb-frosted"}):S.jsx(D4,{"aria-hidden":"true",className:"h-3.5 w-3.5 opacity-60 transition-opacity group-hover:opacity-100"}),S.jsx("span",{className:"truncate",children:r?"Copied":t})]})}function eT({readOnly:t,body:r,onSave:l}){const[a,s]=C.useState(!1),[u,c]=C.useState(r),d=a&&!t,g=QE(u,d);C.useEffect(()=>{c(r)},[r]);const h=()=>{l(u),s(!1)},v=p=>{if(p.key!=="Tab")return;p.preventDefault();const b=p.currentTarget,y=b.selectionStart,w=b.selectionEnd,T=`${u.slice(0,y)} ${u.slice(w)}`;c(T),window.requestAnimationFrame(()=>{b.selectionStart=y+2,b.selectionEnd=y+2})};return S.jsxs("div",{className:"p-5",children:[S.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[S.jsx("h2",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-sb-silver",children:"Description"}),t?null:S.jsxs("button",{className:"inline-flex h-8 items-center gap-2 rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted",type:"button",onClick:()=>a?h():s(!0),children:[a?S.jsx(w4,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):S.jsx(oy,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),a?"Done":"Edit"]})]}),d?S.jsx("textarea",{"aria-label":"Task description",className:"sb-editor min-h-80 w-full resize-none bg-transparent font-sans text-[13px] leading-relaxed text-sb-silver outline-none field-sizing-content placeholder:text-sb-silver",spellCheck:!1,ref:g,value:u,onChange:p=>c(p.target.value),onKeyDown:v}):S.jsx("div",{className:"sb-markdown max-w-none",children:r.trim()?S.jsx(Yb,{children:r}):S.jsx("p",{className:"font-mono text-[12px] text-sb-silver",children:"No description yet."})})]})}function tT({readOnly:t,comments:r,onAddComment:l,onEditComment:a,onDeleteComment:s}){const[u,c]=C.useState(""),[d,g]=C.useState(!1),[h,v]=C.useState(null),[p,b]=C.useState(""),[y,w]=C.useState(!1),[T,A]=C.useState(null),E=u.trim().length>0&&!d;if(r.length===0&&t)return null;const _=async H=>{if(H.preventDefault(),!E)return;const I=u;c(""),g(!0),await l(I)||c(I),g(!1)},R=H=>{var I;A(null),v(H),b(((I=r[H])==null?void 0:I.text)??"")},N=()=>{v(null),b("")},z=async(H,I)=>{if(H.preventDefault(),!p.trim()||y)return;w(!0),await a(I,p)&&N(),w(!1)},k=async H=>{A(null),await s(H)};return S.jsxs("section",{className:"border-t border-sb-divider p-5","aria-label":"Task Updates",children:[S.jsxs("div",{className:"mb-4 flex items-baseline gap-3",children:[S.jsx("h2",{className:"font-mono text-[11px] uppercase tracking-[0.2em] text-sb-silver",children:"Task Updates"}),S.jsx("span",{className:"h-px flex-1 bg-sb-divider","aria-hidden":"true"}),S.jsx("span",{className:"font-mono text-[11px] text-sb-silver",children:r.length})]}),r.length>0?S.jsx("ol",{className:"grid gap-4",children:r.map((H,I)=>S.jsxs("li",{className:"border-l border-sb-divider pl-4",children:[S.jsxs("div",{className:"flex min-h-9 items-start justify-between gap-3",children:[S.jsx("time",{className:"font-mono text-[12px] text-sb-silver",dateTime:H.timestamp,title:H.timestamp,children:R4(H.timestamp)}),t||h===I?null:S.jsx("div",{className:"flex shrink-0 items-center gap-2",children:T===I?S.jsxs(S.Fragment,{children:[S.jsx("button",{className:"inline-flex min-h-9 items-center rounded px-2 text-[13px] font-medium text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:()=>A(null),children:"Cancel"}),S.jsxs("button",{"aria-label":`Confirm delete task update ${I+1}`,className:"inline-flex min-h-9 items-center gap-2 rounded border border-sb-danger px-2 text-[13px] font-medium text-sb-danger transition-colors hover:bg-sb-danger/10",type:"button",onClick:()=>void k(I),children:[S.jsx(Qd,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Delete"]})]}):S.jsxs(S.Fragment,{children:[S.jsx("button",{"aria-label":`Edit task update ${I+1}`,className:"inline-flex h-9 w-9 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted",type:"button",onClick:()=>R(I),children:S.jsx(oy,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),S.jsx("button",{"aria-label":`Delete task update ${I+1}`,className:"inline-flex h-9 w-9 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-danger",type:"button",onClick:()=>{v(null),A(I)},children:S.jsx(Qd,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})]})})]}),h===I?S.jsxs("form",{className:"mt-2",onSubmit:j=>void z(j,I),children:[S.jsx("textarea",{"aria-label":`Task update ${I+1} text`,className:"min-h-24 w-full resize-y rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-sans text-[13px] leading-relaxed text-sb-frosted outline-none transition-colors hover:border-sb-ironlit focus-visible:border-sb-accent disabled:cursor-not-allowed disabled:opacity-40",disabled:y,value:p,onChange:j=>b(j.target.value)}),S.jsxs("div",{className:"mt-2 flex justify-end gap-2",children:[S.jsx("button",{className:"inline-flex min-h-9 items-center rounded border border-sb-iron px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-ironlit hover:bg-sb-surface2 disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:y,onClick:N,children:"Cancel"}),S.jsxs("button",{className:"inline-flex min-h-9 items-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",type:"submit",disabled:!p.trim()||y,children:[S.jsx(kh,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),y?"Saving…":"Save update"]})]})]}):S.jsx("div",{className:"sb-markdown mt-2 max-w-none",children:S.jsx(Yb,{children:H.text})})]},`${H.timestamp}-${I}`))}):S.jsx("p",{className:"font-mono text-[12px] text-sb-silver",children:"No task updates yet."}),t?null:S.jsxs("form",{className:"mt-5 border-t border-sb-divider pt-4",onSubmit:H=>void _(H),children:[S.jsx("label",{className:"mb-2 block font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",htmlFor:"task-update-text",children:"Add a task update"}),S.jsx("textarea",{id:"task-update-text","aria-label":"Task update text",className:"min-h-20 w-full resize-y rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-sans text-[13px] leading-relaxed text-sb-frosted outline-none transition-colors placeholder:text-sb-silver/60 hover:border-sb-ironlit focus-visible:border-sb-accent disabled:cursor-not-allowed disabled:opacity-40",disabled:d,placeholder:"A decision, scope change, or why something changed",value:u,onChange:H=>c(H.target.value)}),S.jsxs("div",{className:"mt-2 flex flex-wrap items-center justify-between gap-3",children:[S.jsx("p",{className:"max-w-xl text-[13px] text-sb-silver",children:"Time-stamped by ShipBench. Keep timeless details in the description."}),S.jsxs("button",{className:"inline-flex h-9 items-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",type:"submit",disabled:!E,children:[S.jsx(wo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),d?"Adding…":"Add task update"]})]})]})]})}function Iv({readOnly:t,value:r,ariaLabel:l,options:a,emptyOption:s,statusMarker:u,readValue:c,onValueChange:d}){return t?S.jsx(Cx,{children:c}):S.jsx(Ch,{value:r,ariaLabel:l,options:a,emptyOption:s,statusMarker:u,onValueChange:d})}function Cx({children:t}){return S.jsx("span",{className:"min-h-9 rounded border border-sb-iron bg-sb-surface2 px-3 py-2 font-mono text-[12px] text-sb-frosted",children:t})}function wh({label:t,children:r}){return S.jsxs("div",{className:"grid gap-1.5",children:[S.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:t}),r]})}function nT({readOnly:t,value:r,onChange:l}){const[a,s]=C.useState(r);return C.useEffect(()=>{s(r)},[r]),t?S.jsx("h1",{className:"font-sans text-xl font-semibold text-sb-frosted",children:r}):S.jsx("input",{className:"sb-editor w-full bg-transparent font-sans text-xl font-semibold text-sb-frosted outline-none placeholder:text-sb-silver","aria-label":"Task title",value:a,onBlur:()=>{a.trim()&&a!==r&&l(a.trim())},onChange:u=>s(u.target.value)})}function rT({label:t,readOnly:r,value:l,readValue:a,onChange:s}){const[u,c]=C.useState(l),d=C.useId();return C.useEffect(()=>{c(l)},[l]),r?S.jsx(wh,{label:t,children:S.jsx(Cx,{children:a})}):S.jsxs("div",{className:"grid gap-1.5",children:[S.jsx("label",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",htmlFor:d,children:t}),S.jsx("input",{id:d,className:"h-9 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors hover:border-sb-silver focus:border-sb-silver",value:u,onBlur:()=>s(u),onChange:g=>c(g.target.value)})]})}function lT(){for(var t=arguments.length,r=new Array(t),l=0;l<t;l++)r[l]=arguments[l];return C.useMemo(()=>a=>{r.forEach(s=>s(a))},r)}const Zu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function aa(t){const r=Object.prototype.toString.call(t);return r==="[object Window]"||r==="[object global]"}function um(t){return"nodeType"in t}function fn(t){var r,l;return t?aa(t)?t:um(t)&&(r=(l=t.ownerDocument)==null?void 0:l.defaultView)!=null?r:window:window}function cm(t){const{Document:r}=fn(t);return t instanceof r}function Oo(t){return aa(t)?!1:t instanceof fn(t).HTMLElement}function wx(t){return t instanceof fn(t).SVGElement}function oa(t){return t?aa(t)?t.document:um(t)?cm(t)?t:Oo(t)||wx(t)?t.ownerDocument:document:document:document}const ir=Zu?C.useLayoutEffect:C.useEffect;function Gu(t){const r=C.useRef(t);return ir(()=>{r.current=t}),C.useCallback(function(){for(var l=arguments.length,a=new Array(l),s=0;s<l;s++)a[s]=arguments[s];return r.current==null?void 0:r.current(...a)},[])}function iT(){const t=C.useRef(null),r=C.useCallback((a,s)=>{t.current=setInterval(a,s)},[]),l=C.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[r,l]}function bo(t,r){r===void 0&&(r=[t]);const l=C.useRef(t);return ir(()=>{l.current!==t&&(l.current=t)},r),l}function Ro(t,r){const l=C.useRef();return C.useMemo(()=>{const a=t(l.current);return l.current=a,a},[...r])}function wu(t){const r=Gu(t),l=C.useRef(null),a=C.useCallback(s=>{s!==l.current&&(r==null||r(s,l.current)),l.current=s},[]);return[l,a]}function Eu(t){const r=C.useRef();return C.useEffect(()=>{r.current=t},[t]),r.current}let qd={};function ko(t,r){return C.useMemo(()=>{if(r)return r;const l=qd[t]==null?0:qd[t]+1;return qd[t]=l,t+"-"+l},[t,r])}function Ex(t){return function(r){for(var l=arguments.length,a=new Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];return a.reduce((u,c)=>{const d=Object.entries(c);for(const[g,h]of d){const v=u[g];v!=null&&(u[g]=v+t*h)}return u},{...r})}}const Ji=Ex(1),xo=Ex(-1);function aT(t){return"clientX"in t&&"clientY"in t}function Fu(t){if(!t)return!1;const{KeyboardEvent:r}=fn(t.target);return r&&t instanceof r}function oT(t){if(!t)return!1;const{TouchEvent:r}=fn(t.target);return r&&t instanceof r}function Tu(t){if(oT(t)){if(t.touches&&t.touches.length){const{clientX:r,clientY:l}=t.touches[0];return{x:r,y:l}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:r,clientY:l}=t.changedTouches[0];return{x:r,y:l}}}return aT(t)?{x:t.clientX,y:t.clientY}:null}const Dl=Object.freeze({Translate:{toString(t){if(!t)return;const{x:r,y:l}=t;return"translate3d("+(r?Math.round(r):0)+"px, "+(l?Math.round(l):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:r,scaleY:l}=t;return"scaleX("+r+") scaleY("+l+")"}},Transform:{toString(t){if(t)return[Dl.Translate.toString(t),Dl.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:r,duration:l,easing:a}=t;return r+" "+l+"ms "+a}}}),Vv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function sT(t){return t.matches(Vv)?t:t.querySelector(Vv)}const uT={display:"none"};function cT(t){let{id:r,value:l}=t;return ie.createElement("div",{id:r,style:uT},l)}function fT(t){let{id:r,announcement:l,ariaLiveType:a="assertive"}=t;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ie.createElement("div",{id:r,style:s,role:"status","aria-live":a,"aria-atomic":!0},l)}function dT(){const[t,r]=C.useState("");return{announce:C.useCallback(a=>{a!=null&&r(a)},[]),announcement:t}}const Tx=C.createContext(null);function hT(t){const r=C.useContext(Tx);C.useEffect(()=>{if(!r)throw new Error("useDndMonitor must be used within a children of <DndContext>");return r(t)},[t,r])}function mT(){const[t]=C.useState(()=>new Set),r=C.useCallback(a=>(t.add(a),()=>t.delete(a)),[t]);return[C.useCallback(a=>{let{type:s,event:u}=a;t.forEach(c=>{var d;return(d=c[s])==null?void 0:d.call(c,u)})},[t]),r]}const pT={draggable:`
103
+ To pick up a draggable item, press the space bar.
104
+ While dragging, use the arrow keys to move the item.
105
+ Press space again to drop the item in its new position, or press escape to cancel.
106
+ `},gT={onDragStart(t){let{active:r}=t;return"Picked up draggable item "+r.id+"."},onDragOver(t){let{active:r,over:l}=t;return l?"Draggable item "+r.id+" was moved over droppable area "+l.id+".":"Draggable item "+r.id+" is no longer over a droppable area."},onDragEnd(t){let{active:r,over:l}=t;return l?"Draggable item "+r.id+" was dropped over droppable area "+l.id:"Draggable item "+r.id+" was dropped."},onDragCancel(t){let{active:r}=t;return"Dragging was cancelled. Draggable item "+r.id+" was dropped."}};function vT(t){let{announcements:r=gT,container:l,hiddenTextDescribedById:a,screenReaderInstructions:s=pT}=t;const{announce:u,announcement:c}=dT(),d=ko("DndLiveRegion"),[g,h]=C.useState(!1);if(C.useEffect(()=>{h(!0)},[]),hT(C.useMemo(()=>({onDragStart(p){let{active:b}=p;u(r.onDragStart({active:b}))},onDragMove(p){let{active:b,over:y}=p;r.onDragMove&&u(r.onDragMove({active:b,over:y}))},onDragOver(p){let{active:b,over:y}=p;u(r.onDragOver({active:b,over:y}))},onDragEnd(p){let{active:b,over:y}=p;u(r.onDragEnd({active:b,over:y}))},onDragCancel(p){let{active:b,over:y}=p;u(r.onDragCancel({active:b,over:y}))}}),[u,r])),!g)return null;const v=ie.createElement(ie.Fragment,null,ie.createElement(cT,{id:a,value:s.draggable}),ie.createElement(fT,{id:d,announcement:c}));return l?lr.createPortal(v,l):v}var Vt;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Vt||(Vt={}));function Au(){}function qv(t,r){return C.useMemo(()=>({sensor:t,options:r??{}}),[t,r])}function yT(){for(var t=arguments.length,r=new Array(t),l=0;l<t;l++)r[l]=arguments[l];return C.useMemo(()=>[...r].filter(a=>a!=null),[...r])}const ar=Object.freeze({x:0,y:0});function Ax(t,r){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function bT(t,r){const l=Tu(t);if(!l)return"0 0";const a={x:(l.x-r.left)/r.width*100,y:(l.y-r.top)/r.height*100};return a.x+"% "+a.y+"%"}function Dx(t,r){let{data:{value:l}}=t,{data:{value:a}}=r;return l-a}function xT(t,r){let{data:{value:l}}=t,{data:{value:a}}=r;return a-l}function Eh(t){let{left:r,top:l,height:a,width:s}=t;return[{x:r,y:l},{x:r+s,y:l},{x:r,y:l+a},{x:r+s,y:l+a}]}function Nx(t,r){if(!t||t.length===0)return null;const[l]=t;return l[r]}const ST=t=>{let{collisionRect:r,droppableRects:l,droppableContainers:a}=t;const s=Eh(r),u=[];for(const c of a){const{id:d}=c,g=l.get(d);if(g){const h=Eh(g),v=s.reduce((b,y,w)=>b+Ax(h[w],y),0),p=Number((v/4).toFixed(4));u.push({id:d,data:{droppableContainer:c,value:p}})}}return u.sort(Dx)};function CT(t,r){const l=Math.max(r.top,t.top),a=Math.max(r.left,t.left),s=Math.min(r.left+r.width,t.left+t.width),u=Math.min(r.top+r.height,t.top+t.height),c=s-a,d=u-l;if(a<s&&l<u){const g=r.width*r.height,h=t.width*t.height,v=c*d,p=v/(g+h-v);return Number(p.toFixed(4))}return 0}const wT=t=>{let{collisionRect:r,droppableRects:l,droppableContainers:a}=t;const s=[];for(const u of a){const{id:c}=u,d=l.get(c);if(d){const g=CT(d,r);g>0&&s.push({id:c,data:{droppableContainer:u,value:g}})}}return s.sort(xT)};function ET(t,r){const{top:l,left:a,bottom:s,right:u}=r;return l<=t.y&&t.y<=s&&a<=t.x&&t.x<=u}const TT=t=>{let{droppableContainers:r,droppableRects:l,pointerCoordinates:a}=t;if(!a)return[];const s=[];for(const u of r){const{id:c}=u,d=l.get(c);if(d&&ET(a,d)){const h=Eh(d).reduce((p,b)=>p+Ax(a,b),0),v=Number((h/4).toFixed(4));s.push({id:c,data:{droppableContainer:u,value:v}})}}return s.sort(Dx)};function AT(t,r,l){return{...t,scaleX:r&&l?r.width/l.width:1,scaleY:r&&l?r.height/l.height:1}}function Ox(t,r){return t&&r?{x:t.left-r.left,y:t.top-r.top}:ar}function DT(t){return function(l){for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return s.reduce((c,d)=>({...c,top:c.top+t*d.y,bottom:c.bottom+t*d.y,left:c.left+t*d.x,right:c.right+t*d.x}),{...l})}}const NT=DT(1);function Rx(t){if(t.startsWith("matrix3d(")){const r=t.slice(9,-1).split(/, /);return{x:+r[12],y:+r[13],scaleX:+r[0],scaleY:+r[5]}}else if(t.startsWith("matrix(")){const r=t.slice(7,-1).split(/, /);return{x:+r[4],y:+r[5],scaleX:+r[0],scaleY:+r[3]}}return null}function OT(t,r,l){const a=Rx(r);if(!a)return t;const{scaleX:s,scaleY:u,x:c,y:d}=a,g=t.left-c-(1-s)*parseFloat(l),h=t.top-d-(1-u)*parseFloat(l.slice(l.indexOf(" ")+1)),v=s?t.width/s:t.width,p=u?t.height/u:t.height;return{width:v,height:p,top:h,right:g+v,bottom:h+p,left:g}}const RT={ignoreTransform:!1};function sa(t,r){r===void 0&&(r=RT);let l=t.getBoundingClientRect();if(r.ignoreTransform){const{transform:h,transformOrigin:v}=fn(t).getComputedStyle(t);h&&(l=OT(l,h,v))}const{top:a,left:s,width:u,height:c,bottom:d,right:g}=l;return{top:a,left:s,width:u,height:c,bottom:d,right:g}}function Yv(t){return sa(t,{ignoreTransform:!0})}function kT(t){const r=t.innerWidth,l=t.innerHeight;return{top:0,left:0,right:r,bottom:l,width:r,height:l}}function MT(t,r){return r===void 0&&(r=fn(t).getComputedStyle(t)),r.position==="fixed"}function _T(t,r){r===void 0&&(r=fn(t).getComputedStyle(t));const l=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const u=r[s];return typeof u=="string"?l.test(u):!1})}function Qu(t,r){const l=[];function a(s){if(r!=null&&l.length>=r||!s)return l;if(cm(s)&&s.scrollingElement!=null&&!l.includes(s.scrollingElement))return l.push(s.scrollingElement),l;if(!Oo(s)||wx(s)||l.includes(s))return l;const u=fn(t).getComputedStyle(s);return s!==t&&_T(s,u)&&l.push(s),MT(s,u)?l:a(s.parentNode)}return t?a(t):l}function kx(t){const[r]=Qu(t,1);return r??null}function Yd(t){return!Zu||!t?null:aa(t)?t:um(t)?cm(t)||t===oa(t).scrollingElement?window:Oo(t)?t:null:null}function Mx(t){return aa(t)?t.scrollX:t.scrollLeft}function _x(t){return aa(t)?t.scrollY:t.scrollTop}function Th(t){return{x:Mx(t),y:_x(t)}}var Xt;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Xt||(Xt={}));function jx(t){return!Zu||!t?!1:t===document.scrollingElement}function zx(t){const r={x:0,y:0},l=jx(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},a={x:t.scrollWidth-l.width,y:t.scrollHeight-l.height},s=t.scrollTop<=r.y,u=t.scrollLeft<=r.x,c=t.scrollTop>=a.y,d=t.scrollLeft>=a.x;return{isTop:s,isLeft:u,isBottom:c,isRight:d,maxScroll:a,minScroll:r}}const jT={x:.2,y:.2};function zT(t,r,l,a,s){let{top:u,left:c,right:d,bottom:g}=l;a===void 0&&(a=10),s===void 0&&(s=jT);const{isTop:h,isBottom:v,isLeft:p,isRight:b}=zx(t),y={x:0,y:0},w={x:0,y:0},T={height:r.height*s.y,width:r.width*s.x};return!h&&u<=r.top+T.height?(y.y=Xt.Backward,w.y=a*Math.abs((r.top+T.height-u)/T.height)):!v&&g>=r.bottom-T.height&&(y.y=Xt.Forward,w.y=a*Math.abs((r.bottom-T.height-g)/T.height)),!b&&d>=r.right-T.width?(y.x=Xt.Forward,w.x=a*Math.abs((r.right-T.width-d)/T.width)):!p&&c<=r.left+T.width&&(y.x=Xt.Backward,w.x=a*Math.abs((r.left+T.width-c)/T.width)),{direction:y,speed:w}}function LT(t){if(t===document.scrollingElement){const{innerWidth:u,innerHeight:c}=window;return{top:0,left:0,right:u,bottom:c,width:u,height:c}}const{top:r,left:l,right:a,bottom:s}=t.getBoundingClientRect();return{top:r,left:l,right:a,bottom:s,width:t.clientWidth,height:t.clientHeight}}function Lx(t){return t.reduce((r,l)=>Ji(r,Th(l)),ar)}function BT(t){return t.reduce((r,l)=>r+Mx(l),0)}function HT(t){return t.reduce((r,l)=>r+_x(l),0)}function Bx(t,r){if(r===void 0&&(r=sa),!t)return;const{top:l,left:a,bottom:s,right:u}=r(t);kx(t)&&(s<=0||u<=0||l>=window.innerHeight||a>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const UT=[["x",["left","right"],BT],["y",["top","bottom"],HT]];class fm{constructor(r,l){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const a=Qu(l),s=Lx(a);this.rect={...r},this.width=r.width,this.height=r.height;for(const[u,c,d]of UT)for(const g of c)Object.defineProperty(this,g,{get:()=>{const h=d(a),v=s[u]-h;return this.rect[g]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class co{constructor(r){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(l=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...l)})},this.target=r}add(r,l,a){var s;(s=this.target)==null||s.addEventListener(r,l,a),this.listeners.push([r,l,a])}}function IT(t){const{EventTarget:r}=fn(t);return t instanceof r?t:oa(t)}function Pd(t,r){const l=Math.abs(t.x),a=Math.abs(t.y);return typeof r=="number"?Math.sqrt(l**2+a**2)>r:"x"in r&&"y"in r?l>r.x&&a>r.y:"x"in r?l>r.x:"y"in r?a>r.y:!1}var Kn;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Kn||(Kn={}));function Pv(t){t.preventDefault()}function VT(t){t.stopPropagation()}var Ie;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Ie||(Ie={}));const Hx={start:[Ie.Space,Ie.Enter],cancel:[Ie.Esc],end:[Ie.Space,Ie.Enter,Ie.Tab]},qT=(t,r)=>{let{currentCoordinates:l}=r;switch(t.code){case Ie.Right:return{...l,x:l.x+25};case Ie.Left:return{...l,x:l.x-25};case Ie.Down:return{...l,y:l.y+25};case Ie.Up:return{...l,y:l.y-25}}};class dm{constructor(r){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=r;const{event:{target:l}}=r;this.props=r,this.listeners=new co(oa(l)),this.windowListeners=new co(fn(l)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Kn.Resize,this.handleCancel),this.windowListeners.add(Kn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Kn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:r,onStart:l}=this.props,a=r.node.current;a&&Bx(a),l(ar)}handleKeyDown(r){if(Fu(r)){const{active:l,context:a,options:s}=this.props,{keyboardCodes:u=Hx,coordinateGetter:c=qT,scrollBehavior:d="smooth"}=s,{code:g}=r;if(u.end.includes(g)){this.handleEnd(r);return}if(u.cancel.includes(g)){this.handleCancel(r);return}const{collisionRect:h}=a.current,v=h?{x:h.left,y:h.top}:ar;this.referenceCoordinates||(this.referenceCoordinates=v);const p=c(r,{active:l,context:a.current,currentCoordinates:v});if(p){const b=xo(p,v),y={x:0,y:0},{scrollableAncestors:w}=a.current;for(const T of w){const A=r.code,{isTop:E,isRight:_,isLeft:R,isBottom:N,maxScroll:z,minScroll:k}=zx(T),H=LT(T),I={x:Math.min(A===Ie.Right?H.right-H.width/2:H.right,Math.max(A===Ie.Right?H.left:H.left+H.width/2,p.x)),y:Math.min(A===Ie.Down?H.bottom-H.height/2:H.bottom,Math.max(A===Ie.Down?H.top:H.top+H.height/2,p.y))},j=A===Ie.Right&&!_||A===Ie.Left&&!R,Q=A===Ie.Down&&!N||A===Ie.Up&&!E;if(j&&I.x!==p.x){const Z=T.scrollLeft+b.x,K=A===Ie.Right&&Z<=z.x||A===Ie.Left&&Z>=k.x;if(K&&!b.y){T.scrollTo({left:Z,behavior:d});return}K?y.x=T.scrollLeft-Z:y.x=A===Ie.Right?T.scrollLeft-z.x:T.scrollLeft-k.x,y.x&&T.scrollBy({left:-y.x,behavior:d});break}else if(Q&&I.y!==p.y){const Z=T.scrollTop+b.y,K=A===Ie.Down&&Z<=z.y||A===Ie.Up&&Z>=k.y;if(K&&!b.x){T.scrollTo({top:Z,behavior:d});return}K?y.y=T.scrollTop-Z:y.y=A===Ie.Down?T.scrollTop-z.y:T.scrollTop-k.y,y.y&&T.scrollBy({top:-y.y,behavior:d});break}}this.handleMove(r,Ji(xo(p,this.referenceCoordinates),y))}}}handleMove(r,l){const{onMove:a}=this.props;r.preventDefault(),a(l)}handleEnd(r){const{onEnd:l}=this.props;r.preventDefault(),this.detach(),l()}handleCancel(r){const{onCancel:l}=this.props;r.preventDefault(),this.detach(),l()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}dm.activators=[{eventName:"onKeyDown",handler:(t,r,l)=>{let{keyboardCodes:a=Hx,onActivation:s}=r,{active:u}=l;const{code:c}=t.nativeEvent;if(a.start.includes(c)){const d=u.activatorNode.current;return d&&t.target!==d?!1:(t.preventDefault(),s==null||s({event:t.nativeEvent}),!0)}return!1}}];function Xv(t){return!!(t&&"distance"in t)}function Zv(t){return!!(t&&"delay"in t)}class hm{constructor(r,l,a){var s;a===void 0&&(a=IT(r.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=r,this.events=l;const{event:u}=r,{target:c}=u;this.props=r,this.events=l,this.document=oa(c),this.documentListeners=new co(this.document),this.listeners=new co(a),this.windowListeners=new co(fn(c)),this.initialCoordinates=(s=Tu(u))!=null?s:ar,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:r,props:{options:{activationConstraint:l,bypassActivationConstraint:a}}}=this;if(this.listeners.add(r.move.name,this.handleMove,{passive:!1}),this.listeners.add(r.end.name,this.handleEnd),r.cancel&&this.listeners.add(r.cancel.name,this.handleCancel),this.windowListeners.add(Kn.Resize,this.handleCancel),this.windowListeners.add(Kn.DragStart,Pv),this.windowListeners.add(Kn.VisibilityChange,this.handleCancel),this.windowListeners.add(Kn.ContextMenu,Pv),this.documentListeners.add(Kn.Keydown,this.handleKeydown),l){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Zv(l)){this.timeoutId=setTimeout(this.handleStart,l.delay),this.handlePending(l);return}if(Xv(l)){this.handlePending(l);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(r,l){const{active:a,onPending:s}=this.props;s(a,r,this.initialCoordinates,l)}handleStart(){const{initialCoordinates:r}=this,{onStart:l}=this.props;r&&(this.activated=!0,this.documentListeners.add(Kn.Click,VT,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Kn.SelectionChange,this.removeTextSelection),l(r))}handleMove(r){var l;const{activated:a,initialCoordinates:s,props:u}=this,{onMove:c,options:{activationConstraint:d}}=u;if(!s)return;const g=(l=Tu(r))!=null?l:ar,h=xo(s,g);if(!a&&d){if(Xv(d)){if(d.tolerance!=null&&Pd(h,d.tolerance))return this.handleCancel();if(Pd(h,d.distance))return this.handleStart()}if(Zv(d)&&Pd(h,d.tolerance))return this.handleCancel();this.handlePending(d,h);return}r.cancelable&&r.preventDefault(),c(g)}handleEnd(){const{onAbort:r,onEnd:l}=this.props;this.detach(),this.activated||r(this.props.active),l()}handleCancel(){const{onAbort:r,onCancel:l}=this.props;this.detach(),this.activated||r(this.props.active),l()}handleKeydown(r){r.code===Ie.Esc&&this.handleCancel()}removeTextSelection(){var r;(r=this.document.getSelection())==null||r.removeAllRanges()}}const YT={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class mm extends hm{constructor(r){const{event:l}=r,a=oa(l.target);super(r,YT,a)}}mm.activators=[{eventName:"onPointerDown",handler:(t,r)=>{let{nativeEvent:l}=t,{onActivation:a}=r;return!l.isPrimary||l.button!==0?!1:(a==null||a({event:l}),!0)}}];const PT={move:{name:"mousemove"},end:{name:"mouseup"}};var Ah;(function(t){t[t.RightClick=2]="RightClick"})(Ah||(Ah={}));class XT extends hm{constructor(r){super(r,PT,oa(r.event.target))}}XT.activators=[{eventName:"onMouseDown",handler:(t,r)=>{let{nativeEvent:l}=t,{onActivation:a}=r;return l.button===Ah.RightClick?!1:(a==null||a({event:l}),!0)}}];const Xd={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ZT extends hm{constructor(r){super(r,Xd)}static setup(){return window.addEventListener(Xd.move.name,r,{capture:!1,passive:!1}),function(){window.removeEventListener(Xd.move.name,r)};function r(){}}}ZT.activators=[{eventName:"onTouchStart",handler:(t,r)=>{let{nativeEvent:l}=t,{onActivation:a}=r;const{touches:s}=l;return s.length>1?!1:(a==null||a({event:l}),!0)}}];var fo;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(fo||(fo={}));var Du;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Du||(Du={}));function GT(t){let{acceleration:r,activator:l=fo.Pointer,canScroll:a,draggingRect:s,enabled:u,interval:c=5,order:d=Du.TreeOrder,pointerCoordinates:g,scrollableAncestors:h,scrollableAncestorRects:v,delta:p,threshold:b}=t;const y=QT({delta:p,disabled:!u}),[w,T]=iT(),A=C.useRef({x:0,y:0}),E=C.useRef({x:0,y:0}),_=C.useMemo(()=>{switch(l){case fo.Pointer:return g?{top:g.y,bottom:g.y,left:g.x,right:g.x}:null;case fo.DraggableRect:return s}},[l,s,g]),R=C.useRef(null),N=C.useCallback(()=>{const k=R.current;if(!k)return;const H=A.current.x*E.current.x,I=A.current.y*E.current.y;k.scrollBy(H,I)},[]),z=C.useMemo(()=>d===Du.TreeOrder?[...h].reverse():h,[d,h]);C.useEffect(()=>{if(!u||!h.length||!_){T();return}for(const k of z){if((a==null?void 0:a(k))===!1)continue;const H=h.indexOf(k),I=v[H];if(!I)continue;const{direction:j,speed:Q}=zT(k,I,_,r,b);for(const Z of["x","y"])y[Z][j[Z]]||(Q[Z]=0,j[Z]=0);if(Q.x>0||Q.y>0){T(),R.current=k,w(N,c),A.current=Q,E.current=j;return}}A.current={x:0,y:0},E.current={x:0,y:0},T()},[r,N,a,T,u,c,JSON.stringify(_),JSON.stringify(y),w,h,z,v,JSON.stringify(b)])}const FT={x:{[Xt.Backward]:!1,[Xt.Forward]:!1},y:{[Xt.Backward]:!1,[Xt.Forward]:!1}};function QT(t){let{delta:r,disabled:l}=t;const a=Eu(r);return Ro(s=>{if(l||!a||!s)return FT;const u={x:Math.sign(r.x-a.x),y:Math.sign(r.y-a.y)};return{x:{[Xt.Backward]:s.x[Xt.Backward]||u.x===-1,[Xt.Forward]:s.x[Xt.Forward]||u.x===1},y:{[Xt.Backward]:s.y[Xt.Backward]||u.y===-1,[Xt.Forward]:s.y[Xt.Forward]||u.y===1}}},[l,r,a])}function KT(t,r){const l=r!=null?t.get(r):void 0,a=l?l.node.current:null;return Ro(s=>{var u;return r==null?null:(u=a??s)!=null?u:null},[a,r])}function $T(t,r){return C.useMemo(()=>t.reduce((l,a)=>{const{sensor:s}=a,u=s.activators.map(c=>({eventName:c.eventName,handler:r(c.handler,a)}));return[...l,...u]},[]),[t,r])}var So;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(So||(So={}));var Dh;(function(t){t.Optimized="optimized"})(Dh||(Dh={}));const Gv=new Map;function JT(t,r){let{dragging:l,dependencies:a,config:s}=r;const[u,c]=C.useState(null),{frequency:d,measure:g,strategy:h}=s,v=C.useRef(t),p=A(),b=bo(p),y=C.useCallback(function(E){E===void 0&&(E=[]),!b.current&&c(_=>_===null?E:_.concat(E.filter(R=>!_.includes(R))))},[b]),w=C.useRef(null),T=Ro(E=>{if(p&&!l)return Gv;if(!E||E===Gv||v.current!==t||u!=null){const _=new Map;for(let R of t){if(!R)continue;if(u&&u.length>0&&!u.includes(R.id)&&R.rect.current){_.set(R.id,R.rect.current);continue}const N=R.node.current,z=N?new fm(g(N),N):null;R.rect.current=z,z&&_.set(R.id,z)}return _}return E},[t,u,l,p,g]);return C.useEffect(()=>{v.current=t},[t]),C.useEffect(()=>{p||y()},[l,p]),C.useEffect(()=>{u&&u.length>0&&c(null)},[JSON.stringify(u)]),C.useEffect(()=>{p||typeof d!="number"||w.current!==null||(w.current=setTimeout(()=>{y(),w.current=null},d))},[d,p,y,...a]),{droppableRects:T,measureDroppableContainers:y,measuringScheduled:u!=null};function A(){switch(h){case So.Always:return!1;case So.BeforeDragging:return l;default:return!l}}}function pm(t,r){return Ro(l=>t?l||(typeof r=="function"?r(t):t):null,[r,t])}function WT(t,r){return pm(t,r)}function eA(t){let{callback:r,disabled:l}=t;const a=Gu(r),s=C.useMemo(()=>{if(l||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:u}=window;return new u(a)},[a,l]);return C.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function Ku(t){let{callback:r,disabled:l}=t;const a=Gu(r),s=C.useMemo(()=>{if(l||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:u}=window;return new u(a)},[l]);return C.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function tA(t){return new fm(sa(t),t)}function Fv(t,r,l){r===void 0&&(r=tA);const[a,s]=C.useState(null);function u(){s(g=>{if(!t)return null;if(t.isConnected===!1){var h;return(h=g??l)!=null?h:null}const v=r(t);return JSON.stringify(g)===JSON.stringify(v)?g:v})}const c=eA({callback(g){if(t)for(const h of g){const{type:v,target:p}=h;if(v==="childList"&&p instanceof HTMLElement&&p.contains(t)){u();break}}}}),d=Ku({callback:u});return ir(()=>{u(),t?(d==null||d.observe(t),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(d==null||d.disconnect(),c==null||c.disconnect())},[t]),a}function nA(t){const r=pm(t);return Ox(t,r)}const Qv=[];function rA(t){const r=C.useRef(t),l=Ro(a=>t?a&&a!==Qv&&t&&r.current&&t.parentNode===r.current.parentNode?a:Qu(t):Qv,[t]);return C.useEffect(()=>{r.current=t},[t]),l}function lA(t){const[r,l]=C.useState(null),a=C.useRef(t),s=C.useCallback(u=>{const c=Yd(u.target);c&&l(d=>d?(d.set(c,Th(c)),new Map(d)):null)},[]);return C.useEffect(()=>{const u=a.current;if(t!==u){c(u);const d=t.map(g=>{const h=Yd(g);return h?(h.addEventListener("scroll",s,{passive:!0}),[h,Th(h)]):null}).filter(g=>g!=null);l(d.length?new Map(d):null),a.current=t}return()=>{c(t),c(u)};function c(d){d.forEach(g=>{const h=Yd(g);h==null||h.removeEventListener("scroll",s)})}},[s,t]),C.useMemo(()=>t.length?r?Array.from(r.values()).reduce((u,c)=>Ji(u,c),ar):Lx(t):ar,[t,r])}function Kv(t,r){r===void 0&&(r=[]);const l=C.useRef(null);return C.useEffect(()=>{l.current=null},r),C.useEffect(()=>{const a=t!==ar;a&&!l.current&&(l.current=t),!a&&l.current&&(l.current=null)},[t]),l.current?xo(t,l.current):ar}function iA(t){C.useEffect(()=>{if(!Zu)return;const r=t.map(l=>{let{sensor:a}=l;return a.setup==null?void 0:a.setup()});return()=>{for(const l of r)l==null||l()}},t.map(r=>{let{sensor:l}=r;return l}))}function aA(t,r){return C.useMemo(()=>t.reduce((l,a)=>{let{eventName:s,handler:u}=a;return l[s]=c=>{u(c,r)},l},{}),[t,r])}function Ux(t){return C.useMemo(()=>t?kT(t):null,[t])}const $v=[];function oA(t,r){r===void 0&&(r=sa);const[l]=t,a=Ux(l?fn(l):null),[s,u]=C.useState($v);function c(){u(()=>t.length?t.map(g=>jx(g)?a:new fm(r(g),g)):$v)}const d=Ku({callback:c});return ir(()=>{d==null||d.disconnect(),c(),t.forEach(g=>d==null?void 0:d.observe(g))},[t]),s}function Ix(t){if(!t)return null;if(t.children.length>1)return t;const r=t.children[0];return Oo(r)?r:t}function sA(t){let{measure:r}=t;const[l,a]=C.useState(null),s=C.useCallback(h=>{for(const{target:v}of h)if(Oo(v)){a(p=>{const b=r(v);return p?{...p,width:b.width,height:b.height}:b});break}},[r]),u=Ku({callback:s}),c=C.useCallback(h=>{const v=Ix(h);u==null||u.disconnect(),v&&(u==null||u.observe(v)),a(v?r(v):null)},[r,u]),[d,g]=wu(c);return C.useMemo(()=>({nodeRef:d,rect:l,setRef:g}),[l,d,g])}const uA=[{sensor:mm,options:{}},{sensor:dm,options:{}}],cA={current:{}},uu={draggable:{measure:Yv},droppable:{measure:Yv,strategy:So.WhileDragging,frequency:Dh.Optimized},dragOverlay:{measure:sa}};class ho extends Map{get(r){var l;return r!=null&&(l=super.get(r))!=null?l:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(r=>{let{disabled:l}=r;return!l})}getNodeFor(r){var l,a;return(l=(a=this.get(r))==null?void 0:a.node.current)!=null?l:void 0}}const fA={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ho,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Au},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:uu,measureDroppableContainers:Au,windowRect:null,measuringScheduled:!1},Vx={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Au,draggableNodes:new Map,over:null,measureDroppableContainers:Au},Mo=C.createContext(Vx),qx=C.createContext(fA);function dA(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ho}}}function hA(t,r){switch(r.type){case Vt.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:r.initialCoordinates,active:r.active}};case Vt.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:r.coordinates.x-t.draggable.initialCoordinates.x,y:r.coordinates.y-t.draggable.initialCoordinates.y}}};case Vt.DragEnd:case Vt.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Vt.RegisterDroppable:{const{element:l}=r,{id:a}=l,s=new ho(t.droppable.containers);return s.set(a,l),{...t,droppable:{...t.droppable,containers:s}}}case Vt.SetDroppableDisabled:{const{id:l,key:a,disabled:s}=r,u=t.droppable.containers.get(l);if(!u||a!==u.key)return t;const c=new ho(t.droppable.containers);return c.set(l,{...u,disabled:s}),{...t,droppable:{...t.droppable,containers:c}}}case Vt.UnregisterDroppable:{const{id:l,key:a}=r,s=t.droppable.containers.get(l);if(!s||a!==s.key)return t;const u=new ho(t.droppable.containers);return u.delete(l),{...t,droppable:{...t.droppable,containers:u}}}default:return t}}function mA(t){let{disabled:r}=t;const{active:l,activatorEvent:a,draggableNodes:s}=C.useContext(Mo),u=Eu(a),c=Eu(l==null?void 0:l.id);return C.useEffect(()=>{if(!r&&!a&&u&&c!=null){if(!Fu(u)||document.activeElement===u.target)return;const d=s.get(c);if(!d)return;const{activatorNode:g,node:h}=d;if(!g.current&&!h.current)return;requestAnimationFrame(()=>{for(const v of[g.current,h.current]){if(!v)continue;const p=sT(v);if(p){p.focus();break}}})}},[a,r,s,c,u]),null}function Yx(t,r){let{transform:l,...a}=r;return t!=null&&t.length?t.reduce((s,u)=>u({transform:s,...a}),l):l}function pA(t){return C.useMemo(()=>({draggable:{...uu.draggable,...t==null?void 0:t.draggable},droppable:{...uu.droppable,...t==null?void 0:t.droppable},dragOverlay:{...uu.dragOverlay,...t==null?void 0:t.dragOverlay}}),[t==null?void 0:t.draggable,t==null?void 0:t.droppable,t==null?void 0:t.dragOverlay])}function gA(t){let{activeNode:r,measure:l,initialRect:a,config:s=!0}=t;const u=C.useRef(!1),{x:c,y:d}=typeof s=="boolean"?{x:s,y:s}:s;ir(()=>{if(!c&&!d||!r){u.current=!1;return}if(u.current||!a)return;const h=r==null?void 0:r.node.current;if(!h||h.isConnected===!1)return;const v=l(h),p=Ox(v,a);if(c||(p.x=0),d||(p.y=0),u.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const b=kx(h);b&&b.scrollBy({top:p.y,left:p.x})}},[r,c,d,a,l])}const $u=C.createContext({...ar,scaleX:1,scaleY:1});var Cl;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Cl||(Cl={}));const vA=C.memo(function(r){var l,a,s,u;let{id:c,accessibility:d,autoScroll:g=!0,children:h,sensors:v=uA,collisionDetection:p=wT,measuring:b,modifiers:y,...w}=r;const T=C.useReducer(hA,void 0,dA),[A,E]=T,[_,R]=mT(),[N,z]=C.useState(Cl.Uninitialized),k=N===Cl.Initialized,{draggable:{active:H,nodes:I,translate:j},droppable:{containers:Q}}=A,Z=H!=null?I.get(H):null,K=C.useRef({initial:null,translated:null}),oe=C.useMemo(()=>{var gt;return H!=null?{id:H,data:(gt=Z==null?void 0:Z.data)!=null?gt:cA,rect:K}:null},[H,Z]),te=C.useRef(null),[W,U]=C.useState(null),[G,le]=C.useState(null),ce=bo(w,Object.values(w)),M=ko("DndDescribedBy",c),L=C.useMemo(()=>Q.getEnabled(),[Q]),Y=pA(b),{droppableRects:O,measureDroppableContainers:ne,measuringScheduled:de}=JT(L,{dragging:k,dependencies:[j.x,j.y],config:Y.droppable}),se=KT(I,H),ve=C.useMemo(()=>G?Tu(G):null,[G]),me=on(),he=WT(se,Y.draggable.measure);gA({activeNode:H!=null?I.get(H):null,config:me.layoutShiftCompensation,initialRect:he,measure:Y.draggable.measure});const ge=Fv(se,Y.draggable.measure,he),Te=Fv(se?se.parentElement:null),we=C.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:O,draggableNodes:I,draggingNode:null,draggingNodeRect:null,droppableContainers:Q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),De=Q.getNodeFor((l=we.current.over)==null?void 0:l.id),Ve=sA({measure:Y.dragOverlay.measure}),at=(a=Ve.nodeRef.current)!=null?a:se,mt=k?(s=Ve.rect)!=null?s:ge:null,Rt=!!(Ve.nodeRef.current&&Ve.rect),tn=nA(Rt?null:ge),wt=Ux(at?fn(at):null),Ut=rA(k?De??se:null),dn=oA(Ut),Fe=Yx(y,{transform:{x:j.x-tn.x,y:j.y-tn.y,scaleX:1,scaleY:1},activatorEvent:G,active:oe,activeNodeRect:ge,containerNodeRect:Te,draggingNodeRect:mt,over:we.current.over,overlayNodeRect:Ve.rect,scrollableAncestors:Ut,scrollableAncestorRects:dn,windowRect:wt}),Er=ve?Ji(ve,j):null,ut=lA(Ut),kl=Kv(ut),ee=Kv(ut,[ge]),ue=Ji(Fe,kl),xe=mt?NT(mt,Fe):null,Ne=oe&&xe?p({active:oe,collisionRect:xe,droppableRects:O,droppableContainers:L,pointerCoordinates:Er}):null,_e=Nx(Ne,"id"),[Qe,an]=C.useState(null),pt=Rt?Fe:Ji(Fe,ee),yt=AT(pt,(u=Qe==null?void 0:Qe.rect)!=null?u:null,ge),kt=C.useRef(null),qe=C.useCallback((gt,bt)=>{let{sensor:Dt,options:Ft}=bt;if(te.current==null)return;const be=I.get(te.current);if(!be)return;const He=gt.nativeEvent,Xe=new Dt({active:te.current,activeNode:be,event:He,options:Ft,context:we,onAbort(ft){if(!I.get(ft))return;const{onDragAbort:ot}=ce.current,xt={id:ft};ot==null||ot(xt),_({type:"onDragAbort",event:xt})},onPending(ft,Ke,ot,xt){if(!I.get(ft))return;const{onDragPending:Mt}=ce.current,sn={id:ft,constraint:Ke,initialCoordinates:ot,offset:xt};Mt==null||Mt(sn),_({type:"onDragPending",event:sn})},onStart(ft){const Ke=te.current;if(Ke==null)return;const ot=I.get(Ke);if(!ot)return;const{onDragStart:xt}=ce.current,An={activatorEvent:He,active:{id:Ke,data:ot.data,rect:K}};lr.unstable_batchedUpdates(()=>{xt==null||xt(An),z(Cl.Initializing),E({type:Vt.DragStart,initialCoordinates:ft,active:Ke}),_({type:"onDragStart",event:An}),U(kt.current),le(He)})},onMove(ft){E({type:Vt.DragMove,coordinates:ft})},onEnd:rt(Vt.DragEnd),onCancel:rt(Vt.DragCancel)});kt.current=Xe;function rt(ft){return async function(){const{active:ot,collisions:xt,over:An,scrollAdjustedTranslate:Mt}=we.current;let sn=null;if(ot&&Mt){const{cancelDrop:Qr}=ce.current;sn={activatorEvent:He,active:ot,collisions:xt,delta:Mt,over:An},ft===Vt.DragEnd&&typeof Qr=="function"&&await Promise.resolve(Qr(sn))&&(ft=Vt.DragCancel)}te.current=null,lr.unstable_batchedUpdates(()=>{E({type:ft}),z(Cl.Uninitialized),an(null),U(null),le(null),kt.current=null;const Qr=ft===Vt.DragEnd?"onDragEnd":"onDragCancel";if(sn){const Hn=ce.current[Qr];Hn==null||Hn(sn),_({type:Qr,event:sn})}})}}},[I]),Tn=C.useCallback((gt,bt)=>(Dt,Ft)=>{const be=Dt.nativeEvent,He=I.get(Ft);if(te.current!==null||!He||be.dndKit||be.defaultPrevented)return;const Xe={active:He};gt(Dt,bt.options,Xe)===!0&&(be.dndKit={capturedBy:bt.sensor},te.current=Ft,qe(Dt,bt))},[I,qe]),ct=$T(v,Tn);iA(v),ir(()=>{ge&&N===Cl.Initializing&&z(Cl.Initialized)},[ge,N]),C.useEffect(()=>{const{onDragMove:gt}=ce.current,{active:bt,activatorEvent:Dt,collisions:Ft,over:be}=we.current;if(!bt||!Dt)return;const He={active:bt,activatorEvent:Dt,collisions:Ft,delta:{x:ue.x,y:ue.y},over:be};lr.unstable_batchedUpdates(()=>{gt==null||gt(He),_({type:"onDragMove",event:He})})},[ue.x,ue.y]),C.useEffect(()=>{const{active:gt,activatorEvent:bt,collisions:Dt,droppableContainers:Ft,scrollAdjustedTranslate:be}=we.current;if(!gt||te.current==null||!bt||!be)return;const{onDragOver:He}=ce.current,Xe=Ft.get(_e),rt=Xe&&Xe.rect.current?{id:Xe.id,rect:Xe.rect.current,data:Xe.data,disabled:Xe.disabled}:null,ft={active:gt,activatorEvent:bt,collisions:Dt,delta:{x:be.x,y:be.y},over:rt};lr.unstable_batchedUpdates(()=>{an(rt),He==null||He(ft),_({type:"onDragOver",event:ft})})},[_e]),ir(()=>{we.current={activatorEvent:G,active:oe,activeNode:se,collisionRect:xe,collisions:Ne,droppableRects:O,draggableNodes:I,draggingNode:at,draggingNodeRect:mt,droppableContainers:Q,over:Qe,scrollableAncestors:Ut,scrollAdjustedTranslate:ue},K.current={initial:mt,translated:xe}},[oe,se,Ne,xe,I,at,mt,O,Q,Qe,Ut,ue]),GT({...me,delta:j,draggingRect:xe,pointerCoordinates:Er,scrollableAncestors:Ut,scrollableAncestorRects:dn});const ua=C.useMemo(()=>({active:oe,activeNode:se,activeNodeRect:ge,activatorEvent:G,collisions:Ne,containerNodeRect:Te,dragOverlay:Ve,draggableNodes:I,droppableContainers:Q,droppableRects:O,over:Qe,measureDroppableContainers:ne,scrollableAncestors:Ut,scrollableAncestorRects:dn,measuringConfiguration:Y,measuringScheduled:de,windowRect:wt}),[oe,se,ge,G,Ne,Te,Ve,I,Q,O,Qe,ne,Ut,dn,Y,de,wt]),ur=C.useMemo(()=>({activatorEvent:G,activators:ct,active:oe,activeNodeRect:ge,ariaDescribedById:{draggable:M},dispatch:E,draggableNodes:I,over:Qe,measureDroppableContainers:ne}),[G,ct,oe,ge,E,M,I,Qe,ne]);return ie.createElement(Tx.Provider,{value:R},ie.createElement(Mo.Provider,{value:ur},ie.createElement(qx.Provider,{value:ua},ie.createElement($u.Provider,{value:yt},h)),ie.createElement(mA,{disabled:(d==null?void 0:d.restoreFocus)===!1})),ie.createElement(vT,{...d,hiddenTextDescribedById:M}));function on(){const gt=(W==null?void 0:W.autoScrollEnabled)===!1,bt=typeof g=="object"?g.enabled===!1:g===!1,Dt=k&&!gt&&!bt;return typeof g=="object"?{...g,enabled:Dt}:{enabled:Dt}}}),yA=C.createContext(null),Jv="button",bA="Draggable";function xA(t){let{id:r,data:l,disabled:a=!1,attributes:s}=t;const u=ko(bA),{activators:c,activatorEvent:d,active:g,activeNodeRect:h,ariaDescribedById:v,draggableNodes:p,over:b}=C.useContext(Mo),{role:y=Jv,roleDescription:w="draggable",tabIndex:T=0}=s??{},A=(g==null?void 0:g.id)===r,E=C.useContext(A?$u:yA),[_,R]=wu(),[N,z]=wu(),k=aA(c,r),H=bo(l);ir(()=>(p.set(r,{id:r,key:u,node:_,activatorNode:N,data:H}),()=>{const j=p.get(r);j&&j.key===u&&p.delete(r)}),[p,r]);const I=C.useMemo(()=>({role:y,tabIndex:T,"aria-disabled":a,"aria-pressed":A&&y===Jv?!0:void 0,"aria-roledescription":w,"aria-describedby":v.draggable}),[a,y,T,A,w,v.draggable]);return{active:g,activatorEvent:d,activeNodeRect:h,attributes:I,isDragging:A,listeners:a?void 0:k,node:_,over:b,setNodeRef:R,setActivatorNodeRef:z,transform:E}}function Px(){return C.useContext(qx)}const SA="Droppable",CA={timeout:25};function Xx(t){let{data:r,disabled:l=!1,id:a,resizeObserverConfig:s}=t;const u=ko(SA),{active:c,dispatch:d,over:g,measureDroppableContainers:h}=C.useContext(Mo),v=C.useRef({disabled:l}),p=C.useRef(!1),b=C.useRef(null),y=C.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:A}={...CA,...s},E=bo(T??a),_=C.useCallback(()=>{if(!p.current){p.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{h(Array.isArray(E.current)?E.current:[E.current]),y.current=null},A)},[A]),R=Ku({callback:_,disabled:w||!c}),N=C.useCallback((I,j)=>{R&&(j&&(R.unobserve(j),p.current=!1),I&&R.observe(I))},[R]),[z,k]=wu(N),H=bo(r);return C.useEffect(()=>{!R||!z.current||(R.disconnect(),p.current=!1,R.observe(z.current))},[z,R]),C.useEffect(()=>(d({type:Vt.RegisterDroppable,element:{id:a,key:u,disabled:l,node:z,rect:b,data:H}}),()=>d({type:Vt.UnregisterDroppable,key:u,id:a})),[a]),C.useEffect(()=>{l!==v.current.disabled&&(d({type:Vt.SetDroppableDisabled,id:a,key:u,disabled:l}),v.current.disabled=l)},[a,u,l,d]),{active:c,rect:b,isOver:(g==null?void 0:g.id)===a,node:z,over:g,setNodeRef:k}}function wA(t){let{animation:r,children:l}=t;const[a,s]=C.useState(null),[u,c]=C.useState(null),d=Eu(l);return!l&&!a&&d&&s(d),ir(()=>{if(!u)return;const g=a==null?void 0:a.key,h=a==null?void 0:a.props.id;if(g==null||h==null){s(null);return}Promise.resolve(r(h,u)).then(()=>{s(null)})},[r,a,u]),ie.createElement(ie.Fragment,null,l,a?C.cloneElement(a,{ref:c}):null)}const EA={x:0,y:0,scaleX:1,scaleY:1};function TA(t){let{children:r}=t;return ie.createElement(Mo.Provider,{value:Vx},ie.createElement($u.Provider,{value:EA},r))}const AA={position:"fixed",touchAction:"none"},DA=t=>Fu(t)?"transform 250ms ease":void 0,NA=C.forwardRef((t,r)=>{let{as:l,activatorEvent:a,adjustScale:s,children:u,className:c,rect:d,style:g,transform:h,transition:v=DA}=t;if(!d)return null;const p=s?h:{...h,scaleX:1,scaleY:1},b={...AA,width:d.width,height:d.height,top:d.top,left:d.left,transform:Dl.Transform.toString(p),transformOrigin:s&&a?bT(a,d):void 0,transition:typeof v=="function"?v(a):v,...g};return ie.createElement(l,{className:c,style:b,ref:r},u)}),OA=t=>r=>{let{active:l,dragOverlay:a}=r;const s={},{styles:u,className:c}=t;if(u!=null&&u.active)for(const[d,g]of Object.entries(u.active))g!==void 0&&(s[d]=l.node.style.getPropertyValue(d),l.node.style.setProperty(d,g));if(u!=null&&u.dragOverlay)for(const[d,g]of Object.entries(u.dragOverlay))g!==void 0&&a.node.style.setProperty(d,g);return c!=null&&c.active&&l.node.classList.add(c.active),c!=null&&c.dragOverlay&&a.node.classList.add(c.dragOverlay),function(){for(const[g,h]of Object.entries(s))l.node.style.setProperty(g,h);c!=null&&c.active&&l.node.classList.remove(c.active)}},RA=t=>{let{transform:{initial:r,final:l}}=t;return[{transform:Dl.Transform.toString(r)},{transform:Dl.Transform.toString(l)}]},kA={duration:250,easing:"ease",keyframes:RA,sideEffects:OA({styles:{active:{opacity:"0"}}})};function MA(t){let{config:r,draggableNodes:l,droppableContainers:a,measuringConfiguration:s}=t;return Gu((u,c)=>{if(r===null)return;const d=l.get(u);if(!d)return;const g=d.node.current;if(!g)return;const h=Ix(c);if(!h)return;const{transform:v}=fn(c).getComputedStyle(c),p=Rx(v);if(!p)return;const b=typeof r=="function"?r:_A(r);return Bx(g,s.draggable.measure),b({active:{id:u,data:d.data,node:g,rect:s.draggable.measure(g)},draggableNodes:l,dragOverlay:{node:c,rect:s.dragOverlay.measure(h)},droppableContainers:a,measuringConfiguration:s,transform:p})})}function _A(t){const{duration:r,easing:l,sideEffects:a,keyframes:s}={...kA,...t};return u=>{let{active:c,dragOverlay:d,transform:g,...h}=u;if(!r)return;const v={x:d.rect.left-c.rect.left,y:d.rect.top-c.rect.top},p={scaleX:g.scaleX!==1?c.rect.width*g.scaleX/d.rect.width:1,scaleY:g.scaleY!==1?c.rect.height*g.scaleY/d.rect.height:1},b={x:g.x-v.x,y:g.y-v.y,...p},y=s({...h,active:c,dragOverlay:d,transform:{initial:g,final:b}}),[w]=y,T=y[y.length-1];if(JSON.stringify(w)===JSON.stringify(T))return;const A=a==null?void 0:a({active:c,dragOverlay:d,...h}),E=d.node.animate(y,{duration:r,easing:l,fill:"forwards"});return new Promise(_=>{E.onfinish=()=>{A==null||A(),_()}})}}let Wv=0;function jA(t){return C.useMemo(()=>{if(t!=null)return Wv++,Wv},[t])}const zA=ie.memo(t=>{let{adjustScale:r=!1,children:l,dropAnimation:a,style:s,transition:u,modifiers:c,wrapperElement:d="div",className:g,zIndex:h=999}=t;const{activatorEvent:v,active:p,activeNodeRect:b,containerNodeRect:y,draggableNodes:w,droppableContainers:T,dragOverlay:A,over:E,measuringConfiguration:_,scrollableAncestors:R,scrollableAncestorRects:N,windowRect:z}=Px(),k=C.useContext($u),H=jA(p==null?void 0:p.id),I=Yx(c,{activatorEvent:v,active:p,activeNodeRect:b,containerNodeRect:y,draggingNodeRect:A.rect,over:E,overlayNodeRect:A.rect,scrollableAncestors:R,scrollableAncestorRects:N,transform:k,windowRect:z}),j=pm(b),Q=MA({config:a,draggableNodes:w,droppableContainers:T,measuringConfiguration:_}),Z=j?A.setRef:void 0;return ie.createElement(TA,null,ie.createElement(wA,{animation:Q},p&&H?ie.createElement(NA,{key:H,id:p.id,ref:Z,as:d,activatorEvent:v,adjustScale:r,className:g,transition:u,rect:j,style:{zIndex:h,...s},transform:I},l):null))});function Zx(t,r,l){const a=t.slice();return a.splice(l<0?a.length+l:l,0,a.splice(r,1)[0]),a}function LA(t,r){return t.reduce((l,a,s)=>{const u=r.get(a);return u&&(l[s]=u),l},Array(t.length))}function ru(t){return t!==null&&t>=0}function BA(t,r){if(t===r)return!0;if(t.length!==r.length)return!1;for(let l=0;l<t.length;l++)if(t[l]!==r[l])return!1;return!0}function HA(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const Gx=t=>{let{rects:r,activeIndex:l,overIndex:a,index:s}=t;const u=Zx(r,a,l),c=r[s],d=u[s];return!d||!c?null:{x:d.left-c.left,y:d.top-c.top,scaleX:d.width/c.width,scaleY:d.height/c.height}},Fx="Sortable",Qx=ie.createContext({activeIndex:-1,containerId:Fx,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Gx,disabled:{draggable:!1,droppable:!1}});function UA(t){let{children:r,id:l,items:a,strategy:s=Gx,disabled:u=!1}=t;const{active:c,dragOverlay:d,droppableRects:g,over:h,measureDroppableContainers:v}=Px(),p=ko(Fx,l),b=d.rect!==null,y=C.useMemo(()=>a.map(k=>typeof k=="object"&&"id"in k?k.id:k),[a]),w=c!=null,T=c?y.indexOf(c.id):-1,A=h?y.indexOf(h.id):-1,E=C.useRef(y),_=!BA(y,E.current),R=A!==-1&&T===-1||_,N=HA(u);ir(()=>{_&&w&&v(y)},[_,y,w,v]),C.useEffect(()=>{E.current=y},[y]);const z=C.useMemo(()=>({activeIndex:T,containerId:p,disabled:N,disableTransforms:R,items:y,overIndex:A,useDragOverlay:b,sortedRects:LA(y,g),strategy:s}),[T,p,N.draggable,N.droppable,R,y,A,g,b,s]);return ie.createElement(Qx.Provider,{value:z},r)}const IA=t=>{let{id:r,items:l,activeIndex:a,overIndex:s}=t;return Zx(l,a,s).indexOf(r)},VA=t=>{let{containerId:r,isSorting:l,wasDragging:a,index:s,items:u,newIndex:c,previousItems:d,previousContainerId:g,transition:h}=t;return!h||!a||d!==u&&s===c?!1:l?!0:c!==s&&r===g},qA={duration:200,easing:"ease"},Kx="transform",YA=Dl.Transition.toString({property:Kx,duration:0,easing:"linear"}),PA={roleDescription:"sortable"};function XA(t){let{disabled:r,index:l,node:a,rect:s}=t;const[u,c]=C.useState(null),d=C.useRef(l);return ir(()=>{if(!r&&l!==d.current&&a.current){const g=s.current;if(g){const h=sa(a.current,{ignoreTransform:!0}),v={x:g.left-h.left,y:g.top-h.top,scaleX:g.width/h.width,scaleY:g.height/h.height};(v.x||v.y)&&c(v)}}l!==d.current&&(d.current=l)},[r,l,a,s]),C.useEffect(()=>{u&&c(null)},[u]),u}function ZA(t){let{animateLayoutChanges:r=VA,attributes:l,disabled:a,data:s,getNewIndex:u=IA,id:c,strategy:d,resizeObserverConfig:g,transition:h=qA}=t;const{items:v,containerId:p,activeIndex:b,disabled:y,disableTransforms:w,sortedRects:T,overIndex:A,useDragOverlay:E,strategy:_}=C.useContext(Qx),R=GA(a,y),N=v.indexOf(c),z=C.useMemo(()=>({sortable:{containerId:p,index:N,items:v},...s}),[p,s,N,v]),k=C.useMemo(()=>v.slice(v.indexOf(c)),[v,c]),{rect:H,node:I,isOver:j,setNodeRef:Q}=Xx({id:c,data:z,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:k,...g}}),{active:Z,activatorEvent:K,activeNodeRect:oe,attributes:te,setNodeRef:W,listeners:U,isDragging:G,over:le,setActivatorNodeRef:ce,transform:M}=xA({id:c,data:z,attributes:{...PA,...l},disabled:R.draggable}),L=lT(Q,W),Y=!!Z,O=Y&&!w&&ru(b)&&ru(A),ne=!E&&G,de=ne&&O?M:null,ve=O?de??(d??_)({rects:T,activeNodeRect:oe,activeIndex:b,overIndex:A,index:N}):null,me=ru(b)&&ru(A)?u({id:c,items:v,activeIndex:b,overIndex:A}):N,he=Z==null?void 0:Z.id,ge=C.useRef({activeId:he,items:v,newIndex:me,containerId:p}),Te=v!==ge.current.items,we=r({active:Z,containerId:p,isDragging:G,isSorting:Y,id:c,index:N,items:v,newIndex:ge.current.newIndex,previousItems:ge.current.items,previousContainerId:ge.current.containerId,transition:h,wasDragging:ge.current.activeId!=null}),De=XA({disabled:!we,index:N,node:I,rect:H});return C.useEffect(()=>{Y&&ge.current.newIndex!==me&&(ge.current.newIndex=me),p!==ge.current.containerId&&(ge.current.containerId=p),v!==ge.current.items&&(ge.current.items=v)},[Y,me,p,v]),C.useEffect(()=>{if(he===ge.current.activeId)return;if(he&&!ge.current.activeId){ge.current.activeId=he;return}const at=setTimeout(()=>{ge.current.activeId=he},50);return()=>clearTimeout(at)},[he]),{active:Z,activeIndex:b,attributes:te,data:z,rect:H,index:N,newIndex:me,items:v,isOver:j,isSorting:Y,isDragging:G,listeners:U,node:I,overIndex:A,over:le,setNodeRef:L,setActivatorNodeRef:ce,setDroppableNodeRef:Q,setDraggableNodeRef:W,transform:De??ve,transition:Ve()};function Ve(){if(De||Te&&ge.current.newIndex===N)return YA;if(!(ne&&!Fu(K)||!h)&&(Y||we))return Dl.Transition.toString({...h,property:Kx})}}function GA(t,r){var l,a;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(l=t==null?void 0:t.draggable)!=null?l:r.draggable,droppable:(a=t==null?void 0:t.droppable)!=null?a:r.droppable}}function Nu(t){if(!t)return!1;const r=t.data.current;return!!(r&&"sortable"in r&&typeof r.sortable=="object"&&"containerId"in r.sortable&&"items"in r.sortable&&"index"in r.sortable)}const FA=[Ie.Down,Ie.Right,Ie.Up,Ie.Left],QA=(t,r)=>{let{context:{active:l,collisionRect:a,droppableRects:s,droppableContainers:u,over:c,scrollableAncestors:d}}=r;if(FA.includes(t.code)){if(t.preventDefault(),!l||!a)return;const g=[];u.getEnabled().forEach(p=>{if(!p||p!=null&&p.disabled)return;const b=s.get(p.id);if(b)switch(t.code){case Ie.Down:a.top<b.top&&g.push(p);break;case Ie.Up:a.top>b.top&&g.push(p);break;case Ie.Left:a.left>b.left&&g.push(p);break;case Ie.Right:a.left<b.left&&g.push(p);break}});const h=ST({collisionRect:a,droppableRects:s,droppableContainers:g});let v=Nx(h,"id");if(v===(c==null?void 0:c.id)&&h.length>1&&(v=h[1].id),v!=null){const p=u.get(l.id),b=u.get(v),y=b?s.get(b.id):null,w=b==null?void 0:b.node.current;if(w&&y&&p&&b){const A=Qu(w).some((k,H)=>d[H]!==k),E=$x(p,b),_=KA(p,b),R=A||!E?{x:0,y:0}:{x:_?a.width-y.width:0,y:_?a.height-y.height:0},N={x:y.left,y:y.top};return R.x&&R.y?N:xo(N,R)}}}};function $x(t,r){return!Nu(t)||!Nu(r)?!1:t.data.current.sortable.containerId===r.data.current.sortable.containerId}function KA(t,r){return!Nu(t)||!Nu(r)||!$x(t,r)?!1:t.data.current.sortable.index<r.data.current.sortable.index}function Ju({initialStatus:t,trigger:r}={}){var k,H,I;const l=Ce(j=>j.config),a=Ce(j=>j.createTask),[s,u]=C.useState(!1),[c,d]=C.useState(""),[g,h]=C.useState(""),[v,p]=C.useState(""),[b,y]=C.useState(!1),w=C.useRef(null),A=!!(t&&(l!=null&&l.columns.some(j=>j.id===t)))&&t?t:(l==null?void 0:l.default_column)??((k=l==null?void 0:l.columns.at(0))==null?void 0:k.id)??"",E=g||A,_=()=>{d(""),h(""),p(""),y(!1)},R=j=>{u(j),j||_()},N=j=>{j.preventDefault();const Q=c.trim();if(Q){if(a(Q,{status:E||void 0,priority:v||void 0}),b){d(""),window.requestAnimationFrame(()=>{var Z;return(Z=w.current)==null?void 0:Z.focus()});return}u(!1),_()}},z=j=>{(j.ctrlKey||j.metaKey)&&j.key==="Enter"&&(j.preventDefault(),j.currentTarget.requestSubmit())};return S.jsxs(Ky,{open:s,onOpenChange:R,children:[S.jsx(t6,{asChild:!0,children:r??S.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded bg-sb-accent px-3 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed",type:"button",children:[S.jsx(wo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"New task"]})}),S.jsxs(Wy,{children:[S.jsx(eb,{className:"fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=open]:fade-in"}),S.jsxs(tb,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-md border border-sb-iron bg-sb-surface p-5 outline-none",onOpenAutoFocus:j=>{var Q;j.preventDefault(),(Q=w.current)==null||Q.focus()},children:[S.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3",children:[S.jsxs("div",{children:[S.jsx(rb,{className:"text-base font-semibold text-sb-frosted",children:"New task"}),S.jsx(lb,{className:"mt-1 text-[13px] text-sb-silver",children:"Add a task to the board. You can edit details after creating."})]}),S.jsx(gu,{asChild:!0,children:S.jsx("button",{"aria-label":"Close",className:"rounded p-1 text-sb-silver transition-colors hover:text-sb-frosted",type:"button",children:S.jsx(Ru,{"aria-hidden":"true",className:"h-4 w-4"})})})]}),S.jsxs("form",{className:"grid gap-4",onKeyDown:z,onSubmit:N,children:[S.jsxs("label",{className:"grid gap-1.5",children:[S.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Title"}),S.jsx("input",{ref:w,className:"h-9 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Setup auth",value:c,onChange:j=>d(j.target.value)})]}),S.jsxs("div",{className:"grid gap-1.5",children:[S.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Status"}),S.jsx(Ch,{value:E,ariaLabel:"Status",statusMarker:!0,placeholder:((H=l==null?void 0:l.columns.find(j=>j.id===l.default_column))==null?void 0:H.label)??((I=l==null?void 0:l.columns.at(0))==null?void 0:I.label)??"—",options:(l==null?void 0:l.columns.map(j=>({value:j.id,label:j.label})))??[],onValueChange:h})]}),S.jsxs("div",{className:"grid gap-1.5",children:[S.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:"Priority"}),S.jsx(Ch,{value:v,ariaLabel:"Priority",placeholder:(l==null?void 0:l.priority.default)??"—",options:(l==null?void 0:l.priority.values.map(j=>({value:j,label:j})))??[],onValueChange:p})]}),S.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[S.jsxs("label",{className:"mr-auto inline-flex h-9 items-center gap-2 text-[13px] text-sb-silver",children:[S.jsx("input",{className:"h-4 w-4 accent-sb-silver",type:"checkbox",checked:b,onChange:j=>y(j.target.checked)}),"Add another"]}),S.jsx(gu,{asChild:!0,children:S.jsx("button",{className:"h-9 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",children:"Cancel"})}),S.jsx("button",{className:"h-9 rounded bg-sb-accent px-4 text-[13px] font-semibold text-sb-canvas transition-colors hover:bg-sb-accent-hover active:bg-sb-accent-pressed disabled:cursor-not-allowed disabled:opacity-40",disabled:!c.trim(),type:"submit",children:"Create task"})]})]})]})]})]})}function $A({value:t,values:r}){const l=r.indexOf(t)+1;return l>0&&r.length>=2&&r.length<=5?S.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded border border-sb-iron px-1.5 py-0.5",title:`Priority: ${t}`,children:[S.jsx("span",{className:"flex items-center gap-[1px]","aria-hidden":"true",children:r.map((s,u)=>S.jsx(po,{className:`h-2.5 w-2.5 ${u<l?"text-sb-frosted":"text-sb-iron"}`},s))}),S.jsx("span",{className:"font-mono text-[11px] text-sb-silver",children:t})]}):S.jsx("span",{className:"max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:t})}const JA=[];function gm({task:t,status:r,draggable:l=!1,isPlaceholder:a=!1}){return l?S.jsx(WA,{task:t,status:r,isPlaceholder:a}):S.jsx(Jx,{task:t})}function WA({task:t,status:r,isPlaceholder:l}){const{attributes:a,listeners:s,setNodeRef:u,transform:c,transition:d}=ZA({id:t.slug,data:{status:r}}),g={transform:Dl.Transform.toString(c),transition:d};return S.jsx("div",{ref:u,style:g,...a,...s,children:S.jsx(Jx,{task:t,dimmed:l})})}function Jx({task:t,dimmed:r=!1}){const l=Ce(c=>c.selectTask),a=Ce(c=>c.errorAtBySlug[t.slug]),s=Ce(c=>{var d;return((d=c.config)==null?void 0:d.priority.values)??JA}),u=Ce(c=>{const d=t.frontmatter.depends_on??[];return!d.length||!c.config?0:d.filter(g=>{var v;const h=c.tasks.find(p=>p.slug===g);return!h||h.frontmatter.status!==((v=c.config)==null?void 0:v.done_column)}).length});return S.jsx("article",{className:`rounded-md border border-sb-iron bg-sb-surface p-3 outline-none transition-colors hover:border-sb-silver ${r?"opacity-40":""} ${a?"sb-error-shake":""}`,children:S.jsxs("button",{className:"block w-full text-left",type:"button",onClick:()=>l(t.slug),children:[S.jsx("h3",{className:"line-clamp-2 font-sans text-[14px] font-medium leading-5 text-sb-frosted",children:t.frontmatter.title}),S.jsx("p",{className:"mt-1 truncate font-mono text-[11px] text-sb-silver",children:t.slug}),S.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[t.frontmatter.priority?S.jsx($A,{value:t.frontmatter.priority,values:s}):null,t.frontmatter.assignee?S.jsx(ey,{label:t.frontmatter.assignee}):null,(t.frontmatter.tags??[]).slice(0,3).map(c=>S.jsx(ey,{label:c},c)),u?S.jsxs("span",{className:"inline-flex items-center gap-1 rounded border border-sb-ironlit px-1.5 py-0.5 font-mono text-[11px] text-sb-silver","aria-label":`${u} unfinished ${u===1?"dependency":"dependencies"}`,title:`${u} unfinished ${u===1?"dependency":"dependencies"}`,children:[S.jsx(S4,{"aria-hidden":"true",className:"h-3 w-3"}),u]}):null]})]})},a??"stable")}function ey({label:t}){return S.jsx("span",{className:"max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:t})}function eD(t,r,l){const a=fu(r,t.layout,Jl,l,t.done_column);return[...t.columns.map(s=>({id:s.id,label:s.label,tasks:fu(r,t.layout,s.id,l,t.done_column),isDone:s.id===t.done_column})),...a.length>0?[{id:Jl,label:"Uncategorized",tasks:a,isDone:!1}]:[]]}function tD(t,r,l){const a=t.findIndex(c=>c.slug===r),s=a>=0?t.length-1:t.length,u=l<0||l>s?s:l;return a<0||u<a?u:u+1}const nD=t=>{var h,v,p,b,y;const{droppableContainers:r,droppableRects:l,pointerCoordinates:a}=t,s=TT(t);if(!a||s.length===0)return s;const u=s.find(w=>{var T,A,E,_;return((_=(E=(A=(T=w.data)==null?void 0:T.droppableContainer)==null?void 0:A.data)==null?void 0:E.current)==null?void 0:_.isColumn)!==!0});if(u)return[u];const c=(y=(b=(p=(v=(h=s[0])==null?void 0:h.data)==null?void 0:v.droppableContainer)==null?void 0:p.data)==null?void 0:b.current)==null?void 0:y.status;if(typeof c!="string")return s;const g=r.filter(w=>{var T,A;return((T=w.data.current)==null?void 0:T.isColumn)!==!0&&((A=w.data.current)==null?void 0:A.status)===c}).map(w=>({id:w.id,rect:l.get(w.id)})).filter(w=>w.rect!==void 0).sort((w,T)=>w.rect.top-T.rect.top).find(w=>a.y<=w.rect.top+w.rect.height);return g?[{id:g.id}]:s},rD=()=>null;function lD(){var I;const t=Ce(j=>j.config),r=Ce(j=>j.tasks),l=Ce(j=>j.searchQuery),a=Ce(j=>j.reorderTask),s=Ce(j=>j.readOnly),u=Ce(j=>j.openArchive),c=C.useMemo(()=>o4(r,l),[r,l]),[d,g]=C.useState(null),[h,v]=C.useState(null),[p,b]=C.useState(-1),y=yT(qv(mm,{activationConstraint:{distance:6}}),qv(dm,{coordinateGetter:QA})),w=C.useMemo(()=>new Set((t==null?void 0:t.columns.map(j=>j.id))??[]),[t]),T=C.useMemo(()=>t?eD(t,c,w):[],[t,c,w]),A=d?c.find(j=>j.slug===d)??null:null,E=A?((I=T.find(j=>j.id===A.frontmatter.status))==null?void 0:I.tasks.findIndex(j=>j.slug===A.slug))??-1:-1,_=A!==null&&h===A.frontmatter.status&&p===E,R=()=>{g(null),v(null),b(-1)},N=j=>{const Q=String(j.active.id);g(Q);const Z=c.find(oe=>oe.slug===Q);Z&&w.has(Z.frontmatter.status)?v(Z.frontmatter.status):v(null);const K=T.find(oe=>oe.id===(Z==null?void 0:Z.frontmatter.status));b(K?K.tasks.findIndex(oe=>oe.slug===Q):-1)},z=j=>{var Z,K,oe,te;const Q=cD({overId:j.over?String(j.over.id):null,overStatus:(K=(Z=j.over)==null?void 0:Z.data.current)==null?void 0:K.status,overIsColumn:((te=(oe=j.over)==null?void 0:oe.data.current)==null?void 0:te.isColumn)===!0,activeSlug:d,activeStatus:A==null?void 0:A.frontmatter.status,originIndex:E,columns:T});v((Q==null?void 0:Q.status)??null),b((Q==null?void 0:Q.position)??-1)},k=j=>{var K,oe,te,W;const Q=String(j.active.id),Z=fD({activeSlug:Q,activeStatus:A==null?void 0:A.frontmatter.status,overId:j.over?String(j.over.id):null,overStatus:(oe=(K=j.over)==null?void 0:K.data.current)==null?void 0:oe.status,overIsColumn:((W=(te=j.over)==null?void 0:te.data.current)==null?void 0:W.isColumn)===!0,previewStatus:h,previewPosition:p,columns:T});R(),Z&&a(Q,Z.status,Z.position)};if(!t)return S.jsx(dD,{});const H=d!==null;return l.trim()&&c.length===0?S.jsx("div",{className:"flex min-h-[calc(100vh-var(--sb-header-h)-2.5rem)] items-center justify-center",children:S.jsxs("div",{className:"w-full max-w-md rounded-md border border-dashed border-sb-iron px-5 py-12 text-center",children:[S.jsx(Rh,{"aria-hidden":"true",className:"mx-auto h-5 w-5 text-sb-silver"}),S.jsxs("p",{className:"mt-3 font-mono text-[13px] text-sb-frosted",children:["No live tasks match “",l.trim(),"”."]}),s?null:S.jsxs(S.Fragment,{children:[S.jsx("p",{className:"mt-2 text-[12px] text-sb-silver",children:"Archived tasks aren’t searched."}),S.jsxs("button",{className:"mt-4 inline-flex h-9 items-center gap-2 rounded border border-sb-iron bg-transparent px-3 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:u,children:[S.jsx(Eo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Search archive"]})]})]})}):s?S.jsx("div",{className:"flex min-h-[calc(100vh-var(--sb-header-h)-2.5rem)] gap-4 overflow-x-auto pb-4",children:T.map(j=>{var Q;return S.jsx(iD,{id:j.id,label:j.label,tasks:j.tasks,capMax:j.isDone&&!l.trim()?((Q=t.done_display)==null?void 0:Q.max)??0:0},j.id)})}):S.jsxs(vA,{id:"shipbench-board-dnd",collisionDetection:nD,sensors:y,onDragStart:N,onDragOver:z,onDragCancel:R,onDragEnd:k,children:[S.jsx("div",{className:"flex min-h-[calc(100vh-var(--sb-header-h)-2.5rem)] gap-4 overflow-x-auto pb-4",children:T.map(j=>{var Z;const Q=j.id===Jl;return S.jsx(aD,{id:j.id,label:j.label,tasks:j.tasks,activeSlug:d,indicatorIndex:d&&!_&&!Q&&!j.isDone&&h===j.id?tD(j.tasks,d,p):null,sortable:!Q&&!j.isDone,isActive:!Q&&h===j.id,isDisabledTarget:Q&&H,canCreate:!Q&&!j.isDone,capMax:j.isDone&&!l.trim()?((Z=t.done_display)==null?void 0:Z.max)??0:0},j.id)})}),S.jsx(zA,{dropAnimation:null,children:A?S.jsx(gm,{task:A,status:A.frontmatter.status}):null})]})}function iD({id:t,label:r,tasks:l,capMax:a}){const[s,u]=C.useState(!1),c=a>0?a:1/0,g=Number.isFinite(c)&&!s&&l.length>c?l.slice(0,c):l,h=l.length-g.length,v=l.length>0?g.map(p=>S.jsx(gm,{task:p,status:t,draggable:!1},p.slug)):S.jsx(t2,{});return S.jsxs("section",{className:"flex w-[20rem] shrink-0 flex-col rounded-md border border-sb-iron transition-colors",children:[S.jsx(e2,{label:r,count:l.length}),S.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-3",children:[v,(h>0||s&&Number.isFinite(c))&&S.jsx(Wx,{hidden:h,expanded:s,onToggle:()=>u(p=>!p)})]})]})}function Wx({hidden:t,expanded:r,onToggle:l}){return S.jsx("button",{type:"button",onClick:l,className:"rounded-md border border-dashed border-sb-iron px-3 py-2 text-center font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted",children:r?"Show recent":`Show ${t} more`})}function e2({label:t,count:r,children:l}){return S.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-2 border-b border-sb-iron px-3",children:[S.jsxs("h2",{className:"flex min-w-0 items-center gap-2",children:[S.jsx("span",{className:"h-2.5 w-2.5 shrink-0 bg-sb-frosted","aria-hidden":"true"}),S.jsx("span",{className:"truncate font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver",children:t})]}),S.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[S.jsx("span",{className:"rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver",children:r}),l]})]})}function t2(){return S.jsx("div",{className:"rounded-md border border-dashed border-sb-iron px-3 py-8 text-center font-mono text-[12px] text-sb-silver",children:"Empty"})}function Zd({tail:t=!1}){return S.jsx("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-x-0 z-10 h-0.5 rounded-full bg-sb-frosted ${t?"-bottom-1.5":"-top-1.5"}`})}function aD({id:t,label:r,tasks:l,activeSlug:a,indicatorIndex:s,sortable:u,isActive:c,isDisabledTarget:d,canCreate:g,capMax:h}){const{setNodeRef:v}=Xx({id:`column-${t}`,data:{status:t,isColumn:!0}}),[p,b]=C.useState(!1),y=h>0?h:1/0,T=Number.isFinite(y)&&!p&&l.length>y?l.slice(0,y):l,A=l.length-T.length,E=s===null?null:Math.min(s,T.length),_=l.length>0?T.map((N,z)=>S.jsxs("div",{className:"relative",children:[E===z?S.jsx(Zd,{}):null,S.jsx(gm,{task:N,status:t,draggable:u,isPlaceholder:a===N.slug}),E===T.length&&z===T.length-1?S.jsx(Zd,{tail:!0}):null]},N.slug)):g?S.jsxs("div",{className:"relative flex flex-col",children:[E===null?null:S.jsx(Zd,{}),S.jsx(sD,{status:t,label:r})]}):S.jsx(t2,{}),R=c?"border-sb-silver":d?"border-dashed border-sb-iron":"border-sb-iron";return S.jsxs("section",{className:`flex w-[20rem] shrink-0 flex-col rounded-md border transition-colors ${R} ${d?"pointer-events-none opacity-40":""}`,ref:v,children:[S.jsx(e2,{label:r,count:l.length,children:g?S.jsx(oD,{status:t,label:r}):null}),S.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-3",children:[u?S.jsx(UA,{items:T.map(N=>N.slug),strategy:rD,children:_}):_,(A>0||p&&Number.isFinite(y))&&S.jsx(Wx,{hidden:A,expanded:p,onToggle:()=>b(N=>!N)}),g&&l.length>0?S.jsx(uD,{status:t,label:r}):null]})]})}function oD({status:t,label:r}){return S.jsx(Ju,{initialStatus:t,trigger:S.jsx("button",{type:"button","aria-label":`Add task to ${r}`,className:"inline-flex h-6 w-6 items-center justify-center rounded text-sb-silver transition-colors hover:bg-sb-surface2 hover:text-sb-frosted focus-visible:bg-sb-surface2 focus-visible:text-sb-frosted",children:S.jsx(wo,{"aria-hidden":"true",className:"h-3.5 w-3.5"})})})}function sD({status:t,label:r}){return S.jsx(Ju,{initialStatus:t,trigger:S.jsxs("button",{type:"button","aria-label":`Add first task to ${r}`,className:"group flex min-h-28 flex-col items-center justify-center gap-2 rounded-md border border-dashed border-sb-iron px-3 py-8 text-center font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:bg-sb-surface focus-visible:text-sb-frosted",children:[S.jsx("span",{className:"inline-flex h-7 w-7 items-center justify-center rounded border border-sb-iron bg-sb-surface2 text-sb-silver transition-colors group-hover:text-sb-frosted",children:S.jsx(wo,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),"Add task"]})})}function uD({status:t,label:r}){return S.jsx(Ju,{initialStatus:t,trigger:S.jsxs("button",{type:"button","aria-label":`Add task to ${r} from column bottom`,className:"flex w-full items-center justify-center gap-1.5 rounded-md border border-dashed border-sb-iron px-3 py-2 font-mono text-[12px] text-sb-silver transition-colors hover:border-sb-silver hover:text-sb-frosted focus-visible:border-sb-silver focus-visible:text-sb-frosted",children:[S.jsx(wo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Add task"]})})}function cD({overId:t,overStatus:r,overIsColumn:l,activeSlug:a,activeStatus:s,originIndex:u,columns:c}){if(!t)return null;if(t===a)return s?{status:s,position:u}:null;if(!r||r===Jl)return null;if(l)return{status:r,position:-1};const d=c.find(g=>g.id===r);return d?{status:r,position:n2({tasks:d.tasks,overSlug:t,activeSlug:a,sameColumn:s===r})}:{status:r,position:-1}}function fD({activeSlug:t,activeStatus:r,overId:l,overStatus:a,overIsColumn:s,previewStatus:u,previewPosition:c,columns:d}){const g=a&&a!==Jl?a:u;if(!g)return null;let h=c;if(l&&l!==t&&!s){const b=d.find(y=>y.id===g);b&&(h=n2({tasks:b.tasks,overSlug:l,activeSlug:t,sameColumn:r===g}))}else s&&(h=-1);const v=d.find(b=>b.id===r),p=v?v.tasks.findIndex(b=>b.slug===t):-1;return g===r&&h===p?null:{status:g,position:h}}function n2({tasks:t,overSlug:r,activeSlug:l,sameColumn:a}){const u=t.filter(c=>c.slug!==l).findIndex(c=>c.slug===r);if(u<0)return-1;if(a&&l){const c=t.findIndex(g=>g.slug===l),d=t.findIndex(g=>g.slug===r);if(c>=0&&d>=0)return c<d?u+1:u}return u}function dD(){return S.jsx("div",{className:"grid min-h-[70vh] place-items-center font-mono text-[12px] text-sb-silver",children:"Loading board..."})}function hD(){const t=Ce(s=>s.selectedTaskSlug),r=Ce(s=>s.archiveViewOpen),l=Ce(s=>s.selectTask),a=Ce(s=>s.closeArchive);return C.useEffect(()=>{const s=u=>{u.key==="Escape"&&(r?a():l(null))};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[r,a,l]),S.jsx("main",{className:"min-h-[calc(100vh-var(--sb-header-h))] px-5 py-5",children:r?S.jsx(k4,{}):t?S.jsx(KE,{slug:t}):S.jsx(lD,{})})}const Nh="sb-theme",mD=[{value:"system",label:"System theme",Icon:T4},{value:"light",label:"Light theme",Icon:v4},{value:"dark",label:"Dark theme",Icon:b4}];function r2(){try{const t=localStorage.getItem(Nh);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function pD(){const t=document.documentElement,r=r2();r==="system"?t.removeAttribute("data-theme"):t.dataset.theme=r}function gD(t){const r=document.documentElement;try{t==="system"?(r.removeAttribute("data-theme"),localStorage.removeItem(Nh)):(r.dataset.theme=t,localStorage.setItem(Nh,t))}catch{t==="system"?r.removeAttribute("data-theme"):r.dataset.theme=t}}function vD(){const[t,r]=C.useState(r2);return S.jsx("div",{className:"inline-flex h-9 items-center gap-0.5 rounded border border-sb-iron px-0.5",children:mD.map(({value:l,label:a,Icon:s})=>{const u=t===l;return S.jsx("button",{type:"button","aria-label":a,"aria-pressed":u,title:a,onClick:()=>{r(l),gD(l)},className:`rounded p-1.5 transition-colors ${u?"bg-sb-accent/15 text-sb-accent":"text-sb-silver hover:text-sb-frosted"}`,children:S.jsx(s,{className:"h-3.5 w-3.5","aria-hidden":!0})},l)})})}const yD=200;function bD({themeControl:t=!1}){const r=C.useRef(null),l=Ce(E=>E.config),a=Ce(E=>E.selectedTaskSlug),s=Ce(E=>E.archiveViewOpen),u=Ce(E=>E.selectedTaskSlug?E.tasks.find(_=>_.slug===E.selectedTaskSlug):null),c=Ce(E=>E.selectTask),d=Ce(E=>E.openArchive),g=Ce(E=>E.closeArchive),h=Ce(E=>E.refresh),v=Ce(E=>E.isSyncing),p=Ce(E=>E.lastSyncedAt),b=Ce(E=>E.setSearchQuery),y=Ce(E=>E.readOnly),[w,T]=C.useState("");C.useLayoutEffect(()=>{const E=r.current,_=E==null?void 0:E.parentElement;if(!E||!_)return;const R=()=>{const z=E.getBoundingClientRect().height;z>0&&_.style.setProperty("--sb-header-h",`${z}px`)};R();const N=typeof ResizeObserver>"u"?null:new ResizeObserver(R);return N==null||N.observe(E),window.addEventListener("resize",R),()=>{N==null||N.disconnect(),window.removeEventListener("resize",R),_.style.removeProperty("--sb-header-h")}},[]),C.useEffect(()=>{const E=window.setTimeout(()=>{b(w)},yD);return()=>window.clearTimeout(E)},[w,b]);const A=(l==null?void 0:l.name)??"";return S.jsx("header",{ref:r,className:"sticky top-0 z-10 border-b border-sb-iron bg-sb-canvas/95 px-5 py-3",children:S.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[S.jsxs("nav",{"aria-label":"Breadcrumb",className:"flex min-w-0 items-center gap-2 font-mono text-[12px]",children:[A?S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"truncate text-sb-silver",children:A}),S.jsx(Gd,{})]}):null,S.jsx(xD,{label:"Tasks",isCurrent:!a&&!s,onClick:()=>{g(),c(null)}}),s?S.jsxs(S.Fragment,{children:[S.jsx(Gd,{}),S.jsx("span",{"aria-current":"page",className:"truncate text-sb-frosted",children:"Archive"})]}):a?S.jsxs(S.Fragment,{children:[S.jsx(Gd,{}),S.jsx("span",{className:"truncate text-sb-frosted",children:(u==null?void 0:u.frontmatter.title)??a})]}):null]}),S.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[s?null:S.jsxs("label",{className:"relative block min-w-0 sm:w-80",children:[S.jsx(Rh,{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-sb-silver"}),S.jsx("input",{className:"h-9 w-full rounded border border-sb-iron bg-sb-surface2 pl-9 pr-3 font-mono text-[12px] text-sb-frosted outline-none transition-colors placeholder:text-sb-silver hover:border-sb-silver focus:border-sb-silver",placeholder:"Search tasks",value:w,onChange:E=>T(E.target.value)})]}),y?S.jsxs("span",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron bg-sb-surface2 px-3 font-mono text-[11px] uppercase tracking-[0.12em] text-sb-silver",children:[S.jsx(x4,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Read only"]}):S.jsxs("button",{"aria-pressed":s,className:`inline-flex h-9 items-center justify-center gap-2 rounded border px-3 font-mono text-[11px] transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted ${s?"border-sb-silver bg-sb-surface2 text-sb-frosted":"border-sb-iron bg-transparent text-sb-silver"}`,type:"button",onClick:d,children:[S.jsx(Eo,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Archive"]}),S.jsxs("button",{className:"inline-flex h-9 items-center justify-center gap-2 rounded border border-sb-iron bg-transparent px-3 font-mono text-[11px] text-sb-silver transition-colors hover:border-sb-silver hover:bg-sb-surface2 hover:text-sb-frosted disabled:cursor-not-allowed disabled:opacity-40",type:"button",disabled:v,onClick:()=>void h(),children:[S.jsx(ay,{"aria-hidden":"true",className:`h-3.5 w-3.5 ${v?"animate-spin":""}`}),p?`Synced ${mu(p)}`:"Sync"]}),y?null:S.jsx(Ju,{}),t?S.jsx(vD,{}):null]})]})})}function xD({label:t,isCurrent:r,onClick:l}){return r?S.jsx("span",{"aria-current":"page",className:"text-sb-frosted",children:t}):S.jsx("button",{className:"text-sb-silver transition-colors hover:text-sb-frosted",type:"button",onClick:l,children:t})}function Gd(){return S.jsx(po,{className:"h-2.5 w-2.5 shrink-0 text-sb-iron"})}const SD=S.jsx(C4,{className:"h-4 w-4 shrink-0 text-sb-silver","aria-hidden":!0}),CD=S.jsx(ay,{className:"h-4 w-4 shrink-0 text-sb-silver","aria-hidden":!0});function ty(){return S.jsx(i4,{position:"bottom-right",gap:8,icons:{success:S.jsx(sy,{className:"h-4 w-4 text-sb-success","aria-hidden":!0}),error:S.jsx(A4,{className:"h-4 w-4 text-sb-danger","aria-hidden":!0}),warning:S.jsx(E4,{className:"h-4 w-4 text-sb-warning","aria-hidden":!0}),info:SD,loading:CD},toastOptions:{unstyled:!0,classNames:{toast:"flex w-[356px] items-center gap-3 rounded-md border border-sb-iron bg-sb-surface2 px-3.5 py-3",success:"border-l-2 border-l-sb-success",error:"border-l-2 border-l-sb-danger",warning:"border-l-2 border-l-sb-warning",content:"min-w-0 flex-1",title:"font-mono text-[13px] text-sb-frosted",description:"font-mono text-[11px] text-sb-silver",actionButton:"rounded border border-sb-iron px-2.5 py-1.5 font-mono text-[11px] text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface"}}})}const wD=6e4;function ED({api:t}){const r=Ce(l=>l.refresh);return C.useEffect(()=>{const l=()=>{document.visibilityState==="visible"&&r()};return document.addEventListener("visibilitychange",l),()=>{document.removeEventListener("visibilitychange",l)}},[r]),C.useEffect(()=>{if(t.onTasksChanged)return t.onTasksChanged(()=>void r());const l=window.setInterval(()=>{document.visibilityState==="visible"&&r()},wD);return()=>window.clearInterval(l)},[t,r]),null}function TD({api:t,themeControl:r}){return S.jsx(u4,{api:t,children:S.jsx(AD,{api:t,themeControl:r})})}function AD({api:t,themeControl:r}){const l=Ce(d=>d.refresh),a=Ce(d=>d.hasLoaded),s=Ce(d=>d.initialLoadError),u=Ce(d=>d.isSyncing);C.useEffect(()=>{l()},[l]);const c=C.useMemo(()=>u?"Retrying...":"Retry",[u]);return!a&&s?S.jsxs("div",{className:"sb-canvas-grid min-h-screen p-6 font-sans text-sb-frosted",children:[S.jsx(U0,{}),S.jsxs("div",{className:"mx-auto flex min-h-[70vh] max-w-xl flex-col justify-center",children:[S.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-sb-silver",children:"ShipBench could not load"}),S.jsx("h1",{className:"mt-3 text-2xl font-semibold text-sb-frosted",children:"Board unavailable"}),S.jsx("p",{className:"mt-3 text-[13px] leading-relaxed text-sb-silver",children:s}),S.jsx("button",{className:"mt-6 w-fit rounded border border-sb-iron bg-transparent px-4 py-2 text-[13px] font-medium text-sb-frosted transition-colors hover:border-sb-silver hover:bg-sb-surface2",type:"button",onClick:()=>void l(),children:c})]}),S.jsx(ty,{})]}):S.jsxs("div",{className:"sb-board-root sb-canvas-grid min-h-screen font-sans text-sb-frosted",children:[S.jsx(U0,{}),S.jsx(ED,{api:t}),S.jsx(bD,{themeControl:r}),S.jsx(hD,{}),S.jsx(ty,{})]})}function DD(t,r){const l=T3.createRoot(t);return l.render(S.jsx(TD,{api:r.api,themeControl:r.themeControl})),l}async function Qn(t,r){const l=await fetch(t,r);if(!l.ok){let a=`${l.status} ${l.statusText}`;try{const s=await l.json();typeof s.error=="string"&&(a=s.error)}catch{const s=await l.text();s&&(a=s)}throw new Error(a)}if(l.status!==204)return await l.json()}function Zi(t){return{headers:{"content-type":"application/json"},body:JSON.stringify(t)}}const ND={getConfig:()=>Qn("/api/config"),listTasks:()=>Qn("/api/tasks"),listArchivedTasks:()=>Qn("/api/tasks/archived"),createTask:(t,r)=>Qn("/api/tasks",{method:"POST",...Zi({title:t,fields:r})}),updateTask:(t,r,l)=>Qn(`/api/tasks/${encodeURIComponent(t)}`,{method:"PATCH",...Zi({fields:r,body:l})}),addComment:(t,r)=>Qn(`/api/tasks/${encodeURIComponent(t)}/comments`,{method:"POST",...Zi({text:r})}),editComment:(t,r,l)=>Qn(`/api/tasks/${encodeURIComponent(t)}/comments/${encodeURIComponent(r)}`,{method:"PATCH",...Zi({text:l})}),deleteComment:(t,r)=>Qn(`/api/tasks/${encodeURIComponent(t)}/comments/${encodeURIComponent(r)}`,{method:"DELETE"}),async moveTask(t,r){return(await this.reorderTask(t,r,-1)).task},reorderTask:(t,r,l)=>Qn(`/api/tasks/${encodeURIComponent(t)}/reorder`,{method:"POST",...Zi({toStatus:r,position:l})}),archiveTask:(t,r)=>Qn(`/api/tasks/${encodeURIComponent(t)}/archive`,{method:"POST",...Zi(r??{})}),unarchiveTask:t=>Qn(`/api/tasks/${encodeURIComponent(t)}/unarchive`,{method:"POST"}),deleteTask:t=>Qn(`/api/tasks/${encodeURIComponent(t)}`,{method:"DELETE"}),onTasksChanged(t){const r=new EventSource("/api/events");return r.addEventListener("tasks-changed",t),()=>r.close()}},l2=document.getElementById("root");if(!l2)throw new Error("No #root element found in index.html.");pD();DD(l2,{api:ND,themeControl:!0});