@webappwiz/arbor 0.0.28 → 0.0.30

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 (119) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +34 -12
  3. package/add.test.ts +125 -0
  4. package/add.ts +192 -0
  5. package/age.ts +11 -0
  6. package/arbor.test.ts +145 -0
  7. package/arbor.ts +429 -0
  8. package/assets.d.ts +9 -0
  9. package/attachments.ts +87 -0
  10. package/build.ts +98 -0
  11. package/claim.test.ts +89 -0
  12. package/claim.ts +73 -0
  13. package/components.json +21 -0
  14. package/config.ts +58 -0
  15. package/dev/api.ts +120 -0
  16. package/dev/app.test.tsx +645 -0
  17. package/dev/app.tsx +80 -0
  18. package/dev/assets.ts +16 -0
  19. package/dev/build/main.txt +68 -0
  20. package/dev/build/shell.txt +21 -0
  21. package/dev/build/styles.txt +2263 -0
  22. package/dev/components/ui/badge.tsx +51 -0
  23. package/dev/components/ui/button.tsx +57 -0
  24. package/dev/components/ui/dialog.tsx +154 -0
  25. package/dev/components/ui/empty.tsx +100 -0
  26. package/dev/components/ui/input-group.tsx +155 -0
  27. package/dev/components/ui/input.tsx +19 -0
  28. package/dev/components/ui/progress.tsx +80 -0
  29. package/dev/components/ui/textarea.tsx +17 -0
  30. package/dev/components/ui/toast.tsx +227 -0
  31. package/dev/feed.ts +69 -0
  32. package/dev/files.tsx +191 -0
  33. package/dev/index.html +21 -0
  34. package/dev/lib/utils.ts +7 -0
  35. package/dev/main.tsx +22 -0
  36. package/dev/markdown.test.tsx +133 -0
  37. package/dev/markdown.tsx +124 -0
  38. package/dev/mentions.tsx +319 -0
  39. package/dev/shadcn.css +649 -0
  40. package/dev/styles.css +107 -0
  41. package/dev/tags.tsx +44 -0
  42. package/dev/tasks.tsx +151 -0
  43. package/dev/todos.tsx +759 -0
  44. package/dev.test.ts +439 -0
  45. package/dev.ts +386 -0
  46. package/e2e.test.ts +256 -0
  47. package/escalate.test.ts +76 -0
  48. package/escalate.ts +112 -0
  49. package/exit.test.ts +71 -0
  50. package/exit.ts +74 -0
  51. package/git.ts +294 -0
  52. package/index.ts +9 -0
  53. package/journal.ts +89 -0
  54. package/list.test.ts +82 -0
  55. package/list.ts +137 -0
  56. package/load-config.test.ts +121 -0
  57. package/load-config.ts +62 -0
  58. package/log.test.ts +65 -0
  59. package/log.ts +40 -0
  60. package/merge.test.ts +332 -0
  61. package/merge.ts +283 -0
  62. package/package.json +32 -15
  63. package/path.test.ts +35 -0
  64. package/path.ts +38 -0
  65. package/plan.test.ts +318 -0
  66. package/plan.ts +302 -0
  67. package/progress.test.ts +54 -0
  68. package/progress.ts +31 -0
  69. package/remove.test.ts +68 -0
  70. package/remove.ts +88 -0
  71. package/repository.ts +83 -0
  72. package/retry.test.ts +43 -0
  73. package/retry.ts +48 -0
  74. package/shell.ts +44 -0
  75. package/show.test.ts +91 -0
  76. package/show.ts +151 -0
  77. package/snapshot.test.ts +33 -0
  78. package/snapshot.ts +84 -0
  79. package/table.ts +20 -0
  80. package/testing.ts +229 -0
  81. package/todo.test.ts +490 -0
  82. package/todo.ts +834 -0
  83. package/wait.test.ts +61 -0
  84. package/wait.ts +77 -0
  85. package/worktree-service.test.ts +158 -0
  86. package/worktree-service.ts +193 -0
  87. package/worktree.ts +239 -0
  88. package/add.d.ts +0 -23
  89. package/age.d.ts +0 -2
  90. package/arbor.d.ts +0 -11
  91. package/attachments.d.ts +0 -36
  92. package/claim.d.ts +0 -11
  93. package/config.d.ts +0 -55
  94. package/config.js +0 -7
  95. package/dev/assets.d.ts +0 -11
  96. package/dev.d.ts +0 -47
  97. package/escalate.d.ts +0 -28
  98. package/exit.d.ts +0 -42
  99. package/git.d.ts +0 -77
  100. package/index.d.ts +0 -2
  101. package/index.js +0 -4669
  102. package/journal.d.ts +0 -29
  103. package/list.d.ts +0 -18
  104. package/load-config.d.ts +0 -15
  105. package/log.d.ts +0 -14
  106. package/merge.d.ts +0 -24
  107. package/path.d.ts +0 -13
  108. package/plan.d.ts +0 -83
  109. package/remove.d.ts +0 -19
  110. package/repository.d.ts +0 -25
  111. package/retry.d.ts +0 -17
  112. package/shell.d.ts +0 -17
  113. package/show.d.ts +0 -53
  114. package/snapshot.d.ts +0 -31
  115. package/table.d.ts +0 -5
  116. package/todo.d.ts +0 -230
  117. package/wait.d.ts +0 -22
  118. package/worktree-service.d.ts +0 -51
  119. package/worktree.d.ts +0 -95
@@ -0,0 +1,68 @@
1
+ var yR=Object.create;var{getPrototypeOf:bR,defineProperty:xc,getOwnPropertyNames:LR}=Object;var Yv=Object.prototype.hasOwnProperty;function SR(e){return this[e]}var IR,AR,TR=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var r=t?IR??=new WeakMap:AR??=new WeakMap,n=r.get(e);if(n)return n}a=e!=null?yR(bR(e)):{};let l=t||!e||!e.__esModule||!Yv.call(e,"default")?xc(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let s of LR(e))if(!Yv.call(l,s))xc(l,s,{get:SR.bind(e,s),enumerable:!0})}if(o)r.set(e,l);return l};var wR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var RR=(e)=>e;function DR(e,t){this[e]=RR.bind(null,t)}var vc=(e,t)=>{for(var a in t)xc(e,a,{get:t[a],enumerable:!0,configurable:!0,set:DR.bind(t,a)})};var kR=(e,t,a)=>()=>{if(e)try{t=e(e=0)}catch(o){a=[o]}if(a)throw a[0];return t};var Wv=(e,t,a)=>{for(var o in t)xc(e,o,{get:t[o],set:a[o],enumerable:!0,configurable:!0})};var se={};Wv(se,{Activity:()=>nC,Children:()=>yc,Component:()=>lC,Fragment:()=>ya,Profiler:()=>sC,PureComponent:()=>uC,StrictMode:()=>bc,Suspense:()=>iC,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>jl,__COMPILER_RUNTIME:()=>cC,cache:()=>fC,cacheSignal:()=>dC,cloneElement:()=>Yl,createContext:()=>Ue,createElement:()=>at,createRef:()=>Wl,forwardRef:()=>Ce,isValidElement:()=>Wo,lazy:()=>pC,memo:()=>Lu,startTransition:()=>mC,unstable_useCacheRefresh:()=>hC,use:()=>gC,useActionState:()=>xC,useCallback:()=>dt,useContext:()=>Be,useDebugValue:()=>Po,useDeferredValue:()=>vC,useEffect:()=>ce,useEffectEvent:()=>CC,useId:()=>Lc,useImperativeHandle:()=>Sc,useInsertionEffect:()=>yC,useLayoutEffect:()=>Pr,useMemo:()=>Le,useOptimistic:()=>bC,useReducer:()=>Ic,useRef:()=>z,useState:()=>J,useSyncExternalStore:()=>Fn,useTransition:()=>LC,version:()=>Kl},{Activity:(Az)=>nC=Az,Children:(Az)=>yc=Az,Component:(Az)=>lC=Az,Fragment:(Az)=>ya=Az,Profiler:(Az)=>sC=Az,PureComponent:(Az)=>uC=Az,StrictMode:(Az)=>bc=Az,Suspense:(Az)=>iC=Az,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(Az)=>jl=Az,__COMPILER_RUNTIME:(Az)=>cC=Az,cache:(Az)=>fC=Az,cacheSignal:(Az)=>dC=Az,cloneElement:(Az)=>Yl=Az,createContext:(Az)=>Ue=Az,createElement:(Az)=>at=Az,createRef:(Az)=>Wl=Az,forwardRef:(Az)=>Ce=Az,isValidElement:(Az)=>Wo=Az,lazy:(Az)=>pC=Az,memo:(Az)=>Lu=Az,startTransition:(Az)=>mC=Az,unstable_useCacheRefresh:(Az)=>hC=Az,use:(Az)=>gC=Az,useActionState:(Az)=>xC=Az,useCallback:(Az)=>dt=Az,useContext:(Az)=>Be=Az,useDebugValue:(Az)=>Po=Az,useDeferredValue:(Az)=>vC=Az,useEffect:(Az)=>ce=Az,useEffectEvent:(Az)=>CC=Az,useId:(Az)=>Lc=Az,useImperativeHandle:(Az)=>Sc=Az,useInsertionEffect:(Az)=>yC=Az,useLayoutEffect:(Az)=>Pr=Az,useMemo:(Az)=>Le=Az,useOptimistic:(Az)=>bC=Az,useReducer:(Az)=>Ic=Az,useRef:(Az)=>z=Az,useState:(Az)=>J=Az,useSyncExternalStore:(Az)=>Fn=Az,useTransition:(Az)=>LC=Az,version:(Az)=>Kl=Az});function HR(e){if(e===null||typeof e!=="object")return null;return e=Kv&&e[Kv]||e["@@iterator"],typeof e==="function"?e:null}function Xl(e,t,a){this.props=e,this.context=t,this.refs=aC,this.updater=a||eC}function oC(){}function Vp(e,t,a){this.props=e,this.context=t,this.refs=aC,this.updater=a||eC}function Hp(){}function Xp(e,t,a){var o=a.ref;return{$$typeof:_p,type:e,key:t,ref:o!==void 0?o:null,props:a}}function _R(e,t){return Xp(e.type,t,e.props)}function jp(e){return typeof e==="object"&&e!==null&&e.$$typeof===_p}function VR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}function qp(e,t){return typeof e==="object"&&e!==null&&e.key!=null?VR(""+e.key):t.toString(36)}function GR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Hp,Hp):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Gl(e,t,a,o,r){var n=typeof e;if(n==="undefined"||n==="boolean")e=null;var l=!1;if(e===null)l=!0;else switch(n){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case _p:case ER:l=!0;break;case $v:return l=e._init,Gl(l(e._payload),t,a,o,r)}}if(l)return r=r(e),l=o===""?"."+qp(e,0):o,Zv(r)?(a="",l!=null&&(a=l.replace(Qv,"$&/")+"/"),Gl(r,t,a,"",function(i){return i})):r!=null&&(jp(r)&&(r=_R(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Qv,"$&/")+"/")+l)),t.push(r)),1;l=0;var s=o===""?".":o+":";if(Zv(e))for(var u=0;u<e.length;u++)o=e[u],n=s+qp(o,u),l+=Gl(o,t,a,n,r);else if(u=HR(e),typeof u==="function")for(e=u.call(e),u=0;!(o=e.next()).done;)o=o.value,n=s+qp(o,u++),l+=Gl(o,t,a,n,r);else if(n==="object"){if(typeof e.then==="function")return Gl(GR(e),t,a,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function Cc(e,t,a){if(e==null)return e;var o=[],r=0;return Gl(e,o,"","",function(n){return t.call(a,n,r++)}),o}function XR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _p,ER,MR,OR,BR,PR,NR,zR,FR,UR,$v,qR,Kv,eC,tC,aC,Gp,Zv,Rt,rC,Qv,Jv,jR,nC,yc,lC,ya,sC,uC,bc,iC,jl,cC,fC=function(e){return function(){return e.apply(null,arguments)}},dC=function(){return null},Yl=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=tC({},e.props),r=e.key;if(t!=null)for(n in t.key!==void 0&&(r=""+t.key),t)!rC.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=a;else if(1<n){for(var l=Array(n),s=0;s<n;s++)l[s]=arguments[s+2];o.children=l}return Xp(e.type,r,o)},Ue=function(e){return e={$$typeof:NR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:PR,_context:e},e},at=function(e,t,a){var o,r={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)rC.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)r[o]===void 0&&(r[o]=l[o]);return Xp(e,n,r)},Wl=function(){return{current:null}},Ce=function(e){return{$$typeof:zR,render:e}},Wo,pC=function(e){return{$$typeof:$v,_payload:{_status:-1,_result:e},_init:XR}},Lu=function(e,t){return{$$typeof:UR,type:e,compare:t===void 0?null:t}},mC=function(e){var t=Rt.T,a={};Rt.T=a;try{var o=e(),r=Rt.S;r!==null&&r(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Hp,Jv)}catch(n){Jv(n)}finally{t!==null&&a.types!==null&&(t.types=a.types),Rt.T=t}},hC=function(){return Rt.H.useCacheRefresh()},gC=function(e){return Rt.H.use(e)},xC=function(e,t,a){return Rt.H.useActionState(e,t,a)},dt=function(e,t){return Rt.H.useCallback(e,t)},Be=function(e){return Rt.H.useContext(e)},Po=function(){},vC=function(e,t){return Rt.H.useDeferredValue(e,t)},ce=function(e,t){return Rt.H.useEffect(e,t)},CC=function(e){return Rt.H.useEffectEvent(e)},Lc=function(){return Rt.H.useId()},Sc=function(e,t,a){return Rt.H.useImperativeHandle(e,t,a)},yC=function(e,t){return Rt.H.useInsertionEffect(e,t)},Pr=function(e,t){return Rt.H.useLayoutEffect(e,t)},Le=function(e,t){return Rt.H.useMemo(e,t)},bC=function(e,t){return Rt.H.useOptimistic(e,t)},Ic=function(e,t,a){return Rt.H.useReducer(e,t,a)},z=function(e){return Rt.H.useRef(e)},J=function(e){return Rt.H.useState(e)},Fn=function(e,t,a){return Rt.H.useSyncExternalStore(e,t,a)},LC=function(){return Rt.H.useTransition()},Kl="19.2.8";var W=kR(()=>{_p=Symbol.for("react.transitional.element"),ER=Symbol.for("react.portal"),MR=Symbol.for("react.fragment"),OR=Symbol.for("react.strict_mode"),BR=Symbol.for("react.profiler"),PR=Symbol.for("react.consumer"),NR=Symbol.for("react.context"),zR=Symbol.for("react.forward_ref"),FR=Symbol.for("react.suspense"),UR=Symbol.for("react.memo"),$v=Symbol.for("react.lazy"),qR=Symbol.for("react.activity"),Kv=Symbol.iterator;eC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tC=Object.assign,aC={};Xl.prototype.isReactComponent={};Xl.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};oC.prototype=Xl.prototype;Gp=Vp.prototype=new oC;Gp.constructor=Vp;tC(Gp,Xl.prototype);Gp.isPureReactComponent=!0;Zv=Array.isArray;Rt={H:null,A:null,T:null,S:null},rC=Object.prototype.hasOwnProperty;Qv=/\/+/g;Jv=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},jR={map:Cc,forEach:function(e,t,a){Cc(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Cc(e,function(){t++}),t},toArray:function(e){return Cc(e,function(t){return t})||[]},only:function(e){if(!jp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};nC=qR,yc=jR,lC=Xl,ya=MR,sC=BR,uC=Vp,bc=OR,iC=FR,jl=Rt,cC={__proto__:null,c:function(e){return Rt.H.useMemoCache(e)}},Wo=jp});var Og=wR(function(HE){W();function ME(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OE=typeof Object.is==="function"?Object.is:ME,BE=J,PE=ce,NE=Pr,zE=Po;function FE(e,t){var a=t(),o=BE({inst:{value:a,getSnapshot:t}}),r=o[0].inst,n=o[1];return NE(function(){r.value=a,r.getSnapshot=t,Mg(r)&&n({inst:r})},[e,a,t]),PE(function(){return Mg(r)&&n({inst:r}),e(function(){Mg(r)&&n({inst:r})})},[e]),zE(a),a}function Mg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!OE(e,a)}catch(o){return!0}}function UE(e,t){return t()}var qE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UE:FE;HE.useSyncExternalStore=Fn!==void 0?Fn:qE});W();function US(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(US)}catch(e){console.error(e)}}var Un={};Wv(Un,{unstable_now:()=>No,unstable_IdlePriority:()=>kc,unstable_ImmediatePriority:()=>Ec,unstable_LowPriority:()=>Mc,unstable_NormalPriority:()=>qn,unstable_Profiling:()=>DC,unstable_UserBlockingPriority:()=>Oc,unstable_cancelCallback:()=>Bc,unstable_forceFrameRate:()=>kC,unstable_getCurrentPriorityLevel:()=>Pc,unstable_next:()=>EC,unstable_requestPaint:()=>Nc,unstable_runWithPriority:()=>MC,unstable_scheduleCallback:()=>Hn,unstable_shouldYield:()=>zc,unstable_wrapCallback:()=>OC},{unstable_now:(Tz)=>No=Tz,unstable_IdlePriority:(Tz)=>kc=Tz,unstable_ImmediatePriority:(Tz)=>Ec=Tz,unstable_LowPriority:(Tz)=>Mc=Tz,unstable_NormalPriority:(Tz)=>qn=Tz,unstable_Profiling:(Tz)=>DC=Tz,unstable_UserBlockingPriority:(Tz)=>Oc=Tz,unstable_cancelCallback:(Tz)=>Bc=Tz,unstable_forceFrameRate:(Tz)=>kC=Tz,unstable_getCurrentPriorityLevel:(Tz)=>Pc=Tz,unstable_next:(Tz)=>EC=Tz,unstable_requestPaint:(Tz)=>Nc=Tz,unstable_runWithPriority:(Tz)=>MC=Tz,unstable_scheduleCallback:(Tz)=>Hn=Tz,unstable_shouldYield:(Tz)=>zc=Tz,unstable_wrapCallback:(Tz)=>OC=Tz});function Wp(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,r=e[o];if(0<Ac(r,t))e[o]=t,e[a]=r,a=o;else break e}}function Ko(e){return e.length===0?null:e[0]}function Dc(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,r=e.length,n=r>>>1;o<n;){var l=2*(o+1)-1,s=e[l],u=l+1,i=e[u];if(0>Ac(s,a))u<r&&0>Ac(i,s)?(e[o]=i,e[u]=a,o=u):(e[o]=s,e[l]=a,o=l);else if(u<r&&0>Ac(i,a))e[o]=i,e[u]=a,o=u;else break e}}return t}function Ac(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}var No=void 0;if(typeof performance==="object"&&typeof performance.now==="function")Kp=performance,No=function(){return Kp.now()};else Tc=Date,Zp=Tc.now(),No=function(){return Tc.now()-Zp};var Kp,Tc,Zp,sr=[],Nr=[],YR=1,po=null,Da=3,Qp=!1,Su=!1,Iu=!1,$p=!1,IC=typeof setTimeout==="function"?setTimeout:null,AC=typeof clearTimeout==="function"?clearTimeout:null,SC=typeof setImmediate<"u"?setImmediate:null;function wc(e){for(var t=Ko(Nr);t!==null;){if(t.callback===null)Dc(Nr);else if(t.startTime<=e)Dc(Nr),t.sortIndex=t.expirationTime,Wp(sr,t);else break;t=Ko(Nr)}}function em(e){if(Iu=!1,wc(e),!Su)if(Ko(sr)!==null)Su=!0,Ql||(Ql=!0,Zl());else{var t=Ko(Nr);t!==null&&tm(em,t.startTime-e)}}var Ql=!1,Au=-1,TC=5,wC=-1;function RC(){return $p?!0:Un.unstable_now()-wC<TC?!1:!0}function Yp(){if($p=!1,Ql){var e=Un.unstable_now();wC=e;var t=!0;try{e:{Su=!1,Iu&&(Iu=!1,AC(Au),Au=-1),Qp=!0;var a=Da;try{t:{wc(e);for(po=Ko(sr);po!==null&&!(po.expirationTime>e&&RC());){var o=po.callback;if(typeof o==="function"){po.callback=null,Da=po.priorityLevel;var r=o(po.expirationTime<=e);if(e=Un.unstable_now(),typeof r==="function"){po.callback=r,wc(e),t=!0;break t}po===Ko(sr)&&Dc(sr),wc(e)}else Dc(sr);po=Ko(sr)}if(po!==null)t=!0;else{var n=Ko(Nr);n!==null&&tm(em,n.startTime-e),t=!1}}break e}finally{po=null,Da=a,Qp=!1}t=void 0}}finally{t?Zl():Ql=!1}}}var Zl;if(typeof SC==="function")Zl=function(){SC(Yp)};else if(typeof MessageChannel<"u")Rc=new MessageChannel,Jp=Rc.port2,Rc.port1.onmessage=Yp,Zl=function(){Jp.postMessage(null)};else Zl=function(){IC(Yp,0)};var Rc,Jp;function tm(e,t){Au=IC(function(){e(Un.unstable_now())},t)}var kc=5,Ec=1,Mc=4,qn=3,DC=null,Oc=2,Bc=function(e){e.callback=null},kC=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):TC=0<e?Math.floor(1000/e):5},Pc=function(){return Da},EC=function(e){switch(Da){case 1:case 2:case 3:var t=3;break;default:t=Da}var a=Da;Da=t;try{return e()}finally{Da=a}},Nc=function(){$p=!0},MC=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Da;Da=e;try{return t()}finally{Da=a}},Hn=function(e,t,a){var o=Un.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5000}return r=a+r,e={id:YR++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>o?(e.sortIndex=a,Wp(Nr,e),Ko(sr)===null&&e===Ko(Nr)&&(Iu?(AC(Au),Au=-1):Iu=!0,tm(em,a-o))):(e.sortIndex=r,Wp(sr,e),Su||Qp||(Su=!0,Ql||(Ql=!0,Zl()))),e},zc=RC,OC=function(e){var t=Da;return function(){var a=Da;Da=t;try{return e.apply(this,arguments)}finally{Da=a}}};W();function PC(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PC)}catch(e){console.error(e)}}W();function BC(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zr(){}var Tu={d:{f:zr,r:function(){throw Error(BC(522))},D:zr,C:zr,L:zr,m:zr,X:zr,S:zr,M:zr},p:0,findDOMNode:null},WR=Symbol.for("react.portal");function KR(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:WR,key:o==null?null:""+o,children:e,containerInfo:t,implementation:a}}var am=jl;var om=Tu,Fr=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(BC(299));return KR(e,t,null,a)},_n=function(e){var t=am.T,a=Tu.p;try{if(am.T=null,Tu.p=2,e)return e()}finally{am.T=t,Tu.p=a,Tu.d.f()}};var Jl=function(e,t){return e(t)};PC();function O(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ZR(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hi(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function nb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function lb(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function NC(e){if(hi(e)!==e)throw Error(O(188))}function QR(e){var t=e.alternate;if(!t){if(t=hi(e),t===null)throw Error(O(188));return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return NC(r),e;if(n===o)return NC(r),t;n=n.sibling}throw Error(O(188))}if(a.return!==o.return)a=r,o=n;else{for(var l=!1,s=r.child;s;){if(s===a){l=!0,a=r,o=n;break}if(s===o){l=!0,o=r,a=n;break}s=s.sibling}if(!l){for(s=n.child;s;){if(s===a){l=!0,a=n,o=r;break}if(s===o){l=!0,o=n,a=r;break}s=s.sibling}if(!l)throw Error(O(189))}}if(a.alternate!==o)throw Error(O(190))}if(a.tag!==3)throw Error(O(188));return a.stateNode.current===a?e:t}function sb(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=sb(e),t!==null)return t;e=e.sibling}return null}var Et=Object.assign,JR=Symbol.for("react.element"),Fc=Symbol.for("react.transitional.element"),Ou=Symbol.for("react.portal"),ns=Symbol.for("react.fragment"),ub=Symbol.for("react.strict_mode"),Nm=Symbol.for("react.profiler"),ib=Symbol.for("react.consumer"),hr=Symbol.for("react.context"),Oh=Symbol.for("react.forward_ref"),zm=Symbol.for("react.suspense"),Fm=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),Um=Symbol.for("react.activity"),$R=Symbol.for("react.memo_cache_sentinel"),zC=Symbol.iterator;function wu(e){if(e===null||typeof e!=="object")return null;return e=zC&&e[zC]||e["@@iterator"],typeof e==="function"?e:null}var eD=Symbol.for("react.client.reference");function qm(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===eD?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case ns:return"Fragment";case Nm:return"Profiler";case ub:return"StrictMode";case zm:return"Suspense";case Fm:return"SuspenseList";case Um:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case Ou:return"Portal";case hr:return e.displayName||"Context";case ib:return(e._context.displayName||"Context")+".Consumer";case Oh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bh:return t=e.displayName||null,t!==null?t:qm(e.type)||"Memo";case Ur:t=e._payload,e=e._init;try{return qm(e(t))}catch(a){}}return null}var Bu=Array.isArray,Ee=jl,it=om,Kn={pending:!1,data:null,method:null,action:null},Hm=[],ls=-1;function er(e){return{current:e}}function ha(e){0>ls||(e.current=Hm[ls],Hm[ls]=null,ls--)}function It(e,t){ls++,Hm[ls]=e.current,e.current=t}var $o=er(null),ti=er(null),Zr=er(null),hf=er(null);function gf(e,t){switch(It(Zr,t),It(ti,e),It($o,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?_y(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_y(t),e=RS(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ha($o),It($o,e)}function Is(){ha($o),ha(ti),ha(Zr)}function _m(e){e.memoizedState!==null&&It(hf,e);var t=$o.current,a=RS(t,e.type);t!==a&&(It(ti,e),It($o,a))}function xf(e){ti.current===e&&(ha($o),ha(ti)),hf.current===e&&(ha(hf),di._currentValue=Kn)}var rm,FC;function Gn(e){if(rm===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);rm=t&&t[1]||"",FC=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+rm+e+FC}var nm=!1;function lm(e,t){if(!e||nm)return"";nm=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack==="string")return[p.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),l=n[0],s=n[1];if(l&&s){var u=l.split(`
4
+ `),i=s.split(`
5
+ `);for(r=o=0;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;for(;r<i.length&&!i[r].includes("DetermineComponentFrameRoot");)r++;if(o===u.length||r===i.length)for(o=u.length-1,r=i.length-1;1<=o&&0<=r&&u[o]!==i[r];)r--;for(;1<=o&&0<=r;o--,r--)if(u[o]!==i[r]){if(o!==1||r!==1)do if(o--,r--,0>r||u[o]!==i[r]){var c=`
6
+ `+u[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{nm=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Gn(a):""}function tD(e,t){switch(e.tag){case 26:case 27:case 5:return Gn(e.type);case 16:return Gn("Lazy");case 13:return e.child!==t&&t!==null?Gn("Suspense Fallback"):Gn("Suspense");case 19:return Gn("SuspenseList");case 0:case 15:return lm(e.type,!1);case 11:return lm(e.type.render,!1);case 1:return lm(e.type,!0);case 31:return Gn("Activity");default:return""}}function UC(e){try{var t="",a=null;do t+=tD(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
7
+ Error generating stack: `+o.message+`
8
+ `+o.stack}}var Vm=Object.prototype.hasOwnProperty,Ph=Hn,sm=Bc,aD=zc,oD=Nc,to=No,rD=Pc,cb=Ec,fb=Oc,vf=qn,nD=Mc,db=kc,lD=void 0,sD=void 0,gi=null,ao=null;function Xr(e){if(typeof lD==="function"&&sD(e),ao&&typeof ao.setStrictMode==="function")try{ao.setStrictMode(gi,e)}catch(t){}}var oo=Math.clz32?Math.clz32:cD,{log:uD,LN2:iD}=Math;function cD(e){return e>>>=0,e===0?32:31-(uD(e)/iD|0)|0}var Uc=256,qc=262144,Hc=4194304;function Xn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&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 Gf(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~n,o!==0?r=Xn(o):(l&=s,l!==0?r=Xn(l):a||(a=s&~e,a!==0&&(r=Xn(a))))):(s=o&~n,s!==0?r=Xn(s):l!==0?r=Xn(l):a||(a=o&~e,a!==0&&(r=Xn(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fD(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;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 pb(){var e=Hc;return Hc<<=1,(Hc&62914560)===0&&(Hc=4194304),e}function um(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Xf(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dD(e,t,a,o,r,n){var l=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:s,expirationTimes:u,hiddenUpdates:i}=e;for(a=l&~a;0<a;){var c=31-oo(a),d=1<<c;s[c]=0,u[c]=-1;var f=i[c];if(f!==null)for(i[c]=null,c=0;c<f.length;c++){var p=f[c];p!==null&&(p.lane&=-536870913)}a&=~d}o!==0&&mb(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(l&~t))}function mb(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-oo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function hb(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-oo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function gb(e,t){var a=t&-t;return a=(a&42)!==0?1:xb(a),(a&(e.suspendedLanes|t))!==0?0:a}function xb(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 Nh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vb(){var e=it.p;if(e!==0)return e;return e=window.event,e===void 0?32:zS(e.type)}function qC(e,t){var a=it.p;try{return it.p=e,t()}finally{it.p=a}}var sn=Math.random().toString(36).slice(2),La="__reactFiber$"+sn,Ya="__reactProps$"+sn,vi="__reactContainer$"+sn,Gm="__reactEvents$"+sn,pD="__reactListeners$"+sn,mD="__reactHandles$"+sn,HC="__reactResources$"+sn,Ci="__reactMarker$"+sn;function zh(e){delete e[La],delete e[Ya],delete e[Gm],delete e[pD],delete e[mD]}function ss(e){var t=e[La];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vi]||a[La]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Yy(e);e!==null;){if(a=e[La])return a;e=Yy(e)}return t}e=a,a=e.parentNode}return null}function Ps(e){if(e=e[La]||e[vi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(O(33))}function xs(e){var t=e[HC];return t||(t=e[HC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ma(e){e[Ci]=!0}var Cb=new Set,yb={};function sl(e,t){As(e,t),As(e+"Capture",t)}function As(e,t){yb[e]=t;for(e=0;e<t.length;e++)Cb.add(t[e])}var hD=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]*$"),_C={},VC={};function gD(e){if(Vm.call(VC,e))return!0;if(Vm.call(_C,e))return!1;if(hD.test(e))return VC[e]=!0;return _C[e]=!0,!1}function Jc(e,t,a){if(gD(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _c(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ur(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xD(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:r,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){a=""+l,n.call(this,l)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(l){a=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xm(e){if(!e._valueTracker){var t=bb(e)?"checked":"value";e._valueTracker=xD(e,t,""+e[t])}}function Lb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=bb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Cf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vD=/[\n"\\]/g;function vo(e){return e.replace(vD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jm(e,t,a,o,r,n,l,s){if(e.name="",l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"?e.type=l:e.removeAttribute("type"),t!=null)if(l==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+ho(t)}else e.value!==""+ho(t)&&(e.value=""+ho(t));else l!=="submit"&&l!=="reset"||e.removeAttribute("value");t!=null?Ym(e,l,ho(t)):a!=null?Ym(e,l,ho(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?e.name=""+ho(s):e.removeAttribute("name")}function Sb(e,t,a,o,r,n,l,s){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){Xm(e);return}a=a!=null?""+ho(a):"",t=t!=null?""+ho(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(e.name=l),Xm(e)}function Ym(e,t,a){t==="number"&&Cf(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function vs(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{a=""+ho(a),t=null;for(r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ib(e,t,a){if(t!=null&&(t=""+ho(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ho(a):""}function Ab(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(O(92));if(Bu(o)){if(1<o.length)throw Error(O(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=ho(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Xm(e)}function Ts(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var CD=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 GC(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||CD.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Tb(e,t,a){if(t!=null&&typeof t!=="object")throw Error(O(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var r in t)o=t[r],t.hasOwnProperty(r)&&a[r]!==o&&GC(e,r,o)}else for(var n in t)t.hasOwnProperty(n)&&GC(e,n,t[n])}function Fh(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 yD=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"]]),bD=/^[\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 $c(e){return bD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gr(){}var Wm=null;function Uh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,Cs=null;function XC(e){var t=Ps(e);if(t&&(e=t.stateNode)){var a=e[Ya]||null;e:switch(e=t.stateNode,t.type){case"input":if(jm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+vo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[Ya]||null;if(!r)throw Error(O(90));jm(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Lb(o)}break e;case"textarea":Ib(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&vs(e,!!a.multiple,t,!1)}}}var im=!1;function wb(e,t,a){if(im)return e(t,a);im=!0;try{var o=e(t);return o}finally{if(im=!1,us!==null||Cs!==null){if(od(),us&&(t=us,e=Cs,Cs=us=null,XC(t),e))for(t=0;t<e.length;t++)XC(e[t])}}}function ai(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Ya]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(O(231,t,typeof a));return a}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Km=!1;if(br)try{jn={},Object.defineProperty(jn,"passive",{get:function(){Km=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch(e){Km=!1}var jn,jr=null,qh=null,ef=null;function Rb(){if(ef)return ef;var e,t=qh,a=t.length,o,r="value"in jr?jr.value:jr.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var l=a-e;for(o=1;o<=l&&t[a-o]===r[n-o];o++);return ef=r.slice(e,1<o?1-o:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vc(){return!0}function jC(){return!1}function Wa(e){function t(a,o,r,n,l){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(n):n[s]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Vc:jC,this.isPropagationStopped=jC,this}return Et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),t}var ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=Wa(ul),yi=Et({},ul,{view:0,detail:0}),LD=Wa(yi),cm,fm,Ru,Yf=Et({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hh,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){if("movementX"in e)return e.movementX;return e!==Ru&&(Ru&&e.type==="mousemove"?(cm=e.screenX-Ru.screenX,fm=e.screenY-Ru.screenY):fm=cm=0,Ru=e),cm},movementY:function(e){return"movementY"in e?e.movementY:fm}}),YC=Wa(Yf),SD=Et({},Yf,{dataTransfer:0}),ID=Wa(SD),AD=Et({},yi,{relatedTarget:0}),dm=Wa(AD),TD=Et({},ul,{animationName:0,elapsedTime:0,pseudoElement:0}),wD=Wa(TD),RD=Et({},ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DD=Wa(RD),kD=Et({},ul,{data:0}),WC=Wa(kD),ED={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MD={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"},OD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OD[e])?!!t[e]:!1}function Hh(){return BD}var PD=Et({},yi,{key:function(e){if(e.key){var t=ED[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hh,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ND=Wa(PD),zD=Et({},Yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KC=Wa(zD),FD=Et({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hh}),UD=Wa(FD),qD=Et({},ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),HD=Wa(qD),_D=Et({},Yf,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),VD=Wa(_D),GD=Et({},ul,{newState:0,oldState:0}),XD=Wa(GD),jD=[9,13,27,32],_h=br&&"CompositionEvent"in window,_u=null;br&&"documentMode"in document&&(_u=document.documentMode);var YD=br&&"TextEvent"in window&&!_u,Db=br&&(!_h||_u&&8<_u&&11>=_u),ZC=String.fromCharCode(32),QC=!1;function kb(e,t){switch(e){case"keyup":return jD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var is=!1;function WD(e,t){switch(e){case"compositionend":return Eb(t);case"keypress":if(t.which!==32)return null;return QC=!0,ZC;case"textInput":return e=t.data,e===ZC&&QC?null:e;default:return null}}function KD(e,t){if(is)return e==="compositionend"||!_h&&kb(e,t)?(e=Rb(),ef=qh=jr=null,is=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Db&&t.locale!=="ko"?null:t.data;default:return null}}var ZD={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 JC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ZD[e.type]:t==="textarea"?!0:!1}function Mb(e,t,a,o){us?Cs?Cs.push(o):Cs=[o]:us=o,t=zf(t,"onChange"),0<t.length&&(a=new jf("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Vu=null,oi=null;function QD(e){IS(e,0)}function Wf(e){var t=Pu(e);if(Lb(t))return e}function $C(e,t){if(e==="change")return t}var Ob=!1;if(br){if(br){if(zu="oninput"in document,!zu)af=document.createElement("div"),af.setAttribute("oninput","return;"),zu=typeof af.oninput==="function";Nu=zu}else Nu=!1;Ob=Nu&&(!document.documentMode||9<document.documentMode)}var Nu,zu,af;function ey(){Vu&&(Vu.detachEvent("onpropertychange",Bb),oi=Vu=null)}function Bb(e){if(e.propertyName==="value"&&Wf(oi)){var t=[];Mb(t,oi,e,Uh(e)),wb(QD,t)}}function JD(e,t,a){e==="focusin"?(ey(),Vu=t,oi=a,Vu.attachEvent("onpropertychange",Bb)):e==="focusout"&&ey()}function $D(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wf(oi)}function ek(e,t){if(e==="click")return Wf(t)}function tk(e,t){if(e==="input"||e==="change")return Wf(t)}function ak(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ro=typeof Object.is==="function"?Object.is:ak;function ri(e,t){if(ro(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!Vm.call(t,r)||!ro(e[r],t[r]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ay(e,t){var a=ty(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ty(a)}}function Pb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pb(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cf(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Cf(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ok=br&&"documentMode"in document&&11>=document.documentMode,cs=null,Zm=null,Gu=null,Qm=!1;function oy(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Qm||cs==null||cs!==Cf(o)||(o=cs,("selectionStart"in o)&&Vh(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}),Gu&&ri(Gu,o)||(Gu=o,o=zf(Zm,"onSelect"),0<o.length&&(t=new jf("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=cs)))}function Vn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fs={animationend:Vn("Animation","AnimationEnd"),animationiteration:Vn("Animation","AnimationIteration"),animationstart:Vn("Animation","AnimationStart"),transitionrun:Vn("Transition","TransitionRun"),transitionstart:Vn("Transition","TransitionStart"),transitioncancel:Vn("Transition","TransitionCancel"),transitionend:Vn("Transition","TransitionEnd")},pm={},zb={};br&&(zb=document.createElement("div").style,("AnimationEvent"in window)||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),("TransitionEvent"in window)||delete fs.transitionend.transition);function il(e){if(pm[e])return pm[e];if(!fs[e])return e;var t=fs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in zb)return pm[e]=t[a];return e}var Fb=il("animationend"),Ub=il("animationiteration"),qb=il("animationstart"),rk=il("transitionrun"),nk=il("transitionstart"),lk=il("transitioncancel"),Hb=il("transitionend"),_b=new Map,Jm="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(" ");Jm.push("scrollEnd");function Uo(e,t){_b.set(e,t),sl(t,[e])}var yf=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},mo=[],ds=0,Gh=0;function Kf(){for(var e=ds,t=Gh=ds=0;t<e;){var a=mo[t];mo[t++]=null;var o=mo[t];mo[t++]=null;var r=mo[t];mo[t++]=null;var n=mo[t];if(mo[t++]=null,o!==null&&r!==null){var l=o.pending;l===null?r.next=r:(r.next=l.next,l.next=r),o.pending=r}n!==0&&Vb(a,r,n)}}function Zf(e,t,a,o){mo[ds++]=e,mo[ds++]=t,mo[ds++]=a,mo[ds++]=o,Gh|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Xh(e,t,a,o){return Zf(e,t,a,o),bf(e)}function cl(e,t){return Zf(e,null,null,t),bf(e)}function Vb(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-oo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function bf(e){if(50<$u)throw $u=0,Ch=null,Error(O(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ps={};function sk(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $a(e,t,a,o){return new sk(e,t,a,o)}function jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vr(e,t){var a=e.alternate;return a===null?(a=$a(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Gb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function of(e,t,a,o,r,n){var l=0;if(o=e,typeof e==="function")jh(e)&&(l=1);else if(typeof e==="string")l=pE(e,a,$o.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Um:return e=$a(31,a,t,r),e.elementType=Um,e.lanes=n,e;case ns:return Zn(a.children,r,n,t);case ub:l=8,r|=24;break;case Nm:return e=$a(12,a,t,r|2),e.elementType=Nm,e.lanes=n,e;case zm:return e=$a(13,a,t,r),e.elementType=zm,e.lanes=n,e;case Fm:return e=$a(19,a,t,r),e.elementType=Fm,e.lanes=n,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case hr:l=10;break e;case ib:l=9;break e;case Oh:l=11;break e;case Bh:l=14;break e;case Ur:l=16,o=null;break e}l=29,a=Error(O(130,e===null?"null":typeof e,"")),o=null}return t=$a(l,a,t,r),t.elementType=e,t.type=o,t.lanes=n,t}function Zn(e,t,a,o){return e=$a(7,e,o,t),e.lanes=a,e}function mm(e,t,a){return e=$a(6,e,null,t),e.lanes=a,e}function Xb(e){var t=$a(18,null,null,0);return t.stateNode=e,t}function hm(e,t,a){return t=$a(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ry=new WeakMap;function Co(e,t){if(typeof e==="object"&&e!==null){var a=ry.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:UC(t)},ry.set(e,t),t}return{value:e,source:t,stack:UC(t)}}var ms=[],hs=0,Lf=null,ni=0,go=[],xo=0,on=null,Zo=1,Qo="";function pr(e,t){ms[hs++]=ni,ms[hs++]=Lf,Lf=e,ni=t}function jb(e,t,a){go[xo++]=Zo,go[xo++]=Qo,go[xo++]=on,on=e;var o=Zo;e=Qo;var r=32-oo(o)-1;o&=~(1<<r),a+=1;var n=32-oo(t)+r;if(30<n){var l=r-r%5;n=(o&(1<<l)-1).toString(32),o>>=l,r-=l,Zo=1<<32-oo(t)+r|a<<r|o,Qo=n+e}else Zo=1<<n|a<<r|o,Qo=e}function Yh(e){e.return!==null&&(pr(e,1),jb(e,1,0))}function Wh(e){for(;e===Lf;)Lf=ms[--hs],ms[hs]=null,ni=ms[--hs],ms[hs]=null;for(;e===on;)on=go[--xo],go[xo]=null,Qo=go[--xo],go[xo]=null,Zo=go[--xo],go[xo]=null}function Yb(e,t){go[xo++]=Zo,go[xo++]=Qo,go[xo++]=on,Zo=t.id,Qo=t.overflow,on=e}var Sa=null,kt=null,$e=!1,Qr=null,yo=!1,$m=Error(O(519));function rn(e){var t=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw li(Co(t,e)),$m}function ny(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[La]=e,t[Ya]=o,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<ci.length;a++)je(ci[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Sb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Ab(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||wS(t.textContent,a)?(o.popover!=null&&(je("beforetoggle",t),je("toggle",t)),o.onScroll!=null&&je("scroll",t),o.onScrollEnd!=null&&je("scrollend",t),o.onClick!=null&&(t.onclick=gr),t=!0):t=!1,t||rn(e,!0)}function ly(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:yo=!1;return;case 27:case 3:yo=!0;return;default:Sa=Sa.return}}function es(e){if(e!==Sa)return!1;if(!$e)return ly(e),$e=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Th(e.type,e.memoizedProps);a=!a}if(a&&kt&&rn(e),ly(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));kt=jy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));kt=jy(e)}else t===27?(t=kt,un(e.type)?(e=kh,kh=null,kt=e):kt=t):kt=Sa?So(e.stateNode.nextSibling):null;return!0}function al(){kt=Sa=null,$e=!1}function gm(){var e=Qr;return e!==null&&(Xa===null?Xa=e:Xa.push.apply(Xa,e),Qr=null),e}function li(e){Qr===null?Qr=[e]:Qr.push(e)}var eh=er(null),fl=null,xr=null;function Hr(e,t,a){It(eh,t._currentValue),t._currentValue=a}function Cr(e){e._currentValue=eh.current,ha(eh)}function th(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function ah(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var n=r.dependencies;if(n!==null){var l=r.child;n=n.firstContext;e:for(;n!==null;){var s=n;n=r;for(var u=0;u<t.length;u++)if(s.context===t[u]){n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),th(n.return,a,e),o||(l=null);break e}n=s.next}}else if(r.tag===18){if(l=r.return,l===null)throw Error(O(341));l.lanes|=a,n=l.alternate,n!==null&&(n.lanes|=a),th(l,a,e),l=null}else l=r.child;if(l!==null)l.return=r;else for(l=r;l!==null;){if(l===e){l=null;break}if(r=l.sibling,r!==null){r.return=l.return,l=r;break}l=l.return}r=l}}function Ns(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var l=r.alternate;if(l===null)throw Error(O(387));if(l=l.memoizedProps,l!==null){var s=r.type;ro(r.pendingProps.value,l.value)||(e!==null?e.push(s):e=[s])}}else if(r===hf.current){if(l=r.alternate,l===null)throw Error(O(387));l.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(di):e=[di])}r=r.return}e!==null&&ah(t,e,a,o),t.flags|=262144}function Sf(e){for(e=e.firstContext;e!==null;){if(!ro(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){fl=e,xr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ia(e){return Wb(fl,e)}function Gc(e,t){return fl===null&&ol(e),Wb(e,t)}function Wb(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xr===null){if(e===null)throw Error(O(308));xr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xr=xr.next=t;return a}var uk=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ik=Hn,ck=qn,oa={$$typeof:hr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kh(){return{controller:new uk,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&ik(ck,function(){e.controller.abort()})}var Xu=null,oh=0,ws=0,ys=null;function fk(e,t){if(Xu===null){var a=Xu=[];oh=0,ws=yg(),ys={status:"pending",value:void 0,then:function(o){a.push(o)}}}return oh++,t.then(sy,sy),t}function sy(){if(--oh===0&&Xu!==null){ys!==null&&(ys.status="fulfilled");var e=Xu;Xu=null,ws=0,ys=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dk(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){o.status="rejected",o.reason=r;for(r=0;r<a.length;r++)(0,a[r])(void 0)}),o}var uy=Ee.S;Ee.S=function(e,t){nS=to(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&fk(e,t),uy!==null&&uy(e,t)};var Qn=er(null);function Zh(){var e=Qn.current;return e!==null?e:Lt.pooledCache}function rf(e,t){t===null?It(Qn,Qn.current):It(Qn,t.pool)}function Kb(){var e=Zh();return e===null?null:{parent:oa._currentValue,pool:e}}var zs=Error(O(460)),Qh=Error(O(474)),Qf=Error(O(542)),If={then:function(){}};function iy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zb(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(gr,gr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fy(e),e;default:if(typeof t.status==="string")t.then(gr,gr);else{if(e=Lt,e!==null&&100<e.shellSuspendCounter)throw Error(O(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fy(e),e}throw Jn=t,zs}}function Yn(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw Jn=a,zs;throw a}}var Jn=null;function cy(){if(Jn===null)throw Error(O(459));var e=Jn;return Jn=null,e}function fy(e){if(e===zs||e===Qf)throw Error(O(483))}var bs=null,si=0;function Xc(e){var t=si;return si+=1,bs===null&&(bs=[]),Zb(bs,e,t)}function Du(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function jc(e,t){if(t.$$typeof===JR)throw Error(O(525));throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qb(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function a(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function o(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function r(m,h){return m=vr(m,h),m.index=0,m.sibling=null,m}function n(m,h,x){if(m.index=x,!e)return m.flags|=1048576,h;if(x=m.alternate,x!==null)return x=x.index,x<h?(m.flags|=67108866,h):x;return m.flags|=67108866,h}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,h,x,C){if(h===null||h.tag!==6)return h=mm(x,m.mode,C),h.return=m,h;return h=r(h,x),h.return=m,h}function u(m,h,x,C){var I=x.type;if(I===ns)return c(m,h,x.props.children,C,x.key);if(h!==null&&(h.elementType===I||typeof I==="object"&&I!==null&&I.$$typeof===Ur&&Yn(I)===h.type))return h=r(h,x.props),Du(h,x),h.return=m,h;return h=of(x.type,x.key,x.props,null,m.mode,C),Du(h,x),h.return=m,h}function i(m,h,x,C){if(h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation)return h=hm(x,m.mode,C),h.return=m,h;return h=r(h,x.children||[]),h.return=m,h}function c(m,h,x,C,I){if(h===null||h.tag!==7)return h=Zn(x,m.mode,C,I),h.return=m,h;return h=r(h,x),h.return=m,h}function d(m,h,x){if(typeof h==="string"&&h!==""||typeof h==="number"||typeof h==="bigint")return h=mm(""+h,m.mode,x),h.return=m,h;if(typeof h==="object"&&h!==null){switch(h.$$typeof){case Fc:return x=of(h.type,h.key,h.props,null,m.mode,x),Du(x,h),x.return=m,x;case Ou:return h=hm(h,m.mode,x),h.return=m,h;case Ur:return h=Yn(h),d(m,h,x)}if(Bu(h)||wu(h))return h=Zn(h,m.mode,x,null),h.return=m,h;if(typeof h.then==="function")return d(m,Xc(h),x);if(h.$$typeof===hr)return d(m,Gc(m,h),x);jc(m,h)}return null}function f(m,h,x,C){var I=h!==null?h.key:null;if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return I!==null?null:s(m,h,""+x,C);if(typeof x==="object"&&x!==null){switch(x.$$typeof){case Fc:return x.key===I?u(m,h,x,C):null;case Ou:return x.key===I?i(m,h,x,C):null;case Ur:return x=Yn(x),f(m,h,x,C)}if(Bu(x)||wu(x))return I!==null?null:c(m,h,x,C,null);if(typeof x.then==="function")return f(m,h,Xc(x),C);if(x.$$typeof===hr)return f(m,h,Gc(m,x),C);jc(m,x)}return null}function p(m,h,x,C,I){if(typeof C==="string"&&C!==""||typeof C==="number"||typeof C==="bigint")return m=m.get(x)||null,s(h,m,""+C,I);if(typeof C==="object"&&C!==null){switch(C.$$typeof){case Fc:return m=m.get(C.key===null?x:C.key)||null,u(h,m,C,I);case Ou:return m=m.get(C.key===null?x:C.key)||null,i(h,m,C,I);case Ur:return C=Yn(C),p(m,h,x,C,I)}if(Bu(C)||wu(C))return m=m.get(x)||null,c(h,m,C,I,null);if(typeof C.then==="function")return p(m,h,x,Xc(C),I);if(C.$$typeof===hr)return p(m,h,x,Gc(h,C),I);jc(h,C)}return null}function g(m,h,x,C){for(var I=null,b=null,S=h,y=h=0,T=null;S!==null&&y<x.length;y++){S.index>y?(T=S,S=null):T=S.sibling;var w=f(m,S,x[y],C);if(w===null){S===null&&(S=T);break}e&&S&&w.alternate===null&&t(m,S),h=n(w,h,y),b===null?I=w:b.sibling=w,b=w,S=T}if(y===x.length)return a(m,S),$e&&pr(m,y),I;if(S===null){for(;y<x.length;y++)S=d(m,x[y],C),S!==null&&(h=n(S,h,y),b===null?I=S:b.sibling=S,b=S);return $e&&pr(m,y),I}for(S=o(S);y<x.length;y++)T=p(S,m,y,x[y],C),T!==null&&(e&&T.alternate!==null&&S.delete(T.key===null?y:T.key),h=n(T,h,y),b===null?I=T:b.sibling=T,b=T);return e&&S.forEach(function(D){return t(m,D)}),$e&&pr(m,y),I}function v(m,h,x,C){if(x==null)throw Error(O(151));for(var I=null,b=null,S=h,y=h=0,T=null,w=x.next();S!==null&&!w.done;y++,w=x.next()){S.index>y?(T=S,S=null):T=S.sibling;var D=f(m,S,w.value,C);if(D===null){S===null&&(S=T);break}e&&S&&D.alternate===null&&t(m,S),h=n(D,h,y),b===null?I=D:b.sibling=D,b=D,S=T}if(w.done)return a(m,S),$e&&pr(m,y),I;if(S===null){for(;!w.done;y++,w=x.next())w=d(m,w.value,C),w!==null&&(h=n(w,h,y),b===null?I=w:b.sibling=w,b=w);return $e&&pr(m,y),I}for(S=o(S);!w.done;y++,w=x.next())w=p(S,m,y,w.value,C),w!==null&&(e&&w.alternate!==null&&S.delete(w.key===null?y:w.key),h=n(w,h,y),b===null?I=w:b.sibling=w,b=w);return e&&S.forEach(function(M){return t(m,M)}),$e&&pr(m,y),I}function L(m,h,x,C){if(typeof x==="object"&&x!==null&&x.type===ns&&x.key===null&&(x=x.props.children),typeof x==="object"&&x!==null){switch(x.$$typeof){case Fc:e:{for(var I=x.key;h!==null;){if(h.key===I){if(I=x.type,I===ns){if(h.tag===7){a(m,h.sibling),C=r(h,x.props.children),C.return=m,m=C;break e}}else if(h.elementType===I||typeof I==="object"&&I!==null&&I.$$typeof===Ur&&Yn(I)===h.type){a(m,h.sibling),C=r(h,x.props),Du(C,x),C.return=m,m=C;break e}a(m,h);break}else t(m,h);h=h.sibling}x.type===ns?(C=Zn(x.props.children,m.mode,C,x.key),C.return=m,m=C):(C=of(x.type,x.key,x.props,null,m.mode,C),Du(C,x),C.return=m,m=C)}return l(m);case Ou:e:{for(I=x.key;h!==null;){if(h.key===I)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){a(m,h.sibling),C=r(h,x.children||[]),C.return=m,m=C;break e}else{a(m,h);break}else t(m,h);h=h.sibling}C=hm(x,m.mode,C),C.return=m,m=C}return l(m);case Ur:return x=Yn(x),L(m,h,x,C)}if(Bu(x))return g(m,h,x,C);if(wu(x)){if(I=wu(x),typeof I!=="function")throw Error(O(150));return x=I.call(x),v(m,h,x,C)}if(typeof x.then==="function")return L(m,h,Xc(x),C);if(x.$$typeof===hr)return L(m,h,Gc(m,x),C);jc(m,x)}return typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint"?(x=""+x,h!==null&&h.tag===6?(a(m,h.sibling),C=r(h,x),C.return=m,m=C):(a(m,h),C=mm(x,m.mode,C),C.return=m,m=C),l(m)):a(m,h)}return function(m,h,x,C){try{si=0;var I=L(m,h,x,C);return bs=null,I}catch(S){if(S===zs||S===Qf)throw S;var b=$a(29,S,null,m.mode);return b.lanes=C,b.return=m,b}finally{}}}var rl=Qb(!0),Jb=Qb(!1),qr=!1;function Jh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function el(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ut&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=bf(e),Vb(e,null,a),t}return Zf(e,o,t,a),bf(e)}function ju(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,hb(e,a)}}function xm(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var l={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=l:n=n.next=l,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var nh=!1;function Yu(){if(nh){var e=ys;if(e!==null)throw e}}function Wu(e,t,a,o){nh=!1;var r=e.updateQueue;qr=!1;var{firstBaseUpdate:n,lastBaseUpdate:l}=r,s=r.shared.pending;if(s!==null){r.shared.pending=null;var u=s,i=u.next;u.next=null,l===null?n=i:l.next=i,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=i:s.next=i,c.lastBaseUpdate=u))}if(n!==null){var d=r.baseState;l=0,c=i=u=null,s=n;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Ze&f)===f:(o&f)===f){f!==0&&f===ws&&(nh=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,v=s;f=t;var L=a;switch(v.tag){case 1:if(g=v.payload,typeof g==="function"){d=g.call(L,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g==="function"?g.call(L,d,f):g,f===null||f===void 0)break e;d=Et({},d,f);break e;case 2:qr=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=r.callbacks,p===null?r.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(i=c=p,u=d):c=c.next=p,l|=f;if(s=s.next,s===null)if(s=r.shared.pending,s===null)break;else p=s,s=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}while(1);c===null&&(u=d),r.baseState=u,r.firstBaseUpdate=i,r.lastBaseUpdate=c,n===null&&(r.shared.lanes=0),ln|=l,e.lanes=l,e.memoizedState=d}}function $b(e,t){if(typeof e!=="function")throw Error(O(191,e));e.call(t)}function eL(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)$b(a[e],t)}var Rs=er(null),Af=er(0);function dy(e,t){e=Ar,It(Af,e),It(Rs,t),Ar=e|t.baseLanes}function lh(){It(Af,Ar),It(Rs,Rs.current)}function $h(){Ar=Af.current,ha(Rs),ha(Af)}var no=er(null),bo=null;function _r(e){var t=e.alternate;It(Zt,Zt.current&1),It(no,e),bo===null&&(t===null||Rs.current!==null?bo=e:t.memoizedState!==null&&(bo=e))}function sh(e){It(Zt,Zt.current),It(no,e),bo===null&&(bo=e)}function tL(e){e.tag===22?(It(Zt,Zt.current),It(no,e),bo===null&&(bo=e)):Vr(e)}function Vr(){It(Zt,Zt.current),It(no,no.current)}function Ja(e){ha(no),bo===e&&(bo=null),ha(Zt)}var Zt=er(0);function Tf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rh(a)||Dh(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lr=0,Ne=null,yt=null,ta=null,wf=!1,Ls=!1,nl=!1,Rf=0,ui=0,Ss=null,pk=0;function Gt(){throw Error(O(321))}function eg(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ro(e[a],t[a]))return!1;return!0}function tg(e,t,a,o,r,n){return Lr=n,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?ML:dg,nl=!1,n=a(o,r),nl=!1,Ls&&(n=oL(t,a,o,r)),aL(e),n}function aL(e){Ee.H=ii;var t=yt!==null&&yt.next!==null;if(Lr=0,ta=yt=Ne=null,wf=!1,ui=0,Ss=null,t)throw Error(O(300));e===null||ra||(e=e.dependencies,e!==null&&Sf(e)&&(ra=!0))}function oL(e,t,a,o){Ne=e;var r=0;do{if(Ls&&(Ss=null),ui=0,Ls=!1,25<=r)throw Error(O(301));if(r+=1,ta=yt=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Ee.H=OL,n=t(a,o)}while(Ls);return n}function mk(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then==="function"?Li(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ne.flags|=1024),t}function ag(){var e=Rf!==0;return Rf=0,e}function og(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function rg(e){if(wf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wf=!1}Lr=0,ta=yt=Ne=null,Ls=!1,ui=Rf=0,Ss=null}function Fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ta===null?Ne.memoizedState=ta=e:ta=ta.next=e,ta}function Qt(){if(yt===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=ta===null?Ne.memoizedState:ta.next;if(t!==null)ta=t,yt=e;else{if(e===null){if(Ne.alternate===null)throw Error(O(467));throw Error(O(310))}yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},ta===null?Ne.memoizedState=ta=e:ta=ta.next=e}return ta}function Jf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Li(e){var t=ui;return ui+=1,Ss===null&&(Ss=[]),e=Zb(Ss,e,t),t=Ne,(ta===null?t.memoizedState:ta.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?ML:dg),e}function $f(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Li(e);if(e.$$typeof===hr)return Ia(e)}throw Error(O(438,String(e)))}function ng(e){var t=null,a=Ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Jf(),Ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=$R;return t.index++,a}function Sr(e,t){return typeof t==="function"?t(e):t}function nf(e){var t=Qt();return lg(t,yt,e)}function lg(e,t,a){var o=e.queue;if(o===null)throw Error(O(311));o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var l=r.next;r.next=n.next,n.next=l}t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var s=l=null,u=null,i=t,c=!1;do{var d=i.lane&-536870913;if(d!==i.lane?(Ze&d)===d:(Lr&d)===d){var f=i.revertLane;if(f===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),d===ws&&(c=!0);else if((Lr&f)===f){i=i.next,f===ws&&(c=!0);continue}else d={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},u===null?(s=u=d,l=n):u=u.next=d,Ne.lanes|=f,ln|=f;d=i.action,nl&&a(n,d),n=i.hasEagerState?i.eagerState:a(n,d)}else f={lane:d,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},u===null?(s=u=f,l=n):u=u.next=f,Ne.lanes|=d,ln|=d;i=i.next}while(i!==null&&i!==t);if(u===null?l=n:u.next=s,!ro(n,e.memoizedState)&&(ra=!0,c&&(a=ys,a!==null)))throw a;e.memoizedState=n,e.baseState=l,e.baseQueue=u,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function vm(e){var t=Qt(),a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=e;var{dispatch:o,pending:r}=a,n=t.memoizedState;if(r!==null){a.pending=null;var l=r=r.next;do n=e(n,l.action),l=l.next;while(l!==r);ro(n,t.memoizedState)||(ra=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function rL(e,t,a){var o=Ne,r=Qt(),n=$e;if(n){if(a===void 0)throw Error(O(407));a=a()}else a=t();var l=!ro((yt||r).memoizedState,a);if(l&&(r.memoizedState=a,ra=!0),r=r.queue,sg(sL.bind(null,o,r,e),[e]),r.getSnapshot!==t||l||ta!==null&&ta.memoizedState.tag&1){if(o.flags|=2048,Ds(9,{destroy:void 0},lL.bind(null,o,r,a,t),null),Lt===null)throw Error(O(349));n||(Lr&127)!==0||nL(o,t,a)}return a}function nL(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ne.updateQueue,t===null?(t=Jf(),Ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lL(e,t,a,o){t.value=a,t.getSnapshot=o,uL(t)&&iL(e)}function sL(e,t,a){return a(function(){uL(t)&&iL(e)})}function uL(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ro(e,a)}catch(o){return!0}}function iL(e){var t=cl(e,2);t!==null&&ja(t,e,2)}function uh(e){var t=Fa();if(typeof e==="function"){var a=e;if(e=a(),nl){Xr(!0);try{a()}finally{Xr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},t}function cL(e,t,a,o){return e.baseState=a,lg(e,yt,typeof o==="function"?o:Sr)}function hk(e,t,a,o,r){if(td(e))throw Error(O(485));if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){n.listeners.push(l)}};Ee.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,fL(t,n)):(n.next=a.next,t.pending=a.next=n)}}function fL(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var n=Ee.T,l={};Ee.T=l;try{var s=a(r,o),u=Ee.S;u!==null&&u(l,s),py(e,t,s)}catch(i){ih(e,t,i)}finally{n!==null&&l.types!==null&&(n.types=l.types),Ee.T=n}}else try{n=a(r,o),py(e,t,n)}catch(i){ih(e,t,i)}}function py(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){my(e,t,o)},function(o){return ih(e,t,o)}):my(e,t,a)}function my(e,t,a){t.status="fulfilled",t.value=a,dL(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fL(e,a)))}function ih(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,dL(t),t=t.next;while(t!==o)}e.action=null}function dL(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pL(e,t){return t}function hy(e,t){if($e){var a=Lt.formState;if(a!==null){e:{var o=Ne;if($e){if(kt){t:{var r=kt;for(var n=yo;r.nodeType!==8;){if(!n){r=null;break t}if(r=So(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n==="F!"||n==="F"?r:null}if(r){kt=So(r.nextSibling),o=r.data==="F!";break e}}rn(o)}o=!1}o&&(t=a[0])}}return a=Fa(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pL,lastRenderedState:t},a.queue=o,a=DL.bind(null,Ne,o),o.dispatch=a,o=uh(!1),n=fg.bind(null,Ne,!1,o.queue),o=Fa(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=hk.bind(null,Ne,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function gy(e){var t=Qt();return mL(t,yt,e)}function mL(e,t,a){if(t=lg(e,t,pL)[0],e=nf(Sr)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Li(t)}catch(l){if(l===zs)throw Qf;throw l}else o=t;t=Qt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Ne.flags|=2048,Ds(9,{destroy:void 0},gk.bind(null,r,a),null)),[o,n,e]}function gk(e,t){e.action=t}function xy(e){var t=Qt(),a=yt;if(a!==null)return mL(t,a,e);Qt(),t=t.memoizedState,a=Qt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ds(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ne.updateQueue,t===null&&(t=Jf(),Ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function hL(){return Qt().memoizedState}function lf(e,t,a,o){var r=Fa();Ne.flags|=e,r.memoizedState=Ds(1|t,{destroy:void 0},a,o===void 0?null:o)}function ed(e,t,a,o){var r=Qt();o=o===void 0?null:o;var n=r.memoizedState.inst;yt!==null&&o!==null&&eg(o,yt.memoizedState.deps)?r.memoizedState=Ds(t,n,a,o):(Ne.flags|=e,r.memoizedState=Ds(1|t,n,a,o))}function vy(e,t){lf(8390656,8,e,t)}function sg(e,t){ed(2048,8,e,t)}function xk(e){Ne.flags|=4;var t=Ne.updateQueue;if(t===null)t=Jf(),Ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function gL(e){var t=Qt().memoizedState;return xk({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(O(440));return t.impl.apply(void 0,arguments)}}function xL(e,t){return ed(4,2,e,t)}function vL(e,t){return ed(4,4,e,t)}function CL(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function yL(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,ed(4,4,CL.bind(null,t,e),a)}function ug(){}function bL(e,t){var a=Qt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&eg(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function LL(e,t){var a=Qt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&eg(t,o[1]))return o[0];if(o=e(),nl){Xr(!0);try{e()}finally{Xr(!1)}}return a.memoizedState=[o,t],o}function ig(e,t,a){if(a===void 0||(Lr&1073741824)!==0&&(Ze&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=sS(),Ne.lanes|=e,ln|=e,a}function SL(e,t,a,o){if(ro(a,t))return a;if(Rs.current!==null)return e=ig(e,a,o),ro(e,t)||(ra=!0),e;if((Lr&42)===0||(Lr&1073741824)!==0&&(Ze&261930)===0)return ra=!0,e.memoizedState=a;return e=sS(),Ne.lanes|=e,ln|=e,t}function IL(e,t,a,o,r){var n=it.p;it.p=n!==0&&8>n?n:8;var l=Ee.T,s={};Ee.T=s,fg(e,!1,t,a);try{var u=r(),i=Ee.S;if(i!==null&&i(s,u),u!==null&&typeof u==="object"&&typeof u.then==="function"){var c=dk(u,o);Ku(e,t,c,Lo(e))}else Ku(e,t,o,Lo(e))}catch(d){Ku(e,t,{then:function(){},status:"rejected",reason:d},Lo())}finally{it.p=n,l!==null&&s.types!==null&&(l.types=s.types),Ee.T=l}}function vk(){}function ch(e,t,a,o){if(e.tag!==5)throw Error(O(476));var r=AL(e).queue;IL(e,r,t,Kn,a===null?vk:function(){return TL(e),a(o)})}function AL(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Kn,baseState:Kn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:Kn},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function TL(e){var t=AL(e);t.next===null&&(t=e.alternate.memoizedState),Ku(e,t.next.queue,{},Lo())}function cg(){return Ia(di)}function wL(){return Qt().memoizedState}function RL(){return Qt().memoizedState}function Ck(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Lo();e=$n(a);var o=el(t,e,a);o!==null&&(ja(o,t,a),ju(o,t,a)),t={cache:Kh()},e.payload=t;return}t=t.return}}function yk(e,t,a){var o=Lo();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},td(e)?kL(t,a):(a=Xh(e,t,a,o),a!==null&&(ja(a,e,o),EL(a,t,o)))}function DL(e,t,a){var o=Lo();Ku(e,t,a,o)}function Ku(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(td(e))kL(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var l=t.lastRenderedState,s=n(l,a);if(r.hasEagerState=!0,r.eagerState=s,ro(s,l))return Zf(e,t,r,0),Lt===null&&Kf(),!1}catch(u){}finally{}if(a=Xh(e,t,r,o),a!==null)return ja(a,e,o),EL(a,t,o),!0}return!1}function fg(e,t,a,o){if(o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},td(e)){if(t)throw Error(O(479))}else t=Xh(e,a,o,2),t!==null&&ja(t,e,2)}function td(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function kL(e,t){Ls=wf=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function EL(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,hb(e,a)}}var ii={readContext:Ia,use:$f,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};ii.useEffectEvent=Gt;var ML={readContext:Ia,use:$f,useCallback:function(e,t){return Fa().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:vy,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,lf(4194308,4,CL.bind(null,t,e),a)},useLayoutEffect:function(e,t){return lf(4194308,4,e,t)},useInsertionEffect:function(e,t){lf(4,2,e,t)},useMemo:function(e,t){var a=Fa();t=t===void 0?null:t;var o=e();if(nl){Xr(!0);try{e()}finally{Xr(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Fa();if(a!==void 0){var r=a(t);if(nl){Xr(!0);try{a(t)}finally{Xr(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=yk.bind(null,Ne,e),[o.memoizedState,e]},useRef:function(e){var t=Fa();return e={current:e},t.memoizedState=e},useState:function(e){e=uh(e);var t=e.queue,a=DL.bind(null,Ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ug,useDeferredValue:function(e,t){var a=Fa();return ig(a,e,t)},useTransition:function(){var e=uh(!1);return e=IL.bind(null,Ne,e.queue,!0,!1),Fa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Ne,r=Fa();if($e){if(a===void 0)throw Error(O(407));a=a()}else{if(a=t(),Lt===null)throw Error(O(349));(Ze&127)!==0||nL(o,t,a)}r.memoizedState=a;var n={value:a,getSnapshot:t};return r.queue=n,vy(sL.bind(null,o,n,e),[e]),o.flags|=2048,Ds(9,{destroy:void 0},lL.bind(null,o,n,a,t),null),a},useId:function(){var e=Fa(),t=Lt.identifierPrefix;if($e){var a=Qo,o=Zo;a=(o&~(1<<32-oo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Rf++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=pk++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cg,useFormState:hy,useActionState:hy,useOptimistic:function(e){var t=Fa();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=fg.bind(null,Ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:ng,useCacheRefresh:function(){return Fa().memoizedState=Ck.bind(null,Ne)},useEffectEvent:function(e){var t=Fa(),a={impl:e};return t.memoizedState=a,function(){if((ut&2)!==0)throw Error(O(440));return a.impl.apply(void 0,arguments)}}},dg={readContext:Ia,use:$f,useCallback:bL,useContext:Ia,useEffect:sg,useImperativeHandle:yL,useInsertionEffect:xL,useLayoutEffect:vL,useMemo:LL,useReducer:nf,useRef:hL,useState:function(){return nf(Sr)},useDebugValue:ug,useDeferredValue:function(e,t){var a=Qt();return SL(a,yt.memoizedState,e,t)},useTransition:function(){var e=nf(Sr)[0],t=Qt().memoizedState;return[typeof e==="boolean"?e:Li(e),t]},useSyncExternalStore:rL,useId:wL,useHostTransitionStatus:cg,useFormState:gy,useActionState:gy,useOptimistic:function(e,t){var a=Qt();return cL(a,yt,e,t)},useMemoCache:ng,useCacheRefresh:RL};dg.useEffectEvent=gL;var OL={readContext:Ia,use:$f,useCallback:bL,useContext:Ia,useEffect:sg,useImperativeHandle:yL,useInsertionEffect:xL,useLayoutEffect:vL,useMemo:LL,useReducer:vm,useRef:hL,useState:function(){return vm(Sr)},useDebugValue:ug,useDeferredValue:function(e,t){var a=Qt();return yt===null?ig(a,e,t):SL(a,yt.memoizedState,e,t)},useTransition:function(){var e=vm(Sr)[0],t=Qt().memoizedState;return[typeof e==="boolean"?e:Li(e),t]},useSyncExternalStore:rL,useId:wL,useHostTransitionStatus:cg,useFormState:xy,useActionState:xy,useOptimistic:function(e,t){var a=Qt();if(yt!==null)return cL(a,yt,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:ng,useCacheRefresh:RL};OL.useEffectEvent=gL;function Cm(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:Et({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var fh={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Lo(),r=$n(o);r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=el(e,r,o),t!==null&&(ja(t,e,o),ju(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Lo(),r=$n(o);r.tag=1,r.payload=t,a!==void 0&&a!==null&&(r.callback=a),t=el(e,r,o),t!==null&&(ja(t,e,o),ju(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Lo(),o=$n(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=el(e,o,a),t!==null&&(ja(t,e,a),ju(t,e,a))}};function Cy(e,t,a,o,r,n,l){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,n,l):t.prototype&&t.prototype.isPureReactComponent?!ri(a,o)||!ri(r,n):!0}function yy(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&fh.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Et({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function bk(e){yf(e)}function Lk(e){console.error(e)}function Sk(e){yf(e)}function Df(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function by(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function dh(e,t,a){return a=$n(a),a.tag=3,a.payload={element:null},a.callback=function(){Df(e,t)},a}function BL(e){return e=$n(e),e.tag=3,e}function PL(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){by(t,a,o)}}var l=a.stateNode;l!==null&&typeof l.componentDidCatch==="function"&&(e.callback=function(){by(t,a,o),typeof r!=="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function Ik(e,t,a,o,r){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Ns(t,a,r,!0),a=no.current,a!==null){switch(a.tag){case 31:case 13:return bo===null?Bf():a.alternate===null&&Xt===0&&(Xt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,o===If?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),km(e,o,r)),!1;case 22:return a.flags|=65536,o===If?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),km(e,o,r)),!1}throw Error(O(435,a.tag))}return km(e,o,r),Bf(),!1}if($e)return t=no.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==$m&&(e=Error(O(422),{cause:o}),li(Co(e,a)))):(o!==$m&&(t=Error(O(423),{cause:o}),li(Co(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Co(o,a),r=dh(e.stateNode,o,r),xm(e,r),Xt!==4&&(Xt=2)),!1;var n=Error(O(520),{cause:o});if(n=Co(n,a),Ju===null?Ju=[n]:Ju.push(n),Xt!==4&&(Xt=2),t===null)return!0;o=Co(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=dh(a.stateNode,o,e),xm(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Jr===null||!Jr.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=BL(r),PL(r,e,a,o),xm(a,r),!1}a=a.return}while(a!==null);return!1}var pg=Error(O(461)),ra=!1;function ba(e,t,a,o){t.child=e===null?Jb(t,null,a,o):rl(t,e.child,a,o)}function Ly(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var l={};for(var s in o)s!=="ref"&&(l[s]=o[s])}else l=o;if(ol(t),o=tg(e,t,a,l,n,r),s=ag(),e!==null&&!ra)return og(e,t,r),Ir(e,t,r);return $e&&s&&Yh(t),t.flags|=1,ba(e,t,o,r),t.child}function Sy(e,t,a,o,r){if(e===null){var n=a.type;if(typeof n==="function"&&!jh(n)&&n.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=n,NL(e,t,n,o,r);return e=of(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!mg(e,r)){var l=n.memoizedProps;if(a=a.compare,a=a!==null?a:ri,a(l,o)&&e.ref===t.ref)return Ir(e,t,r)}return t.flags|=1,e=vr(n,o),e.ref=t.ref,e.return=t,t.child=e}function NL(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(ri(n,o)&&e.ref===t.ref)if(ra=!1,t.pendingProps=o=n,mg(e,r))(e.flags&131072)!==0&&(ra=!0);else return t.lanes=e.lanes,Ir(e,t,r)}return ph(e,t,a,o,r)}function zL(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return Iy(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rf(t,n!==null?n.cachePool:null),n!==null?dy(t,n):lh(),tL(t);else return o=t.lanes=536870912,Iy(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(rf(t,n.cachePool),dy(t,n),Vr(t),t.memoizedState=null):(e!==null&&rf(t,null),lh(),Vr(t));return ba(e,t,r,a),t.child}function Fu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Iy(e,t,a,o,r){var n=Zh();return n=n===null?null:{parent:oa._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&rf(t,null),lh(),tL(t),e!==null&&Ns(e,t,o,!0),t.childLanes=r,null}function sf(e,t){return t=kf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ay(e,t,a){return rl(t,e.child,null,a),e=sf(t,t.pendingProps),e.flags|=2,Ja(t),t.memoizedState=null,e}function Ak(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($e){if(o.mode==="hidden")return e=sf(t,o),t.lanes=536870912,Fu(null,e);if(sh(t),(e=kt)?(e=kS(e,yo),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Zo,overflow:Qo}:null,retryLane:536870912,hydrationErrors:null},a=Xb(e),a.return=t,t.child=a,Sa=t,kt=null)):e=null,e===null)throw rn(t);return t.lanes=536870912,null}return sf(t,o)}var n=e.memoizedState;if(n!==null){var l=n.dehydrated;if(sh(t),r)if(t.flags&256)t.flags&=-257,t=Ay(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(O(558));else if(ra||Ns(e,t,a,!1),r=(a&e.childLanes)!==0,ra||r){if(o=Lt,o!==null&&(l=gb(o,a),l!==0&&l!==n.retryLane))throw n.retryLane=l,cl(e,l),ja(o,e,l),pg;Bf(),t=Ay(e,t,a)}else e=n.treeContext,kt=So(l.nextSibling),Sa=t,$e=!0,Qr=null,yo=!1,e!==null&&Yb(t,e),t=sf(t,o),t.flags|=4096;return t}return e=vr(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(O(284));if(e===null||e.ref!==a)t.flags|=4194816}}function ph(e,t,a,o,r){if(ol(t),a=tg(e,t,a,o,void 0,r),o=ag(),e!==null&&!ra)return og(e,t,r),Ir(e,t,r);return $e&&o&&Yh(t),t.flags|=1,ba(e,t,a,r),t.child}function Ty(e,t,a,o,r,n){if(ol(t),t.updateQueue=null,a=oL(t,o,a,r),aL(e),o=ag(),e!==null&&!ra)return og(e,t,n),Ir(e,t,n);return $e&&o&&Yh(t),t.flags|=1,ba(e,t,a,n),t.child}function wy(e,t,a,o,r){if(ol(t),t.stateNode===null){var n=ps,l=a.contextType;typeof l==="object"&&l!==null&&(n=Ia(l)),n=new a(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=fh,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},Jh(t),l=a.contextType,n.context=typeof l==="object"&&l!==null?Ia(l):ps,n.state=t.memoizedState,l=a.getDerivedStateFromProps,typeof l==="function"&&(Cm(t,a,l,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(l=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),l!==n.state&&fh.enqueueReplaceState(n,n.state,null),Wu(t,o,n,r),Yu(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var s=t.memoizedProps,u=ll(a,s);n.props=u;var i=n.context,c=a.contextType;l=ps,typeof c==="object"&&c!==null&&(l=Ia(c));var d=a.getDerivedStateFromProps;c=typeof d==="function"||typeof n.getSnapshotBeforeUpdate==="function",s=t.pendingProps!==s,c||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s||i!==l)&&yy(t,n,o,l),qr=!1;var f=t.memoizedState;n.state=f,Wu(t,o,n,r),Yu(),i=t.memoizedState,s||f!==i||qr?(typeof d==="function"&&(Cm(t,a,d,o),i=t.memoizedState),(u=qr||Cy(t,a,u,o,f,i,l))?(c||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=i),n.props=o,n.state=i,n.context=l,o=u):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,rh(e,t),l=t.memoizedProps,c=ll(a,l),n.props=c,d=t.pendingProps,f=n.context,i=a.contextType,u=ps,typeof i==="object"&&i!==null&&(u=Ia(i)),s=a.getDerivedStateFromProps,(i=typeof s==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(l!==d||f!==u)&&yy(t,n,o,u),qr=!1,f=t.memoizedState,n.state=f,Wu(t,o,n,r),Yu();var p=t.memoizedState;l!==d||f!==p||qr||e!==null&&e.dependencies!==null&&Sf(e.dependencies)?(typeof s==="function"&&(Cm(t,a,s,o),p=t.memoizedState),(c=qr||Cy(t,a,c,o,f,p,u)||e!==null&&e.dependencies!==null&&Sf(e.dependencies))?(i||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,p,u),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,p,u)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=p),n.props=o,n.state=p,n.context=u,o=c):(typeof n.componentDidUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,uf(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=rl(t,e.child,null,r),t.child=rl(t,null,a,r)):ba(e,t,a,r),t.memoizedState=n.state,e=t.child):e=Ir(e,t,r),e}function Ry(e,t,a,o){return al(),t.flags|=256,ba(e,t,a,o),t.child}var ym={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bm(e){return{baseLanes:e,cachePool:Kb()}}function Lm(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=eo),e}function FL(e,t,a){var o=t.pendingProps,r=!1,n=(t.flags&128)!==0,l;if((l=n)||(l=e!==null&&e.memoizedState===null?!1:(Zt.current&2)!==0),l&&(r=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(r?_r(t):Vr(t),(e=kt)?(e=kS(e,yo),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:on!==null?{id:Zo,overflow:Qo}:null,retryLane:536870912,hydrationErrors:null},a=Xb(e),a.return=t,t.child=a,Sa=t,kt=null)):e=null,e===null)throw rn(t);return Dh(e)?t.lanes=32:t.lanes=536870912,null}var s=o.children;if(o=o.fallback,r)return Vr(t),r=t.mode,s=kf({mode:"hidden",children:s},r),o=Zn(o,r,a,null),s.return=t,o.return=t,s.sibling=o,t.child=s,o=t.child,o.memoizedState=bm(a),o.childLanes=Lm(e,l,a),t.memoizedState=ym,Fu(null,o);return _r(t),mh(t,s)}var u=e.memoizedState;if(u!==null&&(s=u.dehydrated,s!==null)){if(n)t.flags&256?(_r(t),t.flags&=-257,t=Sm(e,t,a)):t.memoizedState!==null?(Vr(t),t.child=e.child,t.flags|=128,t=null):(Vr(t),s=o.fallback,r=t.mode,o=kf({mode:"visible",children:o.children},r),s=Zn(s,r,a,null),s.flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,rl(t,e.child,null,a),o=t.child,o.memoizedState=bm(a),o.childLanes=Lm(e,l,a),t.memoizedState=ym,t=Fu(null,o));else if(_r(t),Dh(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var i=l.dgst;l=i,o=Error(O(419)),o.stack="",o.digest=l,li({value:o,source:null,stack:null}),t=Sm(e,t,a)}else if(ra||Ns(e,t,a,!1),l=(a&e.childLanes)!==0,ra||l){if(l=Lt,l!==null&&(o=gb(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,cl(e,o),ja(l,e,o),pg;Rh(s)||Bf(),t=Sm(e,t,a)}else Rh(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,kt=So(s.nextSibling),Sa=t,$e=!0,Qr=null,yo=!1,e!==null&&Yb(t,e),t=mh(t,o.children),t.flags|=4096);return t}if(r)return Vr(t),s=o.fallback,r=t.mode,u=e.child,i=u.sibling,o=vr(u,{mode:"hidden",children:o.children}),o.subtreeFlags=u.subtreeFlags&65011712,i!==null?s=vr(i,s):(s=Zn(s,r,a,null),s.flags|=2),s.return=t,o.return=t,o.sibling=s,t.child=o,Fu(null,o),o=t.child,s=e.child.memoizedState,s===null?s=bm(a):(r=s.cachePool,r!==null?(u=oa._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=Kb(),s={baseLanes:s.baseLanes|a,cachePool:r}),o.memoizedState=s,o.childLanes=Lm(e,l,a),t.memoizedState=ym,Fu(e.child,o);return _r(t),a=e.child,e=a.sibling,a=vr(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=a,t.memoizedState=null,a}function mh(e,t){return t=kf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function kf(e,t){return e=$a(22,e,null,t),e.lanes=0,e}function Sm(e,t,a){return rl(t,e.child,null,a),e=mh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dy(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),th(e.return,t,a)}function Im(e,t,a,o,r,n){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=o,l.tail=a,l.tailMode=r,l.treeForkCount=n)}function UL(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail;o=o.children;var l=Zt.current,s=(l&2)!==0;if(s?(l=l&1|2,t.flags|=128):l&=1,It(Zt,l),ba(e,t,o,a),o=$e?ni:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dy(e,a,t);else if(e.tag===19)Dy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":a=t.child;for(r=null;a!==null;)e=a.alternate,e!==null&&Tf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Im(t,!1,r,a,n,o);break;case"backwards":case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&Tf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Im(t,!0,a,null,n,o);break;case"together":Im(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ir(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ln|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ns(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){e=t.child,a=vr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function mg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Sf(e)?!0:!1}function Tk(e,t,a){switch(t.tag){case 3:gf(t,t.stateNode.containerInfo),Hr(t,oa,e.memoizedState.cache),al();break;case 27:case 5:_m(t);break;case 4:gf(t,t.stateNode.containerInfo);break;case 10:Hr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sh(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return _r(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return FL(e,t,a);return _r(t),e=Ir(e,t,a),e!==null?e.sibling:null}_r(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ns(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return UL(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),It(Zt,Zt.current),o)break;else return null;case 22:return t.lanes=0,zL(e,t,a,t.pendingProps);case 24:Hr(t,oa,e.memoizedState.cache)}return Ir(e,t,a)}function qL(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ra=!0;else{if(!mg(e,a)&&(t.flags&128)===0)return ra=!1,Tk(e,t,a);ra=(e.flags&131072)!==0?!0:!1}else ra=!1,$e&&(t.flags&1048576)!==0&&jb(t,ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Yn(t.elementType),t.type=e,typeof e==="function")jh(e)?(o=ll(e,o),t.tag=1,t=wy(null,t,e,o,a)):(t.tag=0,t=ph(null,t,e,o,a));else{if(e!==void 0&&e!==null){var r=e.$$typeof;if(r===Oh){t.tag=11,t=Ly(null,t,e,o,a);break e}else if(r===Bh){t.tag=14,t=Sy(null,t,e,o,a);break e}}throw t=qm(e)||e,Error(O(306,t,""))}}return t;case 0:return ph(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=ll(o,t.pendingProps),wy(e,t,o,r,a);case 3:e:{if(gf(t,t.stateNode.containerInfo),e===null)throw Error(O(387));o=t.pendingProps;var n=t.memoizedState;r=n.element,rh(e,t),Wu(t,o,null,a);var l=t.memoizedState;if(o=l.cache,Hr(t,oa,o),o!==n.cache&&ah(t,[oa],a,!0),Yu(),o=l.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Ry(e,t,o,a);break e}else if(o!==r){r=Co(Error(O(424)),t),li(r),t=Ry(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}kt=So(e.firstChild),Sa=t,$e=!0,Qr=null,yo=!0,a=Jb(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(al(),o===r){t=Ir(e,t,a);break e}ba(e,t,o,a)}t=t.child}return t;case 26:return uf(e,t),e===null?(a=Ky(t.type,null,t.pendingProps,null))?t.memoizedState=a:$e||(a=t.type,e=t.pendingProps,o=Ff(Zr.current).createElement(a),o[La]=t,o[Ya]=e,Aa(o,a,e),ma(o),t.stateNode=o):t.memoizedState=Ky(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _m(t),e===null&&$e&&(o=t.stateNode=ES(t.type,t.pendingProps,Zr.current),Sa=t,yo=!0,r=kt,un(t.type)?(kh=r,kt=So(o.firstChild)):kt=r),ba(e,t,t.pendingProps.children,a),uf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&$e){if(r=o=kt)o=eE(o,t.type,t.pendingProps,yo),o!==null?(t.stateNode=o,Sa=t,kt=So(o.firstChild),yo=!1,r=!0):r=!1;r||rn(t)}return _m(t),r=t.type,n=t.pendingProps,l=e!==null?e.memoizedProps:null,o=n.children,Th(r,n)?o=null:l!==null&&Th(r,l)&&(t.flags|=32),t.memoizedState!==null&&(r=tg(e,t,mk,null,null,a),di._currentValue=r),uf(e,t),ba(e,t,o,a),t.child;case 6:if(e===null&&$e){if(e=a=kt)a=tE(a,t.pendingProps,yo),a!==null?(t.stateNode=a,Sa=t,kt=null,e=!0):e=!1;e||rn(t)}return null;case 13:return FL(e,t,a);case 4:return gf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=rl(t,null,o,a):ba(e,t,o,a),t.child;case 11:return Ly(e,t,t.type,t.pendingProps,a);case 7:return ba(e,t,t.pendingProps,a),t.child;case 8:return ba(e,t,t.pendingProps.children,a),t.child;case 12:return ba(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Hr(t,t.type,o.value),ba(e,t,o.children,a),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,ol(t),r=Ia(r),o=o(r),t.flags|=1,ba(e,t,o,a),t.child;case 14:return Sy(e,t,t.type,t.pendingProps,a);case 15:return NL(e,t,t.type,t.pendingProps,a);case 19:return UL(e,t,a);case 31:return Ak(e,t,a);case 22:return zL(e,t,a,t.pendingProps);case 24:return ol(t),o=Ia(oa),e===null?(r=Zh(),r===null&&(r=Lt,n=Kh(),r.pooledCache=n,n.refCount++,n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},Jh(t),Hr(t,oa,r)):((e.lanes&a)!==0&&(rh(e,t),Wu(t,null,null,a),Yu()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Hr(t,oa,o)):(o=n.cache,Hr(t,oa,o),o!==r.cache&&ah(t,[oa],a,!0))),ba(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(O(156,t.tag))}function ir(e){e.flags|=4}function Am(e,t,a,o,r){if(t=(e.mode&32)!==0)t=!1;if(t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(cS())e.flags|=8192;else throw Jn=If,Qh}else e.flags&=-16777217}function ky(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!BS(t))if(cS())e.flags|=8192;else throw Jn=If,Qh}function Yc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pb():536870912,e.lanes|=t,ks|=t)}function ku(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function wk(e,t,a){var o=t.pendingProps;switch(Wh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Cr(oa),Is(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)es(t)?ir(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gm());return Dt(t),null;case 26:var{type:r,memoizedState:n}=t;return e===null?(ir(t),n!==null?(Dt(t),ky(t,n)):(Dt(t),Am(t,r,null,o,a))):n?n!==e.memoizedState?(ir(t),Dt(t),ky(t,n)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ir(t),Dt(t),Am(t,r,e,o,a)),null;case 27:if(xf(t),a=Zr.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(O(166));return Dt(t),null}e=$o.current,es(t)?ny(t,e):(e=ES(r,o,a),t.stateNode=e,ir(t))}return Dt(t),null;case 5:if(xf(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(!o){if(t.stateNode===null)throw Error(O(166));return Dt(t),null}if(n=$o.current,es(t))ny(t,n);else{var l=Ff(Zr.current);switch(n){case 1:n=l.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=l.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=l.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?l.createElement(r,{is:o.is}):l.createElement(r)}}n[La]=t,n[Ya]=o;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=n;e:switch(Aa(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ir(t)}}return Dt(t),Am(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ir(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(O(166));if(e=Zr.current,es(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Sa,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[La]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||wS(e.nodeValue,a)?!0:!1,e||rn(t,!0)}else e=Ff(e).createTextNode(o),e[La]=t,t.stateNode=e}return Dt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=es(t),a!==null){if(e===null){if(!o)throw Error(O(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(557));e[La]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else a=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ja(t),t;return Ja(t),null}if((t.flags&128)!==0)throw Error(O(558))}return Dt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=es(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(O(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(O(317));r[La]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),r=!1}else r=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return Ja(t),t;return Ja(t),null}}if(Ja(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Yc(t,t.updateQueue),Dt(t),null;case 4:return Is(),e===null&&AS(t.stateNode.containerInfo),Dt(t),null;case 10:return Cr(t.type),Dt(t),null;case 19:if(ha(Zt),o=t.memoizedState,o===null)return Dt(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)ku(o,!1);else{if(Xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Tf(e),n!==null){t.flags|=128,ku(o,!1),e=n.updateQueue,t.updateQueue=e,Yc(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)Gb(a,e),a=a.sibling;return It(Zt,Zt.current&1|2),$e&&pr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&to()>Mf&&(t.flags|=128,r=!0,ku(o,!1),t.lanes=4194304)}else{if(!r)if(e=Tf(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Yc(t,e),ku(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!$e)return Dt(t),null}else 2*to()-o.renderingStartTime>Mf&&a!==536870912&&(t.flags|=128,r=!0,ku(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=to(),e.sibling=null,a=Zt.current,It(Zt,r?a&1|2:a&1),$e&&pr(t,o.treeForkCount),e;return Dt(t),null;case 22:case 23:return Ja(t),$h(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),a=t.updateQueue,a!==null&&Yc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&ha(Qn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cr(oa),Dt(t),null;case 25:return null;case 30:return null}throw Error(O(156,t.tag))}function Rk(e,t){switch(Wh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(oa),Is(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xf(t),null;case 31:if(t.memoizedState!==null){if(Ja(t),t.alternate===null)throw Error(O(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ja(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ha(Zt),null;case 4:return Is(),null;case 10:return Cr(t.type),null;case 22:case 23:return Ja(t),$h(),e!==null&&ha(Qn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cr(oa),null;case 25:return null;default:return null}}function HL(e,t){switch(Wh(t),t.tag){case 3:Cr(oa),Is();break;case 26:case 27:case 5:xf(t);break;case 4:Is();break;case 31:t.memoizedState!==null&&Ja(t);break;case 13:Ja(t);break;case 19:ha(Zt);break;case 10:Cr(t.type);break;case 22:case 23:Ja(t),$h(),e!==null&&ha(Qn);break;case 24:Cr(oa)}}function Si(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var n=a.create,l=a.inst;o=n(),l.destroy=o}a=a.next}while(a!==r)}}catch(s){mt(t,t.return,s)}}function nn(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var l=o.inst,s=l.destroy;if(s!==void 0){l.destroy=void 0,r=t;var u=a,i=s;try{i()}catch(c){mt(r,u,c)}}}o=o.next}while(o!==n)}}catch(c){mt(t,t.return,c)}}function _L(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{eL(t,a)}catch(o){mt(e,e.return,o)}}}function VL(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){mt(e,t,o)}}function Zu(e,t){try{var a=e.ref;if(a!==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 a==="function"?e.refCleanup=a(o):a.current=o}}catch(r){mt(e,t,r)}}function Jo(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{o()}catch(r){mt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(r){mt(e,t,r)}else a.current=null}function GL(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(r){mt(e,e.return,r)}}function Tm(e,t,a){try{var o=e.stateNode;Wk(o,e.type,a,t),o[Ya]=t}catch(r){mt(e,e.return,r)}}function XL(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&un(e.type)||e.tag===4}function wm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XL(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&un(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hh(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=gr));else if(o!==4&&(o===27&&un(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(hh(e,t,a),e=e.sibling;e!==null;)hh(e,t,a),e=e.sibling}function Ef(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&un(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ef(e,t,a),e=e.sibling;e!==null;)Ef(e,t,a),e=e.sibling}function jL(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Aa(t,o,a),t[La]=e,t[Ya]=a}catch(n){mt(e,e.return,n)}}var mr=!1,aa=!1,Rm=!1,Ey=typeof WeakSet==="function"?WeakSet:Set,pa=null;function Dk(e,t){if(e=e.containerInfo,Ih=_f,e=Nb(e),Vh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(v){a=null;break e}var l=0,s=-1,u=-1,i=0,c=0,d=e,f=null;t:for(;;){for(var p;;){if(d!==a||r!==0&&d.nodeType!==3||(s=l+r),d!==n||o!==0&&d.nodeType!==3||(u=l+o),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)===null)break;f=d,d=p}for(;;){if(d===e)break t;if(f===a&&++i===r&&(s=l),f===n&&++c===o&&(u=l),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}a=s===-1||u===-1?null:{start:s,end:u}}else a=null}a=a||{start:0,end:0}}else a=null;Ah={focusedElem:e,selectionRange:a},_f=!1;for(pa=t;pa!==null;)if(t=pa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pa=e;else for(;pa!==null;){switch(t=pa,n=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,a=t,r=n.memoizedProps,n=n.memoizedState,o=a.stateNode;try{var g=ll(a.type,r);e=o.getSnapshotBeforeUpdate(g,n),o.__reactInternalSnapshotBeforeUpdate=e}catch(v){mt(a,a.return,v)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)wh(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wh(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(O(163))}if(e=t.sibling,e!==null){e.return=t.return,pa=e;break}pa=t.return}}function YL(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:fr(e,a),o&4&&Si(5,a);break;case 1:if(fr(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(l){mt(a,a.return,l)}else{var r=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){mt(a,a.return,l)}}o&64&&_L(a),o&512&&Zu(a,a.return);break;case 3:if(fr(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{eL(e,t)}catch(l){mt(a,a.return,l)}}break;case 27:t===null&&o&4&&jL(a);case 26:case 5:fr(e,a),t===null&&o&4&&GL(a),o&512&&Zu(a,a.return);break;case 12:fr(e,a);break;case 31:fr(e,a),o&4&&ZL(e,a);break;case 13:fr(e,a),o&4&&QL(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Fk.bind(null,a),aE(e,a))));break;case 22:if(o=a.memoizedState!==null||mr,!o){t=t!==null&&t.memoizedState!==null||aa,r=mr;var n=aa;mr=o,(aa=t)&&!n?dr(e,a,(a.subtreeFlags&8772)!==0):fr(e,a),mr=r,aa=n}break;case 30:break;default:fr(e,a)}}function WL(e){var t=e.alternate;t!==null&&(e.alternate=null,WL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zh(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ft=null,Ga=!1;function cr(e,t,a){for(a=a.child;a!==null;)KL(e,t,a),a=a.sibling}function KL(e,t,a){if(ao&&typeof ao.onCommitFiberUnmount==="function")try{ao.onCommitFiberUnmount(gi,a)}catch(n){}switch(a.tag){case 26:aa||Jo(a,t),cr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:aa||Jo(a,t);var o=Ft,r=Ga;un(a.type)&&(Ft=a.stateNode,Ga=!1),cr(e,t,a),ei(a.stateNode),Ft=o,Ga=r;break;case 5:aa||Jo(a,t);case 6:if(o=Ft,r=Ga,Ft=null,cr(e,t,a),Ft=o,Ga=r,Ft!==null)if(Ga)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(a.stateNode)}catch(n){mt(a,t,n)}else try{Ft.removeChild(a.stateNode)}catch(n){mt(a,t,n)}break;case 18:Ft!==null&&(Ga?(e=Ft,Gy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bs(e)):Gy(Ft,a.stateNode));break;case 4:o=Ft,r=Ga,Ft=a.stateNode.containerInfo,Ga=!0,cr(e,t,a),Ft=o,Ga=r;break;case 0:case 11:case 14:case 15:nn(2,a,t),aa||nn(4,a,t),cr(e,t,a);break;case 1:aa||(Jo(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&VL(a,t,o)),cr(e,t,a);break;case 21:cr(e,t,a);break;case 22:aa=(o=aa)||a.memoizedState!==null,cr(e,t,a),aa=o;break;default:cr(e,t,a)}}function ZL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bs(e)}catch(a){mt(t,t.return,a)}}}function QL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bs(e)}catch(a){mt(t,t.return,a)}}function kk(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ey),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ey),t;default:throw Error(O(435,e.tag))}}function Wc(e,t){var a=kk(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var r=Uk.bind(null,e,o);o.then(r,r)}})}function _a(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=a[o],n=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(un(s.type)){Ft=s.stateNode,Ga=!1;break e}break;case 5:Ft=s.stateNode,Ga=!1;break e;case 3:case 4:Ft=s.stateNode.containerInfo,Ga=!0;break e}s=s.return}if(Ft===null)throw Error(O(160));KL(n,l,r),Ft=null,Ga=!1,n=r.alternate,n!==null&&(n.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)JL(t,e),t=t.sibling}var Fo=null;function JL(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_a(t,e),Va(e),o&4&&(nn(3,e,e.return),Si(3,e),nn(5,e,e.return));break;case 1:_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),o&64&&mr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var r=Fo;if(_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),o&4){var n=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(o){case"title":if(n=r.getElementsByTagName("title")[0],!n||n[Ci]||n[La]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))n=r.createElement(o),r.head.insertBefore(n,r.querySelector("head > title"));Aa(n,o,a),n[La]=e,ma(n),o=n;break e;case"link":var l=Qy("link","href",r).get(o+(a.href||""));if(l){for(var s=0;s<l.length;s++)if(n=l[s],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){l.splice(s,1);break t}}n=r.createElement(o),Aa(n,o,a),r.head.appendChild(n);break;case"meta":if(l=Qy("meta","content",r).get(o+(a.content||""))){for(s=0;s<l.length;s++)if(n=l[s],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){l.splice(s,1);break t}}n=r.createElement(o),Aa(n,o,a),r.head.appendChild(n);break;default:throw Error(O(468,o))}n[La]=e,ma(n),o=n}e.stateNode=o}else Jy(r,e.type,e.stateNode);else e.stateNode=Zy(r,o,e.memoizedProps);else n!==o?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,o===null?Jy(r,e.type,e.stateNode):Zy(r,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Tm(e,e.memoizedProps,a.memoizedProps)}break;case 27:_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),a!==null&&o&4&&Tm(e,e.memoizedProps,a.memoizedProps);break;case 5:if(_a(t,e),Va(e),o&512&&(aa||a===null||Jo(a,a.return)),e.flags&32){r=e.stateNode;try{Ts(r,"")}catch(g){mt(e,e.return,g)}}o&4&&e.stateNode!=null&&(r=e.memoizedProps,Tm(e,r,a!==null?a.memoizedProps:r)),o&1024&&(Rm=!0);break;case 6:if(_a(t,e),Va(e),o&4){if(e.stateNode===null)throw Error(O(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(g){mt(e,e.return,g)}}break;case 3:if(df=null,r=Fo,Fo=Uf(t.containerInfo),_a(t,e),Fo=r,Va(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Bs(t.containerInfo)}catch(g){mt(e,e.return,g)}Rm&&(Rm=!1,$L(e));break;case 4:o=Fo,Fo=Uf(e.stateNode.containerInfo),_a(t,e),Va(e),Fo=o;break;case 12:_a(t,e),Va(e);break;case 31:_a(t,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 13:_a(t,e),Va(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(ad=to()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 22:r=e.memoizedState!==null;var u=a!==null&&a.memoizedState!==null,i=mr,c=aa;if(mr=i||r,aa=c||u,_a(t,e),aa=c,mr=i,Va(e),o&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||u||mr||aa||Wn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){u=a=t;try{if(n=u.stateNode,r)l=n.style,typeof l.setProperty==="function"?l.setProperty("display","none","important"):l.display="none";else{s=u.stateNode;var d=u.memoizedProps.style,f=d!==void 0&&d!==null&&d.hasOwnProperty("display")?d.display:null;s.style.display=f==null||typeof f==="boolean"?"":(""+f).trim()}}catch(g){mt(u,u.return,g)}}}else if(t.tag===6){if(a===null){u=t;try{u.stateNode.nodeValue=r?"":u.memoizedProps}catch(g){mt(u,u.return,g)}}}else if(t.tag===18){if(a===null){u=t;try{var p=u.stateNode;r?Xy(p,!0):Xy(u.stateNode,!1)}catch(g){mt(u,u.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Wc(e,a))));break;case 19:_a(t,e),Va(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Wc(e,o)));break;case 30:break;case 21:break;default:_a(t,e),Va(e)}}function Va(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(XL(o)){a=o;break}o=o.return}if(a==null)throw Error(O(160));switch(a.tag){case 27:var r=a.stateNode,n=wm(e);Ef(e,n,r);break;case 5:var l=a.stateNode;a.flags&32&&(Ts(l,""),a.flags&=-33);var s=wm(e);Ef(e,s,l);break;case 3:case 4:var u=a.stateNode.containerInfo,i=wm(e);hh(e,i,u);break;default:throw Error(O(161))}}catch(c){mt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $L(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$L(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YL(e,t.alternate,t),t=t.sibling}function Wn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nn(4,t,t.return),Wn(t);break;case 1:Jo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount==="function"&&VL(t,t.return,a),Wn(t);break;case 27:ei(t.stateNode);case 26:case 5:Jo(t,t.return),Wn(t);break;case 22:t.memoizedState===null&&Wn(t);break;case 30:Wn(t);break;default:Wn(t)}e=e.sibling}}function dr(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;){var o=t.alternate,r=e,n=t,l=n.flags;switch(n.tag){case 0:case 11:case 15:dr(r,n,a),Si(4,n);break;case 1:if(dr(r,n,a),o=n,r=o.stateNode,typeof r.componentDidMount==="function")try{r.componentDidMount()}catch(i){mt(o,o.return,i)}if(o=n,r=o.updateQueue,r!==null){var s=o.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)$b(u[r],s)}catch(i){mt(o,o.return,i)}}a&&l&64&&_L(n),Zu(n,n.return);break;case 27:jL(n);case 26:case 5:dr(r,n,a),a&&o===null&&l&4&&GL(n),Zu(n,n.return);break;case 12:dr(r,n,a);break;case 31:dr(r,n,a),a&&l&4&&ZL(r,n);break;case 13:dr(r,n,a),a&&l&4&&QL(r,n);break;case 22:n.memoizedState===null&&dr(r,n,a),Zu(n,n.return);break;case 30:break;default:dr(r,n,a)}t=t.sibling}}function hg(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&bi(a))}function gg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function zo(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eS(e,t,a,o),t=t.sibling}function eS(e,t,a,o){var r=t.flags;switch(t.tag){case 0:case 11:case 15:zo(e,t,a,o),r&2048&&Si(9,t);break;case 1:zo(e,t,a,o);break;case 3:zo(e,t,a,o),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(r&2048){zo(e,t,a,o),e=t.stateNode;try{var n=t.memoizedProps,l=n.id,s=n.onPostCommit;typeof s==="function"&&s(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){mt(t,t.return,u)}}else zo(e,t,a,o);break;case 31:zo(e,t,a,o);break;case 13:zo(e,t,a,o);break;case 23:break;case 22:n=t.stateNode,l=t.alternate,t.memoizedState!==null?n._visibility&2?zo(e,t,a,o):Qu(e,t):n._visibility&2?zo(e,t,a,o):(n._visibility|=2,as(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),r&2048&&hg(l,t);break;case 24:zo(e,t,a,o),r&2048&&gg(t.alternate,t);break;default:zo(e,t,a,o)}}function as(e,t,a,o,r){r=r&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var n=e,l=t,s=a,u=o,i=l.flags;switch(l.tag){case 0:case 11:case 15:as(n,l,s,u,r),Si(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?as(n,l,s,u,r):Qu(n,l):(c._visibility|=2,as(n,l,s,u,r)),r&&i&2048&&hg(l.alternate,l);break;case 24:as(n,l,s,u,r),r&&i&2048&&gg(l.alternate,l);break;default:as(n,l,s,u,r)}t=t.sibling}}function Qu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,r=o.flags;switch(o.tag){case 22:Qu(a,o),r&2048&&hg(o.alternate,o);break;case 24:Qu(a,o),r&2048&&gg(o.alternate,o);break;default:Qu(a,o)}t=t.sibling}}var Uu=8192;function ts(e,t,a){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)tS(e,t,a),e=e.sibling}function tS(e,t,a){switch(e.tag){case 26:ts(e,t,a),e.flags&Uu&&e.memoizedState!==null&&mE(a,Fo,e.memoizedState,e.memoizedProps);break;case 5:ts(e,t,a);break;case 3:case 4:var o=Fo;Fo=Uf(e.stateNode.containerInfo),ts(e,t,a),Fo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Uu,Uu=16777216,ts(e,t,a),Uu=o):ts(e,t,a));break;default:ts(e,t,a)}}function aS(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Eu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];pa=o,rS(o,e)}aS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oS(e),e=e.sibling}function oS(e){switch(e.tag){case 0:case 11:case 15:Eu(e),e.flags&2048&&nn(9,e,e.return);break;case 3:Eu(e);break;case 12:Eu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cf(e)):Eu(e);break;default:Eu(e)}}function cf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];pa=o,rS(o,e)}aS(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nn(8,t,t.return),cf(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cf(t));break;default:cf(t)}e=e.sibling}}function rS(e,t){for(;pa!==null;){var a=pa;switch(a.tag){case 0:case 11:case 15:nn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:bi(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,pa=o;else e:for(a=e;pa!==null;){o=pa;var r=o.sibling,n=o.return;if(WL(o),o===a){pa=null;break e}if(r!==null){r.return=n,pa=r;break e}pa=n}}}var Ek={getCacheForType:function(e){var t=Ia(oa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ia(oa).controller.signal}},Mk=typeof WeakMap==="function"?WeakMap:Map,ut=0,Lt=null,Ye=null,Ze=0,pt=0,Qa=null,Yr=!1,Fs=!1,xg=!1,Ar=0,Xt=0,ln=0,tl=0,vg=0,eo=0,ks=0,Ju=null,Xa=null,gh=!1,ad=0,nS=0,Mf=1/0,Of=null,Jr=null,ua=0,$r=null,Es=null,yr=0,xh=0,vh=null,lS=null,$u=0,Ch=null;function Lo(){return(ut&2)!==0&&Ze!==0?Ze&-Ze:Ee.T!==null?yg():vb()}function sS(){if(eo===0)if((Ze&536870912)===0||$e){var e=qc;qc<<=1,(qc&3932160)===0&&(qc=262144),eo=e}else eo=536870912;return e=no.current,e!==null&&(e.flags|=32),eo}function ja(e,t,a){if(e===Lt&&(pt===2||pt===9)||e.cancelPendingCommit!==null)Ms(e,0),Wr(e,Ze,eo,!1);if(Xf(e,a),(ut&2)===0||e!==Lt)e===Lt&&((ut&2)===0&&(tl|=a),Xt===4&&Wr(e,Ze,eo,!1)),Tr(e)}function uS(e,t,a){if((ut&6)!==0)throw Error(O(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||xi(e,t),r=o?Pk(e,t):Dm(e,t,!0),n=o;do{if(r===0){Fs&&!o&&Wr(e,t,0,!1);break}else{if(a=e.current.alternate,n&&!Ok(a)){r=Dm(e,t,!1),n=!1;continue}if(r===2){if(n=t,e.errorRecoveryDisabledLanes&n)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var s=e;r=Ju;var u=s.current.memoizedState.isDehydrated;if(u&&(Ms(s,l).flags|=256),l=Dm(s,l,!1),l!==2){if(xg&&!u){s.errorRecoveryDisabledLanes|=n,tl|=n,r=4;break e}n=Xa,Xa=r,n!==null&&(Xa===null?Xa=n:Xa.push.apply(Xa,n))}r=l}if(n=!1,r!==2)continue}}if(r===1){Ms(e,0),Wr(e,t,0,!0);break}e:{switch(o=e,n=r,n){case 0:case 1:throw Error(O(345));case 4:if((t&4194048)!==t)break;case 6:Wr(o,t,eo,!Yr);break e;case 2:Xa=null;break;case 3:case 5:break;default:throw Error(O(329))}if((t&62914560)===t&&(r=ad+300-to(),10<r)){if(Wr(o,t,eo,!Yr),Gf(o,0,!0)!==0)break e;yr=t,o.timeoutHandle=DS(My.bind(null,o,a,Xa,Of,gh,t,eo,tl,ks,Yr,n,"Throttled",-0,0),r);break e}My(o,a,Xa,Of,gh,t,eo,tl,ks,Yr,n,null,-0,0)}}break}while(1);Tr(e)}function My(e,t,a,o,r,n,l,s,u,i,c,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gr},tS(t,n,d);var g=(n&62914560)===n?ad-to():(n&4194048)===n?nS-to():0;if(g=hE(d,g),g!==null){yr=n,e.cancelPendingCommit=g(By.bind(null,e,t,n,a,o,r,l,s,u,c,d,null,f,p)),Wr(e,n,l,!i);return}}By(e,t,n,a,o,r,l,s,u)}function Ok(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!ro(n(),r))return!1}catch(l){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wr(e,t,a,o){t&=~vg,t&=~tl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-oo(r),l=1<<n;o[n]=-1,r&=~l}a!==0&&mb(e,a,t)}function od(){return(ut&6)===0?(Ii(0,!1),!1):!0}function Cg(){if(Ye!==null){if(pt===0)var e=Ye.return;else e=Ye,xr=fl=null,rg(e),bs=null,si=0,e=Ye;for(;e!==null;)HL(e.alternate,e),e=e.return;Ye=null}}function Ms(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Qk(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),yr=0,Cg(),Lt=e,Ye=a=vr(e.current,null),Ze=t,pt=0,Qa=null,Yr=!1,Fs=xi(e,t),xg=!1,ks=eo=vg=tl=ln=Xt=0,Xa=Ju=null,gh=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var r=31-oo(o),n=1<<r;t|=e[r],o&=~n}return Ar=t,Kf(),a}function iS(e,t){Ne=null,Ee.H=ii,t===zs||t===Qf?(t=cy(),pt=3):t===Qh?(t=cy(),pt=4):pt=t===pg?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,Qa=t,Ye===null&&(Xt=1,Df(e,Co(t,e.current)))}function cS(){var e=no.current;return e===null?!0:(Ze&4194048)===Ze?bo===null?!0:!1:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===bo:!1}function fS(){var e=Ee.H;return Ee.H=ii,e===null?ii:e}function dS(){var e=Ee.A;return Ee.A=Ek,e}function Bf(){Xt=4,Yr||(Ze&4194048)!==Ze&&no.current!==null||(Fs=!0),(ln&134217727)===0&&(tl&134217727)===0||Lt===null||Wr(Lt,Ze,eo,!1)}function Dm(e,t,a){var o=ut;ut|=2;var r=fS(),n=dS();if(Lt!==e||Ze!==t)Of=null,Ms(e,t);t=!1;var l=Xt;e:do try{if(pt!==0&&Ye!==null){var s=Ye,u=Qa;switch(pt){case 8:Cg(),l=6;break e;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var i=pt;if(pt=0,Qa=null,gs(e,s,u,i),a&&Fs){l=0;break e}break;default:i=pt,pt=0,Qa=null,gs(e,s,u,i)}}Bk(),l=Xt;break}catch(c){iS(e,c)}while(1);return t&&e.shellSuspendCounter++,xr=fl=null,ut=o,Ee.H=r,Ee.A=n,Ye===null&&(Lt=null,Ze=0,Kf()),l}function Bk(){for(;Ye!==null;)pS(Ye)}function Pk(e,t){var a=ut;ut|=2;var o=fS(),r=dS();Lt!==e||Ze!==t?(Of=null,Mf=to()+500,Ms(e,t)):Fs=xi(e,t);e:do try{if(pt!==0&&Ye!==null){t=Ye;var n=Qa;t:switch(pt){case 1:pt=0,Qa=null,gs(e,t,n,1);break;case 2:case 9:if(iy(n)){pt=0,Qa=null,Oy(t);break}t=function(){pt!==2&&pt!==9||Lt!==e||(pt=7),Tr(e)},n.then(t,t);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:iy(n)?(pt=0,Qa=null,Oy(t)):(pt=0,Qa=null,gs(e,t,n,7));break;case 5:var l=null;switch(Ye.tag){case 26:l=Ye.memoizedState;case 5:case 27:var s=Ye;if(l?BS(l):s.stateNode.complete){pt=0,Qa=null;var u=s.sibling;if(u!==null)Ye=u;else{var i=s.return;i!==null?(Ye=i,rd(i)):Ye=null}break t}}pt=0,Qa=null,gs(e,t,n,5);break;case 6:pt=0,Qa=null,gs(e,t,n,6);break;case 8:Cg(),Xt=6;break e;default:throw Error(O(462))}}Nk();break}catch(c){iS(e,c)}while(1);if(xr=fl=null,Ee.H=o,Ee.A=r,ut=a,Ye!==null)return 0;return Lt=null,Ze=0,Kf(),Xt}function Nk(){for(;Ye!==null&&!aD();)pS(Ye)}function pS(e){var t=qL(e.alternate,e,Ar);e.memoizedProps=e.pendingProps,t===null?rd(e):Ye=t}function Oy(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ty(a,t,t.pendingProps,t.type,void 0,Ze);break;case 11:t=Ty(a,t,t.pendingProps,t.type.render,t.ref,Ze);break;case 5:rg(t);default:HL(a,t),t=Ye=Gb(t,Ar),t=qL(a,t,Ar)}e.memoizedProps=e.pendingProps,t===null?rd(e):Ye=t}function gs(e,t,a,o){xr=fl=null,rg(t),bs=null,si=0;var r=t.return;try{if(Ik(e,r,t,a,Ze)){Xt=1,Df(e,Co(a,e.current)),Ye=null;return}}catch(n){if(r!==null)throw Ye=r,n;Xt=1,Df(e,Co(a,e.current)),Ye=null;return}if(t.flags&32768){if($e||o===1)e=!0;else if(Fs||(Ze&536870912)!==0)e=!1;else if(Yr=e=!0,o===2||o===9||o===3||o===6)o=no.current,o!==null&&o.tag===13&&(o.flags|=16384);mS(t,e)}else rd(t)}function rd(e){var t=e;do{if((t.flags&32768)!==0){mS(t,Yr);return}e=t.return;var a=wk(t.alternate,t,Ar);if(a!==null){Ye=a;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);Xt===0&&(Xt=5)}function mS(e,t){do{var a=Rk(e.alternate,e);if(a!==null){a.flags&=32767,Ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=a}while(e!==null);Xt=6,Ye=null}function By(e,t,a,o,r,n,l,s,u){e.cancelPendingCommit=null;do nd();while(ua!==0);if((ut&6)!==0)throw Error(O(327));if(t!==null){if(t===e.current)throw Error(O(177));if(n=t.lanes|t.childLanes,n|=Gh,dD(e,a,n,l,s,u),e===Lt&&(Ye=Lt=null,Ze=0),Es=t,$r=e,yr=a,xh=n,vh=r,lS=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qk(vf,function(){return CS(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Ee.T,Ee.T=null,r=it.p,it.p=2,l=ut,ut|=4;try{Dk(e,t,a)}finally{ut=l,it.p=r,Ee.T=o}}ua=1,hS(),gS(),xS()}}function hS(){if(ua===1){ua=0;var e=$r,t=Es,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null;var o=it.p;it.p=2;var r=ut;ut|=4;try{JL(t,e);var n=Ah,l=Nb(e.containerInfo),{focusedElem:s,selectionRange:u}=n;if(l!==s&&s&&s.ownerDocument&&Pb(s.ownerDocument.documentElement,s)){if(u!==null&&Vh(s)){var{start:i,end:c}=u;if(c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),g=s.textContent.length,v=Math.min(u.start,g),L=u.end===void 0?v:Math.min(u.end,g);!p.extend&&v>L&&(l=L,L=v,v=l);var m=ay(s,v),h=ay(s,L);if(m&&h&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==h.node||p.focusOffset!==h.offset)){var x=d.createRange();x.setStart(m.node,m.offset),p.removeAllRanges(),v>L?(p.addRange(x),p.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),p.addRange(x))}}}}d=[];for(p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof s.focus==="function"&&s.focus();for(s=0;s<d.length;s++){var C=d[s];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}_f=!!Ih,Ah=Ih=null}finally{ut=r,it.p=o,Ee.T=a}}e.current=t,ua=2}}function gS(){if(ua===2){ua=0;var e=$r,t=Es,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Ee.T,Ee.T=null;var o=it.p;it.p=2;var r=ut;ut|=4;try{YL(e,t.alternate,t)}finally{ut=r,it.p=o,Ee.T=a}}ua=3}}function xS(){if(ua===4||ua===3){ua=0,oD();var e=$r,t=Es,a=yr,o=lS;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ua=5:(ua=0,Es=$r=null,vS(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Jr=null),Nh(a),t=t.stateNode,ao&&typeof ao.onCommitFiberRoot==="function")try{ao.onCommitFiberRoot(gi,t,void 0,(t.current.flags&128)===128)}catch(u){}if(o!==null){t=Ee.T,r=it.p,it.p=2,Ee.T=null;try{for(var n=e.onRecoverableError,l=0;l<o.length;l++){var s=o[l];n(s.value,{componentStack:s.stack})}}finally{Ee.T=t,it.p=r}}(yr&3)!==0&&nd(),Tr(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Ch?$u++:($u=0,Ch=e):$u=0,Ii(0,!1)}}function vS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function nd(){return hS(),gS(),xS(),CS()}function CS(){if(ua!==5)return!1;var e=$r,t=xh;xh=0;var a=Nh(yr),o=Ee.T,r=it.p;try{it.p=32>a?32:a,Ee.T=null,a=vh,vh=null;var n=$r,l=yr;if(ua=0,Es=$r=null,yr=0,(ut&6)!==0)throw Error(O(331));var s=ut;if(ut|=4,oS(n.current),eS(n,n.current,l,a),ut=s,Ii(0,!1),ao&&typeof ao.onPostCommitFiberRoot==="function")try{ao.onPostCommitFiberRoot(gi,n)}catch(u){}return!0}finally{it.p=r,Ee.T=o,vS(e,t)}}function Py(e,t,a){t=Co(a,t),t=dh(e.stateNode,t,2),e=el(e,t,2),e!==null&&(Xf(e,2),Tr(e))}function mt(e,t,a){if(e.tag===3)Py(e,e,a);else for(;t!==null;){if(t.tag===3){Py(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Jr===null||!Jr.has(o))){e=Co(a,e),a=BL(2),o=el(t,a,2),o!==null&&(PL(a,o,t,e),Xf(o,2),Tr(o));break}}t=t.return}}function km(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new Mk;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(xg=!0,r.add(a),e=zk.bind(null,e,t,a),t.then(e,e))}function zk(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Lt===e&&(Ze&a)===a&&(Xt===4||Xt===3&&(Ze&62914560)===Ze&&300>to()-ad?(ut&2)===0&&Ms(e,0):vg|=a,ks===Ze&&(ks=0)),Tr(e)}function yS(e,t){t===0&&(t=pb()),e=cl(e,t),e!==null&&(Xf(e,t),Tr(e))}function Fk(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),yS(e,a)}function Uk(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:r}=e;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(O(314))}o!==null&&o.delete(t),yS(e,a)}function qk(e,t){return Ph(e,t)}var Pf=null,os=null,yh=!1,Nf=!1,Em=!1,Kr=0;function Tr(e){e!==os&&e.next===null&&(os===null?Pf=os=e:os=os.next=e),Nf=!0,yh||(yh=!0,_k())}function Ii(e,t){if(!Em&&Nf){Em=!0;do{var a=!1;for(var o=Pf;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var l=o.suspendedLanes,s=o.pingedLanes;n=(1<<31-oo(42|e)+1)-1,n&=r&~(l&~s),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,Ny(o,n))}else n=Ze,n=Gf(o,o===Lt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||xi(o,n)||(a=!0,Ny(o,n));o=o.next}}while(a);Em=!1}}function Hk(){bS()}function bS(){Nf=yh=!1;var e=0;Kr!==0&&Zk()&&(e=Kr);for(var t=to(),a=null,o=Pf;o!==null;){var r=o.next,n=LS(o,t);if(n===0)o.next=null,a===null?Pf=r:a.next=r,r===null&&(os=a);else if(a=o,e!==0||(n&3)!==0)Nf=!0;o=r}ua!==0&&ua!==5||Ii(e,!1),Kr!==0&&(Kr=0)}function LS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,n=e.pendingLanes&-62914561;0<n;){var l=31-oo(n),s=1<<l,u=r[l];if(u===-1){if((s&a)===0||(s&o)!==0)r[l]=fD(s,t)}else u<=t&&(e.expiredLanes|=s);n&=~s}if(t=Lt,a=Ze,a=Gf(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&sm(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||xi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&sm(o),Nh(a)){case 2:case 8:a=fb;break;case 32:a=vf;break;case 268435456:a=db;break;default:a=vf}return o=SS.bind(null,e),a=Ph(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&sm(o),e.callbackPriority=2,e.callbackNode=null,2}function SS(e,t){if(ua!==0&&ua!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(nd()&&e.callbackNode!==a)return null;var o=Ze;if(o=Gf(e,e===Lt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return uS(e,o,t),LS(e,to()),e.callbackNode!=null&&e.callbackNode===a?SS.bind(null,e):null}function Ny(e,t){if(nd())return null;uS(e,t,!0)}function _k(){Jk(function(){(ut&6)!==0?Ph(cb,Hk):bS()})}function yg(){if(Kr===0){var e=ws;e===0&&(e=Uc,Uc<<=1,(Uc&261888)===0&&(Uc=256)),Kr=e}return Kr}function zy(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:$c(""+e)}function Fy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Vk(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=zy((r[Ya]||null).action),l=o.submitter;l&&(t=(t=l[Ya]||null)?zy(t.formAction):l.getAttribute("formAction"),t!==null&&(n=t,l=null));var s=new jf("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Kr!==0){var u=l?Fy(r,l):new FormData(r);ch(a,{pending:!0,data:u,method:r.method,action:n},null,u)}}else typeof n==="function"&&(s.preventDefault(),u=l?Fy(r,l):new FormData(r),ch(a,{pending:!0,data:u,method:r.method,action:n},n,u))},currentTarget:r}]})}}for(qu=0;qu<Jm.length;qu++)Hu=Jm[qu],bh=Hu.toLowerCase(),Lh=Hu[0].toUpperCase()+Hu.slice(1),Uo(bh,"on"+Lh);var Hu,bh,Lh,qu;Uo(Fb,"onAnimationEnd");Uo(Ub,"onAnimationIteration");Uo(qb,"onAnimationStart");Uo("dblclick","onDoubleClick");Uo("focusin","onFocus");Uo("focusout","onBlur");Uo(rk,"onTransitionRun");Uo(nk,"onTransitionStart");Uo(lk,"onTransitionCancel");Uo(Hb,"onTransitionEnd");As("onMouseEnter",["mouseout","mouseover"]);As("onMouseLeave",["mouseout","mouseover"]);As("onPointerEnter",["pointerout","pointerover"]);As("onPointerLeave",["pointerout","pointerover"]);sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sl("onBeforeInput",["compositionend","keypress","textInput","paste"]);sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="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(" "),Gk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ci));function IS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],r=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var l=o.length-1;0<=l;l--){var s=o[l],u=s.instance,i=s.currentTarget;if(s=s.listener,u!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=i;try{n(r)}catch(c){yf(c)}r.currentTarget=null,n=u}else for(l=0;l<o.length;l++){if(s=o[l],u=s.instance,i=s.currentTarget,s=s.listener,u!==n&&r.isPropagationStopped())break e;n=s,r.currentTarget=i;try{n(r)}catch(c){yf(c)}r.currentTarget=null,n=u}}}}function je(e,t){var a=t[Gm];a===void 0&&(a=t[Gm]=new Set);var o=e+"__bubble";a.has(o)||(TS(t,e,2,!1),a.add(o))}function Mm(e,t,a){var o=0;t&&(o|=4),TS(a,e,o,t)}var Kc="_reactListening"+Math.random().toString(36).slice(2);function AS(e){if(!e[Kc]){e[Kc]=!0,Cb.forEach(function(a){a!=="selectionchange"&&(Gk.has(a)||Mm(a,!1,e),Mm(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kc]||(t[Kc]=!0,Mm("selectionchange",!1,t))}}function TS(e,t,a,o){switch(zS(t)){case 2:var r=yE;break;case 8:r=bE;break;default:r=Ig}a=r.bind(null,t,a,e),r=void 0,!Km||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Om(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var l=o.tag;if(l===3||l===4){var s=o.stateNode.containerInfo;if(s===r)break;if(l===4)for(l=o.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===r)return;l=l.return}for(;s!==null;){if(l=ss(s),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){o=n=l;continue e}s=s.parentNode}}o=o.return}wb(function(){var i=n,c=Uh(a),d=[];e:{var f=_b.get(e);if(f!==void 0){var p=jf,g=e;switch(e){case"keypress":if(tf(a)===0)break e;case"keydown":case"keyup":p=ND;break;case"focusin":g="focus",p=dm;break;case"focusout":g="blur",p=dm;break;case"beforeblur":case"afterblur":p=dm;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=YC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ID;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=UD;break;case Fb:case Ub:case qb:p=wD;break;case Hb:p=HD;break;case"scroll":case"scrollend":p=LD;break;case"wheel":p=VD;break;case"copy":case"cut":case"paste":p=DD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=KC;break;case"toggle":case"beforetoggle":p=XD}var v=(t&4)!==0,L=!v&&(e==="scroll"||e==="scrollend"),m=v?f!==null?f+"Capture":null:f;v=[];for(var h=i,x;h!==null;){var C=h;if(x=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||x===null||m===null||(C=ai(h,m),C!=null&&v.push(fi(h,C,x))),L)break;h=h.return}0<v.length&&(f=new p(f,g,null,a,c),d.push({event:f,listeners:v}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&a!==Wm&&(g=a.relatedTarget||a.fromElement)&&(ss(g)||g[vi]))break e;if(p||f){if(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p){if(g=a.relatedTarget||a.toElement,p=i,g=g?ss(g):null,g!==null&&(L=hi(g),v=g.tag,g!==L||v!==5&&v!==27&&v!==6))g=null}else p=null,g=i;if(p!==g){if(v=YC,C="onMouseLeave",m="onMouseEnter",h="mouse",e==="pointerout"||e==="pointerover")v=KC,C="onPointerLeave",m="onPointerEnter",h="pointer";if(L=p==null?f:Pu(p),x=g==null?f:Pu(g),f=new v(C,h+"leave",p,a,c),f.target=L,f.relatedTarget=x,C=null,ss(c)===i&&(v=new v(m,h+"enter",g,a,c),v.target=x,v.relatedTarget=L,C=v),L=C,p&&g)t:{v=Xk,m=p,h=g,x=0;for(C=m;C;C=v(C))x++;C=0;for(var I=h;I;I=v(I))C++;for(;0<x-C;)m=v(m),x--;for(;0<C-x;)h=v(h),C--;for(;x--;){if(m===h||h!==null&&m===h.alternate){v=m;break t}m=v(m),h=v(h)}v=null}else v=null;p!==null&&Uy(d,f,p,v,!1),g!==null&&L!==null&&Uy(d,L,g,v,!0)}}}e:{if(f=i?Pu(i):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var b=$C;else if(JC(f))if(Ob)b=tk;else{b=$D;var S=JD}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?i&&Fh(i.elementType)&&(b=$C):b=ek;if(b&&(b=b(e,i))){Mb(d,b,a,c);break e}S&&S(e,f,i),e==="focusout"&&i&&f.type==="number"&&i.memoizedProps.value!=null&&Ym(f,"number",f.value)}switch(S=i?Pu(i):window,e){case"focusin":if(JC(S)||S.contentEditable==="true")cs=S,Zm=i,Gu=null;break;case"focusout":Gu=Zm=cs=null;break;case"mousedown":Qm=!0;break;case"contextmenu":case"mouseup":case"dragend":Qm=!1,oy(d,a,c);break;case"selectionchange":if(ok)break;case"keydown":case"keyup":oy(d,a,c)}var y;if(_h)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else is?kb(e,a)&&(T="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(T="onCompositionStart");if(T&&(Db&&a.locale!=="ko"&&(is||T!=="onCompositionStart"?T==="onCompositionEnd"&&is&&(y=Rb()):(jr=c,qh=("value"in jr)?jr.value:jr.textContent,is=!0)),S=zf(i,T),0<S.length&&(T=new WC(T,e,null,a,c),d.push({event:T,listeners:S}),y?T.data=y:(y=Eb(a),y!==null&&(T.data=y)))),y=YD?WD(e,a):KD(e,a))T=zf(i,"onBeforeInput"),0<T.length&&(S=new WC("onBeforeInput","beforeinput",null,a,c),d.push({event:S,listeners:T}),S.data=y);Vk(d,e,i,a,c)}IS(d,t)})}function fi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function zf(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=ai(e,a),r!=null&&o.unshift(fi(e,r,n)),r=ai(e,t),r!=null&&o.push(fi(e,r,n))),e.tag===3)return o;e=e.return}return[]}function Xk(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function Uy(e,t,a,o,r){for(var n=t._reactName,l=[];a!==null&&a!==o;){var s=a,u=s.alternate,i=s.stateNode;if(s=s.tag,u!==null&&u===o)break;s!==5&&s!==26&&s!==27||i===null||(u=i,r?(i=ai(a,n),i!=null&&l.unshift(fi(a,i,u))):r||(i=ai(a,n),i!=null&&l.push(fi(a,i,u)))),a=a.return}l.length!==0&&e.push({event:t,listeners:l})}var jk=/\r\n?/g,Yk=/\u0000|\uFFFD/g;function qy(e){return(typeof e==="string"?e:""+e).replace(jk,`
9
+ `).replace(Yk,"")}function wS(e,t){return t=qy(t),qy(e)===t?!0:!1}function Ct(e,t,a,o,r,n){switch(a){case"children":typeof o==="string"?t==="body"||t==="textarea"&&o===""||Ts(e,o):(typeof o==="number"||typeof o==="bigint")&&t!=="body"&&Ts(e,""+o);break;case"className":_c(e,"class",o);break;case"tabIndex":_c(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":_c(e,a,o);break;case"style":Tb(e,o,n);break;case"data":if(t!=="object"){_c(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=$c(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n==="function"&&(a==="formAction"?(t!=="input"&&Ct(e,t,"name",r.name,r,null),Ct(e,t,"formEncType",r.formEncType,r,null),Ct(e,t,"formMethod",r.formMethod,r,null),Ct(e,t,"formTarget",r.formTarget,r,null)):(Ct(e,t,"encType",r.encType,r,null),Ct(e,t,"method",r.method,r,null),Ct(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=$c(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=gr);break;case"onScroll":o!=null&&je("scroll",e);break;case"onScrollEnd":o!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(O(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=$c(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);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(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":je("beforetoggle",e),je("toggle",e),Jc(e,"popover",o);break;case"xlinkActuate":ur(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ur(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ur(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ur(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ur(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ur(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ur(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ur(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ur(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Jc(e,"is",o);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=yD.get(a)||a,Jc(e,a,o)}}function Sh(e,t,a,o,r,n){switch(a){case"style":Tb(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(O(61));if(a=o.__html,a!=null){if(r.children!=null)throw Error(O(60));e.innerHTML=a}}break;case"children":typeof o==="string"?Ts(e,o):(typeof o==="number"||typeof o==="bigint")&&Ts(e,""+o);break;case"onScroll":o!=null&&je("scroll",e);break;case"onScrollEnd":o!=null&&je("scrollend",e);break;case"onClick":o!=null&&(e.onclick=gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yb.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),n=e[Ya]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,r),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,r);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Jc(e,a,o)}}}function Aa(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var l=a[n];if(l!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ct(e,t,n,l,a,null)}}r&&Ct(e,t,"srcSet",a.srcSet,a,null),o&&Ct(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var s=n=l=r=null,u=null,i=null;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"name":r=c;break;case"type":l=c;break;case"checked":u=c;break;case"defaultChecked":i=c;break;case"value":n=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(O(137,t));break;default:Ct(e,t,o,c,a,null)}}Sb(e,n,s,u,i,l,r,!1);return;case"select":je("invalid",e),o=l=n=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":n=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:Ct(e,t,r,s,a,null)}t=n,a=l,e.multiple=!!o,t!=null?vs(e,!!o,t,!1):a!=null&&vs(e,!!o,a,!0);return;case"textarea":je("invalid",e),n=r=o=null;for(l in a)if(a.hasOwnProperty(l)&&(s=a[l],s!=null))switch(l){case"value":o=s;break;case"defaultValue":r=s;break;case"children":n=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(O(91));break;default:Ct(e,t,l,s,a,null)}Ab(e,o,r,n);return;case"option":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Ct(e,t,u,o,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(o=0;o<ci.length;o++)je(ci[o],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(i in a)if(a.hasOwnProperty(i)&&(o=a[i],o!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:Ct(e,t,i,o,a,null)}return;default:if(Fh(t)){for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!==void 0&&Sh(e,t,c,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&Ct(e,t,s,o,a,null))}function Wk(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,l=null,s=null,u=null,i=null,c=null;for(p in a){var d=a[p];if(a.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":u=d;default:o.hasOwnProperty(p)||Ct(e,t,p,null,o,d)}}for(var f in o){var p=o[f];if(d=a[f],o.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":n=p;break;case"name":r=p;break;case"checked":i=p;break;case"defaultChecked":c=p;break;case"value":l=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(O(137,t));break;default:p!==d&&Ct(e,t,f,p,o,d)}}jm(e,l,s,u,i,c,n,r);return;case"select":p=l=s=f=null;for(n in a)if(u=a[n],a.hasOwnProperty(n)&&u!=null)switch(n){case"value":break;case"multiple":p=u;default:o.hasOwnProperty(n)||Ct(e,t,n,null,o,u)}for(r in o)if(n=o[r],u=a[r],o.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":f=n;break;case"defaultValue":s=n;break;case"multiple":l=n;default:n!==u&&Ct(e,t,r,n,o,u)}t=s,a=l,o=p,f!=null?vs(e,!!a,f,!1):!!o!==!!a&&(t!=null?vs(e,!!a,t,!0):vs(e,!!a,a?[]:"",!1));return;case"textarea":p=f=null;for(s in a)if(r=a[s],a.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ct(e,t,s,null,o,r)}for(l in o)if(r=o[l],n=a[l],o.hasOwnProperty(l)&&(r!=null||n!=null))switch(l){case"value":f=r;break;case"defaultValue":p=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(O(91));break;default:r!==n&&Ct(e,t,l,r,o,n)}Ib(e,f,p);return;case"option":for(var g in a)if(f=a[g],a.hasOwnProperty(g)&&f!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ct(e,t,g,null,o,f)}for(u in o)if(f=o[u],p=a[u],o.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"selected":e.selected=f&&typeof f!=="function"&&typeof f!=="symbol";break;default:Ct(e,t,u,f,o,p)}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 v in a)f=a[v],a.hasOwnProperty(v)&&f!=null&&!o.hasOwnProperty(v)&&Ct(e,t,v,null,o,f);for(i in o)if(f=o[i],p=a[i],o.hasOwnProperty(i)&&f!==p&&(f!=null||p!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(O(137,t));break;default:Ct(e,t,i,f,o,p)}return;default:if(Fh(t)){for(var L in a)f=a[L],a.hasOwnProperty(L)&&f!==void 0&&!o.hasOwnProperty(L)&&Sh(e,t,L,void 0,o,f);for(c in o)f=o[c],p=a[c],!o.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||Sh(e,t,c,f,o,p);return}}for(var m in a)f=a[m],a.hasOwnProperty(m)&&f!=null&&!o.hasOwnProperty(m)&&Ct(e,t,m,null,o,f);for(d in o)f=o[d],p=a[d],!o.hasOwnProperty(d)||f===p||f==null&&p==null||Ct(e,t,d,f,o,p)}function Hy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kk(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],{transferSize:n,initiatorType:l,duration:s}=r;if(n&&s&&Hy(l)){l=0,s=r.responseEnd;for(o+=1;o<a.length;o++){var u=a[o],i=u.startTime;if(i>s)break;var c=u.transferSize,d=u.initiatorType;c&&Hy(d)&&(u=u.responseEnd,l+=c*(u<s?1:(s-i)/(u-i)))}if(--o,t+=8*(n+l)/(r.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var Ih=null,Ah=null;function Ff(e){return e.nodeType===9?e:e.ownerDocument}function _y(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 RS(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Th(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bm=null;function Zk(){var e=window.event;if(e&&e.type==="popstate"){if(e===Bm)return!1;return Bm=e,!0}return Bm=null,!1}var DS=typeof setTimeout==="function"?setTimeout:void 0,Qk=typeof clearTimeout==="function"?clearTimeout:void 0,Vy=typeof Promise==="function"?Promise:void 0,Jk=typeof queueMicrotask==="function"?queueMicrotask:typeof Vy<"u"?function(e){return Vy.resolve(null).then(e).catch($k)}:DS;function $k(e){setTimeout(function(){throw e})}function un(e){return e==="head"}function Gy(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(r),Bs(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")ei(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ei(a);for(var n=a.firstChild;n;){var l=n.nextSibling,s=n.nodeName;n[Ci]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=l}}else a==="body"&&ei(e.ownerDocument.body);a=r}while(a);Bs(t)}function Xy(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function wh(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":wh(a),zh(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function eE(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[Ci])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=So(e.nextSibling),e===null)break}return null}function tE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=So(e.nextSibling),e===null)return null}return e}function kS(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=So(e.nextSibling),e===null)return null}return e}function Rh(e){return e.data==="$?"||e.data==="$~"}function Dh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function aE(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function So(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kh=null;function jy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return So(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Yy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ES(e,t,a){switch(t=Ff(a),e){case"html":if(e=t.documentElement,!e)throw Error(O(452));return e;case"head":if(e=t.head,!e)throw Error(O(453));return e;case"body":if(e=t.body,!e)throw Error(O(454));return e;default:throw Error(O(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zh(e)}var Io=new Map,Wy=new Set;function Uf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wr=it.d;it.d={f:oE,r:rE,D:nE,C:lE,L:sE,m:uE,X:cE,S:iE,M:fE};function oE(){var e=wr.f(),t=od();return e||t}function rE(e){var t=Ps(e);t!==null&&t.tag===5&&t.type==="form"?TL(t):wr.r(e)}var Us=typeof document>"u"?null:document;function MS(e,t,a){var o=Us;if(o&&typeof t==="string"&&t){var r=vo(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a==="string"&&(r+='[crossorigin="'+a+'"]'),Wy.has(r)||(Wy.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Aa(t,"link",e),ma(t),o.head.appendChild(t)))}}function nE(e){wr.D(e),MS("dns-prefetch",e,null)}function lE(e,t){wr.C(e,t),MS("preconnect",e,t)}function sE(e,t,a){wr.L(e,t,a);var o=Us;if(o&&e&&t){var r='link[rel="preload"][as="'+vo(t)+'"]';t==="image"?a&&a.imageSrcSet?(r+='[imagesrcset="'+vo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(r+='[imagesizes="'+vo(a.imageSizes)+'"]')):r+='[href="'+vo(e)+'"]':r+='[href="'+vo(e)+'"]';var n=r;switch(t){case"style":n=Os(e);break;case"script":n=qs(e)}Io.has(n)||(e=Et({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Io.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Ai(n))||t==="script"&&o.querySelector(Ti(n))||(t=o.createElement("link"),Aa(t,"link",e),ma(t),o.head.appendChild(t)))}}function uE(e,t){wr.m(e,t);var a=Us;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r='link[rel="modulepreload"][as="'+vo(o)+'"][href="'+vo(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=qs(e)}if(!Io.has(n)&&(e=Et({rel:"modulepreload",href:e},t),Io.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ti(n)))return}o=a.createElement("link"),Aa(o,"link",e),ma(o),a.head.appendChild(o)}}}function iE(e,t,a){wr.S(e,t,a);var o=Us;if(o&&e){var r=xs(o).hoistableStyles,n=Os(e);t=t||"default";var l=r.get(n);if(!l){var s={loading:0,preload:null};if(l=o.querySelector(Ai(n)))s.loading=5;else{e=Et({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Io.get(n))&&bg(e,a);var u=l=o.createElement("link");ma(u),Aa(u,"link",e),u._p=new Promise(function(i,c){u.onload=i,u.onerror=c}),u.addEventListener("load",function(){s.loading|=1}),u.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ff(l,t,o)}l={type:"stylesheet",instance:l,count:1,state:s},r.set(n,l)}}}function cE(e,t){wr.X(e,t);var a=Us;if(a&&e){var o=xs(a).hoistableScripts,r=qs(e),n=o.get(r);n||(n=a.querySelector(Ti(r)),n||(e=Et({src:e,async:!0},t),(t=Io.get(r))&&Lg(e,t),n=a.createElement("script"),ma(n),Aa(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function fE(e,t){wr.M(e,t);var a=Us;if(a&&e){var o=xs(a).hoistableScripts,r=qs(e),n=o.get(r);n||(n=a.querySelector(Ti(r)),n||(e=Et({src:e,async:!0,type:"module"},t),(t=Io.get(r))&&Lg(e,t),n=a.createElement("script"),ma(n),Aa(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}function Ky(e,t,a,o){var r=(r=Zr.current)?Uf(r):null;if(!r)throw Error(O(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(t=Os(a.href),a=xs(r).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Os(a.href);var n=xs(r).hoistableStyles,l=n.get(e);if(l||(r=r.ownerDocument||r,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,l),(n=r.querySelector(Ai(e)))&&!n._p&&(l.instance=n,l.state.loading=5),Io.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Io.set(e,a),n||dE(r,e,a,l.state))),t&&o===null)throw Error(O(528,""));return l}if(t&&o!==null)throw Error(O(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(t=qs(a),a=xs(r).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,e))}}function Os(e){return'href="'+vo(e)+'"'}function Ai(e){return'link[rel="stylesheet"]['+e+"]"}function OS(e){return Et({},e,{"data-precedence":e.precedence,precedence:null})}function dE(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Aa(t,"link",a),ma(t),e.head.appendChild(t))}function qs(e){return'[src="'+vo(e)+'"]'}function Ti(e){return"script[async]"+e}function Zy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vo(a.href)+'"]');if(o)return t.instance=o,ma(o),o;var r=Et({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ma(o),Aa(o,"style",r),ff(o,a.precedence,e),t.instance=o;case"stylesheet":r=Os(a.href);var n=e.querySelector(Ai(r));if(n)return t.state.loading|=4,t.instance=n,ma(n),n;o=OS(a),(r=Io.get(r))&&bg(o,r),n=(e.ownerDocument||e).createElement("link"),ma(n);var l=n;return l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),Aa(n,"link",o),t.state.loading|=4,ff(n,a.precedence,e),t.instance=n;case"script":if(n=qs(a.src),r=e.querySelector(Ti(n)))return t.instance=r,ma(r),r;if(o=a,r=Io.get(n))o=Et({},a),Lg(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),ma(r),Aa(r,"link",o),e.head.appendChild(r),t.instance=r;case"void":return null;default:throw Error(O(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,ff(o,a.precedence,e));return t.instance}function ff(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,l=0;l<o.length;l++){var s=o[l];if(s.dataset.precedence===t)n=s;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var df=null;function Qy(e,t,a){if(df===null){var o=new Map,r=df=new Map;r.set(a,o)}else r=df,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(r=0;r<a.length;r++){var n=a[r];if(!(n[Ci]||n[La]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var l=n.getAttribute(t)||"";l=e+l;var s=o.get(l);s?s.push(n):o.set(l,[n])}}return o}function Jy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function pE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function BS(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function mE(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Os(o.href),n=t.querySelector(Ai(r));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=qf.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=n,ma(n);return}n=t.ownerDocument||t,o=OS(o),(r=Io.get(r))&&bg(o,r),n=n.createElement("link"),ma(n);var l=n;l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),Aa(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Pm=0;function hE(e,t){return e.stylesheets&&e.count===0&&pf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&pf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},60000+t);0<e.imgBytes&&Pm===0&&(Pm=62500*Kk());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>Pm?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hf=null;function pf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hf=new Map,t.forEach(gE,e),Hf=null,qf.call(e))}function gE(e,t){if(!(t.state.loading&4)){var a=Hf.get(e);if(a)var o=a.get(null);else{a=new Map,Hf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var l=r[n];if(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")a.set(l.dataset.precedence,l),o=l}o&&a.set(null,o)}r=t.instance,l=r.getAttribute("data-precedence"),n=a.get(l)||o,n===o&&a.set(null,r),a.set(l,r),this.count++,o=qf.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var di={$$typeof:hr,Provider:null,Consumer:null,_currentValue:Kn,_currentValue2:Kn,_threadCount:0};function xE(e,t,a,o,r,n,l,s,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=um(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=um(0),this.hiddenUpdates=um(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function vE(e,t,a,o,r,n,l,s,u,i,c,d){return e=new xE(e,t,a,l,u,i,c,d,s),t=1,n===!0&&(t|=24),n=$a(3,null,null,t),e.current=n,n.stateNode=e,t=Kh(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:a,cache:t},Jh(n),e}function CE(e){if(!e)return ps;return e=ps,e}function PS(e,t,a,o,r,n){r=CE(r),o.context===null?o.context=r:o.pendingContext=r,o=$n(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(o.callback=n),a=el(e,o,t),a!==null&&(ja(a,e,t),ju(a,e,t))}function $y(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sg(e,t){$y(e,t),(e=e.alternate)&&$y(e,t)}function NS(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&ja(t,e,67108864),Sg(e,67108864)}}function eb(e){if(e.tag===13||e.tag===31){var t=Lo();t=xb(t);var a=cl(e,t);a!==null&&ja(a,e,t),Sg(e,t)}}var _f=!0;function yE(e,t,a,o){var r=Ee.T;Ee.T=null;var n=it.p;try{it.p=2,Ig(e,t,a,o)}finally{it.p=n,Ee.T=r}}function bE(e,t,a,o){var r=Ee.T;Ee.T=null;var n=it.p;try{it.p=8,Ig(e,t,a,o)}finally{it.p=n,Ee.T=r}}function Ig(e,t,a,o){if(_f){var r=Eh(o);if(r===null)Om(e,t,o,Vf,a),tb(e,o);else if(SE(r,e,t,a,o))o.stopPropagation();else if(tb(e,o),t&4&&-1<LE.indexOf(e)){for(;r!==null;){var n=Ps(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var l=Xn(n.pendingLanes);if(l!==0){var s=n;s.pendingLanes|=2;for(s.entangledLanes|=2;l;){var u=1<<31-oo(l);s.entanglements[1]|=u,l&=~u}Tr(n),(ut&6)===0&&(Mf=to()+500,Ii(0,!1))}}break;case 31:case 13:s=cl(n,2),s!==null&&ja(s,n,2),od(),Sg(n,2)}if(n=Eh(o),n===null&&Om(e,t,o,Vf,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else Om(e,t,o,null,a)}}function Eh(e){return e=Uh(e),Ag(e)}var Vf=null;function Ag(e){if(Vf=null,e=ss(e),e!==null){var t=hi(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=nb(t),e!==null)return e;e=null}else if(a===31){if(e=lb(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vf=e,null}function zS(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(rD()){case cb:return 2;case fb:return 8;case vf:case nD:return 32;case db:return 268435456;default:return 32}default:return 32}}var Mh=!1,en=null,tn=null,an=null,pi=new Map,mi=new Map,Gr=[],LE="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 tb(e,t){switch(e){case"focusin":case"focusout":en=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":an=null;break;case"pointerover":case"pointerout":pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mi.delete(t.pointerId)}}function Mu(e,t,a,o,r,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Ps(t),t!==null&&NS(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function SE(e,t,a,o,r){switch(t){case"focusin":return en=Mu(en,e,t,a,o,r),!0;case"dragenter":return tn=Mu(tn,e,t,a,o,r),!0;case"mouseover":return an=Mu(an,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return pi.set(n,Mu(pi.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,mi.set(n,Mu(mi.get(n)||null,e,t,a,o,r)),!0}return!1}function FS(e){var t=ss(e.target);if(t!==null){var a=hi(t);if(a!==null){if(t=a.tag,t===13){if(t=nb(a),t!==null){e.blockedOn=t,qC(e.priority,function(){eb(a)});return}}else if(t===31){if(t=lb(a),t!==null){e.blockedOn=t,qC(e.priority,function(){eb(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Eh(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Wm=o,a.target.dispatchEvent(o),Wm=null}else return t=Ps(a),t!==null&&NS(t),e.blockedOn=a,!1;t.shift()}return!0}function ab(e,t,a){mf(e)&&a.delete(t)}function IE(){Mh=!1,en!==null&&mf(en)&&(en=null),tn!==null&&mf(tn)&&(tn=null),an!==null&&mf(an)&&(an=null),pi.forEach(ab),mi.forEach(ab)}function Zc(e,t){e.blockedOn===t&&(e.blockedOn=null,Mh||(Mh=!0,Hn(qn,IE)))}var Qc=null;function ob(e){Qc!==e&&(Qc=e,Hn(qn,function(){Qc===e&&(Qc=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!=="function")if(Ag(o||a)===null)continue;else break;var n=Ps(a);n!==null&&(e.splice(t,3),t-=3,ch(n,{pending:!0,data:r,method:a.method,action:o},o,r))}}))}function Bs(e){function t(u){return Zc(u,e)}en!==null&&Zc(en,e),tn!==null&&Zc(tn,e),an!==null&&Zc(an,e),pi.forEach(t),mi.forEach(t);for(var a=0;a<Gr.length;a++){var o=Gr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Gr.length&&(a=Gr[0],a.blockedOn===null);)FS(a),a.blockedOn===null&&Gr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],l=r[Ya]||null;if(typeof n==="function")l||ob(a);else if(l){var s=null;if(n&&n.hasAttribute("formAction")){if(r=n,l=n[Ya]||null)s=l.formAction;else if(Ag(r)!==null)continue}else s=l.action;typeof s==="function"?a[o+1]=s:(a.splice(o,3),o-=3),ob(a)}}}function AE(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(l){return r=l})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Tg(e){this._internalRoot=e}wg.prototype.render=Tg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));var a=t.current,o=Lo();PS(a,o,e,t,null,null)};wg.prototype.unmount=Tg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;PS(e.current,2,null,e,null,null),od(),t[vi]=null}};function wg(e){this._internalRoot=e}wg.prototype.unstable_scheduleHydration=function(e){if(e){var t=vb();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Gr.length&&t!==0&&t<Gr[a].priority;a++);Gr.splice(a,0,e),a===0&&FS(e)}};var rb=Kl;if(rb!=="19.2.8")throw Error(O(527,rb,"19.2.8"));it.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(O(188));throw e=Object.keys(e).join(","),Error(O(268,e))}return e=QR(t),e=e!==null?sb(e):null,e=e===null?null:e.stateNode,e};var TE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(rs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!rs.isDisabled&&rs.supportsFiber)try{gi=rs.inject(TE),ao=rs}catch(e){}}var rs;var Rg=function(e,t){if(!ZR(e))throw Error(O(299));var a=!1,o="",r=bk,n=Lk,l=Sk;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=vE(e,1,!1,null,null,a,o,null,r,n,l,AE),e[vi]=t.current,AS(e),new Tg(t)};US();class dl{constructor(){}static noop(){return dl.callback(()=>{})}static callback(e){return{dispose:e}}static nullable(e){return e??dl.noop()}}class Hs{resources=[];_disposed=!1;get disposed(){return this._disposed}use(e){return this.assertOpen(),this.resources.push(e),e}adopt(e,t){return this.assertOpen(),this.resources.push(dl.callback(()=>t(e))),e}defer(e){this.assertOpen(),this.resources.push(dl.callback(e))}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.resources.pop();while(e)e.dispose(),e=this.resources.pop()}assertOpen(){if(this._disposed)throw Error("cannot register a resource on a disposed Disposer")}}function qS(e,t){if(Object.is(e,t))return!0;if(typeof e!=="object"||typeof t!=="object"||e===null||t===null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;return a.every((r)=>Object.hasOwn(t,r)&&Object.is(e[r],t[r]))}class ld{source;select;events;state;constructor(e,t,a){this.source=e;this.select=t;this.events=a;this.state=this.select(this.source)}subscribe=(e)=>{let t=new Hs,a=()=>{let o=this.select(this.source);if(!qS(this.state,o))this.state=o,e()};for(let o of this.events)t.defer(this.source.events.on(o,a));return a(),()=>{t.dispose()}};getSnapshot=()=>this.state;getServerSnapshot=()=>this.state}W();function sd(e,t){ce(()=>{let a=new Hs;try{e(a)}catch(o){throw a.dispose(),o}return()=>{a.dispose()}},t)}W();function Dg(e){return Fn(e.subscribe,e.getSnapshot,e.getServerSnapshot)}W();function kg(e,t,a){let o=z(t);o.current=t;let[r]=J(()=>new ld(e,(n)=>o.current(n),a));return Dg(r)}W();W();W();W();function Mt(){}var HS=Object.freeze([]),na=Object.freeze({});function _s(e){ce(e,HS)}W();var _S={};function Jt(e,t){let a=z(_S);if(a.current===_S)a.current=e(t);return a}W();var DE=()=>{},ye=typeof document<"u"?Pr:DE;function kE(e,t){return function(o,...r){let n=new URL(e);return n.searchParams.set("code",o.toString()),r.forEach((l)=>n.searchParams.append("args[]",l)),`${t} error #${o}; visit ${n} for the full message.`}}var EE=kE("https://base-ui.com/production-error","Base UI"),ka=EE;W();var Eg=Ue(void 0);function cn(){let e=Be(Eg);if(!e)throw Error(ka(73));return e}W();var zg=TR(Og(),1);W();var VE=Og();function GE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XE=typeof Object.is==="function"?Object.is:GE,jE=VE.useSyncExternalStore,YE=z,WE=ce,KE=Le,ZE=Po;var Bg=function(e,t,a,o,r){var n=YE(null);if(n.current===null){var l={hasValue:!1,value:null};n.current=l}else l=n.current;n=KE(function(){function u(p){if(!i){if(i=!0,c=p,p=o(p),r!==void 0&&l.hasValue){var g=l.value;if(r(g,p))return d=g}return d=p}if(g=d,XE(c,p))return g;var v=o(p);if(r!==void 0&&r(g,v))return c=p,g;return c=p,d=v}var i=!1,c,d,f=a===void 0?null:a;return[function(){return u(t())},f===null?void 0:function(){return u(f())}]},[t,a,o,r]);var s=jE(e,n[0],n[1]);return WE(function(){l.hasValue=!0,l.value=s},[s]),ZE(s),s};W();var QE=parseInt(Kl,10);function Vs(e){return QE>=e}W();var Pg=[],Ng=void 0;function VS(){return Ng}function GS(e){Pg.push(e)}function XS(e){let t=(a,o)=>{let r=Jt(JE).current,n;try{Ng=r;for(let l of Pg)l.before(r);n=e(a,o);for(let l of Pg)l.after(r);r.didInitialize=!0}finally{Ng=void 0}return n};return t.displayName=e.displayName||e.name,t}function JE(){return{didInitialize:!1}}var $E=Vs(19),eM=$E?aM:oM;function ud(e,t,a,o,r){return eM(e,t,a,o,r)}function tM(e,t,a,o,r){let n=dt(()=>t(e.getSnapshot(),a,o,r),[e,t,a,o,r]);return zg.useSyncExternalStore(e.subscribe,n,n)}GS({before(e){if(e.syncIndex=0,!e.didInitialize)e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let a=0;a<e.syncHooks.length;a+=1){let o=e.syncHooks[a],r=o.selector(o.store.state,o.a1,o.a2,o.a3);if(!Object.is(o.value,r))t=!0,o.value=r}if(t)e.syncTick+=1;return e.syncTick}},after(e){if(e.syncHooks.length>0){if(e.didChangeStore)e.didChangeStore=!1,e.subscribe=(t)=>{let a=new Set;for(let r of e.syncHooks)a.add(r.store);let o=[];for(let r of a)o.push(r.subscribe(t));return()=>{for(let r of o)r()}};zg.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}}});function aM(e,t,a,o,r){let n=VS();if(!n)return tM(e,t,a,o,r);let l=n.syncIndex;n.syncIndex+=1;let s;if(!n.didInitialize)s={store:e,selector:t,a1:a,a2:o,a3:r,value:t(e.getSnapshot(),a,o,r)},n.syncHooks.push(s);else if(s=n.syncHooks[l],s.store!==e||s.selector!==t||!Object.is(s.a1,a)||!Object.is(s.a2,o)||!Object.is(s.a3,r)){if(s.store!==e)n.didChangeStore=!0;s.store=e,s.selector=t,s.a1=a,s.a2=o,s.a3=r,s.value=t(e.getSnapshot(),a,o,r)}return s.value}function oM(e,t,a,o,r){return Bg(e.subscribe,e.getSnapshot,e.getSnapshot,(n)=>t(n,a,o,r))}class Fg{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=(e)=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let a of this.listeners){if(t!==this.updateTick)return;a(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){if(!Object.is(this.state[e],t))this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,a,o){return ud(this,e,t,a,o)}}W();W();var wi={...se};var Ug=wi.useInsertionEffect,rM=Ug&&Ug!==wi.useLayoutEffect?Ug:(e)=>e();function Qe(e){let t=Jt(nM).current;return t.next=e,rM(t.effect),t.trampoline}function nM(){let e={next:void 0,callback:lM,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function lM(){}class pl extends Fg{constructor(e,t={},a){super(e);this.context=t,this.selectors=a}useSyncedValue(e,t){Po(e);let a=this;ye(()=>{if(a.state[e]!==t)a.set(e,t)},[a,e,t])}useSyncedValueWithCleanup(e,t){let a=this;ye(()=>{if(a.state[e]!==t)a.set(e,t);return()=>{a.set(e,void 0)}},[a,e,t])}useSyncedValues(e){let t=this,a=Object.values(e);ye(()=>{t.update(e)},[t,...a])}useControlledProp(e,t){Po(e);let a=this,o=t!==void 0;ye(()=>{if(o&&!Object.is(a.state[e],t))a.setState({...a.state,[e]:t})},[a,e,t,o])}select(e,t,a,o){let r=this.selectors[e];return r(this.state,t,a,o)}useState(e,t,a,o){return Po(e),ud(this,this.selectors[e],t,a,o)}useContextCallback(e,t){Po(e);let a=Qe(t??Mt);this.context[e]=a}useStateSetter(e){let t=z(void 0);if(t.current===void 0)t.current=(a)=>{this.set(e,a)};return t.current}observe(e,t){let a;if(typeof e==="function")a=e;else a=this.selectors[e];let o=a(this.state);return t(o,o,this),this.subscribe((r)=>{let n=a(r);if(!Object.is(o,n)){let l=o;o=n,t(n,l,this)}})}}function id(){return typeof window<"u"}function Ea(e){if(cd(e))return(e.nodeName||"").toLowerCase();return"#document"}function ga(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sM(e){var t;return(t=(cd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cd(e){if(!id())return!1;return e instanceof Node||e instanceof ga(e).Node}function fn(e){if(!id())return!1;return e instanceof Element||e instanceof ga(e).Element}function ia(e){if(!id())return!1;return e instanceof HTMLElement||e instanceof ga(e).HTMLElement}function tr(e){if(!id()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}function jS(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=ml(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function fd(e){return/^(html|body|#document)$/.test(Ea(e))}function ml(e){return ga(e).getComputedStyle(e)}function YS(e){if(Ea(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tr(e)&&e.host||sM(e);return tr(t)?t.host:t}function qo(...e){return()=>{for(let t=0;t<e.length;t+=1){let a=e[t];if(a)a()}}}function et(e){return e?.ownerDocument||document}function We(e,t,a,o){return e.addEventListener(t,a,o),()=>{e.removeEventListener(t,a,o)}}var dd=null,jF=globalThis.requestAnimationFrame;class WS{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(e)=>{this.isScheduled=!1;let t=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let o=0;o<t.length;o+=1)t[o]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let a=!1;if(!this.isScheduled||a)requestAnimationFrame(this.tick),this.isScheduled=!0;return t}cancel(e){let t=e-this.startId;if(t<0||t>=this.callbacks.length)return;if(this.callbacks[t]===null)return;this.callbacks[t]=null,this.callbacksCount-=1}}var pd=new WS;class Ao{static create(){return new Ao}static request(e){return pd.request(e)}static cancel(e){return pd.cancel(e)}currentId=dd;request(e){this.cancel(),this.currentId=pd.request(()=>{this.currentId=dd,e()})}cancel=()=>{if(this.currentId!==dd)pd.cancel(this.currentId),this.currentId=dd};disposeEffect=()=>this.cancel}function md(){let e=Jt(Ao.create).current;return _s(e.disposeEffect),e}var Ri=0;class To{static create(){return new To}currentId=Ri;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ri,t()},e)}isStarted(){return this.currentId!==Ri}clear=()=>{if(this.currentId!==Ri)clearTimeout(this.currentId),this.currentId=Ri};disposeEffect=()=>this.clear}function ar(){let e=Jt(To.create).current;return _s(e.disposeEffect),e}var uM=Symbol.for("react.transitional.element"),iM=Symbol.for("react.fragment");function KS(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:uM,type:e,key:o,ref:t!==void 0?t:null,props:a}}var hl=iM,A=KS,j=KS;var ZS=0;function hd(e){return ZS+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${ZS}`}function gd(e,t){if(typeof e==="string")return{description:e};if(typeof e==="function"){let a=e(t);return typeof a==="string"?{description:a}:a}return e}var Gs={};vc(Gs,{android:()=>$S,apple:()=>Hg,ios:()=>qg,linux:()=>mM,mac:()=>e0,windows:()=>pM});function cM(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:fM,platform:dM,maxTouchPoints:QS}=cM(),gl=fM.toLowerCase(),xl=dM.toLowerCase();var qg=/^i(os$|p)/.test(xl)||xl==="macintel"&&QS>1,JS="android",$S=xl===JS||gl.includes(JS),e0=!qg&&xl.startsWith("mac"),pM=xl.startsWith("win"),mM=!$S&&/^(linux|chrome os)/.test(xl),Hg=e0||qg;var Xs={};vc(Xs,{blink:()=>gM,gecko:()=>hM,webkit:()=>_g});var _g=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),hM=!_g&&gl.includes("firefox"),gM=!_g&&gl.includes("chrom");var Vg={};vc(Vg,{voiceOver:()=>xM});var xM=Hg;var xd={};vc(xd,{jsdom:()=>vM});var vM=/jsdom|happydom/.test(gl);function jt(e){let t=e.activeElement;while(t?.shadowRoot?.activeElement!=null)t=t.shadowRoot.activeElement;return t}function ze(e,t){if(!e||!t)return!1;let a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&tr(a)){let o=t;while(o){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Yt(e){if("composedPath"in e)return e.composedPath()[0]??e.target;return e.target}var Di="data-base-ui-focusable";var t0="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";var Cl="data-starting-style",ki="data-ending-style";var CM={[Cl]:""},yM={[ki]:""},js={transitionStatus(e){if(e==="starting")return CM;if(e==="ending")return yM;return null}};var Gg="data-open",Xg="data-closed",bM=Cl,LM=ki,a0="data-anchor-hidden";var jg="data-popup-open",r0="data-pressed";var dU={[jg]:""},pU={[jg]:"",[r0]:""},IM={[Gg]:""},AM={[Xg]:""},TM={[a0]:""};var Yg={open(e){if(e)return IM;return AM},anchorHidden(e){if(e)return TM;return null}},n0={...Yg,...js};function Cd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let a=e;return a.target!=null&&t.contains(a.target)}function l0(e){return e.matches("html,body")}function Wg(e){return ia(e)&&e.matches(t0)}function Kg(e){if(!e)return!1;return e.getAttribute("role")==="combobox"&&Wg(e)}function Ys(e){if(!e||xd.jsdom)return!0;try{return e.matches(":focus-visible")}catch(t){return!0}}function Zg(e){if(!e)return null;return e.hasAttribute(Di)?e:e.querySelector(`[${Di}]`)||e}function yl(e,t,a=!0){return e.filter((r)=>r.parentId===t).flatMap((r)=>[...!a||r.context?.open?[r]:[],...yl(e,r.id,a)])}function Qg(e,t){let a=[],o=e.find((r)=>r.id===t)?.parentId;while(o){let r=e.find((n)=>n.id===o);if(o=r?.parentId,r)a=a.concat(r)}return a}function s0(e){e.preventDefault(),e.stopPropagation()}function u0(e){return"nativeEvent"in e}function yd(e){if(e.pointerType===""&&e.isTrusted)return!0;if(Gs.android&&e.pointerType)return e.type==="click"&&e.buttons===1;return e.detail===0&&!e.pointerType}function i0(e){if(xd.jsdom)return!1;return!Gs.android&&e.width===0&&e.height===0||Gs.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function c0(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function wM(e){return e.visibility==="hidden"||e.visibility==="collapse"}function bd(e,t=e?ml(e):null){if(!e||!e.isConnected||!t||wM(t))return!1;if(typeof e.checkVisibility==="function")return e.checkVisibility();return t.display!=="none"&&t.display!=="contents"}var RM='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function DM(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let a=e.getRootNode();return tr(a)?a.host:null}function $g(e){for(let t of Array.from(e.children))if(Ea(t)==="summary")return t;return null}function kM(e,t){let a=$g(t);return!!a&&(e===a||ze(a,e))}function f0(e){let t=e?Ea(e):"";return e!=null&&e.matches(RM)&&(t!=="summary"||e.parentElement!=null&&Ea(e.parentElement)==="details"&&$g(e.parentElement)===e)&&(t!=="details"||$g(e)==null)&&(t!=="input"||e.type!=="hidden")}function d0(e){if(!f0(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=DM(t)){let a=t!==e,o=Ea(t)==="slot";if(t.hasAttribute("inert"))return!1;if(a&&Ea(t)==="details"&&!t.open&&!kM(e,t)||t.hasAttribute("hidden")||!o&&!EM(t,a))return!1}return!0}function EM(e,t){let a=ml(e);if(!t)return bd(e,a);return a.display!=="none"}function p0(e){let t=e.tabIndex;if(t<0){let a=Ea(e);if(a==="details"||a==="audio"||a==="video"||ia(e)&&e.isContentEditable)return 0}return t}function Jg(e){if(Ea(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function MM(e,t){let a=Jg(e);if(!a)return!0;let o=t.find((r)=>{let n=Jg(r);return n?.name===a.name&&n.form===a.form&&n.checked});if(o)return o===a;return t.find((r)=>{let n=Jg(r);return n?.name===a.name&&n.form===a.form})===a}function m0(e){if(ia(e)&&Ea(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}if(ia(e)&&e.shadowRoot)return Array.from(e.shadowRoot.children);return Array.from(e.children)}function h0(e,t){m0(e).forEach((a)=>{if(f0(a))t.push(a);h0(a,t)})}function g0(e,t,a){m0(e).forEach((o)=>{if(ia(o)&&o.matches(t))a.push(o);g0(o,t,a)})}function Ld(e){return d0(e)&&p0(e)>=0}function ex(e){let t=[];return h0(e,t),t.filter(d0)}function Ei(e){let t=ex(e);return t.filter((a)=>p0(a)>=0&&MM(a,t))}function x0(e,t){let a=Ei(e),o=a.length;if(o===0)return;let r=jt(et(e)),n=a.indexOf(r),l=n===-1?t===1?0:o-1:n+t;return a[l]}function Sd(e){return x0(et(e).body,1)||e}function Id(e){return x0(et(e).body,-1)||e}function bl(e,t){let a=t||e.currentTarget,o=e.relatedTarget;return!o||!ze(a,o)}function v0(e){Ei(e).forEach((a)=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function tx(e){let t=[];g0(e,"[data-tabindex]",t),t.forEach((a)=>{let o=a.dataset.tabindex;if(delete a.dataset.tabindex,o)a.setAttribute("tabindex",o);else a.removeAttribute("tabindex")})}function ax(e){let t=new Map,a=0,o=0;return e.forEach((r,n)=>{let l=r.transitionStatus==="ending";if(t.set(r.id,{value:r,domIndex:n,visibleIndex:l?-1:a,offsetY:o}),o+=r.height||0,!l)a+=1}),t}function ox(e,t){let a=0;return e.map((o)=>{if(o.transitionStatus==="ending")return o;let r=a>=t;return a+=1,o.limited===r?o:{...o,limited:r}})}var Ho={toasts:(e)=>e.toasts,isEmpty:(e)=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:(e)=>e.focused,expanded:(e)=>e.hovering||e.focused,expandedOrOutOfFocus:(e)=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:(e)=>e.prevFocusElement};class rx extends pl{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:ax(e.toasts)},{},Ho)}setViewport=(e)=>{this.set("viewport",e)};syncProviderProps(e,t){let a=this.state.limit!==t;if(this.state.timeout===e&&!a)return;let o={timeout:e,limit:t};if(a){let r=ox(this.state.toasts,t);o.toasts=r,o.toastMetadata=ax(r)}this.update(o)}disposeEffect=()=>()=>{this.timers.forEach((e)=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let a=Ho.toastIndex(this.state,e);if(a===-1)return;let o=this.state.toasts[a];if(!t)o?.onRemove?.();let r=[...this.state.toasts];r.splice(a,1),this.setToasts(r)}addToast=(e)=>{let{timeout:t,limit:a}=this.state,o=e.id||hd("toast");if(e.id){let s=Ho.toast(this.state,e.id);if(s)if(s.transitionStatus==="ending")this.removeToast(e.id,!0);else{let{id:u,transitionStatus:i,...c}=e;return this.updateToastInternal(e.id,c,!0,!0),e.id}}let r={...e,id:o,updateKey:0,transitionStatus:"starting"},n=[r,...this.state.toasts];this.setToasts(ox(n,a));let l=r.timeout??t;if(r.type!=="loading"&&l>0)this.scheduleTimer(o,l,()=>this.closeToast(o));if(Ho.expandedOrOutOfFocus(this.state))this.pauseTimers();return o};updateToast=(e,t)=>{let a=Ho.toast(this.state,e);if(!a||a.transitionStatus==="ending")return;this.updateToastInternal(e,typeof t==="function"?t(a):t,!1,!0)};updateToastInternal=(e,t,a=!1,o=!1)=>{let{timeout:r,toasts:n}=this.state,l=Ho.toast(this.state,e);if(!l)return;if(l.transitionStatus==="ending")return;let s={...l,...t,...o&&{updateKey:l.updateKey+1}};this.setToasts(n.map((v)=>v.id===e?s:v));let u=s.timeout??r,i=l.timeout??r,c=Object.hasOwn(t,"timeout"),d=s.transitionStatus!=="ending"&&s.type!=="loading"&&u>0,f=this.timers.has(e),p=i!==u,g=l.type==="loading";if(!d&&f){this.clearTimer(e);return}if(d&&(!f||p||c||g||a)){if(this.clearTimer(e),this.scheduleTimer(e,u,()=>this.closeToast(e)),Ho.expandedOrOutOfFocus(this.state))this.pauseTimers()}};closeToast=(e)=>{let t=e===void 0,{limit:a,toasts:o}=this.state,r;if(t)r=o,this.clearTimers();else{let s=Ho.toast(this.state,e);if(!s)return;r=[s],this.clearTimer(e)}let n=o.map((s)=>t||s.id===e?{...s,transitionStatus:"ending",height:0}:s),l=ox(n,a);this.setToasts(l,!l.some((s)=>s.transitionStatus!=="ending")),r.forEach((s)=>{if(s.transitionStatus!=="ending")s.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let a=gd(t.loading),o=this.addToast({...a,type:"loading"}),r=e.then((n)=>{let l=gd(t.success,n);return this.updateToast(o,{...l,type:"success",timeout:l.timeout}),n}).catch((n)=>{let l=gd(t.error,n);return this.updateToast(o,{...l,type:"error",timeout:l.timeout}),Promise.reject(n)});if({}.hasOwnProperty.call(t,"setPromise"))t.setPromise(r);return r};pauseTimers(){if(this.areTimersPaused)return;this.areTimersPaused=!0,this.timers.forEach((e)=>{if(e.timeout)e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0)})}resumeTimers(){if(!this.areTimersPaused)return;this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=To.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()})}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=(e)=>{if(e.pointerType!=="touch")return;let t=Yt(e);if(ze(this.state.viewport,t))return;this.resumeTimers(),this.update({hovering:!1,focused:!1})};scheduleTimer(e,t,a){let o=Date.now(),n=!Ho.expandedOrOutOfFocus(this.state)?To.create():void 0;n?.start(t,()=>{this.handleTimerFired(e),a()}),this.timers.set(e,{timeout:n,start:o,delay:t,remaining:t,callback:a})}clearTimers(){this.timers.forEach((e)=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){if(this.timers.size===0)this.areTimersPaused=!1}setToasts(e,t=e.length===0){let a={toasts:e,toastMetadata:ax(e)};if(t)a.hovering=!1,a.focused=!1;this.update(a)}handleFocusManagement(e){let t=jt(et(this.state.viewport));if(!this.state.viewport||!ze(this.state.viewport,t)||!Ys(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let a=Ho.toasts(this.state),o=Ho.toastIndex(this.state,e),r=(l,s)=>{for(let u=l;u>=0&&u<a.length;u+=s)if(a[u].transitionStatus!=="ending")return a[u];return null},n=r(o+1,1)??r(o-1,-1);if(n)n.ref?.current?.focus();else this.restoreFocusToPrevElement()}}var C0=function(t){let{children:a,timeout:o=5000,limit:r=3,toastManager:n}=t,l=Jt(()=>new rx({timeout:o,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return _s(l.disposeEffect),ce(function(){if(!n)return;return n[" subscribe"](({action:i,options:c})=>{let d=c.id;if(i==="promise"&&c.promise)l.promiseToast(c.promise,c);else if(i==="update"&&d)l.updateToast(d,c.updates);else if(i==="close")l.closeToast(d);else l.addToast(c)})},[l,n]),j(Eg.Provider,{value:l,children:[A(OM,{store:l,timeout:o,limit:r}),a]})};function OM(e){let{store:t,timeout:a,limit:o}=e;return ye(()=>{t.syncProviderProps(a,o)},[t,a,o]),null}W();var y0={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Ws={...y0,position:"fixed",top:0,left:0},YU={...y0,position:"absolute"};W();var dn=Ce(function(t,a){let[o,r]=J();return ye(()=>{if(Vg.voiceOver&&Xs.webkit)r("button")},[]),A("span",{...t,ref:a,style:Ws,"aria-hidden":o?void 0:!0,...{tabIndex:0,role:o},"data-base-ui-focus-guard":""})});W();function Ks(e,t,a,o){let r=Jt(L0).current;if(BM(r,e,t,a,o))S0(r,[e,t,a,o]);return r.callback}function b0(e){let t=Jt(L0).current;if(PM(t,e))S0(t,e);return t.callback}function L0(){return{callback:null,cleanup:null,refs:[]}}function BM(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function PM(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function S0(e,t){if(e.refs=t,t.every((a)=>a==null)){e.callback=null;return}e.callback=(a)=>{if(e.cleanup)e.cleanup(),e.cleanup=null;if(a!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let n=t[r];if(n==null)continue;switch(typeof n){case"function":{let l=n(a);if(typeof l==="function")o[r]=l;break}case"object":{n.current=a;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let n=t[r];if(n==null)continue;switch(typeof n){case"function":{let l=o[r];if(typeof l==="function")l();else n(null);break}case"object":{n.current=null;break}default:}}}}}}W();function nx(e){if(!Wo(e))return null;let t=e,a=t.props;return(Vs(19)?a?.ref:t.ref)??null}function Mi(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t};return}function I0(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let n=t[o](r);if(n!=null)Object.assign(a,n);continue}if(r===!0)a[`data-${o.toLowerCase()}`]="";else if(r)a[`data-${o.toLowerCase()}`]=r.toString()}return a}function A0(e,t){return typeof e==="function"?e(t):e}function T0(e,t){return typeof e==="function"?e(t):e}var lx={};function Ll(e,t,a,o,r){if(!a&&!o&&!r&&!e)return Ad(t);let n=Ad(e);if(t)n=Oi(n,t);if(a)n=Oi(n,a);if(o)n=Oi(n,o);if(r)n=Oi(n,r);return n}function w0(e){if(e.length===0)return lx;if(e.length===1)return Ad(e[0]);let t=Ad(e[0]);for(let a=1;a<e.length;a+=1)t=Oi(t,e[a]);return t}function Ad(e){if(sx(e))return{...D0(e,lx)};return NM(e)}function Oi(e,t){if(sx(t))return D0(t,e);return zM(e,t)}function NM(e){let t={...e};for(let a in t){let o=t[a];if(R0(a,o))t[a]=k0(o)}return t}function zM(e,t){if(!t)return e;for(let a in t){let o=t[a];switch(a){case"style":{e[a]=Mi(e.style,o);break}case"className":{e[a]=ux(e.className,o);break}default:if(R0(a,o))e[a]=FM(e[a],o);else e[a]=o}}return e}function R0(e,t){let a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return a===111&&o===110&&r>=65&&r<=90&&(typeof t==="function"||typeof t>"u")}function sx(e){return typeof e==="function"}function D0(e,t){if(sx(e))return e(t);return e??lx}function FM(e,t){if(!t)return e;if(!e)return k0(t);return(...a)=>{let o=a[0];if(E0(o)){let n=o;Bi(n);let l=t(...a);if(!n.baseUIHandlerPrevented)e?.(...a);return l}let r=t(...a);return e?.(...a),r}}function k0(e){if(!e)return e;return(...t)=>{let a=t[0];if(E0(a))Bi(a);return e(...t)}}function Bi(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ux(e,t){if(t){if(e)return t+" "+e;return t}return e}function E0(e){return e!=null&&typeof e==="object"&&"nativeEvent"in e}W();function Ge(e,t,a={}){let o=t.render;if(a.enabled!==!1)o=_M(o);let r=UM(t,a,o);if(a.enabled===!1)return null;let n=a.state??na;return VM(e,o,r,n)}function UM(e,t,a){let{className:o,style:r}=e,{state:n=na,ref:l,props:s,stateAttributesMapping:u,enabled:i=!0}=t,c=i?A0(o,n):void 0,d=i?T0(r,n):void 0,f=i?I0(n,u):na,p=i&&s?qM(s):void 0,g=i?Mi(f,p)??{}:na;if(typeof document<"u")if(!i)Ks(null,null);else if(Array.isArray(l))g.ref=b0([g.ref,nx(a),...l]);else g.ref=Ks(g.ref,nx(a),l);if(!i)return na;if(c!==void 0)g.className=ux(g.className,c);if(d!==void 0)g.style=Mi(g.style,d);return g}function qM(e){if(Array.isArray(e))return w0(e);return Ll(void 0,e)}var HM=Symbol.for("react.lazy");function _M(e){if(e?.$$typeof!==HM)return e;let t=yc.toArray(e)[0];return Wo(t)?t:e}function VM(e,t,a,o){if(t){if(typeof t==="function")return t(a,o);let r=Ll(a,t.props);return r.ref=a.ref,Yl(t,r)}if(e){if(typeof e==="string")return GM(e,a)}throw Error(ka(8))}function GM(e,t){if(e==="button")return at("button",{type:"button",...t,key:t.key});if(e==="img")return at("img",{alt:"",...t,key:t.key});return at(e,t)}var M0="--toast-frontmost-height";var O0=Ce(function(t,a){let{render:o,className:r,style:n,children:l,...s}=t,u=cn(),i=ar(),c=z(!1),d=z(!1),f=z(!1),p=u.useState("isEmpty"),g=u.useState("toasts"),v=u.useState("focused"),L=u.useState("expanded"),m=u.useState("prevFocusElement"),h=g[0]?.height,x=g.some((V)=>V.transitionStatus==="ending"),C=g.filter((V)=>V.priority==="high");ce(()=>{let V=u.state.viewport;if(!V||p)return;let P=ga(V),fe=et(V);function Re(Y){if(Y.key==="F6"&&Yt(Y)!==V)Y.preventDefault(),u.set("prevFocusElement",jt(fe)),V?.focus({preventScroll:!0}),u.pauseTimers(),u.set("focused",!0)}function Te(Y){if(Yt(Y)!==P)return;u.set("isWindowFocused",!1),u.pauseTimers()}function U(Y){if(Y.relatedTarget)return;let K=Yt(Y),ae=jt(et(V));if(K===P||!ze(V,K)||!Ys(ae))u.resumeTimers();i.start(0,()=>u.set("isWindowFocused",!0))}return qo(We(P,"keydown",Re),We(P,"blur",Te,!0),We(P,"focus",U,!0),We(fe,"pointerdown",u.handleDocumentPointerDown,!0))},[u,i,p]);function I(V){c.current=!0;let P=V.relatedTarget===u.state.viewport?g.find((fe)=>fe.transitionStatus!=="ending"&&!fe.limited):void 0;if(P)P.ref?.current?.focus();else u.restoreFocusToPrevElement()}function b(V){if(V.key==="Tab"&&V.shiftKey&&Yt(V.nativeEvent)===u.state.viewport)V.preventDefault(),u.restoreFocusToPrevElement()}function S(){if(u.state.toasts.some((P)=>P.transitionStatus==="ending")||f.current||!d.current)return;if(u.state.isWindowFocused)u.resumeTimers();u.set("hovering",!1),d.current=!1}ce(S,[x,u]);function y(){u.pauseTimers(),u.set("hovering",!0),d.current=!1}function T(){if(u.state.isWindowFocused)u.resumeTimers()}function w(){d.current=!0,S()}function D(V){if(V.pointerType==="touch")f.current=!0}function M(V){if(V.pointerType!=="touch")return;f.current=!1,S()}function R(){if(c.current){c.current=!1;return}if(v)return;if(Ys(jt(et(u.state.viewport))))u.set("focused",!0),u.pauseTimers()}function B(V){if(!v||ze(u.state.viewport,V.relatedTarget))return;u.set("focused",!1),T()}let H={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:y,onMouseMove:y,onMouseLeave:w,onFocus:R,onBlur:B,onKeyDown:b,onClick:R,onPointerDown:D,onPointerUp:M,onPointerCancel:M,style:{[M0]:h?`${h}px`:void 0}},k={expanded:L},_=!p&&m&&A(dn,{onFocus:I}),le=Ge("div",t,{ref:[a,u.setViewport],state:k,props:[H,s,{children:j(ya,{children:[_,l,_]})}]});return j(ya,{children:[_,le,!v&&C.length>0&&A("div",{style:Ws,children:C.map((V)=>j("div",{role:"alert","aria-atomic":!0,children:[A("div",{children:V.title}),A("div",{children:V.description})]},V.id))})]})});W();function Td(e){if(Vs(19))return e;return e?"true":void 0}W();var ix=Ue(void 0);function pn(){let e=Be(ix);if(!e)throw Error(ka(66));return e}W();function _o(e){if(e==null)return e;return"current"in e?e.current:e}var wd=null;function jM(e){if(!wd){let t=[];wd=t,queueMicrotask(()=>{wd=null,_n(()=>{for(let a of t)a()})})}wd.push(e)}function B0(e,t=!1,a=!1){let o=md();return Qe((r,n=null)=>{o.cancel();let l=_o(e);if(l==null)return;let s=l,u=()=>{if(!a){_n(r);return}jM(()=>{if(!n?.aborted)r()})};if(typeof s.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function i(){Promise.all(s.getAnimations().map((c)=>c.finished)).then(()=>{if(!n?.aborted)u()},()=>{if(n?.aborted)return;if(s.getAnimations().some((d)=>d.pending||d.playState!=="finished")){i();return}u()})}if(t){let c=Cl;if(!s.hasAttribute(c)){o.request(i);return}let d=new MutationObserver(()=>{if(!s.hasAttribute(c))d.disconnect(),i()});d.observe(s,{attributes:!0,attributeFilter:[c]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}o.request(i)})}function Zs(e){let{enabled:t=!0,open:a,ref:o,batch:r=!1,onComplete:n}=e,l=Qe(n),s=B0(o,a,r);ce(()=>{if(!t)return;let u=new AbortController;return s(l,u.signal),()=>{u.abort()}},[t,a,l,s])}var P0="data-base-ui-click-trigger";var N0="[data-base-ui-swipe-ignore]",z0="[data-swipe-ignore]";var F0={clipPath:"inset(50%)",position:"fixed",top:0,left:0};W();function cx(e,t=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,a))}function U0(e,t){let a=(t??ga(e).getComputedStyle(e)).transform,o=0,r=0,n=1;if(a&&a!=="none"){let l=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){let s=l[1].split(", ").map(parseFloat);if(s.length===6)o=s[4],r=s[5],n=Math.sqrt(s[0]*s[0]+s[1]*s[1]);else if(s.length===16)o=s[12],r=s[13],n=s[0]}}return{x:o,y:r,scale:n}}function Rd(e,t,a){switch(e){case"up":return-a;case"down":return a;case"left":return-t;case"right":return t;default:return 0}}var q0="--toast-index",H0="--toast-offset-y",_0="--toast-height",V0="--toast-swipe-movement-x",G0="--toast-swipe-movement-y";var X0="data-swipe-direction",Q3=Cl,J3=ki;var KM={...js,swipeDirection(e){return e?{[X0]:e}:null}},j0=40,ZM=10,Y0=0.5,QM=1,JM=`${N0},${z0}`,W0=Ce(function(t,a){let{toast:o,render:r,className:n,swipeDirection:l=["down","right"],style:s,...u}=t,i=o.positionerProps?.anchor!==void 0,c=[];if(!i)c=Array.isArray(l)?l:[l];let d=c.length>0,f=cn(),[p,g]=J(void 0),[v,L]=J(!1),[m,h]=J(!1),[x,C]=J({x:0,y:0}),[I,b]=J({x:0,y:0,scale:1}),[S,y]=J(),[T,w]=J(),[D,M]=J(null),R=z(null),B=z(void 0),H=z({x:0,y:0}),k=z({x:0,y:0,scale:1}),_=z(void 0),le=z(0),V=z(!1),P=z({x:0,y:0}),fe=z(!1),Re=z({x:0,y:0}),Te=z(null),U=z(null),Y=f.useState("toastIndex",o.id),K=f.useState("toastVisibleIndex",o.id),ae=f.useState("toastOffsetY",o.id),ue=f.useState("focused"),ee=f.useState("expanded");Zs({open:o.transitionStatus!=="ending",ref:R,onComplete(){if(o.transitionStatus==="ending")f.removeToast(o.id)}});let re=Qe((G=!1)=>{let he=R.current;if(!he)return;let me=he.style.height;he.style.height="auto";let q=he.offsetHeight;he.style.height=me;function F(){f.updateToastInternal(o.id,{ref:R,height:q,transitionStatus:void 0})}if(G)_n(F);else F()});ye(()=>{let G=B.current;if(o.transitionStatus!=="starting"&&G===o.id)return;if(G!==void 0)g(void 0),b({x:0,y:0,scale:1}),ve({x:0,y:0});B.current=o.id,re()},[re,o.id,o.transitionStatus]);function ve(G){Re.current=G,C(G)}ye(()=>()=>{U.current?.abort()},[]);function ie(G,he){let me=(Q)=>Q>0?Q**Y0:-(Math.abs(Q)**Y0),q=G>0&&!c.includes("right")||G<0&&!c.includes("left"),F=he>0&&!c.includes("down")||he<0&&!c.includes("up");return{x:q?me(G):G,y:F?me(he):he}}let Z=Qe((G)=>{if(G.pointerId!==Te.current)return;Te.current=null,U.current?.abort(),U.current=null,L(!1),h(!1),M(null);let he=k.current;if(G.type==="pointercancel"||V.current){ve({x:he.x,y:he.y}),g(void 0);return}let me=Re.current,q=me.x-he.x,F=me.y-he.y,Q;for(let N of c)if(Rd(N,q,F)>j0){Q=N;break}if(Q)g(Q),f.closeToast(o.id);else ve({x:he.x,y:he.y}),g(void 0)});function xe(G){if(G.button!==0)return;if(G.pointerType==="touch")f.pauseTimers();if(Yt(G.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${JM}`))return;V.current=!1,_.current=void 0,le.current=0,Te.current=G.pointerId,H.current={x:G.clientX,y:G.clientY},P.current=H.current;let q=G.currentTarget,F=U0(q);k.current=F,b(F),ve({x:F.x,y:F.y}),f.set("hovering",!0),L(!0),h(!1),M(null),fe.current=!0,U.current?.abort();let Q=new AbortController;U.current=Q;let N=et(q);N.addEventListener("pointerup",Z,{signal:Q.signal}),N.addEventListener("pointercancel",Z,{signal:Q.signal}),q.setPointerCapture?.(G.pointerId)}function Ie(G){if(G.pointerId!==Te.current)return;if(G.preventDefault(),fe.current)H.current={x:G.clientX,y:G.clientY},fe.current=!1;let{clientY:he,clientX:me,movementX:q,movementY:F}=G;if(F<0&&he>P.current.y||F>0&&he<P.current.y)P.current={x:P.current.x,y:he};if(q<0&&me>P.current.x||q>0&&me<P.current.x)P.current={x:me,y:P.current.y};let Q=me-H.current.x,N=he-H.current.y,Bt=he-P.current.y,De=me-P.current.x,gt=D;if(!m){if(Math.sqrt(Q*Q+N*N)>=QM){h(!0);let va=c.includes("left")||c.includes("right"),xt=c.includes("up")||c.includes("down");if(va&&xt){let vt=Math.abs(Q),ea=Math.abs(N);gt=vt>ea?"horizontal":"vertical",M(gt)}}}let be;if(!_.current){if(gt==="vertical"){if(N>0)be="down";else if(N<0)be="up"}else if(gt==="horizontal"){if(Q>0)be="right";else if(Q<0)be="left"}else if(Math.abs(Q)>=Math.abs(N))be=Q>0?"right":"left";else be=N>0?"down":"up";if(be&&c.includes(be))_.current=be,le.current=Rd(be,Q,N),g(be)}else{let za=_.current,va=Rd(za,De,Bt);if(va>j0)V.current=!1,g(za);else if(!(c.includes("left")&&c.includes("right"))&&!(c.includes("up")&&c.includes("down"))&&le.current-va>=ZM)V.current=!0}let tt=ie(Q,N),At=k.current.x,St=k.current.y,Pt=c.includes("left")||c.includes("right"),Tt=c.includes("up")||c.includes("down");if(gt!=="vertical"&&Pt)At+=tt.x;if(gt!=="horizontal"&&Tt)St+=tt.y;ve({x:At,y:St})}function Ae(G){if(G.key==="Escape"){if(!R.current||!ze(R.current,jt(et(R.current))))return;f.closeToast(o.id)}}ce(()=>{let G=R.current;if(!d||!G)return;function he(me){if(Te.current===null||!ze(G,Yt(me)))return;me.preventDefault()}return We(G,"touchmove",he,{passive:!1})},[d]);function ne(){let G=x.x-I.x,he=x.y-I.y;return{transition:v?"none":void 0,transform:v?`translateX(${x.x}px) translateY(${x.y}px) scale(${I.scale})`:void 0,[V0]:`${G}px`,[G0]:`${he}px`}}let ke=o.priority==="high",oe={role:ke?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":T,"aria-hidden":ke&&!ue?!0:void 0,onPointerDown:d?xe:void 0,onPointerMove:d?Ie:void 0,onPointerUp:d?Z:void 0,onPointerCancel:d?Z:void 0,onKeyDown:Ae,inert:Td(o.limited),style:{...ne(),[q0]:o.transitionStatus==="ending"?Y:K,[H0]:`${ae}px`,[_0]:o.height?`${o.height}px`:void 0}},Se=Le(()=>({toast:o,setTitleId:y,setDescriptionId:w,recalculateHeight:re,visibleIndex:K,expanded:ee}),[o,y,w,re,K,ee]),Pe={transitionStatus:o.transitionStatus,expanded:ee,limited:o.limited||!1,type:o.type,swiping:v,swipeDirection:p},Xe=Ge("div",t,{ref:[a,R],state:Pe,stateAttributesMapping:KM,props:[oe,u]});return A(ix.Provider,{value:Se,children:Xe})});W();var K0=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{visibleIndex:s,expanded:u,recalculateHeight:i}=pn(),c=z(null);ye(()=>{i();let p=c.current;if(!p||typeof ResizeObserver!=="function"||typeof MutationObserver!=="function")return;let g=new ResizeObserver(()=>i(!0)),v=new MutationObserver(()=>i(!0));return g.observe(p),v.observe(p,{childList:!0,subtree:!0,characterData:!0}),()=>{g.disconnect(),v.disconnect()}},[i]);let d=s>0;return Ge("div",t,{ref:[a,c],state:{expanded:u,behind:d},props:l})});W();W();var Z0=0;function $M(e,t="mui"){let[a,o]=J(e),r=e||a;return ce(()=>{if(a==null)Z0+=1,o(`${t}-${Z0}`)},[a,t]),r}var Q0=wi.useId;function mn(e,t){if(Q0!==void 0){let a=Q0();return e??(t?`${t}-${a}`:a)}return $M(e,t)}W();function J0(e){if(e==null||typeof e==="boolean"||e==="")return!1;if(Array.isArray(e))return e.some(J0);return!0}function Dd(e){return Wo(e)&&J0(e.props.children)}function kd(e,t,a){let{toast:o,setTitleId:r,setDescriptionId:n}=pn(),l=a==="title"?r:n,s=t??(a==="title"?o.title:o.description);return{id:mn(e),children:s,type:o.type,setId:l}}function Ed(e,t,a){let o=Dd(e);return ye(()=>{if(!o)return;return a(t),()=>{a((r)=>r===t?void 0:r)}},[o,t,a]),o?e:null}var $0=Ce(function(t,a){let{render:o,className:r,style:n,id:l,children:s,...u}=t,{id:i,children:c,type:d,setId:f}=kd(l,s,"description"),g=Ge("p",t,{ref:a,state:{type:d},props:{...u,id:i,children:c}});return Ed(g,i,f)});W();var eI=Ce(function(t,a){let{render:o,className:r,style:n,id:l,children:s,...u}=t,{id:i,children:c,type:d,setId:f}=kd(l,s,"title"),g=Ge("h2",t,{ref:a,state:{type:d},props:{...u,id:i,children:c}});return Ed(g,i,f)});W();W();W();var eO=Ue(void 0);function tI(e=!1){let t=Be(eO);if(t===void 0&&!e)throw Error(ka(16));return t}W();function aI(e){let{focusableWhenDisabled:t,disabled:a,composite:o=!1,tabIndex:r=0,isNativeButton:n}=e,l=o&&t!==!1,s=o&&t===!1;return{props:Le(()=>{let i={onKeyDown(c){if(a&&t&&c.key!=="Tab")c.preventDefault()}};if(!o){if(i.tabIndex=r,!n&&a)i.tabIndex=t?r:-1}if(n&&(t||l)||!n&&a)i["aria-disabled"]=a;if(n&&(!t||s))i.disabled=a;return i},[o,a,t,l,s,n,r])}}function Md(e,t,{detail:a=0}={}){e.dispatchEvent(new(ga(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:a,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Rr(e={}){let{disabled:t=!1,focusableWhenDisabled:a,tabIndex:o=0,native:r=!0,composite:n}=e,l=z(null),s=tI(!0),u=n??s!==void 0,{props:i}=aI({focusableWhenDisabled:a,disabled:t,composite:u,tabIndex:o,isNativeButton:r}),c=dt(()=>{let p=l.current;if(!fx(p))return;if(u&&t&&i.disabled===void 0&&p.disabled)p.disabled=!1},[t,i.disabled,u]);ye(c,[c]);let d=dt((p={})=>{let{onClick:g,onMouseDown:v,onKeyUp:L,onKeyDown:m,onPointerDown:h,...x}=p;return Ll({onClick(C){if(t){C.preventDefault();return}g?.(C)},onMouseDown(C){if(!t)v?.(C)},onKeyDown(C){if(t)return;if(Bi(C),m?.(C),C.baseUIHandlerPrevented)return;let I=C.target===C.currentTarget,b=C.currentTarget,S=fx(b),y=!r&&tO(b),T=I&&(r?S:!y),w=C.key==="Enter",D=C.key===" ",M=b.getAttribute("role"),R=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(I&&u&&D){if(C.defaultPrevented&&R)return;if(C.preventDefault(),!r||S)C.preventBaseUIHandler(),Md(b,C);return}if(!T||r||!D&&!w){if(I&&y&&D)C.preventDefault();return}if(C.defaultPrevented)return;if(C.preventDefault(),w)C.preventBaseUIHandler(),Md(b,C)},onKeyUp(C){if(t)return;if(Bi(C),L?.(C),C.target===C.currentTarget&&r&&u&&fx(C.currentTarget)&&C.key===" "){C.preventDefault();return}if(C.baseUIHandlerPrevented)return;if(C.target===C.currentTarget&&!r&&!u&&!C.defaultPrevented&&C.key===" ")C.preventBaseUIHandler(),Md(C.currentTarget,C)},onPointerDown(C){if(t){C.preventDefault();return}h?.(C)}},r?{type:"button"}:{role:"button"},i,x)},[t,i,u,r]),f=Qe((p)=>{l.current=p,c()});return{getButtonProps:d,buttonRef:f}}function fx(e){return ia(e)&&e.tagName==="BUTTON"}function tO(e){return ia(e)&&e.tagName==="A"&&Boolean(e.href)}var oI=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l,nativeButton:s=!0,...u}=t,i=cn(),{toast:c,expanded:d}=pn(),[f,p]=J(!1),{getButtonProps:g,buttonRef:v}=Rr({disabled:l,native:s}),L={type:c.type};return Ge("button",t,{ref:[a,v],state:L,props:[{"aria-hidden":!d&&!f,onClick(){i.closeToast(c.id)},onFocus(){p(!0)},onBlur(){p(!1)}},u,g]})});W();var rI=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l,nativeButton:s=!0,...u}=t,{toast:i}=pn(),c=i.actionProps?.children??u.children,{getButtonProps:d,buttonRef:f}=Rr({disabled:l,native:s}),p={type:i.type},g=Ge("button",t,{ref:[a,f],state:p,props:[u,i.actionProps,d,{children:c}]});return Dd(g)?g:null});W();W();W();var nI="none",aO="trigger-press",oO="trigger-hover";var lI="outside-press";var rO="close-press";var sI="focus-out",nO="escape-key";var lO="imperative-action";function Ma(e,t,a,o){let r=!1,n=!1,l=o??na;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){n=!0},get isCanceled(){return r},get isPropagationAllowed(){return n},trigger:a,...l}}function Sl(e){return`data-base-ui-${e}`}var uI=Ue(null),dx=()=>Be(uI),sO=Sl("portal");function Od(e={}){let{ref:t,container:a,componentProps:o=na,elementProps:r}=e,n=mn(),s=dx()?.portalNode,[u,i]=J(null),[c,d]=J(null),f=Qe((L)=>{if(L!==null)d(L)}),p=z(null);ye(()=>{if(a===null){if(p.current)p.current=null,d(null),i(null);return}let L=(a&&(cd(a)?a:a.current))??s??document.body;if(L==null){if(p.current)p.current=null,d(null),i(null);return}if(p.current!==L)p.current=L,d(null),i(L)},[a,s]);let g=Ge("div",o,{ref:[t,f],props:[{id:n,[sO]:""},r]}),v=u&&g?Fr(g,u):null;return{node:c,nodeId:Wo(g)?g.props.id:void 0,subtree:v}}var px=Ce(function(t,a){let{render:o,className:r,style:n,children:l,container:s,portalOwnerRole:u,...i}=t,{node:c,nodeId:d,subtree:f}=Od({container:s,ref:a,componentProps:t,elementProps:i}),p=z(null),g=z(null),v=z(null),L=z(null),[m,h]=J(null),x=z(!1),C=m?.modal,I=m?.open,b=!!m&&!m.modal&&m.open&&!!c;ce(()=>{if(!c||C)return;function y(T){if(c&&T.relatedTarget&&bl(T))if(T.type==="focusin"){if(x.current)tx(c),x.current=!1}else v0(c),x.current=!0}return qo(We(c,"focusin",y,!0),We(c,"focusout",y,!0))},[c,C]),ye(()=>{if(!c||I!==!0||!x.current)return;tx(c),x.current=!1},[I,c]);let S=Le(()=>({beforeOutsideRef:p,afterOutsideRef:g,beforeInsideRef:v,afterInsideRef:L,portalNode:c,setFocusManagerState:h}),[c]);return j(ya,{children:[f,j(uI.Provider,{value:S,children:[b&&c&&A(dn,{"data-type":"outside",ref:p,onFocus:(y)=>{if(bl(y,c))v.current?.focus();else{let T=m?m.domReference:null;Id(T)?.focus()}}}),b&&c&&A("span",{role:u,"aria-owns":d,style:F0}),c&&Fr(l,c),b&&c&&A(dn,{"data-type":"outside",ref:g,onFocus:(y)=>{if(bl(y,c))L.current?.focus();else{let T=m?m.domReference:null;if(Sd(T)?.focus(),m?.closeOnFocusOut)m?.onOpenChange(!1,Ma(sI,y.nativeEvent))}}})]})]})});var iI=Ce(function(t,a){let{children:o,container:r,className:n,render:l,style:s,...u}=t,{node:i,subtree:c}=Od({container:r,ref:a,componentProps:t,elementProps:u});if(!c&&!i)return null;return j(ya,{children:[c,i&&Fr(o,i)]})});var cI=Ce(function(t,a){return A(iI,{ref:a,...t})});function Pi(e){let t=Jt(uO,e).current;return t.next=e,ye(t.effect),t}function uO(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}W();var Bd=0;function Pd(e,t={}){let{preventScroll:a=!1,sync:o=!1,shouldFocus:r}=t;cancelAnimationFrame(Bd);function n(){if(r&&!r())return;e?.focus({preventScroll:a})}if(o)return n(),Mt;let l=requestAnimationFrame(n);return Bd=l,()=>{if(Bd===l)cancelAnimationFrame(l),Bd=0}}var mx={inert:new WeakMap,"aria-hidden":new WeakMap},fI="data-base-ui-inert",gx={inert:new WeakSet,"aria-hidden":new WeakSet},Ni=new WeakMap,hx=0;function iO(e){return gx[e]}function hI(e){if(!e)return null;return tr(e)?e.host:hI(e.parentNode)}var dI=(e,t)=>t.map((a)=>{if(e.contains(a))return a;let o=hI(a);if(e.contains(o))return o;return null}).filter((a)=>a!=null),pI=(e)=>{let t=new Set;return e.forEach((a)=>{let o=a;while(o&&!t.has(o))t.add(o),o=o.parentNode}),t},mI=(e,t,a)=>{let o=[],r=(n)=>{if(!n||a.has(n))return;Array.from(n.children).forEach((l)=>{if(Ea(l)==="script")return;if(t.has(l))r(l);else o.push(l)})};return r(e),o};function cO(e,t,a,o,{mark:r=!0}){let n=null;if(o)n="inert";else if(a)n="aria-hidden";let l=null,s=null,u=dI(t,e),i=r?mI(t,pI(u),new Set(u)):[],c=[],d=[];if(n){let f=mx[n],p=iO(n);s=p,l=f;let g=dI(t,Array.from(t.querySelectorAll("[aria-live]"))),v=u.concat(g);mI(t,pI(v),new Set(v)).forEach((m)=>{let h=m.getAttribute(n),x=h!==null&&h!=="false",C=(f.get(m)||0)+1;if(f.set(m,C),c.push(m),C===1&&x)p.add(m);if(!x)m.setAttribute(n,n==="inert"?"":"true")})}if(r)i.forEach((f)=>{let p=(Ni.get(f)||0)+1;if(Ni.set(f,p),d.push(f),p===1)f.setAttribute(fI,"")});return hx+=1,()=>{if(l)c.forEach((f)=>{let g=(l.get(f)||0)-1;if(l.set(f,g),!g){if(!s?.has(f)&&n)f.removeAttribute(n);s?.delete(f)}});if(r)d.forEach((f)=>{let p=(Ni.get(f)||0)-1;if(Ni.set(f,p),!p)f.removeAttribute(fI)});if(hx-=1,!hx)mx.inert=new WeakMap,mx["aria-hidden"]=new WeakMap,gx.inert=new WeakSet,gx["aria-hidden"]=new WeakSet,Ni=new WeakMap}}function xx(e,t={}){let{ariaHidden:a=!1,inert:o=!1,mark:r=!0}=t,n=et(e[0]).body;return cO(e,n,a,o,{mark:r})}W();function gI(){let e=new Map;return{emit(t,a){e.get(t)?.forEach((o)=>o(a))},on(t,a){if(!e.has(t))e.set(t,new Set);e.get(t).add(a)},off(t,a){e.get(t)?.delete(a)}}}var fO=Ue(null),dO=Ue(null),xI=()=>Be(fO)?.id||null,Nd=(e)=>{let t=Be(dO);return e??t};function pO(e,t){let a=ga(Yt(e));if(e instanceof a.KeyboardEvent)return"keyboard";if(e instanceof a.FocusEvent)return t||"keyboard";if("pointerType"in e)return e.pointerType||"keyboard";if("touches"in e)return"touch";if(e instanceof a.MouseEvent)return t||(e.detail===0?"keyboard":"mouse");return""}var vI=20,gn=[];function vx(){gn=gn.filter((e)=>e.deref()?.isConnected)}function CI(e){if(vx(),e&&Ea(e)!=="body"){if(gn.push(new WeakRef(e)),gn.length>vI)gn=gn.slice(-vI)}}function yI(){return vx(),gn[gn.length-1]?.deref()}function mO(e){if(!e)return null;if(Ld(e))return e;return Ei(e)[0]||e}function bI(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex"))return;if(!e.getAttribute("role")?.includes("dialog"))return;let a=ex(e).filter((r)=>{let n=r.getAttribute("data-tabindex")||"";return Ld(r)||r.hasAttribute("data-tabindex")&&!n.startsWith("-")}),o=e.getAttribute("tabindex");if(a.length===0){if(o!=="0")e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")}else if(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1")}function Cx(e){let{context:t,children:a,disabled:o=!1,initialFocus:r=!0,returnFocus:n=!0,restoreFocus:l=!1,modal:s=!0,closeOnFocusOut:u=!0,openInteractionType:i="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:g}=e,v="rootStore"in t?t.rootStore:t,L=v.useState("open"),m=v.useState("domReferenceElement"),h=v.useState("floatingElement"),{events:x,dataRef:C}=v.context,I=Qe(()=>C.current.floatingContext?.nodeId),b=r===!1,S=Kg(m)&&b,y=Pi(r),T=Pi(n),w=Pi(i),D=Pi(L),M=Nd(p),R=dx(),B=z(!1),H=z(!1),k=z(!1),_=z(null),le=z(""),V=z(""),P=z(null),fe=z(null),Re=Ks(P,f,R?.beforeInsideRef),Te=Ks(fe,R?.afterInsideRef),U=ar(),Y=ar(),K=md(),ae=R!=null,ue=Zg(h),ee=Qe((ie=ue)=>ie?Ei(ie):[]),re=Qe(()=>g?.().filter((ie)=>ie!=null)??[]);ce(()=>{if(o||!s)return;function ie(xe){if(xe.key==="Tab"){if(ze(ue,jt(et(ue)))&&ee().length===0&&!S)s0(xe)}}let Z=et(ue);return We(Z,"keydown",ie)},[o,ue,s,S,ee]),ce(()=>{if(o||!L)return;let ie=et(ue);function Z(){k.current=!1}function xe(Ae){let ne=Yt(Ae),ke=re(),oe=ze(h,ne)||ze(m,ne)||ze(R?.portalNode,ne)||ke.some((Se)=>Se===ne||ze(Se,ne));if(k.current=!oe,V.current=Ae.pointerType||"keyboard",ne?.closest(`[${P0}]`))H.current=!0,Y.start(0,()=>{H.current=!1})}function Ie(){V.current="keyboard"}return qo(We(ie,"pointerdown",xe,!0),We(ie,"pointerup",Z,!0),We(ie,"pointercancel",Z,!0),We(ie,"keydown",Ie,!0),Z)},[o,h,m,ue,L,R,Y,re]),ce(()=>{if(o||!u)return;let ie=et(ue);function Z(){H.current=!0,Y.start(0,()=>{H.current=!1})}function xe(ke){let oe=Yt(ke);if(Ld(oe))_.current=oe}function Ie(ke){let{relatedTarget:oe,currentTarget:Se}=ke,Pe=Yt(ke);if(s&&oe==null&&Pe!=null&&ze(h,Pe))CI(Pe);queueMicrotask(()=>{let Xe=I(),G=v.context.triggerElements,he=re(),me=oe?.hasAttribute(Sl("focus-guard"))&&[P.current,fe.current,R?.beforeInsideRef.current,R?.afterInsideRef.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,_o(d),_o(c)].includes(oe),q=!(ze(m,oe)||ze(h,oe)||ze(oe,h)||ze(R?.portalNode,oe)||he.some((F)=>F===oe||ze(F,oe))||G.hasMatchingElement((F)=>ze(F,oe))||me||M&&(yl(M.nodesRef.current,Xe).find((F)=>ze(F.context?.elements.floating,oe)||ze(F.context?.elements.domReference,oe))||Qg(M.nodesRef.current,Xe).find((F)=>[F.context?.elements.floating,Zg(F.context?.elements.floating)].includes(oe)||F.context?.elements.domReference===oe)));if(Se===m&&ue)bI(ue);if(l&&Se!==m&&!bd(Pe)&&jt(ie)===ie.body){if(ia(ue)){if(ue.focus(),l==="popup"){K.request(()=>{ue.focus()});return}}let F=ee(),Q=_.current,N=(Q&&F.includes(Q)?Q:null)||F[F.length-1]||ue;if(ia(N))N.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}if((S?!0:!s)&&oe&&q&&!H.current&&(S||oe!==yI()))B.current=!0,v.setOpen(!1,Ma(sI,ke))})}function Ae(){if(k.current)return;C.current.insideReactTree=!0,U.start(0,()=>{C.current.insideReactTree=!1})}let ne=ia(m)?m:null;if(!h&&!ne)return;return qo(ne&&We(ne,"focusout",Ie),ne&&We(ne,"pointerdown",Z),h&&We(h,"focusin",xe),h&&We(h,"focusout",Ie),h&&R&&We(h,"focusout",Ae,!0))},[o,m,h,ue,s,M,R,v,u,l,ee,S,I,C,U,Y,K,c,d,re]),ce(()=>{if(o||!h||!L)return;let ie=Array.from(R?.portalNode?.querySelectorAll(`[${Sl("portal")}]`)||[]),xe=(M?Qg(M.nodesRef.current,I()):[]).find((Se)=>Kg(Se.context?.elements.domReference||null))?.context?.elements.domReference,Ae=[...[h,...ie,P.current,fe.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,...re()],xe,_o(d),_o(c),S?m:null].filter((Se)=>Se!=null),ne=xx(Ae,{ariaHidden:s||S,mark:!1}),ke=[h,...ie].filter((Se)=>Se!=null),oe=xx(ke);return()=>{oe(),ne()}},[L,o,m,h,s,R,S,M,I,c,d,re]),ye(()=>{if(!L||o||!ia(ue))return;le.current="",V.current="";let ie=et(ue),Z=jt(ie);queueMicrotask(()=>{let xe=y.current,Ie=typeof xe==="function"?xe(w.current||""):xe;if(Ie===void 0||Ie===!1)return;if(ze(ue,Z))return;let ne=null,ke=()=>{if(ne==null)ne=ee(ue);return ne[0]||ue},oe;if(Ie===!0||Ie===null)oe=ke();else oe=_o(Ie);oe=oe||ke();let Se=ze(ue,jt(ie));Pd(oe,{preventScroll:oe===ue,shouldFocus(){if(!D.current)return!1;if(Se)return!0;let Pe=jt(ie);return!(Pe!==oe&&ze(ue,Pe))}})})},[o,L,ue,ee,y,w,D]),ye(()=>{if(o||!ue)return;let ie=et(ue),Z=jt(ie),xe=w.current==null;CI(Z);function Ie(ne){if(!ne.open)le.current=pO(ne.nativeEvent,V.current);if(ne.reason===oO&&ne.nativeEvent.type==="mouseleave")B.current=!0;if(ne.reason!==lI)return;if(ne.nested)B.current=!1;else if(yd(ne.nativeEvent)||i0(ne.nativeEvent))B.current=!1;else{let ke=!1;if(et(ue).createElement("div").focus({get preventScroll(){return ke=!0,!1}}),ke)B.current=!1;else B.current=!0}}x.on("openchange",Ie);function Ae(ne){let ke=T.current,oe=typeof ke==="function"?ke(ne):ke;if(oe===void 0||oe===!1)return null;if(oe===null)oe=!0;let Se=m?.isConnected?m:null,Pe=Z?.isConnected&&Ea(Z)!=="body"?Z:null,Xe=xe?Pe||Se:Se||Pe;if(!Xe)Xe=yI()||null;if(typeof oe==="boolean")return Xe;return _o(oe)||Xe||null}return()=>{x.off("openchange",Ie);let ne=jt(ie),ke=re(),oe=ze(h,ne)||ke.some((G)=>G===ne||ze(G,ne))||M&&yl(M.nodesRef.current,I(),!1).some((G)=>ze(G.context?.elements.floating,ne)),Se=T.current,Pe=le.current,Xe=Ae(Pe);queueMicrotask(()=>{let G=mO(Xe),he=typeof Se!=="boolean";if(Se&&!B.current&&ia(G)&&(!he&&G!==ne&&ne!==ie.body?oe:!0)){let me={preventScroll:!0};if(Pe==="keyboard")me.focusVisible=!0;G.focus(me)}B.current=!1})}},[o,h,ue,T,w,x,M,m,I,re]),ye(()=>{if(!Xs.webkit||L||!h)return;let ie=jt(et(h));if(!ia(ie)||!Wg(ie))return;if(ze(h,ie))ie.blur()},[L,h]),ye(()=>{if(o||!R)return;return R.setFocusManagerState({modal:s,closeOnFocusOut:u,open:L,onOpenChange:v.setOpen,domReference:m}),()=>{R.setFocusManagerState(null)}},[o,R,s,L,v,u,m]),ye(()=>{if(o||!ue)return;return bI(ue),()=>{queueMicrotask(vx)}},[o,ue]);let ve=!o&&(s?!S:!0)&&(ae||s);return j(ya,{children:[ve&&A(dn,{"data-type":"inside",ref:Re,onFocus:(ie)=>{if(s){let Z=ee();Pd(Z[Z.length-1])}else if(R?.portalNode)if(B.current=!1,bl(ie,R.portalNode))Sd(m)?.focus();else _o(d??R.beforeOutsideRef)?.focus()}}),a,ve&&A(dn,{"data-type":"inside",ref:Te,onFocus:(ie)=>{if(s)Pd(ee()[0]);else if(R?.portalNode){if(u)B.current=!0;if(bl(ie,R.portalNode))Id(m)?.focus();else _o(c??R.afterOutsideRef)?.focus()}}})]})}W();function hO(){return!1}function gO(e){return{escapeKey:typeof e==="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e==="boolean"?e:e?.outsidePress??!0}}function yx(e,t={}){let{enabled:a=!0,escapeKey:o=!0,outsidePress:r=!0,outsidePressEvent:n="sloppy",referencePress:l=hO,bubbles:s,externalTree:u}=t,i="rootStore"in e?e.rootStore:e,c=i.useState("open"),d=i.useState("floatingElement"),{dataRef:f,events:p}=i.context,g=Nd(u),v=Qe(typeof r==="function"?r:()=>!1),L=typeof r==="function"?v:r,m=L!==!1,h=Qe(()=>n),{escapeKey:x,outsidePress:C}=gO(s),I=z(!1),b=z(!1),S=z(!1),y=z(!1),T=z(!1),w=z(""),D=z(null),M=ar(),R=ar(),B=Qe(()=>{R.clear(),f.current.insideReactTree=!1}),H=Qe((U)=>{let Y=f.current.floatingContext?.nodeId;return(g?yl(g.nodesRef.current,Y):[]).some((ae)=>ae.context?.open&&!ae.context.dataRef.current[U])}),k=Qe((U)=>Cd(U,i.select("floatingElement"))||Cd(U,i.select("domReferenceElement"))),_=Qe((U)=>{if(!l())return;i.setOpen(!1,Ma(aO,U.nativeEvent))}),le=Qe((U)=>{if(!c||!a||!o||U.key!=="Escape")return;if(T.current)return;if(!x&&H("__escapeKeyBubbles"))return;let Y=u0(U)?U.nativeEvent:U,K=Ma(nO,Y);if(i.setOpen(!1,K),!K.isCanceled)U.preventDefault();if(!x&&!K.isPropagationAllowed)U.stopPropagation()}),V=Qe(()=>{f.current.insideReactTree=!0,R.start(0,B)}),P=Qe((U)=>{if(!c||!a||U.button!==0)return;let Y=Yt(U.nativeEvent);if(!ze(i.select("floatingElement"),Y))return;if(!I.current)I.current=!0,b.current=!1}),fe=Qe((U)=>{if(!c||!a)return;if(!(U.defaultPrevented||U.nativeEvent.defaultPrevented))return;if(I.current)b.current=!0});ce(()=>{function U(Y){if(!Y.open)y.current=!1}return p.on("openchange",U),()=>{p.off("openchange",U)}},[p]),ce(()=>{if(!c||!a){if(!c)y.current=!1;return B}f.current.__escapeKeyBubbles=x,f.current.__outsidePressBubbles=C;let U=new To,Y=new To,K=et(d);function ae(){U.clear(),T.current=!0}function ue(){U.start(Xs.webkit?5:0,()=>{T.current=!1})}function ee(){S.current=!0,Y.start(0,()=>{S.current=!1})}function re(){I.current=!1,b.current=!1}function ve(){let q=w.current,F=q==="pen"||!q?"mouse":q,Q=h(),N=typeof Q==="function"?Q():Q;if(typeof N==="string")return N;return N[F]}function ie(q){let F=ve();return F==="intentional"&&q.type!=="click"||F==="sloppy"&&q.type==="click"}function Z(q){let F=f.current.floatingContext?.nodeId,Q=g&&yl(g.nodesRef.current,F).some((N)=>Cd(q,N.context?.elements.floating));return k(q)||Q}function xe(q){if(ie(q)){if(q.type!=="click"&&!k(q))Y.clear(),S.current=!1;B();return}if(f.current.insideReactTree){B();return}let F=Yt(q),Q=`[${Sl("inert")}]`,N=fn(F)?F.getRootNode():null,Bt=Array.from((tr(N)?N:et(i.select("floatingElement"))).querySelectorAll(Q)),De=i.context.triggerElements;if(F&&(De.hasElement(F)||De.hasMatchingElement((be)=>ze(be,F))))return;let gt=fn(F)?F:null;while(gt&&!fd(gt)){let be=YS(gt);if(fd(be)||!fn(be))break;gt=be}if(Bt.length&&fn(F)&&!l0(F)&&!ze(F,i.select("floatingElement"))&&Bt.every((be)=>!ze(gt,be)))return;if(ia(F)&&!("touches"in q)){let be=fd(F),tt=ml(F),At=/auto|scroll/,St=be||At.test(tt.overflowX),Pt=be||At.test(tt.overflowY),Tt=St&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,za=Pt&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,va=tt.direction==="rtl",xt=za&&(va?q.offsetX<=F.offsetWidth-F.clientWidth:q.offsetX>F.clientWidth),vt=Tt&&q.offsetY>F.clientHeight;if(xt||vt)return}if(Z(q))return;if(ve()==="intentional"){if(q.detail!==0&&!yd(q)&&!y.current)return;if(S.current){Y.clear(),S.current=!1;return}}if(typeof L==="function"&&!L(q))return;if(H("__outsidePressBubbles"))return;i.setOpen(!1,Ma(lI,q)),B()}function Ie(q){if(ve()!=="sloppy"||q.pointerType==="touch"||!i.select("open")||!a||k(q))return;xe(q)}function Ae(q){if(ve()!=="sloppy"||!i.select("open")||!a||k(q))return;let F=q.touches[0];if(F)D.current={startTime:Date.now(),startX:F.clientX,startY:F.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1000,()=>{if(D.current)D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1})}function ne(q,F){let Q=Yt(q);if(!Q)return;let N=We(Q,q.type,()=>{F(q),N()})}function ke(q){w.current="touch",ne(q,Ae)}function oe(q){if(M.clear(),q.type==="pointerdown"){if(q.button===0)y.current=!0;w.current=q.pointerType}if(q.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;ne(q,(F)=>{if(F.type==="pointerdown")Ie(F);else xe(F)})}function Se(q){if(q.type==="pointercancel")y.current=!1;if(!I.current)return;let F=b.current;if(re(),ve()!=="intentional")return;if(q.type==="pointercancel"){if(F)ee();return}if(Z(q))return;if(F){ee();return}if(typeof L==="function"&&!L(q))return;Y.clear(),S.current=!0,B()}function Pe(q){if(ve()!=="sloppy"||!D.current||k(q))return;let F=q.touches[0];if(!F)return;let Q=Math.abs(F.clientX-D.current.startX),N=Math.abs(F.clientY-D.current.startY),Bt=Math.sqrt(Q*Q+N*N);if(Bt>5)D.current.dismissOnTouchEnd=!0;if(Bt>10)xe(q),M.clear(),D.current=null}function Xe(q){ne(q,Pe)}function G(q){if(ve()!=="sloppy"||!D.current||k(q))return;if(D.current.dismissOnTouchEnd)xe(q);M.clear(),D.current=null}function he(q){ne(q,G)}let me=qo(o&&qo(We(K,"keydown",le),We(K,"compositionstart",ae),We(K,"compositionend",ue)),m&&qo(We(K,"click",oe,!0),We(K,"pointerdown",oe,!0),We(K,"pointerup",Se,!0),We(K,"pointercancel",Se,!0),We(K,"mousedown",oe,!0),We(K,"mouseup",Se,!0),We(K,"touchstart",ke,{capture:!0,passive:!0}),We(K,"touchmove",Xe,{capture:!0,passive:!0}),We(K,"touchend",he,{capture:!0,passive:!0})));return()=>{me(),U.clear(),Y.clear(),re(),S.current=!1,B()}},[f,d,o,m,L,c,a,x,C,le,B,h,H,k,g,i,M]);let Re=Le(()=>({onKeyDown:le,onPointerDown:_,onClick:_}),[le,_]),Te=Le(()=>({onKeyDown:le,onPointerDown:fe,onMouseDown:fe,onClickCapture:V,onMouseDownCapture(U){V(),P(U)},onPointerDownCapture(U){V(),P(U)},onMouseUpCapture:V,onTouchEndCapture:V,onTouchMoveCapture:V}),[le,V,P,fe]);return Le(()=>a?{reference:Re,floating:Te,trigger:Re}:{},[a,Re,Te])}W();W();var xO={open:(e)=>e.open,transitionStatus:(e)=>e.transitionStatus,domReferenceElement:(e)=>e.domReferenceElement,referenceElement:(e)=>e.positionReference??e.referenceElement,floatingElement:(e)=>e.floatingElement,floatingId:(e)=>e.floatingId};class zi extends pl{constructor(e){let{syncOnly:t,nested:a,onOpenChange:o,triggerElements:r,...n}=e;super({...n,positionReference:n.referenceElement,domReferenceElement:n.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:gI(),nested:a,triggerElements:r},xO);this.syncOnly=t}syncOpenEvent=(e,t)=>{if(!e||!this.state.open||t!=null&&c0(t))this.context.dataRef.current.openEvent=e?t:void 0};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let a={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",a)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function LI(e){let{popupStore:t,treatPopupAsFloatingElement:a=!1,floatingRootContext:o,floatingId:r,nested:n,onOpenChange:l}=e,s=t.useState("open"),u=t.useState("activeTriggerElement"),i=t.useState(a?"popupElement":"positionerElement"),c=t.context.triggerElements,d=l,f=z(null);if(o===void 0&&f.current===null)f.current=new zi({open:s,transitionStatus:void 0,referenceElement:u,floatingElement:i,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:n});let p=o??f.current;return t.useSyncedValue("floatingId",r),ye(()=>{let g={open:s,floatingId:r,referenceElement:u,floatingElement:i};if(fn(u))g.domReferenceElement=u;if(p.state.positionReference===p.state.referenceElement)g.positionReference=u;p.update(g)},[s,r,u,i,p]),p.context.onOpenChange=d,p.context.nested=n,p}W();function SI(e,t=!1,a=!1,o=!1){let[r,n]=J(e&&t?"idle":void 0),[l,s]=J(e&&!o);if(e&&!l)s(!0),n("starting");if(!e&&l&&r!=="ending"&&!a)n("ending");if(!e&&!l&&r==="ending")n(void 0);return ye(()=>{if(!e&&l&&r!=="ending"&&a){let u=Ao.request(()=>{n("ending")});return()=>{Ao.cancel(u)}}return},[e,l,r,a]),ye(()=>{if(!e||t)return;let u=Ao.request(()=>{n(void 0)});return()=>{Ao.cancel(u)}},[t,e]),ye(()=>{if(!e||!t)return;if(e&&l&&r!=="idle")n("starting");let u=Ao.request(()=>{n("idle")});return()=>{Ao.cancel(u)}},[t,e,l,r]),{mounted:l,setMounted:s,transitionStatus:r}}var II={tabIndex:-1,[Di]:""};function AI(e){return(t)=>t==="touch"?e.current:!0}function TI(e,t=!1){let a=mn(),o=xI()!=null,r=Jt(()=>e(a,o)).current;return LI({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:a,nested:o,onOpenChange:r.setOpen}),r}function wI({handle:e,store:t}){return ye(()=>e.attachStore(t),[e,t]),null}function RI(e,t,a,o=!1){let r=e.preventUnmountingOnClose;if(t)r=!1;else if(o)r=!0;let n=a?.id??null,{activeTriggerId:l,activeTriggerElement:s}=e;if(n||t)l=n,s=a??null;return{open:t,preventUnmountingOnClose:r,activeTriggerId:l,activeTriggerElement:s}}function DI(e,t={}){let{closeOnActiveTriggerUnmount:a=!1}=t,o=z(null),r=e.useState("open"),n=e.useState("triggerCount"),l=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");ye(()=>{if(!r){if(o.current=null,e.state.triggerCount!==0)e.set("triggerCount",0);return}let u=e.context.triggerElements.size,i={};if(e.state.triggerCount!==u)i.triggerCount=u;let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(!f){for(let[p,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){i.activeTriggerId=p,i.activeTriggerElement=g,o.current=p;break}if(i.activeTriggerId===void 0)if(o.current===c)d=c;else o.current=null}else if(o.current=c,f!==e.state.activeTriggerElement)i.activeTriggerElement=f}else o.current=null;if(!d&&!c&&u===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[p,g]=f.value;i.activeTriggerId=p,i.activeTriggerElement=g,o.current=p}}if(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)e.update(i);if(d){if(a)queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=Ma(nI);if(e.setOpen(!1,f),!f.isCanceled)e.update({activeTriggerId:null,activeTriggerElement:null})}})}},[r,e,n,l,s,a])}function kI(e,t,a,o){let{mounted:r,setMounted:n,transitionStatus:l}=SI(e,!1,!1,o),s=t.useState("preventUnmountingOnClose"),u=e?!1:s;t.useSyncedValues({mounted:r,transitionStatus:l,preventUnmountingOnClose:u});let i=Qe(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),a?.(),t.context.onOpenChangeComplete?.(!1)});return Zs({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){if(!e)i()}}),{forceUnmount:i,transitionStatus:l}}function EI(e,t){e.useSyncedValues(t),ye(()=>()=>{e.update({activeTriggerProps:na,inactiveTriggerProps:na,popupProps:na})},[e])}function MI(e,t){ye(()=>{if(!t&&e.state.openMethod!==null)e.set("openMethod",null)},[t,e]),ye(()=>()=>{if(e.state.openMethod!==null)e.set("openMethod",null)},[e])}class bx{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function BI(e,t,a=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new zi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:a,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:na,inactiveTriggerProps:na,popupProps:na}}var Fi=(e)=>e.triggerIdProp??e.activeTriggerId,Lx=(e)=>e.openProp??e.open,OI=(e)=>(e.popupElement?.id??e.floatingId)||void 0;function PI(e,t){return t!==void 0&&Lx(e)&&Fi(e)===t}function vO(e,t){if(PI(e,t))return!0;return t!==void 0&&Lx(e)&&Fi(e)==null&&e.triggerCount===1}var NI={open:Lx,mounted:(e)=>e.mounted,transitionStatus:(e)=>e.transitionStatus,floatingRootContext:(e)=>e.floatingRootContext,triggerCount:(e)=>e.triggerCount,preventUnmountingOnClose:(e)=>e.preventUnmountingOnClose,payload:(e)=>e.payload,activeTriggerId:Fi,activeTriggerElement:(e)=>e.mounted?e.activeTriggerElement:null,popupId:OI,isTriggerActive:(e,t)=>t!==void 0&&Fi(e)===t,isOpenedByTrigger:(e,t)=>PI(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Fi(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>vO(e,t)?OI(e):void 0,popupProps:(e)=>e.popupProps,popupElement:(e)=>e.popupElement,positionerElement:(e)=>e.positionerElement};W();function Sx(){let e=cn(),t=e.useState("toasts");return Le(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Ix(){let e=new Set;function t(a){e.forEach((o)=>o(a))}return{" subscribe":function(o){return e.add(o),()=>{e.delete(o)}},add(a){let o=a.id||hd("toast"),r={...a,id:o,transitionStatus:"starting"};return t({action:"add",options:r}),o},close(a){t({action:"close",options:{id:a}})},update(a,o){t({action:"update",options:{id:a,updates:o}})},promise(a,o){let r=a;return t({action:"promise",options:{...o,promise:a,setPromise(n){r=n}}}),r}}}W();var FI=(e)=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function UI(e,t,a=[]){if(t==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:FI(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}var qI=(e)=>{let t="",a=!1;for(let o of e){if(o==="-"||o==="_"||o<=" "){a=t.length>0;continue}if(t.length===0)t+=o.toLowerCase();else t+=a?o.toUpperCase():o;a=!1}return t};var HI=(e)=>{let t=qI(e);return t.charAt(0).toUpperCase()+t.slice(1)};W();var Ui=(...e)=>e.filter((t,a,o)=>Boolean(t)&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var xn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Ax(e){return e!==null&&e!==void 0}function _I(e,t={}){let a=t.attributeNames??{},o=(f)=>a[f]??f,r=e.size??e.width??xn.width,n=e.size??e.height??xn.height,l=e.aliases?.filter((f)=>typeof f==="string"&&f.trim()!=="").map((f)=>`lucide-${f}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...l],u=t.className?.split(" ").filter(Boolean)??[],i=t.includeDefaultClasses===!1?Ui(...u):Ui("lucide",...s,...u),c=t.absoluteStrokeWidth?Number(t.strokeWidth??xn["stroke-width"])*Number(e.size??e.width??xn.width)/Number(t.size??t.width??xn.width):t.strokeWidth??xn["stroke-width"];return["svg",{...Object.entries(xn).reduce((f,[p,g])=>(f[o(p)]=g,f),{}),..."color"in t&&t.color&&{[o("stroke")]:t.color},..."size"in t&&Ax(t.size)&&{[o("width")]:t.size,[o("height")]:t.size},..."width"in t&&Ax(t.width)&&{[o("width")]:t.width},..."height"in t&&Ax(t.height)&&{[o("height")]:t.height},[o("stroke-width")]:c,...i&&{[o("class")]:i},[o("viewBox")]:`0 0 ${r} ${n}`,...t.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map((f)=>{let[p,g,v]=f,L=t.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...g}:g;return v?[p,L,v]:[p,L]})]}function VI(e,t={}){return _I(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var GI=(e)=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};W();var CO=Ue({});var XI=()=>Be(CO);var jI=Ce(({color:e,size:t,width:a,height:o,strokeWidth:r,absoluteStrokeWidth:n,nonScalingStroke:l,className:s="",children:u,iconNode:i=[],icon:c={node:i,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,nonScalingStroke:L=!1,color:m="currentColor",className:h=""}=XI()??{},x=Boolean(u)||GI(d),[C,I,b=[]]=VI(c,{color:e??m,width:a??t??p,height:o??t??p,strokeWidth:r??g,absoluteStrokeWidth:n??v,nonScalingStroke:l??L,className:Ui(h,s),hasA11yProp:x,attributes:d});return at(C,{ref:f,...I},[...b.map(([S,y])=>at(S,y)),...Array.isArray(u)?u:[u]])});function rt(e,t=[],a=[]){let o=typeof e==="string"?UI(e,t,a):e,r=Ce(({className:n,...l},s)=>at(jI,{ref:s,icon:o,className:n,...l}));if(o.name)r.displayName=HI(o.name);return r}var YI={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};YI.node;var vn=rt(YI);var WI={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};WI.node;var Cn=rt(WI);var KI={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};KI.node;var yn=rt(KI);var ZI={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};ZI.node;var bn=rt(ZI);var QI={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};QI.node;var Ln=rt(QI);var JI={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};JI.node;var qi=rt(JI);var $I={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};$I.node;var Il=rt($I);var e1={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};e1.node;var Hi=rt(e1);var t1={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};t1.node;var _i=rt(t1);var a1={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};a1.node;var Vi=rt(a1);var o1={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};o1.node;var Gi=rt(o1);var r1={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]};r1.node;var Xi=rt(r1);var n1={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};n1.node;var ji=rt(n1);var l1={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};l1.node;var Al=rt(l1);var s1={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};s1.node;var Sn=rt(s1);var u1={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};u1.node;var Dr=rt(u1);W();var Tx=Ce(function(t,a){let{render:o,className:r,disabled:n=!1,focusableWhenDisabled:l=!1,nativeButton:s=!0,style:u,...i}=t,{getButtonProps:c,buttonRef:d}=Rr({disabled:n,focusableWhenDisabled:l,native:s});return Ge("button",t,{state:{disabled:n},ref:[a,d],props:[i,c]})});function i1(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=i1(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function zd(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=i1(e))&&(o&&(o+=" "),o+=t);return o}var c1=(e)=>typeof e==="boolean"?`${e}`:e===0?"0":e,f1=zd,kr=(e,t)=>(a)=>{var o;if((t===null||t===void 0?void 0:t.variants)==null)return f1(e,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className);let{variants:r,defaultVariants:n}=t,l=Object.keys(r).map((i)=>{let c=a===null||a===void 0?void 0:a[i],d=n===null||n===void 0?void 0:n[i];if(c===null)return null;let f=c1(c)||c1(d);return r[i][f]}),s=a&&Object.entries(a).reduce((i,c)=>{let[d,f]=c;if(f===void 0)return i;return i[d]=f,i},{}),u=t===null||t===void 0?void 0:(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((i,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every((g)=>{let[v,L]=g;return Array.isArray(L)?L.includes({...n,...s}[v]):{...n,...s}[v]===L})?[...i,d,f]:i},[]);return f1(e,l,u,a===null||a===void 0?void 0:a.class,a===null||a===void 0?void 0:a.className)};var yO=(e,t)=>{let a=Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},bO=(e,t)=>({classGroupId:e,validator:t}),x1=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var d1=[];var LO=(e)=>{let t=IO(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:(l)=>{if(l.startsWith("[")&&l.endsWith("]"))return SO(l);let s=l.split("-"),u=s[0]===""&&s.length>1?1:0;return v1(s,u,t)},getConflictingClassGroupIds:(l,s)=>{if(s){let u=o[l],i=a[l];if(u){if(i)return yO(i,u);return u}return i||d1}return a[l]||d1}}},v1=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let i=v1(e,t+1,n);if(i)return i}let l=a.validators;if(l===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),u=l.length;for(let i=0;i<u;i++){let c=l[i];if(c.validator(s))return c.classGroupId}return},SO=(e)=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?"arbitrary.."+o:void 0})(),IO=(e)=>{let{theme:t,classGroups:a}=e;return AO(a,t)},AO=(e,t)=>{let a=x1();for(let o in e){let r=e[o];Rx(r,a,o,t)}return a},Rx=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let l=e[n];TO(l,t,a,o)}},TO=(e,t,a,o)=>{if(typeof e==="string"){wO(e,t,a);return}if(typeof e==="function"){RO(e,t,a,o);return}DO(e,t,a,o)},wO=(e,t,a)=>{let o=e===""?t:C1(t,e);o.classGroupId=a},RO=(e,t,a,o)=>{if(kO(e)){Rx(e(o),t,a,o);return}if(t.validators===null)t.validators=[];t.validators.push(bO(a,e))},DO=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let l=0;l<n;l++){let[s,u]=r[l];Rx(u,C1(t,s),a,o)}},C1=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let l=o[n],s=a.nextPart.get(l);if(!s)s=x1(),a.nextPart.set(l,s);a=s}return a},kO=(e)=>("isThemeGetter"in e)&&e.isThemeGetter===!0,EO=(e)=>{if(e<1)return{get:()=>{return},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,l)=>{if(a[n]=l,t++,t>e)t=0,o=a,a=Object.create(null)};return{get(n){let l=a[n];if(l!==void 0)return l;if((l=o[n])!==void 0)return r(n,l),l},set(n,l){if(n in a)a[n]=l;else r(n,l)}}};var MO=[],p1=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),OO=(e)=>{let{prefix:t,experimentalParseClassName:a}=e,o=(r)=>{let n=[],l=0,s=0,u=0,i,c=r.length;for(let v=0;v<c;v++){let L=r[v];if(l===0&&s===0){if(L===":"){n.push(r.slice(u,v)),u=v+1;continue}if(L==="/"){i=v;continue}}if(L==="[")l++;else if(L==="]")l--;else if(L==="(")s++;else if(L===")")s--}let d=n.length===0?r:r.slice(u),f=d,p=!1;if(d.endsWith("!"))f=d.slice(0,-1),p=!0;else if(d.startsWith("!"))f=d.slice(1),p=!0;let g=i&&i>u?i-u:void 0;return p1(n,p,f,g)};if(t){let r=t+":",n=o;o=(l)=>l.startsWith(r)?n(l.slice(r.length)):p1(MO,!1,l,void 0,!0)}if(a){let r=o;o=(n)=>a({className:n,parseClassName:r})}return o},BO=(e)=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),(a)=>{let o=[],r=[];for(let n=0;n<a.length;n++){let l=a[n],s=l[0]==="[",u=t.has(l);if(s||u){if(r.length>0)r.sort(),o.push(...r),r=[];o.push(l)}else r.push(l)}if(r.length>0)r.sort(),o.push(...r);return o}},PO=(e)=>({cache:EO(e.cacheSize),parseClassName:OO(e),sortModifiers:BO(e),postfixLookupClassGroupIds:NO(e),...LO(e)}),NO=(e)=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},zO=/\s+/,FO=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:l}=t,s=[],u=e.trim().split(zO),i="";for(let c=u.length-1;c>=0;c-=1){let d=u[c],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:L}=a(d);if(f){i=d+(i.length>0?" "+i:i);continue}let m=!!L,h;if(m){let S=v.substring(0,L);h=o(S);let y=h&&l[h]?o(v):void 0;if(y&&y!==h)h=y,m=!1}else h=o(v);if(!h){if(!m){i=d+(i.length>0?" "+i:i);continue}if(h=o(v),!h){i=d+(i.length>0?" "+i:i);continue}m=!1}let x=p.length===0?"":p.length===1?p[0]:n(p).join(":"),C=g?x+"!":x,I=C+h;if(s.indexOf(I)>-1)continue;s.push(I);let b=r(h,m);for(let S=0;S<b.length;++S){let y=b[S];s.push(C+y)}i=d+(i.length>0?" "+i:i)}return i},UO=(...e)=>{let t=0,a,o,r="";while(t<e.length)if(a=e[t++]){if(o=y1(a))r&&(r+=" "),r+=o}return r},y1=(e)=>{if(typeof e==="string")return e;let t,a="";for(let o=0;o<e.length;o++)if(e[o]){if(t=y1(e[o]))a&&(a+=" "),a+=t}return a},qO=(e,...t)=>{let a,o,r,n,l=(u)=>{let i=t.reduce((c,d)=>d(c),e());return a=PO(i),o=a.cache.get,r=a.cache.set,n=s,s(u)},s=(u)=>{let i=o(u);if(i)return i;let c=FO(u,a);return r(u,c),c};return n=l,(...u)=>n(UO(...u))},HO=[],ca=(e)=>{let t=(a)=>a[e]||HO;return t.isThemeGetter=!0,t.themeKey=e,t},b1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,L1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_O=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,VO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,XO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,jO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=(e)=>_O.test(e),qe=(e)=>!!e&&!Number.isNaN(Number(e)),or=(e)=>!!e&&Number.isInteger(Number(e)),wx=(e)=>e.endsWith("%")&&qe(e.slice(0,-1)),Er=(e)=>VO.test(e),S1=()=>!0,WO=(e)=>GO.test(e)&&!XO.test(e),Dx=()=>!1,KO=(e)=>jO.test(e),ZO=(e)=>YO.test(e),QO=(e)=>!de(e)&&!pe(e),JO=(e)=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),$O=(e)=>An(e,T1,Dx),de=(e)=>b1.test(e),Tl=(e)=>An(e,w1,WO),m1=(e)=>An(e,s2,qe),e2=(e)=>An(e,D1,S1),t2=(e)=>An(e,R1,Dx),h1=(e)=>An(e,I1,Dx),a2=(e)=>An(e,A1,ZO),Fd=(e)=>An(e,k1,KO),pe=(e)=>L1.test(e),Yi=(e)=>wl(e,w1),o2=(e)=>wl(e,R1),g1=(e)=>wl(e,I1),r2=(e)=>wl(e,T1),n2=(e)=>wl(e,A1),Ud=(e)=>wl(e,k1,!0),l2=(e)=>wl(e,D1,!0),An=(e,t,a)=>{let o=b1.exec(e);if(o){if(o[1])return t(o[1]);return a(o[2])}return!1},wl=(e,t,a=!1)=>{let o=L1.exec(e);if(o){if(o[1])return t(o[1]);return a}return!1},I1=(e)=>e==="position"||e==="percentage",A1=(e)=>e==="image"||e==="url",T1=(e)=>e==="length"||e==="size"||e==="bg-size",w1=(e)=>e==="length",s2=(e)=>e==="number",R1=(e)=>e==="family-name",D1=(e)=>e==="number"||e==="weight",k1=(e)=>e==="shadow";var u2=()=>{let e=ca("color"),t=ca("font"),a=ca("text"),o=ca("font-weight"),r=ca("tracking"),n=ca("leading"),l=ca("breakpoint"),s=ca("container"),u=ca("spacing"),i=ca("radius"),c=ca("shadow"),d=ca("inset-shadow"),f=ca("text-shadow"),p=ca("drop-shadow"),g=ca("blur"),v=ca("perspective"),L=ca("aspect"),m=ca("ease"),h=ca("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...C(),pe,de],b=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],y=()=>[pe,de,u],T=()=>[In,"full","auto",...y()],w=()=>[or,"none","subgrid",pe,de],D=()=>["auto",{span:["full",or,pe,de]},or,pe,de],M=()=>[or,"auto",pe,de],R=()=>["auto","min","max","fr",pe,de],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...y()],_=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],le=()=>[s,In,"screen","full","dvw","lvw","svw","min","max","fit",...y()],V=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],P=()=>[e,pe,de],fe=()=>[...C(),g1,h1,{position:[pe,de]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",r2,$O,{size:[pe,de]}],U=()=>[wx,Yi,Tl],Y=()=>["","none","full",i,pe,de],K=()=>["",qe,Yi,Tl],ae=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[qe,wx,g1,h1],re=()=>["","none",g,pe,de],ve=()=>["none",qe,pe,de],ie=()=>["none",qe,pe,de],Z=()=>[qe,pe,de],xe=()=>[In,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Er],breakpoint:[Er],color:[S1],container:[Er],"drop-shadow":[Er],ease:["in","out","in-out"],font:[QO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Er],shadow:[Er],spacing:["px",qe],text:[Er],"text-shadow":[Er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,de,pe,L]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,de]}],"container-named":[JO],columns:[{columns:[qe,"auto",de,pe,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[or,"auto",pe,de]}],basis:[{basis:[In,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,In,"auto","initial","none",de]}],grow:[{grow:["",qe,pe,de]}],shrink:[{shrink:["",qe,pe,de]}],order:[{order:[or,"first","last","none",pe,de]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[s,"screen",..._()]}],"min-w":[{"min-w":[s,"screen","none",..._()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh","none",..._()]}],"font-size":[{text:["base",a,Yi,Tl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,l2,e2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wx,de]}],"font-family":[{font:[o2,t2,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,pe,de]}],"line-clamp":[{"line-clamp":[qe,"none",pe,m1]}],leading:[{leading:["none",n,...y()]}],"list-image":[{"list-image":["none",pe,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",pe,Tl]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[qe,"auto",pe,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[or,pe,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:Re()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},or,pe,de],radial:["",pe,de],conic:["",or,pe,de]},n2,a2]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-bs":[{"border-bs":K()}],"border-w-be":[{"border-be":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,pe,de]}],"outline-w":[{outline:["",qe,Yi,Tl]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","inner","none",c,Ud,Fd]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Ud,Fd]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[qe,Tl]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,Ud,Fd]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[qe,pe,de]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[pe,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:Re()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,de]}],filter:[{filter:["","none",pe,de]}],blur:[{blur:re()}],brightness:[{brightness:[qe,pe,de]}],contrast:[{contrast:[qe,pe,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Ud,Fd]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",qe,pe,de]}],"hue-rotate":[{"hue-rotate":[qe,pe,de]}],invert:[{invert:["",qe,pe,de]}],saturate:[{saturate:[qe,pe,de]}],sepia:[{sepia:["",qe,pe,de]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,de]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[qe,pe,de]}],"backdrop-contrast":[{"backdrop-contrast":[qe,pe,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,pe,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,pe,de]}],"backdrop-invert":[{"backdrop-invert":["",qe,pe,de]}],"backdrop-opacity":[{"backdrop-opacity":[qe,pe,de]}],"backdrop-saturate":[{"backdrop-saturate":[qe,pe,de]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,pe,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",pe,de]}],ease:[{ease:["linear","initial",m,pe,de]}],delay:[{delay:[qe,pe,de]}],animate:[{animate:["none",h,pe,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,pe,de]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[pe,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":["translate-none"],zoom:[{zoom:[or,pe,de]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,de]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[qe,Yi,Tl,m1]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var E1=qO(u2);function we(...e){return E1(zd(e))}var i2=kr("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ua({className:e,variant:t="default",size:a="default",...o}){return A(Tx,{"data-slot":"button",className:we(i2({variant:t,size:a,className:e})),...o})}var Rl=Ix();function c2({...e}){return A(C0,{...e})}function f2({...e}){return A(cI,{"data-slot":"toast-portal",...e})}function d2({className:e,...t}){return A(O0,{"data-slot":"toast-viewport",className:we("pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",e),...t})}function p2({className:e,...t}){return A(W0,{"data-slot":"toast",className:we("group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",e),...t})}function m2({className:e,...t}){return A(K0,{"data-slot":"toast-content",className:we("flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",e),...t})}function h2({className:e,...t}){return A(eI,{"data-slot":"toast-title",className:we("text-sm font-medium",e),...t})}function g2({className:e,...t}){return A($0,{"data-slot":"toast-description",className:we("text-sm text-muted-foreground",e),...t})}function x2({className:e,render:t=A(Ua,{variant:"outline",size:"sm"}),...a}){return A(rI,{"data-slot":"toast-action",render:t,className:we("shrink-0",e),...a})}function v2({className:e,children:t,render:a=A(Ua,{variant:"ghost",size:"icon-sm"}),...o}){return A(oI,{"data-slot":"toast-close","aria-label":"Close toast",render:a,className:we("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground",e),...o,children:t??A(Dr,{"aria-hidden":"true"})})}function C2({type:e}){let t=null;if(e==="success")t=A(vn,{"aria-hidden":"true"});if(e==="info")t=A(Gi,{"aria-hidden":"true"});if(e==="warning")t=A(Ln,{"aria-hidden":"true"});if(e==="error")t=A(yn,{className:"text-destructive","aria-hidden":"true"});if(e==="loading")t=A(Cn,{className:"animate-spin","aria-hidden":"true"});if(!t)return null;return A("span",{"data-slot":"toast-icon",className:"shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",children:t})}function y2(){let{toasts:e}=Sx();return e.map((t)=>A(p2,{toast:t,children:j(m2,{children:[A(C2,{type:t.type}),j("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[A(h2,{}),A(g2,{})]}),A(x2,{}),A(v2,{})]})},t.id))}function M1({children:e,toastManager:t=Rl,...a}){return j(c2,{toastManager:t,...a,children:[e,A(f2,{children:A(d2,{children:A(y2,{})})})]})}var Dua=Ix,kua=Sx;class qd{events=this;scopedEntries=new Map;universalEntries=[];nextId=0;nextOrder=0;on(e,t,a){let o=this.nextId++,r=this.scopedEntries.get(e)??[];return r.push({kind:"scoped",listener:t,once:a?.once??!1,id:o,order:this.nextOrder++}),this.scopedEntries.set(e,r),()=>this.off(o)}all(e,t){let a=this.nextId++;return this.universalEntries.push({kind:"universal",typeListener:e,once:t?.once??!1,id:a,order:this.nextOrder++}),()=>this.off(a)}dispatch(e,...t){let a=[...this.scopedEntries.get(e)??[],...this.universalEntries].sort((r,n)=>r.order-n.order),o=t[0];for(let r of a){if(r.kind==="scoped")r.listener(o);else r.typeListener(e,o);if(r.once)this.off(r.id)}}dispose(){this.scopedEntries.clear(),this.universalEntries.length=0}off(e){for(let[t,a]of this.scopedEntries){let o=a.filter((r)=>r.id!==e);if(o.length!==a.length)this.scopedEntries.set(t,o)}this.universalEntries=this.universalEntries.filter((t)=>t.id!==e)}}class kx{dispatcher=new qd;events=this.dispatcher.events;snapshot=null;offline=!1;stream=null;start(){if(this.stream!==null)return;let e=new EventSource("/events");this.stream=e,e.onmessage=()=>void this.load(),e.onopen=()=>this.set({offline:!1}),e.onerror=()=>this.set({offline:!0}),this.load()}dispose(){this.stream?.close(),this.stream=null}async load(){try{let e=await fetch("/api/snapshot");if(!e.ok)throw Error(`snapshot: ${e.status}`);this.set({snapshot:await e.json(),offline:!1})}catch{this.set({offline:!0})}}set(e){Object.assign(this,e),this.dispatcher.dispatch("changed")}}W();function O1(e){return Ge(e.defaultTagName??"div",e,e)}var b2=kr("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Ex({className:e,variant:t="default",render:a,...o}){return O1({defaultTagName:"span",props:Ll({className:we(b2({variant:t}),e)},o),render:a,state:{slot:"badge",variant:t}})}W();W();var Mx=Ue(void 0);function Ka(e){let t=Be(Mx);if(!e&&t===void 0)throw Error(ka(27));return t}var B1=Ce(function(t,a){let{render:o,className:r,style:n,forceRender:l=!1,...s}=t,u=Ka(),i=u.useState("open"),c=u.useState("nested"),d=u.useState("mounted"),f=u.useState("transitionStatus");return Ge("div",t,{state:{open:i,transitionStatus:f},ref:[u.context.backdropRef,a],stateAttributesMapping:n0,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},s],enabled:l||!c})});W();var Ox=Ce(function(t,a){let{render:o,className:r,style:n,disabled:l=!1,nativeButton:s=!0,...u}=t,i=Ka(),c=i.useState("open"),{getButtonProps:d,buttonRef:f}=Rr({disabled:l,native:s}),p={disabled:l};function g(v){if(c)i.setOpen(!1,Ma(rO,v.nativeEvent))}return Ge("button",t,{state:p,ref:[a,f],props:[{onClick:g},u,d]})});W();function Qs(e){return mn(e,"base-ui")}var P1=Ce(function(t,a){let{render:o,className:r,style:n,id:l,...s}=t,u=Ka(),i=Qs(l);return u.useSyncedValueWithCleanup("descriptionElementId",i),Ge("p",t,{ref:a,props:[{id:i},s]})});W();W();var Bx=Ue(void 0);function N1(){let e=Be(Bx);if(e===void 0)throw Error(ka(26));return e}var L2="ArrowUp",S2="ArrowDown",I2="ArrowLeft",A2="ArrowRight",T2="Home",w2="End";var z1=new Set([L2,S2,I2,A2,T2,w2]);var F1="--nested-dialogs";var via=Gg,Cia=Xg,yia=bM,bia=LM;var U1="data-nested-dialog-open";var q1={...Yg,...js,nestedDialogOpen(e){return e?{[U1]:""}:null}};var H1=Ce(function(t,a){let{render:o,className:r,style:n,finalFocus:l,initialFocus:s,...u}=t,i=Ka(),c=i.useState("descriptionElementId"),d=i.useState("disablePointerDismissal"),f=i.useState("floatingRootContext"),p=i.useState("popupProps"),g=i.useState("modal"),v=i.useState("mounted"),L=i.useState("nested"),m=i.useState("nestedOpenDialogCount"),h=i.useState("open"),x=i.useState("openMethod"),C=i.useState("titleElementId"),I=i.useState("transitionStatus"),b=i.useState("role"),S=f.useState("floatingId");N1(),Zs({open:h,ref:i.context.popupRef,onComplete(){if(h)i.context.onOpenChangeComplete?.(!0)}});let y=s===void 0?AI(i.context.popupRef):s,T=m>0,w=i.useStateSetter("popupElement"),M=Ge("div",t,{state:{open:h,nested:L,transitionStatus:I,nestedDialogOpen:T},props:[p,{id:S,"aria-labelledby":C,"aria-describedby":c,role:b,...II,hidden:!v,onKeyDown(R){if(z1.has(R.key))R.stopPropagation()},style:{[F1]:m}},u],ref:[a,i.context.popupRef,w],stateAttributesMapping:q1});return A(Cx,{context:f,openInteractionType:x,disabled:!v,closeOnFocusOut:!d,initialFocus:y,returnFocus:l,modal:g!==!1,restoreFocus:"popup",children:M})});W();W();var _1=Ce(function(t,a){let{cutout:o,...r}=t,n;if(o){let l=o.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return A("div",{ref:a,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});var V1=Ce(function(t,a){let{keepMounted:o=!1,...r}=t,n=Ka(),l=n.useState("mounted"),s=n.useState("modal"),u=n.useState("open");if(!(l||o))return null;return A(Bx.Provider,{value:o,children:j(px,{ref:a,...r,children:[l&&s===!0&&A(_1,{ref:n.context.internalBackdropRef,inert:Td(!u)}),t.children]})})});W();W();var G1={},X1={},j1="";function Hd(e,t){return jS(e)?e:t}function Y1(e,t,a){return/hidden|clip/.test(e.getComputedStyle(Hd(t,a)).overflowY)}function k2(e){if(typeof document>"u")return!1;let t=et(e);return ga(t).innerWidth-t.documentElement.clientWidth>0}function E2(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let a=et(e),{documentElement:o,body:r}=a,n=Hd(o,r),l=n.style.overflowY,s=o.style.scrollbarGutter;o.style.scrollbarGutter="stable",n.style.overflowY="scroll";let u=n.offsetWidth;n.style.overflowY="hidden";let i=n.offsetWidth;return n.style.overflowY=l,o.style.scrollbarGutter=s,u===i}function M2(e){let t=et(e),{documentElement:a,body:o}=t,r=Hd(a,o),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}function O2(e){let t=et(e),{documentElement:a,body:o}=t,r=ga(a),n=0,l=0,s=!1,u=Ao.create();if(Xs.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function i(){let p=r.getComputedStyle(a),g=r.getComputedStyle(o),m=(p.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";n=a.scrollTop,l=a.scrollLeft,G1={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},j1=a.style.scrollBehavior,X1={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let h=a.scrollHeight>a.clientHeight,x=a.scrollWidth>a.clientWidth,C=p.overflowY==="scroll"||g.overflowY==="scroll",I=p.overflowX==="scroll"||g.overflowX==="scroll",b=Math.max(0,r.innerWidth-o.clientWidth),S=Math.max(0,r.innerHeight-o.clientHeight),y=parseFloat(g.marginTop)+parseFloat(g.marginBottom),T=parseFloat(g.marginLeft)+parseFloat(g.marginRight),w=Hd(a,o);if(s=E2(e),s){a.style.scrollbarGutter=m,w.style.overflowY="hidden",w.style.overflowX="hidden";return}if(Object.assign(a.style,{scrollbarGutter:m,overflowY:"hidden",overflowX:"hidden"}),h||C)a.style.overflowY="scroll";if(x||I)a.style.overflowX="scroll";Object.assign(o.style,{position:"relative",height:y||S?`calc(100dvh - ${y+S}px)`:"100dvh",width:T||b?`calc(100vw - ${T+b}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=n,o.scrollLeft=l,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function c(){if(Object.assign(a.style,G1),Object.assign(o.style,X1),!s)a.scrollTop=n,a.scrollLeft=l,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=j1}function d(){c(),u.request(i)}i();let f=We(r,"resize",d);return()=>{if(u.cancel(),c(),typeof r.removeEventListener==="function")f()}}class W1{lockCount=0;restore=null;timeoutLock=To.create();timeoutUnlock=To.create();acquire(e){if(this.lockCount+=1,this.lockCount===1&&this.restore===null)this.timeoutLock.start(0,()=>this.lock(e));return this.release}release=()=>{if(this.lockCount-=1,this.lockCount===0&&this.restore)this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{if(this.lockCount===0&&this.restore)this.restore?.(),this.restore=null};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=et(e),{documentElement:a,body:o}=t,r=ga(a);if(Y1(r,a,o)){let l=new r.MutationObserver(()=>{if(Y1(r,a,o))return;l.disconnect(),this.restore=null,this.lock(e)}),s={attributes:!0};l.observe(a,s),l.observe(o,s),this.restore=()=>l.disconnect();return}let n=Gs.ios||!k2(e);this.restore=n?M2(e):O2(e)}}var B2=new W1;function K1(e=!0,t=null){ye(()=>{if(!e)return;return B2.acquire(t)},[e,t])}function Z1({store:e,parentContext:t,isDrawer:a}){let o=e.useState("open"),r=e.useState("disablePointerDismissal"),n=e.useState("modal"),l=e.useState("popupElement"),s=e.useState("floatingRootContext"),[u,i]=J(0),[c,d]=J(0),f=u===0,p=yx(s,{outsidePressEvent(){if(e.context.internalBackdropRef.current||e.context.backdropRef.current)return"intentional";return{mouse:n==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(g){if(!e.context.outsidePressEnabledRef.current)return!1;if("button"in g&&g.button!==0)return!1;if("touches"in g){if(g.type==="touchend"){if(g.changedTouches.length!==1||g.touches.length!==0)return!1}else if(g.touches.length!==1)return!1}let v=Yt(g);if(f&&!r){if(n){let L=e.context.internalBackdropRef.current,m=e.context.backdropRef.current;return L||m?L===v||m===v||ze(v,l)&&!v?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:f});return K1(o&&n===!0,l),e.useContextCallback("onNestedDialogOpen",(g,v)=>{i(g),d(v)}),ye(()=>{if(t?.onNestedDialogOpen)if(o)t.onNestedDialogOpen(u+1,c+(a?1:0));else t.onNestedDialogOpen(0,0);return()=>{if(t?.onNestedDialogOpen&&o)t.onNestedDialogOpen(0,0)}},[a,o,u,c,t]),EI(e,{activeTriggerProps:p.reference,inactiveTriggerProps:p.trigger,popupProps:p.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:c}),null}W();var P2={...NI,modal:(e)=>e.modal,nested:(e)=>e.nested,nestedOpenDialogCount:(e)=>e.nestedOpenDialogCount,nestedOpenDrawerCount:(e)=>e.nestedOpenDrawerCount,disablePointerDismissal:(e)=>e.disablePointerDismissal,openMethod:(e)=>e.openMethod,descriptionElementId:(e)=>e.descriptionElementId,titleElementId:(e)=>e.titleElementId,viewportElement:(e)=>e.viewportElement,role:(e)=>e.role};class Px extends pl{constructor(e,t,a){let o=new bx,r=N2(e,o,t,a);super(r,z2(o),P2)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null)t.trigger=this.state.activeTriggerElement??void 0;if(this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(RI(this.state,e,t.trigger))}}function N2(e,t,a,o=!1){return{...BI(t,a,o),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function z2(e){return{popupRef:Wl(),backdropRef:Wl(),internalBackdropRef:Wl(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Q1(e,t){let{children:a,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:l,disablePointerDismissal:s=!1,modal:u=!0,actionsRef:i,handle:c,triggerId:d,defaultTriggerId:f=null}=t,p=e==="drawer",g=e==="alert-dialog",v=g?!0:u,L=g||s,m=g?"alertdialog":"dialog",h=Ka(!0),x=h!=null,C={modal:v,disablePointerDismissal:L,nested:x,role:m},I=TI((D,M)=>new Px({open:r,openProp:o,activeTriggerId:f,triggerIdProp:d,...C},D,M),!0);I.useControlledProp("openProp",o),I.useControlledProp("triggerIdProp",d),I.useSyncedValues(C),I.useContextCallback("onOpenChange",n),I.useContextCallback("onOpenChangeComplete",l);let b=I.useState("open"),S=I.useState("mounted"),y=I.useState("payload");MI(I,b),DI(I);let{forceUnmount:T}=kI(b,I);Sc(i,()=>({unmount:T,close:()=>I.setOpen(!1,Ma(lO))}),[T,I]);let w=b||S;return j(Mx.Provider,{value:I,children:[c&&A(wI,{handle:c,store:I}),w&&A(Z1,{store:I,parentContext:h?.context,isDrawer:p}),typeof a==="function"?a({payload:y}):a]})}var J1=XS(function(t){return Q1("dialog",t)});W();var $1=Ce(function(t,a){let{render:o,className:r,style:n,id:l,...s}=t,u=Ka(),i=Qs(l);return u.useSyncedValueWithCleanup("titleElementId",i),Ge("h2",t,{ref:a,props:[{id:i},s]})});W();function eA(e,t){let a=z(e),o=Qe(t);ye(()=>{if(a.current!==e)o(a.current);a.current=e},[e,o])}function Wi({...e}){return A(J1,{"data-slot":"dialog",...e})}function F2({...e}){return A(V1,{"data-slot":"dialog-portal",...e})}function U2({className:e,...t}){return A(B1,{"data-slot":"dialog-overlay",className:we("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function _d({className:e,children:t,showCloseButton:a=!0,...o}){return j(F2,{children:[A(U2,{}),j(H1,{"data-slot":"dialog-content",className:we("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[t,a&&j(Ox,{"data-slot":"dialog-close",render:A(Ua,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[A(Dr,{}),A("span",{className:"sr-only",children:"Close"})]})]})]})}function Vd({className:e,...t}){return A("div",{"data-slot":"dialog-header",className:we("flex flex-col gap-2",e),...t})}function aA({className:e,showCloseButton:t=!1,children:a,...o}){return j("div",{"data-slot":"dialog-footer",className:we("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...o,children:[a,t&&A(Ox,{render:A(Ua,{variant:"outline"}),children:"Close"})]})}function Gd({className:e,...t}){return A($1,{"data-slot":"dialog-title",className:we("text-base leading-none font-medium",e),...t})}function Xd({className:e,...t}){return A(P1,{"data-slot":"dialog-description",className:we("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}W();function Nx(e){if(Array.isArray(e))return e.map((t)=>Nx(t)).join(",");if(e==null)return"";return String(e)}var oA=new Map;function q2(e,t){let a=JSON.stringify({locale:Nx(e),options:t}),o=oA.get(a);if(o)return o;let r=new Intl.NumberFormat(e,t);return oA.set(a,r),r}function zx(e,t,a){if(e==null)return"";return q2(t,a).format(e)}function rA(e,t,a){return(e-t)*100/(a-t)}W();var Fx=Ue(void 0);function jd(){let e=Be(Fx);if(e===void 0)throw Error(ka(51));return e}var nA="data-complete",lA="data-indeterminate",sA="data-progressing";var Js={status(e){if(e==="progressing")return{[sA]:""};if(e==="complete")return{[nA]:""};if(e==="indeterminate")return{[lA]:""};return null}};var uA=Ce(function(t,a){let{format:o,getAriaValueText:r,locale:n,max:l=100,min:s=0,value:u,render:i,className:c,children:d,style:f,...p}=t,[g,v]=J(),L="indeterminate",m=null,h=null,x="",C="indeterminate progress";if(u!=null&&Number.isFinite(u)){let T=rA(u,s,l);m=cx(Number.isNaN(T)?0:T,0,100),h=cx(u,s,l),L=h===l?"complete":"progressing",x=o?zx(h,n,o):zx(m/100,n,{style:"percent"}),C=x}let I=Le(()=>({status:L}),[L]),b={"aria-labelledby":g,"aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":h??void 0,"aria-valuetext":r?r(x,u):C,role:"progressbar",children:j(ya,{children:[d,A("span",{role:"presentation",style:Ws,children:"x"})]})},S=Le(()=>({formattedValue:x,percentageValue:m,setLabelId:v,state:I,value:u}),[x,m,v,I,u]),y=Ge("div",t,{state:I,ref:a,props:[b,p],stateAttributesMapping:Js});return A(Fx.Provider,{value:S,children:y})});W();var iA=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{state:s}=jd();return Ge("div",t,{state:s,ref:a,props:l,stateAttributesMapping:Js})});W();var cA=Ce(function(t,a){let{render:o,className:r,style:n,...l}=t,{percentageValue:s,state:u}=jd(),i=s==null?{}:{insetInlineStart:0,height:"inherit",width:`${s}%`};return Ge("div",t,{state:u,ref:a,props:[{style:i},l],stateAttributesMapping:Js})});function dA({className:e,children:t,value:a,...o}){return j(uA,{value:a,"data-slot":"progress",className:we("flex flex-wrap gap-3",e),...o,children:[t,A(_2,{children:A(V2,{})})]})}function _2({className:e,...t}){return A(iA,{className:we("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function V2({className:e,...t}){return A(cA,{"data-slot":"progress-indicator",className:we("h-full bg-primary transition-all",e),...t})}class Yd extends Error{}class Ux{heading;level;line;body;lead;constructor(e,t,a,o,r){this.heading=e;this.level=t;this.line=a;this.body=o;this.lead=r}codeBlocks(e="body"){let t=[],a=null;for(let o of this[e].split(`
10
+ `)){let r=o.match(/^(```+|~~~+)\s*(\S*)/);if(a===null&&r)a={mark:r[1]??"`",lang:r[2]??"",code:[]};else if(a!==null&&r&&r[2]===""&&r[1]?.[0]===a.mark[0])t.push({lang:a.lang,code:a.code.join(`
11
+ `)}),a=null;else if(a!==null)a.code.push(o)}return t}}class $s{text;fields;body;sections;constructor(e,t,a,o){this.text=e;this.fields=t;this.body=a;this.sections=o}static parse(e){let{fields:t,body:a,offset:o}=G2(e);return new $s(e,t,a,X2(a,o))}get title(){return this.sections.find((e)=>e.level===1)?.heading??null}field(e){let t=this.fields[e];if(t===void 0)throw new Yd(`no field "${e}" (have: ${Object.keys(this.fields).join(", ")||"none"})`);return t}has(e){return this.find(e)!==void 0}section(e){let t=this.find(e);if(!t)throw new Yd(`no section "${e}" (have: ${this.sections.map((a)=>a.heading).join(", ")||"none"})`);return t}find(e){let t=e.toLowerCase();return this.sections.find((a)=>a.heading.toLowerCase()===t)}}function G2(e){let t=e.match(/^---\n([\s\S]*?)\n---(?:\n|$)/);if(!t)return{fields:{},body:e,offset:0};let a={};for(let o of(t[1]??"").split(`
12
+ `)){let r=o.match(/^(\S+):\s*(.*)$/);if(r?.[1])a[r[1]]=(r[2]??"").trim().replace(/^(["'])(.*)\1$/,"$2")}return{fields:a,body:e.slice(t[0].length),offset:t[0].split(`
13
+ `).length-1}}function X2(e,t){let a=e.split(`
14
+ `),o=[],r=null;for(let[n,l]of a.entries()){let s=l.match(/^(```+|~~~+)/)?.[1];if(s){r=r===null?s:r[0]===s[0]?null:r;continue}let u=r===null&&l.match(/^(#{1,6})\s+(.*)$/);if(u)o.push({heading:(u[2]??"").trim(),level:(u[1]??"#").length,index:n})}return o.map(({heading:n,level:l,index:s},u)=>{let i=o.slice(u+1),c=i.find((f)=>f.level<=l)?.index??a.length,d=i.find((f)=>f.index<c)?.index??c;return new Ux(n,l,s+t+1,a.slice(s+1,c).join(`
15
+ `).trim(),a.slice(s+1,d).join(`
16
+ `).trim())})}var j2=/^[ \t]*- \[([ xX])\]/gm,Y2=["Done","Next"];function pA(e){let t=$s.parse(e),a=Y2.flatMap((o)=>t.has(o)?[...t.section(o).body.matchAll(j2)]:[]);if(a.length===0)return null;return{done:a.filter((o)=>o[1]!==" ").length,total:a.length}}W();var Wd;function mA(e){if(!Wd){if(typeof document>"u")return;Wd=document.createElement("textarea")}var t=`&${e};`;Wd.innerHTML=t;var a=Wd.value;return a===t?void 0:a}var X=32,te=9,Mn=13,ge=10,lt=96,la=126,ht=91,Or=94,Ve=62,Mo=35,Gx=37,Fe=45,Do=61,$t=92,Ht=42,Ot=95,ft=60,YA=64,uo=93,Pa=33,sp=38,Ba=58,Xx=70,Ol=102,tp=104,Ml=119,nu=116,jx=112,WA=115,W2=160,K2=12,Z2=44,ap=59,uu=63,ko=46,Ut=47,Bl=39,Pl=34,On=43,fa=124,Nl=123,uv=125,so=40,Eo=41,Q2=78,J2=110,$2=79,eB=111,KA=120,ZA=88,Yx=30,He=48,_e=57,Me=65,Oe=90,ct=97,bt=122,up=128,Go=32,tB={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},E=tB;function aB(e){if(!gA(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]==="\t");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
17
+ `)return null;t++;let a=!1;for(;t<e.length;){let o=t;for(;t<e.length&&e[t]!==`
18
+ `&&e[t]!=="\r";)t++;if(t>=e.length)break;let r=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
19
+ `&&t++,gA(e,"---",o))return{endPos:t,hasValidYaml:a};if(!a){let n=pB(e,o,r);if(n<r){let l=e.charCodeAt(n);if(l>=ct&&l<=bt||l>=Me&&l<=Oe||l>=He&&l<=_e||l===Ot){for(n++;n<r&&(l=e.charCodeAt(n),l>=ct&&l<=bt||l>=Me&&l<=Oe||l>=He&&l<=_e||l===Ot||l===Fe||l===ko);)n++;n<r&&e.charCodeAt(n)===Ba&&(n++,n>=r?a=!0:(l=e.charCodeAt(n),(l===X||l===te)&&(a=!0)))}}}}return null}var oB=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,rB={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},nB={};function QA(e){if(!e)return nB;var t={};for(var a in e){var o=a.toLowerCase(),r=rB[o];if(r)t[r]=e[a];else{var n=a.indexOf(":");n===-1?t[a]=e[a]:t[a.slice(0,n)+a[n+1].toUpperCase()+a.slice(n+2)]=e[a]}}return t}var lB=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function Dn(e){return e.indexOf("&")===-1?e:e.replace(oB,(t,a)=>{var o=mA(a);if(o)return o;if(a[0]==="#"){var r=a[1]==="x"||a[1]==="X"?Number.parseInt(a.slice(2),16):Number.parseInt(a.slice(1),10);return r===0||r>=55296&&r<=57343||r>1114111?"�":r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return t})}var hA=/(javascript|vbscript|data(?!:image)):/i;function Mr(e){if(hA.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(hA.test(t))return null}catch{return null}return e}var Oa={},qa,sa;for(qa=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="a";for(Oa[231]=Oa[199]="c",Oa[240]=Oa[208]="d",qa=[200,201,202,203,233,232,234,235],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="e";for(qa=[207,239,206,238,205,237,204,236],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="i";for(Oa[209]=Oa[241]="n",qa=[248,216,339,338,213,245,212,244,211,243,210,242],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="o";for(qa=[220,252,219,251,218,250,217,249],sa=0;sa<qa.length;sa++)Oa[qa[sa]]="u";Oa[376]=Oa[255]=Oa[221]=Oa[253]="y";function zl(e){for(var t="",a=-1,o=e.length,r=0;r<o;r++){var n=e.charCodeAt(r);if(n>=ct&&n<=bt||n>=He&&n<=_e){a<0&&(a=r);continue}if(n>=Me&&n<=Oe){a>=0&&(t+=e.slice(a,r),a=-1),t+=String.fromCharCode(n+Go);continue}if(n===X||n===Fe){a>=0&&(t+=e.slice(a,r),a=-1),t+="-";continue}a>=0&&(t+=e.slice(a,r),a=-1);var l=Oa[n];l&&(t+=l)}return a>=0&&(t+=e.slice(a)),t}function gA(e,t,a){return e.startsWith(t,a)}var xA=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Qi(e){let t=e.toLowerCase();if(xA.has(t))return!0;let a=t.indexOf(":");return a!==-1?(t=t.slice(a+1),xA.has(t)):!1}var El=1,vA=2,au=4,CA=8,sB=16,Vo=32,Tn=64,uB=(()=>{var e=new Uint8Array(128),t;for(e[te]=El,e[ge]=El|vA,e[K2]=El,e[Mn]=El|vA,e[X]=El,t=Pa;t<=Ut;t++)e[t]=au;for(t=Ba;t<=YA;t++)e[t]=au;for(t=ht;t<=lt;t++)e[t]=au;for(t=Nl;t<=la;t++)e[t]=au;for(t=He;t<=_e;t++)e[t]=sB;for(t=Me;t<=Oe;t++)e[t]=CA;for(t=ct;t<=bt;t++)e[t]=CA;return e})(),iB=/[\p{P}\p{S}]/u,cB=/\p{Zs}/u,Dl=[];function fB(e){var t=e.indexOf("\r"),a=e.indexOf("\x00");if(t===-1&&a===-1)return e;var o=e.length;Dl.length=0;var r=0,n=0;for(t===-1?n=a:a===-1?n=t:n=t<a?t:a;n<o;n++){var l=e.charCodeAt(n);l===Mn?(r<n&&Dl.push(e.slice(r,n)),n+1<o&&e.charCodeAt(n+1)===ge&&n++,Dl.push(`
20
+ `),r=n+1):l===0&&(r<n&&Dl.push(e.slice(r,n)),Dl.push("�"),r=n+1)}return r<o&&Dl.push(e.slice(r)),Dl.join("")}function dB(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function pB(e,t,a){let o=a??e.length;for(;t<o&&(e[t]===" "||e[t]==="\t");)t++;return t}function JA(e){if(!e)return!1;for(var t in e)return!0;return!1}function mB(e){return{attrs:{},children:[{type:E.text,text:e}],c:!0,type:E.htmlBlock,tag:"header"}}var hB=/^\n+/;function gB(e){for(var t=e.length;t>0&&(e[t-1]===`
21
+ `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(hB,"")}
22
+
23
+ `}function ou(e){if((e.type===E.htmlSelfClosing||e.type===E.htmlBlock)&&e.a)return[];if(e.type===E.paragraph){var t=e.children;return t?t.flatMap(ou):[]}return e.type===E.text?e.text?.trim()?[e]:[]:e.type===E.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(ou)}]:[e]}function $A(e){for(var t=0;t<e.length;t++){if(e[t].type===E.htmlBlock){var a=e[t],o=!1;if(a.c&&t===e.length-1){var r=a.j===void 0?a.a?a.e||"":(a.e||"")+(a.h||""):a.j,n=`</${String(a.tag).toLowerCase()}>`,l=r.toLowerCase().indexOf(n);if(l!==-1){var s=r.slice(l+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");s.trim()&&(o=!0)}}o||(a.c=!1)}"children"in e[t]&&e[t].children&&$A(e[t].children)}}function xB(e,t){for(var a=0;a<e.length;a++){var o=e[a];if(o.type===E.paragraph&&o.children)for(var r=o.children,n=0;n<r.length;n++){var l=r[n];if(l.type===E.htmlSelfClosing&&l.a&&l.tag.toLowerCase()===t){var s=e.slice(0,a);n>0&&s.push({type:E.paragraph,children:r.slice(0,n)});var u=[];if(n+1<r.length){var i=r.slice(n+1).filter((c)=>!(c.type===E.htmlSelfClosing&&c.a));i.length>0&&(u=i)}return u=u.concat(e.slice(a+1)),{found:!0,beforeClose:s,afterClose:u}}}if((o.type===E.htmlSelfClosing||o.type===E.htmlBlock)&&o.a&&o.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,a),afterClose:e.slice(a+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function vB(e){var t="";for(var a in e){var o=e[a];o===!0?t+=` ${a}`:o!==void 0&&o!=null&&o!==!1&&(t+=` ${a}="${String(o)}"`)}return t}function yA(e,t,a,o){var r;return t===void 0?r=vB(a):r=t.length>0&&t.charCodeAt(0)>X?` ${t}`:t,`<${e}${r}${o}`}function bA(e){var t=e.tag,a=e.type===E.htmlSelfClosing,o=e,r=o.b,n=`</${t}>`;if(!a&&o.a)return{kind:"literal",literal:(o.h||n)+(o.e||"")};if(a){var l=e;return l.a?{kind:"literal",literal:l.h||n}:l.m?{kind:"literal",literal:l.m}:{kind:"literal",literal:yA(t,r,e.attrs," />")}}var s=yA(t,r,e.attrs,">"),u=o.children,i=u!=null&&u.length>0;if(o.c&&o.j!==void 0)return i?{kind:"sandwich",open:s,close:n}:{kind:"literal",literal:o.j};if(o.c&&!i)return{kind:"literal",literal:s+(o.e||"")+(o.h||n)};if(u!=null&&u.length>0){for(var c="",d=0;d<u.length;d++){var f=u[d];if(f.type!==E.text)return{kind:"sandwich",open:s,close:n};c+=f.text}return{kind:"literal",literal:s+c+n}}var p=o.e||"";return p&&p.indexOf(n)!==-1?{kind:"literal",literal:s+p}:{kind:"literal",literal:s+p+n}}function CB(e,t,a){var o=[],r=e,n=a;if(r&&o.push(r),Array.isArray(t))for(var l=0;l<t.length;l++)o.push(t[l]);else t!=null&&o.push(t);n&&o.push(n);for(var s=[],u=0;u<o.length;u++){var i=o[u];typeof i=="string"&&s.length>0&&typeof s.at(-1)=="string"?s[s.length-1]=s.at(-1)+i:s.push(i)}return s}function tu(e){return e==null||e.tagfilter!==!1}function yB(e,t,a,o){var r=t(e,a,o);return r===null?null:LB(r)}function bB(e){var t=[];if(!e)return t;for(var a in e)a.charCodeAt(0)===94&&t.push({identifier:a,footnote:e[a].target});return t}function LA(e){for(var t=0,a=e.length;t<a;){var o=e.charCodeAt(t);if(o>=Me&&o<=Oe)return e.toLowerCase();t++}return e}function Wx(e,t,a){if(t.indexOf(".")===-1){var o=e?.[t];if(o)return o;if(e){var r=LA(t);if(r!==t){var n=e[r];if(n)return n}}return a}for(var l=e,s=t.split("."),u=0,i=!1;u<s.length;){if(l=l?.[s[u]],l===void 0){i=u===0;break}u++}if(i&&e){var c=LA(s[0]);if(c!==s[0])for(l=e[c],u=1;l!==void 0&&u<s.length;)l=l?.[s[u]],u++}return l||a}function LB(e){for(var t=!1,a=0;a<e.length;a++){var o=e.charCodeAt(a);if(o<=X||o===Pl||o===Gx||o===ft||o===Ve||o===ht||o===$t||o===uo||o===Or||o===lt||o>=123){t=!0;break}}if(!t)return e;for(var r="",a=0;a<e.length;a++){var o=e.charCodeAt(a);if(o===Gx&&a+2<e.length){var n=e.charCodeAt(a+1),l=e.charCodeAt(a+2);if((n>=He&&n<=_e||n>=Me&&n<=Xx||n>=ct&&n<=Ol)&&(l>=He&&l<=_e||l>=Me&&l<=Xx||l>=ct&&l<=Ol)){r+=e[a]+e[a+1]+e[a+2],a+=2;continue}}if(o>=55296&&o<=57343){if(o<=56319&&a+1<e.length){var s=e.charCodeAt(a+1);if(s>=56320&&s<=57343){r+=encodeURI(e[a]+e[a+1]),a++;continue}}r+=e[a];continue}r+=encodeURI(e[a])}return r}function SB(...e){return e.filter(Boolean).join(" ")}var IB=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),op=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function SA(e){return IB.has(e.toLowerCase())}function AB(e){return op.lastIndex=0,op.test(e)}function IA(e){return op.lastIndex=0,e.replace(op,(t,a,o,r)=>`&lt;${a}${o}${r}`)}function iv(e,t){var a=e||{},o=a.slugify,r;if(o){var n=o;r=(l)=>n(l,zl)}else r=zl;return{disableAutoLink:a.disableAutoLink,disableFrontmatter:a.disableFrontmatter,disableParsingRawHTML:a.disableParsingRawHTML,enforceAtxHeadings:a.enforceAtxHeadings,evalUnserializableExpressions:a.evalUnserializableExpressions,forceBlock:a.forceBlock,forceInline:t===void 0?a.forceInline:t,ignoreHTMLBlocks:a.ignoreHTMLBlocks,optimizeForStreaming:a.optimizeForStreaming,preserveFrontmatter:a.preserveFrontmatter,sanitizer:a.sanitizer||Mr,slugify:r,tagfilter:tu(a)}}var TB=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,wB=/^<[A-Z]/,Kx=["script","pre","style","textarea"],Ji=new Set(Kx),RB=/<(?:pre|script|style|textarea)\b/i,AA=/<(?:pre|script|style|textarea)\b/iy,qx=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,TA=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,eT=new Uint8Array(128);(()=>{for(var e=[lt,Ht,Ot,la,Do,ht,Pa,ft,$t,sp,ge,tp,Ml,Ol],t=0;t<e.length;t++)eT[e[t]]=1})();var wA=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function DB(e){return Ji.has(e)}function kB(e){return RB.test(e)}function tT(e,t,a){for(var o=t,r=a;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o>=r)return!1;e.charCodeAt(o)===fa&&o++;for(var n=0;o<r;){for(;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o>=r)break;if(e.charCodeAt(o)===fa&&n>0){for(var l=o+1;l<r&&(e.charCodeAt(l)===X||e.charCodeAt(l)===te);)l++;if(l>=r)return!0}if(e.charCodeAt(o)===Ba&&o++,o>=r||e.charCodeAt(o)!==Fe)return!1;for(;o<r&&e.charCodeAt(o)===Fe;)o++;for(o<r&&e.charCodeAt(o)===Ba&&o++,n++;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;if(o<r)if(e.charCodeAt(o)===fa)o++;else return!1}return n>0}var EB=/[\u0000-\u001F\u007F]/g,MB={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},OB=/&#(x[0-9a-f]+|[0-9]+);?/gi;function BB(e){return e.indexOf("&#")===-1?e:e.replace(OB,(t,a)=>{var o=a.charCodeAt(0)===KA||a.charCodeAt(0)===ZA?Number.parseInt(a.slice(1),16):Number.parseInt(a,10);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function PB(e,t,a){if(a&&t.charCodeAt(0)===Nl)return!1;var o=e.charCodeAt(0),r=e.charCodeAt(1);if((o===eB||o===$2)&&(r===J2||r===Q2))return!(a&&t==="");var n=e.toLowerCase();if(n==="srcdoc")return!0;if(n==="style")return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(t);if(MB[n]===1){var l=BB(Dn(t));if(Mr(l)===null)return!0;var s=l.replace(EB,"");return s!==l&&Mr(s)===null}return!1}function Zx(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function RA(e,t,a,o){for(var r=[],n=t,l=0;l<o.length;l+=2){var s=o[l];if(s>n){var u=e.slice(n,s).trim();u&&r.push(u)}n=o[l+1]}if(n<a){var i=e.slice(n,a).trim();i&&r.push(i)}return r.join(" ")}function nr(e,t){if(e.charCodeAt(t)!==ft)return null;let a=t+1,o=e.length,r=!1;e.charCodeAt(a)===Ut&&(a++,r=!0);let n=a,l=e.charCodeAt(a);if(!(l>=ct&&l<=bt||l>=Me&&l<=Oe))return null;for(;a<o&&(e.charCodeAt(a)>=ct&&e.charCodeAt(a)<=bt||e.charCodeAt(a)>=Me&&e.charCodeAt(a)<=Oe||e.charCodeAt(a)>=He&&e.charCodeAt(a)<=_e||e.charCodeAt(a)===Fe);)a++;let s=e.slice(n,a);if(!s)return null;let u=s.charCodeAt(0),i=u>=Me&&u<=Oe||s.indexOf("-")!==-1,c=a;for(;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te||e.charCodeAt(a)===ge);)a++;let d=e.slice(c,a);if(a===c&&a<o){var f=e.charCodeAt(a);if(f!==Ve&&f!==Ut)return null}let p=a,g={},v=!1;for(var L=null;a<o;){let R=e.charCodeAt(a);if(R===Ve){let B=L?RA(e,p,a,L):e.slice(p,a);return{r:v,u:i,f:r,b:B,q:L!=null,n:!1,g:d,attrs:g,end:a+1,tag:s}}if(R===X||R===te||R===ge){a++;continue}if(R===Ut&&a+1<o&&e.charCodeAt(a+1)===Ve){v=a>p&&e.charCodeAt(a-1)===X;let B=L?RA(e,p,a,L):e.slice(p,a);return{r:v,u:i,f:r,b:B,q:L!=null,n:!0,g:d,attrs:g,end:a+2,tag:s}}var m=a,h=e.charCodeAt(a);if(!(h>=ct&&h<=bt||h>=Me&&h<=Oe||h===Ot||h===Ba))return null;for(a++;a<o;){var x=e.charCodeAt(a);if(x>=ct&&x<=bt||x>=Me&&x<=Oe||x>=He&&x<=_e||x===Ot||x===ko||x===Ba||x===Fe)a++;else break}for(var C=e.slice(m,a),I=a;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te);)a++;var b,S;if(e.charCodeAt(a)===Do){for(a++;a<o&&(e.charCodeAt(a)===X||e.charCodeAt(a)===te);)a++;var y=e.charCodeAt(a);if(y===Pl||y===Bl){a++;for(var T=a;a<o&&e.charCodeAt(a)!==y;)a++;if(a>=o)return null;if(b=e.slice(T,a),a++,a<o){var w=e.charCodeAt(a);if(w!==X&&w!==te&&w!==ge&&w!==Ve&&w!==Ut)return null}S=a}else if(y===Nl){var D=1,T=a;for(a++;a<o&&D>0;){var x=e.charCodeAt(a);x===Nl?D++:x===uv&&D--,a++}b=e.slice(T,a),S=a}else{for(var T=a;a<o;){var M=e.charCodeAt(a);if(M===X||M===te||M===Ve||M===ge||M===Pl||M===Bl||M===Do||M===ft||M===lt)break;a++}if(a===T)return null;b=e.slice(T,a),S=a}}else b="",S=I;PB(C,b,i)?(L===null&&(L=[]),L.push(m,S)):g[C]=b}return null}function lo(e){var t=e.indexOf("<");if(t===-1)return e;for(var a="",o=0,r=!1;t!==-1;){var n=nr(e,t);n?(n.q&&(a+=e.slice(o,t)+Zx(n),o=n.end,r=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return r?a+e.slice(o):e}function NB(e,t,a){if(!a.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var o=0,r=e.length,n=!1,l=!1;o<r;){for(var s=e.indexOf(`
24
+ `,o),u=s<0?r:s,i=o,c=0;i<u&&c<4;)if(e.charCodeAt(i)===X)c++,i++;else if(e.charCodeAt(i)===te)c+=4,i++;else break;if(i>=u){n=!1,o=s<0?r:s+1;continue}if(c<4){var d=e.charCodeAt(i);if(d===lt||d===la){for(var f=d,p=0,g=i;g<u&&e.charCodeAt(g)===f;)p++,g++;if(p>=3){var v=!0;if(f===lt){for(var L=g;L<u;L++)if(e.charCodeAt(L)===lt){v=!1;break}}if(v){n=!1;for(var m=s<0?r:s+1;m<r;){for(var h=m,x=0;h<r&&x<4;){var C=e.charCodeAt(h);if(C===X)x++,h++;else if(C===te)x+=4,h++;else break}if(x<4&&h<r&&e.charCodeAt(h)===f){for(var I=0;h<r&&e.charCodeAt(h)===f;)I++,h++;if(I>=p){for(;h<r&&(e.charCodeAt(h)===X||e.charCodeAt(h)===te);)h++;if(h>=r||e.charCodeAt(h)===ge){o=h>=r?r:h+1;break}}}for(;m<r&&e.charCodeAt(m)!==ge;)m++;m<r&&m++}m>=r&&(o=r,l=!0);continue}}}}for(var b=i;b<u&&e.charCodeAt(b)===Ve;){b++,b<u&&e.charCodeAt(b)===X&&b++;for(var S=0;b<u&&S<4;)if(e.charCodeAt(b)===X)S++,b++;else if(e.charCodeAt(b)===te)S+=4,b++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&b<u&&e.charCodeAt(b)===ht&&!(b+1<r&&e.charCodeAt(b+1)===Or)){var y=aT(e,b,t);if(y){o=y,n=!1;continue}}var T=e.charCodeAt(i);if(T===Mo&&c<4)n=!1;else if(c<4&&(T===Fe||T===Ht||T===Ot)){for(var w=i,D=0;w<u;){var M=e.charCodeAt(w);if(M===T)D++;else if(M!==X&&M!==te)break;w++}n=!(D>=3&&w>=u)}else n=!0;o=s<0?r:s+1}return l}function aT(e,t,a){let o=e.length;if(e.charCodeAt(t)!==ht)return null;let r=t+1<o&&e.charCodeAt(t+1)===Or,n=t+1;for(;n<o;){var l=e.charCodeAt(n);if(l===uo){n++;break}if(l===ht)return null;l===$t&&n+1<o&&n++,n++}if(n>o||e.charCodeAt(n-1)!==uo)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let u=Jd(s);if(!u||n>=o||e.charCodeAt(n)!==Ba)return null;n++;let i=!1;for(;n<o;){let R=e.charCodeAt(n);if(R===X||R===te)n++;else if(R===ge&&!i)i=!0,n++;else break}if(r){let R=e.indexOf(`
25
+ `,n),B=R<0?o:R,H=e.slice(n,B).trim();return a[u]={target:H,title:void 0},R<0?o:R+1}var c;if(n<o&&e.charCodeAt(n)===ft){n++;for(var d=n;n<o&&e.charCodeAt(n)!==Ve&&e.charCodeAt(n)!==ge;)e.charCodeAt(n)===$t&&n+1<o&&n++,n++;if(n>=o||e.charCodeAt(n)!==Ve)return null;c=e.slice(d,n),n++;for(var f=e.indexOf(`
26
+ `,n),p=f<0?o:f,g=n;g<p&&(e.charCodeAt(g)===X||e.charCodeAt(g)===te);)g++;if(g<p){if(g===n)return null;var v=e.charCodeAt(g);if(v!==Pl&&v!==Bl&&v!==so)return null}}else{for(var d=n,L=0;n<o;){var l=e.charCodeAt(n);if(l===so)L++;else if(l===Eo){if(L===0)break;L--}else{if(l===X||l===te||l===ge)break;l===$t&&n+1<o&&n++}n++}if(c=e.slice(d,n),!c)return null}for(;n<o&&(e.charCodeAt(n)===X||e.charCodeAt(n)===te);)n++;var m=e.indexOf(`
27
+ `,n),h=m<0?o:m,x,C=!1,I=n,b=n;if(n===h&&n<o)for(b=n+1;b<o&&(e.charCodeAt(b)===X||e.charCodeAt(b)===te);)b++;if(b<o){var S=e.charCodeAt(b);if(S===Pl||S===Bl||S===so){for(var y=S===so?41:S,T=b+1,w=T;T<o;){var D=e.charCodeAt(T);if(D===y){for(var M=T+1;M<o&&(e.charCodeAt(M)===X||e.charCodeAt(M)===te);)M++;(M>=o||e.charCodeAt(M)===ge)&&(x=e.slice(w,T),C=!0,I=M<o?M+1:o);break}if(D===$t&&T+1<o){T+=2;continue}if(D===ge&&T+1<o&&e.charCodeAt(T+1)===ge)break;T++}if(!C&&b===n)return null}}if(C)return a[u]||(a[u]={target:Dn(lu(c)),title:x===void 0?x:Dn(lu(x))}),I;for(;n<h&&(e.charCodeAt(n)===X||e.charCodeAt(n)===te);)n++;return n<h?null:(a[u]||(a[u]={target:Dn(lu(c)),title:x}),m<0?o:m+1)}var Za=new Uint8Array(uB);for(Za[Mo]|=Vo,Za[Ve]|=Vo,Za[Fe]|=Vo|Tn,Za[On]|=Vo,Za[Ht]|=Vo|Tn,Za[Ot]|=Vo|Tn,Za[lt]|=Vo|Tn,Za[la]|=Vo|Tn,Za[ft]|=Vo|Tn,Za[ht]|=Tn,Za[Pa]|=Tn,Za[fa]|=Vo,Kd=He;Kd<=_e;Kd++)Za[Kd]|=Vo;var Kd;function DA(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===$t){t++;continue}if(e.charCodeAt(t)===ht||e.charCodeAt(t)===uo)return!0}return!1}function Jd(e){for(var t=e.length,a=!0,o=t>0,r=0;r<t;r++){var n=e.charCodeAt(r);if(n===X){if(a){o=!1;break}a=!0}else if(n<33||n>126||n>=Me&&n<=Oe){o=!1;break}else a=!1}if(o&&!a)return e;var l=e.replace(/\s+/g," ").trim();return l.indexOf("ẞ")!==-1?l.replace(/\u1E9E/g,"ss").toLowerCase():l.toLowerCase()}function cv(e){return e<up?Za[e]:e===W2?El:0}function lu(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Qx=null,Jx=-1,$d=-1;function st(e,t){if(t>=Jx&&t<=$d&&e===Qx)return $d;var a=e.indexOf(`
28
+ `,t),o=a<0?e.length:a;return Qx=e,Jx=t,$d=o,o}function Ke(e,t){let a=st(e,t);return a<e.length?a+1:a}function Zi(e,t,a){for(;t<a;){let o=e.charCodeAt(t);if(o!==X&&o!==te)break;t++}return t}function kA(e,t){let a=Ke(e,t);for(;a<e.length;){let o=st(e,a);if(Ha(e,a,o))return a;a=Ke(e,a)}return e.length}function Bn(e,t,a,o){let r=0;for(;t+r<a&&e.charCodeAt(t+r)===o;)r++;return r}var nt=0,ot=0;function Wt(e,t,a){for(nt=0,ot=0;t+ot<a;){let o=e.charCodeAt(t+ot);if(o===te)nt+=4-nt%4;else if(o===X)nt++;else break;ot++}}function Ha(e,t,a){return Zi(e,t,a)>=a}function zB(e,t){if(!e)return e;var a=t.v||(t.v=Object.create(null)),o=a[e];if(o===void 0)return a[e]=0,e;for(var r=o+1,n=`${e}-${r}`;a[n]!==void 0;)r++,n=`${e}-${r}`;return a[e]=r,a[n]=0,n}function FB(e,t,a,o){let r=st(e,t);if(Wt(e,t,r),nt>3)return null;let n=t+ot;if(e.charCodeAt(n)!==Mo)return null;let l=Bn(e,n,r,35);if(l<1||l>6||(n+=l,n<r&&e.charCodeAt(n)!==X&&e.charCodeAt(n)!==te))return null;n=Zi(e,n,r);for(var s=r;s>n&&e.charCodeAt(s-1)===X;)s--;for(var u=s;s>n&&e.charCodeAt(s-1)===Mo;)s--;if(s<u)if(s===n||e.charCodeAt(s-1)===X)for(;s>n&&e.charCodeAt(s-1)===X;)s--;else s=u;let i=e.slice(n,s),c=su(i,!1,a,o);return{node:{type:E.heading,level:l,children:c,id:""},end:Ke(e,r)}}function UB(e,t,a){var o=e.charCodeAt(t);if(o!==Do&&o!==Fe)return!1;for(var r=t;r<a&&e.charCodeAt(r)===o;)r++;for(;r<a&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;return r>=a}function kn(e,t){let a=st(e,t);if(Wt(e,t,a),nt>3)return null;let o=t+ot,r=e.charCodeAt(o);if(r!==Fe&&r!==Ht&&r!==Ot)return null;let n=0;for(;o<a;){let l=e.charCodeAt(o);if(l===r)n++;else if(l!==X&&l!==te)return null;o++}return n<3?null:{node:{type:E.breakThematic},end:Ke(e,a)}}var EA=0,MA=0,OA="";function qB(e,t,a){let o=st(e,t);if(Wt(e,t,o),nt>3)return null;let r=nt,n=ot,l=t+ot,s=e.charCodeAt(l);if(s!==lt&&s!==la)return null;let u=Bn(e,l,o,s);if(u<3)return null;l+=u;let i=Zi(e,l,o),c=o;if(s===lt){for(let H=i;H<o;H++)if(e.charCodeAt(H)===lt)return null}for(;c>i&&(e.charCodeAt(c-1)===X||e.charCodeAt(c-1)===te);)c--;let d=e.slice(i,c),f="",p="",g=d.indexOf(" ");g===-1?f=d:(f=d.slice(0,g),p=d.slice(g+1).trim()),f=lu(f);var v;if(p){wA.lastIndex=0;for(var L;(L=wA.exec(p))!=null;)v||(v={}),v[L[1]]=L[2]===void 0?L[3]:L[2]}let m=Ke(e,o),{length:h,length:x}=e;var C;s===EA&&u===MA?C=OA:(C=String.fromCharCode(s).repeat(u),EA=s,MA=u,OA=C);for(var I=m;I<e.length;){var b=e.indexOf(C,I);if(b===-1)break;for(var S=b,y=0;S>0&&y<4&&e.charCodeAt(S-1)===X;)S--,y++;if(y<=3&&(S===0||e.charCodeAt(S-1)===ge)){for(var T=b+u;T<e.length&&e.charCodeAt(T)===s;)T++;var w=st(e,T);if(Ha(e,T,w)){h=S,x=Ke(e,w);break}}I=b+1}var D;if(r===0)D=h>m&&e.charCodeAt(h-1)===ge?e.slice(m,h-1):e.slice(m,h);else{D="";for(var M=m;M<h;){var R=st(e,M);Wt(e,M,R);var B=Math.min(ot,r);D+=`${e.slice(M+B,R)}
29
+ `,M=Ke(e,R)}D.length>0&&D.charCodeAt(D.length-1)===ge&&(D=D.slice(0,-1))}return{node:{type:E.codeBlock,lang:f||void 0,text:D,infoString:p||void 0,attrs:v},end:x}}function BA(e,t,a){for(var o=0,r=t;r<a&&o<4;)e.charCodeAt(r)===te?o+=4-o%4:o++,r++;if(o<4)return"";for(var n="",l=4;l<o;l++)n+=" ";return n+e.slice(r,a)}function HB(e,t){let a=st(e,t);if(Wt(e,t,a),nt<4)return null;let o="",r=t;for(;r<e.length;){let f=st(e,r);if(Wt(e,r,f),Ha(e,r,f)){for(var n=`${BA(e,r,f)}
30
+ `,l=Ke(e,f);l<e.length;){var s=st(e,l);if(Ha(e,l,s)){n+=`${BA(e,l,s)}
31
+ `,l=Ke(e,s);continue}Wt(e,l,s),nt>=4&&(o+=n,r=l);break}if(r!==l)break;continue}if(nt<4)break;let p=0,g=0;var u=0;for(let v=r;v<f&&g<4;v++){if(e.charCodeAt(v)===te){var i=4-g%4;g+i>4&&(u=g+i-4),g+=i}else g++;p++}var c="";if(u>0)for(var d=0;d<u;d++)c+=" ";c+=e.slice(r+p,f),o+=`${c}
32
+ `,r=Ke(e,f)}for(;o.length>0&&o.charCodeAt(o.length-1)===ge;)o=o.slice(0,-1);return o?{node:{type:E.codeBlock,lang:void 0,text:o,infoString:void 0,attrs:void 0},end:r}:null}function _B(e,t,a,o){let r=st(e,t);if(Wt(e,t,r),nt>3)return null;let n=t+ot;if(e.charCodeAt(n)!==Ve)return null;let l="",s=t,u,i=!1,c=!1,d=!1;for(;s<e.length;){let k=st(e,s);Wt(e,s,k);let _=s+ot;if(e.charCodeAt(_)===Ve){let le=_+1;var f=nt+1,p=!1;if(le<k){var g=e.charCodeAt(le);g===X?(le++,f++,p=!0):g===te&&(p=!0)}for(var v="",L=!1,m=le;m<k;m++)if(e.charCodeAt(m)===te){L=!0;break}if(L){var h=f;if(p&&le<k&&e.charCodeAt(le)===te){for(var x=4-h%4,C=0;C<x-1;C++)v+=" ";h+=x,le++}for(var I=le;I<k;I++)if(e.charCodeAt(I)===te){for(var b=4-h%4,S=0;S<b;S++)v+=" ";h+=b}else v+=e[I],h++}else v=e.slice(le,k);if(!(l||u)){let V=v.match(/^\[!([A-Za-z]+)\]\s*$/);if(V){u=V[1].toUpperCase(),s=Ke(e,k);continue}}l+=`${v}
33
+ `;var y=v.trimStart();y.startsWith("```")||y.startsWith("~~~")?d=!d:(v.startsWith(" ")||v.startsWith("\t"))&&(d=!0),c=y.length>0,s=Ke(e,k)}else if(l&&!Ha(e,s,k)&&c){if(nt<4){var T=s+ot,w=T<k?e.charCodeAt(T):0;if(w===Mo||w===Ve||w===lt||w===la||w===ft||(w===Fe||w===Ht||w===Ot)&&kn(e,s)||(w===Fe||w===Ht||w===On)&&T+1<k&&(e.charCodeAt(T+1)===X||e.charCodeAt(T+1)===te))break;if(w>=He&&w<=_e){for(var D=T;D<k&&e.charCodeAt(D)>=He&&e.charCodeAt(D)<=_e;)D++;if(D<k&&(e.charCodeAt(D)===ko||e.charCodeAt(D)===Eo))break}}if(d)break;l+=`${e.slice(s,k)}
34
+ `,i=!0,s=Ke(e,k)}else break}if(!(l||u))return null;var{inBlockQuote:M,l:R}=a;a.inBlockQuote=!0,i&&(a.l=!0);var B=a.i;a.i=B||!Ha(e,s,e.length);let H=En(l||"",a,o);return a.i=B,a.inBlockQuote=M,a.l=R,{node:{type:E.blockQuote,children:H,alert:u||void 0},end:s}}function oT(e,t,a){for(var o=0,r=t;r<a;r++)e.charCodeAt(r)===te?o+=4-o%4:o++;return o}function wn(e,t,a){if(Wt(e,t,a),nt>3)return null;var o=t+ot;if(o>=a)return null;var r=e.charCodeAt(o),n=nt,l=o,s=o;if(r===Fe||r===Ht||r===On){if(l=o+1,l<a&&e.charCodeAt(l)!==X&&e.charCodeAt(l)!==te&&e.charCodeAt(l)!==ge)return null}else if(r>=He&&r<=_e){for(;s<a&&s-o<9;){var u=e.charCodeAt(s);if(u<He||u>_e)break;s++}if(s>o&&s<a){var i=e.charCodeAt(s);if(i===ko||i===Eo){if(l=s+1,l<a&&e.charCodeAt(l)!==X&&e.charCodeAt(l)!==te&&e.charCodeAt(l)!==ge)return null}else return null}else return null}else return null;var c=l,d=oT(e,t,l),f=0,p=c,g=d;if(c>=a)return{ordered:r>=He&&r<=_e,marker:r>=He&&r<=_e?e[s]:e[o],start:r>=He&&r<=_e?Number.parseInt(e.slice(o,s),10):void 0,contentStart:c,contentCol:d+1,markerCol:n,isEmpty:!0};for(;p<a&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te);){if(e.charCodeAt(p)===te){var v=4-g%4;g+=v}else g++;p++,f++}var L=p>=a,m=g-d;return L||m>4?(g=d+1,p=c+1,f=1):f===0&&(g=d+1,p=c,f=1),{ordered:r>=He&&r<=_e,marker:r>=He&&r<=_e?e[s]:e[o],start:r>=He&&r<=_e?Number.parseInt(e.slice(o,s),10):void 0,contentStart:p,contentCol:g,markerCol:n,isEmpty:L}}var ru=0;function PA(e,t,a,o){var r=0,n=t;for(ru=0;n<a&&r<o;){var l=e.charCodeAt(n);if(l===te){var s=4-r%4;if(r+s>o){ru=r+s-o,n++,r=o;break}r+=s}else if(l===X)r++;else break;n++}return n}function NA(e,t,a,o){var r=st(e,t),n=wn(e,t,r);if(!n)return null;var l=[],s=t,u=n.contentCol,i="",c=n.isEmpty,d=!1,f=!1;if(!n.isEmpty){for(var p=!1,g=n.contentStart;g<r;g++)if(e.charCodeAt(g)===te){p=!0;break}if(p){var v="",L=oT(e,t,n.contentStart),m=L-n.contentCol;if(m>0)for(var h=0;h<m;h++)v+=" ";for(var x=n.contentStart;x<r;x++)if(e.charCodeAt(x)===te){for(var C=4-L%4,I=0;I<C;I++)v+=" ";L+=C}else v+=e[x],L++;i=`${v}
35
+ `}else i=`${e.slice(n.contentStart,r)}
36
+ `}for(s=Ke(e,r);s<e.length;){var b=st(e,s);Wt(e,s,b);var S=e.charCodeAt(s+ot);if(nt<u&&(S===Fe||S===Ht||S===Ot)&&nt<=3&&kn(e,s))break;var y=wn(e,s,b);if(y&&y.ordered===n.ordered&&y.marker===n.marker&&y.markerCol<u){l.push({contentCol:u,raw:i,hasBlankAfter:d,isEmpty:c}),d&&(f=!0),u=y.contentCol,c=y.isEmpty,d=!1,i=y.isEmpty?"":`${e.slice(y.contentStart,b)}
37
+ `,s=Ke(e,b);continue}if(Ha(e,s,b)){var T=PA(e,s,b,u);if(ru>0||T<b){for(var w="",D=0;D<ru;D++)w+=" ";i+=`${w+e.slice(T,b)}
38
+ `}else i+=`
39
+ `;s=Ke(e,b);for(var M=!1,R=0;R<i.length;R++){var B=i.charCodeAt(R);if(B!==ge&&B!==Mn&&B!==X&&B!==te){M=!0;break}}if(c&&!M)if(s<e.length){var H=st(e,s),k=wn(e,s,H);if(!k||k.ordered!==n.ordered||k.marker!==n.marker)break;d=!0}else break;if(s<e.length){var _=st(e,s);Wt(e,s,_);var le=e.charCodeAt(s+ot);if((le===Fe||le===Ht||le===Ot)&&nt<=3&&kn(e,s))break;var V=wn(e,s,_);if(V&&V.ordered===n.ordered&&V.marker===n.marker&&V.markerCol<u){d=!0;continue}if(!Ha(e,s,_)&&nt<u)break}continue}if(nt>=u){var P=PA(e,s,b,u);if(ru>0){for(var fe="",Re=u,Te=0;Te<ru;Te++)fe+=" ",Re++;for(var U=P;U<b;U++)if(e.charCodeAt(U)===te){for(var Y=4-Re%4,K=0;K<Y;K++)fe+=" ";Re+=Y}else fe+=e[U],Re++;i+=`${fe}
40
+ `}else i+=`${e.slice(P,b)}
41
+ `;s=Ke(e,b);continue}for(var ae=!1,ue=0;ue<i.length;ue++){var ee=i.charCodeAt(ue);if(ee!==ge&&ee!==Mn&&ee!==X&&ee!==te){ae=!0;break}}if(!d&&ae&&!c){var re=s+ot,ve=e.charCodeAt(re),ie=ve===Mo||ve===Ve||ve===ft||ve===lt||ve===la||(ve===Fe||ve===Ht||ve===Ot||ve===On)&&(kn(e,s)!=null||wn(e,s,b)!=null)||ve>=He&&ve<=_e&&wn(e,s,b)!=null;if(!ie){i+=`\x1E${e.slice(re,b)}
42
+ `,s=Ke(e,b);continue}}break}if(l.push({contentCol:u,raw:i,hasBlankAfter:d,isEmpty:c}),l.length===0)return null;var Z=f;if(!Z)for(var xe=0;xe<l.length;xe++){if(l[xe].hasBlankAfter&&xe<l.length-1){Z=!0;break}if(!l[xe].isEmpty){for(var Ie=l[xe].raw,Ae=Ie.length,ne=0,ke=!1,oe=!1,Se=!1,Pe=!1,Xe=0,G=0,he=-1;ne<Ae;){var me=Ie.indexOf(`
43
+ `,ne);if(me<0&&(me=Ae),Pe){Wt(Ie,ne,me);for(var q=Ie.slice(ne+ot,me),F=0;F<q.length&&q.charCodeAt(F)===Xe;)F++;F>=G&&q.slice(F).trim()===""&&(Pe=!1),ne=me<Ae?me+1:Ae;continue}if(Ha(Ie,ne,me)){he>=0?Se=!0:ke&&(oe=!0),ne=me<Ae?me+1:Ae;continue}if(Wt(Ie,ne,me),he>=0){if(nt>=he){ne=me<Ae?me+1:Ae;continue}var Q=wn(Ie,ne,me);if(Q&&Q.markerCol<he&&Q.contentCol<=he){ne=me<Ae?me+1:Ae;continue}if(Q){ne=me<Ae?me+1:Ae;continue}he=-1,Se&&(oe=!0,Se=!1)}var N=Ie.slice(ne+ot,me),Bt=N.charCodeAt(0);if((Bt===lt||Bt===la)&&nt<=3){for(var De=0;De<N.length&&N.charCodeAt(De)===Bt;)De++;if(De>=3){if(oe&&ke){Z=!0;break}Pe=!0,Xe=Bt,G=De,ke=!0,ne=me<Ae?me+1:Ae;continue}}var gt=nt<=3?wn(Ie,ne,me):null;if(gt&&ke){if(oe){Z=!0;break}he=gt.contentCol,Se=!1,ne=me<Ae?me+1:Ae,ke=!0;continue}if(oe){Z=!0;break}ke=!0,ne=me<Ae?me+1:Ae}if(Z)break}}for(var be=[],tt=0;tt<l.length;tt++){for(var At=l[tt],St=At.raw,Pt=St.length;Pt>0&&St.charCodeAt(Pt-1)===ge;)Pt--;var Tt=Pt<St.length?St.slice(0,Pt):St,za=null;if(Tt.length>=3&&Tt.charCodeAt(0)===ht){var va=Tt[1];(va===" "||va==="x"||va==="X")&&Tt.charCodeAt(2)===uo&&(za={type:E.gfmTask,completed:va==="x"||va==="X"},Tt=Tt.slice(3))}var xt;if(At.isEmpty&&Tt.trim()==="")xt=[];else if(Z){var vt=a.inList;a.inList=!0;var ea=a.i;a.i=ea||tt!==l.length-1,xt=En(Tt,a,o),a.i=ea,a.inList=vt}else{var qt=a.inList;a.inList=!0;var Ta=a.i;if(a.i=Ta||tt!==l.length-1,xt=En(Tt,a,o),a.i=Ta,a.inList=qt,xt.length===1&&xt[0].type===E.paragraph)xt=xt[0].children;else if(a.p){var Kt=[];a.p.push({src:xt,dest:Kt,unwrap:!0}),xt=Kt}else{for(var Nt=[],wt=0;wt<xt.length;wt++)if(xt[wt].type===E.paragraph)for(var Ca=xt[wt].children,zt=0;zt<Ca.length;zt++)Nt.push(Ca[zt]);else Nt.push(xt[wt]);xt=Nt}}if(za){var wa=[za,{type:E.text,text:" "}];if(a.p)a.p.push({src:xt,dest:wa,unwrap:!1});else for(var _t=0;_t<xt.length;_t++)wa.push(xt[_t]);be.push(wa)}else be.push(xt)}return{node:{type:n.ordered?E.orderedList:E.unorderedList,start:n.ordered?n.start:void 0,items:be},end:s}}var rp=new Set(["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"]);function rr(e,t,a){let o={};for(let[l,s]of Object.entries(e)){let u=l.toLowerCase();if(u==="style"&&typeof s=="string"){let i={},c=[],d=0,f=0;for(let g=0;g<s.length;g++){let v=s.charCodeAt(g);v===so?d++:v===Eo?d--:v===ap&&d===0&&(c.push(s.slice(f,g)),f=g+1)}f<s.length&&c.push(s.slice(f));let p=!1;c.forEach((g)=>{let v=g.indexOf(":");if(v===-1)return;let L=g.slice(0,v).trim(),m=g.slice(v+1).trim();if(L&&m){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(m)){p=!0;return}let h=L.indexOf("-")===-1?L:L.replace(/-([a-z])/g,(x,C)=>C.toUpperCase());i[h]=m}}),!p&&Object.keys(i).length>0&&(o[l]=i)}else if((u==="href"||u==="src")&&a?.sanitizer){let i=a.sanitizer(s,t,u);i!=null&&(o[l]=i)}else if(s==="")o[l]=!0;else if(s.length>=2&&s.charCodeAt(0)===Nl&&s.charCodeAt(s.length-1)===uv){var r=s.slice(1,-1);if(r.length>0){var n=r.charCodeAt(0);if(n===ht||n===Nl)try{o[l]=JSON.parse(r);continue}catch{}}if(r==="true"){o[l]=!0;continue}if(r==="false"){o[l]=!1;continue}if(a?.evalUnserializableExpressions)try{o[l]=(0,eval)(`(${r})`);continue}catch{}o[l]=r}else o[l]=s}return o}function Rn(e,t,a){let o=t.length;if(o===0)return a;var r=t.charCodeAt(0),n=r>=Me&&r<=Oe||r>=ct&&r<=bt;if(!n){for(var l=String.fromCharCode(r),s=e.length-o,u=a;u<=s;){var i=e.indexOf(l,u);if(i===-1||i>s)return-1;for(var c=!0,d=1;d<o;d++){var f=e.charCodeAt(i+d),p=t.charCodeAt(d);if(f>=Me&&f<=Oe&&(f+=Go),p>=Me&&p<=Oe&&(p+=Go),f!==p){c=!1;break}}if(c)return i;u=i+1}return-1}r>=Me&&r<=Oe&&(r+=Go);for(let v=a;v<=e.length-o;v++){var g=e.charCodeAt(v);if(g>=Me&&g<=Oe&&(g+=Go),g!==r)continue;let L=!0;for(let m=1;m<o;m++){let h=e.charCodeAt(v+m),x=t.charCodeAt(m);if(h>=Me&&h<=Oe&&(h+=Go),x>=Me&&x<=Oe&&(x+=Go),h!==x){L=!1;break}}if(L)return v}return-1}function VB(e,t,a){let o=t.length;var r=t.charCodeAt(0);r>=Me&&r<=Oe&&(r+=Go);for(let l=Math.min(a,e.length-o);l>=0;l--){var n=e.charCodeAt(l);if(n>=Me&&n<=Oe&&(n+=Go),n!==r)continue;let s=!0;for(let u=1;u<o;u++){let i=e.charCodeAt(l+u),c=t.charCodeAt(u);if(i>=Me&&i<=Oe&&(i+=Go),c>=Me&&c<=Oe&&(c+=Go),i!==c){s=!1;break}}if(s)return l}return-1}var np=-1;function $x(e,t,a){let o=a.toLowerCase(),r=`<${o}`,n=`</${o}`,l=1,s=t,u=e.length;for(np=-1;s<u&&l>0;){let d=Rn(e,r,s),f=Rn(e,n,s);if(f===-1)return-1;if(d!==-1&&d<f){let p=nr(e,d);p?(p.tag.toLowerCase()===o&&!p.f&&!p.n&&!Qi(p.tag)&&l++,s=p.end):s=d+1}else{var i=f+n.length,c=i<u?e.charCodeAt(i):62;if((c===Ve||c===X||c===te||c===ge)&&(l--,l===0)){np=f;let p=f+n.length;for(;p<u&&e.charCodeAt(p)!==Ve;)p++;return p+1}s=f+1}}return-1}function rT(e,t,a,o){if(o.ignoreHTMLBlocks||o.disableParsingRawHTML)return null;var r=st(e,t);if(Wt(e,t,r),nt>3&&!a.inHTML)return null;var n=t+ot;if(e.charCodeAt(n)!==ft)return null;var l=e.indexOf(">",n+1);if(l!==-1&&l<r){var s=e.slice(n+1,l);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var u=GB(e,n);if(u>=1&&u<=5){var i=e.length;if(u===1){for(var c=e.length,d=0;d<Kx.length;d++){var f=Rn(e,`</${Kx[d]}>`,n);f>=0&&f<c&&(c=f)}if(c<e.length){var p=e.indexOf(">",c);i=p>=0?Ke(e,p+1):e.length}}else{var g=u===2?"-->":u===3?"?>":u===4?">":"]]>",v=e.indexOf(g,n);v>=0&&(i=Ke(e,v+g.length))}var L=e.slice(n,i);if(u>=2)return{node:{type:E.htmlComment,text:L,s:!1,raw:!0},end:i};var m="div",h=L.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);h&&(m=h[1]);var x=nr(e,n),C={},I;x&&!x.f&&(C=rr(x.attrs,m,o),I=x.g+x.b);var b=[],S=m.toLowerCase(),y=`</${S}`,T=Rn(L,y,0),w="",D,M,R;if(x?.f){R=L.slice(0,x.end-n);for(var B=L.slice(x.end-n);B.length>0&&B.charCodeAt(B.length-1)===ge;)B=B.slice(0,-1);B&&(M=lo(B))}else if(x&&!x.f){var H=x.end-n;if(T===-1){for(var k=L;k.length>0&&k.charCodeAt(k.length-1)===ge;)k=k.slice(0,-1);D=lo(k)}else{var _=H;L.charCodeAt(_)===ge&&_++;for(var le=T;le>_;){var V=L.charCodeAt(le-1);if(V!==X&&V!==te&&V!==ge&&V!==Mn)break;le--}var P=L.slice(_,le);P&&(M=lo(P));for(var fe=L.slice(T);fe.length>0&&fe.charCodeAt(fe.length-1)===ge;)fe=fe.slice(0,-1);R=lo(fe),w=L.slice(H,T).trim()}}var Re=x?x.f:!1;return{node:{type:E.htmlBlock,tag:m,attrs:C,b:I,children:b,e:M,h:R,j:D,text:w,c:!0,a:Re},end:i}}if(u===6||u===7){var Te=kA(e,t),U=Te<e.length?Te:e.length,Y=e.slice(n,U),K=Te<e.length?Ke(e,Te):e.length,ae=nr(e,n);if(ae){var ue=ae.tag,ee=ue.toLowerCase(),re=ae.f;if(re){var ve=e.slice(ae.end,U);return{node:{type:E.htmlBlock,tag:ue,attrs:{},children:[],h:e.slice(n,ae.end),e:ve?lo(ve):void 0,text:ve,c:!0,a:!0},end:K}}if(ae.n||Qi(ue))return{node:{type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:[],text:"",c:!1,a:!1},end:ae.end<e.length&&e.charCodeAt(ae.end)===ge?ae.end+1:ae.end};var ie=a.d||0,Z=e.slice(n,U),xe=-1,Ie=-1,Ae=!1;if(ie<10){for(var ne=`</${ee}`,ke=ae.end-n,oe=1,Se=ke;Se<Z.length&&oe>0;){var Pe=Rn(Z,`<${ee}`,Se),Xe=Rn(Z,ne,Se);if(Xe===-1)break;if(Pe!==-1&&Pe<Xe){var G=Pe+ee.length+1;if(G<Z.length){var he=Z.charCodeAt(G);(he===X||he===te||he===ge||he===Ve||he===Ut)&&oe++}Se=Pe+1}else{var me=Xe+ne.length;if(me<Z.length){var q=Z.charCodeAt(me);if((q===Ve||q===X||q===te||q===ge)&&(oe--,oe===0)){xe=Xe;for(var F=me;F<Z.length&&Z.charCodeAt(F)!==Ve;)F++;Ie=F+1;break}}else if(oe--,oe===0){xe=Xe,Ie=Z.length;break}Se=Xe+1}}if(xe===-1&&!ae.f&&(u===6||ae.u)){var Q=$x(e,ae.end,ee);if(Q!==-1){for(var N=np,Bt=ae.end,De=!1,gt=!1,be=!1,tt=0,At=!1,St=!1,Pt=Bt;Pt<N;){var Tt=e.charCodeAt(Pt);if(Tt===ge)St&&(De=!0),At||tt++,St=!0,Pt++;else if(Tt===X||Tt===te)Pt++;else{if(!At&&(At=!0,tt>=2&&Tt===ft)){be=!0;break}if(St=!1,Tt===ft){var za=e.charCodeAt(Pt+1)|32;if((za===jx||za===WA||za===nu)&&(AA.lastIndex=Pt,AA.test(e))){gt=!0;break}}Pt++}}if(De&&!be&&!gt){var va=st(e,Q);U=va,K=Ke(e,va),Z=e.slice(n,U),Y=e.slice(n,U),xe=N-n,Ie=Q-n,Ae=!0}}}}var xt=ae.b.indexOf(`
44
+ `)!==-1||ae.g.indexOf(`
45
+ `)!==-1,vt=!1;if(xe!==-1){var ea=Z.slice(Ie).trim();vt=ea.length===0}var qt=!1,Ta=U,Kt=K;if(xe!==-1){var Nt=n+Ie,wt=st(e,Nt-1);if(Nt<wt){for(var Ca=Nt;Ca<wt&&(e.charCodeAt(Ca)===X||e.charCodeAt(Ca)===te);)Ca++;if(Ca<wt&&e.charCodeAt(Ca)===ft){var zt=nr(e,Ca);zt&&!zt.f&&(qt=!0,Ta=Nt,Kt=Nt,vt=!0)}}if(!qt){var wa=Ke(e,wt);if(wa<U){for(var _t=wa;_t<U&&(e.charCodeAt(_t)===X||e.charCodeAt(_t)===te);)_t++;if(_t<U&&e.charCodeAt(_t)===ft){var Bo=nr(e,_t);Bo&&(qt=!0,Ta=wt,Kt=wa,vt=!0)}}}if(!qt&&a.inHTML){qt=!0,Ta=wt,Kt=Ke(e,wt);var Nn=e.slice(Nt,wt).trim();vt=Nn.length===0}}var co=[],Vt="";if(xe!==-1){Vt=Z.slice(ae.end-n,xe);var fo=Vt.trim();if(fo){var{inline:vu,inHTML:Qw,d:Jw}=a;a.inHTML=!0,a.d=ie+1;var $w=ee==="p";if($w)a.inline=!0,co=su(fo,!1,a,o);else{var Pv=Vt.indexOf(`
46
+
47
+ `)!==-1,Nv=qx.test(fo),Ep=TA.test(fo),eR=Pv||Nv||a.inHTML&&Ep,tR=Vt.length>=2&&Vt.charCodeAt(0)===ge&&Vt.charCodeAt(Vt.length-1)===ge&&!Pv;tR&&!Nv&&!Ep?co=[{type:E.text,text:fo}]:eR||Ep?(a.inline=!1,co=En(Vt,a,o)):(a.inline=!0,co=su(fo,!1,a,o))}a.inline=vu,a.inHTML=Qw,a.d=Jw}}var zv=!1;if(u===6&&xe!==-1&&!a.inHTML&&!xt){var aR=/<[a-zA-Z][^>]*>/.test(Vt),oR=Vt.indexOf(`
48
+
49
+ `)!==-1||qx.test(Vt);aR&&!oR&&(zv=!0)}var rR=!Ae&&(a.inHTML||u===7||xt||!vt||zv);if(rR){var Cu,Yo,Fv=!1;if(xe!==-1&&qt){var Uv=!1;if(a.inHTML&&Ie<Z.length){for(var fc=Ie;fc<Z.length&&Z.charCodeAt(fc)!==ge;)fc++;var Mp=Z.slice(Ie,fc).trim();Uv=Mp.length>1&&Mp.charCodeAt(0)===ft&&Mp.charCodeAt(1)!==Ut}Yo=Uv?Z.slice(ae.end-n):Vt,Fv=!0}else(u===7||a.inHTML)&&xe!==-1?(Yo=Z.slice(ae.end-n),Yo.charCodeAt(0)===ge&&(Yo=Yo.slice(1))):qt?Cu=e.slice(n,Ta):xt?Cu=Y:(Yo=Z.slice(ae.end-n),Yo.charCodeAt(0)===ge&&(Yo=Yo.slice(1)));var qv=Cu!==void 0,Op=lo(Cu===void 0?Yo||"":Cu),Hv={type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:co,e:qv?void 0:Op,j:qv?Op:void 0,text:Op,c:!0,a:!1};return Fv&&(Hv.x=!0),{node:Hv,end:Kt}}var _v=lo(Vt);return{node:{type:E.htmlBlock,tag:ue,attrs:rr(ae.attrs,ue,o),b:ae.g+ae.b,children:co,e:Ae?void 0:_v,text:_v,c:!1,a:!1},end:Kt}}var dc=Y.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),nR=dc?dc[2]:"div",Bp=dc?dc[1]==="/":!1,Pp,Vv,Gv,pc="";if(Bp){var Np=Y.indexOf(">");Np===-1?Pp=Y:(Pp=Y.slice(0,Np+1),pc=Y.slice(Np+1),pc&&(Vv=lo(pc)))}else Gv=lo(Y);return{node:{type:E.htmlBlock,tag:nR,attrs:{},children:[],e:Vv,h:Pp,j:Gv,text:Bp?pc:Y,c:!0,a:Bp},end:K}}var Ra=nr(e,n);if(!Ra)return null;var Br=Ra.tag,zp=Br.toLowerCase(),Xv=Br.charCodeAt(0),mc=Xv>=Me&&Xv<=Oe;if(!(mc||rp.has(zp)||Ji.has(zp)||zp.includes("-")))return null;if(Ra.f)return{node:{type:E.htmlSelfClosing,tag:Br,attrs:{},h:e.slice(n,Ra.end),a:!0},end:Ra.end};var zn=$x(e,Ra.end,Br),yu=[];if(zn!==-1){var lR=np,hc=e.slice(Ra.end,lR),gc=hc.trim();if(gc){var sR=hc.indexOf(`
50
+
51
+ `)!==-1,uR=qx.test(gc),iR=TA.test(gc),{inline:cR,inHTML:fR,d:dR}=a;a.inHTML=!0,a.d=(a.d||0)+1,sR||uR||iR?(a.inline=!1,yu=En(hc,a,o)):(a.inline=!0,yu=su(gc,!1,a,o)),a.inline=cR,a.inHTML=fR,a.d=dR}var pR=st(e,zn),mR=e.slice(zn,pR).trim(),Fp=mR?zn:Ke(e,zn),jv=mc?e.slice(n,zn):e.slice(n,Fp),Sz=mc?zn:Fp;return{node:{type:E.htmlBlock,tag:Br,attrs:rr(Ra.attrs,Br,o),b:Ra.g+Ra.b,children:yu,j:lo(jv),text:mc?hc:jv,c:!0,a:!1},end:Fp}}var bu=kA(e,Ra.end),hR=bu<e.length?Ke(e,bu):bu,Up=e.slice(Ra.end,bu);if(Up.trim()){var{inline:gR,inHTML:xR,d:vR}=a;a.inline=!1,a.inHTML=!0,a.d=(a.d||0)+1,yu=En(Up,a,o),a.inline=gR,a.inHTML=xR,a.d=vR}var CR=e.slice(Ra.end,bu);return{node:{type:E.htmlBlock,tag:Br,attrs:rr(Ra.attrs,Br,o),b:Ra.g+Ra.b,children:yu,e:lo(CR),text:Up,c:!0,a:!1},end:hR}}function GB(e,t){if(e.charCodeAt(t)!==ft)return 0;var a=t+1,o=e.length;if(e.charCodeAt(a)===Pa&&e.charCodeAt(a+1)===Fe&&e.charCodeAt(a+2)===Fe)return 2;if(e.charCodeAt(a)===uu)return 3;if(e.charCodeAt(a)===Pa){var r=e.charCodeAt(a+1);if(r>=Me&&r<=Oe)return 4;if(e.slice(a+1,a+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(a)===Ut,l=n?a+1:a,s=l;s<o;){var u=e.charCodeAt(s);if(u>=Me&&u<=Oe||u>=ct&&u<=bt||u>=He&&u<=_e||u===Fe)s++;else break}if(s===l)return 0;var i=e.slice(l,s);if(Ji.has(i.toLowerCase())){if(n)return 0;var c=e.charCodeAt(s);return c===X||c===te||c===Ve||c===ge||s>=o?1:0}if(rp.has(i.toLowerCase())){if(n){for(var d=s;d<o&&(e.charCodeAt(d)===X||e.charCodeAt(d)===te);)d++;return d<o&&e.charCodeAt(d)===Ve?6:0}var f=s<o?e.charCodeAt(s):-1;return f===X||f===te||f===Ve||f===ge||f===Ut||f===-1?6:0}if(n){for(var p=s;p<o&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te);)p++;if(p<o&&e.charCodeAt(p)===Ve){var g=st(e,t),v=e.slice(p+1,g).trim();if(v==="")return 7}}else{var L=st(e,t),m=nr(e,t);if(m&&m.end<=L){var h=e.slice(m.end,L).trim();if(h==="")return 7}}return 0}function zA(e,t,a){for(var o=0,r=e.length;o<r&&(e.charCodeAt(o)===X||e.charCodeAt(o)===te);)o++;for(;r>o&&(e.charCodeAt(r-1)===X||e.charCodeAt(r-1)===te);)r--;o<r&&e.charCodeAt(o)===fa&&o++,r>o&&e.charCodeAt(r-1)===fa&&(r-2<o||e.charCodeAt(r-2)!==$t)&&r--;for(var n=[],l=o,s=!1,u=[],i=o;i<r;){var c=e.charCodeAt(i);if(c===$t&&i+1<r){e.charCodeAt(i+1)===fa?(s||(s=!0,u=[]),u.push(e.slice(l,i)),u.push("|"),i+=2,l=i):i+=2;continue}if(c===lt){for(var d=0;i<r&&e.charCodeAt(i)===lt;)d++,i++;for(var f=!1;i<r&&!f;){for(var p=0;i<r&&e.charCodeAt(i)===lt;)p++,i++;p===d?f=!0:p===0&&i++}continue}if(c===fa){var g=s?(u.push(e.slice(l,i)),u.join("")):e.slice(l,i);n.push(g.trim()),i++,l=i,s=!1,u=[];continue}i++}var v=s?(u.push(e.slice(l,r)),u.join("")):e.slice(l,r);return n.push(v.trim()),n.map((L)=>{var m=L.indexOf("\\|")===-1?L:L.replace(/\\\|/g,"|");return m?su(m,!1,t,a):[]})}function FA(e,t,a,o){let r=st(e,t);var n=e.indexOf("|",t);if(n<0||n>=r)return null;let l=Ke(e,r);if(l>=e.length)return null;let s=st(e,l);if(!tT(e,l,s))return null;let u=e.slice(t,r),i=e.slice(l,s);for(var c=[],d=0,f=i.length;d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;for(d<f&&i.charCodeAt(d)===fa&&d++;d<f;){for(;d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;if(d>=f||i.charCodeAt(d)===fa)break;var p=i.charCodeAt(d)===Ba;for(p&&d++;d<f&&i.charCodeAt(d)===Fe;)d++;var g=d<f&&i.charCodeAt(d)===Ba;for(g&&d++,c.push(p&&g?"center":g?"right":p?"left":null);d<f&&(i.charCodeAt(d)===X||i.charCodeAt(d)===te);)d++;d<f&&i.charCodeAt(d)===fa&&d++}let v=zA(u,a,o);if(c.length!==v.length)return null;let L=[],m=Ke(e,s);for(;m<e.length;){let S=st(e,m),y=e.slice(m,S);if(Ha(e,m,S))break;if(Wt(e,m,S),nt<4){var h=e.charCodeAt(m+ot);if(h===Ve||h===Mo||(h===Fe||h===Ht||h===Ot)&&kn(e,m))break;if(h===lt||h===la){for(var x=m+ot,C=0;x<S&&e.charCodeAt(x)===h;)C++,x++;if(C>=3)break}}L.push(zA(y,a,o)),m=Ke(e,S)}if(o.optimizeForStreaming&&L.length===0)return null;for(var I=v.length,b=0;b<L.length;b++)if(L[b].length<I)for(;L[b].length<I;)L[b].push([]);else L[b].length>I&&(L[b].length=I);return{node:{type:E.table,header:v,cells:L,align:c},end:m}}function XB(e,t,a){var o=st(e,t);if(Wt(e,t,o),nt>3)return null;var r=t+ot;if(e.charCodeAt(r)!==ht)return null;if(r+1<e.length&&e.charCodeAt(r+1)===Or){var n=jB(e,r,a);return n||null}a.refs||(a.refs=Object.create(null));var l=aT(e,r,a.refs);return l===null?null:{node:{type:E.refCollection},end:l}}function jB(e,t,a){var o=e.length;if(e.charCodeAt(t)!==ht||t+1>=o||e.charCodeAt(t+1)!==Or)return null;for(var r=t+2,n=r;r<o&&e.charCodeAt(r)!==uo;){if(e.charCodeAt(r)===ge)return null;r++}if(r>=o)return null;var l=`^${e.slice(n,r)}`.toLowerCase();if(r++,r>=o||e.charCodeAt(r)!==Ba)return null;for(r++;r<o&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;if(r<o&&e.charCodeAt(r)===ge)for(r++;r<o&&(e.charCodeAt(r)===X||e.charCodeAt(r)===te);)r++;var s=e.indexOf(`
52
+ `,r);s<0&&(s=o);for(var u=e.slice(r,s).trim(),i=s<o?s+1:o;i<o;){var c=st(e,i);if(Wt(e,i,c),nt>=2&&!Ha(e,i,c))u+=`
53
+ ${e.slice(i,c)}`,i=Ke(e,c);else if(Ha(e,i,c)){var d=Ke(e,c);if(d<o){var f=st(e,d);if(Wt(e,d,f),nt>=2){u+=`
54
+ `,i=Ke(e,c);continue}}break}else break}var p=a.refs;return p&&!p[l]&&(p[l]={target:u,title:void 0}),{node:{type:E.footnote},end:i}}function YB(e,t,a,o){let r=t,n=0,l=0,s=-1;for(;r<e.length;){let R=s>=0?s:st(e,r);if(s=-1,Ha(e,r,R))break;if(Wt(e,r,R),nt<4&&l>0&&!a.l){let H=e.charCodeAt(r+ot);if(H===Do||H===Fe){let k=r+ot;for(;k<R&&e.charCodeAt(k)===H;)k++;for(;k<R&&(e.charCodeAt(k)===X||e.charCodeAt(k)===te);)k++;if(k>=R){n=H===Do?1:2,r=Ke(e,R);break}}}l=R;let B=Ke(e,R);if(B<e.length){if(e.charCodeAt(B)===Yx){var u=st(e,B);r=Ke(e,u),l=u;continue}let H=st(e,B);if(s=H,Wt(e,B,H),nt<4){let k=e.charCodeAt(B+ot);if(k===Ve){r=B;break}if(k===Mo){for(var i=B+ot,c=0;i<H&&e.charCodeAt(i)===Mo&&c<=6;)c++,i++;if(c>=1&&c<=6&&(i>=H||e.charCodeAt(i)===X||e.charCodeAt(i)===te)){r=B;break}}if(k===lt||k===la){for(var d=B+ot,f=0;d<H&&e.charCodeAt(d)===k;)f++,d++;if(f>=3){r=B;break}}if(k===ft){var p=B+ot+1,g=p<H?e.charCodeAt(p):0,v=g===Pa||g===uu;if(!v&&g===Ut){for(var L=p+1,m=L;m<H&&(e.charCodeAt(m)>=Me&&e.charCodeAt(m)<=Oe||e.charCodeAt(m)>=ct&&e.charCodeAt(m)<=bt||e.charCodeAt(m)>=He&&e.charCodeAt(m)<=_e||e.charCodeAt(m)===Fe);)m++;m>L&&(v=rp.has(e.slice(L,m).toLowerCase()))}else if(!v){for(var h=p;h<H&&(e.charCodeAt(h)>=Me&&e.charCodeAt(h)<=Oe||e.charCodeAt(h)>=ct&&e.charCodeAt(h)<=bt||e.charCodeAt(h)>=He&&e.charCodeAt(h)<=_e||e.charCodeAt(h)===Fe);)h++;if(h>p){var x=e.slice(p,h).toLowerCase();v=rp.has(x)||Ji.has(x)}}if(v&&rT(e,B,a,o)){r=B;break}}if(k===Fe||k===Ht||k===On){let _=B+ot+1;if(_<H&&(e.charCodeAt(_)===X||e.charCodeAt(_)===te)){var C=Zi(e,_,H);if(C<H&&!kn(e,B)){r=B;break}}}if(k>=He&&k<=_e){let _=B+ot;for(;_<H&&e.charCodeAt(_)>=He&&e.charCodeAt(_)<=_e;)_++;if(_<H&&(e.charCodeAt(_)===ko||e.charCodeAt(_)===Eo)&&_-(B+ot)===1&&e.charCodeAt(B+ot)===49){var I=_+1;if(I<H&&(e.charCodeAt(I)===X||e.charCodeAt(I)===te)){var b=Zi(e,I,H);if(b<H){r=B;break}}}}if(k===fa){let _=Ke(e,H);if(_<e.length){let le=st(e,_);if(tT(e,_,le)){r=B;break}}}if((k===Fe||k===Ht||k===Ot)&&kn(e,B)){if(k!==Fe){r=B;break}let _=0,le=B+ot;for(;le<H&&e.charCodeAt(le)===Fe;)_++,le++;for(;le<H&&(e.charCodeAt(le)===X||e.charCodeAt(le)===te);)le++;if(le<H){r=B;break}}}}r=Ke(e,R)}for(var S=n?l:r;S>t&&(e.charCodeAt(S-1)===ge||e.charCodeAt(S-1)===Mn||e.charCodeAt(S-1)===X||e.charCodeAt(S-1)===te);)S--;for(var y=t;y<S&&(e.charCodeAt(y)===X||e.charCodeAt(y)===te);)y++;if(y>=S)return null;for(var T=!1,w=y;w<S;w++)if(e.charCodeAt(w)===Yx){T=!0;break}var D=T?e.slice(y,S).replace(/\u001E/g,""):e.slice(y,S);if(!D)return null;let M=su(D,!0,a,o);return n?{node:{type:E.heading,level:n,children:M,id:""},end:r}:{node:{type:E.paragraph,children:M},end:r}}function su(e,t,a,o){var r=a.t;if(!r){var n=a.k;a.k=t;var l=lr(e,0,e.length,a,o);return a.k=n,l}var s=[];return r.push({dest:s,text:e,breaks:t,inline:a.inline,inAnchor:a.inAnchor,inHTML:a.inHTML,htmlDepth:a.d,inList:a.inList,inBlockQuote:a.inBlockQuote,noSetext:a.l,depth:a.o}),s}function WB(e,t,a){if(e.charCodeAt(t)!==lt)return null;let o=Bn(e,t,a,96),r=t+o;for(;r<a;){let n=e.indexOf("`",r);if(n<0||n>=a)return null;let l=Bn(e,n,a,96);if(l===o){let s=e.slice(t+o,n);return s.indexOf(`
55
+ `)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:E.codeInline,text:s},end:n+l}}r=n+l}return null}function fv(e,t,a){if(e.charCodeAt(t)!==lt)return t;let o=Bn(e,t,a,96),r=t+o;for(;r<a;){let n=e.indexOf("`",r);if(n<0||n>=a)return t;let l=Bn(e,n,a,96);if(l===o)return n+l;r=n+l}return t}function KB(e,t,a){if(e.charCodeAt(t)!==ft)return t;if(t+1<a&&e.charCodeAt(t+1)===Ut){let i=t+2;for(;i<a&&e.charCodeAt(i)!==Ve;)i++;return i<a?i+1:t}if(t+3<a&&e.charCodeAt(t+1)===Pa&&e.charCodeAt(t+2)===Fe&&e.charCodeAt(t+3)===Fe){let i=e.indexOf("-->",t+4);return i>=0?i+3:t}let o=t+1,r=o;for(;o<a;){let i=e.charCodeAt(o);if(i>=Me&&i<=Oe||i>=ct&&i<=bt||i>=He&&i<=_e||i===Fe)o++;else break}if(o===r)return t;let n=e.slice(r,o).toLowerCase(),l=!1;for(;o<a;){let i=e.charCodeAt(o);if(i===Ve){o++;break}if(i===Ut&&o+1<a&&e.charCodeAt(o+1)===Ve){o+=2,l=!0;break}if(i===Pl||i===Bl){var s=i;for(o++;o<a&&e.charCodeAt(o)!==s;)o++;o<a&&o++;continue}if(i===ge)return t;o++}if(l||Qi(n))return o;let u=1;for(;o<a&&u>0;)if(e.charCodeAt(o)===ft)if(o+1<a&&e.charCodeAt(o+1)===Ut){let i=o+2,c=i;for(;c<a&&(e.charCodeAt(c)>=Me&&e.charCodeAt(c)<=Oe||e.charCodeAt(c)>=ct&&e.charCodeAt(c)<=bt);)c++;if(e.slice(i,c).toLowerCase()===n){for(;c<a&&e.charCodeAt(c)!==Ve;)c++;if(c<a&&c++,u--,u===0)return c}o=c}else{let i=o+1,c=i;for(;c<a&&(e.charCodeAt(c)>=Me&&e.charCodeAt(c)<=Oe||e.charCodeAt(c)>=ct&&e.charCodeAt(c)<=bt);)c++;e.slice(i,c).toLowerCase()===n&&u++,o++}else o++;return o}function ZB(e,t,a){let o=e.charCodeAt(t)===Pa?t+1:t;if(e.charCodeAt(o)!==ht)return t;let r=1,n=o+1;for(;n<a&&r>0;){let s=e.charCodeAt(n);if(s===$t&&n+1<a){n+=2;continue}s===ht?r++:s===uo&&r--,n++}if(r!==0||n>=a)return t;let l=e.charCodeAt(n);if(l===so){let s=1;for(n++;n<a&&s>0;){let u=e.charCodeAt(n);if(u===$t&&n+1<a){n+=2;continue}u===so?s++:u===Eo&&s--,n++}return s===0?n:t}if(l===ht){let s=1;for(n++;n<a&&s>0;){let u=e.charCodeAt(n);u===ht?s++:u===uo&&s--,n++}return s===0?n:t}return t}function QB(e,t,a,o,r){if(e.charCodeAt(t)!==la||t+1>=a||e.charCodeAt(t+1)!==la)return null;let n=t+2;for(;n+1<a;){let l=e.charCodeAt(n);if(l===lt){let s=fv(e,n,a);if(s>n){n=s;continue}}if(l===la&&e.charCodeAt(n+1)===la){let s=e.slice(t+2,n),u=lr(s,0,s.length,o,r);return{node:{type:E.textFormatted,tag:"del",children:u},end:n+2}}l===$t&&n+1<a&&n++,n++}return null}function JB(e,t,a,o,r){if(e.charCodeAt(t)!==Do||t+1>=a||e.charCodeAt(t+1)!==Do)return null;let n=t+2;for(;n+1<a;){let l=e.charCodeAt(n);if(l===lt){let s=fv(e,n,a);if(s>n){n=s;continue}}if(l===Do&&e.charCodeAt(n+1)===Do&&n>t+2){let s=e.slice(t+2,n),u=lr(s,0,s.length,o,r);return{node:{type:E.textFormatted,tag:"mark",children:u},end:n+2}}l===$t&&n+1<a&&n++,n++}return null}function UA(e,t,a){return e<up?!!(cv(e)&au):iB.test(t[a])}function qA(e,t,a){return e<up?!!(cv(e)&El):cB.test(t[a])}function $B(e,t,a){var o=e.charCodeAt(t);if(o!==Ht&&o!==Ot)return null;var r=Bn(e,t,a,o);if(r===0)return null;var n=t>0?e.charCodeAt(t-1):32,l=t+r<a?e.charCodeAt(t+r):32,s=qA(n,e,t-1),u=qA(l,e,t+r),i=t>0?UA(n,e,t-1):!1,c=t+r<a?UA(l,e,t+r):!1,d=!u&&(!c||s||i),f=!s&&(!i||u||c),p,g;return o===Ht?(p=d,g=f):(p=d&&(!f||i),g=f&&(!d||c)),{len:r,canOpen:p,canClose:g}}function eP(e,t,a,o){if(t.length!==0){for(var r=e.length,n=Array(r),l=null,s=null,u=0;u<r;u++){var i={node:e[u],prev:s,next:null};s?s.next=i:l=i,n[u]=i,s=i}for(var c=Array(t.length),d=0;d<t.length;d++)c[d]=n[t[d].idx];for(var f=[],p=0;p<12;p++)f[p]=-1;for(var g=0;g<t.length;){var v=t[g];if(!(v.active&&v.canClose)){g++;continue}for(var L=v.ch===Ht?0:1,m=L*6+v.len%3*2+(v.canOpen?1:0),h=f[m]===void 0?-1:f[m],x=-1,C=g-1;C>h;C--){var I=t[C];if(!(!I.active||I.ch!==v.ch||!I.canOpen)&&!((v.canOpen||I.canClose)&&(I.len+v.len)%3===0&&I.len%3!==0)){x=C;break}}if(x<0){f[m]=g-1,!v.canOpen&&(v.active=!1),g++;continue}var b=t[x],S=b.len>=2&&v.len>=2,y=S?2:1;b.len-=y,v.len-=y;var T=c[x],w=c[g],D=T.node,M=w.node;D.text=D.text.slice(0,D.text.length-y),M.text=M.text.slice(y);for(var R=[],B=T.next;B&&B!==w;)R.push(B.node),B=B.next;var H={type:E.textFormatted,tag:S?"strong":"em",children:R},k={node:H,prev:T,next:w};T.next=k,w.prev=k;for(var _=x+1;_<g;_++)t[_].active=!1;if(b.len===0&&(b.active=!1,D.text==="")){var le=T.prev;k.prev=le,le?le.next=k:l=k}if(v.len===0){if(v.active=!1,M.text===""){var V=w.next;k.next=V,V&&(V.prev=k)}}else continue;g++}for(var P=0,fe=l;fe;){var Re=fe.node;if(Re.type===E.text){var Te=Re;if(Te.text===""){fe=fe.next;continue}if(P>0&&e[P-1].type===E.text){e[P-1].text+=Te.text,fe=fe.next;continue}}e[P++]=Re,fe=fe.next}e.length=P}}function Zd(e,t,a,o){return t(e,a,o)===null?null:e}var HA=0,ev=0,_A=0,tv=0,VA=0,av=0,Hx=0,Ro=0;function tP(){return Hx===2147483647&&(ev=0,tv=0,av=0,ep=0,Hx=0),++Hx}var _x=null,ep=0,Qd=[],Vx=256;function GA(e,t,a,o,r){let n=e.charCodeAt(t)===Pa,l=n?t+1:t;if(e.charCodeAt(l)!==ht||tv===Ro&&l>=_A)return null;var s=ep===Ro?_x:null,u=s===null?0:s[l];if(u<0)return null;var i=u;if(u===0){var c=e.indexOf("]",l+1);if(c<0||c>=a)return _A=l,tv=Ro,null;i=l+1;var d=0;Qd[d++]=l;for(var f=a-l>=Vx;i<a&&d>0;){var p=e.charCodeAt(i);if(p===$t&&i+1<a){i+=2;continue}if(p===lt){var g=fv(e,i,a);if(g>i){i=g;continue}}if(p===ft){var v=nT(e,i,a);if(v){i=v.end;continue}var L=KB(e,i,a);if(L>i){i=L;continue}}if(p===ht)Qd[d++]=i;else if(p===uo){var m=Qd[--d];s===null&&f&&i-l>=Vx&&(s=_x=new Int32Array(a),ep=Ro),s!==null&&(s[m]=i+1)}i++}if(d>0){if(s===null&&f&&i-l>=Vx&&(s=_x=new Int32Array(a),ep=Ro),s!==null)for(;d>0;)s[Qd[--d]]=-1;return null}}var h=i-1,x=e.slice(l+1,h),C=i<a?e.charCodeAt(i):0,I=!1;if(C===so){var b=!0;for(i++;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;var S="",y=i;if(i<a&&e.charCodeAt(i)===ft){for(i++,y=i;y<a&&e.charCodeAt(y)!==Ve;){if(e.charCodeAt(y)===$t&&y+1<a){y+=2;continue}if(e.charCodeAt(y)===ge){b=!1;break}y++}b&&(y>=a||e.charCodeAt(y)!==Ve)&&(b=!1),b&&(S=e.slice(i,y),y++)}else if(b){var T=ev===Ro?HA:-1;if(T>=0&&i>=T)b=!1;else{for(var w=0,D=!1;y<a;){var M=e.charCodeAt(y);if(M===$t&&y+1<a){y+=2;continue}if(M===so)w++;else if(M===Eo){if(D=!0,w===0)break;w--}else if(M===X||M===ge)break;y++}y>=a&&!D&&(T<0||i<T)&&(HA=i,ev=Ro),S=e.slice(i,y)}}if(b){for(i=y;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;var R;if(i<a){var B=e.charCodeAt(i);if(B===Pl||B===Bl||B===so){var H=B===so?41:B;i++;for(var k=i;i<a&&e.charCodeAt(i)!==H;)e.charCodeAt(i)===$t&&i+1<a&&i++,i++;i>=a?b=!1:(R=e.slice(k,i),i++)}}if(b){for(;i<a&&(e.charCodeAt(i)===X||e.charCodeAt(i)===ge);)i++;(i>=a||e.charCodeAt(i)!==Eo)&&(b=!1)}}if(b){if(i++,S=Dn(lu(S)),R!==void 0&&(R=Dn(lu(R))),n){var _=lr(x,0,x.length,o,r),le=lp(_);return{node:{type:E.image,target:Zd(S,r?.sanitizer||Mr,"img","src"),alt:le,title:R},end:i}}var V=o.inAnchor;o.inAnchor=!0;var ae=V?[{type:E.text,text:x}]:lr(x,0,x.length,o,r);return o.inAnchor=V,!o.inAnchor&&ov(ae)?null:{node:{type:E.link,target:Zd(S,r?.sanitizer||Mr,"a","href"),title:R,children:ae},end:i}}i=h+1,I=!0}var P="",fe=i;if(!I&&C===ht){var Re=i+1;fe=Re;for(var Te=!1;fe<a&&e.charCodeAt(fe)!==uo;){if(e.charCodeAt(fe)===$t&&fe+1<a){fe+=2;continue}if(e.charCodeAt(fe)===ht){Te=!0;break}fe++}if(Te||fe>=a)return null;var U=e.slice(Re,fe);if(U.trim())P=Jd(U);else{if(DA(x))return null;P=Jd(x)}fe+=1}else{if(DA(x))return null;P=Jd(x)}var Y=o.refs?.[P];if(!Y)return null;if(n)return{node:{type:E.image,target:Zd(Y.target,r?.sanitizer||Mr,"img","src"),alt:lp(lr(x,0,x.length,o,r)),title:Y.title},end:fe};var K=o.inAnchor;o.inAnchor=!0;var ae=K?[{type:E.text,text:x}]:lr(x,0,x.length,o,r);return o.inAnchor=K,!o.inAnchor&&ov(ae)?null:{node:{type:E.link,target:Zd(Y.target,r?.sanitizer||Mr,"a","href"),title:Y.title,children:ae},end:fe}}function nT(e,t,a){if(e.charCodeAt(t)!==ft)return null;for(var o=t+1;o<a;){var r=e.charCodeAt(o);if(r===Ve)break;if(r===X||r===ge||r===Mn||r===ft)return null;o++}if(o>=a||e.charCodeAt(o)!==Ve)return null;var n=e.slice(t+1,o),l=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return l?{node:{type:E.link,target:n,title:void 0,children:[{type:E.text,text:n}]},end:o+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:E.link,target:`mailto:${n}`,title:void 0,children:[{type:E.text,text:n}]},end:o+1}:null}function aP(e,t,a,o){if(e.charCodeAt(t)!==ht||t+1>=a||e.charCodeAt(t+1)!==Or||av===Ro&&t>=VA)return null;let r=t+2;for(;r<a&&e.charCodeAt(r)!==uo&&e.charCodeAt(r)!==ge;)r++;if(r>=a)return VA=t,av=Ro,null;if(e.charCodeAt(r)!==uo)return null;let n=e.slice(t+2,r);return n?{node:{type:E.footnoteReference,target:`#${zl(n)}`,text:n},end:r+1}:null}function oP(e,t,a,o){if(o.disableBareUrls)return null;var r="",n=!1,l=e.charCodeAt(t);if(l===tp||l===72?t+8<=a&&e.charCodeAt(t+1)===nu&&e.charCodeAt(t+2)===nu&&e.charCodeAt(t+3)===jx&&(e.charCodeAt(t+4)===WA&&e.charCodeAt(t+5)===Ba&&e.charCodeAt(t+6)===Ut&&e.charCodeAt(t+7)===Ut?r="https://":e.charCodeAt(t+4)===Ba&&e.charCodeAt(t+5)===Ut&&e.charCodeAt(t+6)===Ut&&(r="http://")):l===Ol||l===70?t+6<=a&&e.charCodeAt(t+1)===nu&&e.charCodeAt(t+2)===jx&&e.charCodeAt(t+3)===Ba&&e.charCodeAt(t+4)===Ut&&e.charCodeAt(t+5)===Ut&&(r="ftp://"):(l===Ml||l===87)&&t+4<=a&&e.charCodeAt(t+1)===Ml&&e.charCodeAt(t+2)===Ml&&e.charCodeAt(t+3)===ko&&(r="www.",n=!0),!r)return null;let s=t+r.length;for(;s<a;){let b=e.charCodeAt(s);if(b===X||b===ge||b===te||b===Mn||b===ft||b===Ve)break;s++}for(var u=0,i=0,c=t;c<s;c++){var d=e.charCodeAt(c);d===so?u++:d===Eo&&i++}let f=s;for(;f>t+r.length;){let b=e.charCodeAt(f-1);if(b===ko||b===Z2||b===Ba||b===Pa||b===uu||b===Eo||b===Ht||b===Ot||b===la){if(b===Eo){if(u>=i)break;i--}f--}else if(b===ap){for(var p=f-2;p>t&&(e.charCodeAt(p)>=Me&&e.charCodeAt(p)<=Oe||e.charCodeAt(p)>=ct&&e.charCodeAt(p)<=bt||e.charCodeAt(p)>=He&&e.charCodeAt(p)<=_e);)p--;p>=t&&e.charCodeAt(p)===sp?f=p:f--}else break}if(f<=t+r.length)return null;var g=t+(n?4:r.length),v=e.indexOf("/",g);if((v<0||v>f)&&(v=f),n&&e.indexOf(".",g)===-1)return null;for(var L=-1,m=-1,h=v-1;h>=g;h--)if(e.charCodeAt(h)===ko)if(L<0)L=h;else{m=h;break}for(var x=m>=0?m+1:g,h=x;h<v;h++)if(e.charCodeAt(h)===Ot)return null;var C=e.slice(t,f),I=n?`http://${C}`:C;return{node:{type:E.link,target:I,title:void 0,children:[{type:E.text,text:C}]},end:f}}function rP(e,t,a,o){if(o.disableBareUrls)return null;for(var r=t,n=r;r<a;){var l=e.charCodeAt(r);if(l>=Me&&l<=Oe||l>=ct&&l<=bt||l>=He&&l<=_e||l===ko||l===Pa||l===Mo||l===36||l===Gx||l===sp||l===Bl||l===Ht||l===On||l===Ut||l===Do||l===uu||l===Or||l===Ot||l===lt||l===Nl||l===fa||l===uv||l===la||l===Fe)r++;else break}if(r===n||r>=a||e.charCodeAt(r)!==YA)return null;r++;for(var s=r,u=-1,i=r;r<a;){var l=e.charCodeAt(r);if(l>=Me&&l<=Oe||l>=ct&&l<=bt||l>=He&&l<=_e)r++;else if((l===Fe||l===Ot)&&r>s)r++;else if(l===ko){if(r===s)break;var c=e.charCodeAt(r-1);if(c===Fe||c===Ot||r-i>63)break;if(r+1<a){var d=e.charCodeAt(r+1);if(d>=Me&&d<=Oe||d>=ct&&d<=bt||d>=He&&d<=_e)u=r,i=r+1,r++;else break}else break}else break}if(r-i>63||u<0)return null;var f=e.charCodeAt(r-1);if(!(f>=Me&&f<=Oe||f>=ct&&f<=bt||f>=He&&f<=_e)||r<=u+1)return null;for(var p=-1,g=u-1;g>=s;g--)if(e.charCodeAt(g)===ko){p=g;break}for(var v=p>=0?p+1:s,g=v;g<r;g++)if(e.charCodeAt(g)===Ot)return null;var L=e.slice(t,r);return{node:{type:E.link,target:`mailto:${L}`,title:void 0,children:[{type:E.text,text:L}]},end:r}}function ov(e){for(var t=0;t<e.length;t++)if(e[t].type===E.link||"children"in e[t]&&Array.isArray(e[t].children)&&ov(e[t].children))return!0;return!1}function lp(e,t){for(var a="",o=0;o<e.length;o++){var r=e[o];r.type===E.text?a+=r.text:r.type===E.breakLine?a+=" ":r.type===E.codeInline||r.type===E.footnoteReference?a+=r.text:("children"in r)&&Array.isArray(r.children)?a+=lp(r.children,t):!t&&r.type===E.image&&(a+=r.alt||"")}return a}function rv(e,t,a){for(var o=0;o<e.length;o++){var r=e[o];if(r.type===E.heading){var n=r;n.id=zB(a(lp(n.children,!0)),t)}if("children"in r){var l=r.children;Array.isArray(l)&&rv(l,t,a)}if((r.type===E.orderedList||r.type===E.unorderedList)&&Array.isArray(r.items))for(var s=r.items,u=0;u<s.length;u++)rv(s[u],t,a)}}function kl(e){return{type:E.text,text:e}}function nP(e,t,a){var o=t+1;if(o>=a)return-1;if(e.charCodeAt(o)===Mo){o++;var r=o<a&&(e.charCodeAt(o)===KA||e.charCodeAt(o)===ZA);r&&o++;for(var n=o,l=r?6:7;o<a&&o-n<=l;){var s=e.charCodeAt(o),u=s>=He&&s<=_e||r&&(s>=Me&&s<=Xx||s>=ct&&s<=Ol);if(!u)break;o++}return o===n||o-n>l?-1:o<a&&e.charCodeAt(o)===ap?o+1:-1}for(var i=o;o<a&&o-i<48;){var c=e.charCodeAt(o);if(c>=Me&&c<=Oe||c>=ct&&c<=bt||c>=He&&c<=_e){o++;continue}break}return o===i?-1:o<a&&e.charCodeAt(o)===ap?o+1:-1}function lP(e,t,a,o,r){if(e.charCodeAt(t)!==ft)return null;var n=t+1;if(n>=a)return null;var l=e.charCodeAt(n);if(l===Pa&&n+1<a&&e.charCodeAt(n+1)===Fe&&n+2<a&&e.charCodeAt(n+2)===Fe){var s=n+3;if(s<a&&e.charCodeAt(s)===Ve)return{node:{type:E.htmlComment,text:"",s:!0},end:s+1};if(s+1<a&&e.charCodeAt(s)===Fe&&e.charCodeAt(s+1)===Ve)return{node:{type:E.htmlComment,text:"-",s:!0},end:s+2};var u=e.indexOf("-->",s);return u!==-1&&u<=a-3?{node:{type:E.htmlComment,text:e.slice(t+4,u),s:!1},end:u+3}:null}if(l===uu){var i=e.indexOf("?>",n+1);return i!==-1&&i<a?{node:{type:E.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,i+2),a:!1},end:i+2}:null}if(l===Pa&&n+1<a){var c=e.charCodeAt(n+1);if(c===ht&&e.slice(n+1,n+8)==="[CDATA["){var d=e.indexOf("]]>",n+8);return d!==-1&&d<a?{node:{type:E.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,d+3),a:!1},end:d+3}:null}if(c>=Me&&c<=Oe){var f=e.indexOf(">",n+2);return f!==-1&&f<a?{node:{type:E.htmlSelfClosing,tag:`!${e.slice(n+1,f)}`,attrs:{},m:e.slice(t,f+1),a:!1},end:f+1}:null}}if(l===Ut){var p=n+1;if(p>=a)return null;var g=e.charCodeAt(p);if(!(g>=Me&&g<=Oe||g>=ct&&g<=bt))return null;for(p++;p<a;){var v=e.charCodeAt(p);if(v>=Me&&v<=Oe||v>=ct&&v<=bt||v>=He&&v<=_e||v===Fe)p++;else break}for(;p<a&&(e.charCodeAt(p)===X||e.charCodeAt(p)===te||e.charCodeAt(p)===ge);)p++;if(p<a&&e.charCodeAt(p)===Ve){var L=e.slice(n+1,p).trim();return{node:{type:E.htmlSelfClosing,tag:L,attrs:{},h:e.slice(t,p+1),a:!0},end:p+1}}return null}if(!(l>=Me&&l<=Oe||l>=ct&&l<=bt))return null;var m=nr(e,t);if(!m)return null;var h=m.tag,x=h.toLowerCase(),C=m.n;if(C||Qi(h))return{node:{type:E.htmlSelfClosing,tag:h,attrs:rr(m.attrs,h,r),m:m.q?Zx(m):e.slice(t,m.end),a:!1},end:m.end};var I=Ji.has(x),b=$x(e.slice(0,a),m.end,h);if(b===-1)return{node:{type:E.htmlSelfClosing,tag:h,attrs:rr(m.attrs,h,r),m:m.q?Zx(m):e.slice(t,m.end),a:!1},end:m.end};var S=VB(e,`</${x}`,b),y=e.slice(m.end,S);if(I){var T=lo(y);return{node:{type:E.htmlBlock,tag:h,attrs:rr(m.attrs,h,r),b:m.g+m.b,children:[],e:T||void 0,h:e.slice(S,b),text:T,c:!0,a:!1},end:b}}var w=[],D=y.trim();if(D){var{inAnchor:M,inline:R,k:B}=o;x==="a"&&(o.inAnchor=!0),o.k=!1;var H=D.indexOf(`
56
+
57
+ `)!==-1||/^#{1,6}\s/.test(D);H?(o.inline=!1,w=En(D,o,r)):w=lr(D,0,D.length,o,r),o.inAnchor=M,o.inline=R,o.k=B}return{node:{type:E.htmlBlock,tag:h,attrs:rr(m.attrs,h,r),b:m.b,children:w,text:lo(y),c:!1,a:!1},end:b}}var sP=200,Ki=0;function lr(e,t,a,o,r){if(Ki++,Ki>sP)return Ki--,[{type:E.text,text:e.slice(t,a)}];var n=Ro;Ro=tP();let l=o;if(r.optimizeForStreaming){let Q=function(tt,At){for(var St=1,Pt=At+1;Pt<tt.length;Pt++){var Tt=tt.charCodeAt(Pt);if(Tt===ht)St++;else if(Tt===uo&&(St--,St===0))return Pt}return-1},N=e.slice(t,a),Bt=N;for(var s=0,u=0,i=0,c=0,d=0,f=-1,p=-1,g=-1,v=-1,L=-1,m=0;m<N.length;m++){var h=N.charCodeAt(m);if(h===ht){var x=ZB(N,m,N.length);if(x>m){m=x-1;continue}}h===Ht?m+1<N.length&&N.charCodeAt(m+1)===Ht?(s++,f=m,m++):(u++,p=m):h===Ot?m+1<N.length&&N.charCodeAt(m+1)===Ot?(i++,g=m,m++):(c++,v=m):h===la&&m+1<N.length&&N.charCodeAt(m+1)===la&&(d++,L=m,m++)}var C=[];d%2===1&&L>=0&&C.push([L,2]),i%2===1&&g>=0&&C.push([g,2]),c%2===1&&v>=0&&C.push([v,1]),s%2===1&&f>=0&&C.push([f,2]),u%2===1&&p>=0&&C.push([p,1]),C.sort((tt,At)=>At[0]-tt[0]);for(var I=0;I<C.length;I++){var b=C[I][0],S=C[I][1];N=N.slice(0,b)+N.slice(b+S)}let De=0,gt=-1;for(let tt=0;tt<N.length;tt++)N.charCodeAt(tt)===lt&&(De++,gt=tt);if(De%2===1&&gt!==-1){let tt=!1,At=-1,St=0;for(;St<N.length;)N.charCodeAt(St)===lt&&(tt?(tt=!1,At=-1):(At=St,tt=!0)),St++;tt&&At!==-1&&(N=N.slice(0,At))}for(var y=!0;y;){y=!1;for(var T=-1,w=-1,D=-1,M=!1,R=0;R<N.length;R++){var B=N.charCodeAt(R);if(B===ht&&(R===0||N.charCodeAt(R-1)!==$t)){var H=R>0&&N.charCodeAt(R-1)===Pa,k=H?R-1:R,_=Q(N,R);if(_===-1)T=k,M=H,w=R+1,D=N.length;else{var le=_+1;if(le>=N.length)T=k,M=H,w=R+1,D=_;else if(N.charCodeAt(le)===so){var V=N.indexOf(")",le+1);V===-1?(T=k,M=H,w=R+1,D=_,R=N.length):R=V}else if(N.charCodeAt(le)===ht){var P=N.indexOf("]",le+1);P===-1?(T=k,M=H,w=R+1,D=_,R=N.length):R=P}else R=_}}}if(T>=0){var fe=M?"":N.slice(w,D);N=N.slice(0,T)+fe,y=!0}}let be=N.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(be&&be.index!==void 0){var Re=be[0].length-be[2].length,Te=Re>=2&&be[0].charCodeAt(Re-2)===Ut;if(!Te){for(var U=!1,Y=0,K=0;K<be.index;K++)N.charCodeAt(K)===lt&&Y++;if(U=Y%2===1,!U){let tt=be[1];Rn(N,`</${tt}`,0)===-1&&(N=N.slice(0,be.index)+be[2])}}}N!==Bt&&(e=e.slice(0,t)+N,a=t+N.length)}let ae=[];var ue=[];let ee=t;var re="",ve=r.disableAutoLink||r.disableBareUrls||l.inAnchor?-1:e.indexOf("@",t);for(ve>=a&&(ve=-1);t<a;){let Q=e.charCodeAt(t),N=null;if(Q===lt){if(N=WB(e,t,a),!N){var ie=Bn(e,t,a,lt);t+=ie-1}}else if(Q===Ht||Q===Ot){var Z=$B(e,t,a);if(Z){if(Z.canOpen||Z.canClose){(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re="");var xe=e.slice(t,t+Z.len),Ie=kl(xe);ue.push({idx:ae.length,ch:Q,len:Z.len,canOpen:Z.canOpen,canClose:Z.canClose,active:!0}),ae.push(Ie),t+=Z.len,ee=t;continue}t+=Z.len-1}}else if(Q===la)N=QB(e,t,a,l,r);else if(Q===Do)N=JB(e,t,a,l,r);else if(Q===ht)t+1<a&&e.charCodeAt(t+1)===Or&&(N=aP(e,t,a,l)),N||(N=GA(e,t,a,l,r));else if(Q===Pa&&t+1<a&&e.charCodeAt(t+1)===ht)N=GA(e,t,a,l,r);else if(Q===ft)N=nT(e,t,a),!(N||r.disableParsingRawHTML||r.ignoreHTMLBlocks)&&(N=lP(e,t,a,l,r));else if(Q===sp){var Ae=nP(e,t,a);if(Ae!==-1){var ne=e.slice(t,Ae),ke=Dn(ne);if(ke!==ne){re=re+e.slice(ee,t)+ke,t=Ae,ee=Ae;continue}}}else if((Q===tp||Q===Ml||Q===Ol)&&!l.inAnchor&&!r.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==ft)){var oe=t+1<a?e.charCodeAt(t+1):0;(Q===tp&&oe===nu||Q===Ol&&oe===nu||Q===Ml&&oe===Ml)&&(N=oP(e,t,a,r))}if(!N&&ve>=0&&ve-t<=64&&!l.inAnchor&&!r.disableAutoLink&&!r.disableBareUrls&&(Q>=Me&&Q<=Oe||Q>=ct&&Q<=bt||Q>=He&&Q<=_e)&&(N=rP(e,t,a,r),!N&&t>=ve&&(ve=e.indexOf("@",t+1),ve>=a&&(ve=-1))),Q===ge&&l.k){var Se=!1,Pe=0;if(t>ee&&e.charCodeAt(t-1)===$t)Se=!0,Pe=1;else{for(var Xe=0,G=t-1;G>=ee&&e.charCodeAt(G)===X;)Xe++,G--;Xe>=2&&(Se=!0,Pe=Xe)}if(Se){for((re||t-Pe>ee)&&(ae.push(kl(re+e.slice(ee,t-Pe))),re=""),ae.push({type:E.breakLine}),t++;t<a&&e.charCodeAt(t)===X;)t++;ee=t;continue}var he=t>ee&&e.charCodeAt(t-1)===X,me=t+1<a&&e.charCodeAt(t+1)===X;if(he||me){for(var q=t;q>ee&&e.charCodeAt(q-1)===X;)q--;for(re+=`${e.slice(ee,q)}
58
+ `,t++;t<a&&e.charCodeAt(t)===X;)t++;ee=t;continue}}if(N)(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re=""),ae.push(N.node),t=N.end,ee=t;else{if(Q===$t&&t+1<a){let Bt=e.charCodeAt(t+1);if(cv(Bt)&au){(re||t>ee)&&(ae.push(kl(re+e.slice(ee,t))),re=""),ae.push(kl(e[t+1])),t+=2,ee=t;continue}}if(t++,ve<0||ve-t>64)for(;t<a&&!(ve>=0&&ve-t<=64);){var F=e.charCodeAt(t);if(F<up&&!eT[F])t++;else break}}}return(re||a>ee)&&(ae.push(kl(re+e.slice(ee,a))),re=""),ue.length>0&&eP(ae,ue,o,r),Ro=n,Ki--,ae}var uP=500;function En(e,t,a){var o=t.o||0;if(o>uP)return[{type:E.text,text:e}];t.o=o+1;let r=t;if(a.optimizeForStreaming&&!(t.i||t.w)){for(var n=e.length;n>0&&e.charCodeAt(n-1)===ge;)n--;for(var l=n;l>0&&e.charCodeAt(l-1)!==ge;)l--;if(n>l&&e.charCodeAt(l)===fa){for(var s=!1,u=l+1;u<n;u++){var i=e.charCodeAt(u);if(i!==X&&i!==te&&i!==fa&&i!==Ba&&i!==Fe){s=!0;break}}for(var c=!1,d=!1,f=0,p=l,g=l-1;g>0;){for(var v=g;v>0&&e.charCodeAt(v-1)!==ge;)v--;if(e.charCodeAt(v)!==fa)break;p=v;for(var L=!0,m=!1,h=v;h<g;h++){var x=e.charCodeAt(h);if(x===Fe)m=!0;else if(x!==X&&x!==te&&x!==Ba&&x!==fa){L=!1;break}}L&&m?(c=!0,d=!0):d||f++,g=v-1}s?c||(e=e.slice(0,l).trimEnd()):e=c&&f>0?e.slice(0,l).trimEnd():e.slice(0,p).trimEnd()}for(var C=-1,I=-1,b=-1,S=!1,y=e.length-1;y>=0;y--)if(e.charCodeAt(y)===ft){for(var T=y+1<e.length?e.charCodeAt(y+1):0,w=T>=Me&&T<=Oe||T>=ct&&T<=bt,D=T===Ut&&y+2<e.length&&(e.charCodeAt(y+2)>=Me&&e.charCodeAt(y+2)<=Oe||e.charCodeAt(y+2)>=ct&&e.charCodeAt(y+2)<=bt),M=T===Pa||T===uu,R=e.length;R>y+1&&e.charCodeAt(R-1)===ge;)R--;var B=y+1>=R;if(w||D||M||B){var H=y+1;if((D||w)&&(H=y+2),w||D)for(;H<e.length;){var k=e.charCodeAt(H);if(k>=Me&&k<=Oe||k>=ct&&k<=bt||k>=He&&k<=_e)H++;else break}for(var _=w||D?H:y+2;_<e.length&&e.charCodeAt(_)!==Ve;)_++;if(_>=e.length)C=y,S=!0;else if((w||D)&&e.charCodeAt(_-1)!==Ut){for(var le=!1,V=_+1;V<e.length;V++)if(e.charCodeAt(V)===ft){le=!0;break}le||(C=y,I=H,b=_+1)}}break}if(C>=0){for(var P=0,fe=0;fe<C;fe++)e.charCodeAt(fe)===lt&&P++;if(P%2===0)if(S)e=e.slice(0,C);else{var Re=e.slice(C+1,I);Rn(e,`</${Re}`,0)===-1&&(e=e.slice(0,C)+e.slice(b))}}for(var Te=e.length;Te>0&&e.charCodeAt(Te-1)===ge;)Te--;if(Te>0){for(var U=Te;U>0&&e.charCodeAt(U-1)!==ge;)U--;for(var Y=U,K=0;Y<Te&&e.charCodeAt(Y)===X&&K<3;)Y++,K++;if(U>0&&Y<Te&&UB(e,Y,Te)){for(var ae=U-1,ue=ae;ue>0&&e.charCodeAt(ue-1)!==ge;)ue--;Ha(e,ue,ae)||(e=e.slice(0,U).trimEnd())}}var ee=e.length;if(ee>0){for(var re=e.lastIndexOf(`
59
+ `),ve=re===-1?0:re+1,ie=ee,Z=ve,xe=0;Z<ie&&e.charCodeAt(Z)===X&&xe<3;)Z++,xe++;if(Z<ie){var Ie=e.charCodeAt(Z),Ae=!1;if(Ie===Ht||Ie===Fe||Ie===On){var ne=Z+1;if(ne>=ie||e.charCodeAt(ne)===X||e.charCodeAt(ne)===te){for(var ke=ne;ke<ie&&(e.charCodeAt(ke)===X||e.charCodeAt(ke)===te);)ke++;ke>=ie&&(Ae=!0)}}else if(Ie>=He&&Ie<=_e){for(var oe=Z;oe<ie&&e.charCodeAt(oe)>=He&&e.charCodeAt(oe)<=_e;)oe++;if(oe<ie&&(e.charCodeAt(oe)===ko||e.charCodeAt(oe)===Eo)){var Se=oe+1;if(Se>=ie||e.charCodeAt(Se)===X||e.charCodeAt(Se)===te){for(var Pe=Se;Pe<ie&&(e.charCodeAt(Pe)===X||e.charCodeAt(Pe)===te);)Pe++;Pe>=ie&&(Ae=!0)}}}Ae&&(e=e.slice(0,ve).trimEnd())}}}if(t.inline)return lr(e,0,e.length,t,a);let Xe=[],G=0,he=e.length;if(G===0&&!a.disableFrontmatter&&e.startsWith("---")){let De=aB(e);if(De?.hasValidYaml){if(a.preserveFrontmatter!==!1){let gt=e.slice(0,De.endPos).trimEnd();Xe.push({type:E.frontmatter,text:gt})}G=De.endPos}}for(;G<he;){for(var me=e.indexOf(`
60
+ `,G),q=me<0?he:me;G<he&&Ha(e,G,q);)G=q<he?q+1:q,G<he&&(me=e.indexOf(`
61
+ `,G),q=me<0?he:me);if(G>=he)break;var F=e.charCodeAt(G)===Yx;Wt(e,G,q);let De=null;if(Qx=e,Jx=G,$d=q,!F&&nt>=4&&!t.inHTML)De=HB(e,G);else if(!F){let gt=G+ot,be=e.charCodeAt(gt);be===Mo?De=FB(e,G,t,a):be===Ve?De=_B(e,G,t,a):be===lt||be===la?De=qB(e,G,t):be===Fe||be===Ht||be===Ot?(De=kn(e,G),!De&&(De=NA(e,G,t,a))):be===On||be>=He&&be<=_e?De=NA(e,G,t,a):be===ft?De=rT(e,G,t,a):be===fa?De=FA(e,G,t,a):be===ht&&(De=XB(e,G,t))}if(!De){for(var Q=!1,N=G;N<q;N++)if(e.charCodeAt(N)===fa){Q=!0;break}Q&&(De=FA(e,G,t,a))}if(De||(De=YB(e,G,t,a)),De)De.node.type!==E.refCollection&&Xe.push(De.node),G=De.end;else{var Bt=e.indexOf(`
62
+ `,G);G=Bt<0?he:Bt+1}}return t.o=o,Xe}function iP(e,t,a,o){var r=nr(e,t);return r?{tagName:r.tag,tagLower:r.tag.toLowerCase(),attrs:r.b,whitespaceBeforeAttrs:r.g,isSelfClosing:r.n,hasSpaceBeforeSlash:r.r,isClosing:r.f,hasNewline:r.g.includes(`
63
+ `)||r.b.includes(`
64
+ `),endPos:r.end}:null}function dv(e,t,a){Ki=0,e=fB(e),!t.refs&&(t.refs=Object.create(null)),(a.optimizeForStreaming||t.inline)&&(t.w=NB(e,t.refs,a));var o,r;t.t||(t.t=o=[],t.p=r=[]);let n=En(e,t,a);if(o&&r){for(var l=o,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},u=0;u<l.length;u++){var i=l[u];t.inline=i.inline,t.inAnchor=i.inAnchor,t.inHTML=i.inHTML,t.d=i.htmlDepth,t.inList=i.inList,t.inBlockQuote=i.inBlockQuote,t.l=i.noSetext,t.o=i.depth,t.k=i.breaks;var c=lr(i.text,0,i.text.length,t,a);t.k=!1;for(var d=0;d<c.length;d++)i.dest.push(c[d])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var f=r,p=0;p<f.length;p++)for(var g=f[p],v=0;v<g.src.length;v++){var L=g.src[v];if(g.unwrap&&L.type===E.paragraph)for(var m=L.children,h=0;h<m.length;h++)g.dest.push(m[h]);else g.dest.push(L)}t.t=void 0,t.p=void 0,rv(n,t,a.slugify)}return JA(t.refs)?[{type:E.refCollection,refs:t.refs},...n]:n}var nv;try{eu=at("div"),nv=eu!=null&&typeof eu=="object"&&"$$typeof"in eu&&typeof eu.$$typeof=="symbol"?eu.$$typeof:Symbol.for("react.transitional.element")}catch{nv=Symbol.for("react.transitional.element")}var eu;function lv(e,t,a){return{$$typeof:nv,type:e,key:a==null?null:String(a),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function wo(e,t){var a={key:e};if(t){var o=QA(t);for(var r in o)a[r]=o[r]}return a}var XA=typeof Ue>"u"?void 0:Ue(void 0);function jA(e,t,a,o,r,n,l,s,u){switch(e.type){case E.blockQuote:{let m={key:a.key};return e.alert&&(m.className=`markdown-alert-${n(e.alert.toLowerCase(),zl)}`,e.children.unshift(mB(e.alert))),o("blockquote",m,t(e.children,a))}case E.breakLine:return o("br",{key:a.key});case E.breakThematic:return o("hr",{key:a.key});case E.frontmatter:return s.preserveFrontmatter?o("pre",{key:a.key},e.text):null;case E.codeBlock:{let m=e.lang?Dn(e.lang):"";var i=e.attrs?QA(e.attrs):{};return i.className=m?`language-${m} lang-${m}`:"",o("pre",{key:a.key},o("code",i,e.text))}case E.codeInline:return o("code",{key:a.key},e.text);case E.footnoteReference:return o("a",{key:a.key,href:r(e.target,"a","href")||void 0},o("sup",null,e.text));case E.gfmTask:return o("input",{checked:e.completed,key:a.key,readOnly:!0,type:"checkbox"});case E.heading:return o(`h${e.level}`,{id:e.id,key:a.key},t(e.children,a));case E.htmlBlock:{let m=e;if(tu(s)&&SA(m.tag)){var c=bA(m);return c.kind==="literal"?o("span",{key:a.key},c.literal):o("span",{key:a.key},...CB(c.open,m.children?t(m.children,a):null,c.close))}let h=m.j,x=h!==void 0,C=x?h:m.a?m.e||"":(m.e||"")+(m.h||"");if(C&&m.c){let I=m.tag.toLowerCase(),b=DB(I),S=m.children,y=S!=null&&S.length>0;if(b){let H=x?h:m.e||"",k=tu(s)?IA(H):H;if(/<[a-z][^>]{0,100}>/i.test(C)){var d=wo(a.key,e.attrs);return d.dangerouslySetInnerHTML={__html:k},u(e.tag,d)}return u(e.tag,wo(a.key,e.attrs),k)}let T=new RegExp(`^<${m.tag}(\\s|>)`,"i");if(y&&!T.test(C)&&tu(s)&&AB(C))return u(e.tag,wo(a.key,e.attrs),t(S,a));if(kB(C)){let H=tu(s)?IA(C):C;var f=wo(a.key,e.attrs);return f.dangerouslySetInnerHTML={__html:H},u(e.tag,f)}let w=iv({slugify:s.slugify,sanitizer:r,tagfilter:!0}),D=dB(C);if(new RegExp(`^<${m.tag}(\\s[^>]*)?>(\\s*</${m.tag}>)?$`,"i").test(D))return m.children&&m.children.length>0?u(e.tag,wo(a.key,e.attrs),t(m.children,a)):u(e.tag,wo(a.key,e.attrs));let M=dv(D,{inline:!1,refs:l,inHTML:!1},w);$A(M);let R=m.tag.toLowerCase(),B=x;if(B&&y)return u(e.tag,wo(a.key,e.attrs),t(S,a));if(B)return t(M.flatMap(ou),a);var p=xB(M,R);if(p.found&&p.afterClose.length>0){var g=p.beforeClose.flatMap(ou),v=p.afterClose.flatMap(ou);return lv(ya,{children:[u(e.tag,wo(a.key,e.attrs),t(g,a)),t(v,a)]},a.key)}return u(e.tag,wo(a.key,e.attrs),t(M.flatMap(ou),a))}return Qi(e.tag)?u(e.tag,wo(a.key,e.attrs)):u(e.tag,wo(a.key,e.attrs),e.children?t(e.children,a):"")}case E.htmlSelfClosing:{let m=e;if(tu(s)&&SA(m.tag)){var L=bA(m);return o("span",{key:a.key},L.kind==="literal"?L.literal:L.open+(L.close||""))}return u(e.tag,wo(a.key,e.attrs))}case E.image:{let m=e.target===null?null:r(e.target,"img","src");return o("img",{key:a.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:m||void 0})}case E.link:{let m={key:a.key};if(e.target!=null){let h=yB(e.target,r,"a","href");h!=null&&(m.href=h)}return e.title&&(m.title=e.title),o("a",m,t(e.children,a))}case E.table:{let m=e;return o("table",{key:a.key},o("thead",{key:"thead"},o("tr",null,m.header.map(function(h,x){return o("th",{key:x,style:m.align[x]===null?{}:{textAlign:m.align[x]}},t(h,a))}))),m.cells.length>0&&o("tbody",{key:"tbody"},m.cells.map(function(h,x){return o("tr",{key:x},h.map(function(C,I){return o("td",{key:I,style:m.align[I]===null?{}:{textAlign:m.align[I]}},t(C,a))}))})))}case E.text:return e.text;case E.textFormatted:return o(e.tag,{key:a.key},t(e.children,a));case E.orderedList:case E.unorderedList:{let m=e.type===E.orderedList?"ol":"ul";return o(m,{key:a.key,start:e.type===E.orderedList?e.start:void 0},e.items.map(function(h,x){return o("li",{key:x},t(h,a))}))}case E.paragraph:return o("p",{key:a.key},t(e.children,a));case E.ref:return null;default:return null}}var cP=(e,t,a,o,r,n,l)=>{var s=(i)=>i.map((c)=>("text"in c)?c.text:""),u=(i,c={})=>{var d=Array.isArray(i)?i:[i],f=(c.renderDepth||0)+1;if(f>2500)return s(d);c.renderDepth=f;for(var p=c.key,g=[],v=!1,L=0;L<d.length;L++){c.key=L;var m;if(e){var h=jA.bind(null,d[L],u,c,t,a,o,r,n,l);m=e(h,d[L],u,c)}else m=jA(d[L],u,c,t,a,o,r,n,l);var x=typeof m=="string";if(v&&typeof m=="string"){var C=g.at(-1);g[g.length-1]=(typeof C=="string"?C:"")+m}else if(m!=null)if(Array.isArray(m))for(var I=0;I<m.length;I++)g.push(m[I]);else g.push(m);v=x}return c.key=p,c.renderDepth=f-1,g};return u},fP=(e,t)=>{let a=Wx(t,e,void 0);return a?typeof a=="function"||typeof a=="object"&&"render"in a?a:Wx(t,`${e}.component`,e):e};function dP(e,t){let a={...t||{}};a.overrides=a.overrides||{};let o=a.slugify||zl,r=a.sanitizer||Mr,n=a.createElement,l=JA(a.overrides),s=(x)=>sv(x,{...a,wrapper:null});function u(x){for(var C in x){var I=x[C];if(typeof I=="string"&&I.length>0&&I.charCodeAt(0)===ft&&(TB.test(I)||wB.test(I)||iP(I,0))){var b=s(I.trim());x[C]=C==="innerHTML"&&Array.isArray(b)?b[0]:b}}}function i(x,C,...I){var b=C||{},S=x;if(l){var y=Wx(a.overrides,`${x}.props`,{});S=fP(x,a.overrides),b={...b,...y,className:SB(b.className,y.className)||void 0}}if(!n){var T=b.key;return T!=null&&delete b.key,I.length===1?b.children=I[0]:I.length>1&&(b.children=I),lv(S,b,T)}return n(S,b,...I)}function c(x,C,...I){return C&&u(C),i(x,C,...I)}let d=iv(a,a.forceInline),f=e[0]&&e[0].type===E.refCollection?e[0].refs:Object.create(null),p=cP(a.renderRule,i,r,o,f,a,c),g=p(e,{inline:a.forceInline,refs:f}),v=bB(f);if(v.length>0&&g.push(i("footer",{key:"footer"},v.map(function(x){let C=x.identifier.charCodeAt(0)===Or?x.identifier.slice(1):x.identifier,I=dv(x.footnote,{inline:!0,refs:f},d);return i("div",{id:o(C,zl),key:x.identifier},`${C}: `,p(I,{inline:!0,refs:f}))}))),a.wrapper===null)return g;let L=a.wrapper||(a.forceInline?"span":"div"),m;if(g.length>1||a.forceWrapper)m=g;else return g.length===1?g[0]:null;var h=a.wrapperProps?{...a.wrapperProps}:{};return h.children=m,lv(L,h,"outer")}function sv(e="",t={}){let a={...t||{}};a.overrides=a.overrides||{};let o=a.slugify||zl,r=a.sanitizer||Mr;function n(s){let u=a.forceInline||!(a.forceBlock||lB.test(s)),i=iv(a,u),c=u?s:gB(s),d=dv(c,{inline:u,refs:l},i);return dP(d,{...a,forceInline:u})}let l=Object.create(null);return n(e)}function pP(e){let t=z(e),a=t.current;if(a!==e){var o=!0,r=0;for(var n in e)if(r++,!Object.is(a[n],e[n])){o=!1;break}if(o){var l=0;for(var s in a)l++;o=l===r}o||(t.current=e)}return t.current}var lT=({children:e,options:t,...a})=>{if(!(typeof Be<"u")){let s={...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...a}};return sv(e??"",s)}let o=XA?Be(XA):void 0,r=pP(a),n=Le(()=>({...o,...t,overrides:{...o?.overrides,...t?.overrides},wrapperProps:{...o?.wrapperProps,...t?.wrapperProps,...r}}),[o,t,r]),l=e??"";return Le(()=>sv(l,n),[l,n])};var mP="mt-[0.9rem] mb-[0.3rem] first:mt-0 font-bold text-[0.8rem] uppercase tracking-[0.08em] opacity-55",iu=(e)=>({component:e,props:{className:mP}});function hP(e){return A("a",{...e,target:"_blank",rel:"noreferrer noopener",className:"break-all underline"})}function gP({alt:e}){return j("span",{className:"text-muted-foreground",children:["[",e||"image","]"]})}function xP(e){return A("input",{...e,disabled:!0,className:"mr-1.5 align-[-0.1em]",readOnly:!0})}var vP={disableParsingRawHTML:!0,forceBlock:!0,overrides:{h1:iu("h1"),h2:iu("h2"),h3:iu("h3"),h4:iu("h4"),h5:iu("h5"),h6:iu("h6"),p:{props:{className:"my-1"}},ul:{props:{className:"my-1 list-disc pl-5"}},li:{props:{className:"has-[>input]:-ml-5 has-[>input]:list-none has-[>input:checked]:opacity-50"}},ol:{props:{className:"my-1 list-decimal pl-5"}},blockquote:{props:{className:"my-1 border-l-2 pl-3 text-muted-foreground"}},pre:{props:{className:"my-2 overflow-x-auto rounded bg-current/8 p-3 text-xs"}},code:{props:{className:"rounded bg-current/10 px-1 [pre_&]:p-0 [pre_&]:bg-transparent"}},table:{props:{className:"my-2 block overflow-x-auto text-xs"}},th:{props:{className:"border px-2 py-1 text-left font-medium"}},td:{props:{className:"border px-2 py-1"}},hr:{props:{className:"my-3"}},a:hP,img:gP,input:xP}};function $i({text:e,className:t,preview:a=!1}){return A("div",{className:we("min-w-0 break-words",a&&"max-h-[2lh] overflow-hidden [&_*]:my-0 [&_*]:text-[length:inherit] [&_*]:normal-case [&_*]:tracking-normal [&_pre]:p-0 [&_pre]:bg-transparent",t),children:A(lT,{options:vP,children:e})})}var CP=new Set(["orphaned","stray","unrecorded","unknown"]);function sT({tasks:e}){let[t,a]=J(null);if(e.length===0)return j("p",{className:"text-muted-foreground text-sm",children:["No tasks: ",A("code",{children:"arbor add <task>"})," starts one."]});return j(hl,{children:[A("ul",{className:"flex flex-col",children:e.map((o)=>A("li",{children:j("button",{type:"button",onClick:()=>a(o),className:"-mx-2 flex w-[calc(100%+1rem)] items-center gap-3 rounded-lg px-2 py-2 text-left hover:bg-muted",children:[A("span",{className:"min-w-0 flex-1 truncate text-sm",children:o.task}),A(yP,{status:o.status}),A(bP,{plan:o.plan})]})},o.task))}),A(Wi,{open:t!==null,onOpenChange:(o)=>{if(!o)a(null)},children:t&&A(pv,{task:t})})]})}function yP({status:e}){if(e==="escalated")return A(Ex,{variant:"secondary",children:"escalated"});if(CP.has(e))return A(Ex,{variant:"destructive",children:e});return null}function bP({plan:e}){let t=e===null?null:pA(e);return t&&A(LP,{...t})}function LP({done:e,total:t}){return j("span",{className:"flex w-28 shrink-0 items-center gap-2",children:[A(dA,{value:e,max:t,"aria-label":"progress",className:"flex-1"}),j("span",{className:"w-8 text-right text-muted-foreground text-xs tabular-nums",children:[e,"/",t]})]})}function pv({task:e}){let t=[["status",e.status],["branch",e.branch],["base",e.base],["worktree",e.worktree],["lease",e.lease],["commits",String(e.ahead??"?")],["diff",e.added===null?"?":j("span",{className:"tabular-nums",children:[j("span",{className:"text-success",children:["+",e.added]})," ",j("span",{className:"text-destructive",children:["-",e.removed??0]})]},"diff")],["age",e.age??"?"]];return j(_d,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-xl",children:[j(Vd,{children:[A(Gd,{children:e.task}),A(Xd,{children:e.escalation??e.status})]}),j("div",{className:"flex min-w-0 flex-col gap-6 text-sm",children:[A("dl",{className:"grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1",children:t.map(([a,o])=>j("div",{className:"contents",children:[A("dt",{className:"text-muted-foreground",children:a}),A("dd",{className:"truncate",children:o})]},a))}),e.plan===null?A("p",{className:"text-muted-foreground",children:"No ARBOR.md: whoever picks this up starts from the diff."}):A($i,{text:e.plan.replace(/^\s*#\s[^\n]*/,"")}),e.planProblems.length>0&&A("ul",{className:"flex flex-col gap-1 text-muted-foreground text-xs",children:e.planProblems.map((a)=>A("li",{children:a},a))})]})]})}W();W();function iT(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Le(()=>(o)=>{t.forEach((r)=>r(o))},t)}var ec=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fl(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ip(e){return"nodeType"in e}function Na(e){var t,a;if(!e)return window;if(Fl(e))return e;if(!ip(e))return window;return(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window}function cp(e){let{Document:t}=Na(e);return e instanceof t}function cu(e){if(Fl(e))return!1;return e instanceof Na(e).HTMLElement}function hv(e){return e instanceof Na(e).SVGElement}function Ul(e){if(!e)return document;if(Fl(e))return e.document;if(!ip(e))return document;if(cp(e))return e;if(cu(e)||hv(e))return e.ownerDocument;return document}var io=ec?Pr:ce;function tc(e){let t=z(e);return io(()=>{t.current=e}),dt(function(){for(var a=arguments.length,o=Array(a),r=0;r<a;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function cT(){let e=z(null),t=dt((o,r)=>{e.current=setInterval(o,r)},[]),a=dt(()=>{if(e.current!==null)clearInterval(e.current),e.current=null},[]);return[t,a]}function fu(e,t){if(t===void 0)t=[e];let a=z(e);return io(()=>{if(a.current!==e)a.current=e},t),a}function du(e,t){let a=z();return Le(()=>{let o=e(a.current);return a.current=o,o},[...t])}function ac(e){let t=tc(e),a=z(null),o=dt((r)=>{if(r!==a.current)t==null||t(r,a.current);a.current=r},[]);return[a,o]}function oc(e){let t=z();return ce(()=>{t.current=e},[e]),t.current}var mv={};function ql(e,t){return Le(()=>{if(t)return t;let a=mv[e]==null?0:mv[e]+1;return mv[e]=a,e+"-"+a},[e,t])}function fT(e){return function(t){for(var a=arguments.length,o=Array(a>1?a-1:0),r=1;r<a;r++)o[r-1]=arguments[r];return o.reduce((n,l)=>{let s=Object.entries(l);for(let[u,i]of s){let c=n[u];if(c!=null)n[u]=c+e*i}return n},{...t})}}var Hl=fT(1),_l=fT(-1);function SP(e){return"clientX"in e&&"clientY"in e}function pu(e){if(!e)return!1;let{KeyboardEvent:t}=Na(e.target);return t&&e instanceof t}function IP(e){if(!e)return!1;let{TouchEvent:t}=Na(e.target);return t&&e instanceof t}function mu(e){if(IP(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}if(SP(e))return{x:e.clientX,y:e.clientY};return null}var Xo=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(!e)return;return[Xo.Translate.toString(e),Xo.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:o}=e;return t+" "+a+"ms "+o}}}),uT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dT(e){if(e.matches(uT))return e;return e.querySelector(uT)}W();var AP={display:"none"};function pT(e){let{id:t,value:a}=e;return at("div",{id:t,style:AP},a)}function mT(e){let{id:t,announcement:a,ariaLiveType:o="assertive"}=e,r={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 at("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},a)}function hT(){let[e,t]=J("");return{announce:dt((o)=>{if(o!=null)t(o)},[]),announcement:e}}var DT=Ue(null);function TP(e){let t=Be(DT);ce(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wP(){let[e]=J(()=>new Set),t=dt((o)=>(e.add(o),()=>e.delete(o)),[e]);return[dt((o)=>{let{type:r,event:n}=o;e.forEach((l)=>{var s;return(s=l[r])==null?void 0:s.call(l,n)})},[e]),t]}var RP={draggable:`
65
+ To pick up a draggable item, press the space bar.
66
+ While dragging, use the arrow keys to move the item.
67
+ Press space again to drop the item in its new position, or press escape to cancel.
68
+ `},DP={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was moved over droppable area "+a.id+".";return"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was dropped over droppable area "+a.id;return"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function kP(e){let{announcements:t=DP,container:a,hiddenTextDescribedById:o,screenReaderInstructions:r=RP}=e,{announce:n,announcement:l}=hT(),s=ql("DndLiveRegion"),[u,i]=J(!1);if(ce(()=>{i(!0)},[]),TP(Le(()=>({onDragStart(d){let{active:f}=d;n(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;if(t.onDragMove)n(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;n(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;n(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;n(t.onDragCancel({active:f,over:p}))}}),[n,t])),!u)return null;let c=at(ya,null,at(pT,{id:o,value:r.draggable}),at(mT,{id:s,announcement:l}));return a?Fr(c,a):c}var da;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(da||(da={}));function dp(){}function mp(e,t){return Le(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function kT(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Le(()=>[...t].filter((o)=>o!=null),[...t])}var jo=Object.freeze({x:0,y:0});function ET(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function EP(e,t){let a=mu(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function MT(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function MP(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function gT(e){let{left:t,top:a,height:o,width:r}=e;return[{x:t,y:a},{x:t+r,y:a},{x:t,y:a+o},{x:t+r,y:a+o}]}function Lv(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}function xT(e,t,a){if(t===void 0)t=e.left;if(a===void 0)a=e.top;return{x:t+e.width*0.5,y:a+e.height*0.5}}var OT=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=xT(t,t.left,t.top),n=[];for(let l of o){let{id:s}=l,u=a.get(s);if(u){let i=ET(xT(u),r);n.push({id:s,data:{droppableContainer:l,value:i}})}}return n.sort(MT)},BT=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=gT(t),n=[];for(let l of o){let{id:s}=l,u=a.get(s);if(u){let i=gT(u),c=r.reduce((f,p,g)=>f+ET(i[g],p),0),d=Number((c/4).toFixed(4));n.push({id:s,data:{droppableContainer:l,value:d}})}}return n.sort(MT)};function OP(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),n=Math.min(t.top+t.height,e.top+e.height),l=r-o,s=n-a;if(o<r&&a<n){let u=t.width*t.height,i=e.width*e.height,c=l*s,d=c/(u+i-c);return Number(d.toFixed(4))}return 0}var BP=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,r=[];for(let n of o){let{id:l}=n,s=a.get(l);if(s){let u=OP(s,t);if(u>0)r.push({id:l,data:{droppableContainer:n,value:u}})}}return r.sort(MP)};function PP(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function PT(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jo}function NP(e){return function(a){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return r.reduce((l,s)=>({...l,top:l.top+e*s.y,bottom:l.bottom+e*s.y,left:l.left+e*s.x,right:l.right+e*s.x}),{...a})}}var zP=NP(1);function NT(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function FP(e,t,a){let o=NT(t);if(!o)return e;let{scaleX:r,scaleY:n,x:l,y:s}=o,u=e.left-l-(1-r)*parseFloat(a),i=e.top-s-(1-n)*parseFloat(a.slice(a.indexOf(" ")+1)),c=r?e.width/r:e.width,d=n?e.height/n:e.height;return{width:c,height:d,top:i,right:u+c,bottom:i+d,left:u}}var UP={ignoreTransform:!1};function Vl(e,t){if(t===void 0)t=UP;let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:i,transformOrigin:c}=Na(e).getComputedStyle(e);if(i)a=FP(a,i,c)}let{top:o,left:r,width:n,height:l,bottom:s,right:u}=a;return{top:o,left:r,width:n,height:l,bottom:s,right:u}}function vT(e){return Vl(e,{ignoreTransform:!0})}function qP(e){let{innerWidth:t,innerHeight:a}=e;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function HP(e,t){if(t===void 0)t=Na(e).getComputedStyle(e);return t.position==="fixed"}function _P(e,t){if(t===void 0)t=Na(e).getComputedStyle(e);let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((r)=>{let n=t[r];return typeof n==="string"?a.test(n):!1})}function lc(e,t){let a=[];function o(r){if(t!=null&&a.length>=t)return a;if(!r)return a;if(cp(r)&&r.scrollingElement!=null&&!a.includes(r.scrollingElement))return a.push(r.scrollingElement),a;if(!cu(r)||hv(r))return a;if(a.includes(r))return a;let n=Na(e).getComputedStyle(r);if(r!==e){if(_P(r,n))a.push(r)}if(HP(r,n))return a;return o(r.parentNode)}if(!e)return a;return o(e)}function zT(e){let[t]=lc(e,1);return t!=null?t:null}function gv(e){if(!ec||!e)return null;if(Fl(e))return e;if(!ip(e))return null;if(cp(e)||e===Ul(e).scrollingElement)return window;if(cu(e))return e;return null}function FT(e){if(Fl(e))return e.scrollX;return e.scrollLeft}function UT(e){if(Fl(e))return e.scrollY;return e.scrollTop}function Cv(e){return{x:FT(e),y:UT(e)}}var xa;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xa||(xa={}));function qT(e){if(!ec||!e)return!1;return e===document.scrollingElement}function HT(e){let t={x:0,y:0},a=qT(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},r=e.scrollTop<=t.y,n=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,s=e.scrollLeft>=o.x;return{isTop:r,isLeft:n,isBottom:l,isRight:s,maxScroll:o,minScroll:t}}var VP={x:0.2,y:0.2};function GP(e,t,a,o,r){let{top:n,left:l,right:s,bottom:u}=a;if(o===void 0)o=10;if(r===void 0)r=VP;let{isTop:i,isBottom:c,isLeft:d,isRight:f}=HT(e),p={x:0,y:0},g={x:0,y:0},v={height:t.height*r.y,width:t.width*r.x};if(!i&&n<=t.top+v.height)p.y=xa.Backward,g.y=o*Math.abs((t.top+v.height-n)/v.height);else if(!c&&u>=t.bottom-v.height)p.y=xa.Forward,g.y=o*Math.abs((t.bottom-v.height-u)/v.height);if(!f&&s>=t.right-v.width)p.x=xa.Forward,g.x=o*Math.abs((t.right-v.width-s)/v.width);else if(!d&&l<=t.left+v.width)p.x=xa.Backward,g.x=o*Math.abs((t.left+v.width-l)/v.width);return{direction:p,speed:g}}function XP(e){if(e===document.scrollingElement){let{innerWidth:n,innerHeight:l}=window;return{top:0,left:0,right:n,bottom:l,width:n,height:l}}let{top:t,left:a,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function _T(e){return e.reduce((t,a)=>Hl(t,Cv(a)),jo)}function jP(e){return e.reduce((t,a)=>t+FT(a),0)}function YP(e){return e.reduce((t,a)=>t+UT(a),0)}function VT(e,t){if(t===void 0)t=Vl;if(!e)return;let{top:a,left:o,bottom:r,right:n}=t(e);if(!zT(e))return;if(r<=0||n<=0||a>=window.innerHeight||o>=window.innerWidth)e.scrollIntoView({block:"center",inline:"center"})}var WP=[["x",["left","right"],jP],["y",["top","bottom"],YP]];class hp{constructor(e,t){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;let a=lc(t),o=_T(a);this.rect={...e},this.width=e.width,this.height=e.height;for(let[r,n,l]of WP)for(let s of n)Object.defineProperty(this,s,{get:()=>{let u=l(a),i=o[r]-u;return this.rect[s]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class hu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((t)=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...t)})},this.target=e}add(e,t,a){var o;(o=this.target)==null||o.addEventListener(e,t,a),this.listeners.push([e,t,a])}}function KP(e){let{EventTarget:t}=Na(e);return e instanceof t?e:Ul(e)}function xv(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);if(typeof t==="number")return Math.sqrt(a**2+o**2)>t;if("x"in t&&"y"in t)return a>t.x&&o>t.y;if("x"in t)return a>t.x;if("y"in t)return o>t.y;return!1}var Oo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Oo||(Oo={}));function CT(e){e.preventDefault()}function ZP(e){e.stopPropagation()}var Je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Je||(Je={}));var GT={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter,Je.Tab]},QP=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case Je.Right:return{...a,x:a.x+25};case Je.Left:return{...a,x:a.x-25};case Je.Down:return{...a,y:a.y+25};case Je.Up:return{...a,y:a.y-25}}return};class sc{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new hu(Ul(t)),this.windowListeners=new hu(Na(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Oo.Resize,this.handleCancel),this.windowListeners.add(Oo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Oo.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,a=e.node.current;if(a)VT(a);t(jo)}handleKeyDown(e){if(pu(e)){let{active:t,context:a,options:o}=this.props,{keyboardCodes:r=GT,coordinateGetter:n=QP,scrollBehavior:l="smooth"}=o,{code:s}=e;if(r.end.includes(s)){this.handleEnd(e);return}if(r.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:u}=a.current,i=u?{x:u.left,y:u.top}:jo;if(!this.referenceCoordinates)this.referenceCoordinates=i;let c=n(e,{active:t,context:a.current,currentCoordinates:i});if(c){let d=_l(c,i),f={x:0,y:0},{scrollableAncestors:p}=a.current;for(let g of p){let v=e.code,{isTop:L,isRight:m,isLeft:h,isBottom:x,maxScroll:C,minScroll:I}=HT(g),b=XP(g),S={x:Math.min(v===Je.Right?b.right-b.width/2:b.right,Math.max(v===Je.Right?b.left:b.left+b.width/2,c.x)),y:Math.min(v===Je.Down?b.bottom-b.height/2:b.bottom,Math.max(v===Je.Down?b.top:b.top+b.height/2,c.y))},y=v===Je.Right&&!m||v===Je.Left&&!h,T=v===Je.Down&&!x||v===Je.Up&&!L;if(y&&S.x!==c.x){let w=g.scrollLeft+d.x,D=v===Je.Right&&w<=C.x||v===Je.Left&&w>=I.x;if(D&&!d.y){g.scrollTo({left:w,behavior:l});return}if(D)f.x=g.scrollLeft-w;else f.x=v===Je.Right?g.scrollLeft-C.x:g.scrollLeft-I.x;if(f.x)g.scrollBy({left:-f.x,behavior:l});break}else if(T&&S.y!==c.y){let w=g.scrollTop+d.y,D=v===Je.Down&&w<=C.y||v===Je.Up&&w>=I.y;if(D&&!d.x){g.scrollTo({top:w,behavior:l});return}if(D)f.y=g.scrollTop-w;else f.y=v===Je.Down?g.scrollTop-C.y:g.scrollTop-I.y;if(f.y)g.scrollBy({top:-f.y,behavior:l});break}}this.handleMove(e,Hl(_l(c,this.referenceCoordinates),f))}}}handleMove(e,t){let{onMove:a}=this.props;e.preventDefault(),a(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}sc.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=GT,onActivation:r}=t,{active:n}=a,{code:l}=e.nativeEvent;if(o.start.includes(l)){let s=n.activatorNode.current;if(s&&e.target!==s)return!1;return e.preventDefault(),r==null||r({event:e.nativeEvent}),!0}return!1}}];function yT(e){return Boolean(e&&"distance"in e)}function bT(e){return Boolean(e&&"delay"in e)}class gp{constructor(e,t,a){var o;if(a===void 0)a=KP(e.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=e,this.events=t;let{event:r}=e,{target:n}=r;this.props=e,this.events=t,this.document=Ul(n),this.documentListeners=new hu(this.document),this.listeners=new hu(a),this.windowListeners=new hu(Na(n)),this.initialCoordinates=(o=mu(r))!=null?o:jo,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(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:a}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel)this.listeners.add(e.cancel.name,this.handleCancel);if(this.windowListeners.add(Oo.Resize,this.handleCancel),this.windowListeners.add(Oo.DragStart,CT),this.windowListeners.add(Oo.VisibilityChange,this.handleCancel),this.windowListeners.add(Oo.ContextMenu,CT),this.documentListeners.add(Oo.Keydown,this.handleKeydown),t){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(bT(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(yT(t)){this.handlePending(t);return}}this.handleStart()}detach(){if(this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null)clearTimeout(this.timeoutId),this.timeoutId=null}handlePending(e,t){let{active:a,onPending:o}=this.props;o(a,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;if(e)this.activated=!0,this.documentListeners.add(Oo.Click,ZP,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Oo.SelectionChange,this.removeTextSelection),t(e)}handleMove(e){var t;let{activated:a,initialCoordinates:o,props:r}=this,{onMove:n,options:{activationConstraint:l}}=r;if(!o)return;let s=(t=mu(e))!=null?t:jo,u=_l(o,s);if(!a&&l){if(yT(l)){if(l.tolerance!=null&&xv(u,l.tolerance))return this.handleCancel();if(xv(u,l.distance))return this.handleStart()}if(bT(l)){if(xv(u,l.tolerance))return this.handleCancel()}this.handlePending(l,u);return}if(e.cancelable)e.preventDefault();n(s)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleKeydown(e){if(e.code===Je.Esc)this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}var JP={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Sv extends gp{constructor(e){let{event:t}=e,a=Ul(t.target);super(e,JP,a)}}Sv.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(!a.isPrimary||a.button!==0)return!1;return o==null||o({event:a}),!0}}];var $P={move:{name:"mousemove"},end:{name:"mouseup"}},yv;(function(e){e[e.RightClick=2]="RightClick"})(yv||(yv={}));class xp extends gp{constructor(e){super(e,$P,Ul(e.event.target))}}xp.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(a.button===yv.RightClick)return!1;return o==null||o({event:a}),!0}}];var vv={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class vp extends gp{constructor(e){super(e,vv)}static setup(){return window.addEventListener(vv.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vv.move.name,e)};function e(){}}}vp.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:r}=a;if(r.length>1)return!1;return o==null||o({event:a}),!0}}];var rc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(rc||(rc={}));var pp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(pp||(pp={}));function eN(e){let{acceleration:t,activator:a=rc.Pointer,canScroll:o,draggingRect:r,enabled:n,interval:l=5,order:s=pp.TreeOrder,pointerCoordinates:u,scrollableAncestors:i,scrollableAncestorRects:c,delta:d,threshold:f}=e,p=aN({delta:d,disabled:!n}),[g,v]=cT(),L=z({x:0,y:0}),m=z({x:0,y:0}),h=Le(()=>{switch(a){case rc.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case rc.DraggableRect:return r}},[a,r,u]),x=z(null),C=dt(()=>{let b=x.current;if(!b)return;let S=L.current.x*m.current.x,y=L.current.y*m.current.y;b.scrollBy(S,y)},[]),I=Le(()=>s===pp.TreeOrder?[...i].reverse():i,[s,i]);ce(()=>{if(!n||!i.length||!h){v();return}for(let b of I){if((o==null?void 0:o(b))===!1)continue;let S=i.indexOf(b),y=c[S];if(!y)continue;let{direction:T,speed:w}=GP(b,y,h,t,f);for(let D of["x","y"])if(!p[D][T[D]])w[D]=0,T[D]=0;if(w.x>0||w.y>0){v(),x.current=b,g(C,l),L.current=w,m.current=T;return}}L.current={x:0,y:0},m.current={x:0,y:0},v()},[t,C,o,v,n,l,JSON.stringify(h),JSON.stringify(p),g,i,I,c,JSON.stringify(f)])}var tN={x:{[xa.Backward]:!1,[xa.Forward]:!1},y:{[xa.Backward]:!1,[xa.Forward]:!1}};function aN(e){let{delta:t,disabled:a}=e,o=oc(t);return du((r)=>{if(a||!o||!r)return tN;let n={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[xa.Backward]:r.x[xa.Backward]||n.x===-1,[xa.Forward]:r.x[xa.Forward]||n.x===1},y:{[xa.Backward]:r.y[xa.Backward]||n.y===-1,[xa.Forward]:r.y[xa.Forward]||n.y===1}}},[a,t,o])}function oN(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return du((r)=>{var n;if(t==null)return null;return(n=o!=null?o:r)!=null?n:null},[o,t])}function rN(e,t){return Le(()=>e.reduce((a,o)=>{let{sensor:r}=o,n=r.activators.map((l)=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...a,...n]},[]),[e,t])}var nc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(nc||(nc={}));var bv;(function(e){e.Optimized="optimized"})(bv||(bv={}));var LT=new Map;function nN(e,t){let{dragging:a,dependencies:o,config:r}=t,[n,l]=J(null),{frequency:s,measure:u,strategy:i}=r,c=z(e),d=L(),f=fu(d),p=dt(function(m){if(m===void 0)m=[];if(f.current)return;l((h)=>{if(h===null)return m;return h.concat(m.filter((x)=>!h.includes(x)))})},[f]),g=z(null),v=du((m)=>{if(d&&!a)return LT;if(!m||m===LT||c.current!==e||n!=null){let h=new Map;for(let x of e){if(!x)continue;if(n&&n.length>0&&!n.includes(x.id)&&x.rect.current){h.set(x.id,x.rect.current);continue}let C=x.node.current,I=C?new hp(u(C),C):null;if(x.rect.current=I,I)h.set(x.id,I)}return h}return m},[e,n,a,d,u]);return ce(()=>{c.current=e},[e]),ce(()=>{if(d)return;p()},[a,d]),ce(()=>{if(n&&n.length>0)l(null)},[JSON.stringify(n)]),ce(()=>{if(d||typeof s!=="number"||g.current!==null)return;g.current=setTimeout(()=>{p(),g.current=null},s)},[s,d,p,...o]),{droppableRects:v,measureDroppableContainers:p,measuringScheduled:n!=null};function L(){switch(i){case nc.Always:return!1;case nc.BeforeDragging:return a;default:return!a}}}function Iv(e,t){return du((a)=>{if(!e)return null;if(a)return a;return typeof t==="function"?t(e):e},[t,e])}function lN(e,t){return Iv(e,t)}function sN(e){let{callback:t,disabled:a}=e,o=tc(t),r=Le(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:n}=window;return new n(o)},[o,a]);return ce(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Cp(e){let{callback:t,disabled:a}=e,o=tc(t),r=Le(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:n}=window;return new n(o)},[a]);return ce(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function uN(e){return new hp(Vl(e),e)}function ST(e,t,a){if(t===void 0)t=uN;let[o,r]=J(null);function n(){r((u)=>{if(!e)return null;if(e.isConnected===!1){var i;return(i=u!=null?u:a)!=null?i:null}let c=t(e);if(JSON.stringify(u)===JSON.stringify(c))return u;return c})}let l=sN({callback(u){if(!e)return;for(let i of u){let{type:c,target:d}=i;if(c==="childList"&&d instanceof HTMLElement&&d.contains(e)){n();break}}}}),s=Cp({callback:n});return io(()=>{if(n(),e)s==null||s.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0});else s==null||s.disconnect(),l==null||l.disconnect()},[e]),o}function iN(e){let t=Iv(e);return PT(e,t)}var IT=[];function cN(e){let t=z(e),a=du((o)=>{if(!e)return IT;if(o&&o!==IT&&e&&t.current&&e.parentNode===t.current.parentNode)return o;return lc(e)},[e]);return ce(()=>{t.current=e},[e]),a}function fN(e){let[t,a]=J(null),o=z(e),r=dt((n)=>{let l=gv(n.target);if(!l)return;a((s)=>{if(!s)return null;return s.set(l,Cv(l)),new Map(s)})},[]);return ce(()=>{let n=o.current;if(e!==n){l(n);let s=e.map((u)=>{let i=gv(u);if(i)return i.addEventListener("scroll",r,{passive:!0}),[i,Cv(i)];return null}).filter((u)=>u!=null);a(s.length?new Map(s):null),o.current=e}return()=>{l(e),l(n)};function l(s){s.forEach((u)=>{let i=gv(u);i==null||i.removeEventListener("scroll",r)})}},[r,e]),Le(()=>{if(e.length)return t?Array.from(t.values()).reduce((n,l)=>Hl(n,l),jo):_T(e);return jo},[e,t])}function AT(e,t){if(t===void 0)t=[];let a=z(null);return ce(()=>{a.current=null},t),ce(()=>{let o=e!==jo;if(o&&!a.current)a.current=e;if(!o&&a.current)a.current=null},[e]),a.current?_l(e,a.current):jo}function dN(e){ce(()=>{if(!ec)return;let t=e.map((a)=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a==null||a()}},e.map((t)=>{let{sensor:a}=t;return a}))}function pN(e,t){return Le(()=>e.reduce((a,o)=>{let{eventName:r,handler:n}=o;return a[r]=(l)=>{n(l,t)},a},{}),[e,t])}function XT(e){return Le(()=>e?qP(e):null,[e])}var TT=[];function mN(e,t){if(t===void 0)t=Vl;let[a]=e,o=XT(a?Na(a):null),[r,n]=J(TT);function l(){n(()=>{if(!e.length)return TT;return e.map((u)=>qT(u)?o:new hp(t(u),u))})}let s=Cp({callback:l});return io(()=>{s==null||s.disconnect(),l(),e.forEach((u)=>s==null?void 0:s.observe(u))},[e]),r}function jT(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return cu(t)?t:e}function hN(e){let{measure:t}=e,[a,o]=J(null),r=dt((i)=>{for(let{target:c}of i)if(cu(c)){o((d)=>{let f=t(c);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),n=Cp({callback:r}),l=dt((i)=>{let c=jT(i);if(n==null||n.disconnect(),c)n==null||n.observe(c);o(c?t(c):null)},[t,n]),[s,u]=ac(l);return Le(()=>({nodeRef:s,rect:a,setRef:u}),[a,s,u])}var gN=[{sensor:Sv,options:{}},{sensor:sc,options:{}}],xN={current:{}},fp={draggable:{measure:vT},droppable:{measure:vT,strategy:nc.WhileDragging,frequency:bv.Optimized},dragOverlay:{measure:Vl}};class gu extends Map{get(e){var t;return e!=null?(t=super.get(e))!=null?t:void 0:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e)=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,a;return(t=(a=this.get(e))==null?void 0:a.node.current)!=null?t:void 0}}var vN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new gu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:dp},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fp,measureDroppableContainers:dp,windowRect:null,measuringScheduled:!1},YT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:dp,draggableNodes:new Map,over:null,measureDroppableContainers:dp},uc=Ue(YT),WT=Ue(vN);function CN(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new gu}}}function yN(e,t){switch(t.type){case da.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case da.DragMove:if(e.draggable.active==null)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case da.DragEnd:case da.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case da.RegisterDroppable:{let{element:a}=t,{id:o}=a,r=new gu(e.droppable.containers);return r.set(o,a),{...e,droppable:{...e.droppable,containers:r}}}case da.SetDroppableDisabled:{let{id:a,key:o,disabled:r}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let l=new gu(e.droppable.containers);return l.set(a,{...n,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case da.UnregisterDroppable:{let{id:a,key:o}=t,r=e.droppable.containers.get(a);if(!r||o!==r.key)return e;let n=new gu(e.droppable.containers);return n.delete(a),{...e,droppable:{...e.droppable,containers:n}}}default:return e}}function bN(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:r}=Be(uc),n=oc(o),l=oc(a==null?void 0:a.id);return ce(()=>{if(t)return;if(!o&&n&&l!=null){if(!pu(n))return;if(document.activeElement===n.target)return;let s=r.get(l);if(!s)return;let{activatorNode:u,node:i}=s;if(!u.current&&!i.current)return;requestAnimationFrame(()=>{for(let c of[u.current,i.current]){if(!c)continue;let d=dT(c);if(d){d.focus();break}}})}},[o,t,r,l,n]),null}function KT(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((r,n)=>n({transform:r,...o}),a):a}function LN(e){return Le(()=>({draggable:{...fp.draggable,...e==null?void 0:e.draggable},droppable:{...fp.droppable,...e==null?void 0:e.droppable},dragOverlay:{...fp.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function SN(e){let{activeNode:t,measure:a,initialRect:o,config:r=!0}=e,n=z(!1),{x:l,y:s}=typeof r==="boolean"?{x:r,y:r}:r;io(()=>{if(!l&&!s||!t){n.current=!1;return}if(n.current||!o)return;let i=t==null?void 0:t.node.current;if(!i||i.isConnected===!1)return;let c=a(i),d=PT(c,o);if(!l)d.x=0;if(!s)d.y=0;if(n.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let f=zT(i);if(f)f.scrollBy({top:d.y,left:d.x})}},[t,l,s,o,a])}var yp=Ue({...jo,scaleX:1,scaleY:1}),Pn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Pn||(Pn={}));var ZT=Lu(function(t){var a,o,r,n;let{id:l,accessibility:s,autoScroll:u=!0,children:i,sensors:c=gN,collisionDetection:d=BP,measuring:f,modifiers:p,...g}=t,v=Ic(yN,void 0,CN),[L,m]=v,[h,x]=wP(),[C,I]=J(Pn.Uninitialized),b=C===Pn.Initialized,{draggable:{active:S,nodes:y,translate:T},droppable:{containers:w}}=L,D=S!=null?y.get(S):null,M=z({initial:null,translated:null}),R=Le(()=>{var vt;return S!=null?{id:S,data:(vt=D==null?void 0:D.data)!=null?vt:xN,rect:M}:null},[S,D]),B=z(null),[H,k]=J(null),[_,le]=J(null),V=fu(g,Object.values(g)),P=ql("DndDescribedBy",l),fe=Le(()=>w.getEnabled(),[w]),Re=LN(f),{droppableRects:Te,measureDroppableContainers:U,measuringScheduled:Y}=nN(fe,{dragging:b,dependencies:[T.x,T.y],config:Re.droppable}),K=oN(y,S),ae=Le(()=>_?mu(_):null,[_]),ue=xt(),ee=lN(K,Re.draggable.measure);SN({activeNode:S!=null?y.get(S):null,config:ue.layoutShiftCompensation,initialRect:ee,measure:Re.draggable.measure});let re=ST(K,Re.draggable.measure,ee),ve=ST(K?K.parentElement:null),ie=z({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:w,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Z=w.getNodeFor((a=ie.current.over)==null?void 0:a.id),xe=hN({measure:Re.dragOverlay.measure}),Ie=(o=xe.nodeRef.current)!=null?o:K,Ae=b?(r=xe.rect)!=null?r:re:null,ne=Boolean(xe.nodeRef.current&&xe.rect),ke=iN(ne?null:re),oe=XT(Ie?Na(Ie):null),Se=cN(b?Z!=null?Z:K:null),Pe=mN(Se),Xe=KT(p,{transform:{x:T.x-ke.x,y:T.y-ke.y,scaleX:1,scaleY:1},activatorEvent:_,active:R,activeNodeRect:re,containerNodeRect:ve,draggingNodeRect:Ae,over:ie.current.over,overlayNodeRect:xe.rect,scrollableAncestors:Se,scrollableAncestorRects:Pe,windowRect:oe}),G=ae?Hl(ae,T):null,he=fN(Se),me=AT(he),q=AT(he,[re]),F=Hl(Xe,me),Q=Ae?zP(Ae,Xe):null,N=R&&Q?d({active:R,collisionRect:Q,droppableRects:Te,droppableContainers:fe,pointerCoordinates:G}):null,Bt=Lv(N,"id"),[De,gt]=J(null),be=ne?Xe:Hl(Xe,q),tt=PP(be,(n=De==null?void 0:De.rect)!=null?n:null,re),At=z(null),St=dt((vt,ea)=>{let{sensor:qt,options:Ta}=ea;if(B.current==null)return;let Kt=y.get(B.current);if(!Kt)return;let Nt=vt.nativeEvent,wt=new qt({active:B.current,activeNode:Kt,event:Nt,options:Ta,context:ie,onAbort(zt){if(!y.get(zt))return;let{onDragAbort:_t}=V.current,Bo={id:zt};_t==null||_t(Bo),h({type:"onDragAbort",event:Bo})},onPending(zt,wa,_t,Bo){if(!y.get(zt))return;let{onDragPending:co}=V.current,Vt={id:zt,constraint:wa,initialCoordinates:_t,offset:Bo};co==null||co(Vt),h({type:"onDragPending",event:Vt})},onStart(zt){let wa=B.current;if(wa==null)return;let _t=y.get(wa);if(!_t)return;let{onDragStart:Bo}=V.current,Nn={activatorEvent:Nt,active:{id:wa,data:_t.data,rect:M}};Jl(()=>{Bo==null||Bo(Nn),I(Pn.Initializing),m({type:da.DragStart,initialCoordinates:zt,active:wa}),h({type:"onDragStart",event:Nn}),k(At.current),le(Nt)})},onMove(zt){m({type:da.DragMove,coordinates:zt})},onEnd:Ca(da.DragEnd),onCancel:Ca(da.DragCancel)});At.current=wt;function Ca(zt){return async function(){let{active:_t,collisions:Bo,over:Nn,scrollAdjustedTranslate:co}=ie.current,Vt=null;if(_t&&co){let{cancelDrop:fo}=V.current;if(Vt={activatorEvent:Nt,active:_t,collisions:Bo,delta:co,over:Nn},zt===da.DragEnd&&typeof fo==="function"){if(await Promise.resolve(fo(Vt)))zt=da.DragCancel}}B.current=null,Jl(()=>{m({type:zt}),I(Pn.Uninitialized),gt(null),k(null),le(null),At.current=null;let fo=zt===da.DragEnd?"onDragEnd":"onDragCancel";if(Vt){let vu=V.current[fo];vu==null||vu(Vt),h({type:fo,event:Vt})}})}}},[y]),Pt=dt((vt,ea)=>(qt,Ta)=>{let Kt=qt.nativeEvent,Nt=y.get(Ta);if(B.current!==null||!Nt||Kt.dndKit||Kt.defaultPrevented)return;let wt={active:Nt};if(vt(qt,ea.options,wt)===!0)Kt.dndKit={capturedBy:ea.sensor},B.current=Ta,St(qt,ea)},[y,St]),Tt=rN(c,Pt);dN(c),io(()=>{if(re&&C===Pn.Initializing)I(Pn.Initialized)},[re,C]),ce(()=>{let{onDragMove:vt}=V.current,{active:ea,activatorEvent:qt,collisions:Ta,over:Kt}=ie.current;if(!ea||!qt)return;let Nt={active:ea,activatorEvent:qt,collisions:Ta,delta:{x:F.x,y:F.y},over:Kt};Jl(()=>{vt==null||vt(Nt),h({type:"onDragMove",event:Nt})})},[F.x,F.y]),ce(()=>{let{active:vt,activatorEvent:ea,collisions:qt,droppableContainers:Ta,scrollAdjustedTranslate:Kt}=ie.current;if(!vt||B.current==null||!ea||!Kt)return;let{onDragOver:Nt}=V.current,wt=Ta.get(Bt),Ca=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,zt={active:vt,activatorEvent:ea,collisions:qt,delta:{x:Kt.x,y:Kt.y},over:Ca};Jl(()=>{gt(Ca),Nt==null||Nt(zt),h({type:"onDragOver",event:zt})})},[Bt]),io(()=>{ie.current={activatorEvent:_,active:R,activeNode:K,collisionRect:Q,collisions:N,droppableRects:Te,draggableNodes:y,draggingNode:Ie,draggingNodeRect:Ae,droppableContainers:w,over:De,scrollableAncestors:Se,scrollAdjustedTranslate:F},M.current={initial:Ae,translated:Q}},[R,K,N,Q,y,Ie,Ae,Te,w,De,Se,F]),eN({...ue,delta:T,draggingRect:Q,pointerCoordinates:G,scrollableAncestors:Se,scrollableAncestorRects:Pe});let za=Le(()=>({active:R,activeNode:K,activeNodeRect:re,activatorEvent:_,collisions:N,containerNodeRect:ve,dragOverlay:xe,draggableNodes:y,droppableContainers:w,droppableRects:Te,over:De,measureDroppableContainers:U,scrollableAncestors:Se,scrollableAncestorRects:Pe,measuringConfiguration:Re,measuringScheduled:Y,windowRect:oe}),[R,K,re,_,N,ve,xe,y,w,Te,De,U,Se,Pe,Re,Y,oe]),va=Le(()=>({activatorEvent:_,activators:Tt,active:R,activeNodeRect:re,ariaDescribedById:{draggable:P},dispatch:m,draggableNodes:y,over:De,measureDroppableContainers:U}),[_,Tt,R,re,m,P,y,De,U]);return at(DT.Provider,{value:x},at(uc.Provider,{value:va},at(WT.Provider,{value:za},at(yp.Provider,{value:tt},i)),at(bN,{disabled:(s==null?void 0:s.restoreFocus)===!1})),at(kP,{...s,hiddenTextDescribedById:P}));function xt(){let vt=(H==null?void 0:H.autoScrollEnabled)===!1,ea=typeof u==="object"?u.enabled===!1:u===!1,qt=b&&!vt&&!ea;if(typeof u==="object")return{...u,enabled:qt};return{enabled:qt}}}),IN=Ue(null),wT="button",AN="Draggable";function QT(e){let{id:t,data:a,disabled:o=!1,attributes:r}=e,n=ql(AN),{activators:l,activatorEvent:s,active:u,activeNodeRect:i,ariaDescribedById:c,draggableNodes:d,over:f}=Be(uc),{role:p=wT,roleDescription:g="draggable",tabIndex:v=0}=r!=null?r:{},L=(u==null?void 0:u.id)===t,m=Be(L?yp:IN),[h,x]=ac(),[C,I]=ac(),b=pN(l,t),S=fu(a);io(()=>(d.set(t,{id:t,key:n,node:h,activatorNode:C,data:S}),()=>{let T=d.get(t);if(T&&T.key===n)d.delete(t)}),[d,t]);let y=Le(()=>({role:p,tabIndex:v,"aria-disabled":o,"aria-pressed":L&&p===wT?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[o,p,v,L,g,c.draggable]);return{active:u,activatorEvent:s,activeNodeRect:i,attributes:y,isDragging:L,listeners:o?void 0:b,node:h,over:f,setNodeRef:x,setActivatorNodeRef:I,transform:m}}function Av(){return Be(WT)}var TN="Droppable",wN={timeout:25};function JT(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:r}=e,n=ql(TN),{active:l,dispatch:s,over:u,measureDroppableContainers:i}=Be(uc),c=z({disabled:a}),d=z(!1),f=z(null),p=z(null),{disabled:g,updateMeasurementsFor:v,timeout:L}={...wN,...r},m=fu(v!=null?v:o),h=dt(()=>{if(!d.current){d.current=!0;return}if(p.current!=null)clearTimeout(p.current);p.current=setTimeout(()=>{i(Array.isArray(m.current)?m.current:[m.current]),p.current=null},L)},[L]),x=Cp({callback:h,disabled:g||!l}),C=dt((y,T)=>{if(!x)return;if(T)x.unobserve(T),d.current=!1;if(y)x.observe(y)},[x]),[I,b]=ac(C),S=fu(t);return ce(()=>{if(!x||!I.current)return;x.disconnect(),d.current=!1,x.observe(I.current)},[I,x]),ce(()=>(s({type:da.RegisterDroppable,element:{id:o,key:n,disabled:a,node:I,rect:f,data:S}}),()=>s({type:da.UnregisterDroppable,key:n,id:o})),[o]),ce(()=>{if(a!==c.current.disabled)s({type:da.SetDroppableDisabled,id:o,key:n,disabled:a}),c.current.disabled=a},[o,n,a,s]),{active:l,rect:f,isOver:(u==null?void 0:u.id)===o,node:I,over:u,setNodeRef:b}}function RN(e){let{animation:t,children:a}=e,[o,r]=J(null),[n,l]=J(null),s=oc(a);if(!a&&!o&&s)r(s);return io(()=>{if(!n)return;let u=o==null?void 0:o.key,i=o==null?void 0:o.props.id;if(u==null||i==null){r(null);return}Promise.resolve(t(i,n)).then(()=>{r(null)})},[t,o,n]),at(ya,null,a,o?Yl(o,{ref:l}):null)}var DN={x:0,y:0,scaleX:1,scaleY:1};function kN(e){let{children:t}=e;return at(uc.Provider,{value:YT},at(yp.Provider,{value:DN},t))}var EN={position:"fixed",touchAction:"none"},MN=(e)=>pu(e)?"transform 250ms ease":void 0,ON=Ce((e,t)=>{let{as:a,activatorEvent:o,adjustScale:r,children:n,className:l,rect:s,style:u,transform:i,transition:c=MN}=e;if(!s)return null;let d=r?i:{...i,scaleX:1,scaleY:1},f={...EN,width:s.width,height:s.height,top:s.top,left:s.left,transform:Xo.Transform.toString(d),transformOrigin:r&&o?EP(o,s):void 0,transition:typeof c==="function"?c(o):c,...u};return at(a,{className:l,style:f,ref:t},n)}),BN=(e)=>(t)=>{let{active:a,dragOverlay:o}=t,r={},{styles:n,className:l}=e;if(n!=null&&n.active)for(let[s,u]of Object.entries(n.active)){if(u===void 0)continue;r[s]=a.node.style.getPropertyValue(s),a.node.style.setProperty(s,u)}if(n!=null&&n.dragOverlay)for(let[s,u]of Object.entries(n.dragOverlay)){if(u===void 0)continue;o.node.style.setProperty(s,u)}if(l!=null&&l.active)a.node.classList.add(l.active);if(l!=null&&l.dragOverlay)o.node.classList.add(l.dragOverlay);return function(){for(let[u,i]of Object.entries(r))a.node.style.setProperty(u,i);if(l!=null&&l.active)a.node.classList.remove(l.active)}},PN=(e)=>{let{transform:{initial:t,final:a}}=e;return[{transform:Xo.Transform.toString(t)},{transform:Xo.Transform.toString(a)}]},NN={duration:250,easing:"ease",keyframes:PN,sideEffects:BN({styles:{active:{opacity:"0"}}})};function zN(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:r}=e;return tc((n,l)=>{if(t===null)return;let s=a.get(n);if(!s)return;let u=s.node.current;if(!u)return;let i=jT(l);if(!i)return;let{transform:c}=Na(l).getComputedStyle(l),d=NT(c);if(!d)return;let f=typeof t==="function"?t:FN(t);return VT(u,r.draggable.measure),f({active:{id:n,data:s.data,node:u,rect:r.draggable.measure(u)},draggableNodes:a,dragOverlay:{node:l,rect:r.dragOverlay.measure(i)},droppableContainers:o,measuringConfiguration:r,transform:d})})}function FN(e){let{duration:t,easing:a,sideEffects:o,keyframes:r}={...NN,...e};return(n)=>{let{active:l,dragOverlay:s,transform:u,...i}=n;if(!t)return;let c={x:s.rect.left-l.rect.left,y:s.rect.top-l.rect.top},d={scaleX:u.scaleX!==1?l.rect.width*u.scaleX/s.rect.width:1,scaleY:u.scaleY!==1?l.rect.height*u.scaleY/s.rect.height:1},f={x:u.x-c.x,y:u.y-c.y,...d},p=r({...i,active:l,dragOverlay:s,transform:{initial:u,final:f}}),[g]=p,v=p[p.length-1];if(JSON.stringify(g)===JSON.stringify(v))return;let L=o==null?void 0:o({active:l,dragOverlay:s,...i}),m=s.node.animate(p,{duration:t,easing:a,fill:"forwards"});return new Promise((h)=>{m.onfinish=()=>{L==null||L(),h()}})}}var RT=0;function UN(e){return Le(()=>{if(e==null)return;return RT++,RT},[e])}var $T=Lu((e)=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:r,transition:n,modifiers:l,wrapperElement:s="div",className:u,zIndex:i=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:g,droppableContainers:v,dragOverlay:L,over:m,measuringConfiguration:h,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:I}=Av(),b=Be(yp),S=UN(d==null?void 0:d.id),y=KT(l,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:L.rect,over:m,overlayNodeRect:L.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:b,windowRect:I}),T=Iv(f),w=zN({config:o,draggableNodes:g,droppableContainers:v,measuringConfiguration:h}),D=T?L.setRef:void 0;return at(kN,null,at(RN,{animation:w},d&&S?at(ON,{key:S,id:d.id,ref:D,as:s,activatorEvent:c,adjustScale:t,className:u,transition:n,rect:T,style:{zIndex:i,...r},transform:y},a):null))});function qN(e,t,a){let o={...e};if(t.top+e.y<=a.top)o.y=a.top-t.top;else if(t.bottom+e.y>=a.top+a.height)o.y=a.top+a.height-t.bottom;if(t.left+e.x<=a.left)o.x=a.left-t.left;else if(t.right+e.x>=a.left+a.width)o.x=a.left+a.width-t.right;return o}var ew=(e)=>{let{containerNodeRect:t,draggingNodeRect:a,transform:o}=e;if(!a||!t)return o;return qN(o,a,t)};var tw=(e)=>{let{transform:t}=e;return{...t,x:0}};W();function Ip(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function HN(e,t){return e.reduce((a,o,r)=>{let n=t.get(o);if(n)a[r]=n;return a},Array(e.length))}function bp(e){return e!==null&&e>=0}function _N(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function VN(e){if(typeof e==="boolean")return{draggable:e,droppable:e};return e}var aw=(e)=>{let{rects:t,activeIndex:a,overIndex:o,index:r}=e,n=Ip(t,o,a),l=t[r],s=n[r];if(!s||!l)return null;return{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}};var Lp={scaleX:1,scaleY:1},ow=(e)=>{var t;let{activeIndex:a,activeNodeRect:o,index:r,rects:n,overIndex:l}=e,s=(t=n[a])!=null?t:o;if(!s)return null;if(r===a){let i=n[l];if(!i)return null;return{x:0,y:a<l?i.top+i.height-(s.top+s.height):i.top-s.top,...Lp}}let u=GN(n,r,a);if(r>a&&r<=l)return{x:0,y:-s.height-u,...Lp};if(r<a&&r>=l)return{x:0,y:s.height+u,...Lp};return{x:0,y:0,...Lp}};function GN(e,t,a){let o=e[t],r=e[t-1],n=e[t+1];if(!o)return 0;if(a<t)return r?o.top-(r.top+r.height):n?n.top-(o.top+o.height):0;return n?n.top-(o.top+o.height):r?o.top-(r.top+r.height):0}var rw="Sortable",nw=Ue({activeIndex:-1,containerId:rw,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:aw,disabled:{draggable:!1,droppable:!1}});function lw(e){let{children:t,id:a,items:o,strategy:r=aw,disabled:n=!1}=e,{active:l,dragOverlay:s,droppableRects:u,over:i,measureDroppableContainers:c}=Av(),d=ql(rw,a),f=Boolean(s.rect!==null),p=Le(()=>o.map((b)=>typeof b==="object"&&("id"in b)?b.id:b),[o]),g=l!=null,v=l?p.indexOf(l.id):-1,L=i?p.indexOf(i.id):-1,m=z(p),h=!_N(p,m.current),x=L!==-1&&v===-1||h,C=VN(n);io(()=>{if(h&&g)c(p)},[h,p,g,c]),ce(()=>{m.current=p},[p]);let I=Le(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:x,items:p,overIndex:L,useDragOverlay:f,sortedRects:HN(p,u),strategy:r}),[v,d,C.draggable,C.droppable,x,p,L,u,f,r]);return at(nw.Provider,{value:I},t)}var XN=(e)=>{let{id:t,items:a,activeIndex:o,overIndex:r}=e;return Ip(a,o,r).indexOf(t)},jN=(e)=>{let{containerId:t,isSorting:a,wasDragging:o,index:r,items:n,newIndex:l,previousItems:s,previousContainerId:u,transition:i}=e;if(!i||!o)return!1;if(s!==n&&r===l)return!1;if(a)return!0;return l!==r&&t===u},YN={duration:200,easing:"ease"},sw="transform",WN=Xo.Transition.toString({property:sw,duration:0,easing:"linear"}),KN={roleDescription:"sortable"};function ZN(e){let{disabled:t,index:a,node:o,rect:r}=e,[n,l]=J(null),s=z(a);return io(()=>{if(!t&&a!==s.current&&o.current){let u=r.current;if(u){let i=Vl(o.current,{ignoreTransform:!0}),c={x:u.left-i.left,y:u.top-i.top,scaleX:u.width/i.width,scaleY:u.height/i.height};if(c.x||c.y)l(c)}}if(a!==s.current)s.current=a},[t,a,o,r]),ce(()=>{if(n)l(null)},[n]),n}function uw(e){let{animateLayoutChanges:t=jN,attributes:a,disabled:o,data:r,getNewIndex:n=XN,id:l,strategy:s,resizeObserverConfig:u,transition:i=YN}=e,{items:c,containerId:d,activeIndex:f,disabled:p,disableTransforms:g,sortedRects:v,overIndex:L,useDragOverlay:m,strategy:h}=Be(nw),x=QN(o,p),C=c.indexOf(l),I=Le(()=>({sortable:{containerId:d,index:C,items:c},...r}),[d,r,C,c]),b=Le(()=>c.slice(c.indexOf(l)),[c,l]),{rect:S,node:y,isOver:T,setNodeRef:w}=JT({id:l,data:I,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:b,...u}}),{active:D,activatorEvent:M,activeNodeRect:R,attributes:B,setNodeRef:H,listeners:k,isDragging:_,over:le,setActivatorNodeRef:V,transform:P}=QT({id:l,data:I,attributes:{...KN,...a},disabled:x.draggable}),fe=iT(w,H),Re=Boolean(D),Te=Re&&!g&&bp(f)&&bp(L),U=!m&&_,Y=U&&Te?P:null,K=s!=null?s:h,ae=Te?Y!=null?Y:K({rects:v,activeNodeRect:R,activeIndex:f,overIndex:L,index:C}):null,ue=bp(f)&&bp(L)?n({id:l,items:c,activeIndex:f,overIndex:L}):C,ee=D==null?void 0:D.id,re=z({activeId:ee,items:c,newIndex:ue,containerId:d}),ve=c!==re.current.items,ie=t({active:D,containerId:d,isDragging:_,isSorting:Re,id:l,index:C,items:c,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:i,wasDragging:re.current.activeId!=null}),Z=ZN({disabled:!ie,index:C,node:y,rect:S});return ce(()=>{if(Re&&re.current.newIndex!==ue)re.current.newIndex=ue;if(d!==re.current.containerId)re.current.containerId=d;if(c!==re.current.items)re.current.items=c},[Re,ue,d,c]),ce(()=>{if(ee===re.current.activeId)return;if(ee!=null&&re.current.activeId==null){re.current.activeId=ee;return}let Ie=setTimeout(()=>{re.current.activeId=ee},50);return()=>clearTimeout(Ie)},[ee]),{active:D,activeIndex:f,attributes:B,data:I,rect:S,index:C,newIndex:ue,items:c,isOver:T,isSorting:Re,isDragging:_,listeners:k,node:y,overIndex:L,over:le,setNodeRef:fe,setActivatorNodeRef:V,setDroppableNodeRef:w,setDraggableNodeRef:H,transform:Z!=null?Z:ae,transition:xe()};function xe(){if(Z||ve&&re.current.newIndex===C)return WN;if(U&&!pu(M)||!i)return;if(Re||ie)return Xo.Transition.toString({...i,property:sw});return}}function QN(e,t){var a,o;if(typeof e==="boolean")return{draggable:e,droppable:!1};return{draggable:(a=e==null?void 0:e.draggable)!=null?a:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}function Sp(e){if(!e)return!1;let t=e.data.current;if(t&&"sortable"in t&&typeof t.sortable==="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)return!0;return!1}var JN=[Je.Down,Je.Right,Je.Up,Je.Left],iw=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:r,droppableContainers:n,over:l,scrollableAncestors:s}}=t;if(JN.includes(e.code)){if(e.preventDefault(),!a||!o)return;let u=[];n.getEnabled().forEach((d)=>{if(!d||d!=null&&d.disabled)return;let f=r.get(d.id);if(!f)return;switch(e.code){case Je.Down:if(o.top<f.top)u.push(d);break;case Je.Up:if(o.top>f.top)u.push(d);break;case Je.Left:if(o.left>f.left)u.push(d);break;case Je.Right:if(o.left<f.left)u.push(d);break}});let i=BT({active:a,collisionRect:o,droppableRects:r,droppableContainers:u,pointerCoordinates:null}),c=Lv(i,"id");if(c===(l==null?void 0:l.id)&&i.length>1)c=i[1].id;if(c!=null){let d=n.get(a.id),f=n.get(c),p=f?r.get(f.id):null,g=f==null?void 0:f.node.current;if(g&&p&&d&&f){let L=lc(g).some((b,S)=>s[S]!==b),m=cw(d,f),h=$N(d,f),x=L||!m?{x:0,y:0}:{x:h?o.width-p.width:0,y:h?o.height-p.height:0},C={x:p.left,y:p.top};return x.x&&x.y?C:_l(C,x)}}}return};function cw(e,t){if(!Sp(e)||!Sp(t))return!1;return e.data.current.sortable.containerId===t.data.current.sortable.containerId}function $N(e,t){if(!Sp(e)||!Sp(t))return!1;if(!cw(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}W();function fw({className:e,...t}){return A("div",{"data-slot":"empty",className:we("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...t})}function dw({className:e,...t}){return A("div",{"data-slot":"empty-header",className:we("flex max-w-sm flex-col items-center gap-2",e),...t})}var ez=kr("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});function pw({className:e,variant:t="default",...a}){return A("div",{"data-slot":"empty-icon","data-variant":t,className:we(ez({variant:t,className:e})),...a})}function mw({className:e,...t}){return A("div",{"data-slot":"empty-title",className:we("text-sm font-medium tracking-tight",e),...t})}function hw({className:e,...t}){return A("div",{"data-slot":"empty-description",className:we("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}W();W();var gw="data-valid",xw="data-invalid";var vw={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},az={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Cw={disabled:!1,...az},yw={valid(e){if(e===null)return null;if(e)return{[gw]:""};return{[xw]:""}}};var oz={invalid:void 0,name:void 0,validityData:{state:vw,errors:[],error:"",value:"",initialValue:null},setValidityData:Mt,disabled:void 0,setTouched:Mt,setDirty:Mt,setFilled:Mt,setFocused:Mt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Cw,registerFieldControl:Mt,validation:{getValidationProps:(e,t=na)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Mt,getInputControl:()=>null,commit:async()=>{},change:Mt}},rz=Ue(oz);function Ap(e=!0){let t=Be(rz);if(t.setValidityData===Mt&&!e)throw Error(ka(28));return t}W();var nz=Ue({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Mt,validationMode:"onSubmit",submitCountRef:{current:0}});function bw(){return Be(nz)}W();var lz=Ue({controlId:void 0,registerControlId:Mt,resetControlId:Mt,labelId:void 0,setLabelId:Mt,messageIds:[],setMessageIds:Mt,getDescriptionProps:(e)=>e});function Tp(){return Be(lz)}W();W();function Lw({controlled:e,default:t,name:a,state:o="value"}){let{current:r}=z(e!==void 0),[n,l]=J(t),s=r&&e!==void 0?e:n,u=dt((i)=>{if(!r)l(i)},[]);return[s,u]}function Sw(e,t,a,o,r=!0,n){let{registerFieldControl:l}=Ap(),s=Jt(()=>Symbol());ye(()=>{let u=s.current;if(!r){l(u,void 0);return}l(u,{controlRef:e,getValue:o,id:t,name:n,value:a})},[e,r,o,t,n,l,s,a]),ye(()=>{let u=s.current;return()=>{l(u,void 0)}},[l,s])}W();function Iw(e={}){let{id:t,enabled:a=!0}=e,{controlId:o,registerControlId:r,resetControlId:n}=Tp(),l=Qs(),s=Jt(()=>Symbol()),u=z(!1),i=z(!1),c=Qe(()=>{if(!u.current||r===Mt)return;u.current=!1,r(s.current,void 0)});return ye(()=>{if(!a||r===Mt){c();return}let d;if(t!==void 0)i.current=!0,d=t;else if(i.current)d=l;else{n();return}if(d===void 0){c();return}u.current=!0,r(s.current,d);return},[t,a,r,n,l,s,c]),ye(()=>c,[c]),(a?o:void 0)??t??l}var Aw=Ce(function(t,a){let{render:o,className:r,id:n,name:l,value:s,disabled:u=!1,onValueChange:i,defaultValue:c,autoFocus:d=!1,style:f,...p}=t,{state:g,name:v,disabled:L,setTouched:m,setDirty:h,validityData:x,setFocused:C,setFilled:I,validationMode:b,validation:S}=Ap(),{clearErrors:y,elementRef:T,submitCountRef:w}=bw(),D=L||u,M=v??l,R={...g,disabled:D},{labelId:B}=Tp(),H=Iw({id:n}),[k]=Lw({controlled:s,default:c,name:"FieldControl",state:"value"}),_=s!==void 0,le=_?k:void 0,V=le==null?void 0:String(le),P=Qe(()=>S.inputRef.current?.value);Sw(S.inputRef,H,V,P,!D,l),ye(()=>{let U=V??S.inputRef.current?.value;if(U!==void 0)I(U!=="")},[V,S.inputRef,I]),eA(V,()=>{if(V===void 0)return;y(M),h(V!==(x.initialValue??"")),S.change(V)});let fe=z(null),Re=ar();return ye(()=>{if(d&&fe.current===jt(et(fe.current)))C(!0)},[d,C]),Ge("input",t,{ref:[a,fe],state:R,props:[{id:H,disabled:D,name:M,ref:S.inputRef,"aria-labelledby":B,autoFocus:d,..._?{value:le}:{defaultValue:c},onChange(U){let Y=U.currentTarget.value,K=Ma(nI,U.nativeEvent);if(i?.(Y,K),_)return;if(h(Y!==(x.initialValue??"")),I(Y!==""),!U.nativeEvent.defaultPrevented&&!K.isCanceled)y(M),S.change(Y)},onFocus(){C(!0)},onBlur(U){if(m(!0),C(!1),b==="onBlur"){let Y=U.currentTarget.value;if(S.commit(Y),_)queueMicrotask(()=>{let K=S.inputRef.current?.value;if(K!==void 0&&K!==Y&&K!==(x.initialValue??""))S.commit(K)})}},onKeyDown(U){if(U.currentTarget.tagName==="INPUT"&&U.key==="Enter"){m(!0);let Y=U.currentTarget.value,K=U.currentTarget.form;if(K&&K===T.current&&!U.defaultPrevented){let ae=U.currentTarget,ue=w.current;Re.start(0,()=>{if(w.current===ue)S.commit(ae.value)})}else S.commit(Y)}}},p,(U)=>S.getValidationProps(D,U)],stateAttributesMapping:yw})});var Tv=Ce(function(t,a){return A(Aw,{ref:a,...t})});function ww({className:e,type:t,...a}){return A(Tv,{type:t,"data-slot":"input",className:we("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Rw({className:e,...t}){return A("textarea",{"data-slot":"textarea",className:we("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}function xu({className:e,...t}){return A("div",{"data-slot":"input-group",role:"group",className:we("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}var sz=kr("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function wp({className:e,align:t="inline-start",...a}){return A("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:we(sz({align:t}),e),onClick:(o)=>{if(o.target.closest("button"))return;o.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var uz=kr("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Rp({className:e,type:t="button",variant:a="ghost",size:o="xs",...r}){return A(Ua,{type:t,"data-size":o,variant:a,className:we(uz({size:o}),e),...r})}function Dp({className:e,...t}){return A(ww,{"data-slot":"input-group-control",className:we("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function wv({className:e,...t}){return A(Rw,{"data-slot":"input-group-control",className:we("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function Dw(e){let t=Math.floor((Date.now()-Date.parse(e))/60000);if(t<60)return`${t}m`;if(t<1440)return`${Math.floor(t/60)}h`;return`${Math.floor(t/1440)}d`}class Rv extends Error{reason;constructor(e,t){super(t);this.reason=e}}async function kp(e,t){let a=await fetch(e,{method:"POST",...t}),o=await a.json().catch(()=>({}));if(!a.ok)throw new Rv(o.reason??"error",o.message??`${e}: ${a.status}`);return o}async function kw({subject:e,text:t,position:a},o){let r=Pw({files:o,keep:[]});Bw(r,{subject:e,text:t,position:a}),await kp("/api/todos",{body:r})}async function Ew(e,{subject:t,text:a,position:o,tags:r,files:n,keep:l}){let s=Pw({files:n,keep:l});Bw(s,{subject:t,text:a,position:o,tags:r}),await kp(`/api/todos/${e}`,{method:"PATCH",body:s})}async function Mw(e,t){await kp(`/api/todos/${e}/position`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({position:t})})}async function Ow(e){await kp(`/api/todos/${e}`,{method:"DELETE"})}function Dv(e){return`/api/file?${new URLSearchParams({path:e})}`}function Bw(e,{subject:t,text:a,position:o,tags:r}){if(e.set("subject",t),e.set("text",a),o!==void 0)e.set("position",String(o));if(r!==void 0)e.set("tags",r.join(","))}function Pw({files:e,keep:t}){let a=new FormData;for(let o of e)a.append("file",o,o.name);for(let o of t)a.append("keep",o);return a}async function Nw(e=""){let t=await fetch(`/api/paths?${new URLSearchParams({task:e})}`);if(!t.ok)throw new Rv("error",`/api/paths: ${t.status}`);return await t.json()}W();var iz=/\.(png|jpe?g|gif|webp|svg)$/i;function kv(e=[]){let[t,a]=J([]),[o,r]=J(e),n=(s)=>{let u=[...s];if(u.length>0)a((i)=>[...i,...u])};return{files:t,keep:o,add:n,paste:(s)=>{let u=[...s.clipboardData.files];if(u.length>0)s.preventDefault(),n(u)},drop:(s)=>a((u)=>u.filter((i,c)=>c!==s)),unkeep:(s)=>r((u)=>u.filter((i)=>i!==s)),clear:()=>{a([]),r([])},any:t.length>0||o.length>0}}function Ev({files:e}){let t=z(null);return j(hl,{children:[A(Rp,{"aria-label":"attach files",size:"icon-xs",variant:"ghost",onClick:()=>t.current?.click(),children:A(Al,{})}),A("input",{ref:t,type:"file",multiple:!0,hidden:!0,onChange:(a)=>{e.add(a.target.files??[]),a.target.value=""}})]})}function Mv({files:e}){if(!e.any)return null;return j("div",{className:"flex flex-wrap gap-2",children:[e.keep.map((t)=>A(zw,{name:dz(t),src:iz.test(t)?Dv(t):void 0,href:Dv(t),onRemove:()=>e.unkeep(t)},t)),e.files.map((t,a)=>A(cz,{file:t,onRemove:()=>e.drop(a)},`${t.name}-${t.size}-${t.lastModified}`))]})}function cz({file:e,onRemove:t}){let a=e.type.startsWith("image/"),[o,r]=J();return ce(()=>{if(!a)return;let n=URL.createObjectURL(e);return r(n),()=>URL.revokeObjectURL(n)},[e,a]),A(zw,{name:e.name,src:a?o:void 0,onRemove:t})}function zw({name:e,src:t,href:a,onRemove:o}){let r=t===void 0?j("div",{className:"flex h-16 max-w-40 items-center gap-2 rounded-md border px-3 text-xs",children:[A(Il,{className:"size-4 shrink-0 text-muted-foreground"}),A("span",{className:"truncate",children:e})]}):A("img",{src:t,alt:e,className:"size-16 rounded-md border object-cover"});return j("div",{className:"relative",children:[a===void 0?r:A("a",{href:a,target:"_blank",rel:"noreferrer",children:r}),o&&A(Ua,{"aria-label":`remove ${e}`,variant:"secondary",size:"icon-xs",className:"absolute -top-2 -right-2 rounded-full",onClick:o,children:A(Dr,{})})]})}var fz=/^([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|\d+)-/i;function dz(e){return(e.split("/").at(-1)??e).replace(fz,"")}W();var Ov=8,Bv=32;function ic({task:e,text:t,setText:a}){let o=z(null),[r,n]=J([]),[l,s]=J(0),[u,i]=J(0),[c,d]=J(null),[f,p]=J({below:!1,room:Ov*Bv});ce(()=>{let b=!0;return Nw(e).then((S)=>b&&n(S),()=>{return}),()=>{b=!1}},[e]);let g=mz(t,l),v=g===null||g.start===c?[]:hz(r,g.query).slice(0,Ov),L=v.length>0,m=Math.min(u,v.length-1),h=L&&g!==null,x=g?.start;ce(()=>{if(!h||o.current===null)return;let b=o.current.getBoundingClientRect(),S=o.current.closest("[data-slot=dialog-content]")?.getBoundingClientRect()??{top:0,bottom:innerHeight},y=b.top-S.top,T=Math.min(S.bottom,innerHeight)-b.bottom,w=Ov*Bv+10,D=y<w&&T>y;p({below:D,room:Math.min(w,(D?T:y)-8)}),i(0)},[h]);let C=()=>s(o.current?.selectionStart??0),I=(b)=>{if(g===null)return;let S=g.start+1+g.query.length,y=`@${b}${b.endsWith("/")?"":" "}`,T=t.slice(0,g.start)+y+t.slice(S),w=g.start+y.length;a(T),s(w),requestAnimationFrame(()=>{o.current?.focus(),o.current?.setSelectionRange(w,w)})};return{ref:o,onChange:(b)=>{a(b.target.value),s(b.target.selectionStart??b.target.value.length)},onSelect:C,onClick:C,onKeyDown:(b)=>{if(!L)return!1;let S={ArrowDown:1,ArrowUp:-1}[b.key];if(S!==void 0)i((m+S+v.length)%v.length);else if(b.key==="Enter"||b.key==="Tab")I(v[m]??"");else if(b.key==="Escape")d(g?.start??null);else return!1;return b.preventDefault(),b.stopPropagation(),!0},menu:L?A(pz,{matches:v,active:m,place:f,onPick:I,onHover:i}):null}}function pz({matches:e,active:t,place:a,onPick:o,onHover:r}){return A("div",{role:"listbox","aria-label":"files",style:{maxHeight:a.room},className:we("absolute inset-x-0 z-50 overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-md",a.below?"top-full mt-1":"bottom-full mb-1"),children:e.map((n,l)=>{let u=n.endsWith("/")?Hi:Il,[i,c]=Fw(n);return j("div",{role:"option",tabIndex:-1,"aria-selected":l===t,onMouseDown:(d)=>{d.preventDefault(),o(n)},onMouseEnter:()=>r(l),ref:(d)=>{if(l===t)d?.scrollIntoView({block:"nearest"})},style:{height:Bv},className:we("flex cursor-default items-center gap-2 rounded-md px-2 text-sm",l===t&&"bg-muted"),children:[A(u,{className:"size-4 shrink-0 text-muted-foreground"}),A("span",{className:"truncate",children:c}),A("span",{className:"shrink-1000 truncate text-muted-foreground text-xs",children:i})]},n)})})}function mz(e,t){let a=/(^|\s)@([^\s@]*)$/.exec(e.slice(0,t));if(a===null)return null;let o=a[2]??"";return{start:t-o.length-1,query:o}}function hz(e,t){let a=t.toLowerCase(),o=[];for(let r of e){let n=r.toLowerCase();if(n===a)continue;let[,l]=Fw(n),s=l.startsWith(a.split("/").at(-1)??"")&&n.includes(a)?0:n.includes(a)?1:gz(n,a)?2:null;if(s!==null)o.push({path:r,score:s,depth:r.replace(/\/$/,"").split("/").length})}return o.sort((r,n)=>r.score-n.score||r.depth-n.depth||Number(!r.path.endsWith("/"))-Number(!n.path.endsWith("/"))||r.path.localeCompare(n.path)).map(({path:r})=>r)}function Fw(e){let t=e.endsWith("/")?e.slice(0,-1):e,a=t.lastIndexOf("/");return[t.slice(0,a+1),t.slice(a+1)+(e.endsWith("/")?"/":"")]}function gz(e,t){let a=0;for(let o of t)if(a=e.indexOf(o,a)+1,a===0)return!1;return!0}function cc({mentions:e,children:t}){return j("div",{className:"relative",children:[t,e.menu]})}function Uw({tags:e,selected:t,onSelect:a}){let o=(r,n)=>j("button",{type:"button","aria-pressed":t===n,onClick:()=>a(n),className:we("inline-flex cursor-pointer items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring",t===n?"border-primary bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[n!==null&&A(Sn,{"aria-hidden":!0,className:"size-3"}),r]},r);return j("fieldset",{"aria-label":"filter by tag",className:"m-0 flex flex-wrap gap-1.5 border-0 p-0",children:[o("All",null),e.map((r)=>o(r,r))]})}function _w({snapshot:e}){let{todoStalenessMs:t,tasks:a}=e,[o,r]=J(null),n=[...new Set(e.todos.flatMap((v)=>v.tags))].sort(),l=o!==null&&n.includes(o)?o:null,s=e.todos.filter((v)=>l===null||v.tags.includes(l)),[u,i]=J(null),c=s.find((v)=>v.id===u),[d,f]=J(null),p=a.find((v)=>v.task===d);return A(Gw,{value:(v)=>a.some((L)=>L.task===v)?f(v):null,children:A(Vw,{value:r,children:j("div",{className:"flex flex-col gap-6",children:[A(bz,{}),n.length>0&&A(Uw,{tags:n,selected:l,onSelect:r}),s.length===0?A(fw,{children:j(dw,{children:[A(pw,{variant:"icon",children:A(ji,{})}),A(mw,{children:"Nothing deferred"}),A(hw,{children:"Agents add what comes up outside their task here."})]})}):A(xz,{todos:s,staleness:t,onOpen:i}),A(Wi,{open:c!==void 0,onOpenChange:(v)=>{if(!v)i(null)},children:c&&A(Lz,{todo:c,onDone:()=>i(null)})}),A(Wi,{open:p!==void 0,onOpenChange:(v)=>{if(!v)f(null)},children:p&&A(pv,{task:p})})]})})})}var Vw=Ue(()=>{}),Gw=Ue(()=>{});function xz({todos:e,staleness:t,onOpen:a}){let[o,r]=J(null),[n,l]=J(null);ce(()=>r(null),[e]);let s=kT(mp(xp,{activationConstraint:{distance:4}}),mp(vp,{activationConstraint:{delay:200,tolerance:6}}),mp(sc,{coordinateGetter:iw})),u=o??e.map((f)=>f.id),i=u.flatMap((f)=>e.filter((p)=>p.id===f)),c=e.find((f)=>f.id===n);return j(ZT,{sensors:s,collisionDetection:OT,modifiers:[tw,ew],onDragStart:({active:f})=>l(Number(f.id)),onDragCancel:()=>l(null),onDragEnd:({active:f,over:p})=>{if(l(null),p===null||f.id===p.id)return;let g=u.indexOf(Number(p.id));r(Ip(u,u.indexOf(Number(f.id)),g));let v=e.find((L)=>L.id===Number(p.id))?.position??g+1;Mw(Number(f.id),v).catch((L)=>{r(null),Rl.add({title:"Not moved",description:L instanceof Error?L.message:String(L),type:"error"})})},children:[A(lw,{items:u,strategy:ow,children:A("ul",{"aria-label":"todos",className:"flex flex-col gap-2",children:i.map((f)=>A(vz,{todo:f,staleness:t,onOpen:()=>a(f.id)},f.id))})}),A($T,{children:c&&A(Xw,{todo:c,staleness:t,className:"rotate-2 cursor-grabbing shadow-lg"})})]})}function vz({todo:e,staleness:t,onOpen:a}){let{attributes:o,listeners:r,setNodeRef:n,setActivatorNodeRef:l,transform:s,transition:u,isDragging:i}=uw({id:e.id});return A("li",{ref:n,style:{transform:Xo.Translate.toString(s),transition:u},children:A(Xw,{todo:e,staleness:t,onOpen:a,pointer:{onMouseDown:r?.onMouseDown,onTouchStart:r?.onTouchStart},grip:{...o,onKeyDown:r?.onKeyDown,ref:l},className:we(i&&"border-dashed bg-muted shadow-none *:invisible hover:shadow-none")})})}function Xw({todo:e,staleness:t,onOpen:a,pointer:o,grip:r,className:n}){let l=e.takenBy===null&&Date.now()-Date.parse(e.createdAt)>t;return j("div",{...o,className:we("group relative flex cursor-pointer touch-manipulation items-stretch rounded-lg border bg-card text-card-foreground shadow-xs transition-[background-color,border-color,box-shadow] select-none hover:border-foreground/25 hover:bg-muted/70 hover:shadow-sm",e.takenBy&&"border-l-4 border-l-success",n),children:[j("div",{className:we("flex min-w-0 flex-1 flex-col gap-1.5 py-2.5 pl-3",l&&"opacity-60"),children:[A("button",{type:"button",onClick:a,className:"cursor-pointer text-left font-semibold text-sm outline-none after:absolute after:inset-0 after:rounded-lg focus-visible:after:ring-2 focus-visible:after:ring-ring",children:e.subject}),e.text!==""&&A($i,{text:e.text,preview:!0,className:"text-muted-foreground text-xs"}),j("span",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-muted-foreground text-xs",children:[A(jw,{id:e.id}),e.files.length>0&&A(Hw,{Icon:Al,label:"files",children:e.files.length}),e.takenBy&&A(Cz,{task:e.takenBy}),e.tags.map((s)=>A(yz,{tag:s},s)),l&&j(Hw,{Icon:qi,label:"stale",children:["stale, ",Dw(e.createdAt)]})]})]}),A("button",{type:"button",...r,"aria-label":`move ${e.subject}`,className:"relative flex w-8 shrink-0 cursor-grab items-center active:cursor-grabbing justify-center rounded-r-lg text-muted-foreground opacity-40 outline-none group-hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring",children:A(Vi,{className:"size-4"})})]})}function Cz({task:e}){let t=Be(Gw);return j("button",{type:"button",onClick:()=>t(e),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-full bg-success/15 px-2 py-0.5 font-medium text-success outline-none hover:bg-success/25 focus-visible:ring-2 focus-visible:ring-ring",children:[A(_i,{"aria-label":"taken by",role:"img",className:"size-3.5 shrink-0"}),j("span",{className:"truncate",children:["Taken by ",e]})]})}function yz({tag:e}){let t=Be(Vw);return j("button",{type:"button","aria-label":`show only ${e}`,onClick:()=>t(e),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative inline-flex cursor-pointer items-center gap-1 rounded-full border px-2 py-0.5 outline-none hover:bg-background hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[A(Sn,{"aria-hidden":!0,className:"size-3"}),e]})}function qw(e){return`[ARBOR TODO #${e}]`}function jw({id:e}){let t=async()=>{try{await navigator.clipboard.writeText(qw(e)),Rl.add({title:`Copied ${qw(e)}`})}catch(a){Rl.add({title:"Not copied",description:a instanceof Error?a.message:String(a),type:"error"})}};return j("button",{type:"button","aria-label":`copy a link to todo ${e}`,onClick:()=>void t(),onMouseDown:(a)=>a.stopPropagation(),onTouchStart:(a)=>a.stopPropagation(),className:"relative -mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 tabular-nums outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[A(Xi,{className:"size-3.5"}),"#",e]})}function Hw({Icon:e,label:t,children:a}){return j("span",{className:"inline-flex items-center gap-1",title:t,children:[A(e,{"aria-label":t,role:"img",className:"size-3.5"}),a]})}function bz(){let[e,t]=J(""),[a,o]=J(""),r=kv(),n=ic({task:"",text:e,setText:t}),l=ic({task:"",text:a,setText:o}),[s,u]=J(!1);return j("form",{onSubmit:async(c)=>{if(c.preventDefault(),e.trim()===""||s)return;u(!0);try{await kw({subject:e,text:a},r.files),t(""),o(""),r.clear()}catch(d){Rl.add({title:"Not added",description:d instanceof Error?d.message:String(d),type:"error"})}finally{u(!1)}},className:"flex flex-col gap-2",children:[A(cc,{mentions:n,children:j(xu,{children:[A(Dp,{ref:n.ref,"aria-label":"new todo",placeholder:"Something to do later, @ for a file",value:e,onChange:n.onChange,onSelect:n.onSelect,onClick:n.onClick,onKeyDown:n.onKeyDown,onPaste:r.paste}),j(wp,{align:"inline-end",children:[A(Ev,{files:r}),A(Rp,{type:"submit",variant:"secondary",disabled:e.trim()===""||s,children:"Add"})]})]})}),(e!==""||a!=="")&&A(cc,{mentions:l,children:A(xu,{children:A(wv,{ref:l.ref,"aria-label":"new todo detail",placeholder:"More to say in markdown, if any",value:a,onChange:l.onChange,onSelect:l.onSelect,onClick:l.onClick,onKeyDown:l.onKeyDown,onPaste:r.paste,rows:2})})}),A(Mv,{files:r})]})}function Lz({todo:e,onDone:t}){let[a,o]=J(e.subject),[r,n]=J(e.text),[l,s]=J(e.tags.join(", ")),u=Lc(),i=l.split(",").map((I)=>I.trim()).filter(Boolean),[c,d]=J(e.text===""),f=kv(e.files),p=ic({task:"",text:a,setText:o}),g=ic({task:"",text:r,setText:n}),[v,L]=J(!1),[m,h]=J(!1),x=async(I,b)=>{L(!0);try{await I(),t()}catch(S){Rl.add({title:b,description:S instanceof Error?S.message:String(S),type:"error"}),L(!1)}},C=a.trim()!==""&&(a.trim()!==e.subject||r.trim()!==e.text||i.join(",")!==e.tags.join(",")||f.files.length>0||f.keep.length!==e.files.length);return j(_d,{className:"max-h-[85dvh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-lg",children:[j(Vd,{children:[j(Gd,{className:"flex items-center gap-2",children:["Todo ",e.id,A("span",{className:"font-normal text-muted-foreground text-xs",children:A(jw,{id:e.id})})]}),A(Xd,{children:e.takenBy?`Taken by ${e.takenBy}`:`Number ${e.position} on the list`})]}),j("div",{className:"flex flex-col gap-2",children:[A(cc,{mentions:p,children:A(xu,{children:A(Dp,{ref:p.ref,"aria-label":"subject",value:a,onChange:p.onChange,onSelect:p.onSelect,onClick:p.onClick,onKeyDown:p.onKeyDown,onPaste:f.paste})})}),j("div",{className:"flex items-center justify-between",children:[j("div",{className:"flex gap-1",children:[A(Ua,{size:"xs",variant:c?"secondary":"ghost","aria-pressed":c,onClick:()=>d(!0),children:"Write"}),A(Ua,{size:"xs",variant:c?"ghost":"secondary","aria-pressed":!c,onClick:()=>d(!1),children:"Preview"})]}),A("span",{className:"text-muted-foreground text-xs",children:"Markdown supported"})]}),c?A(cc,{mentions:g,children:j(xu,{children:[A(wv,{ref:g.ref,"aria-label":"detail",placeholder:"More to say in markdown, if any",value:r,onChange:g.onChange,onSelect:g.onSelect,onClick:g.onClick,onKeyDown:g.onKeyDown,onPaste:f.paste,rows:6}),A(wp,{align:"block-end",children:A(Ev,{files:f})})]})}):A("div",{className:"min-h-20 rounded-md border px-3 py-2 text-sm",children:r.trim()===""?A("span",{className:"text-muted-foreground",children:"Nothing to preview"}):A($i,{text:r})}),A(Mv,{files:f}),j("div",{className:"flex flex-col gap-1",children:[j(xu,{children:[A(wp,{children:A(Sn,{})}),A(Dp,{"aria-label":"tags","aria-describedby":u,placeholder:"uploads, merge",value:l,onChange:(I)=>s(I.target.value)})]}),A("p",{id:u,className:"text-muted-foreground text-xs",children:"Separate tags with commas."})]})]}),j(aA,{className:"flex-row justify-between sm:justify-between",children:[j(Ua,{variant:m?"destructive":"ghost",disabled:v,onClick:()=>m?void x(()=>Ow(e.id),"Not removed"):h(!0),children:[A(bn,{"data-icon":"inline-start"}),m?"Remove for good":"Remove"]}),A(Ua,{disabled:!C||v,onClick:()=>void x(()=>Ew(e.id,{subject:a,text:r,tags:i,files:f.files,keep:f.keep}),"Not saved"),children:"Save"})]})]})}function Yw(){let[e]=J(()=>new kx);sd((o)=>{e.start(),o.use(e)},[e]);let{snapshot:t,offline:a}=kg(e,(o)=>({snapshot:o.snapshot,offline:o.offline}),["changed"]);return ce(()=>{document.title=t?.repo??"arbor"},[t?.repo]),A(M1,{children:j("main",{className:"mx-auto flex min-h-dvh max-w-xl flex-col gap-8 px-4 py-6",children:[j("header",{className:"flex items-center justify-between",children:[j("div",{className:"flex min-w-0 items-baseline gap-2",children:[A("h1",{className:"shrink-0 font-medium text-sm",children:t?.repo??"arbor"}),t&&A("span",{className:"min-w-0 truncate text-muted-foreground text-xs",children:t.path})]}),a&&A("span",{role:"status",className:"shrink-0 text-destructive text-xs",children:"Offline: is `arbor dev` still running?"})]}),t===null?null:j(hl,{children:[j("section",{"aria-labelledby":"tasks",className:"flex flex-col gap-2",children:[A("h2",{id:"tasks",className:"font-medium text-muted-foreground text-xs",children:"Tasks"}),A(sT,{tasks:t.tasks})]}),j("section",{"aria-labelledby":"todos",className:"flex flex-col gap-2",children:[A("h2",{id:"todos",className:"font-medium text-muted-foreground text-xs",children:"Todos"}),A(_w,{snapshot:t})]})]})]})})}var Ww=document.getElementById("root");if(Ww===null)throw Error("no #root to mount into: index.html and main.tsx disagree");var Kw=matchMedia("(prefers-color-scheme: dark)"),Zw=()=>document.documentElement.classList.toggle("dark",Kw.matches);Zw();Kw.addEventListener("change",Zw);Rg(Ww).render(A(bc,{children:A(Yw,{})}));