openspec-mcp 0.2.5 → 0.3.1
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.
- package/README.md +31 -0
- package/README.zh.md +31 -0
- package/dist/api/routes/changes.d.ts.map +1 -1
- package/dist/api/routes/changes.js +24 -0
- package/dist/api/routes/changes.js.map +1 -1
- package/dist/api/server.d.ts +2 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +27 -0
- package/dist/api/server.js.map +1 -1
- package/dist/core/cross-service-manager.d.ts +57 -0
- package/dist/core/cross-service-manager.d.ts.map +1 -0
- package/dist/core/cross-service-manager.js +232 -0
- package/dist/core/cross-service-manager.js.map +1 -0
- package/dist/core/file-watcher.d.ts +5 -0
- package/dist/core/file-watcher.d.ts.map +1 -1
- package/dist/core/file-watcher.js +29 -0
- package/dist/core/file-watcher.js.map +1 -1
- package/dist/core/openspec-cli.d.ts.map +1 -1
- package/dist/core/openspec-cli.js +16 -2
- package/dist/core/openspec-cli.js.map +1 -1
- package/dist/core/task-parser.d.ts.map +1 -1
- package/dist/core/task-parser.js +39 -14
- package/dist/core/task-parser.js.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/server/tools/cross-service.d.ts +8 -0
- package/dist/server/tools/cross-service.d.ts.map +1 -0
- package/dist/server/tools/cross-service.js +69 -0
- package/dist/server/tools/cross-service.js.map +1 -0
- package/dist/types/openspec.d.ts +25 -0
- package/dist/types/openspec.d.ts.map +1 -1
- package/package.json +6 -5
- package/web/dist/assets/index-CCYunmpc.css +1 -0
- package/web/dist/assets/index-wgGN6sVJ.js +244 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-5xUEKC-c.css +0 -1
- package/web/dist/assets/index-CAdALZvl.js +0 -99
|
@@ -1,99 +0,0 @@
|
|
|
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 pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kf={exports:{}},Vl={},Yf={exports:{}},H={};/**
|
|
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 xi=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"),_u=Symbol.iterator;function Vm(e){return e===null||typeof e!="object"?null:(e=_u&&e[_u]||e["@@iterator"],typeof e=="function"?e:null)}var Xf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gf=Object.assign,Jf={};function hr(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}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 Zf(){}Zf.prototype=hr.prototype;function ca(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}var fa=ca.prototype=new Zf;fa.constructor=ca;Gf(fa,hr.prototype);fa.isPureReactComponent=!0;var Lu=Array.isArray,ed=Object.prototype.hasOwnProperty,da={current:null},td={key:!0,ref:!0,__self:!0,__source:!0};function nd(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)ed.call(t,r)&&!td.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:xi,type:e,key:l,ref:o,props:i,_owner:da.current}}function Hm(e,t){return{$$typeof:xi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pa(e){return typeof e=="object"&&e!==null&&e.$$typeof===xi}function Wm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ru=/\/+/g;function po(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wm(""+e.key):t.toString(36)}function Gi(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 xi:case Rm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+po(o,0):r,Lu(i)?(n="",e!=null&&(n=e.replace(Ru,"$&/")+"/"),Gi(i,t,n,"",function(u){return u})):i!=null&&(pa(i)&&(i=Hm(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ru,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Lu(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+po(l,s);o+=Gi(l,t,n,a,i)}else if(a=Vm(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+po(l,s++),o+=Gi(l,t,n,a,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 Ti(e,t,n){if(e==null)return e;var r=[],i=0;return Gi(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},Ji={transition:null},qm={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Ji,ReactCurrentOwner:da};function rd(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:Ti,forEach:function(e,t,n){Ti(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ti(e,function(){t++}),t},toArray:function(e){return Ti(e,function(t){return t})||[]},only:function(e){if(!pa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=hr;H.Fragment=zm;H.Profiler=Om;H.PureComponent=ca;H.StrictMode=Am;H.Suspense=Bm;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qm;H.act=rd;H.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=Gf({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=da.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)ed.call(t,a)&&!td.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:xi,type:e.type,key:i,ref:l,props:r,_owner:o}};H.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};H.createElement=nd;H.createFactory=function(e){var t=nd.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:Mm,render:e}};H.isValidElement=pa;H.lazy=function(e){return{$$typeof:$m,_payload:{_status:-1,_result:e},_init:Qm}};H.memo=function(e,t){return{$$typeof:Um,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=Ji.transition;Ji.transition={};try{e()}finally{Ji.transition=t}};H.unstable_act=rd;H.useCallback=function(e,t){return Oe.current.useCallback(e,t)};H.useContext=function(e){return Oe.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};H.useEffect=function(e,t){return Oe.current.useEffect(e,t)};H.useId=function(){return Oe.current.useId()};H.useImperativeHandle=function(e,t,n){return Oe.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Oe.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Oe.current.useReducer(e,t,n)};H.useRef=function(e){return Oe.current.useRef(e)};H.useState=function(e){return Oe.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Oe.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Oe.current.useTransition()};H.version="18.3.1";Yf.exports=H;var _=Yf.exports;const id=ua(_),Km=Lm({__proto__:null,default:id},[_]);/**
|
|
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 ld(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}}Vl.Fragment=Gm;Vl.jsx=ld;Vl.jsxs=ld;Kf.exports=Vl;var h=Kf.exports,ts={},od={exports:{}},Je={},sd={exports:{}},ad={};/**
|
|
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(O,M){var k=O.length;O.push(M);e:for(;0<k;){var q=k-1>>>1,Z=O[q];if(0<i(Z,M))O[q]=M,O[k]=Z,k=q;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var M=O[0],k=O.pop();if(k!==M){O[0]=k;e:for(var q=0,Z=O.length,w=Z>>>1;q<w;){var ve=2*(q+1)-1,st=O[ve],ie=ve+1,yt=O[ie];if(0>i(st,k))ie<Z&&0>i(yt,st)?(O[q]=yt,O[ie]=k,q=ie):(O[q]=st,O[ve]=k,q=ve);else if(ie<Z&&0>i(yt,k))O[q]=yt,O[ie]=k,q=ie;else break e}}return M}function i(O,M){var k=O.sortIndex-M.sortIndex;return k!==0?k:O.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 a=[],u=[],f=1,c=null,d=3,p=!1,g=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,m=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(O){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=O)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function P(O){if(v=!1,x(O),!g)if(n(a)!==null)g=!0,pe(T);else{var M=n(u);M!==null&&ue(P,M.startTime-O)}}function T(O,M){g=!1,v&&(v=!1,m(I),I=-1),p=!0;var k=d;try{for(x(M),c=n(a);c!==null&&(!(c.expirationTime>M)||O&&!z());){var q=c.callback;if(typeof q=="function"){c.callback=null,d=c.priorityLevel;var Z=q(c.expirationTime<=M);M=e.unstable_now(),typeof Z=="function"?c.callback=Z:c===n(a)&&r(a),x(M)}else r(a);c=n(a)}if(c!==null)var w=!0;else{var ve=n(u);ve!==null&&ue(P,ve.startTime-M),w=!1}return w}finally{c=null,d=k,p=!1}}var C=!1,N=null,I=-1,b=5,S=-1;function z(){return!(e.unstable_now()-S<b)}function D(){if(N!==null){var O=e.unstable_now();S=O;var M=!0;try{M=N(!0,O)}finally{M?W():(C=!1,N=null)}}else C=!1}var W;if(typeof y=="function")W=function(){y(D)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Q=G.port2;G.port1.onmessage=D,W=function(){Q.postMessage(null)}}else W=function(){E(D,0)};function pe(O){N=O,C||(C=!0,W())}function ue(O,M){I=E(function(){O(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(O){O.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,pe(T))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var k=d;d=M;try{return O()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,M){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var k=d;d=O;try{return M()}finally{d=k}},e.unstable_scheduleCallback=function(O,M,k){var q=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?q+k:q):k=q,O){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=k+Z,O={id:f++,callback:M,priorityLevel:O,startTime:k,expirationTime:Z,sortIndex:-1},k>q?(O.sortIndex=k,t(u,O),n(a)===null&&O===n(u)&&(v?(m(I),I=-1):v=!0,ue(P,k-q))):(O.sortIndex=Z,t(a,O),g||p||(g=!0,pe(T))),O},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(O){var M=d;return function(){var k=d;d=M;try{return O.apply(this,arguments)}finally{d=k}}}})(ad);sd.exports=ad;var tg=sd.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,Gr={};function In(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Gr[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"),ns=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]*$/,zu={},Au={};function ig(e){return ns.call(Au,e)?!0:ns.call(zu,e)?!1:rg.test(e)?Au[e]=!0:(zu[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 ha=/[\-:]([a-z])/g;function ma(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(ha,ma);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(ha,ma);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(ha,ma);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 ga(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,Ii=Symbol.for("react.element"),Un=Symbol.for("react.portal"),$n=Symbol.for("react.fragment"),ya=Symbol.for("react.strict_mode"),rs=Symbol.for("react.profiler"),cd=Symbol.for("react.provider"),fd=Symbol.for("react.context"),xa=Symbol.for("react.forward_ref"),is=Symbol.for("react.suspense"),ls=Symbol.for("react.suspense_list"),va=Symbol.for("react.memo"),Ut=Symbol.for("react.lazy"),dd=Symbol.for("react.offscreen"),Ou=Symbol.iterator;function Cr(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,ho;function Rr(e){if(ho===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ho=t&&t[1]||""}return`
|
|
34
|
-
`+ho+e}var mo=!1;function go(e,t){if(!e||mo)return"";mo=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.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 a=`
|
|
37
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rr(e):""}function sg(e){switch(e.tag){case 5:return Rr(e.type);case 16:return Rr("Lazy");case 13:return Rr("Suspense");case 19:return Rr("SuspenseList");case 0:case 2:case 15:return e=go(e.type,!1),e;case 11:return e=go(e.type.render,!1),e;case 1:return e=go(e.type,!0),e;default:return""}}function os(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 $n:return"Fragment";case Un:return"Portal";case rs:return"Profiler";case ya:return"StrictMode";case is:return"Suspense";case ls:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fd:return(e.displayName||"Context")+".Consumer";case cd:return(e._context.displayName||"Context")+".Provider";case xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case va:return t=e.displayName||null,t!==null?t:os(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return os(e(t))}catch{}}return null}function ag(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 os(t);case 8:return t===ya?"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 pd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ug(e){var t=pd(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 _i(e){e._valueTracker||(e._valueTracker=ug(e))}function hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(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 ss(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Du(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 md(e,t){t=t.checked,t!=null&&ga(e,"checked",t,!1)}function as(e,t){md(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 Fu(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"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=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 cs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mu(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(zr(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 gd(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 Bu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yd(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 fs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Li,xd=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(Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mr={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(Mr).forEach(function(e){cg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mr[t]=Mr[e]})});function vd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mr.hasOwnProperty(e)&&Mr[e]?(""+t).trim():t+"px"}function kd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vd(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 ds(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 ps(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 hs=null;function ka(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ms=null,er=null,tr=null;function Uu(e){if(e=wi(e)){if(typeof ms!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Kl(t),ms(e.stateNode,e.type,t))}}function wd(e){er?tr?tr.push(e):tr=[e]:er=e}function Sd(){if(er){var e=er,t=tr;if(tr=er=null,Uu(e),t)for(e=0;e<t.length;e++)Uu(t[e])}}function Cd(e,t){return e(t)}function Ed(){}var yo=!1;function Nd(e,t,n){if(yo)return e(t,n);yo=!0;try{return Cd(e,t,n)}finally{yo=!1,(er!==null||tr!==null)&&(Ed(),Sd())}}function Zr(e,t){var n=e.stateNode;if(n===null)return null;var r=Kl(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 gs=!1;if(Lt)try{var Er={};Object.defineProperty(Er,"passive",{get:function(){gs=!0}}),window.addEventListener("test",Er,Er),window.removeEventListener("test",Er,Er)}catch{gs=!1}function dg(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Br=!1,ml=null,gl=!1,ys=null,pg={onError:function(e){Br=!0,ml=e}};function hg(e,t,n,r,i,l,o,s,a){Br=!1,ml=null,dg.apply(pg,arguments)}function mg(e,t,n,r,i,l,o,s,a){if(hg.apply(this,arguments),Br){if(Br){var u=ml;Br=!1,ml=null}else throw Error(L(198));gl||(gl=!0,ys=u)}}function _n(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 bd(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 $u(e){if(_n(e)!==e)throw Error(L(188))}function gg(e){var t=e.alternate;if(!t){if(t=_n(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 $u(i),e;if(l===r)return $u(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 Pd(e){return e=gg(e),e!==null?jd(e):null}function jd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jd(e);if(t!==null)return t;e=e.sibling}return null}var Td=Ge.unstable_scheduleCallback,Vu=Ge.unstable_cancelCallback,yg=Ge.unstable_shouldYield,xg=Ge.unstable_requestPaint,me=Ge.unstable_now,vg=Ge.unstable_getCurrentPriorityLevel,wa=Ge.unstable_ImmediatePriority,Id=Ge.unstable_UserBlockingPriority,yl=Ge.unstable_NormalPriority,kg=Ge.unstable_LowPriority,_d=Ge.unstable_IdlePriority,Hl=null,St=null;function wg(e){if(St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Hl,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 Ri=64,zi=4194304;function Ar(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 xl(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=Ar(s):(l&=o,l!==0&&(r=Ar(l)))}else o=n&~i,o!==0?r=Ar(o):l!==0&&(r=Ar(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,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Ng(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function xs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ld(){var e=Ri;return Ri<<=1,!(Ri&4194240)&&(Ri=64),e}function xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vi(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 Sa(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 J=0;function Rd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zd,Ca,Ad,Od,Dd,vs=!1,Ai=[],Kt=null,Yt=null,Xt=null,ei=new Map,ti=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 Hu(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":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function Nr(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=wi(t),t!==null&&Ca(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=Nr(Kt,e,t,n,r,i),!0;case"dragenter":return Yt=Nr(Yt,e,t,n,r,i),!0;case"mouseover":return Xt=Nr(Xt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ei.set(l,Nr(ei.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ti.set(l,Nr(ti.get(l)||null,e,t,n,r,i)),!0}return!1}function Fd(e){var t=vn(e.target);if(t!==null){var n=_n(t);if(n!==null){if(t=n.tag,t===13){if(t=bd(n),t!==null){e.blockedOn=t,Dd(e.priority,function(){Ad(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 Zi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ks(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hs=r,n.target.dispatchEvent(r),hs=null}else return t=wi(n),t!==null&&Ca(t),e.blockedOn=n,!1;t.shift()}return!0}function Wu(e,t,n){Zi(e)&&n.delete(t)}function Ig(){vs=!1,Kt!==null&&Zi(Kt)&&(Kt=null),Yt!==null&&Zi(Yt)&&(Yt=null),Xt!==null&&Zi(Xt)&&(Xt=null),ei.forEach(Wu),ti.forEach(Wu)}function br(e,t){e.blockedOn===t&&(e.blockedOn=null,vs||(vs=!0,Ge.unstable_scheduleCallback(Ge.unstable_NormalPriority,Ig)))}function ni(e){function t(i){return br(i,e)}if(0<Ai.length){br(Ai[0],e);for(var n=1;n<Ai.length;n++){var r=Ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kt!==null&&br(Kt,e),Yt!==null&&br(Yt,e),Xt!==null&&br(Xt,e),ei.forEach(t),ti.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);)Fd(n),n.blockedOn===null&&Vt.shift()}var nr=Ot.ReactCurrentBatchConfig,vl=!0;function _g(e,t,n,r){var i=J,l=nr.transition;nr.transition=null;try{J=1,Ea(e,t,n,r)}finally{J=i,nr.transition=l}}function Lg(e,t,n,r){var i=J,l=nr.transition;nr.transition=null;try{J=4,Ea(e,t,n,r)}finally{J=i,nr.transition=l}}function Ea(e,t,n,r){if(vl){var i=ks(e,t,n,r);if(i===null)jo(e,t,r,kl,n),Hu(e,r);else if(Tg(i,e,t,n,r))r.stopPropagation();else if(Hu(e,r),t&4&&-1<jg.indexOf(e)){for(;i!==null;){var l=wi(i);if(l!==null&&zd(l),l=ks(e,t,n,r),l===null&&jo(e,t,r,kl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else jo(e,t,r,null,n)}}var kl=null;function ks(e,t,n,r){if(kl=null,e=ka(r),e=vn(e),e!==null)if(t=_n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bd(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 kl=e,null}function Md(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 wa:return 1;case Id:return 4;case yl:case kg:return 16;case _d:return 536870912;default:return 16}default:return 16}}var Wt=null,Na=null,el=null;function Bd(){if(el)return el;var e,t=Na,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 el=i.slice(e,1<r?1-r:void 0)}function tl(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 Oi(){return!0}function Qu(){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)?Oi:Qu,this.isPropagationStopped=Qu,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=Oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ba=Ze(mr),ki=de({},mr,{view:0,detail:0}),Rg=Ze(ki),vo,ko,Pr,Wl=de({},ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(vo=e.screenX-Pr.screenX,ko=e.screenY-Pr.screenY):ko=vo=0,Pr=e),vo)},movementY:function(e){return"movementY"in e?e.movementY:ko}}),qu=Ze(Wl),zg=de({},Wl,{dataTransfer:0}),Ag=Ze(zg),Og=de({},ki,{relatedTarget:0}),wo=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}),Ku=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 Pa(){return Wg}var Qg=de({},ki,{key:function(e){if(e.key){var t=$g[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tl(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:Pa,charCode:function(e){return e.type==="keypress"?tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qg=Ze(Qg),Kg=de({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yu=Ze(Kg),Yg=de({},ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pa}),Xg=Ze(Yg),Gg=de({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jg=Ze(Gg),Zg=de({},Wl,{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],ja=Lt&&"CompositionEvent"in window,Ur=null;Lt&&"documentMode"in document&&(Ur=document.documentMode);var ny=Lt&&"TextEvent"in window&&!Ur,Ud=Lt&&(!ja||Ur&&8<Ur&&11>=Ur),Xu=" ",Gu=!1;function $d(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 Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function ry(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Gu=!0,Xu);case"textInput":return e=t.data,e===Xu&&Gu?null:e;default:return null}}function iy(e,t){if(Vn)return e==="compositionend"||!ja&&$d(e,t)?(e=Bd(),el=Na=Wt=null,Vn=!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 Ud&&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 Ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ly[e.type]:t==="textarea"}function Hd(e,t,n,r){wd(r),t=wl(t,"onChange"),0<t.length&&(n=new ba("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $r=null,ri=null;function oy(e){tp(e,0)}function Ql(e){var t=Qn(e);if(hd(t))return e}function sy(e,t){if(e==="change")return t}var Wd=!1;if(Lt){var So;if(Lt){var Co="oninput"in document;if(!Co){var Zu=document.createElement("div");Zu.setAttribute("oninput","return;"),Co=typeof Zu.oninput=="function"}So=Co}else So=!1;Wd=So&&(!document.documentMode||9<document.documentMode)}function ec(){$r&&($r.detachEvent("onpropertychange",Qd),ri=$r=null)}function Qd(e){if(e.propertyName==="value"&&Ql(ri)){var t=[];Hd(t,ri,e,ka(e)),Nd(oy,t)}}function ay(e,t,n){e==="focusin"?(ec(),$r=t,ri=n,$r.attachEvent("onpropertychange",Qd)):e==="focusout"&&ec()}function uy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(ri)}function cy(e,t){if(e==="click")return Ql(t)}function fy(e,t){if(e==="input"||e==="change")return Ql(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 ii(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(!ns.call(t,i)||!gt(e[i],t[i]))return!1}return!0}function tc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nc(e,t){var n=tc(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=tc(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 Kd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function Ta(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=Kd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qd(n.ownerDocument.documentElement,n)){if(r!==null&&Ta(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=nc(n,l);var o=nc(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,Hn=null,ws=null,Vr=null,Ss=!1;function rc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ss||Hn==null||Hn!==hl(r)||(r=Hn,"selectionStart"in r&&Ta(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}),Vr&&ii(Vr,r)||(Vr=r,r=wl(ws,"onSelect"),0<r.length&&(t=new ba("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hn)))}function Di(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionend:Di("Transition","TransitionEnd")},Eo={},Yd={};Lt&&(Yd=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function ql(e){if(Eo[e])return Eo[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yd)return Eo[e]=t[n];return e}var Xd=ql("animationend"),Gd=ql("animationiteration"),Jd=ql("animationstart"),Zd=ql("transitionend"),ep=new Map,ic="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){ep.set(e,t),In(t,[e])}for(var No=0;No<ic.length;No++){var bo=ic[No],my=bo.toLowerCase(),gy=bo[0].toUpperCase()+bo.slice(1);sn(my,"on"+gy)}sn(Xd,"onAnimationEnd");sn(Gd,"onAnimationIteration");sn(Jd,"onAnimationStart");sn("dblclick","onDoubleClick");sn("focusin","onFocus");sn("focusout","onBlur");sn(Zd,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));In("onBeforeInput",["compositionend","keypress","textInput","paste"]);In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(Or));function lc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mg(r,t,void 0,e),e.currentTarget=null}function tp(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],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;lc(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;lc(i,s,u),l=a}}}if(gl)throw e=ys,gl=!1,ys=null,e}function le(e,t){var n=t[Ps];n===void 0&&(n=t[Ps]=new Set);var r=e+"__bubble";n.has(r)||(np(t,e,2,!1),n.add(r))}function Po(e,t,n){var r=0;t&&(r|=4),np(n,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function li(e){if(!e[Fi]){e[Fi]=!0,ud.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Po(n,!1,e),Po(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,Po("selectionchange",!1,t))}}function np(e,t,n,r){switch(Md(t)){case 1:var i=_g;break;case 4:i=Lg;break;default:i=Ea}n=i.bind(null,t,n,e),i=void 0,!gs||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 jo(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 a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=vn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Nd(function(){var u=l,f=ka(n),c=[];e:{var d=ep.get(e);if(d!==void 0){var p=ba,g=e;switch(e){case"keypress":if(tl(n)===0)break e;case"keydown":case"keyup":p=qg;break;case"focusin":g="focus",p=wo;break;case"focusout":g="blur",p=wo;break;case"beforeblur":case"afterblur":p=wo;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=qu;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 Xd:case Gd:case Jd:p=Fg;break;case Zd: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=Yu}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var y=u,x;y!==null;){x=y;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,m!==null&&(P=Zr(y,m),P!=null&&v.push(oi(y,P,x)))),E)break;y=y.return}0<v.length&&(d=new p(d,g,null,n,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==hs&&(g=n.relatedTarget||n.fromElement)&&(vn(g)||g[Rt]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=u,g=g?vn(g):null,g!==null&&(E=_n(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=u),p!==g)){if(v=qu,P="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Yu,P="onPointerLeave",m="onPointerEnter",y="pointer"),E=p==null?d:Qn(p),x=g==null?d:Qn(g),d=new v(P,y+"leave",p,n,f),d.target=E,d.relatedTarget=x,P=null,vn(f)===u&&(v=new v(m,y+"enter",g,n,f),v.target=x,v.relatedTarget=E,P=v),E=P,p&&g)t:{for(v=p,m=g,y=0,x=v;x;x=Dn(x))y++;for(x=0,P=m;P;P=Dn(P))x++;for(;0<y-x;)v=Dn(v),y--;for(;0<x-y;)m=Dn(m),x--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Dn(v),m=Dn(m)}v=null}else v=null;p!==null&&oc(c,d,p,v,!1),g!==null&&E!==null&&oc(c,E,g,v,!0)}}e:{if(d=u?Qn(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var T=sy;else if(Ju(d))if(Wd)T=fy;else{T=uy;var C=ay}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(T=cy);if(T&&(T=T(e,u))){Hd(c,T,n,f);break e}C&&C(e,d,u),e==="focusout"&&(C=d._wrapperState)&&C.controlled&&d.type==="number"&&us(d,"number",d.value)}switch(C=u?Qn(u):window,e){case"focusin":(Ju(C)||C.contentEditable==="true")&&(Hn=C,ws=u,Vr=null);break;case"focusout":Vr=ws=Hn=null;break;case"mousedown":Ss=!0;break;case"contextmenu":case"mouseup":case"dragend":Ss=!1,rc(c,n,f);break;case"selectionchange":if(hy)break;case"keydown":case"keyup":rc(c,n,f)}var N;if(ja)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else Vn?$d(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Ud&&n.locale!=="ko"&&(Vn||I!=="onCompositionStart"?I==="onCompositionEnd"&&Vn&&(N=Bd()):(Wt=f,Na="value"in Wt?Wt.value:Wt.textContent,Vn=!0)),C=wl(u,I),0<C.length&&(I=new Ku(I,e,null,n,f),c.push({event:I,listeners:C}),N?I.data=N:(N=Vd(n),N!==null&&(I.data=N)))),(N=ny?ry(e,n):iy(e,n))&&(u=wl(u,"onBeforeInput"),0<u.length&&(f=new Ku("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=N))}tp(c,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=Zr(e,n),l!=null&&r.unshift(oi(e,l,i)),l=Zr(e,t),l!=null&&r.push(oi(e,l,i))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oc(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=Zr(n,l),a!=null&&o.unshift(oi(n,a,s))):i||(a=Zr(n,l),a!=null&&o.push(oi(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var xy=/\r\n?/g,vy=/\u0000|\uFFFD/g;function sc(e){return(typeof e=="string"?e:""+e).replace(xy,`
|
|
38
|
-
`).replace(vy,"")}function Mi(e,t,n){if(t=sc(t),sc(e)!==t&&n)throw Error(L(425))}function Sl(){}var Cs=null,Es=null;function Ns(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 bs=typeof setTimeout=="function"?setTimeout:void 0,ky=typeof clearTimeout=="function"?clearTimeout:void 0,ac=typeof Promise=="function"?Promise:void 0,wy=typeof queueMicrotask=="function"?queueMicrotask:typeof ac<"u"?function(e){return ac.resolve(null).then(e).catch(Sy)}:bs;function Sy(e){setTimeout(function(){throw e})}function To(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),ni(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ni(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,si="__reactProps$"+gr,Rt="__reactContainer$"+gr,Ps="__reactEvents$"+gr,Cy="__reactListeners$"+gr,Ey="__reactHandles$"+gr;function vn(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 wi(e){return e=e[wt]||e[Rt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Kl(e){return e[si]||null}var js=[],qn=-1;function an(e){return{current:e}}function oe(e){0>qn||(e.current=js[qn],js[qn]=null,qn--)}function re(e,t){qn++,js[qn]=e.current,e.current=t}var on={},_e=an(on),Ue=an(!1),En=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 Cl(){oe(Ue),oe(_e)}function cc(e,t,n){if(_e.current!==on)throw Error(L(168));re(_e,t),re(Ue,n)}function rp(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,ag(e)||"Unknown",i));return de({},n,r)}function El(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,En=_e.current,re(_e,e),re(Ue,Ue.current),!0}function fc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=rp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,oe(Ue),oe(_e),re(_e,e)):oe(Ue),re(Ue,n)}var jt=null,Yl=!1,Io=!1;function ip(e){jt===null?jt=[e]:jt.push(e)}function Ny(e){Yl=!0,ip(e)}function un(){if(!Io&&jt!==null){Io=!0;var e=0,t=J;try{var n=jt;for(J=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,Yl=!1}catch(i){throw jt!==null&&(jt=jt.slice(e+1)),Td(wa,un),i}finally{J=t,Io=!1}}return null}var Kn=[],Yn=0,Nl=null,bl=0,et=[],tt=0,Nn=null,Tt=1,It="";function hn(e,t){Kn[Yn++]=bl,Kn[Yn++]=Nl,Nl=e,bl=t}function lp(e,t,n){et[tt++]=Tt,et[tt++]=It,et[tt++]=Nn,Nn=e;var r=Tt;e=It;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,It=l+e}else Tt=1<<l|n<<i|r,It=e}function Ia(e){e.return!==null&&(hn(e,1),lp(e,1,0))}function _a(e){for(;e===Nl;)Nl=Kn[--Yn],Kn[Yn]=null,bl=Kn[--Yn],Kn[Yn]=null;for(;e===Nn;)Nn=et[--tt],et[tt]=null,It=et[--tt],et[tt]=null,Tt=et[--tt],et[tt]=null}var Ye=null,Ke=null,ae=!1,dt=null;function op(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 dc(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=Nn!==null?{id:Tt,overflow:It}: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 Ts(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Is(e){if(ae){var t=Ke;if(t){var n=t;if(!dc(e,t)){if(Ts(e))throw Error(L(418));t=Gt(n.nextSibling);var r=Ye;t&&dc(e,t)?op(r,n):(e.flags=e.flags&-4097|2,ae=!1,Ye=e)}}else{if(Ts(e))throw Error(L(418));e.flags=e.flags&-4097|2,ae=!1,Ye=e}}}function pc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Bi(e){if(e!==Ye)return!1;if(!ae)return pc(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ns(e.type,e.memoizedProps)),t&&(t=Ke)){if(Ts(e))throw sp(),Error(L(418));for(;t;)op(e,t),t=Gt(t.nextSibling)}if(pc(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 sp(){for(var e=Ke;e;)e=Gt(e.nextSibling)}function ar(){Ke=Ye=null,ae=!1}function La(e){dt===null?dt=[e]:dt.push(e)}var by=Ot.ReactCurrentBatchConfig;function jr(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 Ui(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hc(e){var t=e._init;return t(e._payload)}function ap(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=tn(m,y),m.index=0,m.sibling=null,m}function l(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=2,y):x):(m.flags|=2,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,x,P){return y===null||y.tag!==6?(y=Do(x,m.mode,P),y.return=m,y):(y=i(y,x),y.return=m,y)}function a(m,y,x,P){var T=x.type;return T===$n?f(m,y,x.props.children,P,x.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ut&&hc(T)===y.type)?(P=i(y,x.props),P.ref=jr(m,y,x),P.return=m,P):(P=al(x.type,x.key,x.props,null,m.mode,P),P.ref=jr(m,y,x),P.return=m,P)}function u(m,y,x,P){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Fo(x,m.mode,P),y.return=m,y):(y=i(y,x.children||[]),y.return=m,y)}function f(m,y,x,P,T){return y===null||y.tag!==7?(y=Cn(x,m.mode,P,T),y.return=m,y):(y=i(y,x),y.return=m,y)}function c(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Do(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ii:return x=al(y.type,y.key,y.props,null,m.mode,x),x.ref=jr(m,null,y),x.return=m,x;case Un:return y=Fo(y,m.mode,x),y.return=m,y;case Ut:var P=y._init;return c(m,P(y._payload),x)}if(zr(y)||Cr(y))return y=Cn(y,m.mode,x,null),y.return=m,y;Ui(m,y)}return null}function d(m,y,x,P){var T=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return T!==null?null:s(m,y,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ii:return x.key===T?a(m,y,x,P):null;case Un:return x.key===T?u(m,y,x,P):null;case Ut:return T=x._init,d(m,y,T(x._payload),P)}if(zr(x)||Cr(x))return T!==null?null:f(m,y,x,P,null);Ui(m,x)}return null}function p(m,y,x,P,T){if(typeof P=="string"&&P!==""||typeof P=="number")return m=m.get(x)||null,s(y,m,""+P,T);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Ii:return m=m.get(P.key===null?x:P.key)||null,a(y,m,P,T);case Un:return m=m.get(P.key===null?x:P.key)||null,u(y,m,P,T);case Ut:var C=P._init;return p(m,y,x,C(P._payload),T)}if(zr(P)||Cr(P))return m=m.get(x)||null,f(y,m,P,T,null);Ui(y,P)}return null}function g(m,y,x,P){for(var T=null,C=null,N=y,I=y=0,b=null;N!==null&&I<x.length;I++){N.index>I?(b=N,N=null):b=N.sibling;var S=d(m,N,x[I],P);if(S===null){N===null&&(N=b);break}e&&N&&S.alternate===null&&t(m,N),y=l(S,y,I),C===null?T=S:C.sibling=S,C=S,N=b}if(I===x.length)return n(m,N),ae&&hn(m,I),T;if(N===null){for(;I<x.length;I++)N=c(m,x[I],P),N!==null&&(y=l(N,y,I),C===null?T=N:C.sibling=N,C=N);return ae&&hn(m,I),T}for(N=r(m,N);I<x.length;I++)b=p(N,m,I,x[I],P),b!==null&&(e&&b.alternate!==null&&N.delete(b.key===null?I:b.key),y=l(b,y,I),C===null?T=b:C.sibling=b,C=b);return e&&N.forEach(function(z){return t(m,z)}),ae&&hn(m,I),T}function v(m,y,x,P){var T=Cr(x);if(typeof T!="function")throw Error(L(150));if(x=T.call(x),x==null)throw Error(L(151));for(var C=T=null,N=y,I=y=0,b=null,S=x.next();N!==null&&!S.done;I++,S=x.next()){N.index>I?(b=N,N=null):b=N.sibling;var z=d(m,N,S.value,P);if(z===null){N===null&&(N=b);break}e&&N&&z.alternate===null&&t(m,N),y=l(z,y,I),C===null?T=z:C.sibling=z,C=z,N=b}if(S.done)return n(m,N),ae&&hn(m,I),T;if(N===null){for(;!S.done;I++,S=x.next())S=c(m,S.value,P),S!==null&&(y=l(S,y,I),C===null?T=S:C.sibling=S,C=S);return ae&&hn(m,I),T}for(N=r(m,N);!S.done;I++,S=x.next())S=p(N,m,I,S.value,P),S!==null&&(e&&S.alternate!==null&&N.delete(S.key===null?I:S.key),y=l(S,y,I),C===null?T=S:C.sibling=S,C=S);return e&&N.forEach(function(D){return t(m,D)}),ae&&hn(m,I),T}function E(m,y,x,P){if(typeof x=="object"&&x!==null&&x.type===$n&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ii:e:{for(var T=x.key,C=y;C!==null;){if(C.key===T){if(T=x.type,T===$n){if(C.tag===7){n(m,C.sibling),y=i(C,x.props.children),y.return=m,m=y;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ut&&hc(T)===C.type){n(m,C.sibling),y=i(C,x.props),y.ref=jr(m,C,x),y.return=m,m=y;break e}n(m,C);break}else t(m,C);C=C.sibling}x.type===$n?(y=Cn(x.props.children,m.mode,P,x.key),y.return=m,m=y):(P=al(x.type,x.key,x.props,null,m.mode,P),P.ref=jr(m,y,x),P.return=m,m=P)}return o(m);case Un:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=Fo(x,m.mode,P),y.return=m,m=y}return o(m);case Ut:return C=x._init,E(m,y,C(x._payload),P)}if(zr(x))return g(m,y,x,P);if(Cr(x))return v(m,y,x,P);Ui(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,x),y.return=m,m=y):(n(m,y),y=Do(x,m.mode,P),y.return=m,m=y),o(m)):n(m,y)}return E}var ur=ap(!0),up=ap(!1),Pl=an(null),jl=null,Xn=null,Ra=null;function za(){Ra=Xn=jl=null}function Aa(e){var t=Pl.current;oe(Pl),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){jl=e,Ra=Xn=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(Ra!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(jl===null)throw Error(L(308));Xn=e,jl.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var kn=null;function Oa(e){kn===null?kn=[e]:kn.push(e)}function cp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Oa(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 Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fp(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 _t(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,Oa(r)):(t.next=i.next,i.next=t),r.interleaved=t,zt(e,n)}function nl(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,Sa(e,n)}}function mc(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 Tl(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 a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;o=0,f=u=a=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 g=e,v=s;switch(d=t,p=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){c=g.call(p,c,d);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(p,c,d):g,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?(u=f=p,a=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&&(a=c),i.baseState=a,i.firstBaseUpdate=u,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);Pn|=o,e.lanes=o,e.memoizedState=c}}function gc(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 Si={},Ct=an(Si),ai=an(Si),ui=an(Si);function wn(e){if(e===Si)throw Error(L(174));return e}function Fa(e,t){switch(re(ui,t),re(ai,e),re(Ct,Si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fs(t,e)}oe(Ct),re(Ct,t)}function cr(){oe(Ct),oe(ai),oe(ui)}function dp(e){wn(ui.current);var t=wn(Ct.current),n=fs(t,e.type);t!==n&&(re(ai,e),re(Ct,n))}function Ma(e){ai.current===e&&(oe(Ct),oe(ai))}var ce=an(0);function Il(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 _o=[];function Ba(){for(var e=0;e<_o.length;e++)_o[e]._workInProgressVersionPrimary=null;_o.length=0}var rl=Ot.ReactCurrentDispatcher,Lo=Ot.ReactCurrentBatchConfig,bn=0,fe=null,ke=null,Se=null,_l=!1,Hr=!1,ci=0,Py=0;function Pe(){throw Error(L(321))}function Ua(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 $a(e,t,n,r,i,l){if(bn=l,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rl.current=e===null||e.memoizedState===null?_y:Ly,e=n(r,i),Hr){l=0;do{if(Hr=!1,ci=0,25<=l)throw Error(L(301));l+=1,Se=ke=null,t.updateQueue=null,rl.current=Ry,e=n(r,i)}while(Hr)}if(rl.current=Ll,t=ke!==null&&ke.next!==null,bn=0,Se=ke=fe=null,_l=!1,t)throw Error(L(300));return e}function Va(){var e=ci!==0;return ci=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 fi(e,t){return typeof t=="function"?t(e):t}function Ro(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,a=null,u=l;do{var f=u.lane;if((bn&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=c,o=r):a=a.next=c,fe.lanes|=f,Pn|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,gt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,fe.lanes|=l,Pn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(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 pp(){}function hp(e,t){var n=fe,r=ot(),i=t(),l=!gt(r.memoizedState,i);if(l&&(r.memoizedState=i,Be=!0),r=r.queue,Ha(yp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,di(9,gp.bind(null,n,r,i,t),void 0,null),Ce===null)throw Error(L(349));bn&30||mp(n,t,i)}return i}function mp(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 gp(e,t,n,r){t.value=n,t.getSnapshot=r,xp(t)&&vp(e)}function yp(e,t,n){return n(function(){xp(t)&&vp(e)})}function xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function vp(e){var t=zt(e,1);t!==null&&ht(t,e,1,-1)}function yc(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:fi,lastRenderedState:e},t.queue=e,e=e.dispatch=Iy.bind(null,fe,e),[t.memoizedState,e]}function di(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 kp(){return ot().memoizedState}function il(e,t,n,r){var i=vt();fe.flags|=e,i.memoizedState=di(1|t,n,void 0,r===void 0?null:r)}function Xl(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&&Ua(r,o.deps)){i.memoizedState=di(t,n,l,r);return}}fe.flags|=e,i.memoizedState=di(1|t,n,l,r)}function xc(e,t){return il(8390656,8,e,t)}function Ha(e,t){return Xl(2048,8,e,t)}function wp(e,t){return Xl(4,2,e,t)}function Sp(e,t){return Xl(4,4,e,t)}function Cp(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 Ep(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,Cp.bind(null,t,e),n)}function Wa(){}function Np(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ua(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bp(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ua(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pp(e,t,n){return bn&21?(gt(n,t)||(n=Ld(),fe.lanes|=n,Pn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function jy(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{J=n,Lo.transition=r}}function jp(){return ot().memoizedState}function Ty(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tp(e))Ip(t,n);else if(n=cp(e,t,n,r),n!==null){var i=Ae();ht(n,e,r,i),_p(n,t,r)}}function Iy(e,t,n){var r=en(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tp(e))Ip(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 a=t.interleaved;a===null?(i.next=i,Oa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=cp(e,t,i,r),n!==null&&(i=Ae(),ht(n,e,r,i),_p(n,t,r))}}function Tp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Ip(e,t){Hr=_l=!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,Sa(e,n)}}var Ll={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},_y={readContext:lt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:xc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,Cp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(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:yc,useDebugValue:Wa,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=yc(!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(ae){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ce===null)throw Error(L(349));bn&30||mp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,xc(yp.bind(null,r,l,e),[e]),r.flags|=2048,di(9,gp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ce.identifierPrefix;if(ae){var n=It,r=Tt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ci++,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:Np,useContext:lt,useEffect:Ha,useImperativeHandle:Ep,useInsertionEffect:wp,useLayoutEffect:Sp,useMemo:bp,useReducer:Ro,useRef:kp,useState:function(){return Ro(fi)},useDebugValue:Wa,useDeferredValue:function(e){var t=ot();return Pp(t,ke.memoizedState,e)},useTransition:function(){var e=Ro(fi)[0],t=ot().memoizedState;return[e,t]},useMutableSource:pp,useSyncExternalStore:hp,useId:jp,unstable_isNewReconciler:!1},Ry={readContext:lt,useCallback:Np,useContext:lt,useEffect:Ha,useImperativeHandle:Ep,useInsertionEffect:wp,useLayoutEffect:Sp,useMemo:bp,useReducer:zo,useRef:kp,useState:function(){return zo(fi)},useDebugValue:Wa,useDeferredValue:function(e){var t=ot();return ke===null?t.memoizedState=e:Pp(t,ke.memoizedState,e)},useTransition:function(){var e=zo(fi)[0],t=ot().memoizedState;return[e,t]},useMutableSource:pp,useSyncExternalStore:hp,useId:jp,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 Ls(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 Gl={isMounted:function(e){return(e=e._reactInternals)?_n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=en(e),l=_t(r,i);l.payload=t,n!=null&&(l.callback=n),t=Jt(e,l,i),t!==null&&(ht(t,e,i,r),nl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=en(e),l=_t(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),nl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=en(e),i=_t(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jt(e,i,r),t!==null&&(ht(t,e,r,n),nl(t,e,r))}};function vc(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?!ii(n,r)||!ii(i,l):!0}function Lp(e,t,n){var r=!1,i=on,l=t.contextType;return typeof l=="object"&&l!==null?l=lt(l):(i=$e(t)?En:_e.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=Gl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function kc(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&&Gl.enqueueReplaceState(t,t.state,null)}function Rs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Da(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=lt(l):(l=$e(t)?En:_e.current,i.context=sr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ls(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&&Gl.enqueueReplaceState(i,i.state,null),Tl(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 Ao(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zy=typeof WeakMap=="function"?WeakMap:Map;function Rp(e,t,n){n=_t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zl||(zl=!0,Hs=r),zs(e,t)},n}function zp(e,t,n){n=_t(-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(){zs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){zs(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 wc(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 Sc(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 Cc(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=_t(-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):ur(t,e.child,n,r)}function Ec(e,t,n,r,i){n=n.render;var l=t.ref;return rr(t,i),r=$a(e,t,n,r,l,i),n=Va(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(ae&&n&&Ia(t),t.flags|=1,Re(e,t,r,i),t.child)}function Nc(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Za(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Ap(e,t,l,r,i)):(e=al(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:ii,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 Ap(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ii(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 As(e,t,n,r,i)}function Op(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(Jn,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(Jn,qe),qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,re(Jn,qe),qe|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,re(Jn,qe),qe|=r;return Re(e,t,i,n),t.child}function Dp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,i){var l=$e(n)?En:_e.current;return l=sr(t,l),rr(t,i),n=$a(e,t,n,r,l,i),r=Va(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,At(e,t,i)):(ae&&r&&Ia(t),t.flags|=1,Re(e,t,n,i),t.child)}function bc(e,t,n,r,i){if($e(n)){var l=!0;El(t)}else l=!1;if(rr(t,i),t.stateNode===null)ll(e,t),Lp(t,n,r),Rs(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=lt(u):(u=$e(n)?En:_e.current,u=sr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&kc(t,o,r,u),$t=!1;var d=t.memoizedState;o.state=d,Tl(t,r,o,i),a=t.memoizedState,s!==r||d!==a||Ue.current||$t?(typeof f=="function"&&(Ls(t,n,f,r),a=t.memoizedState),(s=$t||vc(t,n,s,r,d,a,u))?(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=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,fp(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ct(t.type,s),o.props=u,c=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=lt(a):(a=$e(n)?En:_e.current,a=sr(t,a));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==a)&&kc(t,o,r,a),$t=!1,d=t.memoizedState,o.state=d,Tl(t,r,o,i);var g=t.memoizedState;s!==c||d!==g||Ue.current||$t?(typeof p=="function"&&(Ls(t,n,p,r),g=t.memoizedState),(u=$t||vc(t,n,u,r,d,g,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,a)),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=g),o.props=r,o.state=g,o.context=a,r=u):(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 Os(e,t,n,r,l,i)}function Os(e,t,n,r,i,l){Dp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&fc(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=ur(t,e.child,null,l),t.child=ur(t,null,s,l)):Re(e,t,s,l),t.memoizedState=r.state,i&&fc(t,n,!0),t.child}function Fp(e){var t=e.stateNode;t.pendingContext?cc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cc(e,t.context,!1),Fa(e,t.containerInfo)}function Pc(e,t,n,r,i){return ar(),La(i),t.flags|=256,Re(e,t,n,r),t.child}var Ds={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mp(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 Is(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=eo(o,r,0,null),e=Cn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fs(n),t.memoizedState=Ds,e):Qa(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 a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=tn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=tn(s,l):(l=Cn(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?Fs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ds,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 Qa(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $i(e,t,n,r){return r!==null&&La(r),ur(t,e.child,null,n),e=Qa(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=Ao(Error(L(422))),$i(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),l=Cn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ur(t,e.child,null,o),t.child.memoizedState=Fs(o),t.memoizedState=Ds,l);if(!(t.mode&1))return $i(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=Ao(l,r,void 0),$i(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 Ja(),r=Ao(Error(L(421))),$i(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,ae=!0,dt=null,e!==null&&(et[tt++]=Tt,et[tt++]=It,et[tt++]=Nn,Tt=e.id,It=e.overflow,Nn=t),t=Qa(t,r.children),t.flags|=4096,t)}function jc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_s(e.return,t,n)}function Oo(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 Bp(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&&jc(e,n,t);else if(e.tag===19)jc(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&&Il(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(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&&Il(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,l);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ll(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),Pn|=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:Fp(t),ar();break;case 5:dp(t);break;case 1:$e(t.type)&&El(t);break;case 4:Fa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;re(Pl,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?Mp(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 Bp(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,Op(e,t,n)}return At(e,t,n)}var Up,Ms,$p,Vp;Up=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}};Ms=function(){};$p=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wn(Ct.current);var l=null;switch(n){case"input":i=ss(e,i),r=ss(e,r),l=[];break;case"select":i=de({},i,{value:void 0}),r=de({},r,{value:void 0}),l=[];break;case"textarea":i=cs(e,i),r=cs(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Sl)}ds(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Gr.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Gr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&le("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Vp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!ae)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(_a(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)&&Cl(),je(t),null;case 3:return r=t.stateNode,cr(),oe(Ue),oe(_e),Ba(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dt!==null&&(qs(dt),dt=null))),Ms(e,t),je(t),null;case 5:Ma(t);var i=wn(ui.current);if(n=t.type,e!==null&&t.stateNode!=null)$p(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=wn(Ct.current),Bi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[wt]=t,r[si]=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<Or.length;i++)le(Or[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":Du(r,l),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},le("invalid",r);break;case"textarea":Mu(r,l),le("invalid",r)}ds(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&&Mi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Mi(r.textContent,s,e),i=["children",""+s]):Gr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&le("scroll",r)}switch(n){case"input":_i(r),Fu(r,l,!0);break;case"textarea":_i(r),Bu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Sl)}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=yd(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[si]=r,Up(e,t,!1,!1),t.stateNode=e;e:{switch(o=ps(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<Or.length;i++)le(Or[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":Du(e,r),i=ss(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":Mu(e,r),i=cs(e,r),le("invalid",e);break;default:i=r}ds(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?kd(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xd(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Jr(e,a):typeof a=="number"&&Jr(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&le("scroll",e):a!=null&&ga(e,l,a,o))}switch(n){case"input":_i(e),Fu(e,r,!1);break;case"textarea":_i(e),Bu(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=Sl)}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)Vp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=wn(ui.current),wn(Ct.current),Bi(t)){if(r=t.stateNode,n=t.memoizedProps,r[wt]=t,(l=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mi(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(ae&&Ke!==null&&t.mode&1&&!(t.flags&128))sp(),ar(),t.flags|=98560,l=!1;else if(l=Bi(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 ar(),!(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):Ja())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return cr(),Ms(e,t),e===null&&li(t.stateNode.containerInfo),je(t),null;case 10:return Aa(t.type._context),je(t),null;case 17:return $e(t.type)&&Cl(),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)Tr(l,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Il(e),o!==null){for(t.flags|=128,Tr(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,Tr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ae)return je(t),null}else 2*me()-l.renderingStartTime>dr&&n!==1073741824&&(t.flags|=128,r=!0,Tr(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 Ga(),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(_a(t),t.tag){case 1:return $e(t.type)&&Cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),oe(Ue),oe(_e),Ba(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ma(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));ar()}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 Aa(t.type._context),null;case 22:case 23:return Ga(),null;case 24:return null;default:return null}}var Vi=!1,Te=!1,By=typeof WeakSet=="function"?WeakSet:Set,F=null;function Gn(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 Bs(e,t,n){try{n()}catch(r){he(e,t,r)}}var Tc=!1;function Uy(e,t){if(Cs=vl,e=Kd(),Ta(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,a=-1,u=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||(a=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&&++u===i&&(s=o),d===l&&++f===r&&(a=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Es={focusedElem:e,selectionRange:n},vl=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,E=g.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ct(t.type,v),E);m.__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(P){he(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return g=Tc,Tc=!1,g}function Wr(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&&Bs(t,n,l)}i=i.next}while(i!==r)}}function Jl(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 Us(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 Hp(e){var t=e.alternate;t!==null&&(e.alternate=null,Hp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[si],delete t[Ps],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 Wp(e){return e.tag===5||e.tag===3||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wp(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 $s(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=Sl));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}function Vs(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(Vs(e,t,n),e=e.sibling;e!==null;)Vs(e,t,n),e=e.sibling}var Ee=null,ft=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Qp(e,t,n),n=n.sibling}function Qp(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:Te||Gn(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?To(e.parentNode,n):e.nodeType===1&&To(e,n),ni(e)):To(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)&&Bs(n,t,o),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Te&&(Gn(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 ut(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));Qp(l,o,i),Ee=null,ft=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){he(i,t,u)}}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(ut(t,e),xt(e),r&4){try{Wr(3,e,e.return),Jl(3,e)}catch(v){he(e,e.return,v)}try{Wr(5,e,e.return)}catch(v){he(e,e.return,v)}}break;case 1:ut(t,e),xt(e),r&512&&n!==null&&Gn(n,n.return);break;case 5:if(ut(t,e),xt(e),r&512&&n!==null&&Gn(n,n.return),e.flags&32){var i=e.stateNode;try{Jr(i,"")}catch(v){he(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&md(i,l),ps(s,o);var u=ps(s,l);for(o=0;o<a.length;o+=2){var f=a[o],c=a[o+1];f==="style"?kd(i,c):f==="dangerouslySetInnerHTML"?xd(i,c):f==="children"?Jr(i,c):ga(i,f,c,u)}switch(s){case"input":as(i,l);break;case"textarea":gd(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[si]=l}catch(v){he(e,e.return,v)}}break;case 6:if(ut(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(v){he(e,e.return,v)}}break;case 3:if(ut(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ni(t.containerInfo)}catch(v){he(e,e.return,v)}break;case 4:ut(t,e),xt(e);break;case 13:ut(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||(Ya=me())),r&4&&_c(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Te=(u=Te)||f,ut(t,e),Te=u):ut(t,e),xt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(F=e,f=e.child;f!==null;){for(c=F=f;F!==null;){switch(d=F,p=d.child,d.tag){case 0:case 11:case 14:case 15:Wr(4,d,d.return);break;case 1:Gn(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){he(r,n,v)}}break;case 5:Gn(d,d.return);break;case 22:if(d.memoizedState!==null){Rc(c);continue}}p!==null?(p.return=d,F=p):Rc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=c.stateNode,a=c.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=vd("display",o))}catch(v){he(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){he(e,e.return,v)}}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:ut(t,e),xt(e),r&4&&_c(e);break;case 21:break;default:ut(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Wp(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&&(Jr(i,""),r.flags&=-33);var l=Ic(e);Vs(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Ic(e);$s(e,s,o);break;default:throw Error(L(161))}}catch(a){he(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $y(e,t,n){F=e,Kp(e)}function Kp(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Vi;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||Te;s=Vi;var u=Te;if(Vi=o,(Te=a)&&!u)for(F=i;F!==null;)o=F,a=o.child,o.tag===22&&o.memoizedState!==null?zc(i):a!==null?(a.return=o,F=a):zc(i);for(;l!==null;)F=l,Kp(l),l=l.sibling;F=i,Vi=s,Te=u}Lc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,F=l):Lc(e)}}function Lc(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Te||Jl(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&&gc(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}gc(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&ni(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Te||t.flags&512&&Us(t)}catch(d){he(t,t.return,d)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Rc(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function zc(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){he(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){he(t,i,a)}}var l=t.return;try{Us(t)}catch(a){he(t,l,a)}break;case 5:var o=t.return;try{Us(t)}catch(a){he(t,o,a)}}}catch(a){he(t,t.return,a)}if(t===e){F=null;break}var s=t.sibling;if(s!==null){s.return=t.return,F=s;break}F=t.return}}var Vy=Math.ceil,Rl=Ot.ReactCurrentDispatcher,qa=Ot.ReactCurrentOwner,it=Ot.ReactCurrentBatchConfig,X=0,Ce=null,ye=null,Ne=0,qe=0,Jn=an(0),we=0,pi=null,Pn=0,Zl=0,Ka=0,Qr=null,Me=null,Ya=0,dr=1/0,Pt=null,zl=!1,Hs=null,Zt=null,Hi=!1,Qt=null,Al=0,qr=0,Ws=null,ol=-1,sl=0;function Ae(){return X&6?me():ol!==-1?ol:ol=me()}function en(e){return e.mode&1?X&2&&Ne!==0?Ne&-Ne:by.transition!==null?(sl===0&&(sl=Ld()),sl):(e=J,e!==0||(e=window.event,e=e===void 0?16:Md(e.type)),e):1}function ht(e,t,n,r){if(50<qr)throw qr=0,Ws=null,Error(L(185));vi(e,n,r),(!(X&2)||e!==Ce)&&(e===Ce&&(!(X&2)&&(Zl|=n),we===4&&Ht(e,Ne)),Ve(e,r),n===1&&X===0&&!(t.mode&1)&&(dr=me()+500,Yl&&un()))}function Ve(e,t){var n=e.callbackNode;bg(e,t);var r=xl(e,e===Ce?Ne:0);if(r===0)n!==null&&Vu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vu(n),t===1)e.tag===0?Ny(Ac.bind(null,e)):ip(Ac.bind(null,e)),wy(function(){!(X&6)&&un()}),n=null;else{switch(Rd(r)){case 1:n=wa;break;case 4:n=Id;break;case 16:n=yl;break;case 536870912:n=_d;break;default:n=yl}n=nh(n,Yp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yp(e,t){if(ol=-1,sl=0,X&6)throw Error(L(327));var n=e.callbackNode;if(ir()&&e.callbackNode!==n)return null;var r=xl(e,e===Ce?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ol(e,r);else{t=r;var i=X;X|=2;var l=Gp();(Ce!==e||Ne!==t)&&(Pt=null,dr=me()+500,Sn(e,t));do try{Qy();break}catch(s){Xp(e,s)}while(!0);za(),Rl.current=l,X=i,ye!==null?t=0:(Ce=null,Ne=0,t=we)}if(t!==0){if(t===2&&(i=xs(e),i!==0&&(r=i,t=Qs(e,i))),t===1)throw n=pi,Sn(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=Ol(e,r),t===2&&(l=xs(e),l!==0&&(r=l,t=Qs(e,l))),t===1))throw n=pi,Sn(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=Ya+500-me(),10<t)){if(xl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bs(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=bs(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?Yp.bind(null,e):null}function Qs(e,t){var n=Qr;return e.current.memoizedState.isDehydrated&&(Sn(e,t).flags|=256),e=Ol(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&=~Ka,t&=~Zl,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 Ac(e){if(X&6)throw Error(L(327));ir();var t=xl(e,0);if(!(t&1))return Ve(e,me()),null;var n=Ol(e,t);if(e.tag!==0&&n===2){var r=xs(e);r!==0&&(t=r,n=Qs(e,r))}if(n===1)throw n=pi,Sn(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 Xa(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(dr=me()+500,Yl&&un())}}function jn(e){Qt!==null&&Qt.tag===0&&!(X&6)&&ir();var t=X;X|=1;var n=it.transition,r=J;try{if(it.transition=null,J=1,e)return e()}finally{J=r,it.transition=n,X=t,!(X&6)&&un()}}function Ga(){qe=Jn.current,oe(Jn)}function Sn(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(_a(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Cl();break;case 3:cr(),oe(Ue),oe(_e),Ba();break;case 5:Ma(r);break;case 4:cr();break;case 13:oe(ce);break;case 19:oe(ce);break;case 10:Aa(r.type._context);break;case 22:case 23:Ga()}n=n.return}if(Ce=e,ye=e=tn(e.current,null),Ne=qe=t,we=0,pi=null,Ka=Zl=Pn=0,Me=Qr=null,kn!==null){for(t=0;t<kn.length;t++)if(n=kn[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}kn=null}return e}function Xp(e,t){do{var n=ye;try{if(za(),rl.current=Ll,_l){for(var r=fe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}_l=!1}if(bn=0,Se=ke=fe=null,Hr=!1,ci=0,qa.current=null,n===null||n.return===null){we=1,pi=t,ye=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=Ne,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,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=Sc(o);if(p!==null){p.flags&=-257,Cc(p,o,s,l,t),p.mode&1&&wc(l,u,t),t=p,a=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(a),t.updateQueue=v}else g.add(a);break e}else{if(!(t&1)){wc(l,u,t),Ja();break e}a=Error(L(426))}}else if(ae&&s.mode&1){var E=Sc(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Cc(E,o,s,l,t),La(fr(a,s));break e}}l=a=fr(a,s),we!==4&&(we=2),Qr===null?Qr=[l]:Qr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=Rp(l,a,t);mc(l,m);break e;case 1:s=a;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 P=zp(l,s,t);mc(l,P);break e}}l=l.return}while(l!==null)}Zp(n)}catch(T){t=T,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(!0)}function Gp(){var e=Rl.current;return Rl.current=Ll,e===null?Ll:e}function Ja(){(we===0||we===3||we===2)&&(we=4),Ce===null||!(Pn&268435455)&&!(Zl&268435455)||Ht(Ce,Ne)}function Ol(e,t){var n=X;X|=2;var r=Gp();(Ce!==e||Ne!==t)&&(Pt=null,Sn(e,t));do try{Wy();break}catch(i){Xp(e,i)}while(!0);if(za(),X=n,Rl.current=r,ye!==null)throw Error(L(261));return Ce=null,Ne=0,we}function Wy(){for(;ye!==null;)Jp(ye)}function Qy(){for(;ye!==null&&!yg();)Jp(ye)}function Jp(e){var t=th(e.alternate,e,qe);e.memoizedProps=e.pendingProps,t===null?Zp(e):ye=t,qa.current=null}function Zp(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=J,i=it.transition;try{it.transition=null,J=1,qy(e,t,n,r)}finally{it.transition=i,J=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)||Hi||(Hi=!0,nh(yl,function(){return ir(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=it.transition,it.transition=null;var o=J;J=1;var s=X;X|=4,qa.current=null,Uy(e,n),qp(n,e),py(Es),vl=!!Cs,Es=Cs=null,e.current=n,$y(n),xg(),X=s,J=o,it.transition=l}else e.current=n;if(Hi&&(Hi=!1,Qt=e,Al=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(zl)throw zl=!1,e=Hs,Hs=null,e;return Al&1&&e.tag!==0&&ir(),l=e.pendingLanes,l&1?e===Ws?qr++:(qr=0,Ws=e):qr=0,un(),null}function ir(){if(Qt!==null){var e=Rd(Al),t=it.transition,n=J;try{if(it.transition=null,J=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Al=0,X&6)throw Error(L(331));var i=X;for(X|=4,F=e.current;F!==null;){var l=F,o=l.child;if(F.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(F=u;F!==null;){var f=F;switch(f.tag){case 0:case 11:case 15:Wr(8,f,l)}var c=f.child;if(c!==null)c.return=f,F=c;else for(;F!==null;){f=F;var d=f.sibling,p=f.return;if(Hp(f),f===u){F=null;break}if(d!==null){d.return=p,F=d;break}F=p}}}var g=l.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}F=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,F=o;else e:for(;F!==null;){if(l=F,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Wr(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,F=m;break e}F=l.return}}var y=e.current;for(F=y;F!==null;){o=F;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,F=x;else e:for(o=y;F!==null;){if(s=F,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(T){he(s,s.return,T)}if(s===o){F=null;break e}var P=s.sibling;if(P!==null){P.return=s.return,F=P;break e}F=s.return}}if(X=i,un(),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Hl,e)}catch{}r=!0}return r}finally{J=n,it.transition=t}}return!1}function Oc(e,t,n){t=fr(n,t),t=Rp(e,t,1),e=Jt(e,t,1),t=Ae(),e!==null&&(vi(e,1,t),Ve(e,t))}function he(e,t,n){if(e.tag===3)Oc(e,e,n);else for(;t!==null;){if(t.tag===3){Oc(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=zp(t,e,1),t=Jt(t,e,1),e=Ae(),t!==null&&(vi(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()-Ya?Sn(e,0):Ka|=n),Ve(e,t)}function eh(e,t){t===0&&(e.mode&1?(t=zi,zi<<=1,!(zi&130023424)&&(zi=4194304)):t=1);var n=Ae();e=zt(e,t),e!==null&&(vi(e,t,n),Ve(e,n))}function Yy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eh(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),eh(e,n)}var th;th=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,ae&&t.flags&1048576&&lp(t,bl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ll(e,t),e=t.pendingProps;var i=sr(t,_e.current);rr(t,n),i=$a(null,t,r,e,i,n);var l=Va();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,El(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Da(t),i.updater=Gl,t.stateNode=i,i._reactInternals=t,Rs(t,r,e,n),t=Os(null,t,r,!0,l,n)):(t.tag=0,ae&&l&&Ia(t),Re(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ll(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=As(null,t,r,e,n);break e;case 1:t=bc(null,t,r,e,n);break e;case 11:t=Ec(null,t,r,e,n);break e;case 14:t=Nc(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),As(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),bc(e,t,r,i,n);case 3:e:{if(Fp(t),e===null)throw Error(L(387));r=t.pendingProps,l=t.memoizedState,i=l.element,fp(e,t),Tl(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=Pc(e,t,r,n,i);break e}else if(r!==i){i=fr(Error(L(424)),t),t=Pc(e,t,r,n,i);break e}else for(Ke=Gt(t.stateNode.containerInfo.firstChild),Ye=t,ae=!0,dt=null,n=up(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===i){t=At(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return dp(t),e===null&&Is(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ns(r,i)?o=null:l!==null&&Ns(r,l)&&(t.flags|=32),Dp(e,t),Re(e,t,o,n),t.child;case 6:return e===null&&Is(t),null;case 13:return Mp(e,t,n);case 4:return Fa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(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),Ec(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(Pl,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 a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=_t(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),_s(l.return,n,t),s.lanes|=n;break}a=a.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),Nc(e,t,r,i,n);case 15:return Ap(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),ll(e,t),t.tag=1,$e(r)?(e=!0,El(t)):e=!1,rr(t,n),Lp(t,r,i),Rs(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return Bp(e,t,n);case 22:return Op(e,t,n)}throw Error(L(156,t.tag))};function nh(e,t){return Td(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 Za(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jy(e){if(typeof e=="function")return Za(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xa)return 11;if(e===va)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 al(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Za(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $n:return Cn(n.children,i,l,t);case ya:o=8,i|=8;break;case rs:return e=rt(12,n,t,i|2),e.elementType=rs,e.lanes=l,e;case is:return e=rt(13,n,t,i),e.elementType=is,e.lanes=l,e;case ls:return e=rt(19,n,t,i),e.elementType=ls,e.lanes=l,e;case dd:return eo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cd:o=10;break e;case fd:o=9;break e;case xa:o=11;break e;case va: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 Cn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=rt(22,e,r,t),e.elementType=dd,e.lanes=n,e.stateNode={isHidden:!1},e}function Do(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Fo(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=xo(0),this.expirationTimes=xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function eu(e,t,n,r,i,l,o,s,a){return e=new Zy(e,t,n,s,a),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},Da(l),e}function ex(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Un,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function rh(e){if(!e)return on;e=e._reactInternals;e:{if(_n(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 rp(e,n,t)}return t}function ih(e,t,n,r,i,l,o,s,a){return e=eu(n,r,!0,e,i,l,o,s,a),e.context=rh(null),n=e.current,r=Ae(),i=en(n),l=_t(r,i),l.callback=t??null,Jt(n,l,i),e.current.lanes=i,vi(e,i,r),Ve(e,r),e}function to(e,t,n,r){var i=t.current,l=Ae(),o=en(i);return n=rh(n),t.context===null?t.context=n:t.pendingContext=n,t=_t(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),nl(e,i,o)),o}function Dl(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 Dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tu(e,t){Dc(e,t),(e=e.alternate)&&Dc(e,t)}function tx(){return null}var lh=typeof reportError=="function"?reportError:function(e){console.error(e)};function nu(e){this._internalRoot=e}no.prototype.render=nu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));to(e,t,null,null)};no.prototype.unmount=nu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){to(null,e,null,null)}),t[Rt]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=Od();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&&Fd(e)}};function ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fc(){}function nx(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Dl(o);l.call(u)}}var o=ih(t,r,e,0,null,!1,!1,"",Fc);return e._reactRootContainer=o,e[Rt]=o.current,li(e.nodeType===8?e.parentNode:e),jn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Dl(a);s.call(u)}}var a=eu(e,0,!1,null,null,!1,!1,"",Fc);return e._reactRootContainer=a,e[Rt]=a.current,li(e.nodeType===8?e.parentNode:e),jn(function(){to(t,a,n,r)}),a}function io(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Dl(o);s.call(a)}}to(t,o,e,i)}else o=nx(n,t,e,i,r);return Dl(o)}zd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ar(t.pendingLanes);n!==0&&(Sa(t,n|1),Ve(t,me()),!(X&6)&&(dr=me()+500,un()))}break;case 13:jn(function(){var r=zt(e,1);if(r!==null){var i=Ae();ht(r,e,1,i)}}),tu(e,1)}};Ca=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Ae();ht(t,e,134217728,n)}tu(e,134217728)}};Ad=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)}tu(e,t)}};Od=function(){return J};Dd=function(e,t){var n=J;try{return J=e,t()}finally{J=n}};ms=function(e,t,n){switch(t){case"input":if(as(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=Kl(r);if(!i)throw Error(L(90));hd(r),as(r,i)}}}break;case"textarea":gd(e,n);break;case"select":t=n.value,t!=null&&Zn(e,!!n.multiple,t,!1)}};Cd=Xa;Ed=jn;var rx={usingClientEntryPoint:!1,Events:[wi,Qn,Kl,wd,Sd,Xa]},Ir={findFiberByHostInstance:vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ix={bundleType:Ir.bundleType,version:Ir.version,rendererPackageName:Ir.rendererPackageName,rendererConfig:Ir.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=Pd(e),e===null?null:e.stateNode},findFiberByHostInstance:Ir.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 Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{Hl=Wi.inject(ix),St=Wi}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(!ru(t))throw Error(L(200));return ex(e,t,null,n)};Je.createRoot=function(e,t){if(!ru(e))throw Error(L(299));var n=!1,r="",i=lh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=eu(e,1,!1,null,null,n,!1,r,i),e[Rt]=t.current,li(e.nodeType===8?e.parentNode:e),new nu(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=Pd(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return jn(e)};Je.hydrate=function(e,t,n){if(!ro(t))throw Error(L(200));return io(null,e,t,!0,n)};Je.hydrateRoot=function(e,t,n){if(!ru(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=lh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ih(t,null,e,1,n??null,i,!1,l,o),e[Rt]=t.current,li(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 no(t)};Je.render=function(e,t,n){if(!ro(t))throw Error(L(200));return io(null,e,t,!1,n)};Je.unmountComponentAtNode=function(e){if(!ro(e))throw Error(L(40));return e._reactRootContainer?(jn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[Rt]=null})}),!0):!1};Je.unstable_batchedUpdates=Xa;Je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return io(e,t,n,!1,r)};Je.version="18.3.1-next-f1338f8080-20240426";function oh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oh)}catch(e){console.error(e)}}oh(),od.exports=Je;var lx=od.exports,Mc=lx;ts.createRoot=Mc.createRoot,ts.hydrateRoot=Mc.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 hi(){return hi=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},hi.apply(this,arguments)}var qt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qt||(qt={}));const Bc="popstate";function ox(e){e===void 0&&(e={});function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return Ks("",{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:Fl(i)}return ax(t,n,null,e)}function xe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iu(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 Uc(e,t){return{usr:e.state,key:e.key,idx:t}}function Ks(e,t,n,r){return n===void 0&&(n=null),hi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yr(t):t,{state:n,key:t&&t.key||r||sx()})}function Fl(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 ax(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s=qt.Pop,a=null,u=f();u==null&&(u=0,o.replaceState(hi({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=qt.Pop;let E=f(),m=E==null?null:E-u;u=E,a&&a({action:s,location:v.location,delta:m})}function d(E,m){s=qt.Push;let y=Ks(v.location,E,m);u=f()+1;let x=Uc(y,u),P=v.createHref(y);try{o.pushState(x,"",P)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(P)}l&&a&&a({action:s,location:v.location,delta:1})}function p(E,m){s=qt.Replace;let y=Ks(v.location,E,m);u=f();let x=Uc(y,u),P=v.createHref(y);o.replaceState(x,"",P),l&&a&&a({action:s,location:v.location,delta:0})}function g(E){let m=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof E=="string"?E:Fl(E);return y=y.replace(/ $/,"%20"),xe(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let v={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Bc,c),a=E,()=>{i.removeEventListener(Bc,c),a=null}},createHref(E){return t(i,E)},createURL:g,encodeLocation(E){let m=g(E);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(E){return o.go(E)}};return v}var $c;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($c||($c={}));function ux(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=lu(i.pathname||"/",n);if(l==null)return null;let o=sh(e);fx(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Cx(l);s=kx(o[a],u)}return s}function sh(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(l,o,s)=>{let a={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};a.relativePath.startsWith("/")&&(xe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=nn([r,a.relativePath]),f=n.concat(a);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 "'+u+'".')),sh(l.children,t,f,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:xx(u,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 a of ah(l.path))i(l,o,a)}),t}function ah(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=ah(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}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,Vc=e=>e==="*";function xx(e,t){let n=e.split("/"),r=n.length;return n.some(Vc)&&(r+=yx),t&&(r+=hx),n.filter(i=>!Vc(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 a=r[s],u=s===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=wx({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),d=a.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((u,f,c)=>{let{paramName:d,isOptional:p}=f;if(d==="*"){let v=s[c]||"";o=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[c];return p&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Sx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),iu(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,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));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 iu(!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 lu(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,"/"),iu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?l=Hc(n.substring(1),"/"):l=Hc(n,t)}else l=t;return{pathname:l,search:Tx(r),hash:Ix(i)}}function Hc(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 Mo(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 ch(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=yr(e):(i=hi({},e),xe(!i.pathname||!i.pathname.includes("?"),Mo("?","pathname","search",i)),xe(!i.pathname||!i.pathname.includes("#"),Mo("#","pathname","hash",i)),xe(!i.search||!i.search.includes("#"),Mo("#","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 a=bx(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const nn=e=>e.join("/").replace(/\/\/+/g,"/"),jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ix=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _x(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fh=["post","put","patch","delete"];new Set(fh);const Lx=["get",...fh];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 mi(){return mi=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},mi.apply(this,arguments)}const ou=_.createContext(null),Rx=_.createContext(null),Ln=_.createContext(null),lo=_.createContext(null),cn=_.createContext({outlet:null,matches:[],isDataRoute:!1}),dh=_.createContext(null);function zx(e,t){let{relative:n}=t===void 0?{}:t;Ci()||xe(!1);let{basename:r,navigator:i}=_.useContext(Ln),{hash:l,pathname:o,search:s}=hh(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:nn([r,o])),i.createHref({pathname:a,search:s,hash:l})}function Ci(){return _.useContext(lo)!=null}function Ei(){return Ci()||xe(!1),_.useContext(lo).location}function ph(e){_.useContext(Ln).static||_.useLayoutEffect(e)}function Ax(){let{isDataRoute:e}=_.useContext(cn);return e?Yx():Ox()}function Ox(){Ci()||xe(!1);let e=_.useContext(ou),{basename:t,future:n,navigator:r}=_.useContext(Ln),{matches:i}=_.useContext(cn),{pathname:l}=Ei(),o=JSON.stringify(uh(i,n.v7_relativeSplatPath)),s=_.useRef(!1);return ph(()=>{s.current=!0}),_.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let c=ch(u,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 hh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(Ln),{matches:i}=_.useContext(cn),{pathname:l}=Ei(),o=JSON.stringify(uh(i,r.v7_relativeSplatPath));return _.useMemo(()=>ch(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){Ci()||xe(!1);let{navigator:i}=_.useContext(Ln),{matches:l}=_.useContext(cn),o=l[l.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=Ei(),f;if(t){var c;let E=typeof t=="string"?yr(t):t;a==="/"||(c=E.pathname)!=null&&c.startsWith(a)||xe(!1),f=E}else f=u;let d=f.pathname||"/",p=d;if(a!=="/"){let E=a.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(E.length).join("/")}let g=ux(e,{pathname:p}),v=Hx(g&&g.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:nn([a,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:nn([a,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,n,r);return t&&v?_.createElement(lo.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qt.Pop}},v):v}function Bx(){let e=Kx(),t=_x(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(dh.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(ou);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 a=!1,u=-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)&&(u=f),c.route.id){let{loaderData:d,errors:p}=n,g=c.route.loader&&d[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||g){a=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let p,g=!1,v=null,E=null;n&&(p=s&&c.route.id?s[c.route.id]:void 0,v=c.route.errorElement||Ux,a&&(u<0&&d===0?(Xx("route-fallback"),g=!0,E=null):u===d&&(g=!0,E=c.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),y=()=>{let x;return p?x=v:g?x=E: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:m,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement($x,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var mh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mh||{}),gh=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}(gh||{});function Wx(e){let t=_.useContext(ou);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 yh(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(dh),n=Qx(),r=yh();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yx(){let{router:e}=Wx(mh.UseNavigateStable),t=yh(gh.UseNavigateStable),n=_.useRef(!1);return ph(()=>{n.current=!0}),_.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mi({fromRouteId:t},l)))},[e,t])}const Wc={};function Xx(e,t,n){Wc[e]||(Wc[e]=!0)}function Gx(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Mn(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;Ci()&&xe(!1);let a=t.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:a,navigator:l,static:o,future:mi({v7_relativeSplatPath:!1},s)}),[a,s,l,o]);typeof r=="string"&&(r=yr(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:g="default"}=r,v=_.useMemo(()=>{let E=lu(f,a);return E==null?null:{location:{pathname:E,search:c,hash:d,state:p,key:g},navigationType:i}},[a,f,c,d,p,g,i]);return v==null?null:_.createElement(Ln.Provider,{value:u},_.createElement(lo.Provider,{children:n,value:v}))}function Zx(e){let{children:t,location:n}=e;return Fx(Ys(t),n)}new Promise(()=>{});function Ys(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,Ys(r.props.children,l));return}r.type!==Mn&&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=Ys(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 Xs(){return Xs=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},Xs.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",Qc=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,a]=_.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},f=_.useCallback(c=>{u&&Qc?Qc(()=>a(c)):a(c)},[a,u]);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",a0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rn=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:o,state:s,target:a,to:u,preventScrollReset:f,viewTransition:c}=t,d=e0(t,r0),{basename:p}=_.useContext(Ln),g,v=!1;if(typeof u=="string"&&a0.test(u)&&(g=u,s0))try{let x=new URL(window.location.href),P=u.startsWith("//")?new URL(x.protocol+u):new URL(u),T=lu(P.pathname,p);P.origin===x.origin&&T!=null?u=T+P.search+P.hash:v=!0}catch{}let E=zx(u,{relative:i}),m=u0(u,{replace:o,state:s,target:a,preventScrollReset:f,relative:i,viewTransition:c});function y(x){r&&r(x),x.defaultPrevented||m(x)}return _.createElement("a",Xs({},d,{href:g||E,onClick:v||l?r:y,ref:n,target:a}))});var qc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qc||(qc={}));var Kc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kc||(Kc={}));function u0(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:o,viewTransition:s}=t===void 0?{}:t,a=Ax(),u=Ei(),f=hh(e,{relative:o});return _.useCallback(c=>{if(n0(c,n)){c.preventDefault();let d=r!==void 0?r:Fl(u)===Fl(f);a(e,{replace:d,state:i,preventScrollReset:l,relative:o,viewTransition:s})}},[u,a,f,r,i,n,e,l,o,s])}function xr(){const[e,t]=_.useState(!1),[n,r]=_.useState(null),i=_.useRef(null),l=_.useRef(null),o=_.useCallback(()=>{const u=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,f=new WebSocket(u);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(a=>{i.current&&i.current.readyState===WebSocket.OPEN&&i.current.send(JSON.stringify(a))},[]);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 yn={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})})},gn={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")},Dr={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")},Fr={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{lastMessage:e}=xr(),[t,n]=_.useState({changes:0,specs:0,pendingApprovals:0,overallProgress:0}),[r,i]=_.useState([]),[l,o]=_.useState(!0),s=_.useCallback(async()=>{try{const[a,u,f,c]=await Promise.all([yn.list(),gn.list(),Dr.getProgress(),Fr.listPending()]);n({changes:a.changes.length,specs:u.specs.length,pendingApprovals:c.approvals.length,overallProgress:f.overall.percentage}),i(a.changes.slice(0,5))}catch(a){console.error("Failed to fetch dashboard data:",a)}},[]);return _.useEffect(()=>{s().finally(()=>o(!1))},[s]),_.useEffect(()=>{if(!e)return;const{event:a}=e;["change:archived","tasks:updated","task:updated","change:content_updated","approval:requested","approval:approved","approval:rejected"].includes(a)&&s()},[e,s]),l?h.jsx("div",{className:"flex justify-center items-center h-96",children:h.jsxs("div",{className:"relative",children:[h.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),h.jsx("div",{className:"absolute top-0 left-0 h-12 w-12 rounded-full border-t-2 border-indigo-100 opacity-30 animate-pulse"})]})}):h.jsxs("div",{className:"space-y-8 animate-fade-in",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-900 tracking-tight",children:"Overview"}),h.jsx("p",{className:"mt-1 text-gray-500",children:"Track your project specifications and progress."})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[h.jsx(Qi,{title:"Active Changes",value:t.changes,icon:h.jsx(p0,{}),link:"/changes",color:"blue",trend:"Updates pending"}),h.jsx(Qi,{title:"Specifications",value:t.specs,icon:h.jsx(Yc,{}),link:"/specs",color:"indigo",trend:"Project documentation"}),h.jsx(Qi,{title:"Pending Approvals",value:t.pendingApprovals,icon:h.jsx(h0,{}),link:"/approvals",color:"amber",trend:"Requires attention",highlight:t.pendingApprovals>0}),h.jsx(Qi,{title:"Overall Progress",value:`${t.overallProgress}%`,icon:h.jsx(m0,{}),color:"emerald",trend:"Completion rate"})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[h.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Recent Changes"}),h.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",h.jsx("span",{className:"ml-1 group-hover:translate-x-0.5 transition-transform",children:"→"})]})]}),h.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:r.length===0?h.jsxs("div",{className:"p-8 text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-gray-100 mb-4",children:h.jsx(g0,{className:"w-6 h-6 text-gray-400"})}),h.jsx("p",{className:"text-gray-500",children:"No recent changes found."})]}):h.jsx("div",{className:"divide-y divide-gray-50",children:r.map(a=>h.jsx(rn,{to:`/changes/${a.id}`,className:"block p-5 hover:bg-gray-50 transition-colors duration-150",children:h.jsxs("div",{className:"flex justify-between items-start",children:[h.jsxs("div",{className:"space-y-1",children:[h.jsx("h4",{className:"font-semibold text-gray-900 group-hover:text-indigo-600 transition-colors",children:a.title}),h.jsxs("div",{className:"flex items-center space-x-2 text-xs text-gray-500 font-mono",children:[h.jsx("span",{className:"px-1.5 py-0.5 rounded bg-gray-100 text-gray-600",children:a.id}),h.jsx("span",{children:"•"}),h.jsx("span",{children:"Updated recently"})]})]}),h.jsxs("div",{className:"flex flex-col items-end min-w-[100px]",children:[h.jsxs("div",{className:"text-xs font-medium text-gray-500 mb-1.5",children:[a.tasksCompleted," / ",a.tasksTotal," tasks"]}),h.jsx("div",{className:"w-28 h-1.5 bg-gray-100 rounded-full overflow-hidden",children:h.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${a.tasksCompleted===a.tasksTotal?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${a.tasksTotal>0?a.tasksCompleted/a.tasksTotal*100:0}%`}})})]})]})},a.id))})})]}),h.jsxs("div",{className:"space-y-6",children:[h.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Quick Actions"}),h.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-5 space-y-3",children:[h.jsxs("div",{className:"flex items-center p-3 rounded-lg border border-dashed border-gray-200 bg-gray-50",children:[h.jsx("div",{className:"p-2 rounded-md bg-blue-50 text-blue-600",children:h.jsx(y0,{className:"w-5 h-5"})}),h.jsxs("div",{className:"ml-3",children:[h.jsx("span",{className:"font-medium text-gray-600 text-sm",children:"Create Change"}),h.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:["Use ",h.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_create_change"})]})]})]}),h.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:[h.jsx("div",{className:"p-2 rounded-md bg-purple-50 text-purple-600 group-hover:bg-white group-hover:scale-110 transition-all",children:h.jsx(Yc,{className:"w-5 h-5"})}),h.jsx("span",{className:"ml-3 font-medium text-gray-700 group-hover:text-purple-700",children:"Browse Specs"})]})]}),h.jsxs("div",{className:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl p-6 text-white shadow-lg",children:[h.jsx("h4",{className:"font-bold text-lg mb-2",children:"Pro Tip"}),h.jsx("p",{className:"text-indigo-100 text-sm opacity-90",children:"Review pending approvals to unblock your team's progress."})]})]})]})]})}function Qi({title:e,value:t,icon:n,link:r,color:i,trend:l,highlight:o=!1}){const a={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],u=h.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 "+a.border:""}
|
|
70
|
-
${o?"ring-2 ring-amber-100":""}
|
|
71
|
-
`,children:[h.jsxs("div",{className:"flex justify-between items-start",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-500",children:e}),h.jsx("p",{className:"text-3xl font-bold text-gray-900 mt-2 tracking-tight",children:t})]}),h.jsx("div",{className:`p-3 rounded-lg ${a.icon}`,children:n})]}),l&&h.jsx("div",{className:"mt-4 flex items-center text-xs text-gray-400 font-medium",children:l})]});return r?h.jsx(rn,{to:r,className:"block",children:u}):u}function p0({className:e="w-6 h-6"}){return h.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:[h.jsx("circle",{cx:"18",cy:"18",r:"3"}),h.jsx("circle",{cx:"6",cy:"6",r:"3"}),h.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),h.jsx("line",{x1:"6",y1:"9",x2:"6",y2:"21"})]})}function Yc({className:e="w-6 h-6"}){return h.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:[h.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"}),h.jsx("polyline",{points:"14 2 14 8 20 8"}),h.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),h.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),h.jsx("line",{x1:"10",y1:"9",x2:"8",y2:"9"})]})}function h0({className:e="w-6 h-6"}){return h.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:[h.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),h.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]})}function m0({className:e="w-6 h-6"}){return h.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:h.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}function g0({className:e="w-6 h-6"}){return h.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:[h.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),h.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 h.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:[h.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),h.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function x0(){const{lastMessage:e}=xr(),[t,n]=_.useState([]),[r,i]=_.useState(!0),[l,o]=_.useState(!1),s=async()=>{try{const a=await yn.list(l);n(a.changes)}catch(a){console.error("Failed to fetch changes:",a)}};return _.useEffect(()=>{i(!0),s().finally(()=>i(!1))},[l]),_.useEffect(()=>{if(!e)return;const{event:a}=e;["change:archived","tasks:updated","task:updated","change:content_updated"].includes(a)&&s()},[e]),r?h.jsx("div",{className:"flex justify-center items-center h-64",children:h.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Changes"}),h.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[h.jsx("input",{type:"checkbox",checked:l,onChange:a=>o(a.target.checked),className:"rounded border-gray-300"}),h.jsx("span",{children:"Include archived"})]})]}),t.length===0?h.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:"No changes found."}):h.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:h.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[h.jsx("thead",{className:"bg-gray-50",children:h.jsxs("tr",{children:[h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Change"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Progress"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Updated"})]})}),h.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(a=>h.jsxs("tr",{className:"hover:bg-gray-50",children:[h.jsx("td",{className:"px-6 py-4",children:h.jsxs(rn,{to:`/changes/${a.id}`,className:"text-blue-600 hover:text-blue-800",children:[h.jsx("div",{className:"font-medium",children:a.title}),h.jsx("div",{className:"text-sm text-gray-500",children:a.id})]})}),h.jsx("td",{className:"px-6 py-4",children:h.jsx("span",{className:`status-badge ${a.status==="active"?"status-implementing":"status-completed"}`,children:a.status})}),h.jsx("td",{className:"px-6 py-4",children:h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx("div",{className:"w-24 h-2 bg-gray-200 rounded-full",children:h.jsx("div",{className:"h-full bg-blue-500 rounded-full",style:{width:`${a.tasksTotal>0?a.tasksCompleted/a.tasksTotal*100:0}%`}})}),h.jsxs("span",{className:"text-sm text-gray-600",children:[a.tasksCompleted,"/",a.tasksTotal]})]})}),h.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:new Date(a.updatedAt).toLocaleDateString()})]},a.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 Xc(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"?Gc(e.value):!1:Gc(e)}function Gc(e){return e.replace(C0,"")===""}class Ni{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ni.prototype.normal={};Ni.prototype.property={};Ni.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 Ni(n,r,t)}function Gs(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 $=Rn(),ge=Rn(),Js=Rn(),R=Rn(),ne=Rn(),lr=Rn(),Qe=Rn();function Rn(){return 2**++N0}const Zs=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:ge,commaOrSpaceSeparated:Qe,commaSeparated:lr,number:R,overloadedBoolean:Js,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),Bo=Object.keys(Zs);class su extends He{constructor(t,n,r,i){let l=-1;if(super(t,n),Jc(this,"space",i),typeof r=="number")for(;++l<Bo.length;){const o=Bo[l];Jc(this,Bo[l],(r&Zs[o])===Zs[o])}}}su.prototype.defined=!0;function Jc(e,t,n){n&&(e[t]=n)}function vr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new su(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Gs(r)]=r,n[Gs(l.attribute)]=r}return new Ni(t,n,e.space)}const vh=vr({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=vr({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:Js,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:ne,height:R,hidden:Js,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=vr({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=vr({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=vr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wh}),Eh=vr({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,Zc=/-[a-z]/g,I0=/^data[-\w.:]+$/i;function _0(e,t){const n=Gs(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"&&I0.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Zc,R0);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Zc.test(l)){let o=l.replace(T0,L0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=su}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"),au=xh([vh,P0,Sh,Ch,Eh],"svg");function A0(e){return e.join(" ").trim()}var uu={},ef=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,O0=/\n/g,D0=/^\s*/,F0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,M0=/^:\s*/,B0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,U0=/^[;\s]*/,$0=/^\s+|\s+$/g,V0=`
|
|
72
|
-
`,tf="/",nf="*",xn="",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(g){var v=g.match(O0);v&&(n+=v.length);var E=g.lastIndexOf(V0);r=~E?g.length-E:r+g.length}function l(){var g={line:n,column:r};return function(v){return v.position=new o(g),u(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function a(g){var v=g.exec(e);if(v){var E=v[0];return i(E),e=e.slice(E.length),v}}function u(){a(D0)}function f(g){var v;for(g=g||[];v=c();)v!==!1&&g.push(v);return g}function c(){var g=l();if(!(tf!=e.charAt(0)||nf!=e.charAt(1))){for(var v=2;xn!=e.charAt(v)&&(nf!=e.charAt(v)||tf!=e.charAt(v+1));)++v;if(v+=2,xn===e.charAt(v-1))return s("End of comment missing");var E=e.slice(2,v-2);return r+=2,i(E),e=e.slice(v),r+=2,g({type:H0,comment:E})}}function d(){var g=l(),v=a(F0);if(v){if(c(),!a(M0))return s("property missing ':'");var E=a(B0),m=g({type:W0,property:rf(v[0].replace(ef,xn)),value:E?rf(E[0].replace(ef,xn)):xn});return a(U0),m}}function p(){var g=[];f(g);for(var v;v=d();)v!==!1&&(g.push(v),f(g));return g}return u(),p()}function rf(e){return e?e.replace($0,xn):xn}var q0=Q0,K0=pl&&pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uu,"__esModule",{value:!0});uu.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 oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.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()},lf=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,lf):e=e.replace(ev,lf),e.replace(J0,rv))};oo.camelCase=iv;var lv=pl&&pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ov=lv(uu),sv=oo;function ea(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}ea.default=ea;var av=ea;const uv=ua(av),Nh=bh("end"),cu=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=cu(e),n=Nh(e);if(t&&n)return{start:t,end:n}}function Kr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?of(e.position):"start"in e||"end"in e?of(e):"line"in e||"column"in e?ta(e):""}function ta(e){return sf(e&&e.line)+":"+sf(e&&e.column)}function of(e){return ta(e&&e.start)+"-"+ta(e&&e.end)}function sf(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 a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.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=Kr(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 fu={}.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"?au: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=au,e.schema=i),e.ancestors.push(t);const l=Ih(e,t.tagName,!1),o=Ev(e,t);let s=pu(e,t);return pv.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!E0(a):!0})),Th(e,o,l,t),du(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)}gi(e,t.position)}function xv(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gi(e,t.position)}function vv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=au,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Ih(e,t.name,!0),o=Nv(e,t),s=pu(e,t);return Th(e,o,l,t),du(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function kv(e,t,n){const r={};return du(r,pu(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 du(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 u=Array.isArray(o.children)?n:t;return s?u(l,o,s):u(l,o)}}function Cv(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),a=cu(r);return t(i,l,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Ev(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&fu.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 gi(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 gi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function pu(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 a=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(a){const u=i.get(a)||0;o=a+"-"+u,i.set(a,u+1)}}const s=jh(e,l,o);s!==void 0&&n.push(s)}return n}function bv(e,t,n){const r=_0(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 uv(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 Ih(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=Xc(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=Xc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return fu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);gi(e)}function gi(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)fu.call(e,n)&&(t[Tv(n)]=e[n]);return t}function Tv(e){let t=e.replace(dv,Iv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Iv(e){return"-"+e.toLowerCase()}const Uo={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"]},_v={};function hu(e,t){const n=_v,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _h(e,r,i)}function _h(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 af(e.children,t,n)}return Array.isArray(e)?af(e,t,n):""}function af(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=_h(e[i],t,n);return r.join("")}function Lv(e){return!!(e&&typeof e=="object")}const uf=document.createElement("i");function mu(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 cf={}.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=(cf.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){cf.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]/),Ie=fn(/[\dA-Za-z]/),Av=fn(/[#-'*+\--9=?A-Z^-~]/);function Ml(e){return e!==null&&(e<32||e===127)}const na=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 V(e){return e===-2||e===-1||e===32}const so=fn(new RegExp("\\p{P}|\\p{S}","u")),Tn=fn(/\s/);function fn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function kr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Ie(e.charCodeAt(n+1))&&Ie(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 Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return V(a)?(e.enter(n),s(a)):t(a)}function s(a){return V(a)&&l++<i?(e.consume(a),s):(e.exit(n),t(a))}}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"),Y(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),l(s)}function l(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,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},ff={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 P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,a,u)(x)}return u(x)}function a(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const P=t.events.length;let T=P,C;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){C=t.events[T][1].end;break}m(r);let N=P;for(;N<t.events.length;)t.events[N][1].end={...C},N++;return Xe(t.events,T+1,0,t.events.slice(P)),t.events.length=N,u(x)}return s(x)}function u(x){if(r===n.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return g(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ff,f,c)(x)}function f(x){return i&&y(),m(r),d(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(x)}function d(x){return t.containerState={},e.attempt(ff,p,g)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),d(x)}function g(x){if(x===null){i&&y(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),v(x)}function v(x){if(x===null){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return B(x)?(e.consume(x),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),v)}function E(x,P){const T=t.sliceStream(x);if(P&&T.push(null),x.previous=l,l&&(l.next=x),l=x,i.defineSkip(x.start),i.write(T),t.parser.lazy[x.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const N=t.events.length;let I=N,b,S;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(b){S=t.events[I][1].end;break}b=!0}for(m(r),C=N;C<t.events.length;)t.events[C][1].end={...S},C++;Xe(t.events,I+1,0,t.events.slice(N)),t.events.length=C}}function m(x){let P=n.length;for(;P-- >x;){const T=n[P];t.containerState=T[1],T[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 Y(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)||Tn(e))return 1;if(so(e))return 2}function ao(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 ra={name:"attention",resolveAll:Vv,tokenize:Hv};function Vv(e,t){let n=-1,r,i,l,o,s,a,u,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;a=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};df(c,-a),df(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=nt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=nt(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=nt(u,ao(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=nt(u,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=nt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Xe(e,r-1,n-r+3,u),n=r+u.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(a){return l=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===l)return e.consume(a),s;const u=e.exit("attentionSequence"),f=pr(a),c=!f||f===2&&i||n.includes(a),d=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!d)),u._close=!!(l===42?d:d&&(f||!c)),t(a)}}function df(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):u(p)}function o(p){return p===43||p===45||p===46||Ie(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Ie(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function a(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||Ml(p)?n(p):(e.consume(p),a)}function u(p){return p===64?(e.consume(p),f):Av(p)?(e.consume(p),u):n(p)}function f(p){return Ie(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||Ie(p))&&r++<63){const g=p===45?d:c;return e.consume(p),g}return n(p)}}const bi={partial:!0,tokenize:qv};function qv(e,t,n){return r;function r(l){return V(l)?Y(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 V(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 V(o)?Y(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"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=Ie,f(c))}function u(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=na,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return o===Ie&&!mu(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 pf={partial:!0,tokenize:e1},hf={concrete:!0,name:"codeFenced",tokenize:Zv};function Zv(e,t,n){const r=this,i={partial:!0,tokenize:T};let l=0,o=0,s;return a;function a(C){return u(C)}function u(C){const N=r.events[r.events.length-1];return l=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(C)}function f(C){return C===s?(o++,e.consume(C),f):o<3?n(C):(e.exit("codeFencedFenceSequence"),V(C)?Y(e,c,"whitespace")(C):c(C))}function c(C){return C===null||B(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(pf,v,P)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(C))}function d(C){return C===null||B(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(C)):V(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,p,"whitespace")(C)):C===96&&C===s?n(C):(e.consume(C),d)}function p(C){return C===null||B(C)?c(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(C))}function g(C){return C===null||B(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(C)):C===96&&C===s?n(C):(e.consume(C),g)}function v(C){return e.attempt(i,P,E)(C)}function E(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),m}function m(C){return l>0&&V(C)?Y(e,y,"linePrefix",l+1)(C):y(C)}function y(C){return C===null||B(C)?e.check(pf,v,P)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||B(C)?(e.exit("codeFlowValue"),y(C)):(e.consume(C),x)}function P(C){return e.exit("codeFenced"),t(C)}function T(C,N,I){let b=0;return S;function S(Q){return C.enter("lineEnding"),C.consume(Q),C.exit("lineEnding"),z}function z(Q){return C.enter("codeFencedFence"),V(Q)?Y(C,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):D(Q)}function D(Q){return Q===s?(C.enter("codeFencedFenceSequence"),W(Q)):I(Q)}function W(Q){return Q===s?(b++,C.consume(Q),W):b>=o?(C.exit("codeFencedFenceSequence"),V(Q)?Y(C,G,"whitespace")(Q):G(Q)):I(Q)}function G(Q){return Q===null||B(Q)?(C.exit("codeFencedFence"),N(Q)):I(Q)}}}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 $o={name:"codeIndented",tokenize:n1},t1={partial:!0,tokenize:r1};function n1(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Y(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?a(u):B(u)?e.attempt(t1,o,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||B(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}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):Y(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"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class a1{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,a,u;const f=new a1(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"&&(a=r[1]._tokenizer.events,l=0,l<a.length&&a[l][1].type==="lineEndingBlank"&&(l+=2),l<a.length&&a[l][1].type==="content"))for(;++l<a.length&&a[l][1].type!=="content";)a[l][1].type==="chunkText"&&(a[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,u1(f,n)),n=t[n],u=!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)),!u}function u1(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,a=[],u={};let f,c,d=-1,p=n,g=0,v=0;const E=[v];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&&(v=d+1,E.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),d=E.length;d--;){const m=s.slice(E[d],E[d+1]),y=l.pop();a.push([y,y+m.length-1]),e.splice(y,2,m)}for(a.reverse(),d=-1;++d<a.length;)u[g+a[d][0]]=g+a[d][1],g+=a[d][1]-a[d][0]-1;return u}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"),Y(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,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),d):m===null||m===32||m===41||Ml(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||B(m)?n(m):(e.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function v(m){return!f&&(m===null||m===41||te(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):f<u&&m===40?(e.consume(m),f++,v):m===41?(e.consume(m),f--,v):m===null||m===32||m===40||Ml(m)?n(m):(e.consume(m),m===92?E:v)}function E(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function Mh(e,t,n,r,i,l){const o=this;let s=0,a;return u;function u(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&&!a||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),a||(a=!V(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,a):n(d)}function a(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),a(o)):d===null?n(d):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===o||d===null||B(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===o||d===92?(e.consume(d),f):f(d)}}function Yr(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):V(i)?Y(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"),a):n(p)}function a(p){return te(p)?Yr(e,u)(p):u(p)}function u(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 V(p)?Y(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)?Yr(e,i)(s):n(s)}function i(s){return Bh(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return V(s)?Y(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"),a(f)):f===null||B(f)?(e.exit("atxHeading"),t(f)):V(f)?Y(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||te(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}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"],mf=["pre","script","style","textarea"],N1={concrete:!0,name:"htmlFlow",resolveTo:j1,tokenize:T1},b1={partial:!0,tokenize:_1},P1={partial:!0,tokenize:I1};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,a;return u;function u(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,v):w===63?(e.consume(w),i=3,r.interrupt?t:k):ze(w)?(e.consume(w),o=String.fromCharCode(w),E):n(w)}function d(w){return w===45?(e.consume(w),i=2,p):w===91?(e.consume(w),i=5,s=0,g):ze(w)?(e.consume(w),i=4,r.interrupt?t:k):n(w)}function p(w){return w===45?(e.consume(w),r.interrupt?t:k):n(w)}function g(w){const ve="CDATA[";return w===ve.charCodeAt(s++)?(e.consume(w),s===ve.length?r.interrupt?t:D:g):n(w)}function v(w){return ze(w)?(e.consume(w),o=String.fromCharCode(w),E):n(w)}function E(w){if(w===null||w===47||w===62||te(w)){const ve=w===47,st=o.toLowerCase();return!ve&&!l&&mf.includes(st)?(i=1,r.interrupt?t(w):D(w)):E1.includes(o.toLowerCase())?(i=6,ve?(e.consume(w),m):r.interrupt?t(w):D(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):l?y(w):x(w))}return w===45||Ie(w)?(e.consume(w),o+=String.fromCharCode(w),E):n(w)}function m(w){return w===62?(e.consume(w),r.interrupt?t:D):n(w)}function y(w){return V(w)?(e.consume(w),y):S(w)}function x(w){return w===47?(e.consume(w),S):w===58||w===95||ze(w)?(e.consume(w),P):V(w)?(e.consume(w),x):S(w)}function P(w){return w===45||w===46||w===58||w===95||Ie(w)?(e.consume(w),P):T(w)}function T(w){return w===61?(e.consume(w),C):V(w)?(e.consume(w),T):x(w)}function C(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,N):V(w)?(e.consume(w),C):I(w)}function N(w){return w===a?(e.consume(w),a=null,b):w===null||B(w)?n(w):(e.consume(w),N)}function I(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||te(w)?T(w):(e.consume(w),I)}function b(w){return w===47||w===62||V(w)?x(w):n(w)}function S(w){return w===62?(e.consume(w),z):n(w)}function z(w){return w===null||B(w)?D(w):V(w)?(e.consume(w),z):n(w)}function D(w){return w===45&&i===2?(e.consume(w),pe):w===60&&i===1?(e.consume(w),ue):w===62&&i===4?(e.consume(w),q):w===63&&i===3?(e.consume(w),k):w===93&&i===5?(e.consume(w),M):B(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(b1,Z,W)(w)):w===null||B(w)?(e.exit("htmlFlowData"),W(w)):(e.consume(w),D)}function W(w){return e.check(P1,G,Z)(w)}function G(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Q}function Q(w){return w===null||B(w)?W(w):(e.enter("htmlFlowData"),D(w))}function pe(w){return w===45?(e.consume(w),k):D(w)}function ue(w){return w===47?(e.consume(w),o="",O):D(w)}function O(w){if(w===62){const ve=o.toLowerCase();return mf.includes(ve)?(e.consume(w),q):D(w)}return ze(w)&&o.length<8?(e.consume(w),o+=String.fromCharCode(w),O):D(w)}function M(w){return w===93?(e.consume(w),k):D(w)}function k(w){return w===62?(e.consume(w),q):w===45&&i===2?(e.consume(w),k):D(w)}function q(w){return w===null||B(w)?(e.exit("htmlFlowData"),Z(w)):(e.consume(w),q)}function Z(w){return e.exit("htmlFlow"),t(w)}}function I1(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 _1(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(bi,t,n)}}const L1={name:"htmlText",tokenize:R1};function R1(e,t,n){const r=this;let i,l,o;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),T):k===63?(e.consume(k),x):ze(k)?(e.consume(k),I):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,g):ze(k)?(e.consume(k),y):n(k)}function f(k){return k===45?(e.consume(k),p):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),d):B(k)?(o=c,ue(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),p):c(k)}function p(k){return k===62?pe(k):k===45?d(k):c(k)}function g(k){const q="CDATA[";return k===q.charCodeAt(l++)?(e.consume(k),l===q.length?v:g):n(k)}function v(k){return k===null?n(k):k===93?(e.consume(k),E):B(k)?(o=v,ue(k)):(e.consume(k),v)}function E(k){return k===93?(e.consume(k),m):v(k)}function m(k){return k===62?pe(k):k===93?(e.consume(k),m):v(k)}function y(k){return k===null||k===62?pe(k):B(k)?(o=y,ue(k)):(e.consume(k),y)}function x(k){return k===null?n(k):k===63?(e.consume(k),P):B(k)?(o=x,ue(k)):(e.consume(k),x)}function P(k){return k===62?pe(k):x(k)}function T(k){return ze(k)?(e.consume(k),C):n(k)}function C(k){return k===45||Ie(k)?(e.consume(k),C):N(k)}function N(k){return B(k)?(o=N,ue(k)):V(k)?(e.consume(k),N):pe(k)}function I(k){return k===45||Ie(k)?(e.consume(k),I):k===47||k===62||te(k)?b(k):n(k)}function b(k){return k===47?(e.consume(k),pe):k===58||k===95||ze(k)?(e.consume(k),S):B(k)?(o=b,ue(k)):V(k)?(e.consume(k),b):pe(k)}function S(k){return k===45||k===46||k===58||k===95||Ie(k)?(e.consume(k),S):z(k)}function z(k){return k===61?(e.consume(k),D):B(k)?(o=z,ue(k)):V(k)?(e.consume(k),z):b(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,W):B(k)?(o=D,ue(k)):V(k)?(e.consume(k),D):(e.consume(k),G)}function W(k){return k===i?(e.consume(k),i=void 0,Q):k===null?n(k):B(k)?(o=W,ue(k)):(e.consume(k),W)}function G(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||te(k)?b(k):(e.consume(k),G)}function Q(k){return k===47||k===62||te(k)?b(k):n(k)}function pe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function ue(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return V(k)?Y(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):M(k)}function M(k){return e.enter("htmlTextData"),o(k)}}const gu={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 a={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={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",a,t],["enter",u,t]],s=nt(s,e.slice(l+1,l+r+3)),s=nt(s,[["enter",f,t]]),s=nt(s,ao(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",u,t]]),s=nt(s,e.slice(o+1)),s=nt(s,[["exit",a,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"),a):n(d)}function a(d){return d===40?e.attempt(z1,f,o?f:c)(d):d===91?e.attempt(A1,f,o?u:c)(d):o?f(d):c(d)}function u(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)?Yr(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)?Yr(e,a)(c):f(c)}function s(c){return n(c)}function a(c){return c===34||c===39||c===40?Bh(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return te(c)?Yr(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:gu.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:gu.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 Vo={name:"lineEnding",tokenize:q1};function q1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const ul={name:"thematicBreak",tokenize:K1};function K1(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||B(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),V(u)?Y(e,s,"whitespace")(u):s(u))}}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 g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:na(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ul,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return na(p)&&++o<10?(e.consume(p),a):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(bi,r.interrupt?n:f,e.attempt(Y1,d,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function c(p){return V(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(bi,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!V(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,Y(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 Y(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 Y(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!V(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const gf={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(u){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=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),V(u)?Y(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||B(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ik={tokenize:lk};function lk(e){const t=this,n=e.attempt(bi,r,e.attempt(this.parser.constructs.flowInitial,i,Y(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"),ak=Uh("text");function Uh(e){return{resolveAll:$h(e==="text"?uk: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 u(f)?l(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),a)}function u(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 uk(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,a;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)a=!0,s++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||a||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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,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]:$o,[-1]:$o,32:$o},pk={35:w1,42:ul,45:[gf,ul],60:N1,61:gf,95:ul,96:hf,126:hf},hk={38:Oh,92:Ah},mk={[-5]:Vo,[-4]:Vo,[-3]:Vo,33:V1,38:Oh,42:ra,60:[Wv,L1],91:W1,92:[v1,Ah],93:gu,95:ra,96:i1},gk={null:[ra,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 a={attempt:N(T),check:N(C),consume:y,enter:x,exit:P,interrupt:N(C,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:c};let f=t.tokenize.call(u,a);return t.resolveAll&&l.push(t),u;function c(z){return o=nt(o,z),E(),o[o.length-1]!==null?[]:(I(t,0),u.events=ao(l,u.events,u),u.events)}function d(z,D){return Sk(p(z),D)}function p(z){return wk(o,z)}function g(){const{_bufferIndex:z,_index:D,line:W,column:G,offset:Q}=r;return{_bufferIndex:z,_index:D,line:W,column:G,offset:Q}}function v(z){i[z.line]=z.column,S()}function E(){let z;for(;r._index<o.length;){const D=o[r._index];if(typeof D=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<D.length;)m(D.charCodeAt(r._bufferIndex));else m(D)}}function m(z){f=f(z)}function y(z){B(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,S()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=z}function x(z,D){const W=D||{};return W.type=z,W.start=g(),u.events.push(["enter",W,u]),s.push(W),W}function P(z){const D=s.pop();return D.end=g(),u.events.push(["exit",D,u]),D}function T(z,D){I(z,D.from)}function C(z,D){D.restore()}function N(z,D){return W;function W(G,Q,pe){let ue,O,M,k;return Array.isArray(G)?Z(G):"tokenize"in G?Z([G]):q(G);function q(ie){return yt;function yt(Ft){const zn=Ft!==null&&ie[Ft],An=Ft!==null&&ie.null,ji=[...Array.isArray(zn)?zn:zn?[zn]:[],...Array.isArray(An)?An:An?[An]:[]];return Z(ji)(Ft)}}function Z(ie){return ue=ie,O=0,ie.length===0?pe:w(ie[O])}function w(ie){return yt;function yt(Ft){return k=b(),M=ie,ie.partial||(u.currentConstruct=ie),ie.name&&u.parser.constructs.disable.null.includes(ie.name)?st():ie.tokenize.call(D?Object.assign(Object.create(u),D):u,a,ve,st)(Ft)}}function ve(ie){return z(M,k),Q}function st(ie){return k.restore(),++O<ue.length?w(ue[O]):pe}}}function I(z,D){z.resolveAll&&!l.includes(z)&&l.push(z),z.resolve&&Xe(u.events,D,u.events.length-D,z.resolve(u.events.slice(D),u)),z.resolveTo&&(u.events=z.resolveTo(u.events,u))}function b(){const z=g(),D=u.previous,W=u.currentConstruct,G=u.events.length,Q=Array.from(s);return{from:G,restore:pe};function pe(){r=z,u.previous=D,u.currentConstruct=W,u.events.length=G,s=Q,S()}}function S(){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(ak)};return r;function i(l){return o;function o(s){return kk(r,l,s)}}}function Ek(e){for(;!Dh(e););return e}const yf=/[\0\t\n\r]/g;function Nk(){let e=1,t="",n=!0,r;return i;function i(l,o,s){const a=[];let u,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(yf.lastIndex=c,u=yf.exec(l),d=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(d),!u){t=l.slice(c);break}if(p===10&&c===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<d&&(a.push(l.slice(c,d)),e+=d-c),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}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 mu(n)||e}const Vh={}.hasOwnProperty;function Tk(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ik(n)(Ek(Ck(n).document().write(Nk()(e,t,!0))))}function Ik(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Tu),autolinkProtocol:b,autolinkEmail:b,atxHeading:l(bu),blockQuote:l(An),characterEscape:b,characterReference:b,codeFenced:l(ji),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(ji,o),codeText:l(Cm,o),codeTextData:b,data:b,codeFlowValue:b,definition:l(Em),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Nm),hardBreakEscape:l(Pu),hardBreakTrailing:l(Pu),htmlFlow:l(ju,o),htmlFlowData:b,htmlText:l(ju,o),htmlTextData:b,image:l(bm),label:o,link:l(Tu),listItem:l(Pm),listItemValue:d,listOrdered:l(Iu,c),listUnordered:l(Iu),paragraph:l(jm),reference:w,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(bu),strong:l(Tm),thematicBreak:l(_m)},exit:{atxHeading:a(),atxHeadingSequence:T,autolink:a(),autolinkEmail:zn,autolinkProtocol:Ft,blockQuote:a(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:ie,characterReference:yt,codeFenced:a(E),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:a(m),codeText:a(Q),codeTextData:S,data:S,definition:a(),definitionDestinationString:P,definitionLabelString:y,definitionTitleString:x,emphasis:a(),hardBreakEscape:a(D),hardBreakTrailing:a(D),htmlFlow:a(W),htmlFlowData:S,htmlText:a(G),htmlTextData:S,image:a(ue),label:M,labelText:O,lineEnding:z,link:a(pe),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ve,resourceDestinationString:k,resourceTitleString:q,resource:Z,setextHeading:a(I),setextHeadingLineSequence:N,setextHeadingText:C,strong:a(),thematicBreak:a()}};Hh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let A={type:"root",children:[]};const U={stack:[A],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:f,data:n},K=[];let ee=-1;for(;++ee<j.length;)if(j[ee][1].type==="listOrdered"||j[ee][1].type==="listUnordered")if(j[ee][0]==="enter")K.push(ee);else{const at=K.pop();ee=i(j,at,ee)}for(ee=-1;++ee<j.length;){const at=t[j[ee][0]];Vh.call(at,j[ee][1].type)&&at[j[ee][1].type].call(Object.assign({sliceSerialize:j[ee][2].sliceSerialize},U),j[ee][1])}if(U.tokenStack.length>0){const at=U.tokenStack[U.tokenStack.length-1];(at[1]||xf).call(U,void 0,at[0])}for(A.position={start:Bt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Bt(j.length>0?j[j.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(j,A,U){let K=A-1,ee=-1,at=!1,dn,Nt,wr,Sr;for(;++K<=U;){const We=j[K];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?ee++:ee--,Sr=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(dn&&!Sr&&!ee&&!wr&&(wr=K),Sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sr=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 On=K;for(Nt=void 0;On--;){const bt=j[On];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;Nt&&(j[Nt][1].type="lineEndingBlank",at=!0),bt[1].type="lineEnding",Nt=On}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}wr&&(!Nt||wr<Nt)&&(dn._spread=!0),dn.end=Object.assign({},Nt?j[Nt][1].start:We[1].end),j.splice(Nt||K,0,["exit",dn,We[2]]),K++,U++}if(We[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};dn=On,j.splice(K,0,["enter",On,We[2]]),K++,U++,wr=void 0,Sr=!0}}}return j[A][1]._spread=at,U}function l(j,A){return U;function U(K){s.call(this,j(K),K),A&&A.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(j,A,U){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([A,U||void 0]),j.position={start:Bt(A.start),end:void 0}}function a(j){return A;function A(U){j&&j.call(this,U),u.call(this,U)}}function u(j,A){const U=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==j.type&&(A?A.call(this,j,K[0]):(K[1]||xf).call(this,j,K[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kr({start:j.start,end:j.end})+"): it’s not open");U.position.end=Bt(j.end)}function f(){return hu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(j){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),A=this.stack[this.stack.length-1];A.lang=j}function g(){const j=this.resume(),A=this.stack[this.stack.length-1];A.meta=j}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),A=this.stack[this.stack.length-1];A.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const j=this.resume(),A=this.stack[this.stack.length-1];A.value=j.replace(/(\r?\n|\r)$/g,"")}function y(j){const A=this.resume(),U=this.stack[this.stack.length-1];U.label=A,U.identifier=mt(this.sliceSerialize(j)).toLowerCase()}function x(){const j=this.resume(),A=this.stack[this.stack.length-1];A.title=j}function P(){const j=this.resume(),A=this.stack[this.stack.length-1];A.url=j}function T(j){const A=this.stack[this.stack.length-1];if(!A.depth){const U=this.sliceSerialize(j).length;A.depth=U}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function N(j){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function b(j){const U=this.stack[this.stack.length-1].children;let K=U[U.length-1];(!K||K.type!=="text")&&(K=Im(),K.position={start:Bt(j.start),end:void 0},U.push(K)),this.stack.push(K)}function S(j){const A=this.stack.pop();A.value+=this.sliceSerialize(j),A.position.end=Bt(j.end)}function z(j){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=A.children[A.children.length-1];U.position.end=Bt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(b.call(this,j),S.call(this,j))}function D(){this.data.atHardBreak=!0}function W(){const j=this.resume(),A=this.stack[this.stack.length-1];A.value=j}function G(){const j=this.resume(),A=this.stack[this.stack.length-1];A.value=j}function Q(){const j=this.resume(),A=this.stack[this.stack.length-1];A.value=j}function pe(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=A,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ue(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=A,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function O(j){const A=this.sliceSerialize(j),U=this.stack[this.stack.length-2];U.label=Pk(A),U.identifier=mt(A).toLowerCase()}function M(){const j=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 K=j.children;U.children=K}else U.alt=A}function k(){const j=this.resume(),A=this.stack[this.stack.length-1];A.url=j}function q(){const j=this.resume(),A=this.stack[this.stack.length-1];A.title=j}function Z(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ve(j){const A=this.resume(),U=this.stack[this.stack.length-1];U.label=A,U.identifier=mt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function st(j){this.data.characterReferenceType=j.type}function ie(j){const A=this.sliceSerialize(j),U=this.data.characterReferenceType;let K;U?(K=Rh(A,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=mu(A);const ee=this.stack[this.stack.length-1];ee.value+=K}function yt(j){const A=this.stack.pop();A.position.end=Bt(j.end)}function Ft(j){S.call(this,j);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(j)}function zn(j){S.call(this,j);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(j)}function An(){return{type:"blockquote",children:[]}}function ji(){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 bu(){return{type:"heading",depth:0,children:[]}}function Pu(){return{type:"break"}}function ju(){return{type:"html",value:""}}function bm(){return{type:"image",title:null,url:"",alt:null}}function Tu(){return{type:"link",title:null,url:"",children:[]}}function Iu(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Pm(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function jm(){return{type:"paragraph",children:[]}}function Tm(){return{type:"strong",children:[]}}function Im(){return{type:"text",value:""}}function _m(){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):_k(e,r)}}function _k(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 xf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kr({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=kr(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 a={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,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}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:kr(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:kr(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:kr(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:kr(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 a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
|
|
78
|
-
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}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=cu(t.children[1]),a=Nh(t.children[t.children.length-1]);s&&a&&(o.position={start:s,end:a}),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 a=-1;const u=[];for(;++a<s;){const c=t.children[a],d={},p=o?o[a]:void 0;p&&(d.align=p);let g={type:"element",tagName:l,properties:d,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!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 vf=9,kf=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(wf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(wf(t.slice(i),i>0,!1)),l.join("")}function wf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===vf||l===kf;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===vf||l===kf;)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:qi,yaml:qi,definition:qi,footnoteDefinition:qi};function qi(){}const qh=-1,uo=0,Xr=1,Bl=2,yu=3,xu=4,vu=5,ku=6,Kh=7,Yh=8,Sf=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 uo:case qh:return n(o,i);case Xr:{const s=n([],i);for(const a of o)s.push(r(a));return s}case Bl:{const s=n({},i);for(const[a,u]of o)s[r(a)]=r(u);return s}case yu:return n(new Date(o),i);case xu:{const{source:s,flags:a}=o;return n(new RegExp(s,a),i)}case vu:{const s=n(new Map,i);for(const[a,u]of o)s.set(r(a),r(u));return s}case ku:{const s=n(new Set,i);for(const a of o)s.add(r(a));return s}case Kh:{const{name:s,message:a}=o;return n(new Sf[s](a),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 Sf[l](o),i)};return r},Cf=e=>lw(new Map,e)(0),Fn="",{toString:ow}={},{keys:sw}=Object,Lr=e=>{const t=typeof e;if(t!=="object"||!e)return[uo,t];const n=ow.call(e).slice(8,-1);switch(n){case"Array":return[Xr,Fn];case"Object":return[Bl,Fn];case"Date":return[yu,Fn];case"RegExp":return[xu,Fn];case"Map":return[vu,Fn];case"Set":return[ku,Fn];case"DataView":return[Xr,n]}return n.includes("Array")?[Xr,n]:n.includes("Error")?[Kh,n]:[Bl,n]},Ki=([e,t])=>e===uo&&(t==="function"||t==="symbol"),aw=(e,t,n,r)=>{const i=(o,s)=>{const a=r.push(o)-1;return n.set(s,a),a},l=o=>{if(n.has(o))return n.get(o);let[s,a]=Lr(o);switch(s){case uo:{let f=o;switch(a){case"bigint":s=Yh,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([qh],o)}return i([s,f],o)}case Xr:{if(a){let d=o;return a==="DataView"?d=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(o)),i([a,[...d]],o)}const f=[],c=i([s,f],o);for(const d of o)f.push(l(d));return c}case Bl:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,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||!Ki(Lr(o[d])))&&f.push([l(d),l(o[d])]);return c}case yu:return i([s,o.toISOString()],o);case xu:{const{source:f,flags:c}=o;return i([s,{source:f,flags:c}],o)}case vu:{const f=[],c=i([s,f],o);for(const[d,p]of o)(e||!(Ki(Lr(d))||Ki(Lr(p))))&&f.push([l(d),l(p)]);return c}case ku:{const f=[],c=i([s,f],o);for(const d of o)(e||!Ki(Lr(d)))&&f.push(l(d));return c}}const{message:u}=o;return i([s,{name:a,message:u}],o)};return l},Ef=(e,{json:t,lossy:n}={})=>{const r=[];return aw(!(t||n),!!t,new Map,r)(e),r},Ul=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Cf(Ef(e,t)):structuredClone(e):(e,t)=>Cf(Ef(e,t));function uw(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||uw,r=e.options.footnoteBackLabel||cw,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=kr(c.toLowerCase());let p=0;const g=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++p<=v;){g.length>0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(a,p);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const y=E.children[E.children.length-1];y&&y.type==="text"?y.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else f.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ul(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 co=function(e){if(e==null)return mw;if(typeof e=="function")return fo(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]=co(e[n]);return fo(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 fo(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 fo(t);function t(n){return n&&n.type===e}}function fo(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,ia=!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=co(i),o=r?-1:1;s(e,void 0,[])();function s(a,u,f){const c=a&&typeof a=="object"?a:{};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 ("+(a.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=Xh,g,v,E;if((!t||l(a,u,f[f.length-1]||void 0))&&(p=vw(n(a,f)),p[0]===ia))return p;if("children"in a&&a.children){const m=a;if(m.children&&p[0]!==xw)for(v=(r?m.children.length:-1)+o,E=f.concat(m);v>-1&&v<m.children.length;){const y=m.children[v];if(g=s(y,v,E)(),g[0]===ia)return g;v=typeof g[1]=="number"?g[1]:v+o}}return p}}}function vw(e){return Array.isArray(e)?e:typeof e=="number"?[yw,e]:e==null?Xh:[e]}function wu(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(a,u){const f=u[u.length-1],c=f?f.children.indexOf(a):void 0;return o(a,c,f)}}const la={}.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:u,applyData:Cw,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:a,options:n,patch:Sw,wrap:Nw};return wu(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 a(f,c){const d=f.type,p=s.handlers[d];if(la.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:v,...E}=f,m=Ul(E);return m.children=s.all(f),m}return Ul(f)}return(s.options.unknownHandler||Ew)(s,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const g=s.one(d[p],f);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Nf(g.value)),!Array.isArray(g)&&g.type==="element")){const v=g.children[0];v&&v.type==="text"&&(v.value=Nf(v.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}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,Ul(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&&!(la.call(n,"hProperties")||la.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 Nf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bf(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=bf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bf(n,{file:r,...e||t})}}function Pf(e){if(e)throw e}var cl=Object.prototype.hasOwnProperty,Jh=Object.prototype.toString,jf=Object.defineProperty,Tf=Object.getOwnPropertyDescriptor,If=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=cl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&cl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||cl.call(t,i)},Lf=function(t,n){jf&&n.name==="__proto__"?jf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Rf=function(t,n){if(n==="__proto__")if(cl.call(t,n)){if(Tf)return Tf(t,n).value}else return;return t[n]},Pw=function e(){var t,n,r,i,l,o,s=arguments[0],a=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=Rf(s,n),i=Rf(t,n),s!==i&&(f&&i&&(_f(i)||(l=If(i)))?(l?(l=!1,o=r&&If(r)?r:[]):o=r&&_f(r)?r:{},Lf(s,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Lf(s,{name:n,newValue:i}));return s};const Ho=ua(Pw);function oa(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(a,...u){const f=e[++l];let c=-1;if(a){o(a);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Tw(f,s)(...u):o(null,...u)}}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 a;s&&o.push(i);try{a=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const kt={basename:Iw,dirname:_w,extname:Lw,join:Rw,sep:"/"};function Iw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Pi(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 _w(e){if(Pi(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){Pi(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;)Pi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":zw(n)}function zw(e){Pi(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,a;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(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),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 Pi(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 sa(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(!sa(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 Wo=["history","path","basename","stem","extname","dirname"];class Zh{constructor(t){let n;t?sa(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<Wo.length;){const l=Wo[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)Wo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?kt.basename(this.path):void 0}set basename(t){qo(t,"basename"),Qo(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){zf(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(Qo(t,"extname"),zf(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){sa(t)&&(t=Fw(t)),qo(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){qo(t,"stem"),Qo(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 Qo(e,t){if(e&&e.includes(kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kt.sep+"`")}function qo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zf(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 Su 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 Su;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ho(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xo("data",this.frozen),this.namespace[t]=n,this):$w.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xo("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=Yi(t),r=this.parser||this.Parser;return Ko("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ko("process",this.parser||this.Parser),Yo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const s=Yi(t),a=r.parse(s);r.run(a,s,function(f,c,d){if(f||!c||!d)return u(f);const p=c,g=r.stringify(p,d);Ww(g)?d.value=g:d.result=g,u(f,d)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ko("processSync",this.parser||this.Parser),Yo("processSync",this.compiler||this.Compiler),this.process(t,i),Of("processSync","process",n),r;function i(l,o){n=!0,Pf(l),r=o}}run(t,n,r){Af(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 a=Yi(n);i.run(t,a,u);function u(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),Of("runSync","run",r),i;function l(o,s){Pf(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Yi(n),i=this.compiler||this.Compiler;return Yo("stringify",i),Af(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Xo("use",this.frozen),t!=null)if(typeof t=="function")a(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(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;a(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(i.settings=Ho(!0,i.settings,u.settings))}function s(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[p,...g]=f;const v=r[d][1];oa(v)&&oa(p)&&(p=Ho(!0,v,p)),r[d]=[u,p,...g]}}}}const Vw=new Su().freeze();function Ko(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xo(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 Af(e){if(!oa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Of(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yi(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",Df=[],Ff={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 fl(e){const t=Xw(e),n=Gw(e);return Jw(t.runSync(t.parse(n),n),e)}function Xw(e){const t=e.rehypePlugins||Df,n=e.remarkPlugins||Df,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ff}:Ff;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,a=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 wu(e,u),mv(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function u(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 Uo)if(Object.hasOwn(Uo,p)&&Object.hasOwn(f.properties,p)){const g=f.properties[p],v=Uo[p];(v===null||v.includes(f.tagName))&&(f.properties[p]=a(String(g||""),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 Mf(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=co((n||{}).ignore||[]),l=nS(t);let o=-1;for(;++o<l.length;)Gh(e,"text",s);function s(u,f){let c=-1,d;for(;++c<f.length;){const p=f[c],g=d?d.children:void 0;if(i(p,g?g.indexOf(p):void 0,d))return;d=p}if(d)return a(u,f)}function a(u,f){const c=f[f.length-1],d=l[o][0],p=l[o][1];let g=0;const E=c.children.indexOf(u);let m=!1,y=[];d.lastIndex=0;let x=d.exec(u.value);for(;x;){const P=x.index,T={index:x.index,input:x.input,stack:[...f,u]};let C=p(...x,T);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?d.lastIndex=P+1:(g!==P&&y.push({type:"text",value:u.value.slice(g,P)}),Array.isArray(C)?y.push(...C):C&&y.push(C),g=P+x[0].length,m=!0),!d.global)break;x=d.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),c.children.splice(E,1,...y)):y=[u],E+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 Go="phrasing",Jo=["autolink","link","image","label"];function lS(){return{transforms:[dS],enter:{literalAutolink:sS,literalAutolinkEmail:Zo,literalAutolinkHttp:Zo,literalAutolinkWww:Zo},exit:{literalAutolink:fS,literalAutolinkEmail:cS,literalAutolinkHttp:aS,literalAutolinkWww:uS}}}function oS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Go,notInConstruct:Jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Go,notInConstruct:Jo}]}}function sS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Zo(e){this.config.enter.autolinkProtocol.call(this,e)}function aS(e){this.config.exit.autolinkProtocol.call(this,e)}function uS(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=Mf(e,"(");let l=Mf(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||Tn(n)||so(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 a=s.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return a+=s.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),a+=s.move((t?`
|
|
85
|
-
`:" ")+l.indentLines(l.containerFlow(r,s.current()),t?nm:jS))),u(),a}}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 IS(){return{canContainEols:["delete"],enter:{strikethrough:LS},exit:{strikethrough:RS}}}function _S(){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=[],a=[];let u=0,f=-1;for(;++f<e.length;){const v=[],E=[];let m=-1;for(e[f].length>u&&(u=e[f].length);++m<e[f].length;){const y=DS(e[f][m]);if(n.alignDelimiters!==!1){const x=i(y);E[m]=x,(a[m]===void 0||x>a[m])&&(a[m]=x)}v.push(y)}o[f]=v,s[f]=E}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=Bf(r[c]);else{const v=Bf(r);for(;++c<u;)l[c]=v}c=-1;const d=[],p=[];for(;++c<u;){const v=l[c];let E="",m="";v===99?(E=":",m=":"):v===108?E=":":v===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,a[c]-E.length-m.length);const x=E+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=E.length+y+m.length,y>a[c]&&(a[c]=y),p[c]=y),d[c]=x}o.splice(1,0,d),s.splice(1,0,p),f=-1;const g=[];for(;++f<o.length;){const v=o[f],E=s[f];c=-1;const m=[];for(;++c<u;){const y=v[c]||"";let x="",P="";if(n.alignDelimiters!==!1){const T=a[c]-(E[c]||0),C=l[c];C===114?x=" ".repeat(T):C===99?T%2?(x=" ".repeat(T/2+.5),P=" ".repeat(T/2-.5)):(x=" ".repeat(T/2),P=x):P=" ".repeat(T)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(y),n.alignDelimiters!==!1&&m.push(P),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
86
|
-
`)}function DS(e){return e==null?"":String(e)}function Bf(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 Uf(e,t.inConstruct,!0)&&!Uf(e,t.notInConstruct,!1)}function Uf(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 $f(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),a=i.repeat(Math.max(US(l,i)+1,3)),u=n.enter("codeFenced");let f=s.move(a);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(a),u(),f}function WS(e,t,n){return(n?"":" ")+e}function Cu(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=Cu(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
92
|
-
`,...a.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),o(),u}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 yi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $l(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 a=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=a.charCodeAt(0),f=$l(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=yi(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=$l(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+yi(c));const p=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+p}function KS(e,t,n){return n.options.emphasis||"*"}function YS(e,t){let n=!1;return wu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ia}),!!((!e.depth||e.depth<3)&&hu(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"),a=n.enter("phrasing");l.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
97
|
-
`,...l.current()});return/^[\t ]/.test(u)&&(u=yi(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),a(),s(),u}lm.peek=GS;function lm(e){return e.value||""}function GS(){return"<"}om.peek=JS;function om(e,t,n,r){const i=Cu(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),u+=a.move(")"),o(),u}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 a=s.move("![");const u=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?a+=s.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function ZS(){return"!"}am.peek=eC;function am(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 a;if(o.atBreak)for(;a=s.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function eC(){return"`"}function um(e,t){const n=hu(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=Cu(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,a;if(um(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"),a=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(a=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),a()),u+=o.move(")"),s(),u}function tC(e,t,n){return um(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 a=s.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return o(),n.stack=f,l(),i==="full"||!u||u!==c?a+=s.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function nC(){return"["}function Eu(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=Eu(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):Eu(n);const s=e.ordered?o==="."?")":".":rC(n);let a=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&&(a=!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"){a=!0;break}}}}a&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),u}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||Eu(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 a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return a(),u;function f(c,d,p){return d?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function aC(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const uC=co(["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 uC(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 a=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const u=a.charCodeAt(0),f=$l(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=yi(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=$l(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+yi(c));const p=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+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:$f,code:HS,definition:QS,emphasis:im,hardBreak:$f,heading:XS,html:lm,image:om,imageReference:sm,inlineCode:am,link:cm,linkReference:fm,list:lC,listItem:sC,paragraph:aC,root:cC,strong:pm,text:pC,thematicBreak:mC};function gC(){return{enter:{table:yC,tableData:Vf,tableHeader:Vf,tableRow:vC},exit:{codeText:kC,table:xC,tableData:es,tableHeader:es,tableRow:es}}}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 es(e){this.exit(e)}function Vf(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:a,tableRow:s}};function o(p,g,v,E){return u(f(p,v,E),p.align)}function s(p,g,v,E){const m=c(p,v,E),y=u([m]);return y.slice(0,y.indexOf(`
|
|
99
|
-
`))}function a(p,g,v,E){const m=v.enter("tableCell"),y=v.enter("phrasing"),x=v.containerPhrasing(p,{...E,before:l,after:l});return y(),m(),x}function u(p,g){return OS(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(p,g,v){const E=p.children;let m=-1;const y=[],x=g.enter("table");for(;++m<E.length;)y[m]=c(E[m],g,v);return x(),y}function c(p,g,v){const E=p.children;let m=-1;const y=[],x=g.enter("tableRow");for(;++m<E.length;)y[m]=a(E[m],p,g,v);return x(),y}function d(p,g,v){let E=hm.inlineCode(p,g,v);return v.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function CC(){return{exit:{taskListCheckValueChecked:Hf,taskListCheckValueUnchecked:Hf,paragraph:NC}}}function EC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bC}}}function Hf(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 a=hm.listItem(e,t,n,{...r,...s.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(f){return f+o}}function PC(){return[lS(),bS(),IS(),gC(),CC()]}function jC(e){return{extensions:[oS(),PS(e),_S(),SC(e),EC()]}}const TC={tokenize:AC,partial:!0},mm={tokenize:OC,partial:!0},gm={tokenize:DC,partial:!0},ym={tokenize:FC,partial:!0},IC={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 _C(){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!aa(c)||!Sm.call(r,r.previous)||Nu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return aa(c)?(e.consume(c),s):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(IC,f,u)(c):c===45||c===95||Ie(c)?(l=!0,e.consume(c),a):f(c)}function u(c){return e.consume(c),i=!0,a}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)||Nu(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)&&!Nu(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),a}return n(c)}function a(c){return c===47?(e.consume(c),l?u:(l=!0,a)):n(c)}function u(c){return c===null||Ml(c)||te(c)||Tn(c)||so(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(u){return u===46||u===95?e.check(ym,a,s)(u):u===null||te(u)||Tn(u)||u!==45&&so(u)?a(u):(l=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function a(u){return i||r||!l?n(u):t(u)}}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)||Tn(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)||Tn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||te(s)||Tn(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 Ie(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||aa(e))}function aa(e){return e===43||e===45||e===46||e===95||Ie(e)}function Nu(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 a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return s;function s(a){if(!o||!o._balanced)return n(a);const u=mt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}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"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(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:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function WC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,s;return a;function a(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(o>999||g===93&&!s||g===null||g===91||te(g))return n(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return l=mt(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return te(g)||(s=!0),o++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(l)||i.push(l),Y(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function QC(e,t,n){return e.check(bi,t,e.attempt(BC,t,n))}function qC(e){e.exit("gfmFootnoteDefinition")}function KC(e,t,n){const r=this;return Y(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 a=-1;for(;++a<o.length;)if(o[a][0]==="enter"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._close){let u=a;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[a][1].end.offset-o[a][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[a][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[a][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[a][1].start)},d=[["enter",f,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&Xe(d,d.length,0,ao(p,o.slice(u+1,a),s)),Xe(d,d.length,0,[["exit",c,s],["enter",o[a][1],s],["exit",o[a][1],s],["exit",f,s]]),Xe(o,u-1,a-u+3,d),a=u+d.length-2;break}}for(a=-1;++a<o.length;)o[a][1].type==="strikethroughSequenceTemporary"&&(o[a][1].type="data");return o}function l(o,s,a){const u=this.previous,f=this.events;let c=0;return d;function d(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const v=pr(u);if(g===126)return c>1?a(g):(o.consume(g),c++,p);if(c<2&&!n)return a(g);const E=o.exit("strikethroughSequenceTemporary"),m=pr(g);return E._open=!m||m===2&&!!v,E._close=!v||v===2&&!!m,s(g)}}}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(S){let z=r.events.length-1;for(;z>-1;){const G=r.events[z][1].type;if(G==="lineEnding"||G==="linePrefix")z--;else break}const D=z>-1?r.events[z][1].type:null,W=D==="tableHead"||D==="tableRow"?C:a;return W===C&&r.parser.lazy[r.now().line]?n(S):W(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?n(S):B(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),p):n(S):V(S)?Y(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||te(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?d:c)}function d(S){return S===92||S===124?(e.consume(S),c):c(S)}function p(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,V(S)?Y(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?E(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),v):T(S)}function v(S){return V(S)?Y(e,E,"whitespace")(S):E(S)}function E(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),m):S===45?(l+=1,m(S)):S===null||B(S)?P(S):T(S)}function m(S){return S===45?(e.enter("tableDelimiterFiller"),y(S)):T(S)}function y(S){return S===45?(e.consume(S),y):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(S))}function x(S){return V(S)?Y(e,P,"whitespace")(S):P(S)}function P(S){return S===124?g(S):S===null||B(S)?!o||i!==l?T(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):T(S)}function T(S){return n(S)}function C(S){return e.enter("tableRow"),N(S)}function N(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),N):S===null||B(S)?(e.exit("tableRow"),t(S)):V(S)?Y(e,N,"whitespace")(S):(e.enter("data"),I(S))}function I(S){return S===null||S===124||te(S)?(e.exit("data"),N(S)):(e.consume(S),S===92?b:I)}function b(S){return S===92||S===124?(e.consume(S),I):I(S)}}function tE(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],s=!1,a=0,u,f,c;const d=new XC;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,a!==0&&(Wf(d,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.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({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Xi(d,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Xi(d,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):g.type==="tableHead"?(s=!0,a=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(a=n,l[1]!==0?(o[0]=o[1],c=Xi(d,t,l,i,n,c)):o[1]!==0&&(c=Xi(d,t,o,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(a!==0&&Wf(d,t,a,u,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 Xi(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(l.end=Object.assign({},Bn(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const a=Bn(t.events,n[1]);if(l={type:o,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=Bn(t.events,n[2]),f=Bn(t.events,n[3]),c={type:s,start:Object.assign({},u),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 g=n[2]+1,v=n[3]-n[2]-1;e.add(g,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Bn(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Wf(e,t,n,r,i){const l=[],o=Bn(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 Bn(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(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return te(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):n(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(a)}function s(a){return B(a)?t(a):V(a)?e.check({tokenize:lE},t,n)(a):n(a)}}function lE(e,t,n){return Y(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function oE(e){return Lh([_C(),UC(),YC(e),ZC(),rE()])}const sE={};function dl(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 aE={comment:"💬",suggestion:"💡",question:"❓",issue:"🚨"},uE={low:"bg-gray-100 text-gray-600",medium:"bg-yellow-100 text-yellow-700",high:"bg-red-100 text-red-700"};function cE(){var C;const{id:e}=Dx(),{lastMessage:t}=xr(),[n,r]=_.useState(null),[i,l]=_.useState([]),[o,s]=_.useState(null),[a,u]=_.useState(!0),[f,c]=_.useState("proposal"),[d,p]=_.useState(!1),[g,v]=_.useState({proposal:[],design:[],tasks:[],summary:null});_.useEffect(()=>{async function N(){if(e)try{const[I,b,S]=await Promise.all([yn.get(e),Dr.get(e),yn.getReviews(e)]);r(I.change),l(b.tasks),s(b.progress),v(S)}catch(I){console.error("Failed to fetch change:",I)}finally{u(!1)}}N()},[e]),_.useEffect(()=>{if(!t||!e)return;const{event:N,data:I}=t;if(N==="review:added"&&I.changeId===e){const b=I.targetType;b&&I.review&&v(S=>({...S,[b]:[...S[b],I.review]}))}if(N==="review:resolved"&&I.changeId===e){const b=I.targetType;b&&I.reviewId&&v(S=>({...S,[b]:S[b].map(z=>z.id===I.reviewId?{...z,status:I.status||"resolved"}:z)}))}N==="reviews:updated"&&I.changeId===e&&yn.getReviews(e).then(b=>{v(b)}).catch(b=>{console.error("Failed to refresh reviews:",b)}),N==="tasks:updated"&&I.changeId===e&&Dr.get(e).then(b=>{l(b.tasks),s(b.progress)}).catch(b=>{console.error("Failed to refresh tasks:",b)}),N==="task:updated"&&I.changeId===e&&l(b=>b.map(S=>S.id===I.taskId?{...S,status:I.status}:S)),N==="change:content_updated"&&I.changeId===e&&yn.get(e).then(b=>{r(b.change)}).catch(b=>{console.error("Failed to refresh change:",b)})},[t,e]);const E=async(N,I)=>{if(e)try{await Dr.update(e,N,I);const b=await Dr.get(e);l(b.tasks),s(b.progress)}catch(b){console.error("Failed to update task:",b)}},m=async(N,I)=>{if(e)try{await yn.resolveReview(e,N,I),v(b=>({...b,[I]:b[I].map(S=>S.id===N?{...S,status:"resolved"}:S)}))}catch(b){console.error("Failed to resolve review:",b)}};if(a)return h.jsx("div",{className:"flex justify-center items-center h-64",children:h.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})});if(!n)return h.jsxs("div",{className:"text-center py-12",children:[h.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Change not found"}),h.jsx(rn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 mt-2 inline-block",children:"← Back to changes"})]});const y=g[f].filter(N=>N.status==="open"),x=g[f].filter(N=>N.status!=="open"),P=d?x:y,T=((C=g.summary)==null?void 0:C.hasBlockingIssues)||!1;return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex justify-between items-start",children:[h.jsxs("div",{children:[h.jsx(rn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 text-sm",children:"← Back to changes"}),h.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-2",children:n.title}),h.jsx("p",{className:"text-gray-500",children:n.id})]}),h.jsxs("div",{className:"flex items-center space-x-2",children:[T&&h.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),g.summary&&g.summary.open>0&&h.jsxs("span",{className:"px-3 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium",children:[g.summary.open," open reviews"]}),h.jsx("span",{className:`status-badge ${n.status==="active"?"status-implementing":"status-completed"}`,children:n.status})]})]}),o&&h.jsxs("div",{className:"bg-white rounded-lg shadow p-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Progress"}),h.jsxs("span",{className:"text-sm text-gray-500",children:[o.completed,"/",o.total," tasks (",o.percentage,"%)"]})]}),h.jsx("div",{className:"w-full h-3 bg-gray-200 rounded-full",children:h.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-300",style:{width:`${o.percentage}%`}})}),h.jsxs("div",{className:"flex justify-between mt-2 text-xs text-gray-500",children:[h.jsxs("span",{children:["✅ ",o.completed," done"]}),h.jsxs("span",{children:["🔄 ",o.inProgress," in progress"]}),h.jsxs("span",{children:["⏳ ",o.pending," pending"]})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[h.jsxs("div",{className:"lg:col-span-3",children:[h.jsx("div",{className:"border-b border-gray-200",children:h.jsx("nav",{className:"flex space-x-8",children:["proposal","tasks","design"].map(N=>{const I=g[N].filter(b=>b.status==="open");return h.jsxs("button",{onClick:()=>c(N),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center ${f===N?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[N.charAt(0).toUpperCase()+N.slice(1),I.length>0&&h.jsx("span",{className:"ml-2 bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full text-xs",children:I.length})]},N)})})}),h.jsxs("div",{className:"bg-white rounded-lg shadow mt-4",children:[f==="proposal"&&h.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.proposal?h.jsx(fl,{remarkPlugins:[dl],children:n.proposal}):h.jsx("p",{className:"text-gray-500",children:"No proposal content."})}),f==="tasks"&&h.jsx("div",{className:"p-6",children:i.length===0?h.jsx("p",{className:"text-gray-500",children:"No tasks defined."}):h.jsx("div",{className:"space-y-2",children:i.map(N=>h.jsxs("div",{className:"flex items-center justify-between p-3 rounded border hover:bg-gray-50",children:[h.jsxs("div",{className:"flex items-center space-x-3",children:[h.jsxs("button",{onClick:()=>{const I=N.status==="pending"?"in_progress":N.status==="in_progress"?"done":"pending";E(N.id,I)},className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${N.status==="done"?"bg-green-500 border-green-500 text-white":N.status==="in_progress"?"bg-blue-500 border-blue-500 text-white":"border-gray-300"}`,children:[N.status==="done"&&"✓",N.status==="in_progress"&&"●"]}),h.jsxs("div",{children:[h.jsxs("span",{className:"font-mono text-sm text-gray-500",children:["[",N.id,"]"]}),h.jsx("span",{className:"ml-2",children:N.title})]})]}),h.jsx("span",{className:`text-xs ${N.status==="done"?"text-green-600":N.status==="in_progress"?"text-blue-600":"text-gray-400"}`,children:N.status})]},N.id))})}),f==="design"&&h.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.design?h.jsx(fl,{remarkPlugins:[dl],children:n.design}):h.jsx("p",{className:"text-gray-500",children:"No design document."})})]})]}),h.jsx("div",{className:"lg:col-span-1 h-[calc(100vh-200px)]",children:h.jsxs("div",{className:"bg-white rounded-lg shadow h-full flex flex-col",children:[h.jsxs("div",{className:"p-4 border-b border-gray-200",children:[h.jsxs("h3",{className:"font-semibold text-gray-700 mb-2",children:["Reviews ",h.jsxs("span",{className:"text-xs text-gray-400",children:["for ",f]})]}),h.jsxs("div",{className:"flex space-x-1",children:[h.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,")"]}),h.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,")"]})]})]}),h.jsx("div",{className:"flex-1 p-4 space-y-3 overflow-y-auto",children:P.length===0?h.jsxs("div",{className:"text-center py-8",children:[h.jsx("p",{className:"text-sm text-gray-400",children:d?"No resolved reviews":"No open reviews"}),!d&&h.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Use ",h.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_add_review"})]})]}):P.map(N=>h.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-200 group hover:border-blue-300 transition-colors",children:[h.jsxs("div",{className:"flex justify-between items-start mb-2",children:[h.jsxs("div",{className:"flex items-center space-x-1",children:[h.jsx("span",{className:"text-lg",children:aE[N.type]}),N.severity&&h.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${uE[N.severity]}`,children:N.severity}),N.lineNumber&&h.jsxs("span",{className:"text-xs text-gray-400",children:["L",N.lineNumber]})]}),N.status==="open"?h.jsx("button",{onClick:()=>m(N.id,f),className:"text-green-500 hover:text-green-700 opacity-0 group-hover:opacity-100 transition-opacity",title:"Resolve",children:"✓"}):h.jsx("span",{className:`text-xs px-2 py-0.5 rounded ${N.status==="resolved"?"bg-green-100 text-green-600":"bg-gray-100 text-gray-500"}`,children:N.status==="resolved"?"✓ resolved":"⏭️ won't fix"})]}),h.jsx("div",{className:"prose prose-xs max-w-none text-gray-700 break-words overflow-hidden prose-p:my-1 prose-ul:my-1 prose-li:my-0 prose-code:break-all prose-code:text-xs",children:h.jsx(fl,{remarkPlugins:[dl],children:N.body})}),h.jsxs("div",{className:"text-xs text-gray-400 mt-2",children:["by ",N.author," • ",new Date(N.createdAt).toLocaleDateString()]})]},N.id))})]})})]})]})}const Qf={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{lastMessage:e}=xr(),[t,n]=_.useState([]),[r,i]=_.useState(!0),[l,o]=_.useState(null),[s,a]=_.useState([]),[u,f]=_.useState(null),[c,d]=_.useState(""),[p,g]=_.useState("comment"),[v,E]=_.useState("medium"),m=_.useRef(null),y=async()=>{try{const b=await gn.list();n(b.specs)}catch(b){console.error("Failed to fetch specs:",b)}};_.useEffect(()=>{y().finally(()=>i(!1))},[]),_.useEffect(()=>{if(!e)return;const{event:b,data:S}=e;(b==="file:changed"||b==="reviews:updated")&&(y(),l&&b==="reviews:updated"&&(S==null?void 0:S.targetType)==="spec"&&gn.listReviews(l.id).then(z=>{a(z.reviews)}).catch(console.error))},[e,l]);const x=async b=>{try{const S=await gn.get(b);o(S.spec),f(null),d("");const z=await gn.listReviews(b);a(z.reviews)}catch(S){console.error("Failed to fetch spec:",S)}},P=()=>{const b=window.getSelection(),S=m.current;if(!b||b.isCollapsed||!S){f(null);return}const z=b.getRangeAt(0),D=k=>{var q;return k.nodeType===Node.ELEMENT_NODE?!!k.closest("[data-review-overlay]"):!!((q=k==null?void 0:k.parentElement)!=null&&q.closest("[data-review-overlay]"))};if(!S.contains(z.startContainer)||!S.contains(z.endContainer)||D(z.startContainer)||D(z.endContainer)){f(null);return}const W=b.toString();if(!W.trim()){f(null);return}const G=z.cloneRange();G.selectNodeContents(S),G.setEnd(z.startContainer,z.startOffset);const pe=(G.toString().match(/\n/g)||[]).length+1,ue=S.getBoundingClientRect(),O=z.getBoundingClientRect(),M=Math.max(O.top-ue.top+S.scrollTop-180,12);f({text:W,lineNumber:pe,popupTop:M})},T=async()=>{const b=c.trim();if(!(!u||!b||!l))try{const S=await gn.addReview(l.id,b,p,{lineNumber:u.lineNumber,severity:p==="issue"?v:void 0});a(z=>[...z,S.review]),f(null),d("")}catch(S){console.error("Failed to add review:",S),alert("Failed to save review")}},C=async(b,S="resolved")=>{if(l)try{await gn.resolveReview(l.id,b,S),a(z=>z.map(D=>D.id===b?{...D,status:S,resolvedAt:new Date().toISOString()}:D))}catch(z){console.error("Failed to resolve review:",z)}};if(r)return h.jsx("div",{className:"flex justify-center items-center h-64",children:h.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"})});const N=s.filter(b=>b.status==="open"),I=N.some(b=>b.type==="issue"&&b.severity==="high");return h.jsxs("div",{className:"space-y-6 h-[calc(100vh-120px)] flex flex-col",children:[h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Specifications"}),l&&N.length>0&&h.jsxs("div",{className:"flex items-center space-x-2",children:[I&&h.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),h.jsxs("span",{className:"text-sm text-gray-500",children:[N.length," open review",N.length!==1?"s":""]})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 flex-1 min-h-0",children:[h.jsx("div",{className:"lg:col-span-3 bg-white rounded-xl shadow-sm border border-gray-100 overflow-y-auto",children:t.length===0?h.jsx("div",{className:"p-8 text-center text-gray-500",children:"No specs found."}):h.jsx("div",{className:"divide-y divide-gray-50",children:t.map(b=>h.jsxs("button",{onClick:()=>x(b.id),className:`w-full text-left p-4 hover:bg-gray-50 transition-colors ${(l==null?void 0:l.id)===b.id?"bg-indigo-50 border-l-4 border-indigo-500":"border-l-4 border-transparent"}`,children:[h.jsx("div",{className:"font-semibold text-gray-900",children:b.title}),h.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono",children:b.id})]},b.id))})}),h.jsx("div",{className:"lg:col-span-6 bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col min-h-0",children:l?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"p-4 border-b border-gray-100 bg-gray-50/50 rounded-t-xl flex justify-between items-center",children:h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:l.title}),h.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:"Select text to add review comment"})]})}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-6 relative",ref:m,onMouseUp:P,children:[h.jsx("div",{className:"prose prose-sm max-w-none prose-headings:font-bold prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-code:bg-gray-100 prose-code:px-1 prose-code:rounded prose-pre:bg-gray-50",children:h.jsx(fl,{remarkPlugins:[dl],children:l.content})}),u&&h.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:[h.jsx("div",{className:"text-xs font-semibold text-gray-500 mb-2 uppercase tracking-wider flex justify-between items-center",children:h.jsxs("span",{children:["Add Review (Line ",u.lineNumber,")"]})}),h.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?"...":"",'"']}),h.jsx("div",{className:"flex space-x-1 mb-2",children:["comment","suggestion","question","issue"].map(b=>h.jsxs("button",{onClick:()=>g(b),className:`px-2 py-1 text-xs rounded ${p===b?"bg-indigo-600 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[Qf[b]," ",b]},b))}),p==="issue"&&h.jsx("div",{className:"flex space-x-1 mb-2",children:["low","medium","high"].map(b=>h.jsx("button",{onClick:()=>E(b),className:`px-2 py-1 text-xs rounded ${v===b?qf[b]+" ring-2 ring-offset-1":"bg-gray-100 text-gray-600"}`,children:b},b))}),h.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:c,onChange:b=>d(b.target.value)}),h.jsxs("div",{className:"flex justify-end space-x-2",children:[h.jsx("button",{onClick:()=>f(null),className:"px-3 py-1 text-xs text-gray-600 hover:bg-gray-100 rounded",children:"Cancel"}),h.jsx("button",{onClick:T,className:"px-3 py-1 text-xs bg-indigo-600 text-white rounded hover:bg-indigo-700 font-medium",children:"Add Review"})]})]})]})]}):h.jsxs("div",{className:"flex-1 flex flex-col justify-center items-center text-gray-400 p-8",children:[h.jsx("svg",{className:"w-16 h-16 mb-4 opacity-20",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})}),h.jsx("p",{children:"Select a specification to view and review"})]})}),h.jsxs("div",{className:"lg:col-span-3 bg-gray-50 rounded-xl border border-gray-200 flex flex-col min-h-0",children:[h.jsx("div",{className:"p-4 border-b border-gray-200 bg-white rounded-t-xl",children:h.jsxs("h3",{className:"font-semibold text-gray-700 flex items-center",children:[h.jsx("span",{children:"Reviews"}),h.jsx("span",{className:"ml-2 bg-gray-200 text-gray-600 px-2 py-0.5 rounded-full text-xs",children:N.length})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:N.length===0?h.jsxs("div",{className:"text-center py-10",children:[h.jsx("p",{className:"text-sm text-gray-400",children:"No reviews yet."}),h.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Select text in the spec to add one."})]}):N.map(b=>h.jsxs("div",{className:"bg-white p-3 rounded-lg shadow-sm border border-gray-200 group hover:border-indigo-300 transition-colors",children:[h.jsxs("div",{className:"flex justify-between items-start mb-2",children:[h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx("span",{className:"text-lg",children:Qf[b.type]}),b.severity&&h.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${qf[b.severity]}`,children:b.severity}),b.lineNumber&&h.jsxs("span",{className:"text-xs text-gray-400",children:["L",b.lineNumber]})]}),h.jsxs("div",{className:"flex space-x-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[h.jsx("button",{className:"text-green-500 hover:text-green-700 text-xs",onClick:()=>C(b.id,"resolved"),title:"Resolve",children:"✓"}),h.jsx("button",{className:"text-gray-400 hover:text-gray-600 text-xs",onClick:()=>C(b.id,"wont_fix"),title:"Won't fix",children:"×"})]})]}),h.jsx("div",{className:"text-sm text-gray-800",children:b.body}),b.replies.length>0&&h.jsxs("div",{className:"mt-2 pt-2 border-t border-gray-100 text-xs text-gray-500",children:["💭 ",b.replies.length," replies"]})]},b.id))})]})]})]})}function dE(){const{lastMessage:e}=xr(),[t,n]=_.useState([]),[r,i]=_.useState(!0),[l,o]=_.useState(!1),[s,a]=_.useState({type:null,changeId:""}),[u,f]=_.useState({name:"",comment:""});async function c(){try{const v=l?await Fr.list():await Fr.listPending();n(v.approvals)}catch(v){console.error("Failed to fetch approvals:",v)}}_.useEffect(()=>{i(!0),c().finally(()=>i(!1))},[l]),_.useEffect(()=>{if(!e)return;const{event:v}=e;["approval:requested","approval:approved","approval:rejected"].includes(v)&&c()},[e]);const d=async()=>{if(u.name)try{await Fr.approve(s.changeId,u.name,u.comment||void 0),a({type:null,changeId:""}),f({name:"",comment:""}),c()}catch(v){console.error("Failed to approve:",v)}},p=async()=>{if(!(!u.name||!u.comment))try{await Fr.reject(s.changeId,u.name,u.comment),a({type:null,changeId:""}),f({name:"",comment:""}),c()}catch(v){console.error("Failed to reject:",v)}},g=v=>({draft:"status-draft",pending_approval:"status-pending",approved:"status-approved",rejected:"status-rejected",implementing:"status-implementing",completed:"status-completed"})[v]||"status-draft";return r?h.jsx("div",{className:"flex justify-center items-center h-64",children:h.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex justify-between items-center",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Approval Queue"}),h.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[h.jsx("input",{type:"checkbox",checked:l,onChange:v=>o(v.target.checked),className:"rounded border-gray-300"}),h.jsx("span",{children:"Show all"})]})]}),t.length===0?h.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:l?"No approval records found.":"No pending approvals."}):h.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:h.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[h.jsx("thead",{className:"bg-gray-50",children:h.jsxs("tr",{children:[h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Change"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Status"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Requested"}),h.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Actions"})]})}),h.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(v=>h.jsxs("tr",{className:"hover:bg-gray-50",children:[h.jsxs("td",{className:"px-6 py-4",children:[h.jsx("div",{className:"font-medium text-gray-900",children:v.changeId}),v.requestedBy&&h.jsxs("div",{className:"text-sm text-gray-500",children:["by ",v.requestedBy]})]}),h.jsx("td",{className:"px-6 py-4",children:h.jsx("span",{className:`status-badge ${g(v.status)}`,children:v.status.replace("_"," ")})}),h.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:v.requestedAt?new Date(v.requestedAt).toLocaleString():"-"}),h.jsx("td",{className:"px-6 py-4",children:v.status==="pending_approval"&&h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:()=>a({type:"approve",changeId:v.changeId}),className:"px-3 py-1 bg-green-500 text-white text-sm rounded hover:bg-green-600",children:"Approve"}),h.jsx("button",{onClick:()=>a({type:"reject",changeId:v.changeId}),className:"px-3 py-1 bg-red-500 text-white text-sm rounded hover:bg-red-600",children:"Reject"})]})})]},v.changeId))})]})}),s.type&&h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:h.jsxs("div",{className:"bg-white rounded-lg shadow-xl p-6 w-full max-w-md",children:[h.jsx("h3",{className:"text-lg font-semibold mb-4",children:s.type==="approve"?"Approve Change":"Reject Change"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Your Name"}),h.jsx("input",{type:"text",value:u.name,onChange:v=>f({...u,name:v.target.value}),className:"w-full border rounded-md px-3 py-2",placeholder:"Enter your name"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:s.type==="approve"?"Comment (optional)":"Reason (required)"}),h.jsx("textarea",{value:u.comment,onChange:v=>f({...u,comment:v.target.value}),className:"w-full border rounded-md px-3 py-2",rows:3,placeholder:s.type==="approve"?"Optional comment...":"Explain why this is rejected..."})]})]}),h.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[h.jsx("button",{onClick:()=>{a({type:null,changeId:""}),f({name:"",comment:""})},className:"px-4 py-2 border rounded-md hover:bg-gray-50",children:"Cancel"}),h.jsx("button",{onClick:s.type==="approve"?d:p,className:`px-4 py-2 text-white rounded-md ${s.type==="approve"?"bg-green-500 hover:bg-green-600":"bg-red-500 hover:bg-red-600"}`,children:s.type==="approve"?"Approve":"Reject"})]})]})})]})}function pE(){const e=Ei(),{connected:t}=xr(),[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 h.jsxs("div",{className:"min-h-screen bg-gray-50",children:[h.jsx("header",{className:"bg-white shadow-sm",children:h.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:h.jsxs("div",{className:"flex justify-between items-center py-4",children:[h.jsxs("div",{className:"flex items-center space-x-4",children:[h.jsx("h1",{className:"text-xl font-bold text-gray-900",children:"OpenSpec MCP"}),n?h.jsx("span",{className:"text-sm text-gray-500",title:n,children:n}):null,h.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"})]}),h.jsx("nav",{className:"flex space-x-4",children:i.map(l=>h.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))})]})})}),h.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:h.jsxs(Zx,{children:[h.jsx(Mn,{path:"/",element:h.jsx(d0,{})}),h.jsx(Mn,{path:"/changes",element:h.jsx(x0,{})}),h.jsx(Mn,{path:"/changes/:id",element:h.jsx(cE,{})}),h.jsx(Mn,{path:"/specs",element:h.jsx(fE,{})}),h.jsx(Mn,{path:"/approvals",element:h.jsx(dE,{})})]})})]})}ts.createRoot(document.getElementById("root")).render(h.jsx(id.StrictMode,{children:h.jsx(o0,{children:h.jsx(pE,{})})}));
|