openspec-mcp 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +83 -35
  2. package/README.zh.md +81 -33
  3. package/dist/api/routes/changes.d.ts.map +1 -1
  4. package/dist/api/routes/changes.js +54 -0
  5. package/dist/api/routes/changes.js.map +1 -1
  6. package/dist/api/routes/project.d.ts +7 -0
  7. package/dist/api/routes/project.d.ts.map +1 -0
  8. package/dist/api/routes/project.js +14 -0
  9. package/dist/api/routes/project.js.map +1 -0
  10. package/dist/api/routes/specs.d.ts.map +1 -1
  11. package/dist/api/routes/specs.js +100 -1
  12. package/dist/api/routes/specs.js.map +1 -1
  13. package/dist/api/routes/tasks.d.ts.map +1 -1
  14. package/dist/api/routes/tasks.js +33 -0
  15. package/dist/api/routes/tasks.js.map +1 -1
  16. package/dist/api/server.d.ts +5 -1
  17. package/dist/api/server.d.ts.map +1 -1
  18. package/dist/api/server.js +107 -14
  19. package/dist/api/server.js.map +1 -1
  20. package/dist/core/approval-manager.test.d.ts +5 -0
  21. package/dist/core/approval-manager.test.d.ts.map +1 -0
  22. package/dist/core/approval-manager.test.js +114 -0
  23. package/dist/core/approval-manager.test.js.map +1 -0
  24. package/dist/core/file-watcher.d.ts.map +1 -1
  25. package/dist/core/file-watcher.js +13 -0
  26. package/dist/core/file-watcher.js.map +1 -1
  27. package/dist/core/hooks-manager.d.ts +43 -0
  28. package/dist/core/hooks-manager.d.ts.map +1 -0
  29. package/dist/core/hooks-manager.js +194 -0
  30. package/dist/core/hooks-manager.js.map +1 -0
  31. package/dist/core/openspec-cli.d.ts +12 -0
  32. package/dist/core/openspec-cli.d.ts.map +1 -1
  33. package/dist/core/openspec-cli.js +85 -0
  34. package/dist/core/openspec-cli.js.map +1 -1
  35. package/dist/core/proposal-generator.d.ts +46 -0
  36. package/dist/core/proposal-generator.d.ts.map +1 -0
  37. package/dist/core/proposal-generator.js +155 -0
  38. package/dist/core/proposal-generator.js.map +1 -0
  39. package/dist/core/review-manager.d.ts +147 -0
  40. package/dist/core/review-manager.d.ts.map +1 -0
  41. package/dist/core/review-manager.js +235 -0
  42. package/dist/core/review-manager.js.map +1 -0
  43. package/dist/core/spec-parser.d.ts +51 -0
  44. package/dist/core/spec-parser.d.ts.map +1 -0
  45. package/dist/core/spec-parser.js +130 -0
  46. package/dist/core/spec-parser.js.map +1 -0
  47. package/dist/core/task-parser.test.d.ts +5 -0
  48. package/dist/core/task-parser.test.d.ts.map +1 -0
  49. package/dist/core/task-parser.test.js +124 -0
  50. package/dist/core/task-parser.test.js.map +1 -0
  51. package/dist/core/template-manager.d.ts +48 -0
  52. package/dist/core/template-manager.d.ts.map +1 -0
  53. package/dist/core/template-manager.js +268 -0
  54. package/dist/core/template-manager.js.map +1 -0
  55. package/dist/index.js +17 -1
  56. package/dist/index.js.map +1 -1
  57. package/dist/server/tools/generator.d.ts +8 -0
  58. package/dist/server/tools/generator.d.ts.map +1 -0
  59. package/dist/server/tools/generator.js +121 -0
  60. package/dist/server/tools/generator.js.map +1 -0
  61. package/dist/server/tools/hooks.d.ts +8 -0
  62. package/dist/server/tools/hooks.d.ts.map +1 -0
  63. package/dist/server/tools/hooks.js +86 -0
  64. package/dist/server/tools/hooks.js.map +1 -0
  65. package/dist/server/tools/management.d.ts.map +1 -1
  66. package/dist/server/tools/management.js +37 -2
  67. package/dist/server/tools/management.js.map +1 -1
  68. package/dist/server/tools/reviews.d.ts +8 -0
  69. package/dist/server/tools/reviews.d.ts.map +1 -0
  70. package/dist/server/tools/reviews.js +178 -0
  71. package/dist/server/tools/reviews.js.map +1 -0
  72. package/dist/server/tools/tasks.d.ts.map +1 -1
  73. package/dist/server/tools/tasks.js +38 -0
  74. package/dist/server/tools/tasks.js.map +1 -1
  75. package/dist/server/tools/templates.d.ts +8 -0
  76. package/dist/server/tools/templates.d.ts.map +1 -0
  77. package/dist/server/tools/templates.js +89 -0
  78. package/dist/server/tools/templates.js.map +1 -0
  79. package/dist/utils/constants.d.ts +54 -0
  80. package/dist/utils/constants.d.ts.map +1 -0
  81. package/dist/utils/constants.js +54 -0
  82. package/dist/utils/constants.js.map +1 -0
  83. package/dist/utils/version.d.ts +13 -0
  84. package/dist/utils/version.d.ts.map +1 -0
  85. package/dist/utils/version.js +26 -0
  86. package/dist/utils/version.js.map +1 -0
  87. package/package.json +2 -6
  88. package/web/dist/assets/index-BGNTCJhf.css +1 -0
  89. package/web/dist/assets/index-DKBVRb7-.js +99 -0
  90. package/web/dist/index.html +2 -2
  91. package/web/dist/assets/index--LppUKpS.js +0 -67
  92. package/web/dist/assets/index-DdJQfs9Z.css +0 -1
@@ -0,0 +1,99 @@
1
+ function Lm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qf={exports:{}},Bl={},Kf={exports:{}},W={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var gi=Symbol.for("react.element"),Rm=Symbol.for("react.portal"),zm=Symbol.for("react.fragment"),Am=Symbol.for("react.strict_mode"),Om=Symbol.for("react.profiler"),Dm=Symbol.for("react.provider"),Fm=Symbol.for("react.context"),Mm=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),Um=Symbol.for("react.memo"),$m=Symbol.for("react.lazy"),_a=Symbol.iterator;function Vm(e){return e===null||typeof e!="object"?null:(e=_a&&e[_a]||e["@@iterator"],typeof e=="function"?e:null)}var Yf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xf=Object.assign,Gf={};function hr(e,t,n){this.props=e,this.context=t,this.refs=Gf,this.updater=n||Yf}hr.prototype.isReactComponent={};hr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jf(){}Jf.prototype=hr.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=Gf,this.updater=n||Yf}var cu=au.prototype=new Jf;cu.constructor=au;Xf(cu,hr.prototype);cu.isPureReactComponent=!0;var Ia=Array.isArray,Zf=Object.prototype.hasOwnProperty,fu={current:null},ed={key:!0,ref:!0,__self:!0,__source:!0};function td(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Zf.call(t,r)&&!ed.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:gi,type:e,key:l,ref:o,props:i,_owner:fu.current}}function Hm(e,t){return{$$typeof:gi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function du(e){return typeof e=="object"&&e!==null&&e.$$typeof===gi}function Wm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var La=/\/+/g;function ao(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wm(""+e.key):t.toString(36)}function Yi(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case gi:case Rm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ao(o,0):r,Ia(i)?(n="",e!=null&&(n=e.replace(La,"$&/")+"/"),Yi(i,t,n,"",function(a){return a})):i!=null&&(du(i)&&(i=Hm(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(La,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ia(e))for(var s=0;s<e.length;s++){l=e[s];var u=r+ao(l,s);o+=Yi(l,t,n,u,i)}else if(u=Vm(e),typeof u=="function")for(e=u.call(e),s=0;!(l=e.next()).done;)l=l.value,u=r+ao(l,s++),o+=Yi(l,t,n,u,i);else if(l==="object")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 o}function Pi(e,t,n){if(e==null)return e;var r=[],i=0;return Yi(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Qm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Oe={current:null},Xi={transition:null},qm={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Xi,ReactCurrentOwner:fu};function nd(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Pi,forEach:function(e,t,n){Pi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Pi(e,function(){t++}),t},toArray:function(e){return Pi(e,function(t){return t})||[]},only:function(e){if(!du(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=hr;W.Fragment=zm;W.Profiler=Om;W.PureComponent=au;W.StrictMode=Am;W.Suspense=Bm;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qm;W.act=nd;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Xf({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=fu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Zf.call(t,u)&&!ed.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:gi,type:e.type,key:i,ref:l,props:r,_owner:o}};W.createContext=function(e){return e={$$typeof:Fm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dm,_context:e},e.Consumer=e};W.createElement=td;W.createFactory=function(e){var t=td.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:Mm,render:e}};W.isValidElement=du;W.lazy=function(e){return{$$typeof:$m,_payload:{_status:-1,_result:e},_init:Qm}};W.memo=function(e,t){return{$$typeof:Um,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=Xi.transition;Xi.transition={};try{e()}finally{Xi.transition=t}};W.unstable_act=nd;W.useCallback=function(e,t){return Oe.current.useCallback(e,t)};W.useContext=function(e){return Oe.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};W.useEffect=function(e,t){return Oe.current.useEffect(e,t)};W.useId=function(){return Oe.current.useId()};W.useImperativeHandle=function(e,t,n){return Oe.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Oe.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Oe.current.useReducer(e,t,n)};W.useRef=function(e){return Oe.current.useRef(e)};W.useState=function(e){return Oe.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Oe.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Oe.current.useTransition()};W.version="18.3.1";Kf.exports=W;var _=Kf.exports;const rd=uu(_),Km=Lm({__proto__:null,default:rd},[_]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ym=_,Xm=Symbol.for("react.element"),Gm=Symbol.for("react.fragment"),Jm=Object.prototype.hasOwnProperty,Zm=Ym.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eg={key:!0,ref:!0,__self:!0,__source:!0};function id(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Jm.call(t,r)&&!eg.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Xm,type:e,key:l,ref:o,props:i,_owner:Zm.current}}Bl.Fragment=Gm;Bl.jsx=id;Bl.jsxs=id;qf.exports=Bl;var m=qf.exports,es={},ld={exports:{}},Je={},od={exports:{}},sd={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(z,M){var v=z.length;z.push(M);e:for(;0<v;){var Y=v-1>>>1,Z=z[Y];if(0<i(Z,M))z[Y]=M,z[v]=Z,v=Y;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var M=z[0],v=z.pop();if(v!==M){z[0]=v;e:for(var Y=0,Z=z.length,w=Z>>>1;Y<w;){var ve=2*(Y+1)-1,st=z[ve],ie=ve+1,yt=z[ie];if(0>i(st,v))ie<Z&&0>i(yt,st)?(z[Y]=yt,z[ie]=v,Y=ie):(z[Y]=st,z[ve]=v,Y=ve);else if(ie<Z&&0>i(yt,v))z[Y]=yt,z[ie]=v,Y=ie;else break e}}return M}function i(z,M){var v=z.sortIndex-M.sortIndex;return v!==0?v:z.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],f=1,c=null,d=3,p=!1,h=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var M=n(a);M!==null;){if(M.callback===null)r(a);else if(M.startTime<=z)r(a),M.sortIndex=M.expirationTime,t(u,M);else break;M=n(a)}}function b(z){if(k=!1,x(z),!h)if(n(u)!==null)h=!0,pe(j);else{var M=n(a);M!==null&&ae(b,M.startTime-z)}}function j(z,M){h=!1,k&&(k=!1,g(P),P=-1),p=!0;var v=d;try{for(x(M),c=n(u);c!==null&&(!(c.expirationTime>M)||z&&!O());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var Z=Y(c.expirationTime<=M);M=e.unstable_now(),typeof Z=="function"?c.callback=Z:c===n(u)&&r(u),x(M)}else r(u);c=n(u)}if(c!==null)var w=!0;else{var ve=n(a);ve!==null&&ae(b,ve.startTime-M),w=!1}return w}finally{c=null,d=v,p=!1}}var E=!1,S=null,P=-1,I=5,C=-1;function O(){return!(e.unstable_now()-C<I)}function F(){if(S!==null){var z=e.unstable_now();C=z;var M=!0;try{M=S(!0,z)}finally{M?q():(E=!1,S=null)}}else E=!1}var q;if(typeof y=="function")q=function(){y(F)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,V=J.port2;J.port1.onmessage=F,q=function(){V.postMessage(null)}}else q=function(){N(F,0)};function pe(z){S=z,E||(E=!0,q())}function ae(z,M){P=N(function(){z(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,pe(j))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(z){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var v=d;d=M;try{return z()}finally{d=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,M){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var v=d;d=z;try{return M()}finally{d=v}},e.unstable_scheduleCallback=function(z,M,v){var Y=e.unstable_now();switch(typeof v=="object"&&v!==null?(v=v.delay,v=typeof v=="number"&&0<v?Y+v:Y):v=Y,z){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=v+Z,z={id:f++,callback:M,priorityLevel:z,startTime:v,expirationTime:Z,sortIndex:-1},v>Y?(z.sortIndex=v,t(a,z),n(u)===null&&z===n(a)&&(k?(g(P),P=-1):k=!0,ae(b,v-Y))):(z.sortIndex=Z,t(u,z),h||p||(h=!0,pe(j))),z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(z){var M=d;return function(){var v=d;d=M;try{return z.apply(this,arguments)}finally{d=v}}}})(sd);od.exports=sd;var tg=od.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var ng=_,Ge=tg;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ud=new Set,Yr={};function jn(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Yr[e]=t,e=0;e<t.length;e++)ud.add(t[e])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ts=Object.prototype.hasOwnProperty,rg=/^[: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]*$/,Ra={},za={};function ig(e){return ts.call(za,e)?!0:ts.call(Ra,e)?!1:rg.test(e)?za[e]=!0:(Ra[e]=!0,!1)}function lg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function og(e,t,n,r){if(t===null||typeof t>"u"||lg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var pu=/[\-:]([a-z])/g;function hu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pu,hu);be[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pu,hu);be[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pu,hu);be[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});be.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function mu(e,t,n,r){var i=be.hasOwnProperty(t)?be[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(og(t,n,i,r)&&(n=null),r||i===null?ig(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ot=ng.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Un=Symbol.for("react.fragment"),gu=Symbol.for("react.strict_mode"),ns=Symbol.for("react.profiler"),ad=Symbol.for("react.provider"),cd=Symbol.for("react.context"),yu=Symbol.for("react.forward_ref"),rs=Symbol.for("react.suspense"),is=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),Ut=Symbol.for("react.lazy"),fd=Symbol.for("react.offscreen"),Aa=Symbol.iterator;function Sr(e){return e===null||typeof e!="object"?null:(e=Aa&&e[Aa]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,co;function Lr(e){if(co===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);co=t&&t[1]||""}return`
34
+ `+co+e}var fo=!1;function po(e,t){if(!e||fo)return"";fo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var u=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{fo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lr(e):""}function sg(e){switch(e.tag){case 5:return Lr(e.type);case 16:return Lr("Lazy");case 13:return Lr("Suspense");case 19:return Lr("SuspenseList");case 0:case 2:case 15:return e=po(e.type,!1),e;case 11:return e=po(e.type.render,!1),e;case 1:return e=po(e.type,!0),e;default:return""}}function ls(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Un:return"Fragment";case Bn:return"Portal";case ns:return"Profiler";case gu:return"StrictMode";case rs:return"Suspense";case is:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cd:return(e.displayName||"Context")+".Consumer";case ad:return(e._context.displayName||"Context")+".Provider";case yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xu:return t=e.displayName||null,t!==null?t:ls(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return ls(e(t))}catch{}}return null}function ug(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ls(t);case 8:return t===gu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ag(e){var t=dd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=ag(e))}function pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function os(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hd(e,t){t=t.checked,t!=null&&mu(e,"checked",t,!1)}function ss(e,t){hd(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?us(e,t.type,n):t.hasOwnProperty("defaultValue")&&us(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Da(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function us(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function as(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Rr(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function md(e,t){var n=ln(t.value),r=ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ma(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function cs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _i,yd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_i=_i||document.createElement("div"),_i.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cg=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(e){cg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dr[t]=Dr[e]})});function xd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dr.hasOwnProperty(e)&&Dr[e]?(""+t).trim():t+"px"}function vd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=xd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var fg=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fs(e,t){if(t){if(fg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function ds(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ps=null;function vu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hs=null,er=null,tr=null;function Ba(e){if(e=vi(e)){if(typeof hs!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Wl(t),hs(e.stateNode,e.type,t))}}function kd(e){er?tr?tr.push(e):tr=[e]:er=e}function wd(){if(er){var e=er,t=tr;if(tr=er=null,Ba(e),t)for(e=0;e<t.length;e++)Ba(t[e])}}function Sd(e,t){return e(t)}function Cd(){}var ho=!1;function Ed(e,t,n){if(ho)return e(t,n);ho=!0;try{return Sd(e,t,n)}finally{ho=!1,(er!==null||tr!==null)&&(Cd(),wd())}}function Gr(e,t){var n=e.stateNode;if(n===null)return null;var r=Wl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var ms=!1;if(Lt)try{var Cr={};Object.defineProperty(Cr,"passive",{get:function(){ms=!0}}),window.addEventListener("test",Cr,Cr),window.removeEventListener("test",Cr,Cr)}catch{ms=!1}function dg(e,t,n,r,i,l,o,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var Fr=!1,dl=null,pl=!1,gs=null,pg={onError:function(e){Fr=!0,dl=e}};function hg(e,t,n,r,i,l,o,s,u){Fr=!1,dl=null,dg.apply(pg,arguments)}function mg(e,t,n,r,i,l,o,s,u){if(hg.apply(this,arguments),Fr){if(Fr){var a=dl;Fr=!1,dl=null}else throw Error(L(198));pl||(pl=!0,gs=a)}}function Tn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nd(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 Ua(e){if(Tn(e)!==e)throw Error(L(188))}function gg(e){var t=e.alternate;if(!t){if(t=Tn(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Ua(i),e;if(l===r)return Ua(i),t;l=l.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function bd(e){return e=gg(e),e!==null?Pd(e):null}function Pd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Pd(e);if(t!==null)return t;e=e.sibling}return null}var jd=Ge.unstable_scheduleCallback,$a=Ge.unstable_cancelCallback,yg=Ge.unstable_shouldYield,xg=Ge.unstable_requestPaint,me=Ge.unstable_now,vg=Ge.unstable_getCurrentPriorityLevel,ku=Ge.unstable_ImmediatePriority,Td=Ge.unstable_UserBlockingPriority,hl=Ge.unstable_NormalPriority,kg=Ge.unstable_LowPriority,_d=Ge.unstable_IdlePriority,Ul=null,St=null;function wg(e){if(St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Ul,e,void 0,(e.current.flags&128)===128)}catch{}}var pt=Math.clz32?Math.clz32:Eg,Sg=Math.log,Cg=Math.LN2;function Eg(e){return e>>>=0,e===0?32:31-(Sg(e)/Cg|0)|0}var Ii=64,Li=4194304;function zr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=zr(s):(l&=o,l!==0&&(r=zr(l)))}else o=n&~i,o!==0?r=zr(o):l!==0&&(r=zr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ng(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-pt(l),s=1<<o,u=i[o];u===-1?(!(s&n)||s&r)&&(i[o]=Ng(s,t)):u<=t&&(e.expiredLanes|=s),l&=~s}}function ys(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Id(){var e=Ii;return Ii<<=1,!(Ii&4194240)&&(Ii=64),e}function mo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function Pg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-pt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function wu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var G=0;function Ld(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rd,Su,zd,Ad,Od,xs=!1,Ri=[],Kt=null,Yt=null,Xt=null,Jr=new Map,Zr=new Map,Vt=[],jg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Va(e,t){switch(e){case"focusin":case"focusout":Kt=null;break;case"dragenter":case"dragleave":Yt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":Jr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Er(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=vi(t),t!==null&&Su(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tg(e,t,n,r,i){switch(t){case"focusin":return Kt=Er(Kt,e,t,n,r,i),!0;case"dragenter":return Yt=Er(Yt,e,t,n,r,i),!0;case"mouseover":return Xt=Er(Xt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Jr.set(l,Er(Jr.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Zr.set(l,Er(Zr.get(l)||null,e,t,n,r,i)),!0}return!1}function Dd(e){var t=yn(e.target);if(t!==null){var n=Tn(t);if(n!==null){if(t=n.tag,t===13){if(t=Nd(n),t!==null){e.blockedOn=t,Od(e.priority,function(){zd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ps=r,n.target.dispatchEvent(r),ps=null}else return t=vi(n),t!==null&&Su(t),e.blockedOn=n,!1;t.shift()}return!0}function Ha(e,t,n){Gi(e)&&n.delete(t)}function _g(){xs=!1,Kt!==null&&Gi(Kt)&&(Kt=null),Yt!==null&&Gi(Yt)&&(Yt=null),Xt!==null&&Gi(Xt)&&(Xt=null),Jr.forEach(Ha),Zr.forEach(Ha)}function Nr(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,Ge.unstable_scheduleCallback(Ge.unstable_NormalPriority,_g)))}function ei(e){function t(i){return Nr(i,e)}if(0<Ri.length){Nr(Ri[0],e);for(var n=1;n<Ri.length;n++){var r=Ri[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kt!==null&&Nr(Kt,e),Yt!==null&&Nr(Yt,e),Xt!==null&&Nr(Xt,e),Jr.forEach(t),Zr.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)Dd(n),n.blockedOn===null&&Vt.shift()}var nr=Ot.ReactCurrentBatchConfig,gl=!0;function Ig(e,t,n,r){var i=G,l=nr.transition;nr.transition=null;try{G=1,Cu(e,t,n,r)}finally{G=i,nr.transition=l}}function Lg(e,t,n,r){var i=G,l=nr.transition;nr.transition=null;try{G=4,Cu(e,t,n,r)}finally{G=i,nr.transition=l}}function Cu(e,t,n,r){if(gl){var i=vs(e,t,n,r);if(i===null)No(e,t,r,yl,n),Va(e,r);else if(Tg(i,e,t,n,r))r.stopPropagation();else if(Va(e,r),t&4&&-1<jg.indexOf(e)){for(;i!==null;){var l=vi(i);if(l!==null&&Rd(l),l=vs(e,t,n,r),l===null&&No(e,t,r,yl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else No(e,t,r,null,n)}}var yl=null;function vs(e,t,n,r){if(yl=null,e=vu(r),e=yn(e),e!==null)if(t=Tn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yl=e,null}function Fd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vg()){case ku:return 1;case Td:return 4;case hl:case kg:return 16;case _d:return 536870912;default:return 16}default:return 16}}var Wt=null,Eu=null,Ji=null;function Md(){if(Ji)return Ji;var e,t=Eu,n=t.length,r,i="value"in Wt?Wt.value:Wt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Ji=i.slice(e,1<r?1-r:void 0)}function Zi(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 zi(){return!0}function Wa(){return!1}function Ze(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?zi:Wa,this.isPropagationStopped=Wa,this}return de(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Ze(mr),xi=de({},mr,{view:0,detail:0}),Rg=Ze(xi),go,yo,br,$l=de({},xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==br&&(br&&e.type==="mousemove"?(go=e.screenX-br.screenX,yo=e.screenY-br.screenY):yo=go=0,br=e),go)},movementY:function(e){return"movementY"in e?e.movementY:yo}}),Qa=Ze($l),zg=de({},$l,{dataTransfer:0}),Ag=Ze(zg),Og=de({},xi,{relatedTarget:0}),xo=Ze(Og),Dg=de({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),Fg=Ze(Dg),Mg=de({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bg=Ze(Mg),Ug=de({},mr,{data:0}),qa=Ze(Ug),$g={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vg={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hg[e])?!!t[e]:!1}function bu(){return Wg}var Qg=de({},xi,{key:function(e){if(e.key){var t=$g[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(e){return e.type==="keypress"?Zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qg=Ze(Qg),Kg=de({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ka=Ze(Kg),Yg=de({},xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),Xg=Ze(Yg),Gg=de({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jg=Ze(Gg),Zg=de({},$l,{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}),ey=Ze(Zg),ty=[9,13,27,32],Pu=Lt&&"CompositionEvent"in window,Mr=null;Lt&&"documentMode"in document&&(Mr=document.documentMode);var ny=Lt&&"TextEvent"in window&&!Mr,Bd=Lt&&(!Pu||Mr&&8<Mr&&11>=Mr),Ya=" ",Xa=!1;function Ud(e,t){switch(e){case"keyup":return ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function ry(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(Xa=!0,Ya);case"textInput":return e=t.data,e===Ya&&Xa?null:e;default:return null}}function iy(e,t){if($n)return e==="compositionend"||!Pu&&Ud(e,t)?(e=Md(),Ji=Eu=Wt=null,$n=!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 Bd&&t.locale!=="ko"?null:t.data;default:return null}}var ly={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 Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ly[e.type]:t==="textarea"}function Vd(e,t,n,r){kd(r),t=xl(t,"onChange"),0<t.length&&(n=new Nu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Br=null,ti=null;function oy(e){ep(e,0)}function Vl(e){var t=Wn(e);if(pd(t))return e}function sy(e,t){if(e==="change")return t}var Hd=!1;if(Lt){var vo;if(Lt){var ko="oninput"in document;if(!ko){var Ja=document.createElement("div");Ja.setAttribute("oninput","return;"),ko=typeof Ja.oninput=="function"}vo=ko}else vo=!1;Hd=vo&&(!document.documentMode||9<document.documentMode)}function Za(){Br&&(Br.detachEvent("onpropertychange",Wd),ti=Br=null)}function Wd(e){if(e.propertyName==="value"&&Vl(ti)){var t=[];Vd(t,ti,e,vu(e)),Ed(oy,t)}}function uy(e,t,n){e==="focusin"?(Za(),Br=t,ti=n,Br.attachEvent("onpropertychange",Wd)):e==="focusout"&&Za()}function ay(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vl(ti)}function cy(e,t){if(e==="click")return Vl(t)}function fy(e,t){if(e==="input"||e==="change")return Vl(t)}function dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:dy;function ni(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ts.call(t,i)||!gt(e[i],t[i]))return!1}return!0}function ec(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tc(e,t){var n=ec(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ec(n)}}function Qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qd(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function py(e){var t=qd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qd(n.ownerDocument.documentElement,n)){if(r!==null&&ju(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=tc(n,l);var o=tc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hy=Lt&&"documentMode"in document&&11>=document.documentMode,Vn=null,ks=null,Ur=null,ws=!1;function nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ws||Vn==null||Vn!==fl(r)||(r=Vn,"selectionStart"in r&&ju(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&ni(Ur,r)||(Ur=r,r=xl(ks,"onSelect"),0<r.length&&(t=new Nu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vn)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hn={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},wo={},Kd={};Lt&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function Hl(e){if(wo[e])return wo[e];if(!Hn[e])return e;var t=Hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kd)return wo[e]=t[n];return e}var Yd=Hl("animationend"),Xd=Hl("animationiteration"),Gd=Hl("animationstart"),Jd=Hl("transitionend"),Zd=new Map,rc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function sn(e,t){Zd.set(e,t),jn(t,[e])}for(var So=0;So<rc.length;So++){var Co=rc[So],my=Co.toLowerCase(),gy=Co[0].toUpperCase()+Co.slice(1);sn(my,"on"+gy)}sn(Yd,"onAnimationEnd");sn(Xd,"onAnimationIteration");sn(Gd,"onAnimationStart");sn("dblclick","onDoubleClick");sn("focusin","onFocus");sn("focusout","onBlur");sn(Jd,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));jn("onBeforeInput",["compositionend","keypress","textInput","paste"]);jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function ic(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mg(r,t,void 0,e),e.currentTarget=null}function ep(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==l&&i.isPropagationStopped())break e;ic(i,s,a),l=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,a=s.currentTarget,s=s.listener,u!==l&&i.isPropagationStopped())break e;ic(i,s,a),l=u}}}if(pl)throw e=gs,pl=!1,gs=null,e}function le(e,t){var n=t[bs];n===void 0&&(n=t[bs]=new Set);var r=e+"__bubble";n.has(r)||(tp(t,e,2,!1),n.add(r))}function Eo(e,t,n){var r=0;t&&(r|=4),tp(n,e,r,t)}var Oi="_reactListening"+Math.random().toString(36).slice(2);function ri(e){if(!e[Oi]){e[Oi]=!0,ud.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Eo(n,!1,e),Eo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oi]||(t[Oi]=!0,Eo("selectionchange",!1,t))}}function tp(e,t,n,r){switch(Fd(t)){case 1:var i=Ig;break;case 4:i=Lg;break;default:i=Cu}n=i.bind(null,t,n,e),i=void 0,!ms||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function No(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=yn(s),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Ed(function(){var a=l,f=vu(n),c=[];e:{var d=Zd.get(e);if(d!==void 0){var p=Nu,h=e;switch(e){case"keypress":if(Zi(n)===0)break e;case"keydown":case"keyup":p=qg;break;case"focusin":h="focus",p=xo;break;case"focusout":h="blur",p=xo;break;case"beforeblur":case"afterblur":p=xo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Qa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Xg;break;case Yd:case Xd:case Gd:p=Fg;break;case Jd:p=Jg;break;case"scroll":p=Rg;break;case"wheel":p=ey;break;case"copy":case"cut":case"paste":p=Bg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ka}var k=(t&4)!==0,N=!k&&e==="scroll",g=k?d!==null?d+"Capture":null:d;k=[];for(var y=a,x;y!==null;){x=y;var b=x.stateNode;if(x.tag===5&&b!==null&&(x=b,g!==null&&(b=Gr(y,g),b!=null&&k.push(ii(y,b,x)))),N)break;y=y.return}0<k.length&&(d=new p(d,h,null,n,f),c.push({event:d,listeners:k}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==ps&&(h=n.relatedTarget||n.fromElement)&&(yn(h)||h[Rt]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=a,h=h?yn(h):null,h!==null&&(N=Tn(h),h!==N||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=a),p!==h)){if(k=Qa,b="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(k=Ka,b="onPointerLeave",g="onPointerEnter",y="pointer"),N=p==null?d:Wn(p),x=h==null?d:Wn(h),d=new k(b,y+"leave",p,n,f),d.target=N,d.relatedTarget=x,b=null,yn(f)===a&&(k=new k(g,y+"enter",h,n,f),k.target=x,k.relatedTarget=N,b=k),N=b,p&&h)t:{for(k=p,g=h,y=0,x=k;x;x=An(x))y++;for(x=0,b=g;b;b=An(b))x++;for(;0<y-x;)k=An(k),y--;for(;0<x-y;)g=An(g),x--;for(;y--;){if(k===g||g!==null&&k===g.alternate)break t;k=An(k),g=An(g)}k=null}else k=null;p!==null&&lc(c,d,p,k,!1),h!==null&&N!==null&&lc(c,N,h,k,!0)}}e:{if(d=a?Wn(a):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var j=sy;else if(Ga(d))if(Hd)j=fy;else{j=ay;var E=uy}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(j=cy);if(j&&(j=j(e,a))){Vd(c,j,n,f);break e}E&&E(e,d,a),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&us(d,"number",d.value)}switch(E=a?Wn(a):window,e){case"focusin":(Ga(E)||E.contentEditable==="true")&&(Vn=E,ks=a,Ur=null);break;case"focusout":Ur=ks=Vn=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,nc(c,n,f);break;case"selectionchange":if(hy)break;case"keydown":case"keyup":nc(c,n,f)}var S;if(Pu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else $n?Ud(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Bd&&n.locale!=="ko"&&($n||P!=="onCompositionStart"?P==="onCompositionEnd"&&$n&&(S=Md()):(Wt=f,Eu="value"in Wt?Wt.value:Wt.textContent,$n=!0)),E=xl(a,P),0<E.length&&(P=new qa(P,e,null,n,f),c.push({event:P,listeners:E}),S?P.data=S:(S=$d(n),S!==null&&(P.data=S)))),(S=ny?ry(e,n):iy(e,n))&&(a=xl(a,"onBeforeInput"),0<a.length&&(f=new qa("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=S))}ep(c,t)})}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=Gr(e,n),l!=null&&r.unshift(ii(e,l,i)),l=Gr(e,t),l!=null&&r.push(ii(e,l,i))),e=e.return}return r}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lc(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,i?(u=Gr(n,l),u!=null&&o.unshift(ii(n,u,s))):i||(u=Gr(n,l),u!=null&&o.push(ii(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xy=/\r\n?/g,vy=/\u0000|\uFFFD/g;function oc(e){return(typeof e=="string"?e:""+e).replace(xy,`
38
+ `).replace(vy,"")}function Di(e,t,n){if(t=oc(t),oc(e)!==t&&n)throw Error(L(425))}function vl(){}var Ss=null,Cs=null;function Es(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ns=typeof setTimeout=="function"?setTimeout:void 0,ky=typeof clearTimeout=="function"?clearTimeout:void 0,sc=typeof Promise=="function"?Promise:void 0,wy=typeof queueMicrotask=="function"?queueMicrotask:typeof sc<"u"?function(e){return sc.resolve(null).then(e).catch(Sy)}:Ns;function Sy(e){setTimeout(function(){throw e})}function bo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ei(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ei(t)}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function uc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gr=Math.random().toString(36).slice(2),wt="__reactFiber$"+gr,li="__reactProps$"+gr,Rt="__reactContainer$"+gr,bs="__reactEvents$"+gr,Cy="__reactListeners$"+gr,Ey="__reactHandles$"+gr;function yn(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Rt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uc(e);e!==null;){if(n=e[wt])return n;e=uc(e)}return t}e=n,n=e.parentNode}return null}function vi(e){return e=e[wt]||e[Rt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Wl(e){return e[li]||null}var Ps=[],Qn=-1;function un(e){return{current:e}}function oe(e){0>Qn||(e.current=Ps[Qn],Ps[Qn]=null,Qn--)}function re(e,t){Qn++,Ps[Qn]=e.current,e.current=t}var on={},Ie=un(on),Ue=un(!1),Sn=on;function sr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function kl(){oe(Ue),oe(Ie)}function ac(e,t,n){if(Ie.current!==on)throw Error(L(168));re(Ie,t),re(Ue,n)}function np(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,ug(e)||"Unknown",i));return de({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Sn=Ie.current,re(Ie,e),re(Ue,Ue.current),!0}function cc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=np(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ue),oe(Ie),re(Ie,e)):oe(Ue),re(Ue,n)}var jt=null,Ql=!1,Po=!1;function rp(e){jt===null?jt=[e]:jt.push(e)}function Ny(e){Ql=!0,rp(e)}function an(){if(!Po&&jt!==null){Po=!0;var e=0,t=G;try{var n=jt;for(G=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,Ql=!1}catch(i){throw jt!==null&&(jt=jt.slice(e+1)),jd(ku,an),i}finally{G=t,Po=!1}}return null}var qn=[],Kn=0,Sl=null,Cl=0,et=[],tt=0,Cn=null,Tt=1,_t="";function hn(e,t){qn[Kn++]=Cl,qn[Kn++]=Sl,Sl=e,Cl=t}function ip(e,t,n){et[tt++]=Tt,et[tt++]=_t,et[tt++]=Cn,Cn=e;var r=Tt;e=_t;var i=32-pt(r)-1;r&=~(1<<i),n+=1;var l=32-pt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Tt=1<<32-pt(t)+i|n<<i|r,_t=l+e}else Tt=1<<l|n<<i|r,_t=e}function Tu(e){e.return!==null&&(hn(e,1),ip(e,1,0))}function _u(e){for(;e===Sl;)Sl=qn[--Kn],qn[Kn]=null,Cl=qn[--Kn],qn[Kn]=null;for(;e===Cn;)Cn=et[--tt],et[tt]=null,_t=et[--tt],et[tt]=null,Tt=et[--tt],et[tt]=null}var Ye=null,Ke=null,ue=!1,dt=null;function lp(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ye=e,Ke=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cn!==null?{id:Tt,overflow:_t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ke=null,!0):!1;default:return!1}}function js(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ts(e){if(ue){var t=Ke;if(t){var n=t;if(!fc(e,t)){if(js(e))throw Error(L(418));t=Gt(n.nextSibling);var r=Ye;t&&fc(e,t)?lp(r,n):(e.flags=e.flags&-4097|2,ue=!1,Ye=e)}}else{if(js(e))throw Error(L(418));e.flags=e.flags&-4097|2,ue=!1,Ye=e}}}function dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Fi(e){if(e!==Ye)return!1;if(!ue)return dc(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Es(e.type,e.memoizedProps)),t&&(t=Ke)){if(js(e))throw op(),Error(L(418));for(;t;)lp(e,t),t=Gt(t.nextSibling)}if(dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Ye?Gt(e.stateNode.nextSibling):null;return!0}function op(){for(var e=Ke;e;)e=Gt(e.nextSibling)}function ur(){Ke=Ye=null,ue=!1}function Iu(e){dt===null?dt=[e]:dt.push(e)}var by=Ot.ReactCurrentBatchConfig;function Pr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Mi(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pc(e){var t=e._init;return t(e._payload)}function sp(e){function t(g,y){if(e){var x=g.deletions;x===null?(g.deletions=[y],g.flags|=16):x.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function i(g,y){return g=tn(g,y),g.index=0,g.sibling=null,g}function l(g,y,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<y?(g.flags|=2,y):x):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,y,x,b){return y===null||y.tag!==6?(y=zo(x,g.mode,b),y.return=g,y):(y=i(y,x),y.return=g,y)}function u(g,y,x,b){var j=x.type;return j===Un?f(g,y,x.props.children,b,x.key):y!==null&&(y.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ut&&pc(j)===y.type)?(b=i(y,x.props),b.ref=Pr(g,y,x),b.return=g,b):(b=ol(x.type,x.key,x.props,null,g.mode,b),b.ref=Pr(g,y,x),b.return=g,b)}function a(g,y,x,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Ao(x,g.mode,b),y.return=g,y):(y=i(y,x.children||[]),y.return=g,y)}function f(g,y,x,b,j){return y===null||y.tag!==7?(y=wn(x,g.mode,b,j),y.return=g,y):(y=i(y,x),y.return=g,y)}function c(g,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=zo(""+y,g.mode,x),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ji:return x=ol(y.type,y.key,y.props,null,g.mode,x),x.ref=Pr(g,null,y),x.return=g,x;case Bn:return y=Ao(y,g.mode,x),y.return=g,y;case Ut:var b=y._init;return c(g,b(y._payload),x)}if(Rr(y)||Sr(y))return y=wn(y,g.mode,x,null),y.return=g,y;Mi(g,y)}return null}function d(g,y,x,b){var j=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return j!==null?null:s(g,y,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ji:return x.key===j?u(g,y,x,b):null;case Bn:return x.key===j?a(g,y,x,b):null;case Ut:return j=x._init,d(g,y,j(x._payload),b)}if(Rr(x)||Sr(x))return j!==null?null:f(g,y,x,b,null);Mi(g,x)}return null}function p(g,y,x,b,j){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(x)||null,s(y,g,""+b,j);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ji:return g=g.get(b.key===null?x:b.key)||null,u(y,g,b,j);case Bn:return g=g.get(b.key===null?x:b.key)||null,a(y,g,b,j);case Ut:var E=b._init;return p(g,y,x,E(b._payload),j)}if(Rr(b)||Sr(b))return g=g.get(x)||null,f(y,g,b,j,null);Mi(y,b)}return null}function h(g,y,x,b){for(var j=null,E=null,S=y,P=y=0,I=null;S!==null&&P<x.length;P++){S.index>P?(I=S,S=null):I=S.sibling;var C=d(g,S,x[P],b);if(C===null){S===null&&(S=I);break}e&&S&&C.alternate===null&&t(g,S),y=l(C,y,P),E===null?j=C:E.sibling=C,E=C,S=I}if(P===x.length)return n(g,S),ue&&hn(g,P),j;if(S===null){for(;P<x.length;P++)S=c(g,x[P],b),S!==null&&(y=l(S,y,P),E===null?j=S:E.sibling=S,E=S);return ue&&hn(g,P),j}for(S=r(g,S);P<x.length;P++)I=p(S,g,P,x[P],b),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?P:I.key),y=l(I,y,P),E===null?j=I:E.sibling=I,E=I);return e&&S.forEach(function(O){return t(g,O)}),ue&&hn(g,P),j}function k(g,y,x,b){var j=Sr(x);if(typeof j!="function")throw Error(L(150));if(x=j.call(x),x==null)throw Error(L(151));for(var E=j=null,S=y,P=y=0,I=null,C=x.next();S!==null&&!C.done;P++,C=x.next()){S.index>P?(I=S,S=null):I=S.sibling;var O=d(g,S,C.value,b);if(O===null){S===null&&(S=I);break}e&&S&&O.alternate===null&&t(g,S),y=l(O,y,P),E===null?j=O:E.sibling=O,E=O,S=I}if(C.done)return n(g,S),ue&&hn(g,P),j;if(S===null){for(;!C.done;P++,C=x.next())C=c(g,C.value,b),C!==null&&(y=l(C,y,P),E===null?j=C:E.sibling=C,E=C);return ue&&hn(g,P),j}for(S=r(g,S);!C.done;P++,C=x.next())C=p(S,g,P,C.value,b),C!==null&&(e&&C.alternate!==null&&S.delete(C.key===null?P:C.key),y=l(C,y,P),E===null?j=C:E.sibling=C,E=C);return e&&S.forEach(function(F){return t(g,F)}),ue&&hn(g,P),j}function N(g,y,x,b){if(typeof x=="object"&&x!==null&&x.type===Un&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ji:e:{for(var j=x.key,E=y;E!==null;){if(E.key===j){if(j=x.type,j===Un){if(E.tag===7){n(g,E.sibling),y=i(E,x.props.children),y.return=g,g=y;break e}}else if(E.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ut&&pc(j)===E.type){n(g,E.sibling),y=i(E,x.props),y.ref=Pr(g,E,x),y.return=g,g=y;break e}n(g,E);break}else t(g,E);E=E.sibling}x.type===Un?(y=wn(x.props.children,g.mode,b,x.key),y.return=g,g=y):(b=ol(x.type,x.key,x.props,null,g.mode,b),b.ref=Pr(g,y,x),b.return=g,g=b)}return o(g);case Bn:e:{for(E=x.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=i(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Ao(x,g.mode,b),y.return=g,g=y}return o(g);case Ut:return E=x._init,N(g,y,E(x._payload),b)}if(Rr(x))return h(g,y,x,b);if(Sr(x))return k(g,y,x,b);Mi(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,x),y.return=g,g=y):(n(g,y),y=zo(x,g.mode,b),y.return=g,g=y),o(g)):n(g,y)}return N}var ar=sp(!0),up=sp(!1),El=un(null),Nl=null,Yn=null,Lu=null;function Ru(){Lu=Yn=Nl=null}function zu(e){var t=El.current;oe(El),e._currentValue=t}function _s(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rr(e,t){Nl=e,Lu=Yn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},Yn===null){if(Nl===null)throw Error(L(308));Yn=e,Nl.dependencies={lanes:0,firstContext:e}}else Yn=Yn.next=e;return t}var xn=null;function Au(e){xn===null?xn=[e]:xn.push(e)}function ap(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Au(t)):(n.next=i.next,i.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $t=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,zt(e,n)}return i=r.interleaved,i===null?(t.next=t,Au(r)):(t.next=i.next,i.next=t),r.interleaved=t,zt(e,n)}function el(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function hc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bl(e,t,n,r){var i=e.updateQueue;$t=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?l=a:o.next=a,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(l!==null){var c=i.baseState;o=0,f=a=u=null,s=l;do{var d=s.lane,p=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,k=s;switch(d=t,p=n,k.tag){case 1:if(h=k.payload,typeof h=="function"){c=h.call(p,c,d);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=k.payload,d=typeof h=="function"?h.call(p,c,d):h,d==null)break e;c=de({},c,d);break e;case 2:$t=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=p,u=c):f=f.next=p,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Nn|=o,e.lanes=o,e.memoizedState=c}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var ki={},Ct=un(ki),oi=un(ki),si=un(ki);function vn(e){if(e===ki)throw Error(L(174));return e}function Du(e,t){switch(re(si,t),re(oi,e),re(Ct,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cs(t,e)}oe(Ct),re(Ct,t)}function cr(){oe(Ct),oe(oi),oe(si)}function fp(e){vn(si.current);var t=vn(Ct.current),n=cs(t,e.type);t!==n&&(re(oi,e),re(Ct,n))}function Fu(e){oi.current===e&&(oe(Ct),oe(oi))}var ce=un(0);function Pl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 jo=[];function Mu(){for(var e=0;e<jo.length;e++)jo[e]._workInProgressVersionPrimary=null;jo.length=0}var tl=Ot.ReactCurrentDispatcher,To=Ot.ReactCurrentBatchConfig,En=0,fe=null,ke=null,Se=null,jl=!1,$r=!1,ui=0,Py=0;function Pe(){throw Error(L(321))}function Bu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function Uu(e,t,n,r,i,l){if(En=l,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?Iy:Ly,e=n(r,i),$r){l=0;do{if($r=!1,ui=0,25<=l)throw Error(L(301));l+=1,Se=ke=null,t.updateQueue=null,tl.current=Ry,e=n(r,i)}while($r)}if(tl.current=Tl,t=ke!==null&&ke.next!==null,En=0,Se=ke=fe=null,jl=!1,t)throw Error(L(300));return e}function $u(){var e=ui!==0;return ui=0,e}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?fe.memoizedState=Se=e:Se=Se.next=e,Se}function ot(){if(ke===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Se===null?fe.memoizedState:Se.next;if(t!==null)Se=t,ke=e;else{if(e===null)throw Error(L(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Se===null?fe.memoizedState=Se=e:Se=Se.next=e}return Se}function ai(e,t){return typeof t=="function"?t(e):t}function _o(e){var t=ot(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=ke,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,u=null,a=l;do{var f=a.lane;if((En&f)===f)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=c,o=r):u=u.next=c,fe.lanes|=f,Nn|=f}a=a.next}while(a!==null&&a!==l);u===null?o=r:u.next=s,gt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,fe.lanes|=l,Nn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=ot(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);gt(l,t.memoizedState)||(Be=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function dp(){}function pp(e,t){var n=fe,r=ot(),i=t(),l=!gt(r.memoizedState,i);if(l&&(r.memoizedState=i,Be=!0),r=r.queue,Vu(gp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,ci(9,mp.bind(null,n,r,i,t),void 0,null),Ce===null)throw Error(L(349));En&30||hp(n,t,i)}return i}function hp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mp(e,t,n,r){t.value=n,t.getSnapshot=r,yp(t)&&xp(e)}function gp(e,t,n){return n(function(){yp(t)&&xp(e)})}function yp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function xp(e){var t=zt(e,1);t!==null&&ht(t,e,1,-1)}function gc(e){var t=vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:e},t.queue=e,e=e.dispatch=_y.bind(null,fe,e),[t.memoizedState,e]}function ci(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function vp(){return ot().memoizedState}function nl(e,t,n,r){var i=vt();fe.flags|=e,i.memoizedState=ci(1|t,n,void 0,r===void 0?null:r)}function ql(e,t,n,r){var i=ot();r=r===void 0?null:r;var l=void 0;if(ke!==null){var o=ke.memoizedState;if(l=o.destroy,r!==null&&Bu(r,o.deps)){i.memoizedState=ci(t,n,l,r);return}}fe.flags|=e,i.memoizedState=ci(1|t,n,l,r)}function yc(e,t){return nl(8390656,8,e,t)}function Vu(e,t){return ql(2048,8,e,t)}function kp(e,t){return ql(4,2,e,t)}function wp(e,t){return ql(4,4,e,t)}function Sp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cp(e,t,n){return n=n!=null?n.concat([e]):null,ql(4,4,Sp.bind(null,t,e),n)}function Hu(){}function Ep(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Np(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bp(e,t,n){return En&21?(gt(n,t)||(n=Id(),fe.lanes|=n,Nn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function jy(e,t){var n=G;G=n!==0&&4>n?n:4,e(!0);var r=To.transition;To.transition={};try{e(!1),t()}finally{G=n,To.transition=r}}function Pp(){return ot().memoizedState}function Ty(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jp(e))Tp(t,n);else if(n=ap(e,t,n,r),n!==null){var i=Ae();ht(n,e,r,i),_p(n,t,r)}}function _y(e,t,n){var r=en(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jp(e))Tp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,gt(s,o)){var u=t.interleaved;u===null?(i.next=i,Au(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ap(e,t,i,r),n!==null&&(i=Ae(),ht(n,e,r,i),_p(n,t,r))}}function jp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Tp(e,t){$r=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _p(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var Tl={readContext:lt,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},Iy={readContext:lt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:yc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Sp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ty.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:gc,useDebugValue:Hu,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=gc(!1),t=e[0];return e=jy.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,i=vt();if(ue){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ce===null)throw Error(L(349));En&30||hp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,yc(gp.bind(null,r,l,e),[e]),r.flags|=2048,ci(9,mp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ce.identifierPrefix;if(ue){var n=_t,r=Tt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ui++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Py++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ly={readContext:lt,useCallback:Ep,useContext:lt,useEffect:Vu,useImperativeHandle:Cp,useInsertionEffect:kp,useLayoutEffect:wp,useMemo:Np,useReducer:_o,useRef:vp,useState:function(){return _o(ai)},useDebugValue:Hu,useDeferredValue:function(e){var t=ot();return bp(t,ke.memoizedState,e)},useTransition:function(){var e=_o(ai)[0],t=ot().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:pp,useId:Pp,unstable_isNewReconciler:!1},Ry={readContext:lt,useCallback:Ep,useContext:lt,useEffect:Vu,useImperativeHandle:Cp,useInsertionEffect:kp,useLayoutEffect:wp,useMemo:Np,useReducer:Io,useRef:vp,useState:function(){return Io(ai)},useDebugValue:Hu,useDeferredValue:function(e){var t=ot();return ke===null?t.memoizedState=e:bp(t,ke.memoizedState,e)},useTransition:function(){var e=Io(ai)[0],t=ot().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:pp,useId:Pp,unstable_isNewReconciler:!1};function ct(e,t){if(e&&e.defaultProps){t=de({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:de({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kl={isMounted:function(e){return(e=e._reactInternals)?Tn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=en(e),l=It(r,i);l.payload=t,n!=null&&(l.callback=n),t=Jt(e,l,i),t!==null&&(ht(t,e,i,r),el(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=en(e),l=It(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Jt(e,l,i),t!==null&&(ht(t,e,i,r),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=en(e),i=It(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jt(e,i,r),t!==null&&(ht(t,e,r,n),el(t,e,r))}};function xc(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ni(n,r)||!ni(i,l):!0}function Ip(e,t,n){var r=!1,i=on,l=t.contextType;return typeof l=="object"&&l!==null?l=lt(l):(i=$e(t)?Sn:Ie.current,r=t.contextTypes,l=(r=r!=null)?sr(e,i):on),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function vc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kl.enqueueReplaceState(t,t.state,null)}function Ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ou(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=lt(l):(l=$e(t)?Sn:Ie.current,i.context=sr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Is(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kl.enqueueReplaceState(i,i.state,null),bl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fr(e,t){try{var n="",r=t;do n+=sg(r),r=r.return;while(r);var i=n}catch(l){i=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function Lo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zy=typeof WeakMap=="function"?WeakMap:Map;function Lp(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Vs=r),Rs(e,t)},n}function Rp(e,t,n){n=It(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Rs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Rs(e,t),typeof r!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function kc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zy;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ky.bind(null,e,t,n),t.then(e,e))}function wc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=It(-1,1),t.tag=2,Jt(n,t,1))),n.lanes|=1),e)}var Ay=Ot.ReactCurrentOwner,Be=!1;function Re(e,t,n,r){t.child=e===null?up(t,null,n,r):ar(t,e.child,n,r)}function Cc(e,t,n,r,i){n=n.render;var l=t.ref;return rr(t,i),r=Uu(e,t,n,r,l,i),n=$u(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(ue&&n&&Tu(t),t.flags|=1,Re(e,t,r,i),t.child)}function Ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ju(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zp(e,t,l,r,i)):(e=ol(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ni,n(o,r)&&e.ref===t.ref)return At(e,t,i)}return t.flags|=1,e=tn(l,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ni(l,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,At(e,t,i)}return zs(e,t,n,r,i)}function Ap(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Gn,qe),qe|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(Gn,qe),qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,re(Gn,qe),qe|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,re(Gn,qe),qe|=r;return Re(e,t,i,n),t.child}function Op(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zs(e,t,n,r,i){var l=$e(n)?Sn:Ie.current;return l=sr(t,l),rr(t,i),n=Uu(e,t,n,r,l,i),r=$u(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(ue&&r&&Tu(t),t.flags|=1,Re(e,t,n,i),t.child)}function Nc(e,t,n,r,i){if($e(n)){var l=!0;wl(t)}else l=!1;if(rr(t,i),t.stateNode===null)rl(e,t),Ip(t,n,r),Ls(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=lt(a):(a=$e(n)?Sn:Ie.current,a=sr(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&vc(t,o,r,a),$t=!1;var d=t.memoizedState;o.state=d,bl(t,r,o,i),u=t.memoizedState,s!==r||d!==u||Ue.current||$t?(typeof f=="function"&&(Is(t,n,f,r),u=t.memoizedState),(s=$t||xc(t,n,s,r,d,u,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,cp(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:ct(t.type,s),o.props=a,c=t.pendingProps,d=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=lt(u):(u=$e(n)?Sn:Ie.current,u=sr(t,u));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==u)&&vc(t,o,r,u),$t=!1,d=t.memoizedState,o.state=d,bl(t,r,o,i);var h=t.memoizedState;s!==c||d!==h||Ue.current||$t?(typeof p=="function"&&(Is(t,n,p,r),h=t.memoizedState),(a=$t||xc(t,n,a,r,d,h,u)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,l,i)}function As(e,t,n,r,i,l){Op(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&cc(t,n,!1),At(e,t,l);r=t.stateNode,Ay.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ar(t,e.child,null,l),t.child=ar(t,null,s,l)):Re(e,t,s,l),t.memoizedState=r.state,i&&cc(t,n,!0),t.child}function Dp(e){var t=e.stateNode;t.pendingContext?ac(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ac(e,t.context,!1),Du(e,t.containerInfo)}function bc(e,t,n,r,i){return ur(),Iu(i),t.flags|=256,Re(e,t,n,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fp(e,t,n){var r=t.pendingProps,i=ce.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),re(ce,i&1),e===null)return Ts(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Gl(o,r,0,null),e=wn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ds(n),t.memoizedState=Os,e):Wu(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Oy(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=tn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=tn(s,l):(l=wn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ds(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Os,r}return l=e.child,e=l.sibling,r=tn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wu(e,t){return t=Gl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bi(e,t,n,r){return r!==null&&Iu(r),ar(t,e.child,null,n),e=Wu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oy(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Lo(Error(L(422))),Bi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Gl({mode:"visible",children:r.children},i,0,null),l=wn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ar(t,e.child,null,o),t.child.memoizedState=Ds(o),t.memoizedState=Os,l);if(!(t.mode&1))return Bi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(L(419)),r=Lo(l,r,void 0),Bi(e,t,o,r)}if(s=(o&e.childLanes)!==0,Be||s){if(r=Ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,zt(e,i),ht(r,e,i,-1))}return Gu(),r=Lo(Error(L(421))),Bi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Yy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ke=Gt(i.nextSibling),Ye=t,ue=!0,dt=null,e!==null&&(et[tt++]=Tt,et[tt++]=_t,et[tt++]=Cn,Tt=e.id,_t=e.overflow,Cn=t),t=Wu(t,r.children),t.flags|=4096,t)}function Pc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_s(e.return,t,n)}function Ro(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Mp(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Re(e,t,r.children,n),r=ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pc(e,n,t);else if(e.tag===19)Pc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(ce,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Pl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ro(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Pl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ro(t,!0,n,null,l);break;case"together":Ro(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function At(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dy(e,t,n){switch(t.tag){case 3:Dp(t),ur();break;case 5:fp(t);break;case 1:$e(t.type)&&wl(t);break;case 4:Du(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;re(El,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(ce,ce.current&1),t.flags|=128,null):n&t.child.childLanes?Fp(e,t,n):(re(ce,ce.current&1),e=At(e,t,n),e!==null?e.sibling:null);re(ce,ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),re(ce,ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Ap(e,t,n)}return At(e,t,n)}var Bp,Fs,Up,$p;Bp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Fs=function(){};Up=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vn(Ct.current);var l=null;switch(n){case"input":i=os(e,i),r=os(e,r),l=[];break;case"select":i=de({},i,{value:void 0}),r=de({},r,{value:void 0}),l=[];break;case"textarea":i=as(e,i),r=as(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vl)}fs(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var s=i[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Yr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var u=r[a];if(s=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Yr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&le("scroll",e),l||s===u||(l=[])):(l=l||[]).push(a,u))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};$p=function(e,t,n,r){n!==r&&(t.flags|=4)};function jr(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fy(e,t,n){var r=t.pendingProps;switch(_u(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return $e(t.type)&&kl(),je(t),null;case 3:return r=t.stateNode,cr(),oe(Ue),oe(Ie),Mu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dt!==null&&(Qs(dt),dt=null))),Fs(e,t),je(t),null;case 5:Fu(t);var i=vn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)Up(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return je(t),null}if(e=vn(Ct.current),Fi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[wt]=t,r[li]=l,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(i=0;i<Ar.length;i++)le(Ar[i],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Oa(r,l),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},le("invalid",r);break;case"textarea":Fa(r,l),le("invalid",r)}fs(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Di(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Di(r.textContent,s,e),i=["children",""+s]):Yr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&le("scroll",r)}switch(n){case"input":Ti(r),Da(r,l,!0);break;case"textarea":Ti(r),Ma(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=vl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[wt]=t,e[li]=r,Bp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ds(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ar.length;i++)le(Ar[i],e);i=r;break;case"source":le("error",e),i=r;break;case"img":case"image":case"link":le("error",e),le("load",e),i=r;break;case"details":le("toggle",e),i=r;break;case"input":Oa(e,r),i=os(e,r),le("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=de({},r,{value:void 0}),le("invalid",e);break;case"textarea":Fa(e,r),i=as(e,r),le("invalid",e);break;default:i=r}fs(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var u=s[l];l==="style"?vd(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&yd(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Xr(e,u):typeof u=="number"&&Xr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Yr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&le("scroll",e):u!=null&&mu(e,l,u,o))}switch(n){case"input":Ti(e),Da(e,r,!1);break;case"textarea":Ti(e),Ma(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Zn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Zn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)$p(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=vn(si.current),vn(Ct.current),Fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[wt]=t,(l=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Di(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Di(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wt]=t,t.stateNode=r}return je(t),null;case 13:if(oe(ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&Ke!==null&&t.mode&1&&!(t.flags&128))op(),ur(),t.flags|=98560,l=!1;else if(l=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(L(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(L(317));l[wt]=t}else ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),l=!1}else dt!==null&&(Qs(dt),dt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ce.current&1?we===0&&(we=3):Gu())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return cr(),Fs(e,t),e===null&&ri(t.stateNode.containerInfo),je(t),null;case 10:return zu(t.type._context),je(t),null;case 17:return $e(t.type)&&kl(),je(t),null;case 19:if(oe(ce),l=t.memoizedState,l===null)return je(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)jr(l,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Pl(e),o!==null){for(t.flags|=128,jr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(ce,ce.current&1|2),t.child}e=e.sibling}l.tail!==null&&me()>dr&&(t.flags|=128,r=!0,jr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Pl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ue)return je(t),null}else 2*me()-l.renderingStartTime>dr&&n!==1073741824&&(t.flags|=128,r=!0,jr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=me(),t.sibling=null,n=ce.current,re(ce,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Xu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function My(e,t){switch(_u(t),t.tag){case 1:return $e(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),oe(Ue),oe(Ie),Mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fu(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ce),null;case 4:return cr(),null;case 10:return zu(t.type._context),null;case 22:case 23:return Xu(),null;case 24:return null;default:return null}}var Ui=!1,Te=!1,By=typeof WeakSet=="function"?WeakSet:Set,D=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function Ms(e,t,n){try{n()}catch(r){he(e,t,r)}}var jc=!1;function Uy(e,t){if(Ss=gl,e=qd(),ju(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(s=o+i),c!==l||r!==0&&c.nodeType!==3||(u=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++a===i&&(s=o),d===l&&++f===r&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cs={focusedElem:e,selectionRange:n},gl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var k=h.memoizedProps,N=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?k:ct(t.type,k),N);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(b){he(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return h=jc,jc=!1,h}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ms(t,n,l)}i=i.next}while(i!==r)}}function Yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[li],delete t[bs],delete t[Cy],delete t[Ey])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hp(e){return e.tag===5||e.tag===3||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Us(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vl));else if(r!==4&&(e=e.child,e!==null))for(Us(e,t,n),e=e.sibling;e!==null;)Us(e,t,n),e=e.sibling}function $s(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($s(e,t,n),e=e.sibling;e!==null;)$s(e,t,n),e=e.sibling}var Ee=null,ft=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Wp(e,t,n),n=n.sibling}function Wp(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:Te||Xn(n,t);case 6:var r=Ee,i=ft;Ee=null,Mt(e,t,n),Ee=r,ft=i,Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?bo(e.parentNode,n):e.nodeType===1&&bo(e,n),ei(e)):bo(Ee,n.stateNode));break;case 4:r=Ee,i=ft,Ee=n.stateNode.containerInfo,ft=!0,Mt(e,t,n),Ee=r,ft=i;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ms(n,t,o),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Te&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){he(n,t,s)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Mt(e,t,n),Te=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function _c(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new By),t.forEach(function(r){var i=Xy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Ee=s.stateNode,ft=!1;break e;case 3:Ee=s.stateNode.containerInfo,ft=!0;break e;case 4:Ee=s.stateNode.containerInfo,ft=!0;break e}s=s.return}if(Ee===null)throw Error(L(160));Wp(l,o,i),Ee=null,ft=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){he(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qp(t,e),t=t.sibling}function Qp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(at(t,e),xt(e),r&4){try{Vr(3,e,e.return),Yl(3,e)}catch(k){he(e,e.return,k)}try{Vr(5,e,e.return)}catch(k){he(e,e.return,k)}}break;case 1:at(t,e),xt(e),r&512&&n!==null&&Xn(n,n.return);break;case 5:if(at(t,e),xt(e),r&512&&n!==null&&Xn(n,n.return),e.flags&32){var i=e.stateNode;try{Xr(i,"")}catch(k){he(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&hd(i,l),ds(s,o);var a=ds(s,l);for(o=0;o<u.length;o+=2){var f=u[o],c=u[o+1];f==="style"?vd(i,c):f==="dangerouslySetInnerHTML"?yd(i,c):f==="children"?Xr(i,c):mu(i,f,c,a)}switch(s){case"input":ss(i,l);break;case"textarea":md(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var p=l.value;p!=null?Zn(i,!!l.multiple,p,!1):d!==!!l.multiple&&(l.defaultValue!=null?Zn(i,!!l.multiple,l.defaultValue,!0):Zn(i,!!l.multiple,l.multiple?[]:"",!1))}i[li]=l}catch(k){he(e,e.return,k)}}break;case 6:if(at(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(k){he(e,e.return,k)}}break;case 3:if(at(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ei(t.containerInfo)}catch(k){he(e,e.return,k)}break;case 4:at(t,e),xt(e);break;case 13:at(t,e),xt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Ku=me())),r&4&&_c(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Te=(a=Te)||f,at(t,e),Te=a):at(t,e),xt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(D=e,f=e.child;f!==null;){for(c=D=f;D!==null;){switch(d=D,p=d.child,d.tag){case 0:case 11:case 14:case 15:Vr(4,d,d.return);break;case 1:Xn(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(k){he(r,n,k)}}break;case 5:Xn(d,d.return);break;case 22:if(d.memoizedState!==null){Lc(c);continue}}p!==null?(p.return=d,D=p):Lc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=c.stateNode,u=c.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=xd("display",o))}catch(k){he(e,e.return,k)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(k){he(e,e.return,k)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:at(t,e),xt(e),r&4&&_c(e);break;case 21:break;default:at(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hp(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Xr(i,""),r.flags&=-33);var l=Tc(e);$s(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Tc(e);Us(e,s,o);break;default:throw Error(L(161))}}catch(u){he(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $y(e,t,n){D=e,qp(e)}function qp(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Ui;if(!o){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Te;s=Ui;var a=Te;if(Ui=o,(Te=u)&&!a)for(D=i;D!==null;)o=D,u=o.child,o.tag===22&&o.memoizedState!==null?Rc(i):u!==null?(u.return=o,D=u):Rc(i);for(;l!==null;)D=l,qp(l),l=l.sibling;D=i,Ui=s,Te=a}Ic(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,D=l):Ic(e)}}function Ic(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Te||Yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Te)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ct(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&mc(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mc(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&ei(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Te||t.flags&512&&Bs(t)}catch(d){he(t,t.return,d)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Lc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Rc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Yl(4,t)}catch(u){he(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){he(t,i,u)}}var l=t.return;try{Bs(t)}catch(u){he(t,l,u)}break;case 5:var o=t.return;try{Bs(t)}catch(u){he(t,o,u)}}}catch(u){he(t,t.return,u)}if(t===e){D=null;break}var s=t.sibling;if(s!==null){s.return=t.return,D=s;break}D=t.return}}var Vy=Math.ceil,_l=Ot.ReactCurrentDispatcher,Qu=Ot.ReactCurrentOwner,it=Ot.ReactCurrentBatchConfig,X=0,Ce=null,ye=null,Ne=0,qe=0,Gn=un(0),we=0,fi=null,Nn=0,Xl=0,qu=0,Hr=null,Me=null,Ku=0,dr=1/0,Pt=null,Il=!1,Vs=null,Zt=null,$i=!1,Qt=null,Ll=0,Wr=0,Hs=null,il=-1,ll=0;function Ae(){return X&6?me():il!==-1?il:il=me()}function en(e){return e.mode&1?X&2&&Ne!==0?Ne&-Ne:by.transition!==null?(ll===0&&(ll=Id()),ll):(e=G,e!==0||(e=window.event,e=e===void 0?16:Fd(e.type)),e):1}function ht(e,t,n,r){if(50<Wr)throw Wr=0,Hs=null,Error(L(185));yi(e,n,r),(!(X&2)||e!==Ce)&&(e===Ce&&(!(X&2)&&(Xl|=n),we===4&&Ht(e,Ne)),Ve(e,r),n===1&&X===0&&!(t.mode&1)&&(dr=me()+500,Ql&&an()))}function Ve(e,t){var n=e.callbackNode;bg(e,t);var r=ml(e,e===Ce?Ne:0);if(r===0)n!==null&&$a(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&$a(n),t===1)e.tag===0?Ny(zc.bind(null,e)):rp(zc.bind(null,e)),wy(function(){!(X&6)&&an()}),n=null;else{switch(Ld(r)){case 1:n=ku;break;case 4:n=Td;break;case 16:n=hl;break;case 536870912:n=_d;break;default:n=hl}n=th(n,Kp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kp(e,t){if(il=-1,ll=0,X&6)throw Error(L(327));var n=e.callbackNode;if(ir()&&e.callbackNode!==n)return null;var r=ml(e,e===Ce?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rl(e,r);else{t=r;var i=X;X|=2;var l=Xp();(Ce!==e||Ne!==t)&&(Pt=null,dr=me()+500,kn(e,t));do try{Qy();break}catch(s){Yp(e,s)}while(!0);Ru(),_l.current=l,X=i,ye!==null?t=0:(Ce=null,Ne=0,t=we)}if(t!==0){if(t===2&&(i=ys(e),i!==0&&(r=i,t=Ws(e,i))),t===1)throw n=fi,kn(e,0),Ht(e,r),Ve(e,me()),n;if(t===6)Ht(e,r);else{if(i=e.current.alternate,!(r&30)&&!Hy(i)&&(t=Rl(e,r),t===2&&(l=ys(e),l!==0&&(r=l,t=Ws(e,l))),t===1))throw n=fi,kn(e,0),Ht(e,r),Ve(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:mn(e,Me,Pt);break;case 3:if(Ht(e,r),(r&130023424)===r&&(t=Ku+500-me(),10<t)){if(ml(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ns(mn.bind(null,e,Me,Pt),t);break}mn(e,Me,Pt);break;case 4:if(Ht(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-pt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vy(r/1960))-r,10<r){e.timeoutHandle=Ns(mn.bind(null,e,Me,Pt),r);break}mn(e,Me,Pt);break;case 5:mn(e,Me,Pt);break;default:throw Error(L(329))}}}return Ve(e,me()),e.callbackNode===n?Kp.bind(null,e):null}function Ws(e,t){var n=Hr;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=Me,Me=n,t!==null&&Qs(t)),e}function Qs(e){Me===null?Me=e:Me.push.apply(Me,e)}function Hy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!gt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ht(e,t){for(t&=~qu,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pt(t),r=1<<n;e[n]=-1,t&=~r}}function zc(e){if(X&6)throw Error(L(327));ir();var t=ml(e,0);if(!(t&1))return Ve(e,me()),null;var n=Rl(e,t);if(e.tag!==0&&n===2){var r=ys(e);r!==0&&(t=r,n=Ws(e,r))}if(n===1)throw n=fi,kn(e,0),Ht(e,t),Ve(e,me()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,Me,Pt),Ve(e,me()),null}function Yu(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(dr=me()+500,Ql&&an())}}function bn(e){Qt!==null&&Qt.tag===0&&!(X&6)&&ir();var t=X;X|=1;var n=it.transition,r=G;try{if(it.transition=null,G=1,e)return e()}finally{G=r,it.transition=n,X=t,!(X&6)&&an()}}function Xu(){qe=Gn.current,oe(Gn)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ky(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(_u(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:cr(),oe(Ue),oe(Ie),Mu();break;case 5:Fu(r);break;case 4:cr();break;case 13:oe(ce);break;case 19:oe(ce);break;case 10:zu(r.type._context);break;case 22:case 23:Xu()}n=n.return}if(Ce=e,ye=e=tn(e.current,null),Ne=qe=t,we=0,fi=null,qu=Xl=Nn=0,Me=Hr=null,xn!==null){for(t=0;t<xn.length;t++)if(n=xn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}xn=null}return e}function Yp(e,t){do{var n=ye;try{if(Ru(),tl.current=Tl,jl){for(var r=fe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}jl=!1}if(En=0,Se=ke=fe=null,$r=!1,ui=0,Qu.current=null,n===null||n.return===null){we=1,fi=t,ye=null;break}e:{var l=e,o=n.return,s=n,u=t;if(t=Ne,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=wc(o);if(p!==null){p.flags&=-257,Sc(p,o,s,l,t),p.mode&1&&kc(l,a,t),t=p,u=a;var h=t.updateQueue;if(h===null){var k=new Set;k.add(u),t.updateQueue=k}else h.add(u);break e}else{if(!(t&1)){kc(l,a,t),Gu();break e}u=Error(L(426))}}else if(ue&&s.mode&1){var N=wc(o);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Sc(N,o,s,l,t),Iu(fr(u,s));break e}}l=u=fr(u,s),we!==4&&(we=2),Hr===null?Hr=[l]:Hr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var g=Lp(l,u,t);hc(l,g);break e;case 1:s=u;var y=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Zt===null||!Zt.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var b=Rp(l,s,t);hc(l,b);break e}}l=l.return}while(l!==null)}Jp(n)}catch(j){t=j,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(!0)}function Xp(){var e=_l.current;return _l.current=Tl,e===null?Tl:e}function Gu(){(we===0||we===3||we===2)&&(we=4),Ce===null||!(Nn&268435455)&&!(Xl&268435455)||Ht(Ce,Ne)}function Rl(e,t){var n=X;X|=2;var r=Xp();(Ce!==e||Ne!==t)&&(Pt=null,kn(e,t));do try{Wy();break}catch(i){Yp(e,i)}while(!0);if(Ru(),X=n,_l.current=r,ye!==null)throw Error(L(261));return Ce=null,Ne=0,we}function Wy(){for(;ye!==null;)Gp(ye)}function Qy(){for(;ye!==null&&!yg();)Gp(ye)}function Gp(e){var t=eh(e.alternate,e,qe);e.memoizedProps=e.pendingProps,t===null?Jp(e):ye=t,Qu.current=null}function Jp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=My(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,ye=null;return}}else if(n=Fy(n,t,qe),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);we===0&&(we=5)}function mn(e,t,n){var r=G,i=it.transition;try{it.transition=null,G=1,qy(e,t,n,r)}finally{it.transition=i,G=r}return null}function qy(e,t,n,r){do ir();while(Qt!==null);if(X&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Pg(e,l),e===Ce&&(ye=Ce=null,Ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$i||($i=!0,th(hl,function(){return ir(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=it.transition,it.transition=null;var o=G;G=1;var s=X;X|=4,Qu.current=null,Uy(e,n),Qp(n,e),py(Cs),gl=!!Ss,Cs=Ss=null,e.current=n,$y(n),xg(),X=s,G=o,it.transition=l}else e.current=n;if($i&&($i=!1,Qt=e,Ll=i),l=e.pendingLanes,l===0&&(Zt=null),wg(n.stateNode),Ve(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Il)throw Il=!1,e=Vs,Vs=null,e;return Ll&1&&e.tag!==0&&ir(),l=e.pendingLanes,l&1?e===Hs?Wr++:(Wr=0,Hs=e):Wr=0,an(),null}function ir(){if(Qt!==null){var e=Ld(Ll),t=it.transition,n=G;try{if(it.transition=null,G=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Ll=0,X&6)throw Error(L(331));var i=X;for(X|=4,D=e.current;D!==null;){var l=D,o=l.child;if(D.flags&16){var s=l.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(D=a;D!==null;){var f=D;switch(f.tag){case 0:case 11:case 15:Vr(8,f,l)}var c=f.child;if(c!==null)c.return=f,D=c;else for(;D!==null;){f=D;var d=f.sibling,p=f.return;if(Vp(f),f===a){D=null;break}if(d!==null){d.return=p,D=d;break}D=p}}}var h=l.alternate;if(h!==null){var k=h.child;if(k!==null){h.child=null;do{var N=k.sibling;k.sibling=null,k=N}while(k!==null)}}D=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,D=o;else e:for(;D!==null;){if(l=D,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Vr(9,l,l.return)}var g=l.sibling;if(g!==null){g.return=l.return,D=g;break e}D=l.return}}var y=e.current;for(D=y;D!==null;){o=D;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,D=x;else e:for(o=y;D!==null;){if(s=D,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Yl(9,s)}}catch(j){he(s,s.return,j)}if(s===o){D=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,D=b;break e}D=s.return}}if(X=i,an(),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Ul,e)}catch{}r=!0}return r}finally{G=n,it.transition=t}}return!1}function Ac(e,t,n){t=fr(n,t),t=Lp(e,t,1),e=Jt(e,t,1),t=Ae(),e!==null&&(yi(e,1,t),Ve(e,t))}function he(e,t,n){if(e.tag===3)Ac(e,e,n);else for(;t!==null;){if(t.tag===3){Ac(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zt===null||!Zt.has(r))){e=fr(n,e),e=Rp(t,e,1),t=Jt(t,e,1),e=Ae(),t!==null&&(yi(t,1,e),Ve(t,e));break}}t=t.return}}function Ky(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(Ne&n)===n&&(we===4||we===3&&(Ne&130023424)===Ne&&500>me()-Ku?kn(e,0):qu|=n),Ve(e,t)}function Zp(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=Ae();e=zt(e,t),e!==null&&(yi(e,t,n),Ve(e,n))}function Yy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zp(e,n)}function Xy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Zp(e,n)}var eh;eh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Dy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ue&&t.flags&1048576&&ip(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var i=sr(t,Ie.current);rr(t,n),i=Uu(null,t,r,e,i,n);var l=$u();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(l=!0,wl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ou(t),i.updater=Kl,t.stateNode=i,i._reactInternals=t,Ls(t,r,e,n),t=As(null,t,r,!0,l,n)):(t.tag=0,ue&&l&&Tu(t),Re(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Jy(r),e=ct(r,e),i){case 0:t=zs(null,t,r,e,n);break e;case 1:t=Nc(null,t,r,e,n);break e;case 11:t=Cc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,ct(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),zs(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),Nc(e,t,r,i,n);case 3:e:{if(Dp(t),e===null)throw Error(L(387));r=t.pendingProps,l=t.memoizedState,i=l.element,cp(e,t),bl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=fr(Error(L(423)),t),t=bc(e,t,r,n,i);break e}else if(r!==i){i=fr(Error(L(424)),t),t=bc(e,t,r,n,i);break e}else for(Ke=Gt(t.stateNode.containerInfo.firstChild),Ye=t,ue=!0,dt=null,n=up(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===i){t=At(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return fp(t),e===null&&Ts(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Es(r,i)?o=null:l!==null&&Es(r,l)&&(t.flags|=32),Op(e,t),Re(e,t,o,n),t.child;case 6:return e===null&&Ts(t),null;case 13:return Fp(e,t,n);case 4:return Du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ar(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),Cc(e,t,r,i,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,re(El,r._currentValue),r._currentValue=o,l!==null)if(gt(l.value,o)){if(l.children===i.children&&!Ue.current){t=At(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=It(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),_s(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(L(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),_s(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Re(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rr(t,n),i=lt(i),r=r(i),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,i=ct(r,t.pendingProps),i=ct(r.type,i),Ec(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),rl(e,t),t.tag=1,$e(r)?(e=!0,wl(t)):e=!1,rr(t,n),Ip(t,r,i),Ls(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Mp(e,t,n);case 22:return Ap(e,t,n)}throw Error(L(156,t.tag))};function th(e,t){return jd(e,t)}function Gy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new Gy(e,t,n,r)}function Ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jy(e){if(typeof e=="function")return Ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yu)return 11;if(e===xu)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ol(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ju(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Un:return wn(n.children,i,l,t);case gu:o=8,i|=8;break;case ns:return e=rt(12,n,t,i|2),e.elementType=ns,e.lanes=l,e;case rs:return e=rt(13,n,t,i),e.elementType=rs,e.lanes=l,e;case is:return e=rt(19,n,t,i),e.elementType=is,e.lanes=l,e;case fd:return Gl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ad:o=10;break e;case cd:o=9;break e;case yu:o=11;break e;case xu:o=14;break e;case Ut:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=rt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function wn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Gl(e,t,n,r){return e=rt(22,e,r,t),e.elementType=fd,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Ao(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mo(0),this.expirationTimes=mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zu(e,t,n,r,i,l,o,s,u){return e=new Zy(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=rt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(l),e}function ex(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function nh(e){if(!e)return on;e=e._reactInternals;e:{if(Tn(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if($e(n))return np(e,n,t)}return t}function rh(e,t,n,r,i,l,o,s,u){return e=Zu(n,r,!0,e,i,l,o,s,u),e.context=nh(null),n=e.current,r=Ae(),i=en(n),l=It(r,i),l.callback=t??null,Jt(n,l,i),e.current.lanes=i,yi(e,i,r),Ve(e,r),e}function Jl(e,t,n,r){var i=t.current,l=Ae(),o=en(i);return n=nh(n),t.context===null?t.context=n:t.pendingContext=n,t=It(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jt(i,t,o),e!==null&&(ht(e,i,o,l),el(e,i,o)),o}function zl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Oc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ea(e,t){Oc(e,t),(e=e.alternate)&&Oc(e,t)}function tx(){return null}var ih=typeof reportError=="function"?reportError:function(e){console.error(e)};function ta(e){this._internalRoot=e}Zl.prototype.render=ta.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Jl(e,t,null,null)};Zl.prototype.unmount=ta.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bn(function(){Jl(null,e,null,null)}),t[Rt]=null}};function Zl(e){this._internalRoot=e}Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ad();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&Dd(e)}};function na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dc(){}function nx(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=zl(o);l.call(a)}}var o=rh(t,r,e,0,null,!1,!1,"",Dc);return e._reactRootContainer=o,e[Rt]=o.current,ri(e.nodeType===8?e.parentNode:e),bn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var a=zl(u);s.call(a)}}var u=Zu(e,0,!1,null,null,!1,!1,"",Dc);return e._reactRootContainer=u,e[Rt]=u.current,ri(e.nodeType===8?e.parentNode:e),bn(function(){Jl(t,u,n,r)}),u}function to(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var u=zl(o);s.call(u)}}Jl(t,o,e,i)}else o=nx(n,t,e,i,r);return zl(o)}Rd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=zr(t.pendingLanes);n!==0&&(wu(t,n|1),Ve(t,me()),!(X&6)&&(dr=me()+500,an()))}break;case 13:bn(function(){var r=zt(e,1);if(r!==null){var i=Ae();ht(r,e,1,i)}}),ea(e,1)}};Su=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Ae();ht(t,e,134217728,n)}ea(e,134217728)}};zd=function(e){if(e.tag===13){var t=en(e),n=zt(e,t);if(n!==null){var r=Ae();ht(n,e,t,r)}ea(e,t)}};Ad=function(){return G};Od=function(e,t){var n=G;try{return G=e,t()}finally{G=n}};hs=function(e,t,n){switch(t){case"input":if(ss(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Wl(r);if(!i)throw Error(L(90));pd(r),ss(r,i)}}}break;case"textarea":md(e,n);break;case"select":t=n.value,t!=null&&Zn(e,!!n.multiple,t,!1)}};Sd=Yu;Cd=bn;var rx={usingClientEntryPoint:!1,Events:[vi,Wn,Wl,kd,wd,Yu]},Tr={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ix={bundleType:Tr.bundleType,version:Tr.version,rendererPackageName:Tr.rendererPackageName,rendererConfig:Tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bd(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||tx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{Ul=Vi.inject(ix),St=Vi}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rx;Je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!na(t))throw Error(L(200));return ex(e,t,null,n)};Je.createRoot=function(e,t){if(!na(e))throw Error(L(299));var n=!1,r="",i=ih;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Zu(e,1,!1,null,null,n,!1,r,i),e[Rt]=t.current,ri(e.nodeType===8?e.parentNode:e),new ta(t)};Je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=bd(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return bn(e)};Je.hydrate=function(e,t,n){if(!eo(t))throw Error(L(200));return to(null,e,t,!0,n)};Je.hydrateRoot=function(e,t,n){if(!na(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=ih;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=rh(t,null,e,1,n??null,i,!1,l,o),e[Rt]=t.current,ri(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zl(t)};Je.render=function(e,t,n){if(!eo(t))throw Error(L(200));return to(null,e,t,!1,n)};Je.unmountComponentAtNode=function(e){if(!eo(e))throw Error(L(40));return e._reactRootContainer?(bn(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[Rt]=null})}),!0):!1};Je.unstable_batchedUpdates=Yu;Je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return to(e,t,n,!1,r)};Je.version="18.3.1-next-f1338f8080-20240426";function lh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lh)}catch(e){console.error(e)}}lh(),ld.exports=Je;var lx=ld.exports,Fc=lx;es.createRoot=Fc.createRoot,es.hydrateRoot=Fc.hydrateRoot;/**
41
+ * @remix-run/router v1.23.1
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di.apply(this,arguments)}var qt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qt||(qt={}));const Mc="popstate";function ox(e){e===void 0&&(e={});function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return qs("",{pathname:l,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Al(i)}return ux(t,n,null,e)}function xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ra(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sx(){return Math.random().toString(36).substr(2,8)}function Bc(e,t){return{usr:e.state,key:e.key,idx:t}}function qs(e,t,n,r){return n===void 0&&(n=null),di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yr(t):t,{state:n,key:t&&t.key||r||sx()})}function Al(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ux(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s=qt.Pop,u=null,a=f();a==null&&(a=0,o.replaceState(di({},o.state,{idx:a}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=qt.Pop;let N=f(),g=N==null?null:N-a;a=N,u&&u({action:s,location:k.location,delta:g})}function d(N,g){s=qt.Push;let y=qs(k.location,N,g);a=f()+1;let x=Bc(y,a),b=k.createHref(y);try{o.pushState(x,"",b)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(b)}l&&u&&u({action:s,location:k.location,delta:1})}function p(N,g){s=qt.Replace;let y=qs(k.location,N,g);a=f();let x=Bc(y,a),b=k.createHref(y);o.replaceState(x,"",b),l&&u&&u({action:s,location:k.location,delta:0})}function h(N){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof N=="string"?N:Al(N);return y=y.replace(/ $/,"%20"),xe(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let k={get action(){return s},get location(){return e(i,o)},listen(N){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Mc,c),u=N,()=>{i.removeEventListener(Mc,c),u=null}},createHref(N){return t(i,N)},createURL:h,encodeLocation(N){let g=h(N);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:p,go(N){return o.go(N)}};return k}var Uc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Uc||(Uc={}));function ax(e,t,n){return n===void 0&&(n="/"),cx(e,t,n)}function cx(e,t,n,r){let i=typeof t=="string"?yr(t):t,l=ia(i.pathname||"/",n);if(l==null)return null;let o=oh(e);fx(o);let s=null;for(let u=0;s==null&&u<o.length;++u){let a=Cx(l);s=kx(o[u],a)}return s}function oh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(l,o,s)=>{let u={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};u.relativePath.startsWith("/")&&(xe(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=nn([r,u.relativePath]),f=n.concat(u);l.children&&l.children.length>0&&(xe(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),oh(l.children,t,f,a)),!(l.path==null&&!l.index)&&t.push({path:a,score:xx(a,l.index),routesMeta:f})};return e.forEach((l,o)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,o);else for(let u of sh(l.path))i(l,o,u)}),t}function sh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=sh(r.join("/")),s=[];return s.push(...o.map(u=>u===""?l:[l,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function fx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dx=/^:[\w-]+$/,px=3,hx=2,mx=1,gx=10,yx=-2,$c=e=>e==="*";function xx(e,t){let n=e.split("/"),r=n.length;return n.some($c)&&(r+=yx),t&&(r+=hx),n.filter(i=>!$c(i)).reduce((i,l)=>i+(dx.test(l)?px:l===""?mx:gx),r)}function vx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function kx(e,t,n){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s<r.length;++s){let u=r[s],a=s===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=wx({path:u.relativePath,caseSensitive:u.caseSensitive,end:a},f),d=u.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:nn([l,c.pathname]),pathnameBase:jx(nn([l,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(l=nn([l,c.pathnameBase]))}return o}function wx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((a,f,c)=>{let{paramName:d,isOptional:p}=f;if(d==="*"){let k=s[c]||"";o=l.slice(0,l.length-k.length).replace(/(.)\/+$/,"$1")}const h=s[c];return p&&!h?a[d]=void 0:a[d]=(h||"").replace(/%2F/g,"/"),a},{}),pathname:l,pathnameBase:o,pattern:e}}function Sx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ra(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Cx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ra(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ia(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Ex=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nx=e=>Ex.test(e);function bx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?yr(e):e,l;if(n)if(Nx(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),ra(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?l=Vc(n.substring(1),"/"):l=Vc(n,t)}else l=t;return{pathname:l,search:Tx(r),hash:_x(i)}}function Vc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Oo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Px(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uh(e,t){let n=Px(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ah(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=yr(e):(i=di({},e),xe(!i.pathname||!i.pathname.includes("?"),Oo("?","pathname","search",i)),xe(!i.pathname||!i.pathname.includes("#"),Oo("#","pathname","hash",i)),xe(!i.search||!i.search.includes("#"),Oo("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let u=bx(i,s),a=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_x=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ix(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ch=["post","put","patch","delete"];new Set(ch);const Lx=["get",...ch];new Set(Lx);/**
50
+ * React Router v6.30.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}const la=_.createContext(null),Rx=_.createContext(null),_n=_.createContext(null),no=_.createContext(null),cn=_.createContext({outlet:null,matches:[],isDataRoute:!1}),fh=_.createContext(null);function zx(e,t){let{relative:n}=t===void 0?{}:t;wi()||xe(!1);let{basename:r,navigator:i}=_.useContext(_n),{hash:l,pathname:o,search:s}=ph(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:nn([r,o])),i.createHref({pathname:u,search:s,hash:l})}function wi(){return _.useContext(no)!=null}function Si(){return wi()||xe(!1),_.useContext(no).location}function dh(e){_.useContext(_n).static||_.useLayoutEffect(e)}function Ax(){let{isDataRoute:e}=_.useContext(cn);return e?Yx():Ox()}function Ox(){wi()||xe(!1);let e=_.useContext(la),{basename:t,future:n,navigator:r}=_.useContext(_n),{matches:i}=_.useContext(cn),{pathname:l}=Si(),o=JSON.stringify(uh(i,n.v7_relativeSplatPath)),s=_.useRef(!1);return dh(()=>{s.current=!0}),_.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=ah(a,JSON.parse(o),l,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:nn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,o,l,e])}function Dx(){let{matches:e}=_.useContext(cn),t=e[e.length-1];return t?t.params:{}}function ph(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(_n),{matches:i}=_.useContext(cn),{pathname:l}=Si(),o=JSON.stringify(uh(i,r.v7_relativeSplatPath));return _.useMemo(()=>ah(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function Fx(e,t){return Mx(e,t)}function Mx(e,t,n,r){wi()||xe(!1);let{navigator:i}=_.useContext(_n),{matches:l}=_.useContext(cn),o=l[l.length-1],s=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let a=Si(),f;if(t){var c;let N=typeof t=="string"?yr(t):t;u==="/"||(c=N.pathname)!=null&&c.startsWith(u)||xe(!1),f=N}else f=a;let d=f.pathname||"/",p=d;if(u!=="/"){let N=u.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(N.length).join("/")}let h=ax(e,{pathname:p}),k=Hx(h&&h.map(N=>Object.assign({},N,{params:Object.assign({},s,N.params),pathname:nn([u,i.encodeLocation?i.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?u:nn([u,i.encodeLocation?i.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),l,n,r);return t&&k?_.createElement(no.Provider,{value:{location:pi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qt.Pop}},k):k}function Bx(){let e=Kx(),t=Ix(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,null)}const Ux=_.createElement(Bx,null);class $x extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(cn.Provider,{value:this.props.routeContext},_.createElement(fh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vx(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(la);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(cn.Provider,{value:t},r)}function Hx(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||xe(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<o.length;f++){let c=o[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=f),c.route.id){let{loaderData:d,errors:p}=n,h=c.route.loader&&d[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||h){u=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let p,h=!1,k=null,N=null;n&&(p=s&&c.route.id?s[c.route.id]:void 0,k=c.route.errorElement||Ux,u&&(a<0&&d===0?(Xx("route-fallback"),h=!0,N=null):a===d&&(h=!0,N=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,d+1)),y=()=>{let x;return p?x=k:h?x=N:c.route.Component?x=_.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,_.createElement(Vx,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement($x,{location:n.location,revalidation:n.revalidation,component:k,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var hh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hh||{}),mh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(mh||{});function Wx(e){let t=_.useContext(la);return t||xe(!1),t}function Qx(e){let t=_.useContext(Rx);return t||xe(!1),t}function qx(e){let t=_.useContext(cn);return t||xe(!1),t}function gh(e){let t=qx(),n=t.matches[t.matches.length-1];return n.route.id||xe(!1),n.route.id}function Kx(){var e;let t=_.useContext(fh),n=Qx(),r=gh();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yx(){let{router:e}=Wx(hh.UseNavigateStable),t=gh(mh.UseNavigateStable),n=_.useRef(!1);return dh(()=>{n.current=!0}),_.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,pi({fromRouteId:t},l)))},[e,t])}const Hc={};function Xx(e,t,n){Hc[e]||(Hc[e]=!0)}function Gx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Dn(e){xe(!1)}function Jx(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qt.Pop,navigator:l,static:o=!1,future:s}=e;wi()&&xe(!1);let u=t.replace(/^\/*/,"/"),a=_.useMemo(()=>({basename:u,navigator:l,static:o,future:pi({v7_relativeSplatPath:!1},s)}),[u,s,l,o]);typeof r=="string"&&(r=yr(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:h="default"}=r,k=_.useMemo(()=>{let N=ia(f,u);return N==null?null:{location:{pathname:N,search:c,hash:d,state:p,key:h},navigationType:i}},[u,f,c,d,p,h,i]);return k==null?null:_.createElement(_n.Provider,{value:a},_.createElement(no.Provider,{children:n,value:k}))}function Zx(e){let{children:t,location:n}=e;return Fx(Ks(t),n)}new Promise(()=>{});function Ks(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let l=[...t,i];if(r.type===_.Fragment){n.push.apply(n,Ks(r.props.children,l));return}r.type!==Dn&&xe(!1),!r.props.index||!r.props.children||xe(!1);let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Ks(r.props.children,l)),n.push(o)}),n}/**
59
+ * React Router DOM v6.30.2
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}function e0(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function t0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function n0(e,t){return e.button===0&&(!t||t==="_self")&&!t0(e)}const r0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],i0="6";try{window.__reactRouterVersion=i0}catch{}const l0="startTransition",Wc=Km[l0];function o0(e){let{basename:t,children:n,future:r,window:i}=e,l=_.useRef();l.current==null&&(l.current=ox({window:i,v5Compat:!0}));let o=l.current,[s,u]=_.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},f=_.useCallback(c=>{a&&Wc?Wc(()=>u(c)):u(c)},[u,a]);return _.useLayoutEffect(()=>o.listen(f),[o,f]),_.useEffect(()=>Gx(r),[r]),_.createElement(Jx,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const s0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rn=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:o,state:s,target:u,to:a,preventScrollReset:f,viewTransition:c}=t,d=e0(t,r0),{basename:p}=_.useContext(_n),h,k=!1;if(typeof a=="string"&&u0.test(a)&&(h=a,s0))try{let x=new URL(window.location.href),b=a.startsWith("//")?new URL(x.protocol+a):new URL(a),j=ia(b.pathname,p);b.origin===x.origin&&j!=null?a=j+b.search+b.hash:k=!0}catch{}let N=zx(a,{relative:i}),g=a0(a,{replace:o,state:s,target:u,preventScrollReset:f,relative:i,viewTransition:c});function y(x){r&&r(x),x.defaultPrevented||g(x)}return _.createElement("a",Ys({},d,{href:h||N,onClick:k||l?r:y,ref:n,target:u}))});var Qc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qc||(Qc={}));var qc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qc||(qc={}));function a0(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:o,viewTransition:s}=t===void 0?{}:t,u=Ax(),a=Si(),f=ph(e,{relative:o});return _.useCallback(c=>{if(n0(c,n)){c.preventDefault();let d=r!==void 0?r:Al(a)===Al(f);u(e,{replace:d,state:i,preventScrollReset:l,relative:o,viewTransition:s})}},[a,u,f,r,i,n,e,l,o,s])}function yh(){const[e,t]=_.useState(!1),[n,r]=_.useState(null),i=_.useRef(null),l=_.useRef(null),o=_.useCallback(()=>{const a=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,f=new WebSocket(a);f.onopen=()=>{console.log("WebSocket connected"),t(!0)},f.onmessage=c=>{try{const d=JSON.parse(c.data);r(d),console.log("WebSocket message:",d)}catch(d){console.error("Failed to parse WebSocket message:",d)}},f.onclose=()=>{console.log("WebSocket disconnected"),t(!1),i.current=null,l.current=setTimeout(()=>{console.log("Attempting to reconnect..."),o()},3e3)},f.onerror=c=>{console.error("WebSocket error:",c)},i.current=f},[]);_.useEffect(()=>(o(),()=>{l.current&&clearTimeout(l.current),i.current&&i.current.close()}),[o]);const s=_.useCallback(u=>{i.current&&i.current.readyState===WebSocket.OPEN&&i.current.send(JSON.stringify(u))},[]);return{connected:e,lastMessage:n,send:s}}const c0="/api";async function se(e,t){const n=await fetch(`${c0}${e}`,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}});if(!n.ok){const r=await n.json().catch(()=>({error:"Unknown error"}));throw new Error(r.error||`HTTP ${n.status}`)}return n.json()}const Jn={list:(e=!1)=>se(`/changes?includeArchived=${e}`),get:e=>se(`/changes/${e}`),validate:(e,t=!1)=>se(`/changes/${e}/validate`,{method:"POST",body:JSON.stringify({strict:t})}),archive:(e,t=!1)=>se(`/changes/${e}/archive`,{method:"POST",body:JSON.stringify({skipSpecs:t})}),getReviews:e=>se(`/changes/${e}/reviews`),addReview:(e,t,n,r,i)=>se(`/changes/${e}/reviews`,{method:"POST",body:JSON.stringify({targetType:t,body:n,type:r,...i})}),resolveReview:(e,t,n,r="resolved")=>se(`/changes/${e}/reviews/${t}`,{method:"PATCH",body:JSON.stringify({targetType:n,status:r})})},Fn={list:()=>se("/specs"),get:e=>se(`/specs/${e}`),validate:(e,t=!1)=>se(`/specs/${e}/validate`,{method:"POST",body:JSON.stringify({strict:t})}),listReviews:(e,t,n)=>{const r=new URLSearchParams;t&&r.append("status",t),n&&r.append("type",n);const i=r.toString()?`?${r.toString()}`:"";return se(`/specs/${e}/reviews${i}`)},addReview:(e,t,n,r)=>se(`/specs/${e}/reviews`,{method:"POST",body:JSON.stringify({body:t,type:n,...r})}),resolveReview:(e,t,n="resolved")=>se(`/specs/${e}/reviews/${t}`,{method:"PATCH",body:JSON.stringify({status:n})}),getDependencies:()=>se("/specs/dependencies")},sl={get:e=>se(`/changes/${e}/tasks`),update:(e,t,n)=>se(`/changes/${e}/tasks/${t}`,{method:"PATCH",body:JSON.stringify({status:n})}),getProgress:()=>se("/progress")},Or={list:()=>se("/approvals"),listPending:()=>se("/approvals/pending"),get:e=>se(`/approvals/${e}`),request:(e,t,n)=>se(`/approvals/${e}/request`,{method:"POST",body:JSON.stringify({requestedBy:t,reviewers:n})}),approve:(e,t,n)=>se(`/approvals/${e}/approve`,{method:"POST",body:JSON.stringify({approver:t,comment:n})}),reject:(e,t,n)=>se(`/approvals/${e}/reject`,{method:"POST",body:JSON.stringify({rejector:t,reason:n})})},f0={get:()=>se("/project")};function d0(){const[e,t]=_.useState({changes:0,specs:0,pendingApprovals:0,overallProgress:0}),[n,r]=_.useState([]),[i,l]=_.useState(!0);return _.useEffect(()=>{async function o(){try{const[s,u,a,f]=await Promise.all([Jn.list(),Fn.list(),sl.getProgress(),Or.listPending()]);t({changes:s.changes.length,specs:u.specs.length,pendingApprovals:f.approvals.length,overallProgress:a.overall.percentage}),r(s.changes.slice(0,5))}catch(s){console.error("Failed to fetch dashboard data:",s)}finally{l(!1)}}o()},[]),i?m.jsx("div",{className:"flex justify-center items-center h-96",children:m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),m.jsx("div",{className:"absolute top-0 left-0 h-12 w-12 rounded-full border-t-2 border-indigo-100 opacity-30 animate-pulse"})]})}):m.jsxs("div",{className:"space-y-8 animate-fade-in",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-bold text-gray-900 tracking-tight",children:"Overview"}),m.jsx("p",{className:"mt-1 text-gray-500",children:"Track your project specifications and progress."})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[m.jsx(Hi,{title:"Active Changes",value:e.changes,icon:m.jsx(p0,{}),link:"/changes",color:"blue",trend:"Updates pending"}),m.jsx(Hi,{title:"Specifications",value:e.specs,icon:m.jsx(Kc,{}),link:"/specs",color:"indigo",trend:"Project documentation"}),m.jsx(Hi,{title:"Pending Approvals",value:e.pendingApprovals,icon:m.jsx(h0,{}),link:"/approvals",color:"amber",trend:"Requires attention",highlight:e.pendingApprovals>0}),m.jsx(Hi,{title:"Overall Progress",value:`${e.overallProgress}%`,icon:m.jsx(m0,{}),color:"emerald",trend:"Completion rate"})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[m.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Recent Changes"}),m.jsxs(rn,{to:"/changes",className:"group flex items-center text-sm font-medium text-indigo-600 hover:text-indigo-800 transition-colors",children:["View all",m.jsx("span",{className:"ml-1 group-hover:translate-x-0.5 transition-transform",children:"→"})]})]}),m.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:n.length===0?m.jsxs("div",{className:"p-8 text-center",children:[m.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-gray-100 mb-4",children:m.jsx(g0,{className:"w-6 h-6 text-gray-400"})}),m.jsx("p",{className:"text-gray-500",children:"No recent changes found."})]}):m.jsx("div",{className:"divide-y divide-gray-50",children:n.map(o=>m.jsx(rn,{to:`/changes/${o.id}`,className:"block p-5 hover:bg-gray-50 transition-colors duration-150",children:m.jsxs("div",{className:"flex justify-between items-start",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("h4",{className:"font-semibold text-gray-900 group-hover:text-indigo-600 transition-colors",children:o.title}),m.jsxs("div",{className:"flex items-center space-x-2 text-xs text-gray-500 font-mono",children:[m.jsx("span",{className:"px-1.5 py-0.5 rounded bg-gray-100 text-gray-600",children:o.id}),m.jsx("span",{children:"•"}),m.jsx("span",{children:"Updated recently"})]})]}),m.jsxs("div",{className:"flex flex-col items-end min-w-[100px]",children:[m.jsxs("div",{className:"text-xs font-medium text-gray-500 mb-1.5",children:[o.tasksCompleted," / ",o.tasksTotal," tasks"]}),m.jsx("div",{className:"w-28 h-1.5 bg-gray-100 rounded-full overflow-hidden",children:m.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${o.tasksCompleted===o.tasksTotal?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${o.tasksTotal>0?o.tasksCompleted/o.tasksTotal*100:0}%`}})})]})]})},o.id))})})]}),m.jsxs("div",{className:"space-y-6",children:[m.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Quick Actions"}),m.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-5 space-y-3",children:[m.jsxs("div",{className:"flex items-center p-3 rounded-lg border border-dashed border-gray-200 bg-gray-50",children:[m.jsx("div",{className:"p-2 rounded-md bg-blue-50 text-blue-600",children:m.jsx(y0,{className:"w-5 h-5"})}),m.jsxs("div",{className:"ml-3",children:[m.jsx("span",{className:"font-medium text-gray-600 text-sm",children:"Create Change"}),m.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:["Use ",m.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_create_change"})]})]})]}),m.jsxs(rn,{to:"/specs",className:"flex items-center p-3 rounded-lg border border-gray-100 hover:border-indigo-100 hover:bg-indigo-50 transition-all group",children:[m.jsx("div",{className:"p-2 rounded-md bg-purple-50 text-purple-600 group-hover:bg-white group-hover:scale-110 transition-all",children:m.jsx(Kc,{className:"w-5 h-5"})}),m.jsx("span",{className:"ml-3 font-medium text-gray-700 group-hover:text-purple-700",children:"Browse Specs"})]})]}),m.jsxs("div",{className:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl p-6 text-white shadow-lg",children:[m.jsx("h4",{className:"font-bold text-lg mb-2",children:"Pro Tip"}),m.jsx("p",{className:"text-indigo-100 text-sm opacity-90",children:"Review pending approvals to unblock your team's progress."})]})]})]})]})}function Hi({title:e,value:t,icon:n,link:r,color:i,trend:l,highlight:o=!1}){const u={blue:{icon:"text-blue-600 bg-blue-50",border:"hover:border-blue-200"},indigo:{icon:"text-indigo-600 bg-indigo-50",border:"hover:border-indigo-200"},amber:{icon:"text-amber-600 bg-amber-50",border:"hover:border-amber-200"},emerald:{icon:"text-emerald-600 bg-emerald-50",border:"hover:border-emerald-200"}}[i],a=m.jsxs("div",{className:`
68
+ relative p-6 rounded-xl bg-white border border-gray-100 shadow-sm transition-all duration-300
69
+ ${r?"hover:-translate-y-1 hover:shadow-md "+u.border:""}
70
+ ${o?"ring-2 ring-amber-100":""}
71
+ `,children:[m.jsxs("div",{className:"flex justify-between items-start",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-sm font-medium text-gray-500",children:e}),m.jsx("p",{className:"text-3xl font-bold text-gray-900 mt-2 tracking-tight",children:t})]}),m.jsx("div",{className:`p-3 rounded-lg ${u.icon}`,children:n})]}),l&&m.jsx("div",{className:"mt-4 flex items-center text-xs text-gray-400 font-medium",children:l})]});return r?m.jsx(rn,{to:r,className:"block",children:a}):a}function p0({className:e="w-6 h-6"}){return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"18",cy:"18",r:"3"}),m.jsx("circle",{cx:"6",cy:"6",r:"3"}),m.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),m.jsx("line",{x1:"6",y1:"9",x2:"6",y2:"21"})]})}function Kc({className:e="w-6 h-6"}){return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),m.jsx("polyline",{points:"14 2 14 8 20 8"}),m.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),m.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),m.jsx("line",{x1:"10",y1:"9",x2:"8",y2:"9"})]})}function h0({className:e="w-6 h-6"}){return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),m.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]})}function m0({className:e="w-6 h-6"}){return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}function g0({className:e="w-6 h-6"}){return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),m.jsx("path",{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})}function y0({className:e="w-6 h-6"}){return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),m.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function x0(){const[e,t]=_.useState([]),[n,r]=_.useState(!0),[i,l]=_.useState(!1);return _.useEffect(()=>{async function o(){r(!0);try{const s=await Jn.list(i);t(s.changes)}catch(s){console.error("Failed to fetch changes:",s)}finally{r(!1)}}o()},[i]),n?m.jsx("div",{className:"flex justify-center items-center h-64",children:m.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Changes"}),m.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[m.jsx("input",{type:"checkbox",checked:i,onChange:o=>l(o.target.checked),className:"rounded border-gray-300"}),m.jsx("span",{children:"Include archived"})]})]}),e.length===0?m.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:"No changes found."}):m.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:m.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[m.jsx("thead",{className:"bg-gray-50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Change"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Progress"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Updated"})]})}),m.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:e.map(o=>m.jsxs("tr",{className:"hover:bg-gray-50",children:[m.jsx("td",{className:"px-6 py-4",children:m.jsxs(rn,{to:`/changes/${o.id}`,className:"text-blue-600 hover:text-blue-800",children:[m.jsx("div",{className:"font-medium",children:o.title}),m.jsx("div",{className:"text-sm text-gray-500",children:o.id})]})}),m.jsx("td",{className:"px-6 py-4",children:m.jsx("span",{className:`status-badge ${o.status==="active"?"status-implementing":"status-completed"}`,children:o.status})}),m.jsx("td",{className:"px-6 py-4",children:m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("div",{className:"w-24 h-2 bg-gray-200 rounded-full",children:m.jsx("div",{className:"h-full bg-blue-500 rounded-full",style:{width:`${o.tasksTotal>0?o.tasksCompleted/o.tasksTotal*100:0}%`}})}),m.jsxs("span",{className:"text-sm text-gray-600",children:[o.tasksCompleted,"/",o.tasksTotal]})]})}),m.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:new Date(o.updatedAt).toLocaleDateString()})]},o.id))})]})})]})}function v0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const k0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,w0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,S0={};function Yc(e,t){return(S0.jsx?w0:k0).test(e)}const C0=/[ \t\n\f\r]/g;function E0(e){return typeof e=="object"?e.type==="text"?Xc(e.value):!1:Xc(e)}function Xc(e){return e.replace(C0,"")===""}class Ci{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ci.prototype.normal={};Ci.prototype.property={};Ci.prototype.space=void 0;function xh(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ci(n,r,t)}function Xs(e){return e.toLowerCase()}class He{constructor(t,n){this.attribute=n,this.property=t}}He.prototype.attribute="";He.prototype.booleanish=!1;He.prototype.boolean=!1;He.prototype.commaOrSpaceSeparated=!1;He.prototype.commaSeparated=!1;He.prototype.defined=!1;He.prototype.mustUseProperty=!1;He.prototype.number=!1;He.prototype.overloadedBoolean=!1;He.prototype.property="";He.prototype.spaceSeparated=!1;He.prototype.space=void 0;let N0=0;const $=In(),ge=In(),Gs=In(),R=In(),ne=In(),lr=In(),Qe=In();function In(){return 2**++N0}const Js=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:ge,commaOrSpaceSeparated:Qe,commaSeparated:lr,number:R,overloadedBoolean:Gs,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),Do=Object.keys(Js);class oa extends He{constructor(t,n,r,i){let l=-1;if(super(t,n),Gc(this,"space",i),typeof r=="number")for(;++l<Do.length;){const o=Do[l];Gc(this,Do[l],(r&Js[o])===Js[o])}}}oa.prototype.defined=!0;function Gc(e,t,n){n&&(e[t]=n)}function xr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new oa(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Xs(r)]=r,n[Xs(l.attribute)]=r}return new Ci(t,n,e.space)}const vh=xr({properties:{ariaActiveDescendant:null,ariaAtomic:ge,ariaAutoComplete:null,ariaBusy:ge,ariaChecked:ge,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:ge,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:ge,ariaFlowTo:ne,ariaGrabbed:ge,ariaHasPopup:null,ariaHidden:ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:R,ariaLive:null,ariaModal:ge,ariaMultiLine:ge,ariaMultiSelectable:ge,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:ge,ariaReadOnly:ge,ariaRelevant:null,ariaRequired:ge,ariaRoleDescription:ne,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:ge,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function kh(e,t){return t in e?e[t]:t}function wh(e,t){return kh(e,t.toLowerCase())}const b0=xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:ne,autoFocus:$,autoPlay:$,blocking:ne,capture:null,charSet:null,checked:$,cite:null,className:ne,cols:R,colSpan:null,content:null,contentEditable:ge,controls:$,controlsList:ne,coords:R|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Gs,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:ne,height:R,hidden:Gs,high:R,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:ne,itemRef:ne,itemScope:$,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:R,pattern:null,ping:ne,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:ne,required:$,reversed:$,rows:R,rowSpan:R,sandbox:ne,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ge,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:ge,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:wh}),P0=xr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qe,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kh}),Sh=xr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ch=xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wh}),Eh=xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),j0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},T0=/[A-Z]/g,Jc=/-[a-z]/g,_0=/^data[-\w.:]+$/i;function I0(e,t){const n=Xs(t);let r=t,i=He;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_0.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Jc,R0);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Jc.test(l)){let o=l.replace(T0,L0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=oa}return new i(r,t)}function L0(e){return"-"+e.toLowerCase()}function R0(e){return e.charAt(1).toUpperCase()}const z0=xh([vh,b0,Sh,Ch,Eh],"html"),sa=xh([vh,P0,Sh,Ch,Eh],"svg");function A0(e){return e.join(" ").trim()}var ua={},Zc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,O0=/\n/g,D0=/^\s*/,F0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,M0=/^:\s*/,B0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,U0=/^[;\s]*/,$0=/^\s+|\s+$/g,V0=`
72
+ `,ef="/",tf="*",gn="",H0="comment",W0="declaration";function Q0(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var k=h.match(O0);k&&(n+=k.length);var N=h.lastIndexOf(V0);r=~N?h.length-N:r+h.length}function l(){var h={line:n,column:r};return function(k){return k.position=new o(h),a(),k}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(h){var k=new Error(t.source+":"+n+":"+r+": "+h);if(k.reason=h,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function u(h){var k=h.exec(e);if(k){var N=k[0];return i(N),e=e.slice(N.length),k}}function a(){u(D0)}function f(h){var k;for(h=h||[];k=c();)k!==!1&&h.push(k);return h}function c(){var h=l();if(!(ef!=e.charAt(0)||tf!=e.charAt(1))){for(var k=2;gn!=e.charAt(k)&&(tf!=e.charAt(k)||ef!=e.charAt(k+1));)++k;if(k+=2,gn===e.charAt(k-1))return s("End of comment missing");var N=e.slice(2,k-2);return r+=2,i(N),e=e.slice(k),r+=2,h({type:H0,comment:N})}}function d(){var h=l(),k=u(F0);if(k){if(c(),!u(M0))return s("property missing ':'");var N=u(B0),g=h({type:W0,property:nf(k[0].replace(Zc,gn)),value:N?nf(N[0].replace(Zc,gn)):gn});return u(U0),g}}function p(){var h=[];f(h);for(var k;k=d();)k!==!1&&(h.push(k),f(h));return h}return a(),p()}function nf(e){return e?e.replace($0,gn):gn}var q0=Q0,K0=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.default=X0;const Y0=K0(q0);function X0(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Y0.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:s}=l;i?t(o,s,l):s&&(n=n||{},n[o]=s)}),n}var ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.camelCase=void 0;var G0=/^--[a-zA-Z0-9_-]+$/,J0=/-([a-z])/g,Z0=/^[^-]+$/,ev=/^-(webkit|moz|ms|o|khtml)-/,tv=/^-(ms)-/,nv=function(e){return!e||Z0.test(e)||G0.test(e)},rv=function(e,t){return t.toUpperCase()},rf=function(e,t){return"".concat(t,"-")},iv=function(e,t){return t===void 0&&(t={}),nv(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(tv,rf):e=e.replace(ev,rf),e.replace(J0,rv))};ro.camelCase=iv;var lv=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ov=lv(ua),sv=ro;function Zs(e,t){var n={};return!e||typeof e!="string"||(0,ov.default)(e,function(r,i){r&&i&&(n[(0,sv.camelCase)(r,t)]=i)}),n}Zs.default=Zs;var uv=Zs;const av=uu(uv),Nh=bh("end"),aa=bh("start");function bh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function cv(e){const t=aa(e),n=Nh(e);if(t&&n)return{start:t,end:n}}function Qr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?lf(e.position):"start"in e||"end"in e?lf(e):"line"in e||"column"in e?eu(e):""}function eu(e){return of(e&&e.line)+":"+of(e&&e.column)}function lf(e){return eu(e&&e.start)+"-"+eu(e&&e.end)}function of(e){return e&&typeof e=="number"?e:1}class Le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Qr(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Le.prototype.file="";Le.prototype.name="";Le.prototype.reason="";Le.prototype.message="";Le.prototype.stack="";Le.prototype.column=void 0;Le.prototype.line=void 0;Le.prototype.ancestors=void 0;Le.prototype.cause=void 0;Le.prototype.fatal=void 0;Le.prototype.place=void 0;Le.prototype.ruleId=void 0;Le.prototype.source=void 0;const ca={}.hasOwnProperty,fv=new Map,dv=/[A-Z]/g,pv=new Set(["table","tbody","thead","tfoot","tr"]),hv=new Set(["td","th"]),Ph="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mv(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Cv(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Sv(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sa:z0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=jh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function jh(e,t,n){if(t.type==="element")return gv(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return yv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return vv(e,t,n);if(t.type==="mdxjsEsm")return xv(e,t);if(t.type==="root")return kv(e,t,n);if(t.type==="text")return wv(e,t)}function gv(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=sa,e.schema=i),e.ancestors.push(t);const l=_h(e,t.tagName,!1),o=Ev(e,t);let s=da(e,t);return pv.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!E0(u):!0})),Th(e,o,l,t),fa(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function yv(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}hi(e,t.position)}function xv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hi(e,t.position)}function vv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=sa,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:_h(e,t.name,!0),o=Nv(e,t),s=da(e,t);return Th(e,o,l,t),fa(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function kv(e,t,n){const r={};return fa(r,da(e,t)),e.create(t,e.Fragment,r,n)}function wv(e,t){return t.value}function Th(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fa(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Sv(e,t,n){return r;function r(i,l,o,s){const a=Array.isArray(o.children)?n:t;return s?a(l,o,s):a(l,o)}}function Cv(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),u=aa(r);return t(i,l,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Ev(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ca.call(t.properties,i)){const l=bv(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&hv.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Nv(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else hi(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else hi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function da(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:fv;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const a=i.get(u)||0;o=u+"-"+a,i.set(u,a+1)}}const s=jh(e,l,o);s!==void 0&&n.push(s)}return n}function bv(e,t,n){const r=I0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?v0(n):A0(n)),r.property==="style"){let i=typeof n=="object"?n:Pv(e,String(n));return e.stylePropertyNameCase==="css"&&(i=jv(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?j0[r.property]||r.property:r.attribute,n]}}function Pv(e,t){try{return av(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ph+"#cannot-parse-style-attribute",i}}function _h(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const s=Yc(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(l&&s.type==="Literal"),optional:!1}:s}r=o}else r=Yc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ca.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);hi(e)}function hi(e,t){const n=new Le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ph+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jv(e){const t={};let n;for(n in e)ca.call(e,n)&&(t[Tv(n)]=e[n]);return t}function Tv(e){let t=e.replace(dv,_v);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _v(e){return"-"+e.toLowerCase()}const Fo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Iv={};function pa(e,t){const n=Iv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ih(e,r,i)}function Ih(e,t,n){if(Lv(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sf(e.children,t,n)}return Array.isArray(e)?sf(e,t,n):""}function sf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ih(e[i],t,n);return r.join("")}function Lv(e){return!!(e&&typeof e=="object")}const uf=document.createElement("i");function ha(e){const t="&"+e+";";uf.innerHTML=t;const n=uf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xe(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function nt(e,t){return e.length>0?(Xe(e,e.length,0,t),e):t}const af={}.hasOwnProperty;function Lh(e){const t={};let n=-1;for(;++n<e.length;)Rv(t,e[n]);return t}function Rv(e,t){let n;for(n in t){const i=(af.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){af.call(i,o)||(i[o]=[]);const s=l[o];zv(i[o],Array.isArray(s)?s:s?[s]:[])}}}function zv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xe(e,0,0,r)}function Rh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=fn(/[A-Za-z]/),_e=fn(/[\dA-Za-z]/),Av=fn(/[#-'*+\--9=?A-Z^-~]/);function Ol(e){return e!==null&&(e<32||e===127)}const tu=fn(/\d/),Ov=fn(/[\dA-Fa-f]/),Dv=fn(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function te(e){return e!==null&&(e<0||e===32)}function H(e){return e===-2||e===-1||e===32}const io=fn(new RegExp("\\p{P}|\\p{S}","u")),Pn=fn(/\s/);function fn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function vr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&_e(e.charCodeAt(n+1))&&_e(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function K(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return H(u)?(e.enter(n),s(u)):t(u)}function s(u){return H(u)&&l++<i?(e.consume(u),s):(e.exit(n),t(u))}}const Fv={tokenize:Mv};function Mv(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),K(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),l(s)}function l(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return B(s)?(e.consume(s),e.exit("chunkText"),l):(e.consume(s),o)}}const Bv={tokenize:Uv},cf={tokenize:$v};function Uv(e){const t=this,n=[];let r=0,i,l,o;return s;function s(x){if(r<n.length){const b=n[r];return t.containerState=b[1],e.attempt(b[0].continuation,u,a)(x)}return a(x)}function u(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const b=t.events.length;let j=b,E;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){E=t.events[j][1].end;break}g(r);let S=b;for(;S<t.events.length;)t.events[S][1].end={...E},S++;return Xe(t.events,j+1,0,t.events.slice(b)),t.events.length=S,a(x)}return s(x)}function a(x){if(r===n.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return h(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cf,f,c)(x)}function f(x){return i&&y(),g(r),d(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(x)}function d(x){return t.containerState={},e.attempt(cf,p,h)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),d(x)}function h(x){if(x===null){i&&y(),g(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),k(x)}function k(x){if(x===null){N(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return B(x)?(e.consume(x),N(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),k)}function N(x,b){const j=t.sliceStream(x);if(b&&j.push(null),x.previous=l,l&&(l.next=x),l=x,i.defineSkip(x.start),i.write(j),t.parser.lazy[x.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<o&&(!i.events[E][1].end||i.events[E][1].end.offset>o))return;const S=t.events.length;let P=S,I,C;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(I){C=t.events[P][1].end;break}I=!0}for(g(r),E=S;E<t.events.length;)t.events[E][1].end={...C},E++;Xe(t.events,P+1,0,t.events.slice(S)),t.events.length=E}}function g(x){let b=n.length;for(;b-- >x;){const j=n[b];t.containerState=j[1],j[0].exit.call(t,e)}n.length=x}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $v(e,t,n){return K(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pr(e){if(e===null||te(e)||Pn(e))return 1;if(io(e))return 2}function lo(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const nu={name:"attention",resolveAll:Vv,tokenize:Hv};function Vv(e,t){let n=-1,r,i,l,o,s,u,a,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};ff(c,-u),ff(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=nt(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=nt(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=nt(a,lo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=nt(a,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,a=nt(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Xe(e,r-1,n-r+3,a),n=r+a.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Hv(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=pr(r);let l;return o;function o(u){return l=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===l)return e.consume(u),s;const a=e.exit("attentionSequence"),f=pr(u),c=!f||f===2&&i||n.includes(u),d=!i||i===2&&f||n.includes(r);return a._open=!!(l===42?c:c&&(i||!d)),a._close=!!(l===42?d:d&&(f||!c)),t(u)}}function ff(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Wv={name:"autolink",tokenize:Qv};function Qv(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ze(p)?(e.consume(p),o):p===64?n(p):a(p)}function o(p){return p===43||p===45||p===46||_e(p)?(r=1,s(p)):a(p)}function s(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||_e(p))&&r++<32?(e.consume(p),s):(r=0,a(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ol(p)?n(p):(e.consume(p),u)}function a(p){return p===64?(e.consume(p),f):Av(p)?(e.consume(p),a):n(p)}function f(p){return _e(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||_e(p))&&r++<63){const h=p===45?d:c;return e.consume(p),h}return n(p)}}const Ei={partial:!0,tokenize:qv};function qv(e,t,n){return r;function r(l){return H(l)?K(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||B(l)?t(l):n(l)}}const zh={continuation:{tokenize:Yv},exit:Xv,name:"blockQuote",tokenize:Kv};function Kv(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return H(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Yv(e,t,n){const r=this;return i;function i(o){return H(o)?K(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(zh,t,n)(o)}}function Xv(e){e.exit("blockQuote")}const Ah={name:"characterEscape",tokenize:Gv};function Gv(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Dv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Oh={name:"characterReference",tokenize:Jv};function Jv(e,t,n){const r=this;let i=0,l,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=_e,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ov,f):(e.enter("characterReferenceValue"),l=7,o=tu,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===_e&&!ha(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const df={partial:!0,tokenize:e1},pf={concrete:!0,name:"codeFenced",tokenize:Zv};function Zv(e,t,n){const r=this,i={partial:!0,tokenize:j};let l=0,o=0,s;return u;function u(E){return a(E)}function a(E){const S=r.events[r.events.length-1];return l=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(E)}function f(E){return E===s?(o++,e.consume(E),f):o<3?n(E):(e.exit("codeFencedFenceSequence"),H(E)?K(e,c,"whitespace")(E):c(E))}function c(E){return E===null||B(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(df,k,b)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||B(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(E)):H(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,p,"whitespace")(E)):E===96&&E===s?n(E):(e.consume(E),d)}function p(E){return E===null||B(E)?c(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===null||B(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(E)):E===96&&E===s?n(E):(e.consume(E),h)}function k(E){return e.attempt(i,b,N)(E)}function N(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),g}function g(E){return l>0&&H(E)?K(e,y,"linePrefix",l+1)(E):y(E)}function y(E){return E===null||B(E)?e.check(df,k,b)(E):(e.enter("codeFlowValue"),x(E))}function x(E){return E===null||B(E)?(e.exit("codeFlowValue"),y(E)):(e.consume(E),x)}function b(E){return e.exit("codeFenced"),t(E)}function j(E,S,P){let I=0;return C;function C(V){return E.enter("lineEnding"),E.consume(V),E.exit("lineEnding"),O}function O(V){return E.enter("codeFencedFence"),H(V)?K(E,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):F(V)}function F(V){return V===s?(E.enter("codeFencedFenceSequence"),q(V)):P(V)}function q(V){return V===s?(I++,E.consume(V),q):I>=o?(E.exit("codeFencedFenceSequence"),H(V)?K(E,J,"whitespace")(V):J(V)):P(V)}function J(V){return V===null||B(V)?(E.exit("codeFencedFence"),S(V)):P(V)}}}function e1(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Mo={name:"codeIndented",tokenize:n1},t1={partial:!0,tokenize:r1};function n1(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),K(e,l,"linePrefix",5)(a)}function l(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?u(a):B(a)?e.attempt(t1,o,u)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||B(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),s)}function u(a){return e.exit("codeIndented"),t(a)}}function r1(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):K(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):B(o)?i(o):n(o)}}const i1={name:"codeText",previous:o1,resolve:l1,tokenize:s1};function l1(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function o1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function s1(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",a(c))}}class u1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_r(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),_r(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_r(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);_r(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_r(this.left,n.reverse())}}}function _r(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Dh(e){const t={};let n=-1,r,i,l,o,s,u,a;const f=new u1(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,a1(f,n)),n=t[n],a=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return Xe(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function a1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],a={};let f,c,d=-1,p=n,h=0,k=0;const N=[k];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(k=d+1,N.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):N.pop(),d=N.length;d--;){const g=s.slice(N[d],N[d+1]),y=l.pop();u.push([y,y+g.length-1]),e.splice(y,2,g)}for(u.reverse(),d=-1;++d<u.length;)a[h+u[d][0]]=h+u[d][1],h+=u[d][1]-u[d][0]-1;return a}const c1={resolve:d1,tokenize:p1},f1={partial:!0,tokenize:h1};function d1(e){return Dh(e),e}function p1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?l(s):B(s)?e.check(f1,o,l)(s):(e.consume(s),i)}function l(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function h1(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),K(e,l,"linePrefix")}function l(o){if(o===null||B(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Fh(e,t,n,r,i,l,o,s,u){const a=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(g){return g===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(g),e.exit(l),d):g===null||g===32||g===41||Ol(g)?n(g):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(g))}function d(g){return g===62?(e.enter(l),e.consume(g),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(s),d(g)):g===null||g===60||B(g)?n(g):(e.consume(g),g===92?h:p)}function h(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function k(g){return!f&&(g===null||g===41||te(g))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(g)):f<a&&g===40?(e.consume(g),f++,k):g===41?(e.consume(g),f--,k):g===null||g===32||g===40||Ol(g)?n(g):(e.consume(g),g===92?N:k)}function N(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function Mh(e,t,n,r,i,l){const o=this;let s=0,u;return a;function a(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return s>999||p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||B(p)||s++>999?(e.exit("chunkString"),f(p)):(e.consume(p),u||(u=!H(p)),p===92?d:c)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function Bh(e,t,n,r,i,l){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),a(d))}function a(d){return d===o?(e.exit(l),u(o)):d===null?n(d):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),K(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||B(d)?(e.exit("chunkString"),a(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function qr(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):H(i)?K(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const m1={name:"definition",tokenize:y1},g1={partial:!0,tokenize:x1};function y1(e,t,n){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Mh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return te(p)?qr(e,a)(p):a(p)}function a(p){return Fh(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(g1,c,c)(p)}function c(p){return H(p)?K(e,d,"whitespace")(p):d(p)}function d(p){return p===null||B(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function x1(e,t,n){return r;function r(s){return te(s)?qr(e,i)(s):n(s)}function i(s){return Bh(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return H(s)?K(e,o,"whitespace")(s):o(s)}function o(s){return s===null||B(s)?t(s):n(s)}}const v1={name:"hardBreakEscape",tokenize:k1};function k1(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return B(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const w1={name:"headingAtx",resolve:S1,tokenize:C1};function S1(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xe(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function C1(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||te(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||B(f)?(e.exit("atxHeading"),t(f)):H(f)?K(e,s,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),s(f))}function a(f){return f===null||f===35||te(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),a)}}const E1=["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"],hf=["pre","script","style","textarea"],N1={concrete:!0,name:"htmlFlow",resolveTo:j1,tokenize:T1},b1={partial:!0,tokenize:I1},P1={partial:!0,tokenize:_1};function j1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function T1(e,t,n){const r=this;let i,l,o,s,u;return a;function a(w){return f(w)}function f(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),c}function c(w){return w===33?(e.consume(w),d):w===47?(e.consume(w),l=!0,k):w===63?(e.consume(w),i=3,r.interrupt?t:v):ze(w)?(e.consume(w),o=String.fromCharCode(w),N):n(w)}function d(w){return w===45?(e.consume(w),i=2,p):w===91?(e.consume(w),i=5,s=0,h):ze(w)?(e.consume(w),i=4,r.interrupt?t:v):n(w)}function p(w){return w===45?(e.consume(w),r.interrupt?t:v):n(w)}function h(w){const ve="CDATA[";return w===ve.charCodeAt(s++)?(e.consume(w),s===ve.length?r.interrupt?t:F:h):n(w)}function k(w){return ze(w)?(e.consume(w),o=String.fromCharCode(w),N):n(w)}function N(w){if(w===null||w===47||w===62||te(w)){const ve=w===47,st=o.toLowerCase();return!ve&&!l&&hf.includes(st)?(i=1,r.interrupt?t(w):F(w)):E1.includes(o.toLowerCase())?(i=6,ve?(e.consume(w),g):r.interrupt?t(w):F(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):l?y(w):x(w))}return w===45||_e(w)?(e.consume(w),o+=String.fromCharCode(w),N):n(w)}function g(w){return w===62?(e.consume(w),r.interrupt?t:F):n(w)}function y(w){return H(w)?(e.consume(w),y):C(w)}function x(w){return w===47?(e.consume(w),C):w===58||w===95||ze(w)?(e.consume(w),b):H(w)?(e.consume(w),x):C(w)}function b(w){return w===45||w===46||w===58||w===95||_e(w)?(e.consume(w),b):j(w)}function j(w){return w===61?(e.consume(w),E):H(w)?(e.consume(w),j):x(w)}function E(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),u=w,S):H(w)?(e.consume(w),E):P(w)}function S(w){return w===u?(e.consume(w),u=null,I):w===null||B(w)?n(w):(e.consume(w),S)}function P(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||te(w)?j(w):(e.consume(w),P)}function I(w){return w===47||w===62||H(w)?x(w):n(w)}function C(w){return w===62?(e.consume(w),O):n(w)}function O(w){return w===null||B(w)?F(w):H(w)?(e.consume(w),O):n(w)}function F(w){return w===45&&i===2?(e.consume(w),pe):w===60&&i===1?(e.consume(w),ae):w===62&&i===4?(e.consume(w),Y):w===63&&i===3?(e.consume(w),v):w===93&&i===5?(e.consume(w),M):B(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(b1,Z,q)(w)):w===null||B(w)?(e.exit("htmlFlowData"),q(w)):(e.consume(w),F)}function q(w){return e.check(P1,J,Z)(w)}function J(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),V}function V(w){return w===null||B(w)?q(w):(e.enter("htmlFlowData"),F(w))}function pe(w){return w===45?(e.consume(w),v):F(w)}function ae(w){return w===47?(e.consume(w),o="",z):F(w)}function z(w){if(w===62){const ve=o.toLowerCase();return hf.includes(ve)?(e.consume(w),Y):F(w)}return ze(w)&&o.length<8?(e.consume(w),o+=String.fromCharCode(w),z):F(w)}function M(w){return w===93?(e.consume(w),v):F(w)}function v(w){return w===62?(e.consume(w),Y):w===45&&i===2?(e.consume(w),v):F(w)}function Y(w){return w===null||B(w)?(e.exit("htmlFlowData"),Z(w)):(e.consume(w),Y)}function Z(w){return e.exit("htmlFlow"),t(w)}}function _1(e,t,n){const r=this;return i;function i(o){return B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function I1(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ei,t,n)}}const L1={name:"htmlText",tokenize:R1};function R1(e,t,n){const r=this;let i,l,o;return s;function s(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),u}function u(v){return v===33?(e.consume(v),a):v===47?(e.consume(v),j):v===63?(e.consume(v),x):ze(v)?(e.consume(v),P):n(v)}function a(v){return v===45?(e.consume(v),f):v===91?(e.consume(v),l=0,h):ze(v)?(e.consume(v),y):n(v)}function f(v){return v===45?(e.consume(v),p):n(v)}function c(v){return v===null?n(v):v===45?(e.consume(v),d):B(v)?(o=c,ae(v)):(e.consume(v),c)}function d(v){return v===45?(e.consume(v),p):c(v)}function p(v){return v===62?pe(v):v===45?d(v):c(v)}function h(v){const Y="CDATA[";return v===Y.charCodeAt(l++)?(e.consume(v),l===Y.length?k:h):n(v)}function k(v){return v===null?n(v):v===93?(e.consume(v),N):B(v)?(o=k,ae(v)):(e.consume(v),k)}function N(v){return v===93?(e.consume(v),g):k(v)}function g(v){return v===62?pe(v):v===93?(e.consume(v),g):k(v)}function y(v){return v===null||v===62?pe(v):B(v)?(o=y,ae(v)):(e.consume(v),y)}function x(v){return v===null?n(v):v===63?(e.consume(v),b):B(v)?(o=x,ae(v)):(e.consume(v),x)}function b(v){return v===62?pe(v):x(v)}function j(v){return ze(v)?(e.consume(v),E):n(v)}function E(v){return v===45||_e(v)?(e.consume(v),E):S(v)}function S(v){return B(v)?(o=S,ae(v)):H(v)?(e.consume(v),S):pe(v)}function P(v){return v===45||_e(v)?(e.consume(v),P):v===47||v===62||te(v)?I(v):n(v)}function I(v){return v===47?(e.consume(v),pe):v===58||v===95||ze(v)?(e.consume(v),C):B(v)?(o=I,ae(v)):H(v)?(e.consume(v),I):pe(v)}function C(v){return v===45||v===46||v===58||v===95||_e(v)?(e.consume(v),C):O(v)}function O(v){return v===61?(e.consume(v),F):B(v)?(o=O,ae(v)):H(v)?(e.consume(v),O):I(v)}function F(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),i=v,q):B(v)?(o=F,ae(v)):H(v)?(e.consume(v),F):(e.consume(v),J)}function q(v){return v===i?(e.consume(v),i=void 0,V):v===null?n(v):B(v)?(o=q,ae(v)):(e.consume(v),q)}function J(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||te(v)?I(v):(e.consume(v),J)}function V(v){return v===47||v===62||te(v)?I(v):n(v)}function pe(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function ae(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),z}function z(v){return H(v)?K(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):M(v)}function M(v){return e.enter("htmlTextData"),o(v)}}const ma={name:"labelEnd",resolveAll:D1,resolveTo:F1,tokenize:M1},z1={tokenize:B1},A1={tokenize:U1},O1={tokenize:$1};function D1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xe(e,0,e.length,n),e}function F1(e,t){let n=e.length,r=0,i,l,o,s;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",a,t]],s=nt(s,e.slice(l+1,l+r+3)),s=nt(s,[["enter",f,t]]),s=nt(s,lo(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),s=nt(s,[["exit",f,t],e[o-2],e[o-1],["exit",a,t]]),s=nt(s,e.slice(o+1)),s=nt(s,[["exit",u,t]]),Xe(e,l,e.length,s),e}function M1(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return s;function s(d){return l?l._inactive?c(d):(o=r.parser.defined.includes(mt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(z1,f,o?f:c)(d):d===91?e.attempt(A1,f,o?a:c)(d):o?f(d):c(d)}function a(d){return e.attempt(O1,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function B1(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return te(c)?qr(e,l)(c):l(c)}function l(c){return c===41?f(c):Fh(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return te(c)?qr(e,u)(c):f(c)}function s(c){return n(c)}function u(c){return c===34||c===39||c===40?Bh(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return te(c)?qr(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function U1(e,t,n){const r=this;return i;function i(s){return Mh.call(r,e,l,o,"reference","referenceMarker","referenceString")(s)}function l(s){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function $1(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const V1={name:"labelStartImage",resolveAll:ma.resolveAll,tokenize:H1};function H1(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const W1={name:"labelStartLink",resolveAll:ma.resolveAll,tokenize:Q1};function Q1(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Bo={name:"lineEnding",tokenize:q1};function q1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,t,"linePrefix")}}const ul={name:"thematicBreak",tokenize:K1};function K1(e,t,n){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,s(a)}function s(a){return a===i?(e.enter("thematicBreakSequence"),u(a)):r>=3&&(a===null||B(a))?(e.exit("thematicBreak"),t(a)):n(a)}function u(a){return a===i?(e.consume(a),r++,u):(e.exit("thematicBreakSequence"),H(a)?K(e,s,"whitespace")(a):s(a))}}const Fe={continuation:{tokenize:J1},exit:ek,name:"list",tokenize:G1},Y1={partial:!0,tokenize:tk},X1={partial:!0,tokenize:Z1};function G1(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:tu(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ul,n,a)(p):a(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return tu(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),a(p)):n(p)}function a(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ei,r.interrupt?n:f,e.attempt(Y1,d,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function c(p){return H(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function J1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ei,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!H(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(X1,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(Fe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Z1(e,t,n){const r=this;return K(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function ek(e){e.exit(this.containerState.type)}function tk(e,t,n){const r=this;return K(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!H(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const mf={name:"setextUnderline",resolveTo:nk,tokenize:rk};function nk(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function rk(e,t,n){const r=this;let i;return l;function l(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),s(a)}function s(a){return a===i?(e.consume(a),s):(e.exit("setextHeadingLineSequence"),H(a)?K(e,u,"lineSuffix")(a):u(a))}function u(a){return a===null||B(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const ik={tokenize:lk};function lk(e){const t=this,n=e.attempt(Ei,r,e.attempt(this.parser.constructs.flowInitial,i,K(e,e.attempt(this.parser.constructs.flow,i,e.attempt(c1,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ok={resolveAll:$h()},sk=Uh("string"),uk=Uh("text");function Uh(e){return{resolveAll:$h(e==="text"?ak:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(f){return a(f)?l(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return a(f)?(n.exit("data"),l(f)):(n.consume(f),u)}function a(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const p=c[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function $h(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function ak(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,s=0,u;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(a===-2)u=!0,s++;else if(a!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const a={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const ck={42:Fe,43:Fe,45:Fe,48:Fe,49:Fe,50:Fe,51:Fe,52:Fe,53:Fe,54:Fe,55:Fe,56:Fe,57:Fe,62:zh},fk={91:m1},dk={[-2]:Mo,[-1]:Mo,32:Mo},pk={35:w1,42:ul,45:[mf,ul],60:N1,61:mf,95:ul,96:pf,126:pf},hk={38:Oh,92:Ah},mk={[-5]:Bo,[-4]:Bo,[-3]:Bo,33:V1,38:Oh,42:nu,60:[Wv,L1],91:W1,92:[v1,Ah],93:ma,95:nu,96:i1},gk={null:[nu,ok]},yk={null:[42,95]},xk={null:[]},vk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:yk,contentInitial:fk,disable:xk,document:ck,flow:pk,flowInitial:dk,insideSpan:gk,string:hk,text:mk},Symbol.toStringTag,{value:"Module"}));function kk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],s=[];const u={attempt:S(j),check:S(E),consume:y,enter:x,exit:b,interrupt:S(E,{interrupt:!0})},a={code:null,containerState:{},defineSkip:k,events:[],now:h,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:c};let f=t.tokenize.call(a,u);return t.resolveAll&&l.push(t),a;function c(O){return o=nt(o,O),N(),o[o.length-1]!==null?[]:(P(t,0),a.events=lo(l,a.events,a),a.events)}function d(O,F){return Sk(p(O),F)}function p(O){return wk(o,O)}function h(){const{_bufferIndex:O,_index:F,line:q,column:J,offset:V}=r;return{_bufferIndex:O,_index:F,line:q,column:J,offset:V}}function k(O){i[O.line]=O.column,C()}function N(){let O;for(;r._index<o.length;){const F=o[r._index];if(typeof F=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<F.length;)g(F.charCodeAt(r._bufferIndex));else g(F)}}function g(O){f=f(O)}function y(O){B(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,C()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=O}function x(O,F){const q=F||{};return q.type=O,q.start=h(),a.events.push(["enter",q,a]),s.push(q),q}function b(O){const F=s.pop();return F.end=h(),a.events.push(["exit",F,a]),F}function j(O,F){P(O,F.from)}function E(O,F){F.restore()}function S(O,F){return q;function q(J,V,pe){let ae,z,M,v;return Array.isArray(J)?Z(J):"tokenize"in J?Z([J]):Y(J);function Y(ie){return yt;function yt(Ft){const Ln=Ft!==null&&ie[Ft],Rn=Ft!==null&&ie.null,bi=[...Array.isArray(Ln)?Ln:Ln?[Ln]:[],...Array.isArray(Rn)?Rn:Rn?[Rn]:[]];return Z(bi)(Ft)}}function Z(ie){return ae=ie,z=0,ie.length===0?pe:w(ie[z])}function w(ie){return yt;function yt(Ft){return v=I(),M=ie,ie.partial||(a.currentConstruct=ie),ie.name&&a.parser.constructs.disable.null.includes(ie.name)?st():ie.tokenize.call(F?Object.assign(Object.create(a),F):a,u,ve,st)(Ft)}}function ve(ie){return O(M,v),V}function st(ie){return v.restore(),++z<ae.length?w(ae[z]):pe}}}function P(O,F){O.resolveAll&&!l.includes(O)&&l.push(O),O.resolve&&Xe(a.events,F,a.events.length-F,O.resolve(a.events.slice(F),a)),O.resolveTo&&(a.events=O.resolveTo(a.events,a))}function I(){const O=h(),F=a.previous,q=a.currentConstruct,J=a.events.length,V=Array.from(s);return{from:J,restore:pe};function pe(){r=O,a.previous=F,a.currentConstruct=q,a.events.length=J,s=V,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Sk(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
73
+ `;break}case-3:{o=`\r
74
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Ck(e){const r={constructs:Lh([vk,...(e||{}).extensions||[]]),content:i(Fv),defined:[],document:i(Bv),flow:i(ik),lazy:{},string:i(sk),text:i(uk)};return r;function i(l){return o;function o(s){return kk(r,l,s)}}}function Ek(e){for(;!Dh(e););return e}const gf=/[\0\t\n\r]/g;function Nk(){let e=1,t="",n=!0,r;return i;function i(l,o,s){const u=[];let a,f,c,d,p;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(gf.lastIndex=c,a=gf.exec(l),d=a&&a.index!==void 0?a.index:l.length,p=l.charCodeAt(d),!a){t=l.slice(c);break}if(p===10&&c===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<d&&(u.push(l.slice(c,d)),e+=d-c),p){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const bk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pk(e){return e.replace(bk,jk)}function jk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return Rh(n.slice(l?2:1),l?16:10)}return ha(n)||e}const Vh={}.hasOwnProperty;function Tk(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_k(n)(Ek(Ck(n).document().write(Nk()(e,t,!0))))}function _k(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ja),autolinkProtocol:I,autolinkEmail:I,atxHeading:l(Na),blockQuote:l(Rn),characterEscape:I,characterReference:I,codeFenced:l(bi),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(bi,o),codeText:l(Cm,o),codeTextData:I,data:I,codeFlowValue:I,definition:l(Em),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Nm),hardBreakEscape:l(ba),hardBreakTrailing:l(ba),htmlFlow:l(Pa,o),htmlFlowData:I,htmlText:l(Pa,o),htmlTextData:I,image:l(bm),label:o,link:l(ja),listItem:l(Pm),listItemValue:d,listOrdered:l(Ta,c),listUnordered:l(Ta),paragraph:l(jm),reference:w,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Na),strong:l(Tm),thematicBreak:l(Im)},exit:{atxHeading:u(),atxHeadingSequence:j,autolink:u(),autolinkEmail:Ln,autolinkProtocol:Ft,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:ie,characterReference:yt,codeFenced:u(N),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:u(g),codeText:u(V),codeTextData:C,data:C,definition:u(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(F),hardBreakTrailing:u(F),htmlFlow:u(q),htmlFlowData:C,htmlText:u(J),htmlTextData:C,image:u(ae),label:M,labelText:z,lineEnding:O,link:u(pe),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ve,resourceDestinationString:v,resourceTitleString:Y,resource:Z,setextHeading:u(P),setextHeadingLineSequence:S,setextHeadingText:E,strong:u(),thematicBreak:u()}};Hh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let A={type:"root",children:[]};const U={stack:[A],tokenStack:[],config:t,enter:s,exit:a,buffer:o,resume:f,data:n},Q=[];let ee=-1;for(;++ee<T.length;)if(T[ee][1].type==="listOrdered"||T[ee][1].type==="listUnordered")if(T[ee][0]==="enter")Q.push(ee);else{const ut=Q.pop();ee=i(T,ut,ee)}for(ee=-1;++ee<T.length;){const ut=t[T[ee][0]];Vh.call(ut,T[ee][1].type)&&ut[T[ee][1].type].call(Object.assign({sliceSerialize:T[ee][2].sliceSerialize},U),T[ee][1])}if(U.tokenStack.length>0){const ut=U.tokenStack[U.tokenStack.length-1];(ut[1]||yf).call(U,void 0,ut[0])}for(A.position={start:Bt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Bt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)A=t.transforms[ee](A)||A;return A}function i(T,A,U){let Q=A-1,ee=-1,ut=!1,dn,Nt,kr,wr;for(;++Q<=U;){const We=T[Q];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?ee++:ee--,wr=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(dn&&!wr&&!ee&&!kr&&(kr=Q),wr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wr=void 0}if(!ee&&We[0]==="enter"&&We[1].type==="listItemPrefix"||ee===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(dn){let zn=Q;for(Nt=void 0;zn--;){const bt=T[zn];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;Nt&&(T[Nt][1].type="lineEndingBlank",ut=!0),bt[1].type="lineEnding",Nt=zn}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}kr&&(!Nt||kr<Nt)&&(dn._spread=!0),dn.end=Object.assign({},Nt?T[Nt][1].start:We[1].end),T.splice(Nt||Q,0,["exit",dn,We[2]]),Q++,U++}if(We[1].type==="listItemPrefix"){const zn={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};dn=zn,T.splice(Q,0,["enter",zn,We[2]]),Q++,U++,kr=void 0,wr=!0}}}return T[A][1]._spread=ut,U}function l(T,A){return U;function U(Q){s.call(this,T(Q),Q),A&&A.call(this,Q)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,A,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([A,U||void 0]),T.position={start:Bt(A.start),end:void 0}}function u(T){return A;function A(U){T&&T.call(this,U),a.call(this,U)}}function a(T,A){const U=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==T.type&&(A?A.call(this,T,Q[0]):(Q[1]||yf).call(this,T,Q[0]));else throw new Error("Cannot close `"+T.type+"` ("+Qr({start:T.start,end:T.end})+"): it’s not open");U.position.end=Bt(T.end)}function f(){return pa(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(T){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function p(){const T=this.resume(),A=this.stack[this.stack.length-1];A.lang=T}function h(){const T=this.resume(),A=this.stack[this.stack.length-1];A.meta=T}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const T=this.resume(),A=this.stack[this.stack.length-1];A.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),A=this.stack[this.stack.length-1];A.value=T.replace(/(\r?\n|\r)$/g,"")}function y(T){const A=this.resume(),U=this.stack[this.stack.length-1];U.label=A,U.identifier=mt(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),A=this.stack[this.stack.length-1];A.title=T}function b(){const T=this.resume(),A=this.stack[this.stack.length-1];A.url=T}function j(T){const A=this.stack[this.stack.length-1];if(!A.depth){const U=this.sliceSerialize(T).length;A.depth=U}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function S(T){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function I(T){const U=this.stack[this.stack.length-1].children;let Q=U[U.length-1];(!Q||Q.type!=="text")&&(Q=_m(),Q.position={start:Bt(T.start),end:void 0},U.push(Q)),this.stack.push(Q)}function C(T){const A=this.stack.pop();A.value+=this.sliceSerialize(T),A.position.end=Bt(T.end)}function O(T){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=A.children[A.children.length-1];U.position.end=Bt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(I.call(this,T),C.call(this,T))}function F(){this.data.atHardBreak=!0}function q(){const T=this.resume(),A=this.stack[this.stack.length-1];A.value=T}function J(){const T=this.resume(),A=this.stack[this.stack.length-1];A.value=T}function V(){const T=this.resume(),A=this.stack[this.stack.length-1];A.value=T}function pe(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=A,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function ae(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=A,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function z(T){const A=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Pk(A),U.identifier=mt(A).toLowerCase()}function M(){const T=this.stack[this.stack.length-1],A=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const Q=T.children;U.children=Q}else U.alt=A}function v(){const T=this.resume(),A=this.stack[this.stack.length-1];A.url=T}function Y(){const T=this.resume(),A=this.stack[this.stack.length-1];A.title=T}function Z(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ve(T){const A=this.resume(),U=this.stack[this.stack.length-1];U.label=A,U.identifier=mt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function st(T){this.data.characterReferenceType=T.type}function ie(T){const A=this.sliceSerialize(T),U=this.data.characterReferenceType;let Q;U?(Q=Rh(A,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=ha(A);const ee=this.stack[this.stack.length-1];ee.value+=Q}function yt(T){const A=this.stack.pop();A.position.end=Bt(T.end)}function Ft(T){C.call(this,T);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(T)}function Ln(T){C.call(this,T);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(T)}function Rn(){return{type:"blockquote",children:[]}}function bi(){return{type:"code",lang:null,meta:null,value:""}}function Cm(){return{type:"inlineCode",value:""}}function Em(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nm(){return{type:"emphasis",children:[]}}function Na(){return{type:"heading",depth:0,children:[]}}function ba(){return{type:"break"}}function Pa(){return{type:"html",value:""}}function bm(){return{type:"image",title:null,url:"",alt:null}}function ja(){return{type:"link",title:null,url:"",children:[]}}function Ta(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Pm(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function jm(){return{type:"paragraph",children:[]}}function Tm(){return{type:"strong",children:[]}}function _m(){return{type:"text",value:""}}function Im(){return{type:"thematicBreak"}}}function Bt(e){return{line:e.line,column:e.column,offset:e.offset}}function Hh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hh(e,r):Ik(e,r)}}function Ik(e,t){let n;for(n in t)if(Vh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function yf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qr({start:t.start,end:t.end})+") is still open")}function Lk(e){const t=this;t.parser=n;function n(r){return Tk(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Rk(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function zk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
75
+ `}]}function Ak(e,t){const n=t.value?t.value+`
76
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function Ok(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=vr(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,a),e.applyData(t,a)}function Mk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Wh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Uk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wh(e,t);const i={src:vr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function $k(e,t){const n={src:vr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Vk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Hk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wh(e,t);const i={href:vr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Wk(e,t){const n={href:vr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Qk(e,t,n){const r=e.all(t),i=n?qk(n):Qh(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
77
+ `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
78
+ `});const a={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,a),e.applyData(t,a)}function qk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Qh(n[r])}return t}function Qh(e){const t=e.spread;return t??e.children.length>1}function Kk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Yk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Gk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=aa(t.children[1]),u=Nh(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function Zk(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const a=[];for(;++u<s;){const c=t.children[u],d={},p=o?o[u]:void 0;p&&(d.align=p);let h={type:"element",tagName:l,properties:d,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),a.push(h)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,f),e.applyData(t,f)}function ew(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xf=9,vf=32;function tw(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(kf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(kf(t.slice(i),i>0,!1)),l.join("")}function kf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===xf||l===vf;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===xf||l===vf;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function nw(e,t){const n={type:"text",value:tw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function rw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const iw={blockquote:Rk,break:zk,code:Ak,delete:Ok,emphasis:Dk,footnoteReference:Fk,heading:Mk,html:Bk,imageReference:Uk,image:$k,inlineCode:Vk,linkReference:Hk,link:Wk,listItem:Qk,list:Kk,paragraph:Yk,root:Xk,strong:Gk,table:Jk,tableCell:ew,tableRow:Zk,text:nw,thematicBreak:rw,toml:Wi,yaml:Wi,definition:Wi,footnoteDefinition:Wi};function Wi(){}const qh=-1,oo=0,Kr=1,Dl=2,ga=3,ya=4,xa=5,va=6,Kh=7,Yh=8,wf=typeof self=="object"?self:globalThis,lw=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case oo:case qh:return n(o,i);case Kr:{const s=n([],i);for(const u of o)s.push(r(u));return s}case Dl:{const s=n({},i);for(const[u,a]of o)s[r(u)]=r(a);return s}case ga:return n(new Date(o),i);case ya:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case xa:{const s=n(new Map,i);for(const[u,a]of o)s.set(r(u),r(a));return s}case va:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case Kh:{const{name:s,message:u}=o;return n(new wf[s](u),i)}case Yh:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new wf[l](o),i)};return r},Sf=e=>lw(new Map,e)(0),On="",{toString:ow}={},{keys:sw}=Object,Ir=e=>{const t=typeof e;if(t!=="object"||!e)return[oo,t];const n=ow.call(e).slice(8,-1);switch(n){case"Array":return[Kr,On];case"Object":return[Dl,On];case"Date":return[ga,On];case"RegExp":return[ya,On];case"Map":return[xa,On];case"Set":return[va,On];case"DataView":return[Kr,n]}return n.includes("Array")?[Kr,n]:n.includes("Error")?[Kh,n]:[Dl,n]},Qi=([e,t])=>e===oo&&(t==="function"||t==="symbol"),uw=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},l=o=>{if(n.has(o))return n.get(o);let[s,u]=Ir(o);switch(s){case oo:{let f=o;switch(u){case"bigint":s=Yh,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([qh],o)}return i([s,f],o)}case Kr:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const f=[],c=i([s,f],o);for(const d of o)f.push(l(d));return c}case Dl:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([s,f],o);for(const d of sw(o))(e||!Qi(Ir(o[d])))&&f.push([l(d),l(o[d])]);return c}case ga:return i([s,o.toISOString()],o);case ya:{const{source:f,flags:c}=o;return i([s,{source:f,flags:c}],o)}case xa:{const f=[],c=i([s,f],o);for(const[d,p]of o)(e||!(Qi(Ir(d))||Qi(Ir(p))))&&f.push([l(d),l(p)]);return c}case va:{const f=[],c=i([s,f],o);for(const d of o)(e||!Qi(Ir(d)))&&f.push(l(d));return c}}const{message:a}=o;return i([s,{name:u,message:a}],o)};return l},Cf=(e,{json:t,lossy:n}={})=>{const r=[];return uw(!(t||n),!!t,new Map,r)(e),r},Fl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sf(Cf(e,t)):structuredClone(e):(e,t)=>Sf(Cf(e,t));function aw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||aw,r=e.options.footnoteBackLabel||cw,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[u]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),d=vr(c.toLowerCase());let p=0;const h=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++p<=k;){h.length>0&&h.push({type:"text",value:" "});let y=typeof n=="string"?n:n(u,p);typeof y=="string"&&(y={type:"text",value:y}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const N=f[f.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const y=N.children[N.children.length-1];y&&y.type==="text"?y.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...h)}else f.push(...h);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(a,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Fl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
79
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
80
+ `}]}}const so=function(e){if(e==null)return mw;if(typeof e=="function")return uo(e);if(typeof e=="object")return Array.isArray(e)?dw(e):pw(e);if(typeof e=="string")return hw(e);throw new Error("Expected function, string, or object as test")};function dw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=so(e[n]);return uo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function pw(e){const t=e;return uo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function hw(e){return uo(t);function t(n){return n&&n.type===e}}function uo(e){return t;function t(n,r,i){return!!(gw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function mw(){return!0}function gw(e){return e!==null&&typeof e=="object"&&"type"in e}const Xh=[],yw=!0,ru=!1,xw="skip";function Gh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=so(i),o=r?-1:1;s(e,void 0,[])();function s(u,a,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=Xh,h,k,N;if((!t||l(u,a,f[f.length-1]||void 0))&&(p=vw(n(u,f)),p[0]===ru))return p;if("children"in u&&u.children){const g=u;if(g.children&&p[0]!==xw)for(k=(r?g.children.length:-1)+o,N=f.concat(g);k>-1&&k<g.children.length;){const y=g.children[k];if(h=s(y,k,N)(),h[0]===ru)return h;k=typeof h[1]=="number"?h[1]:k+o}}return p}}}function vw(e){return Array.isArray(e)?e:typeof e=="number"?[yw,e]:e==null?Xh:[e]}function ka(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),Gh(e,l,s,i);function s(u,a){const f=a[a.length-1],c=f?f.children.indexOf(u):void 0;return o(u,c,f)}}const iu={}.hasOwnProperty,kw={};function ww(e,t){const n=t||kw,r=new Map,i=new Map,l=new Map,o={...iw,...n.handlers},s={all:a,applyData:Cw,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:u,options:n,patch:Sw,wrap:Nw};return ka(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),s;function u(f,c){const d=f.type,p=s.handlers[d];if(iu.call(s.handlers,d)&&p)return p(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:k,...N}=f,g=Fl(N);return g.children=s.all(f),g}return Fl(f)}return(s.options.unknownHandler||Ew)(s,f,c)}function a(f){const c=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const h=s.one(d[p],f);if(h){if(p&&d[p-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Ef(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=Ef(k.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function Sw(e,t){e.position&&(t.position=cv(e))}function Cw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,Fl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ew(e,t){const n=t.data||{},r="value"in t&&!(iu.call(n,"hProperties")||iu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
81
+ `});++r<e.length;)r&&n.push({type:"text",value:`
82
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
83
+ `}),n}function Ef(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nf(e,t){const n=ww(e,t),r=n.one(e,void 0),i=fw(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
84
+ `},i),l}function bw(e,t){return e&&"run"in e?async function(n,r){const i=Nf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Nf(n,{file:r,...e||t})}}function bf(e){if(e)throw e}var al=Object.prototype.hasOwnProperty,Jh=Object.prototype.toString,Pf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,Tf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Jh.call(t)==="[object Array]"},_f=function(t){if(!t||Jh.call(t)!=="[object Object]")return!1;var n=al.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&al.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||al.call(t,i)},If=function(t,n){Pf&&n.name==="__proto__"?Pf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Lf=function(t,n){if(n==="__proto__")if(al.call(t,n)){if(jf)return jf(t,n).value}else return;return t[n]},Pw=function e(){var t,n,r,i,l,o,s=arguments[0],u=1,a=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});u<a;++u)if(t=arguments[u],t!=null)for(n in t)r=Lf(s,n),i=Lf(t,n),s!==i&&(f&&i&&(_f(i)||(l=Tf(i)))?(l?(l=!1,o=r&&Tf(r)?r:[]):o=r&&_f(r)?r:{},If(s,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&If(s,{name:n,newValue:i}));return s};const Uo=uu(Pw);function lu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jw(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(u,...a){const f=e[++l];let c=-1;if(u){o(u);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?Tw(f,s)(...a):o(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Tw(e,t){let n;return r;function r(...o){const s=e.length>o.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(a){const f=a;if(s&&n)throw f;return i(f)}s||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const kt={basename:_w,dirname:Iw,extname:Lw,join:Rw,sep:"/"};function _w(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ni(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Iw(e){if(Ni(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Lw(e){Ni(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Rw(...e){let t=-1,n;for(;++t<e.length;)Ni(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":zw(n)}function zw(e){Ni(e);const t=e.codePointAt(0)===47;let n=Aw(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Aw(e,t){let n="",r=0,i=-1,l=0,o=-1,s,u;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else s===46&&l>-1?l++:l=-1}return n}function Ni(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ow={cwd:Dw};function Dw(){return"/"}function ou(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Fw(e){if(typeof e=="string")e=new URL(e);else if(!ou(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Mw(e)}function Mw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const $o=["history","path","basename","stem","extname","dirname"];class Zh{constructor(t){let n;t?ou(t)?n={path:t}:typeof t=="string"||Bw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ow.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$o.length;){const l=$o[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)$o.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?kt.basename(this.path):void 0}set basename(t){Ho(t,"basename"),Vo(t,"basename"),this.path=kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kt.dirname(this.path):void 0}set dirname(t){Rf(this.basename,"dirname"),this.path=kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kt.extname(this.path):void 0}set extname(t){if(Vo(t,"extname"),Rf(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ou(t)&&(t=Fw(t)),Ho(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kt.basename(this.path,this.extname):void 0}set stem(t){Ho(t,"stem"),Vo(t,"stem"),this.path=kt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Vo(e,t){if(e&&e.includes(kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kt.sep+"`")}function Ho(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Rf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Bw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Uw=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},$w={}.hasOwnProperty;class wa extends Uw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=jw()}copy(){const t=new wa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Uo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qo("data",this.frozen),this.namespace[t]=n,this):$w.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=qi(t),r=this.parser||this.Parser;return Wo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Wo("process",this.parser||this.Parser),Qo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const s=qi(t),u=r.parse(s);r.run(u,s,function(f,c,d){if(f||!c||!d)return a(f);const p=c,h=r.stringify(p,d);Ww(h)?d.value=h:d.result=h,a(f,d)});function a(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Wo("processSync",this.parser||this.Parser),Qo("processSync",this.compiler||this.Compiler),this.process(t,i),Af("processSync","process",n),r;function i(l,o){n=!0,bf(l),r=o}}run(t,n,r){zf(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,s){const u=qi(n);i.run(t,u,a);function a(f,c,d){const p=c||t;f?s(f):o?o(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Af("runSync","run",r),i;function l(o,s){bf(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=qi(n),i=this.compiler||this.Compiler;return Qo("stringify",i),zf(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(qo("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(a){if(typeof a=="function")u(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;u(f,c)}else o(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function o(a){if(!("plugins"in a)&&!("settings"in a))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(a.plugins),a.settings&&(i.settings=Uo(!0,i.settings,a.settings))}function s(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function u(a,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===a){d=c;break}if(d===-1)r.push([a,...f]);else if(f.length>0){let[p,...h]=f;const k=r[d][1];lu(k)&&lu(p)&&(p=Uo(!0,k,p)),r[d]=[a,p,...h]}}}}const Vw=new wa().freeze();function Wo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function zf(e){if(!lu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Af(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qi(e){return Hw(e)?e:new Zh(e)}function Hw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ww(e){return typeof e=="string"||Qw(e)}function Qw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Of=[],Df={allowDangerousHtml:!0},Kw=/^(https?|ircs?|mailto|xmpp)$/i,Yw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ko(e){const t=Xw(e),n=Gw(e);return Jw(t.runSync(t.parse(n),n),e)}function Xw(e){const t=e.rehypePlugins||Of,n=e.remarkPlugins||Of,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Df}:Df;return Vw().use(Lk).use(n).use(bw,r).use(t)}function Gw(e){const t=e.children||"",n=new Zh;return typeof t=="string"&&(n.value=t),n}function Jw(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||Zw;for(const f of Yw)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+qw+f.id,void 0);return ka(e,a),mv(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function a(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return o?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Fo)if(Object.hasOwn(Fo,p)&&Object.hasOwn(f.properties,p)){const h=f.properties[p],k=Fo[p];(k===null||k.includes(f.tagName))&&(f.properties[p]=u(String(h||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,d)),p&&d&&typeof c=="number")return s&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function Zw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Kw.test(e.slice(0,t))?e:""}function Ff(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function eS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function tS(e,t,n){const i=so((n||{}).ignore||[]),l=nS(t);let o=-1;for(;++o<l.length;)Gh(e,"text",s);function s(a,f){let c=-1,d;for(;++c<f.length;){const p=f[c],h=d?d.children:void 0;if(i(p,h?h.indexOf(p):void 0,d))return;d=p}if(d)return u(a,f)}function u(a,f){const c=f[f.length-1],d=l[o][0],p=l[o][1];let h=0;const N=c.children.indexOf(a);let g=!1,y=[];d.lastIndex=0;let x=d.exec(a.value);for(;x;){const b=x.index,j={index:x.index,input:x.input,stack:[...f,a]};let E=p(...x,j);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?d.lastIndex=b+1:(h!==b&&y.push({type:"text",value:a.value.slice(h,b)}),Array.isArray(E)?y.push(...E):E&&y.push(E),h=b+x[0].length,g=!0),!d.global)break;x=d.exec(a.value)}return g?(h<a.value.length&&y.push({type:"text",value:a.value.slice(h)}),c.children.splice(N,1,...y)):y=[a],N+y.length}}function nS(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([rS(i[0]),iS(i[1])])}return t}function rS(e){return typeof e=="string"?new RegExp(eS(e),"g"):e}function iS(e){return typeof e=="function"?e:function(){return e}}const Yo="phrasing",Xo=["autolink","link","image","label"];function lS(){return{transforms:[dS],enter:{literalAutolink:sS,literalAutolinkEmail:Go,literalAutolinkHttp:Go,literalAutolinkWww:Go},exit:{literalAutolink:fS,literalAutolinkEmail:cS,literalAutolinkHttp:uS,literalAutolinkWww:aS}}}function oS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Yo,notInConstruct:Xo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Yo,notInConstruct:Xo},{character:":",before:"[ps]",after:"\\/",inConstruct:Yo,notInConstruct:Xo}]}}function sS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Go(e){this.config.enter.autolinkProtocol.call(this,e)}function uS(e){this.config.exit.autolinkProtocol.call(this,e)}function aS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function cS(e){this.config.exit.autolinkEmail.call(this,e)}function fS(e){this.exit(e)}function dS(e){tS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hS]],{ignore:["link","linkReference"]})}function pS(e,t,n,r,i){let l="";if(!em(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!mS(n)))return!1;const o=gS(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function hS(e,t,n,r){return!em(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function mS(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function gS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ff(e,"(");let l=Ff(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function em(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pn(n)||io(n))&&(!t||n!==47)}tm.peek=NS;function yS(){this.buffer()}function xS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vS(){this.buffer()}function kS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function SS(e){this.exit(e)}function CS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ES(e){this.exit(e)}function NS(){return"["}function tm(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),s(),o(),l+=i.move("]"),l}function bS(){return{enter:{gfmFootnoteCallString:yS,gfmFootnoteCall:xS,gfmFootnoteDefinitionLabelString:vS,gfmFootnoteDefinition:kS},exit:{gfmFootnoteCallString:wS,gfmFootnoteCall:SS,gfmFootnoteDefinitionLabelString:CS,gfmFootnoteDefinition:ES}}}function PS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:tm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const s=l.createTracker(o);let u=s.move("[^");const a=l.enter("footnoteDefinition"),f=l.enter("label");return u+=s.move(l.safe(l.associationId(r),{before:u,after:"]"})),f(),u+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),u+=s.move((t?`
85
+ `:" ")+l.indentLines(l.containerFlow(r,s.current()),t?nm:jS))),a(),u}}function jS(e,t,n){return t===0?e:nm(e,t,n)}function nm(e,t,n){return(n?"":" ")+e}const TS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rm.peek=zS;function _S(){return{canContainEols:["delete"],enter:{strikethrough:LS},exit:{strikethrough:RS}}}function IS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:TS}],handlers:{delete:rm}}}function LS(e){this.enter({type:"delete",children:[]},e)}function RS(e){this.exit(e)}function rm(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function zS(){return"~"}function AS(e){return e.length}function OS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||AS,l=[],o=[],s=[],u=[];let a=0,f=-1;for(;++f<e.length;){const k=[],N=[];let g=-1;for(e[f].length>a&&(a=e[f].length);++g<e[f].length;){const y=DS(e[f][g]);if(n.alignDelimiters!==!1){const x=i(y);N[g]=x,(u[g]===void 0||x>u[g])&&(u[g]=x)}k.push(y)}o[f]=k,s[f]=N}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)l[c]=Mf(r[c]);else{const k=Mf(r);for(;++c<a;)l[c]=k}c=-1;const d=[],p=[];for(;++c<a;){const k=l[c];let N="",g="";k===99?(N=":",g=":"):k===108?N=":":k===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,u[c]-N.length-g.length);const x=N+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=N.length+y+g.length,y>u[c]&&(u[c]=y),p[c]=y),d[c]=x}o.splice(1,0,d),s.splice(1,0,p),f=-1;const h=[];for(;++f<o.length;){const k=o[f],N=s[f];c=-1;const g=[];for(;++c<a;){const y=k[c]||"";let x="",b="";if(n.alignDelimiters!==!1){const j=u[c]-(N[c]||0),E=l[c];E===114?x=" ".repeat(j):E===99?j%2?(x=" ".repeat(j/2+.5),b=" ".repeat(j/2-.5)):(x=" ".repeat(j/2),b=x):b=" ".repeat(j)}n.delimiterStart!==!1&&!c&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&g.push(" "),n.alignDelimiters!==!1&&g.push(x),g.push(y),n.alignDelimiters!==!1&&g.push(b),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||c!==a-1)&&g.push("|")}h.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return h.join(`
86
+ `)}function DS(e){return e==null?"":String(e)}function Mf(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function FS(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),MS);return i(),o}function MS(e,t,n){return">"+(n?"":" ")+e}function BS(e,t){return Bf(e,t.inConstruct,!0)&&!Bf(e,t.notInConstruct,!1)}function Bf(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Uf(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
87
+ `&&BS(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
88
+ `}function US(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function $S(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function VS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function HS(e,t,n,r){const i=VS(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if($S(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,WS);return c(),d}const s=n.createTracker(r),u=i.repeat(Math.max(US(l,i)+1,3)),a=n.enter("codeFenced");let f=s.move(u);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
89
+ `,encode:["`"],...s.current()})),c()}return f+=s.move(`
90
+ `),l&&(f+=s.move(l+`
91
+ `)),f+=s.move(u),a(),f}function WS(e,t,n){return(n?"":" ")+e}function Sa(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function QS(e,t,n,r){const i=Sa(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const u=n.createTracker(r);let a=u.move("[");return a+=u.move(n.safe(n.associationId(e),{before:a,after:"]",...u.current()})),a+=u.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=u.move("<"),a+=u.move(n.safe(e.url,{before:a,after:">",...u.current()})),a+=u.move(">")):(s=n.enter("destinationRaw"),a+=u.move(n.safe(e.url,{before:a,after:e.title?" ":`
92
+ `,...u.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=u.move(" "+i),a+=u.move(n.safe(e.title,{before:a,after:i,...u.current()})),a+=u.move(i),s()),o(),a}function qS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function mi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ml(e,t,n){const r=pr(e),i=pr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}im.peek=KS;function im(e,t,n,r){const i=qS(n),l=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const a=u.charCodeAt(0),f=Ml(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(u=mi(a)+u.slice(1));const c=u.charCodeAt(u.length-1),d=Ml(r.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+mi(c));const p=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+u+p}function KS(e,t,n){return n.options.emphasis||"*"}function YS(e,t){let n=!1;return ka(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ru}),!!((!e.depth||e.depth<3)&&pa(e)&&(t.options.setext||n))}function XS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(YS(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
93
+ `,after:`
94
+ `});return c(),f(),d+`
95
+ `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
96
+ `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),u=n.enter("phrasing");l.move(o+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
97
+ `,...l.current()});return/^[\t ]/.test(a)&&(a=mi(a.charCodeAt(0))+a.slice(1)),a=a?o+" "+a:o,n.options.closeAtx&&(a+=" "+o),u(),s(),a}lm.peek=GS;function lm(e){return e.value||""}function GS(){return"<"}om.peek=JS;function om(e,t,n,r){const i=Sa(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const u=n.createTracker(r);let a=u.move("![");return a+=u.move(n.safe(e.alt,{before:a,after:"]",...u.current()})),a+=u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=u.move("<"),a+=u.move(n.safe(e.url,{before:a,after:">",...u.current()})),a+=u.move(">")):(s=n.enter("destinationRaw"),a+=u.move(n.safe(e.url,{before:a,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=u.move(" "+i),a+=u.move(n.safe(e.title,{before:a,after:i,...u.current()})),a+=u.move(i),s()),a+=u.move(")"),o(),a}function JS(){return"!"}sm.peek=ZS;function sm(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");const a=n.safe(e.alt,{before:u,after:"]",...s.current()});u+=s.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function ZS(){return"!"}um.peek=eC;function um(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],s=n.compilePattern(o);let u;if(o.atBreak)for(;u=s.exec(r);){let a=u.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(u.index+1)}}return i+r+i}function eC(){return"`"}function am(e,t){const n=pa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cm.peek=tC;function cm(e,t,n,r){const i=Sa(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,u;if(am(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=f,c}s=n.enter("link"),u=n.enter("label");let a=o.move("[");return a+=o.move(n.containerPhrasing(e,{before:a,after:"](",...o.current()})),a+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=o.move("<"),a+=o.move(n.safe(e.url,{before:a,after:">",...o.current()})),a+=o.move(">")):(u=n.enter("destinationRaw"),a+=o.move(n.safe(e.url,{before:a,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=o.move(" "+i),a+=o.move(n.safe(e.title,{before:a,after:i,...o.current()})),a+=o.move(i),u()),a+=o.move(")"),s(),a}function tC(e,t,n){return am(e,n)?"<":"["}fm.peek=nC;function fm(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("[");const a=n.containerPhrasing(e,{before:u,after:"]",...s.current()});u+=s.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function nC(){return"["}function Ca(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function rC(e){const t=Ca(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function iC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dm(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function lC(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?iC(n):Ca(n);const s=e.ordered?o==="."?")":".":rC(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),dm(n)===o&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=s),n.bulletCurrent=o;const a=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),a}function oC(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sC(e,t,n,r){const i=oC(n);let l=n.bulletCurrent||Ca(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(l+" ".repeat(o-l.length)),s.shift(o);const u=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,s.current()),f);return u(),a;function f(c,d,p){return d?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function uC(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const aC=so(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cC(e,t,n,r){return(e.children.some(function(o){return aC(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function fC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}pm.peek=dC;function pm(e,t,n,r){const i=fC(n),l=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const a=u.charCodeAt(0),f=Ml(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(u=mi(a)+u.slice(1));const c=u.charCodeAt(u.length-1),d=Ml(r.after.charCodeAt(0),c,i);d.inside&&(u=u.slice(0,-1)+mi(c));const p=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+u+p}function dC(e,t,n){return n.options.strong||"*"}function pC(e,t,n,r){return n.safe(e.value,r)}function hC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mC(e,t,n){const r=(dm(n)+(n.options.ruleSpaces?" ":"")).repeat(hC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const hm={blockquote:FS,break:Uf,code:HS,definition:QS,emphasis:im,hardBreak:Uf,heading:XS,html:lm,image:om,imageReference:sm,inlineCode:um,link:cm,linkReference:fm,list:lC,listItem:sC,paragraph:uC,root:cC,strong:pm,text:pC,thematicBreak:mC};function gC(){return{enter:{table:yC,tableData:$f,tableHeader:$f,tableRow:vC},exit:{codeText:kC,table:xC,tableData:Jo,tableHeader:Jo,tableRow:Jo}}}function yC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function xC(e){this.exit(e),this.data.inTable=void 0}function vC(e){this.enter({type:"tableRow",children:[]},e)}function Jo(e){this.exit(e)}function $f(e){this.enter({type:"tableCell",children:[]},e)}function kC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wC(e,t){return t==="|"?t:e}function SC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
98
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:u,tableRow:s}};function o(p,h,k,N){return a(f(p,k,N),p.align)}function s(p,h,k,N){const g=c(p,k,N),y=a([g]);return y.slice(0,y.indexOf(`
99
+ `))}function u(p,h,k,N){const g=k.enter("tableCell"),y=k.enter("phrasing"),x=k.containerPhrasing(p,{...N,before:l,after:l});return y(),g(),x}function a(p,h){return OS(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function f(p,h,k){const N=p.children;let g=-1;const y=[],x=h.enter("table");for(;++g<N.length;)y[g]=c(N[g],h,k);return x(),y}function c(p,h,k){const N=p.children;let g=-1;const y=[],x=h.enter("tableRow");for(;++g<N.length;)y[g]=u(N[g],p,h,k);return x(),y}function d(p,h,k){let N=hm.inlineCode(p,h,k);return k.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function CC(){return{exit:{taskListCheckValueChecked:Vf,taskListCheckValueUnchecked:Vf,paragraph:NC}}}function EC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bC}}}function Vf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function NC(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const s=i[l];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function bC(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);l&&s.move(o);let u=hm.listItem(e,t,n,{...r,...s.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),u;function a(f){return f+o}}function PC(){return[lS(),bS(),_S(),gC(),CC()]}function jC(e){return{extensions:[oS(),PS(e),IS(),SC(e),EC()]}}const TC={tokenize:AC,partial:!0},mm={tokenize:OC,partial:!0},gm={tokenize:DC,partial:!0},ym={tokenize:FC,partial:!0},_C={tokenize:MC,partial:!0},xm={name:"wwwAutolink",tokenize:RC,previous:km},vm={name:"protocolAutolink",tokenize:zC,previous:wm},Dt={name:"emailAutolink",tokenize:LC,previous:Sm},Et={};function IC(){return{text:Et}}let pn=48;for(;pn<123;)Et[pn]=Dt,pn++,pn===58?pn=65:pn===91&&(pn=97);Et[43]=Dt;Et[45]=Dt;Et[46]=Dt;Et[95]=Dt;Et[72]=[Dt,vm];Et[104]=[Dt,vm];Et[87]=[Dt,xm];Et[119]=[Dt,xm];function LC(e,t,n){const r=this;let i,l;return o;function o(c){return!su(c)||!Sm.call(r,r.previous)||Ea(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return su(c)?(e.consume(c),s):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(_C,f,a)(c):c===45||c===95||_e(c)?(l=!0,e.consume(c),u):f(c)}function a(c){return e.consume(c),i=!0,u}function f(c){return l&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function RC(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!km.call(r,r.previous)||Ea(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TC,e.attempt(mm,e.attempt(gm,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function zC(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&wm.call(r,r.previous)&&!Ea(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(ze(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),l?a:(l=!0,u)):n(c)}function a(c){return c===null||Ol(c)||te(c)||Pn(c)||io(c)?n(c):e.attempt(mm,e.attempt(gm,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function AC(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function OC(e,t,n){let r,i,l;return o;function o(a){return a===46||a===95?e.check(ym,u,s)(a):a===null||te(a)||Pn(a)||a!==45&&io(a)?u(a):(l=!0,e.consume(a),o)}function s(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),o}function u(a){return i||r||!l?n(a):t(a)}}function DC(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ym,t,l)(o):o===null||te(o)||Pn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function FC(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),l):s===93?(e.consume(s),i):s===60||s===null||te(s)||Pn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||te(s)||Pn(s)?t(s):r(s)}function l(s){return ze(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):ze(s)?(e.consume(s),o):n(s)}}function MC(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return _e(l)?n(l):t(l)}}function km(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||te(e)}function wm(e){return!ze(e)}function Sm(e){return!(e===47||su(e))}function su(e){return e===43||e===45||e===46||e===95||_e(e)}function Ea(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const BC={tokenize:KC,partial:!0};function UC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:WC,continuation:{tokenize:QC},exit:qC}},text:{91:{name:"gfmFootnoteCall",tokenize:HC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$C,resolveTo:VC}}}}function $C(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const a=mt(r.sliceSerialize({start:o.end,end:r.now()}));return a.codePointAt(0)!==94||!l.includes(a.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function VC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function HC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(l>999||c===93&&!o||c===null||c===91||te(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(mt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return te(c)||(o=!0),l++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,a):a(c)}}function WC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,s;return u;function u(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(h)}function f(h){if(o>999||h===93&&!s||h===null||h===91||te(h))return n(h);if(h===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return l=mt(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return te(h)||(s=!0),o++,e.consume(h),h===92?c:f}function c(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}function d(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(l)||i.push(l),K(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function QC(e,t,n){return e.check(Ei,t,e.attempt(BC,t,n))}function qC(e){e.exit("gfmFootnoteDefinition")}function KC(e,t,n){const r=this;return K(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function YC(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let a=u;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[u][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[u][1].end)},c={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[u][1].start)},d=[["enter",f,s],["enter",o[a][1],s],["exit",o[a][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&Xe(d,d.length,0,lo(p,o.slice(a+1,u),s)),Xe(d,d.length,0,[["exit",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["exit",f,s]]),Xe(o,a-1,u-a+3,d),u=a+d.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function l(o,s,u){const a=this.previous,f=this.events;let c=0;return d;function d(h){return a===126&&f[f.length-1][1].type!=="characterEscape"?u(h):(o.enter("strikethroughSequenceTemporary"),p(h))}function p(h){const k=pr(a);if(h===126)return c>1?u(h):(o.consume(h),c++,p);if(c<2&&!n)return u(h);const N=o.exit("strikethroughSequenceTemporary"),g=pr(h);return N._open=!g||g===2&&!!k,N._close=!k||k===2&&!!g,s(h)}}}class XC{constructor(){this.map=[]}add(t,n,r){GC(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function GC(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function JC(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ZC(){return{flow:{null:{name:"table",tokenize:eE,resolveAll:tE}}}}function eE(e,t,n){const r=this;let i=0,l=0,o;return s;function s(C){let O=r.events.length-1;for(;O>-1;){const J=r.events[O][1].type;if(J==="lineEnding"||J==="linePrefix")O--;else break}const F=O>-1?r.events[O][1].type:null,q=F==="tableHead"||F==="tableRow"?E:u;return q===E&&r.parser.lazy[r.now().line]?n(C):q(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),a(C)}function a(C){return C===124||(o=!0,l+=1),f(C)}function f(C){return C===null?n(C):B(C)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):H(C)?K(e,f,"whitespace")(C):(l+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(C)))}function c(C){return C===null||C===124||te(C)?(e.exit("data"),f(C)):(e.consume(C),C===92?d:c)}function d(C){return C===92||C===124?(e.consume(C),c):c(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,H(C)?K(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):h(C))}function h(C){return C===45||C===58?N(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),k):j(C)}function k(C){return H(C)?K(e,N,"whitespace")(C):N(C)}function N(C){return C===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(l+=1,g(C)):C===null||B(C)?b(C):j(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),y(C)):j(C)}function y(C){return C===45?(e.consume(C),y):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(C))}function x(C){return H(C)?K(e,b,"whitespace")(C):b(C)}function b(C){return C===124?h(C):C===null||B(C)?!o||i!==l?j(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):j(C)}function j(C){return n(C)}function E(C){return e.enter("tableRow"),S(C)}function S(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),S):C===null||B(C)?(e.exit("tableRow"),t(C)):H(C)?K(e,S,"whitespace")(C):(e.enter("data"),P(C))}function P(C){return C===null||C===124||te(C)?(e.exit("data"),S(C)):(e.consume(C),C===92?I:P)}function I(C){return C===92||C===124?(e.consume(C),P):P(C)}}function tE(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,a,f,c;const d=new XC;for(;++n<e.length;){const p=e[n],h=p[1];p[0]==="enter"?h.type==="tableHead"?(s=!1,u!==0&&(Hf(d,t,u,a,f),f=void 0,u=0),a={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(n,0,[["enter",a,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(n,0,[["enter",f,t]])),i=h.type==="tableDelimiterRow"?2:f?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Ki(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Ki(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):h.type==="tableHead"?(s=!0,u=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(u=n,l[1]!==0?(o[0]=o[1],c=Ki(d,t,l,i,n,c)):o[1]!==0&&(c=Ki(d,t,o,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Hf(d,t,u,a,f),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=JC(t.events,n))}return e}function Ki(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(l.end=Object.assign({},Mn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const u=Mn(t.events,n[1]);if(l={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const a=Mn(t.events,n[2]),f=Mn(t.events,n[3]),c={type:s,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,k=n[3]-n[2]-1;e.add(h,k,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Mn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Hf(e,t,n,r,i){const l=[],o=Mn(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function Mn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const nE={name:"tasklistCheck",tokenize:iE};function rE(){return{text:{91:nE}}}function iE(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return te(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return B(u)?t(u):H(u)?e.check({tokenize:lE},t,n)(u):n(u)}}function lE(e,t,n){return K(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function oE(e){return Lh([IC(),UC(),YC(e),ZC(),rE()])}const sE={};function Zo(e){const t=this,n=e||sE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(oE(n)),l.push(PC()),o.push(jC(n))}const uE={comment:"💬",suggestion:"💡",question:"❓",issue:"🚨"},aE={low:"bg-gray-100 text-gray-600",medium:"bg-yellow-100 text-yellow-700",high:"bg-red-100 text-red-700"};function cE(){var E;const{id:e}=Dx(),{lastMessage:t}=yh(),[n,r]=_.useState(null),[i,l]=_.useState([]),[o,s]=_.useState(null),[u,a]=_.useState(!0),[f,c]=_.useState("proposal"),[d,p]=_.useState(!1),[h,k]=_.useState({proposal:[],design:[],tasks:[],summary:null});_.useEffect(()=>{async function S(){if(e)try{const[P,I,C]=await Promise.all([Jn.get(e),sl.get(e),Jn.getReviews(e)]);r(P.change),l(I.tasks),s(I.progress),k(C)}catch(P){console.error("Failed to fetch change:",P)}finally{a(!1)}}S()},[e]),_.useEffect(()=>{if(!t||!e)return;const{event:S,data:P}=t;if(S==="review:added"&&P.changeId===e){const I=P.targetType;I&&P.review&&k(C=>({...C,[I]:[...C[I],P.review]}))}if(S==="review:resolved"&&P.changeId===e){const I=P.targetType;I&&P.reviewId&&k(C=>({...C,[I]:C[I].map(O=>O.id===P.reviewId?{...O,status:P.status||"resolved"}:O)}))}S==="reviews:updated"&&P.changeId===e&&Jn.getReviews(e).then(I=>{k(I)}).catch(I=>{console.error("Failed to refresh reviews:",I)})},[t,e]);const N=async(S,P)=>{if(e)try{await sl.update(e,S,P);const I=await sl.get(e);l(I.tasks),s(I.progress)}catch(I){console.error("Failed to update task:",I)}},g=async(S,P)=>{if(e)try{await Jn.resolveReview(e,S,P),k(I=>({...I,[P]:I[P].map(C=>C.id===S?{...C,status:"resolved"}:C)}))}catch(I){console.error("Failed to resolve review:",I)}};if(u)return m.jsx("div",{className:"flex justify-center items-center h-64",children:m.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})});if(!n)return m.jsxs("div",{className:"text-center py-12",children:[m.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Change not found"}),m.jsx(rn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 mt-2 inline-block",children:"← Back to changes"})]});const y=h[f].filter(S=>S.status==="open"),x=h[f].filter(S=>S.status!=="open"),b=d?x:y,j=((E=h.summary)==null?void 0:E.hasBlockingIssues)||!1;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between items-start",children:[m.jsxs("div",{children:[m.jsx(rn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 text-sm",children:"← Back to changes"}),m.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-2",children:n.title}),m.jsx("p",{className:"text-gray-500",children:n.id})]}),m.jsxs("div",{className:"flex items-center space-x-2",children:[j&&m.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),h.summary&&h.summary.open>0&&m.jsxs("span",{className:"px-3 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium",children:[h.summary.open," open reviews"]}),m.jsx("span",{className:`status-badge ${n.status==="active"?"status-implementing":"status-completed"}`,children:n.status})]})]}),o&&m.jsxs("div",{className:"bg-white rounded-lg shadow p-4",children:[m.jsxs("div",{className:"flex justify-between items-center mb-2",children:[m.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Progress"}),m.jsxs("span",{className:"text-sm text-gray-500",children:[o.completed,"/",o.total," tasks (",o.percentage,"%)"]})]}),m.jsx("div",{className:"w-full h-3 bg-gray-200 rounded-full",children:m.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-300",style:{width:`${o.percentage}%`}})}),m.jsxs("div",{className:"flex justify-between mt-2 text-xs text-gray-500",children:[m.jsxs("span",{children:["✅ ",o.completed," done"]}),m.jsxs("span",{children:["🔄 ",o.inProgress," in progress"]}),m.jsxs("span",{children:["⏳ ",o.pending," pending"]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[m.jsxs("div",{className:"lg:col-span-3",children:[m.jsx("div",{className:"border-b border-gray-200",children:m.jsx("nav",{className:"flex space-x-8",children:["proposal","tasks","design"].map(S=>{const P=h[S].filter(I=>I.status==="open");return m.jsxs("button",{onClick:()=>c(S),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center ${f===S?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[S.charAt(0).toUpperCase()+S.slice(1),P.length>0&&m.jsx("span",{className:"ml-2 bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full text-xs",children:P.length})]},S)})})}),m.jsxs("div",{className:"bg-white rounded-lg shadow mt-4",children:[f==="proposal"&&m.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.proposal?m.jsx(Ko,{remarkPlugins:[Zo],children:n.proposal}):m.jsx("p",{className:"text-gray-500",children:"No proposal content."})}),f==="tasks"&&m.jsx("div",{className:"p-6",children:i.length===0?m.jsx("p",{className:"text-gray-500",children:"No tasks defined."}):m.jsx("div",{className:"space-y-2",children:i.map(S=>m.jsxs("div",{className:"flex items-center justify-between p-3 rounded border hover:bg-gray-50",children:[m.jsxs("div",{className:"flex items-center space-x-3",children:[m.jsxs("button",{onClick:()=>{const P=S.status==="pending"?"in_progress":S.status==="in_progress"?"done":"pending";N(S.id,P)},className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${S.status==="done"?"bg-green-500 border-green-500 text-white":S.status==="in_progress"?"bg-blue-500 border-blue-500 text-white":"border-gray-300"}`,children:[S.status==="done"&&"✓",S.status==="in_progress"&&"●"]}),m.jsxs("div",{children:[m.jsxs("span",{className:"font-mono text-sm text-gray-500",children:["[",S.id,"]"]}),m.jsx("span",{className:"ml-2",children:S.title})]})]}),m.jsx("span",{className:`text-xs ${S.status==="done"?"text-green-600":S.status==="in_progress"?"text-blue-600":"text-gray-400"}`,children:S.status})]},S.id))})}),f==="design"&&m.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.design?m.jsx(Ko,{remarkPlugins:[Zo],children:n.design}):m.jsx("p",{className:"text-gray-500",children:"No design document."})})]})]}),m.jsx("div",{className:"lg:col-span-1 h-[calc(100vh-200px)]",children:m.jsxs("div",{className:"bg-white rounded-lg shadow h-full flex flex-col",children:[m.jsxs("div",{className:"p-4 border-b border-gray-200",children:[m.jsxs("h3",{className:"font-semibold text-gray-700 mb-2",children:["Reviews ",m.jsxs("span",{className:"text-xs text-gray-400",children:["for ",f]})]}),m.jsxs("div",{className:"flex space-x-1",children:[m.jsxs("button",{onClick:()=>p(!1),className:`px-3 py-1 text-xs rounded-full transition-colors ${d?"bg-gray-100 text-gray-500 hover:bg-gray-200":"bg-blue-100 text-blue-700"}`,children:["Open (",y.length,")"]}),m.jsxs("button",{onClick:()=>p(!0),className:`px-3 py-1 text-xs rounded-full transition-colors ${d?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:["Resolved (",x.length,")"]})]})]}),m.jsx("div",{className:"flex-1 p-4 space-y-3 overflow-y-auto",children:b.length===0?m.jsxs("div",{className:"text-center py-8",children:[m.jsx("p",{className:"text-sm text-gray-400",children:d?"No resolved reviews":"No open reviews"}),!d&&m.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Use ",m.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_add_review"})]})]}):b.map(S=>m.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-200 group hover:border-blue-300 transition-colors",children:[m.jsxs("div",{className:"flex justify-between items-start mb-2",children:[m.jsxs("div",{className:"flex items-center space-x-1",children:[m.jsx("span",{className:"text-lg",children:uE[S.type]}),S.severity&&m.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${aE[S.severity]}`,children:S.severity}),S.lineNumber&&m.jsxs("span",{className:"text-xs text-gray-400",children:["L",S.lineNumber]})]}),S.status==="open"?m.jsx("button",{onClick:()=>g(S.id,f),className:"text-green-500 hover:text-green-700 opacity-0 group-hover:opacity-100 transition-opacity",title:"Resolve",children:"✓"}):m.jsx("span",{className:`text-xs px-2 py-0.5 rounded ${S.status==="resolved"?"bg-green-100 text-green-600":"bg-gray-100 text-gray-500"}`,children:S.status==="resolved"?"✓ resolved":"⏭️ won't fix"})]}),m.jsx("div",{className:"prose prose-xs max-w-none text-gray-700",children:m.jsx(Ko,{remarkPlugins:[Zo],children:S.body})}),m.jsxs("div",{className:"text-xs text-gray-400 mt-2",children:["by ",S.author," • ",new Date(S.createdAt).toLocaleDateString()]})]},S.id))})]})})]})]})}const Wf={comment:"💬",suggestion:"💡",question:"❓",issue:"🚨"},Qf={low:"bg-gray-100 text-gray-600",medium:"bg-yellow-100 text-yellow-700",high:"bg-red-100 text-red-700"};function fE(){const[e,t]=_.useState([]),[n,r]=_.useState(!0),[i,l]=_.useState(null),[o,s]=_.useState([]),[u,a]=_.useState(null),[f,c]=_.useState(""),[d,p]=_.useState("comment"),[h,k]=_.useState("medium"),N=_.useRef(null);_.useEffect(()=>{async function S(){try{const P=await Fn.list();t(P.specs)}catch(P){console.error("Failed to fetch specs:",P)}finally{r(!1)}}S()},[]);const g=async S=>{try{const P=await Fn.get(S);l(P.spec),a(null),c("");const I=await Fn.listReviews(S);s(I.reviews)}catch(P){console.error("Failed to fetch spec:",P)}},y=()=>{const S=window.getSelection(),P=N.current;if(!S||S.isCollapsed||!P){a(null);return}const I=S.getRangeAt(0),C=z=>{var M;return z.nodeType===Node.ELEMENT_NODE?!!z.closest("[data-review-overlay]"):!!((M=z==null?void 0:z.parentElement)!=null&&M.closest("[data-review-overlay]"))};if(!P.contains(I.startContainer)||!P.contains(I.endContainer)||C(I.startContainer)||C(I.endContainer)){a(null);return}const O=S.toString();if(!O.trim()){a(null);return}const F=I.cloneRange();F.selectNodeContents(P),F.setEnd(I.startContainer,I.startOffset);const J=(F.toString().match(/\n/g)||[]).length+1,V=P.getBoundingClientRect(),pe=I.getBoundingClientRect(),ae=Math.max(pe.top-V.top+P.scrollTop-180,12);a({text:O,lineNumber:J,popupTop:ae})},x=async()=>{const S=f.trim();if(!(!u||!S||!i))try{const P=await Fn.addReview(i.id,S,d,{lineNumber:u.lineNumber,severity:d==="issue"?h:void 0});s(I=>[...I,P.review]),a(null),c("")}catch(P){console.error("Failed to add review:",P),alert("Failed to save review")}},b=async(S,P="resolved")=>{if(i)try{await Fn.resolveReview(i.id,S,P),s(I=>I.map(C=>C.id===S?{...C,status:P,resolvedAt:new Date().toISOString()}:C))}catch(I){console.error("Failed to resolve review:",I)}};if(n)return m.jsx("div",{className:"flex justify-center items-center h-64",children:m.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"})});const j=o.filter(S=>S.status==="open"),E=j.some(S=>S.type==="issue"&&S.severity==="high");return m.jsxs("div",{className:"space-y-6 h-[calc(100vh-120px)] flex flex-col",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Specifications"}),i&&j.length>0&&m.jsxs("div",{className:"flex items-center space-x-2",children:[E&&m.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),m.jsxs("span",{className:"text-sm text-gray-500",children:[j.length," open review",j.length!==1?"s":""]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 flex-1 min-h-0",children:[m.jsx("div",{className:"lg:col-span-3 bg-white rounded-xl shadow-sm border border-gray-100 overflow-y-auto",children:e.length===0?m.jsx("div",{className:"p-8 text-center text-gray-500",children:"No specs found."}):m.jsx("div",{className:"divide-y divide-gray-50",children:e.map(S=>m.jsxs("button",{onClick:()=>g(S.id),className:`w-full text-left p-4 hover:bg-gray-50 transition-colors ${(i==null?void 0:i.id)===S.id?"bg-indigo-50 border-l-4 border-indigo-500":"border-l-4 border-transparent"}`,children:[m.jsx("div",{className:"font-semibold text-gray-900",children:S.title}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono",children:S.id})]},S.id))})}),m.jsx("div",{className:"lg:col-span-6 bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col min-h-0",children:i?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"p-4 border-b border-gray-100 bg-gray-50/50 rounded-t-xl flex justify-between items-center",children:m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-bold text-gray-900",children:i.title}),m.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:"Select text to add review comment"})]})}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-6 font-mono text-sm leading-relaxed relative",ref:N,onMouseUp:y,children:[m.jsx("div",{className:"whitespace-pre-wrap text-gray-800",children:i.content}),u&&m.jsxs("div",{className:"absolute z-10 bg-white rounded-lg shadow-xl border border-gray-200 p-4 w-80 animate-fade-in","data-review-overlay":!0,style:{top:u.popupTop,right:20},children:[m.jsx("div",{className:"text-xs font-semibold text-gray-500 mb-2 uppercase tracking-wider flex justify-between items-center",children:m.jsxs("span",{children:["Add Review (Line ",u.lineNumber,")"]})}),m.jsxs("div",{className:"mb-2 p-2 bg-indigo-50 rounded text-xs text-indigo-800 border-l-2 border-indigo-300 italic truncate",children:['"',u.text.trim().substring(0,60),u.text.length>60?"...":"",'"']}),m.jsx("div",{className:"flex space-x-1 mb-2",children:["comment","suggestion","question","issue"].map(S=>m.jsxs("button",{onClick:()=>p(S),className:`px-2 py-1 text-xs rounded ${d===S?"bg-indigo-600 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[Wf[S]," ",S]},S))}),d==="issue"&&m.jsx("div",{className:"flex space-x-1 mb-2",children:["low","medium","high"].map(S=>m.jsx("button",{onClick:()=>k(S),className:`px-2 py-1 text-xs rounded ${h===S?Qf[S]+" ring-2 ring-offset-1":"bg-gray-100 text-gray-600"}`,children:S},S))}),m.jsx("textarea",{autoFocus:!0,className:"w-full text-sm border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500 mb-2",rows:3,placeholder:"Your review comment...",value:f,onChange:S=>c(S.target.value)}),m.jsxs("div",{className:"flex justify-end space-x-2",children:[m.jsx("button",{onClick:()=>a(null),className:"px-3 py-1 text-xs text-gray-600 hover:bg-gray-100 rounded",children:"Cancel"}),m.jsx("button",{onClick:x,className:"px-3 py-1 text-xs bg-indigo-600 text-white rounded hover:bg-indigo-700 font-medium",children:"Add Review"})]})]})]})]}):m.jsxs("div",{className:"flex-1 flex flex-col justify-center items-center text-gray-400 p-8",children:[m.jsx("svg",{className:"w-16 h-16 mb-4 opacity-20",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),m.jsx("p",{children:"Select a specification to view and review"})]})}),m.jsxs("div",{className:"lg:col-span-3 bg-gray-50 rounded-xl border border-gray-200 flex flex-col min-h-0",children:[m.jsx("div",{className:"p-4 border-b border-gray-200 bg-white rounded-t-xl",children:m.jsxs("h3",{className:"font-semibold text-gray-700 flex items-center",children:[m.jsx("span",{children:"Reviews"}),m.jsx("span",{className:"ml-2 bg-gray-200 text-gray-600 px-2 py-0.5 rounded-full text-xs",children:j.length})]})}),m.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:j.length===0?m.jsxs("div",{className:"text-center py-10",children:[m.jsx("p",{className:"text-sm text-gray-400",children:"No reviews yet."}),m.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Select text in the spec to add one."})]}):j.map(S=>m.jsxs("div",{className:"bg-white p-3 rounded-lg shadow-sm border border-gray-200 group hover:border-indigo-300 transition-colors",children:[m.jsxs("div",{className:"flex justify-between items-start mb-2",children:[m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("span",{className:"text-lg",children:Wf[S.type]}),S.severity&&m.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${Qf[S.severity]}`,children:S.severity}),S.lineNumber&&m.jsxs("span",{className:"text-xs text-gray-400",children:["L",S.lineNumber]})]}),m.jsxs("div",{className:"flex space-x-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[m.jsx("button",{className:"text-green-500 hover:text-green-700 text-xs",onClick:()=>b(S.id,"resolved"),title:"Resolve",children:"✓"}),m.jsx("button",{className:"text-gray-400 hover:text-gray-600 text-xs",onClick:()=>b(S.id,"wont_fix"),title:"Won't fix",children:"×"})]})]}),m.jsx("div",{className:"text-sm text-gray-800",children:S.body}),S.replies.length>0&&m.jsxs("div",{className:"mt-2 pt-2 border-t border-gray-100 text-xs text-gray-500",children:["💭 ",S.replies.length," replies"]})]},S.id))})]})]})]})}function dE(){const[e,t]=_.useState([]),[n,r]=_.useState(!0),[i,l]=_.useState(!1),[o,s]=_.useState({type:null,changeId:""}),[u,a]=_.useState({name:"",comment:""});_.useEffect(()=>{f()},[i]);async function f(){r(!0);try{const h=i?await Or.list():await Or.listPending();t(h.approvals)}catch(h){console.error("Failed to fetch approvals:",h)}finally{r(!1)}}const c=async()=>{if(u.name)try{await Or.approve(o.changeId,u.name,u.comment||void 0),s({type:null,changeId:""}),a({name:"",comment:""}),f()}catch(h){console.error("Failed to approve:",h)}},d=async()=>{if(!(!u.name||!u.comment))try{await Or.reject(o.changeId,u.name,u.comment),s({type:null,changeId:""}),a({name:"",comment:""}),f()}catch(h){console.error("Failed to reject:",h)}},p=h=>({draft:"status-draft",pending_approval:"status-pending",approved:"status-approved",rejected:"status-rejected",implementing:"status-implementing",completed:"status-completed"})[h]||"status-draft";return n?m.jsx("div",{className:"flex justify-center items-center h-64",children:m.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Approval Queue"}),m.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[m.jsx("input",{type:"checkbox",checked:i,onChange:h=>l(h.target.checked),className:"rounded border-gray-300"}),m.jsx("span",{children:"Show all"})]})]}),e.length===0?m.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:i?"No approval records found.":"No pending approvals."}):m.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:m.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[m.jsx("thead",{className:"bg-gray-50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Change"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Status"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Requested"}),m.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Actions"})]})}),m.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:e.map(h=>m.jsxs("tr",{className:"hover:bg-gray-50",children:[m.jsxs("td",{className:"px-6 py-4",children:[m.jsx("div",{className:"font-medium text-gray-900",children:h.changeId}),h.requestedBy&&m.jsxs("div",{className:"text-sm text-gray-500",children:["by ",h.requestedBy]})]}),m.jsx("td",{className:"px-6 py-4",children:m.jsx("span",{className:`status-badge ${p(h.status)}`,children:h.status.replace("_"," ")})}),m.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:h.requestedAt?new Date(h.requestedAt).toLocaleString():"-"}),m.jsx("td",{className:"px-6 py-4",children:h.status==="pending_approval"&&m.jsxs("div",{className:"flex space-x-2",children:[m.jsx("button",{onClick:()=>s({type:"approve",changeId:h.changeId}),className:"px-3 py-1 bg-green-500 text-white text-sm rounded hover:bg-green-600",children:"Approve"}),m.jsx("button",{onClick:()=>s({type:"reject",changeId:h.changeId}),className:"px-3 py-1 bg-red-500 text-white text-sm rounded hover:bg-red-600",children:"Reject"})]})})]},h.changeId))})]})}),o.type&&m.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:m.jsxs("div",{className:"bg-white rounded-lg shadow-xl p-6 w-full max-w-md",children:[m.jsx("h3",{className:"text-lg font-semibold mb-4",children:o.type==="approve"?"Approve Change":"Reject Change"}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Your Name"}),m.jsx("input",{type:"text",value:u.name,onChange:h=>a({...u,name:h.target.value}),className:"w-full border rounded-md px-3 py-2",placeholder:"Enter your name"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:o.type==="approve"?"Comment (optional)":"Reason (required)"}),m.jsx("textarea",{value:u.comment,onChange:h=>a({...u,comment:h.target.value}),className:"w-full border rounded-md px-3 py-2",rows:3,placeholder:o.type==="approve"?"Optional comment...":"Explain why this is rejected..."})]})]}),m.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[m.jsx("button",{onClick:()=>{s({type:null,changeId:""}),a({name:"",comment:""})},className:"px-4 py-2 border rounded-md hover:bg-gray-50",children:"Cancel"}),m.jsx("button",{onClick:o.type==="approve"?c:d,className:`px-4 py-2 text-white rounded-md ${o.type==="approve"?"bg-green-500 hover:bg-green-600":"bg-red-500 hover:bg-red-600"}`,children:o.type==="approve"?"Approve":"Reject"})]})]})})]})}function pE(){const e=Si(),{connected:t}=yh(),[n,r]=_.useState(null);_.useEffect(()=>{let l=!0;return f0.get().then(({project:o})=>{l&&r(o.name)}).catch(()=>{}),()=>{l=!1}},[]);const i=[{path:"/",label:"Dashboard"},{path:"/changes",label:"Changes"},{path:"/specs",label:"Specs"},{path:"/approvals",label:"Approvals"}];return m.jsxs("div",{className:"min-h-screen bg-gray-50",children:[m.jsx("header",{className:"bg-white shadow-sm",children:m.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:m.jsxs("div",{className:"flex justify-between items-center py-4",children:[m.jsxs("div",{className:"flex items-center space-x-4",children:[m.jsx("h1",{className:"text-xl font-bold text-gray-900",children:"OpenSpec MCP"}),n?m.jsx("span",{className:"text-sm text-gray-500",title:n,children:n}):null,m.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded text-xs ${t?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:t?"● Connected":"○ Disconnected"})]}),m.jsx("nav",{className:"flex space-x-4",children:i.map(l=>m.jsx(rn,{to:l.path,className:`px-3 py-2 rounded-md text-sm font-medium ${e.pathname===l.path?"bg-gray-100 text-gray-900":"text-gray-500 hover:text-gray-900 hover:bg-gray-50"}`,children:l.label},l.path))})]})})}),m.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:m.jsxs(Zx,{children:[m.jsx(Dn,{path:"/",element:m.jsx(d0,{})}),m.jsx(Dn,{path:"/changes",element:m.jsx(x0,{})}),m.jsx(Dn,{path:"/changes/:id",element:m.jsx(cE,{})}),m.jsx(Dn,{path:"/specs",element:m.jsx(fE,{})}),m.jsx(Dn,{path:"/approvals",element:m.jsx(dE,{})})]})})]})}es.createRoot(document.getElementById("root")).render(m.jsx(rd.StrictMode,{children:m.jsx(o0,{children:m.jsx(pE,{})})}));