@polderlabs/bizar 2.6.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/cli/bin.mjs +158 -130
  2. package/cli/plan.test.mjs +2331 -0
  3. package/cli/service.mjs +309 -0
  4. package/package.json +19 -27
  5. package/cli/dashboard/api.mjs +0 -473
  6. package/cli/dashboard/browser.mjs +0 -40
  7. package/cli/dashboard/server.mjs +0 -366
  8. package/cli/dashboard/state.mjs +0 -438
  9. package/cli/dashboard/tasks-store.mjs +0 -203
  10. package/cli/dashboard/watcher.mjs +0 -81
  11. package/cli/dashboard.mjs +0 -97
  12. package/dist/assets/index-BVvY22Gt.css +0 -1
  13. package/dist/assets/index-CO3c8O32.js +0 -285
  14. package/dist/assets/index-CO3c8O32.js.map +0 -1
  15. package/dist/index.html +0 -18
  16. package/src/App.tsx +0 -233
  17. package/src/components/Button.tsx +0 -55
  18. package/src/components/Card.tsx +0 -40
  19. package/src/components/EmptyState.tsx +0 -30
  20. package/src/components/Modal.tsx +0 -137
  21. package/src/components/Spinner.tsx +0 -19
  22. package/src/components/StatusBadge.tsx +0 -25
  23. package/src/components/Tag.tsx +0 -28
  24. package/src/components/Toast.tsx +0 -142
  25. package/src/components/Topbar.tsx +0 -88
  26. package/src/index.html +0 -17
  27. package/src/lib/api.ts +0 -71
  28. package/src/lib/markdown.tsx +0 -59
  29. package/src/lib/types.ts +0 -200
  30. package/src/lib/utils.ts +0 -79
  31. package/src/lib/ws.ts +0 -132
  32. package/src/main.tsx +0 -12
  33. package/src/styles/main.css +0 -2324
  34. package/src/views/Agents.tsx +0 -199
  35. package/src/views/Chat.tsx +0 -255
  36. package/src/views/Config.tsx +0 -250
  37. package/src/views/Overview.tsx +0 -267
  38. package/src/views/Plans.tsx +0 -667
  39. package/src/views/Projects.tsx +0 -155
  40. package/src/views/Settings.tsx +0 -253
  41. package/src/views/Tasks.tsx +0 -567
  42. package/tsconfig.json +0 -23
  43. package/vite.config.ts +0 -24
@@ -1,285 +0,0 @@
1
- var km=Object.defineProperty;var wm=(e,t,n)=>t in e?km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xe=(e,t,n)=>wm(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},Bl={},Mf={exports:{}},W={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ki=Symbol.for("react.element"),Sm=Symbol.for("react.portal"),Cm=Symbol.for("react.fragment"),Em=Symbol.for("react.strict_mode"),jm=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),zm=Symbol.for("react.context"),Tm=Symbol.for("react.forward_ref"),Pm=Symbol.for("react.suspense"),Im=Symbol.for("react.memo"),Lm=Symbol.for("react.lazy"),Nu=Symbol.iterator;function _m(e){return e===null||typeof e!="object"?null:(e=Nu&&e[Nu]||e["@@iterator"],typeof e=="function"?e:null)}var Rf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ff=Object.assign,Of={};function yr(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Rf}yr.prototype.isReactComponent={};yr.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")};yr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bf(){}Bf.prototype=yr.prototype;function la(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Rf}var oa=la.prototype=new Bf;oa.constructor=la;Ff(oa,yr.prototype);oa.isPureReactComponent=!0;var zu=Array.isArray,$f=Object.prototype.hasOwnProperty,sa={current:null},Uf={key:!0,ref:!0,__self:!0,__source:!0};function Hf(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)$f.call(t,r)&&!Uf.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:ki,type:e,key:l,ref:o,props:i,_owner:sa.current}}function bm(e,t){return{$$typeof:ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function aa(e){return typeof e=="object"&&e!==null&&e.$$typeof===ki}function Dm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Tu=/\/+/g;function fo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dm(""+e.key):t.toString(36)}function Ki(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 ki:case Sm:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+fo(o,0):r,zu(i)?(n="",e!=null&&(n=e.replace(Tu,"$&/")+"/"),Ki(i,t,n,"",function(u){return u})):i!=null&&(aa(i)&&(i=bm(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Tu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",zu(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+fo(l,s);o+=Ki(l,t,n,a,i)}else if(a=_m(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+fo(l,s++),o+=Ki(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 Pi(e,t,n){if(e==null)return e;var r=[],i=0;return Ki(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Am(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 Fe={current:null},Gi={transition:null},Mm={ReactCurrentDispatcher:Fe,ReactCurrentBatchConfig:Gi,ReactCurrentOwner:sa};function Vf(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Pi,forEach:function(e,t,n){Pi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Pi(e,function(){t++}),t},toArray:function(e){return Pi(e,function(t){return t})||[]},only:function(e){if(!aa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=yr;W.Fragment=Cm;W.Profiler=jm;W.PureComponent=la;W.StrictMode=Em;W.Suspense=Pm;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mm;W.act=Vf;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ff({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=sa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)$f.call(t,a)&&!Uf.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:ki,type:e.type,key:i,ref:l,props:r,_owner:o}};W.createContext=function(e){return e={$$typeof:zm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nm,_context:e},e.Consumer=e};W.createElement=Hf;W.createFactory=function(e){var t=Hf.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:Tm,render:e}};W.isValidElement=aa;W.lazy=function(e){return{$$typeof:Lm,_payload:{_status:-1,_result:e},_init:Am}};W.memo=function(e,t){return{$$typeof:Im,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=Gi.transition;Gi.transition={};try{e()}finally{Gi.transition=t}};W.unstable_act=Vf;W.useCallback=function(e,t){return Fe.current.useCallback(e,t)};W.useContext=function(e){return Fe.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Fe.current.useDeferredValue(e)};W.useEffect=function(e,t){return Fe.current.useEffect(e,t)};W.useId=function(){return Fe.current.useId()};W.useImperativeHandle=function(e,t,n){return Fe.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Fe.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Fe.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Fe.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Fe.current.useReducer(e,t,n)};W.useRef=function(e){return Fe.current.useRef(e)};W.useState=function(e){return Fe.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Fe.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Fe.current.useTransition()};W.version="18.3.1";Mf.exports=W;var I=Mf.exports;/**
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 Rm=I,Fm=Symbol.for("react.element"),Om=Symbol.for("react.fragment"),Bm=Object.prototype.hasOwnProperty,$m=Rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Um={key:!0,ref:!0,__self:!0,__source:!0};function Wf(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)Bm.call(t,r)&&!Um.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:Fm,type:e,key:l,ref:o,props:i,_owner:$m.current}}Bl.Fragment=Om;Bl.jsx=Wf;Bl.jsxs=Wf;Af.exports=Bl;var d=Af.exports,Qf={exports:{}},nt={},qf={exports:{}},Yf={};/**
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(D,B){var k=D.length;D.push(B);e:for(;0<k;){var K=k-1>>>1,ee=D[K];if(0<i(ee,B))D[K]=B,D[k]=ee,k=K;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var B=D[0],k=D.pop();if(k!==B){D[0]=k;e:for(var K=0,ee=D.length,S=ee>>>1;K<S;){var ke=2*(K+1)-1,dt=D[ke],se=ke+1,Ct=D[se];if(0>i(dt,k))se<ee&&0>i(Ct,dt)?(D[K]=Ct,D[se]=k,K=se):(D[K]=dt,D[ke]=k,K=ke);else if(se<ee&&0>i(Ct,k))D[K]=Ct,D[se]=k,K=se;else break e}}return B}function i(D,B){var k=D.sortIndex-B.sortIndex;return k!==0?k:D.id-B.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,p=3,h=!1,m=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(D){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=D)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function j(D){if(x=!1,v(D),!m)if(n(a)!==null)m=!0,ye(z);else{var B=n(u);B!==null&&me(j,B.startTime-D)}}function z(D,B){m=!1,x&&(x=!1,g(P),P=-1),h=!0;var k=p;try{for(v(B),c=n(a);c!==null&&(!(c.expirationTime>B)||D&&!A());){var K=c.callback;if(typeof K=="function"){c.callback=null,p=c.priorityLevel;var ee=K(c.expirationTime<=B);B=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(a)&&r(a),v(B)}else r(a);c=n(a)}if(c!==null)var S=!0;else{var ke=n(u);ke!==null&&me(j,ke.startTime-B),S=!1}return S}finally{c=null,p=k,h=!1}}var w=!1,N=null,P=-1,R=5,E=-1;function A(){return!(e.unstable_now()-E<R)}function F(){if(N!==null){var D=e.unstable_now();E=D;var B=!0;try{B=N(!0,D)}finally{B?X():(w=!1,N=null)}}else w=!1}var X;if(typeof y=="function")X=function(){y(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Q=ie.port2;ie.port1.onmessage=F,X=function(){Q.postMessage(null)}}else X=function(){C(F,0)};function ye(D){N=D,w||(w=!0,X())}function me(D,B){P=C(function(){D(e.unstable_now())},B)}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(D){D.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,ye(z))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var k=p;p=B;try{return D()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,B){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var k=p;p=D;try{return B()}finally{p=k}},e.unstable_scheduleCallback=function(D,B,k){var K=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?K+k:K):k=K,D){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=k+ee,D={id:f++,callback:B,priorityLevel:D,startTime:k,expirationTime:ee,sortIndex:-1},k>K?(D.sortIndex=k,t(u,D),n(a)===null&&D===n(u)&&(x?(g(P),P=-1):x=!0,me(j,k-K))):(D.sortIndex=ee,t(a,D),m||h||(m=!0,ye(z))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var B=p;return function(){var k=p;p=B;try{return D.apply(this,arguments)}finally{p=k}}}})(Yf);qf.exports=Yf;var Hm=qf.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 Vm=I,tt=Hm;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 Xf=new Set,ei={};function Dn(e,t){ar(e,t),ar(e+"Capture",t)}function ar(e,t){for(ei[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=Object.prototype.hasOwnProperty,Wm=/^[: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]*$/,Pu={},Iu={};function Qm(e){return Zo.call(Iu,e)?!0:Zo.call(Pu,e)?!1:Wm.test(e)?Iu[e]=!0:(Pu[e]=!0,!1)}function qm(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 Ym(e,t,n,r){if(t===null||typeof t>"u"||qm(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 Oe(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 Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Oe(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){Te[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ua=/[\-:]([a-z])/g;function ca(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(ua,ca);Te[t]=new Oe(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(ua,ca);Te[t]=new Oe(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(ua,ca);Te[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function fa(e,t,n,r){var i=Te.hasOwnProperty(t)?Te[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ym(t,n,i,r)&&(n=null),r||i===null?Qm(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 Ht=Vm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ii=Symbol.for("react.element"),Hn=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),da=Symbol.for("react.strict_mode"),es=Symbol.for("react.profiler"),Kf=Symbol.for("react.provider"),Gf=Symbol.for("react.context"),pa=Symbol.for("react.forward_ref"),ts=Symbol.for("react.suspense"),ns=Symbol.for("react.suspense_list"),ha=Symbol.for("react.memo"),Xt=Symbol.for("react.lazy"),Jf=Symbol.for("react.offscreen"),Lu=Symbol.iterator;function jr(e){return e===null||typeof e!="object"?null:(e=Lu&&e[Lu]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,po;function Mr(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
34
- `+po+e}var ho=!1;function mo(e,t){if(!e||ho)return"";ho=!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{ho=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function Xm(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=mo(e.type,!1),e;case 11:return e=mo(e.type.render,!1),e;case 1:return e=mo(e.type,!0),e;default:return""}}function rs(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 Vn:return"Fragment";case Hn:return"Portal";case es:return"Profiler";case da:return"StrictMode";case ts:return"Suspense";case ns:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gf:return(e.displayName||"Context")+".Consumer";case Kf:return(e._context.displayName||"Context")+".Provider";case pa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ha:return t=e.displayName||null,t!==null?t:rs(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return rs(e(t))}catch{}}return null}function Km(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 rs(t);case 8:return t===da?"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 cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gm(e){var t=Zf(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 Li(e){e._valueTracker||(e._valueTracker=Gm(e))}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function is(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _u(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cn(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 td(e,t){t=t.checked,t!=null&&fa(e,"checked",t,!1)}function ls(e,t){td(e,t);var n=cn(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")?os(e,t.type,n):t.hasOwnProperty("defaultValue")&&os(e,t.type,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bu(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 os(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function tr(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=""+cn(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 ss(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Du(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(Rr(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cn(n)}}function nd(e,t){var n=cn(t.value),r=cn(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 Au(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rd(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 as(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _i,id=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_i=_i||document.createElement("div"),_i.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_i.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={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},Jm=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Jm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function ld(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function od(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ld(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Zm=pe({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 us(e,t){if(t){if(Zm[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 cs(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 fs=null;function ma(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ds=null,nr=null,rr=null;function Mu(e){if(e=Ci(e)){if(typeof ds!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Wl(t),ds(e.stateNode,e.type,t))}}function sd(e){nr?rr?rr.push(e):rr=[e]:nr=e}function ad(){if(nr){var e=nr,t=rr;if(rr=nr=null,Mu(e),t)for(e=0;e<t.length;e++)Mu(t[e])}}function ud(e,t){return e(t)}function cd(){}var go=!1;function fd(e,t,n){if(go)return e(t,n);go=!0;try{return ud(e,t,n)}finally{go=!1,(nr!==null||rr!==null)&&(cd(),ad())}}function ni(e,t){var n=e.stateNode;if(n===null)return null;var r=Wl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var ps=!1;if(Ft)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){ps=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{ps=!1}function eg(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 $r=!1,dl=null,pl=!1,hs=null,tg={onError:function(e){$r=!0,dl=e}};function ng(e,t,n,r,i,l,o,s,a){$r=!1,dl=null,eg.apply(tg,arguments)}function rg(e,t,n,r,i,l,o,s,a){if(ng.apply(this,arguments),$r){if($r){var u=dl;$r=!1,dl=null}else throw Error(L(198));pl||(pl=!0,hs=u)}}function An(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 dd(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 Ru(e){if(An(e)!==e)throw Error(L(188))}function ig(e){var t=e.alternate;if(!t){if(t=An(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 Ru(i),e;if(l===r)return Ru(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=ig(e),e!==null?hd(e):null}function hd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hd(e);if(t!==null)return t;e=e.sibling}return null}var md=tt.unstable_scheduleCallback,Fu=tt.unstable_cancelCallback,lg=tt.unstable_shouldYield,og=tt.unstable_requestPaint,ge=tt.unstable_now,sg=tt.unstable_getCurrentPriorityLevel,ga=tt.unstable_ImmediatePriority,gd=tt.unstable_UserBlockingPriority,hl=tt.unstable_NormalPriority,ag=tt.unstable_LowPriority,yd=tt.unstable_IdlePriority,$l=null,Tt=null;function ug(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch{}}var vt=Math.clz32?Math.clz32:dg,cg=Math.log,fg=Math.LN2;function dg(e){return e>>>=0,e===0?32:31-(cg(e)/fg|0)|0}var bi=64,Di=4194304;function Fr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Fr(s):(l&=o,l!==0&&(r=Fr(l)))}else o=n&~i,o!==0?r=Fr(o):l!==0&&(r=Fr(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-vt(t),i=1<<n,r|=e[n],t&=~i;return r}function pg(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 hg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-vt(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=pg(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function ms(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vd(){var e=bi;return bi<<=1,!(bi&4194240)&&(bi=64),e}function yo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function mg(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-vt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function ya(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-vt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Z=0;function xd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kd,va,wd,Sd,Cd,gs=!1,Ai=[],tn=null,nn=null,rn=null,ri=new Map,ii=new Map,Gt=[],gg="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 Ou(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function zr(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=Ci(t),t!==null&&va(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function yg(e,t,n,r,i){switch(t){case"focusin":return tn=zr(tn,e,t,n,r,i),!0;case"dragenter":return nn=zr(nn,e,t,n,r,i),!0;case"mouseover":return rn=zr(rn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ri.set(l,zr(ri.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ii.set(l,zr(ii.get(l)||null,e,t,n,r,i)),!0}return!1}function Ed(e){var t=Sn(e.target);if(t!==null){var n=An(t);if(n!==null){if(t=n.tag,t===13){if(t=dd(n),t!==null){e.blockedOn=t,Cd(e.priority,function(){wd(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 Ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ys(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fs=r,n.target.dispatchEvent(r),fs=null}else return t=Ci(n),t!==null&&va(t),e.blockedOn=n,!1;t.shift()}return!0}function Bu(e,t,n){Ji(e)&&n.delete(t)}function vg(){gs=!1,tn!==null&&Ji(tn)&&(tn=null),nn!==null&&Ji(nn)&&(nn=null),rn!==null&&Ji(rn)&&(rn=null),ri.forEach(Bu),ii.forEach(Bu)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,gs||(gs=!0,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,vg)))}function li(e){function t(i){return Tr(i,e)}if(0<Ai.length){Tr(Ai[0],e);for(var n=1;n<Ai.length;n++){var r=Ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&Tr(tn,e),nn!==null&&Tr(nn,e),rn!==null&&Tr(rn,e),ri.forEach(t),ii.forEach(t),n=0;n<Gt.length;n++)r=Gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gt.length&&(n=Gt[0],n.blockedOn===null);)Ed(n),n.blockedOn===null&&Gt.shift()}var ir=Ht.ReactCurrentBatchConfig,gl=!0;function xg(e,t,n,r){var i=Z,l=ir.transition;ir.transition=null;try{Z=1,xa(e,t,n,r)}finally{Z=i,ir.transition=l}}function kg(e,t,n,r){var i=Z,l=ir.transition;ir.transition=null;try{Z=4,xa(e,t,n,r)}finally{Z=i,ir.transition=l}}function xa(e,t,n,r){if(gl){var i=ys(e,t,n,r);if(i===null)zo(e,t,r,yl,n),Ou(e,r);else if(yg(i,e,t,n,r))r.stopPropagation();else if(Ou(e,r),t&4&&-1<gg.indexOf(e)){for(;i!==null;){var l=Ci(i);if(l!==null&&kd(l),l=ys(e,t,n,r),l===null&&zo(e,t,r,yl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var yl=null;function ys(e,t,n,r){if(yl=null,e=ma(r),e=Sn(e),e!==null)if(t=An(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yl=e,null}function jd(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(sg()){case ga:return 1;case gd:return 4;case hl:case ag:return 16;case yd:return 536870912;default:return 16}default:return 16}}var Zt=null,ka=null,Zi=null;function Nd(){if(Zi)return Zi;var e,t=ka,n=t.length,r,i="value"in Zt?Zt.value:Zt.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 Zi=i.slice(e,1<r?1-r:void 0)}function el(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 Mi(){return!0}function $u(){return!1}function rt(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)?Mi:$u,this.isPropagationStopped=$u,this}return pe(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=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var vr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wa=rt(vr),Si=pe({},vr,{view:0,detail:0}),wg=rt(Si),vo,xo,Pr,Ul=pe({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sa,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,xo=e.screenY-Pr.screenY):xo=vo=0,Pr=e),vo)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Uu=rt(Ul),Sg=pe({},Ul,{dataTransfer:0}),Cg=rt(Sg),Eg=pe({},Si,{relatedTarget:0}),ko=rt(Eg),jg=pe({},vr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ng=rt(jg),zg=pe({},vr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tg=rt(zg),Pg=pe({},vr,{data:0}),Hu=rt(Pg),Ig={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lg={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"},_g={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_g[e])?!!t[e]:!1}function Sa(){return bg}var Dg=pe({},Si,{key:function(e){if(e.key){var t=Ig[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=el(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sa,charCode:function(e){return e.type==="keypress"?el(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?el(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ag=rt(Dg),Mg=pe({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vu=rt(Mg),Rg=pe({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sa}),Fg=rt(Rg),Og=pe({},vr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bg=rt(Og),$g=pe({},Ul,{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}),Ug=rt($g),Hg=[9,13,27,32],Ca=Ft&&"CompositionEvent"in window,Ur=null;Ft&&"documentMode"in document&&(Ur=document.documentMode);var Vg=Ft&&"TextEvent"in window&&!Ur,zd=Ft&&(!Ca||Ur&&8<Ur&&11>=Ur),Wu=" ",Qu=!1;function Td(e,t){switch(e){case"keyup":return Hg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wn=!1;function Wg(e,t){switch(e){case"compositionend":return Pd(t);case"keypress":return t.which!==32?null:(Qu=!0,Wu);case"textInput":return e=t.data,e===Wu&&Qu?null:e;default:return null}}function Qg(e,t){if(Wn)return e==="compositionend"||!Ca&&Td(e,t)?(e=Nd(),Zi=ka=Zt=null,Wn=!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 zd&&t.locale!=="ko"?null:t.data;default:return null}}var qg={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 qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qg[e.type]:t==="textarea"}function Id(e,t,n,r){sd(r),t=vl(t,"onChange"),0<t.length&&(n=new wa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hr=null,oi=null;function Yg(e){$d(e,0)}function Hl(e){var t=Yn(e);if(ed(t))return e}function Xg(e,t){if(e==="change")return t}var Ld=!1;if(Ft){var wo;if(Ft){var So="oninput"in document;if(!So){var Yu=document.createElement("div");Yu.setAttribute("oninput","return;"),So=typeof Yu.oninput=="function"}wo=So}else wo=!1;Ld=wo&&(!document.documentMode||9<document.documentMode)}function Xu(){Hr&&(Hr.detachEvent("onpropertychange",_d),oi=Hr=null)}function _d(e){if(e.propertyName==="value"&&Hl(oi)){var t=[];Id(t,oi,e,ma(e)),fd(Yg,t)}}function Kg(e,t,n){e==="focusin"?(Xu(),Hr=t,oi=n,Hr.attachEvent("onpropertychange",_d)):e==="focusout"&&Xu()}function Gg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(oi)}function Jg(e,t){if(e==="click")return Hl(t)}function Zg(e,t){if(e==="input"||e==="change")return Hl(t)}function ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:ey;function si(e,t){if(St(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(!Zo.call(t,i)||!St(e[i],t[i]))return!1}return!0}function Ku(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gu(e,t){var n=Ku(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=Ku(n)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dd(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function Ea(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 ty(e){var t=Dd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bd(n.ownerDocument.documentElement,n)){if(r!==null&&Ea(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=Gu(n,l);var o=Gu(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 ny=Ft&&"documentMode"in document&&11>=document.documentMode,Qn=null,vs=null,Vr=null,xs=!1;function Ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xs||Qn==null||Qn!==fl(r)||(r=Qn,"selectionStart"in r&&Ea(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&&si(Vr,r)||(Vr=r,r=vl(vs,"onSelect"),0<r.length&&(t=new wa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qn={animationend:Ri("Animation","AnimationEnd"),animationiteration:Ri("Animation","AnimationIteration"),animationstart:Ri("Animation","AnimationStart"),transitionend:Ri("Transition","TransitionEnd")},Co={},Ad={};Ft&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete qn.animationend.animation,delete qn.animationiteration.animation,delete qn.animationstart.animation),"TransitionEvent"in window||delete qn.transitionend.transition);function Vl(e){if(Co[e])return Co[e];if(!qn[e])return e;var t=qn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ad)return Co[e]=t[n];return e}var Md=Vl("animationend"),Rd=Vl("animationiteration"),Fd=Vl("animationstart"),Od=Vl("transitionend"),Bd=new Map,Zu="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 dn(e,t){Bd.set(e,t),Dn(t,[e])}for(var Eo=0;Eo<Zu.length;Eo++){var jo=Zu[Eo],ry=jo.toLowerCase(),iy=jo[0].toUpperCase()+jo.slice(1);dn(ry,"on"+iy)}dn(Md,"onAnimationEnd");dn(Rd,"onAnimationIteration");dn(Fd,"onAnimationStart");dn("dblclick","onDoubleClick");dn("focusin","onFocus");dn("focusout","onBlur");dn(Od,"onTransitionEnd");ar("onMouseEnter",["mouseout","mouseover"]);ar("onMouseLeave",["mouseout","mouseover"]);ar("onPointerEnter",["pointerout","pointerover"]);ar("onPointerLeave",["pointerout","pointerover"]);Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dn("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(" "),ly=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function ec(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,rg(r,t,void 0,e),e.currentTarget=null}function $d(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;ec(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;ec(i,s,u),l=a}}}if(pl)throw e=hs,pl=!1,hs=null,e}function ae(e,t){var n=t[Es];n===void 0&&(n=t[Es]=new Set);var r=e+"__bubble";n.has(r)||(Ud(t,e,2,!1),n.add(r))}function No(e,t,n){var r=0;t&&(r|=4),Ud(n,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function ai(e){if(!e[Fi]){e[Fi]=!0,Xf.forEach(function(n){n!=="selectionchange"&&(ly.has(n)||No(n,!1,e),No(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,No("selectionchange",!1,t))}}function Ud(e,t,n,r){switch(jd(t)){case 1:var i=xg;break;case 4:i=kg;break;default:i=xa}n=i.bind(null,t,n,e),i=void 0,!ps||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 zo(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=Sn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}fd(function(){var u=l,f=ma(n),c=[];e:{var p=Bd.get(e);if(p!==void 0){var h=wa,m=e;switch(e){case"keypress":if(el(n)===0)break e;case"keydown":case"keyup":h=Ag;break;case"focusin":m="focus",h=ko;break;case"focusout":m="blur",h=ko;break;case"beforeblur":case"afterblur":h=ko;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":h=Uu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Fg;break;case Md:case Rd:case Fd:h=Ng;break;case Od:h=Bg;break;case"scroll":h=wg;break;case"wheel":h=Ug;break;case"copy":case"cut":case"paste":h=Tg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Vu}var x=(t&4)!==0,C=!x&&e==="scroll",g=x?p!==null?p+"Capture":null:p;x=[];for(var y=u,v;y!==null;){v=y;var j=v.stateNode;if(v.tag===5&&j!==null&&(v=j,g!==null&&(j=ni(y,g),j!=null&&x.push(ui(y,j,v)))),C)break;y=y.return}0<x.length&&(p=new h(p,m,null,n,f),c.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==fs&&(m=n.relatedTarget||n.fromElement)&&(Sn(m)||m[Ot]))break e;if((h||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?Sn(m):null,m!==null&&(C=An(m),m!==C||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(x=Uu,j="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=Vu,j="onPointerLeave",g="onPointerEnter",y="pointer"),C=h==null?p:Yn(h),v=m==null?p:Yn(m),p=new x(j,y+"leave",h,n,f),p.target=C,p.relatedTarget=v,j=null,Sn(f)===u&&(x=new x(g,y+"enter",m,n,f),x.target=v,x.relatedTarget=C,j=x),C=j,h&&m)t:{for(x=h,g=m,y=0,v=x;v;v=Bn(v))y++;for(v=0,j=g;j;j=Bn(j))v++;for(;0<y-v;)x=Bn(x),y--;for(;0<v-y;)g=Bn(g),v--;for(;y--;){if(x===g||g!==null&&x===g.alternate)break t;x=Bn(x),g=Bn(g)}x=null}else x=null;h!==null&&tc(c,p,h,x,!1),m!==null&&C!==null&&tc(c,C,m,x,!0)}}e:{if(p=u?Yn(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var z=Xg;else if(qu(p))if(Ld)z=Zg;else{z=Gg;var w=Kg}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(z=Jg);if(z&&(z=z(e,u))){Id(c,z,n,f);break e}w&&w(e,p,u),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&os(p,"number",p.value)}switch(w=u?Yn(u):window,e){case"focusin":(qu(w)||w.contentEditable==="true")&&(Qn=w,vs=u,Vr=null);break;case"focusout":Vr=vs=Qn=null;break;case"mousedown":xs=!0;break;case"contextmenu":case"mouseup":case"dragend":xs=!1,Ju(c,n,f);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":Ju(c,n,f)}var N;if(Ca)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Wn?Td(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(zd&&n.locale!=="ko"&&(Wn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Wn&&(N=Nd()):(Zt=f,ka="value"in Zt?Zt.value:Zt.textContent,Wn=!0)),w=vl(u,P),0<w.length&&(P=new Hu(P,e,null,n,f),c.push({event:P,listeners:w}),N?P.data=N:(N=Pd(n),N!==null&&(P.data=N)))),(N=Vg?Wg(e,n):Qg(e,n))&&(u=vl(u,"onBeforeInput"),0<u.length&&(f=new Hu("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=N))}$d(c,t)})}function ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ni(e,n),l!=null&&r.unshift(ui(e,l,i)),l=ni(e,t),l!=null&&r.push(ui(e,l,i))),e=e.return}return r}function Bn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tc(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=ni(n,l),a!=null&&o.unshift(ui(n,a,s))):i||(a=ni(n,l),a!=null&&o.push(ui(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var oy=/\r\n?/g,sy=/\u0000|\uFFFD/g;function nc(e){return(typeof e=="string"?e:""+e).replace(oy,`
38
- `).replace(sy,"")}function Oi(e,t,n){if(t=nc(t),nc(e)!==t&&n)throw Error(L(425))}function xl(){}var ks=null,ws=null;function Ss(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 Cs=typeof setTimeout=="function"?setTimeout:void 0,ay=typeof clearTimeout=="function"?clearTimeout:void 0,rc=typeof Promise=="function"?Promise:void 0,uy=typeof queueMicrotask=="function"?queueMicrotask:typeof rc<"u"?function(e){return rc.resolve(null).then(e).catch(cy)}:Cs;function cy(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),li(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);li(t)}function ln(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 ic(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 xr=Math.random().toString(36).slice(2),zt="__reactFiber$"+xr,ci="__reactProps$"+xr,Ot="__reactContainer$"+xr,Es="__reactEvents$"+xr,fy="__reactListeners$"+xr,dy="__reactHandles$"+xr;function Sn(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ic(e);e!==null;){if(n=e[zt])return n;e=ic(e)}return t}e=n,n=e.parentNode}return null}function Ci(e){return e=e[zt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Wl(e){return e[ci]||null}var js=[],Xn=-1;function pn(e){return{current:e}}function ue(e){0>Xn||(e.current=js[Xn],js[Xn]=null,Xn--)}function le(e,t){Xn++,js[Xn]=e.current,e.current=t}var fn={},be=pn(fn),Ve=pn(!1),Tn=fn;function ur(e,t){var n=e.type.contextTypes;if(!n)return fn;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 We(e){return e=e.childContextTypes,e!=null}function kl(){ue(Ve),ue(be)}function lc(e,t,n){if(be.current!==fn)throw Error(L(168));le(be,t),le(Ve,n)}function Hd(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,Km(e)||"Unknown",i));return pe({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Tn=be.current,le(be,e),le(Ve,Ve.current),!0}function oc(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Hd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ue(Ve),ue(be),le(be,e)):ue(Ve),le(Ve,n)}var Dt=null,Ql=!1,Po=!1;function Vd(e){Dt===null?Dt=[e]:Dt.push(e)}function py(e){Ql=!0,Vd(e)}function hn(){if(!Po&&Dt!==null){Po=!0;var e=0,t=Z;try{var n=Dt;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dt=null,Ql=!1}catch(i){throw Dt!==null&&(Dt=Dt.slice(e+1)),md(ga,hn),i}finally{Z=t,Po=!1}}return null}var Kn=[],Gn=0,Sl=null,Cl=0,it=[],lt=0,Pn=null,At=1,Mt="";function xn(e,t){Kn[Gn++]=Cl,Kn[Gn++]=Sl,Sl=e,Cl=t}function Wd(e,t,n){it[lt++]=At,it[lt++]=Mt,it[lt++]=Pn,Pn=e;var r=At;e=Mt;var i=32-vt(r)-1;r&=~(1<<i),n+=1;var l=32-vt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,At=1<<32-vt(t)+i|n<<i|r,Mt=l+e}else At=1<<l|n<<i|r,Mt=e}function ja(e){e.return!==null&&(xn(e,1),Wd(e,1,0))}function Na(e){for(;e===Sl;)Sl=Kn[--Gn],Kn[Gn]=null,Cl=Kn[--Gn],Kn[Gn]=null;for(;e===Pn;)Pn=it[--lt],it[lt]=null,Mt=it[--lt],it[lt]=null,At=it[--lt],it[lt]=null}var Ze=null,Je=null,ce=!1,yt=null;function Qd(e,t){var n=st(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 sc(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,Ze=e,Je=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ze=e,Je=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pn!==null?{id:At,overflow:Mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ze=e,Je=null,!0):!1;default:return!1}}function Ns(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zs(e){if(ce){var t=Je;if(t){var n=t;if(!sc(e,t)){if(Ns(e))throw Error(L(418));t=ln(n.nextSibling);var r=Ze;t&&sc(e,t)?Qd(r,n):(e.flags=e.flags&-4097|2,ce=!1,Ze=e)}}else{if(Ns(e))throw Error(L(418));e.flags=e.flags&-4097|2,ce=!1,Ze=e}}}function ac(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ze=e}function Bi(e){if(e!==Ze)return!1;if(!ce)return ac(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ss(e.type,e.memoizedProps)),t&&(t=Je)){if(Ns(e))throw qd(),Error(L(418));for(;t;)Qd(e,t),t=ln(t.nextSibling)}if(ac(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){Je=ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Je=null}}else Je=Ze?ln(e.stateNode.nextSibling):null;return!0}function qd(){for(var e=Je;e;)e=ln(e.nextSibling)}function cr(){Je=Ze=null,ce=!1}function za(e){yt===null?yt=[e]:yt.push(e)}var hy=Ht.ReactCurrentBatchConfig;function Ir(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 $i(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uc(e){var t=e._init;return t(e._payload)}function Yd(e){function t(g,y){if(e){var v=g.deletions;v===null?(g.deletions=[y],g.flags|=16):v.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function i(g,y){return g=un(g,y),g.index=0,g.sibling=null,g}function l(g,y,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<y?(g.flags|=2,y):v):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,y,v,j){return y===null||y.tag!==6?(y=Mo(v,g.mode,j),y.return=g,y):(y=i(y,v),y.return=g,y)}function a(g,y,v,j){var z=v.type;return z===Vn?f(g,y,v.props.children,j,v.key):y!==null&&(y.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===Xt&&uc(z)===y.type)?(j=i(y,v.props),j.ref=Ir(g,y,v),j.return=g,j):(j=sl(v.type,v.key,v.props,null,g.mode,j),j.ref=Ir(g,y,v),j.return=g,j)}function u(g,y,v,j){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=Ro(v,g.mode,j),y.return=g,y):(y=i(y,v.children||[]),y.return=g,y)}function f(g,y,v,j,z){return y===null||y.tag!==7?(y=Nn(v,g.mode,j,z),y.return=g,y):(y=i(y,v),y.return=g,y)}function c(g,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Mo(""+y,g.mode,v),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ii:return v=sl(y.type,y.key,y.props,null,g.mode,v),v.ref=Ir(g,null,y),v.return=g,v;case Hn:return y=Ro(y,g.mode,v),y.return=g,y;case Xt:var j=y._init;return c(g,j(y._payload),v)}if(Rr(y)||jr(y))return y=Nn(y,g.mode,v,null),y.return=g,y;$i(g,y)}return null}function p(g,y,v,j){var z=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return z!==null?null:s(g,y,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ii:return v.key===z?a(g,y,v,j):null;case Hn:return v.key===z?u(g,y,v,j):null;case Xt:return z=v._init,p(g,y,z(v._payload),j)}if(Rr(v)||jr(v))return z!==null?null:f(g,y,v,j,null);$i(g,v)}return null}function h(g,y,v,j,z){if(typeof j=="string"&&j!==""||typeof j=="number")return g=g.get(v)||null,s(y,g,""+j,z);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ii:return g=g.get(j.key===null?v:j.key)||null,a(y,g,j,z);case Hn:return g=g.get(j.key===null?v:j.key)||null,u(y,g,j,z);case Xt:var w=j._init;return h(g,y,v,w(j._payload),z)}if(Rr(j)||jr(j))return g=g.get(v)||null,f(y,g,j,z,null);$i(y,j)}return null}function m(g,y,v,j){for(var z=null,w=null,N=y,P=y=0,R=null;N!==null&&P<v.length;P++){N.index>P?(R=N,N=null):R=N.sibling;var E=p(g,N,v[P],j);if(E===null){N===null&&(N=R);break}e&&N&&E.alternate===null&&t(g,N),y=l(E,y,P),w===null?z=E:w.sibling=E,w=E,N=R}if(P===v.length)return n(g,N),ce&&xn(g,P),z;if(N===null){for(;P<v.length;P++)N=c(g,v[P],j),N!==null&&(y=l(N,y,P),w===null?z=N:w.sibling=N,w=N);return ce&&xn(g,P),z}for(N=r(g,N);P<v.length;P++)R=h(N,g,P,v[P],j),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?P:R.key),y=l(R,y,P),w===null?z=R:w.sibling=R,w=R);return e&&N.forEach(function(A){return t(g,A)}),ce&&xn(g,P),z}function x(g,y,v,j){var z=jr(v);if(typeof z!="function")throw Error(L(150));if(v=z.call(v),v==null)throw Error(L(151));for(var w=z=null,N=y,P=y=0,R=null,E=v.next();N!==null&&!E.done;P++,E=v.next()){N.index>P?(R=N,N=null):R=N.sibling;var A=p(g,N,E.value,j);if(A===null){N===null&&(N=R);break}e&&N&&A.alternate===null&&t(g,N),y=l(A,y,P),w===null?z=A:w.sibling=A,w=A,N=R}if(E.done)return n(g,N),ce&&xn(g,P),z;if(N===null){for(;!E.done;P++,E=v.next())E=c(g,E.value,j),E!==null&&(y=l(E,y,P),w===null?z=E:w.sibling=E,w=E);return ce&&xn(g,P),z}for(N=r(g,N);!E.done;P++,E=v.next())E=h(N,g,P,E.value,j),E!==null&&(e&&E.alternate!==null&&N.delete(E.key===null?P:E.key),y=l(E,y,P),w===null?z=E:w.sibling=E,w=E);return e&&N.forEach(function(F){return t(g,F)}),ce&&xn(g,P),z}function C(g,y,v,j){if(typeof v=="object"&&v!==null&&v.type===Vn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ii:e:{for(var z=v.key,w=y;w!==null;){if(w.key===z){if(z=v.type,z===Vn){if(w.tag===7){n(g,w.sibling),y=i(w,v.props.children),y.return=g,g=y;break e}}else if(w.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===Xt&&uc(z)===w.type){n(g,w.sibling),y=i(w,v.props),y.ref=Ir(g,w,v),y.return=g,g=y;break e}n(g,w);break}else t(g,w);w=w.sibling}v.type===Vn?(y=Nn(v.props.children,g.mode,j,v.key),y.return=g,g=y):(j=sl(v.type,v.key,v.props,null,g.mode,j),j.ref=Ir(g,y,v),j.return=g,g=j)}return o(g);case Hn:e:{for(w=v.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Ro(v,g.mode,j),y.return=g,g=y}return o(g);case Xt:return w=v._init,C(g,y,w(v._payload),j)}if(Rr(v))return m(g,y,v,j);if(jr(v))return x(g,y,v,j);$i(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=Mo(v,g.mode,j),y.return=g,g=y),o(g)):n(g,y)}return C}var fr=Yd(!0),Xd=Yd(!1),El=pn(null),jl=null,Jn=null,Ta=null;function Pa(){Ta=Jn=jl=null}function Ia(e){var t=El.current;ue(El),e._currentValue=t}function Ts(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 lr(e,t){jl=e,Ta=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(jl===null)throw Error(L(308));Jn=e,jl.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var Cn=null;function La(e){Cn===null?Cn=[e]:Cn.push(e)}function Kd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,La(t)):(n.next=i.next,i.next=n),t.interleaved=n,Bt(e,r)}function Bt(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 Kt=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gd(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 Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Bt(e,n)}return i=r.interleaved,i===null?(t.next=t,La(r)):(t.next=i.next,i.next=t),r.interleaved=t,Bt(e,n)}function tl(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,ya(e,n)}}function cc(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 Nl(e,t,n,r){var i=e.updateQueue;Kt=!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 p=s.lane,h=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,x=s;switch(p=t,h=n,x.tag){case 1:if(m=x.payload,typeof m=="function"){c=m.call(h,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,p=typeof m=="function"?m.call(h,c,p):m,p==null)break e;c=pe({},c,p);break e;case 2:Kt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,a=c):f=f.next=h,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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);Ln|=o,e.lanes=o,e.memoizedState=c}}function fc(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 Ei={},Pt=pn(Ei),fi=pn(Ei),di=pn(Ei);function En(e){if(e===Ei)throw Error(L(174));return e}function ba(e,t){switch(le(di,t),le(fi,e),le(Pt,Ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:as(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=as(t,e)}ue(Pt),le(Pt,t)}function dr(){ue(Pt),ue(fi),ue(di)}function Jd(e){En(di.current);var t=En(Pt.current),n=as(t,e.type);t!==n&&(le(fi,e),le(Pt,n))}function Da(e){fi.current===e&&(ue(Pt),ue(fi))}var fe=pn(0);function zl(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 Io=[];function Aa(){for(var e=0;e<Io.length;e++)Io[e]._workInProgressVersionPrimary=null;Io.length=0}var nl=Ht.ReactCurrentDispatcher,Lo=Ht.ReactCurrentBatchConfig,In=0,de=null,we=null,Ee=null,Tl=!1,Wr=!1,pi=0,my=0;function Pe(){throw Error(L(321))}function Ma(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function Ra(e,t,n,r,i,l){if(In=l,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nl.current=e===null||e.memoizedState===null?xy:ky,e=n(r,i),Wr){l=0;do{if(Wr=!1,pi=0,25<=l)throw Error(L(301));l+=1,Ee=we=null,t.updateQueue=null,nl.current=wy,e=n(r,i)}while(Wr)}if(nl.current=Pl,t=we!==null&&we.next!==null,In=0,Ee=we=de=null,Tl=!1,t)throw Error(L(300));return e}function Fa(){var e=pi!==0;return pi=0,e}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?de.memoizedState=Ee=e:Ee=Ee.next=e,Ee}function ft(){if(we===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Ee===null?de.memoizedState:Ee.next;if(t!==null)Ee=t,we=e;else{if(e===null)throw Error(L(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Ee===null?de.memoizedState=Ee=e:Ee=Ee.next=e}return Ee}function hi(e,t){return typeof t=="function"?t(e):t}function _o(e){var t=ft(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=we,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((In&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,de.lanes|=f,Ln|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,St(r,t.memoizedState)||(Ue=!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,de.lanes|=l,Ln|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bo(e){var t=ft(),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);St(l,t.memoizedState)||(Ue=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Zd(){}function ep(e,t){var n=de,r=ft(),i=t(),l=!St(r.memoizedState,i);if(l&&(r.memoizedState=i,Ue=!0),r=r.queue,Oa(rp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Ee!==null&&Ee.memoizedState.tag&1){if(n.flags|=2048,mi(9,np.bind(null,n,r,i,t),void 0,null),je===null)throw Error(L(349));In&30||tp(n,t,i)}return i}function tp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function np(e,t,n,r){t.value=n,t.getSnapshot=r,ip(t)&&lp(e)}function rp(e,t,n){return n(function(){ip(t)&&lp(e)})}function ip(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function lp(e){var t=Bt(e,1);t!==null&&xt(t,e,1,-1)}function dc(e){var t=jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=vy.bind(null,de,e),[t.memoizedState,e]}function mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=de.updateQueue,t===null?(t={lastEffect:null,stores:null},de.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 op(){return ft().memoizedState}function rl(e,t,n,r){var i=jt();de.flags|=e,i.memoizedState=mi(1|t,n,void 0,r===void 0?null:r)}function ql(e,t,n,r){var i=ft();r=r===void 0?null:r;var l=void 0;if(we!==null){var o=we.memoizedState;if(l=o.destroy,r!==null&&Ma(r,o.deps)){i.memoizedState=mi(t,n,l,r);return}}de.flags|=e,i.memoizedState=mi(1|t,n,l,r)}function pc(e,t){return rl(8390656,8,e,t)}function Oa(e,t){return ql(2048,8,e,t)}function sp(e,t){return ql(4,2,e,t)}function ap(e,t){return ql(4,4,e,t)}function up(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cp(e,t,n){return n=n!=null?n.concat([e]):null,ql(4,4,up.bind(null,t,e),n)}function Ba(){}function fp(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dp(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pp(e,t,n){return In&21?(St(n,t)||(n=vd(),de.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function gy(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{Z=n,Lo.transition=r}}function hp(){return ft().memoizedState}function yy(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mp(e))gp(t,n);else if(n=Kd(e,t,n,r),n!==null){var i=Re();xt(n,e,r,i),yp(n,t,r)}}function vy(e,t,n){var r=an(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mp(e))gp(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,St(s,o)){var a=t.interleaved;a===null?(i.next=i,La(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Kd(e,t,i,r),n!==null&&(i=Re(),xt(n,e,r,i),yp(n,t,r))}}function mp(e){var t=e.alternate;return e===de||t!==null&&t===de}function gp(e,t){Wr=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ya(e,n)}}var Pl={readContext:ct,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},xy={readContext:ct,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:pc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,up.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();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=yy.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:dc,useDebugValue:Ba,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=dc(!1),t=e[0];return e=gy.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=jt();if(ce){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),je===null)throw Error(L(349));In&30||tp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,pc(rp.bind(null,r,l,e),[e]),r.flags|=2048,mi(9,np.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=jt(),t=je.identifierPrefix;if(ce){var n=Mt,r=At;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=my++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ky={readContext:ct,useCallback:fp,useContext:ct,useEffect:Oa,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:ap,useMemo:dp,useReducer:_o,useRef:op,useState:function(){return _o(hi)},useDebugValue:Ba,useDeferredValue:function(e){var t=ft();return pp(t,we.memoizedState,e)},useTransition:function(){var e=_o(hi)[0],t=ft().memoizedState;return[e,t]},useMutableSource:Zd,useSyncExternalStore:ep,useId:hp,unstable_isNewReconciler:!1},wy={readContext:ct,useCallback:fp,useContext:ct,useEffect:Oa,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:ap,useMemo:dp,useReducer:bo,useRef:op,useState:function(){return bo(hi)},useDebugValue:Ba,useDeferredValue:function(e){var t=ft();return we===null?t.memoizedState=e:pp(t,we.memoizedState,e)},useTransition:function(){var e=bo(hi)[0],t=ft().memoizedState;return[e,t]},useMutableSource:Zd,useSyncExternalStore:ep,useId:hp,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ps(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yl={isMounted:function(e){return(e=e._reactInternals)?An(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Re(),i=an(e),l=Rt(r,i);l.payload=t,n!=null&&(l.callback=n),t=on(e,l,i),t!==null&&(xt(t,e,i,r),tl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Re(),i=an(e),l=Rt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=on(e,l,i),t!==null&&(xt(t,e,i,r),tl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Re(),r=an(e),i=Rt(n,r);i.tag=2,t!=null&&(i.callback=t),t=on(e,i,r),t!==null&&(xt(t,e,r,n),tl(t,e,r))}};function hc(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?!si(n,r)||!si(i,l):!0}function vp(e,t,n){var r=!1,i=fn,l=t.contextType;return typeof l=="object"&&l!==null?l=ct(l):(i=We(t)?Tn:be.current,r=t.contextTypes,l=(r=r!=null)?ur(e,i):fn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function mc(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&&Yl.enqueueReplaceState(t,t.state,null)}function Is(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_a(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=ct(l):(l=We(t)?Tn:be.current,i.context=ur(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ps(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&&Yl.enqueueReplaceState(i,i.state,null),Nl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function pr(e,t){try{var n="",r=t;do n+=Xm(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 Do(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ls(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Sy=typeof WeakMap=="function"?WeakMap:Map;function xp(e,t,n){n=Rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,$s=r),Ls(e,t)},n}function kp(e,t,n){n=Rt(-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(){Ls(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ls(e,t),typeof r!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function gc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Sy;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=My.bind(null,e,t,n),t.then(e,e))}function yc(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 vc(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=Rt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var Cy=Ht.ReactCurrentOwner,Ue=!1;function Ae(e,t,n,r){t.child=e===null?Xd(t,null,n,r):fr(t,e.child,n,r)}function xc(e,t,n,r,i){n=n.render;var l=t.ref;return lr(t,i),r=Ra(e,t,n,r,l,i),n=Fa(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$t(e,t,i)):(ce&&n&&ja(t),t.flags|=1,Ae(e,t,r,i),t.child)}function kc(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ya(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,wp(e,t,l,r,i)):(e=sl(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:si,n(o,r)&&e.ref===t.ref)return $t(e,t,i)}return t.flags|=1,e=un(l,r),e.ref=t.ref,e.return=t,t.child=e}function wp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(si(l,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,$t(e,t,i)}return _s(e,t,n,r,i)}function Sp(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},le(er,Ge),Ge|=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,le(er,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,le(er,Ge),Ge|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,le(er,Ge),Ge|=r;return Ae(e,t,i,n),t.child}function Cp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,i){var l=We(n)?Tn:be.current;return l=ur(t,l),lr(t,i),n=Ra(e,t,n,r,l,i),r=Fa(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$t(e,t,i)):(ce&&r&&ja(t),t.flags|=1,Ae(e,t,n,i),t.child)}function wc(e,t,n,r,i){if(We(n)){var l=!0;wl(t)}else l=!1;if(lr(t,i),t.stateNode===null)il(e,t),vp(t,n,r),Is(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=ct(u):(u=We(n)?Tn:be.current,u=ur(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)&&mc(t,o,r,u),Kt=!1;var p=t.memoizedState;o.state=p,Nl(t,r,o,i),a=t.memoizedState,s!==r||p!==a||Ve.current||Kt?(typeof f=="function"&&(Ps(t,n,f,r),a=t.memoizedState),(s=Kt||hc(t,n,s,r,p,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,Gd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mt(t.type,s),o.props=u,c=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=ct(a):(a=We(n)?Tn:be.current,a=ur(t,a));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||p!==a)&&mc(t,o,r,a),Kt=!1,p=t.memoizedState,o.state=p,Nl(t,r,o,i);var m=t.memoizedState;s!==c||p!==m||Ve.current||Kt?(typeof h=="function"&&(Ps(t,n,h,r),m=t.memoizedState),(u=Kt||hc(t,n,u,r,p,m,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return bs(e,t,n,r,l,i)}function bs(e,t,n,r,i,l){Cp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&oc(t,n,!1),$t(e,t,l);r=t.stateNode,Cy.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=fr(t,e.child,null,l),t.child=fr(t,null,s,l)):Ae(e,t,s,l),t.memoizedState=r.state,i&&oc(t,n,!0),t.child}function Ep(e){var t=e.stateNode;t.pendingContext?lc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lc(e,t.context,!1),ba(e,t.containerInfo)}function Sc(e,t,n,r,i){return cr(),za(i),t.flags|=256,Ae(e,t,n,r),t.child}var Ds={dehydrated:null,treeContext:null,retryLane:0};function As(e){return{baseLanes:e,cachePool:null,transitions:null}}function jp(e,t,n){var r=t.pendingProps,i=fe.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),le(fe,i&1),e===null)return zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Gl(o,r,0,null),e=Nn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=As(n),t.memoizedState=Ds,e):$a(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Ey(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=un(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=un(s,l):(l=Nn(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?As(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=un(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 $a(e,t){return t=Gl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ui(e,t,n,r){return r!==null&&za(r),fr(t,e.child,null,n),e=$a(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ey(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Do(Error(L(422))),Ui(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Gl({mode:"visible",children:r.children},i,0,null),l=Nn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&fr(t,e.child,null,o),t.child.memoizedState=As(o),t.memoizedState=Ds,l);if(!(t.mode&1))return Ui(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=Do(l,r,void 0),Ui(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ue||s){if(r=je,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,Bt(e,i),xt(r,e,i,-1))}return qa(),r=Do(Error(L(421))),Ui(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ry.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Je=ln(i.nextSibling),Ze=t,ce=!0,yt=null,e!==null&&(it[lt++]=At,it[lt++]=Mt,it[lt++]=Pn,At=e.id,Mt=e.overflow,Pn=t),t=$a(t,r.children),t.flags|=4096,t)}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ts(e.return,t,n)}function Ao(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 Np(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Ae(e,t,r.children,n),r=fe.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&&Cc(e,n,t);else if(e.tag===19)Cc(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(le(fe,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&&zl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ao(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&&zl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ao(t,!0,n,null,l);break;case"together":Ao(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function il(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=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=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jy(e,t,n){switch(t.tag){case 3:Ep(t),cr();break;case 5:Jd(t);break;case 1:We(t.type)&&wl(t);break;case 4:ba(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(El,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(fe,fe.current&1),t.flags|=128,null):n&t.child.childLanes?jp(e,t,n):(le(fe,fe.current&1),e=$t(e,t,n),e!==null?e.sibling:null);le(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Np(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Sp(e,t,n)}return $t(e,t,n)}var zp,Ms,Tp,Pp;zp=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(){};Tp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,En(Pt.current);var l=null;switch(n){case"input":i=is(e,i),r=is(e,r),l=[];break;case"select":i=pe({},i,{value:void 0}),r=pe({},r,{value:void 0}),l=[];break;case"textarea":i=ss(e,i),r=ss(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xl)}us(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"&&(ei.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"&&(ei.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ae("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)}};Pp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lr(e,t){if(!ce)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 Ie(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 Ny(e,t,n){var r=t.pendingProps;switch(Na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return We(t.type)&&kl(),Ie(t),null;case 3:return r=t.stateNode,dr(),ue(Ve),ue(be),Aa(),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,yt!==null&&(Vs(yt),yt=null))),Ms(e,t),Ie(t),null;case 5:Da(t);var i=En(di.current);if(n=t.type,e!==null&&t.stateNode!=null)Tp(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 Ie(t),null}if(e=En(Pt.current),Bi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[zt]=t,r[ci]=l,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)ae(Or[i],r);break;case"source":ae("error",r);break;case"img":case"image":case"link":ae("error",r),ae("load",r);break;case"details":ae("toggle",r);break;case"input":_u(r,l),ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ae("invalid",r);break;case"textarea":Du(r,l),ae("invalid",r)}us(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&&Oi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Oi(r.textContent,s,e),i=["children",""+s]):ei.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&ae("scroll",r)}switch(n){case"input":Li(r),bu(r,l,!0);break;case"textarea":Li(r),Au(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=xl)}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=rd(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[zt]=t,e[ci]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(o=cs(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)ae(Or[i],e);i=r;break;case"source":ae("error",e),i=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),i=r;break;case"details":ae("toggle",e),i=r;break;case"input":_u(e,r),i=is(e,r),ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=pe({},r,{value:void 0}),ae("invalid",e);break;case"textarea":Du(e,r),i=ss(e,r),ae("invalid",e);break;default:i=r}us(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?od(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&id(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ti(e,a):typeof a=="number"&&ti(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ei.hasOwnProperty(l)?a!=null&&l==="onScroll"&&ae("scroll",e):a!=null&&fa(e,l,a,o))}switch(n){case"input":Li(e),bu(e,r,!1);break;case"textarea":Li(e),Au(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?tr(e,!!r.multiple,l,!1):r.defaultValue!=null&&tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xl)}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 Ie(t),null;case 6:if(e&&t.stateNode!=null)Pp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=En(di.current),En(Pt.current),Bi(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(l=r.nodeValue!==n)&&(e=Ze,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return Ie(t),null;case 13:if(ue(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&Je!==null&&t.mode&1&&!(t.flags&128))qd(),cr(),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[zt]=t}else cr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ie(t),l=!1}else yt!==null&&(Vs(yt),yt=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||fe.current&1?Se===0&&(Se=3):qa())),t.updateQueue!==null&&(t.flags|=4),Ie(t),null);case 4:return dr(),Ms(e,t),e===null&&ai(t.stateNode.containerInfo),Ie(t),null;case 10:return Ia(t.type._context),Ie(t),null;case 17:return We(t.type)&&kl(),Ie(t),null;case 19:if(ue(fe),l=t.memoizedState,l===null)return Ie(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Lr(l,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zl(e),o!==null){for(t.flags|=128,Lr(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 le(fe,fe.current&1|2),t.child}e=e.sibling}l.tail!==null&&ge()>hr&&(t.flags|=128,r=!0,Lr(l,!1),t.lanes=4194304)}else{if(!r)if(e=zl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ce)return Ie(t),null}else 2*ge()-l.renderingStartTime>hr&&n!==1073741824&&(t.flags|=128,r=!0,Lr(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=ge(),t.sibling=null,n=fe.current,le(fe,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return Qa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function zy(e,t){switch(Na(t),t.tag){case 1:return We(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),ue(Ve),ue(be),Aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Da(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return dr(),null;case 10:return Ia(t.type._context),null;case 22:case 23:return Qa(),null;case 24:return null;default:return null}}var Hi=!1,Le=!1,Ty=typeof WeakSet=="function"?WeakSet:Set,M=null;function Zn(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 Rs(e,t,n){try{n()}catch(r){he(e,t,r)}}var Ec=!1;function Py(e,t){if(ks=gl,e=Dd(),Ea(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,p=null;t:for(;;){for(var h;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),(h=c.firstChild)!==null;)p=c,c=h;for(;;){if(c===e)break t;if(p===n&&++u===i&&(s=o),p===l&&++f===r&&(a=o),(h=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ws={focusedElem:e,selectionRange:n},gl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,C=m.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:mt(t.type,x),C);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(j){he(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return m=Ec,Ec=!1,m}function Qr(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&&Rs(t,n,l)}i=i.next}while(i!==r)}}function Xl(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 Fs(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 Ip(e){var t=e.alternate;t!==null&&(e.alternate=null,Ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[ci],delete t[Es],delete t[fy],delete t[dy])),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 Lp(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(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 Os(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=xl));else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}function Bs(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(Bs(e,t,n),e=e.sibling;e!==null;)Bs(e,t,n),e=e.sibling}var Ne=null,gt=!1;function qt(e,t,n){for(n=n.child;n!==null;)_p(e,t,n),n=n.sibling}function _p(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:Le||Zn(n,t);case 6:var r=Ne,i=gt;Ne=null,qt(e,t,n),Ne=r,gt=i,Ne!==null&&(gt?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(gt?(e=Ne,n=n.stateNode,e.nodeType===8?To(e.parentNode,n):e.nodeType===1&&To(e,n),li(e)):To(Ne,n.stateNode));break;case 4:r=Ne,i=gt,Ne=n.stateNode.containerInfo,gt=!0,qt(e,t,n),Ne=r,gt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(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)&&Rs(n,t,o),i=i.next}while(i!==r)}qt(e,t,n);break;case 1:if(!Le&&(Zn(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)}qt(e,t,n);break;case 21:qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,qt(e,t,n),Le=r):qt(e,t,n);break;default:qt(e,t,n)}}function Nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ty),t.forEach(function(r){var i=Fy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ht(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:Ne=s.stateNode,gt=!1;break e;case 3:Ne=s.stateNode.containerInfo,gt=!0;break e;case 4:Ne=s.stateNode.containerInfo,gt=!0;break e}s=s.return}if(Ne===null)throw Error(L(160));_p(l,o,i),Ne=null,gt=!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;)bp(t,e),t=t.sibling}function bp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),Et(e),r&4){try{Qr(3,e,e.return),Xl(3,e)}catch(x){he(e,e.return,x)}try{Qr(5,e,e.return)}catch(x){he(e,e.return,x)}}break;case 1:ht(t,e),Et(e),r&512&&n!==null&&Zn(n,n.return);break;case 5:if(ht(t,e),Et(e),r&512&&n!==null&&Zn(n,n.return),e.flags&32){var i=e.stateNode;try{ti(i,"")}catch(x){he(e,e.return,x)}}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&&td(i,l),cs(s,o);var u=cs(s,l);for(o=0;o<a.length;o+=2){var f=a[o],c=a[o+1];f==="style"?od(i,c):f==="dangerouslySetInnerHTML"?id(i,c):f==="children"?ti(i,c):fa(i,f,c,u)}switch(s){case"input":ls(i,l);break;case"textarea":nd(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?tr(i,!!l.multiple,h,!1):p!==!!l.multiple&&(l.defaultValue!=null?tr(i,!!l.multiple,l.defaultValue,!0):tr(i,!!l.multiple,l.multiple?[]:"",!1))}i[ci]=l}catch(x){he(e,e.return,x)}}break;case 6:if(ht(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){he(e,e.return,x)}}break;case 3:if(ht(t,e),Et(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(x){he(e,e.return,x)}break;case 4:ht(t,e),Et(e);break;case 13:ht(t,e),Et(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Va=ge())),r&4&&Nc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Le=(u=Le)||f,ht(t,e),Le=u):ht(t,e),Et(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(c=M=f;M!==null;){switch(p=M,h=p.child,p.tag){case 0:case 11:case 14:case 15:Qr(4,p,p.return);break;case 1:Zn(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(x){he(r,n,x)}}break;case 5:Zn(p,p.return);break;case 22:if(p.memoizedState!==null){Tc(c);continue}}h!==null?(h.return=p,M=h):Tc(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=ld("display",o))}catch(x){he(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(x){he(e,e.return,x)}}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:ht(t,e),Et(e),r&4&&Nc(e);break;case 21:break;default:ht(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lp(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&&(ti(i,""),r.flags&=-33);var l=jc(e);Bs(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=jc(e);Os(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 Iy(e,t,n){M=e,Dp(e)}function Dp(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Hi;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||Le;s=Hi;var u=Le;if(Hi=o,(Le=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?Pc(i):a!==null?(a.return=o,M=a):Pc(i);for(;l!==null;)M=l,Dp(l),l=l.sibling;M=i,Hi=s,Le=u}zc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):zc(e)}}function zc(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Le||Xl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Le)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&fc(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}fc(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&&li(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Le||t.flags&512&&Fs(t)}catch(p){he(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function Tc(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function Pc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xl(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{Fs(t)}catch(a){he(t,l,a)}break;case 5:var o=t.return;try{Fs(t)}catch(a){he(t,o,a)}}}catch(a){he(t,t.return,a)}if(t===e){M=null;break}var s=t.sibling;if(s!==null){s.return=t.return,M=s;break}M=t.return}}var Ly=Math.ceil,Il=Ht.ReactCurrentDispatcher,Ua=Ht.ReactCurrentOwner,at=Ht.ReactCurrentBatchConfig,G=0,je=null,xe=null,ze=0,Ge=0,er=pn(0),Se=0,gi=null,Ln=0,Kl=0,Ha=0,qr=null,$e=null,Va=0,hr=1/0,bt=null,Ll=!1,$s=null,sn=null,Vi=!1,en=null,_l=0,Yr=0,Us=null,ll=-1,ol=0;function Re(){return G&6?ge():ll!==-1?ll:ll=ge()}function an(e){return e.mode&1?G&2&&ze!==0?ze&-ze:hy.transition!==null?(ol===0&&(ol=vd()),ol):(e=Z,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function xt(e,t,n,r){if(50<Yr)throw Yr=0,Us=null,Error(L(185));wi(e,n,r),(!(G&2)||e!==je)&&(e===je&&(!(G&2)&&(Kl|=n),Se===4&&Jt(e,ze)),Qe(e,r),n===1&&G===0&&!(t.mode&1)&&(hr=ge()+500,Ql&&hn()))}function Qe(e,t){var n=e.callbackNode;hg(e,t);var r=ml(e,e===je?ze:0);if(r===0)n!==null&&Fu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fu(n),t===1)e.tag===0?py(Ic.bind(null,e)):Vd(Ic.bind(null,e)),uy(function(){!(G&6)&&hn()}),n=null;else{switch(xd(r)){case 1:n=ga;break;case 4:n=gd;break;case 16:n=hl;break;case 536870912:n=yd;break;default:n=hl}n=Up(n,Ap.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ap(e,t){if(ll=-1,ol=0,G&6)throw Error(L(327));var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var r=ml(e,e===je?ze:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=bl(e,r);else{t=r;var i=G;G|=2;var l=Rp();(je!==e||ze!==t)&&(bt=null,hr=ge()+500,jn(e,t));do try{Dy();break}catch(s){Mp(e,s)}while(!0);Pa(),Il.current=l,G=i,xe!==null?t=0:(je=null,ze=0,t=Se)}if(t!==0){if(t===2&&(i=ms(e),i!==0&&(r=i,t=Hs(e,i))),t===1)throw n=gi,jn(e,0),Jt(e,r),Qe(e,ge()),n;if(t===6)Jt(e,r);else{if(i=e.current.alternate,!(r&30)&&!_y(i)&&(t=bl(e,r),t===2&&(l=ms(e),l!==0&&(r=l,t=Hs(e,l))),t===1))throw n=gi,jn(e,0),Jt(e,r),Qe(e,ge()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:kn(e,$e,bt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Va+500-ge(),10<t)){if(ml(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Re(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Cs(kn.bind(null,e,$e,bt),t);break}kn(e,$e,bt);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-vt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ly(r/1960))-r,10<r){e.timeoutHandle=Cs(kn.bind(null,e,$e,bt),r);break}kn(e,$e,bt);break;case 5:kn(e,$e,bt);break;default:throw Error(L(329))}}}return Qe(e,ge()),e.callbackNode===n?Ap.bind(null,e):null}function Hs(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(jn(e,t).flags|=256),e=bl(e,t),e!==2&&(t=$e,$e=n,t!==null&&Vs(t)),e}function Vs(e){$e===null?$e=e:$e.push.apply($e,e)}function _y(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(!St(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 Jt(e,t){for(t&=~Ha,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-vt(t),r=1<<n;e[n]=-1,t&=~r}}function Ic(e){if(G&6)throw Error(L(327));or();var t=ml(e,0);if(!(t&1))return Qe(e,ge()),null;var n=bl(e,t);if(e.tag!==0&&n===2){var r=ms(e);r!==0&&(t=r,n=Hs(e,r))}if(n===1)throw n=gi,jn(e,0),Jt(e,t),Qe(e,ge()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,$e,bt),Qe(e,ge()),null}function Wa(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(hr=ge()+500,Ql&&hn())}}function _n(e){en!==null&&en.tag===0&&!(G&6)&&or();var t=G;G|=1;var n=at.transition,r=Z;try{if(at.transition=null,Z=1,e)return e()}finally{Z=r,at.transition=n,G=t,!(G&6)&&hn()}}function Qa(){Ge=er.current,ue(er)}function jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ay(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(Na(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:dr(),ue(Ve),ue(be),Aa();break;case 5:Da(r);break;case 4:dr();break;case 13:ue(fe);break;case 19:ue(fe);break;case 10:Ia(r.type._context);break;case 22:case 23:Qa()}n=n.return}if(je=e,xe=e=un(e.current,null),ze=Ge=t,Se=0,gi=null,Ha=Kl=Ln=0,$e=qr=null,Cn!==null){for(t=0;t<Cn.length;t++)if(n=Cn[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}Cn=null}return e}function Mp(e,t){do{var n=xe;try{if(Pa(),nl.current=Pl,Tl){for(var r=de.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Tl=!1}if(In=0,Ee=we=de=null,Wr=!1,pi=0,Ua.current=null,n===null||n.return===null){Se=1,gi=t,xe=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=ze,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 p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=yc(o);if(h!==null){h.flags&=-257,vc(h,o,s,l,t),h.mode&1&&gc(l,u,t),t=h,a=u;var m=t.updateQueue;if(m===null){var x=new Set;x.add(a),t.updateQueue=x}else m.add(a);break e}else{if(!(t&1)){gc(l,u,t),qa();break e}a=Error(L(426))}}else if(ce&&s.mode&1){var C=yc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),vc(C,o,s,l,t),za(pr(a,s));break e}}l=a=pr(a,s),Se!==4&&(Se=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 g=xp(l,a,t);cc(l,g);break e;case 1:s=a;var y=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(sn===null||!sn.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var j=kp(l,s,t);cc(l,j);break e}}l=l.return}while(l!==null)}Op(n)}catch(z){t=z,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function Rp(){var e=Il.current;return Il.current=Pl,e===null?Pl:e}function qa(){(Se===0||Se===3||Se===2)&&(Se=4),je===null||!(Ln&268435455)&&!(Kl&268435455)||Jt(je,ze)}function bl(e,t){var n=G;G|=2;var r=Rp();(je!==e||ze!==t)&&(bt=null,jn(e,t));do try{by();break}catch(i){Mp(e,i)}while(!0);if(Pa(),G=n,Il.current=r,xe!==null)throw Error(L(261));return je=null,ze=0,Se}function by(){for(;xe!==null;)Fp(xe)}function Dy(){for(;xe!==null&&!lg();)Fp(xe)}function Fp(e){var t=$p(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?Op(e):xe=t,Ua.current=null}function Op(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zy(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Se=6,xe=null;return}}else if(n=Ny(n,t,Ge),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Se===0&&(Se=5)}function kn(e,t,n){var r=Z,i=at.transition;try{at.transition=null,Z=1,Ay(e,t,n,r)}finally{at.transition=i,Z=r}return null}function Ay(e,t,n,r){do or();while(en!==null);if(G&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(mg(e,l),e===je&&(xe=je=null,ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vi||(Vi=!0,Up(hl,function(){return or(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=at.transition,at.transition=null;var o=Z;Z=1;var s=G;G|=4,Ua.current=null,Py(e,n),bp(n,e),ty(ws),gl=!!ks,ws=ks=null,e.current=n,Iy(n),og(),G=s,Z=o,at.transition=l}else e.current=n;if(Vi&&(Vi=!1,en=e,_l=i),l=e.pendingLanes,l===0&&(sn=null),ug(n.stateNode),Qe(e,ge()),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(Ll)throw Ll=!1,e=$s,$s=null,e;return _l&1&&e.tag!==0&&or(),l=e.pendingLanes,l&1?e===Us?Yr++:(Yr=0,Us=e):Yr=0,hn(),null}function or(){if(en!==null){var e=xd(_l),t=at.transition,n=Z;try{if(at.transition=null,Z=16>e?16:e,en===null)var r=!1;else{if(e=en,en=null,_l=0,G&6)throw Error(L(331));var i=G;for(G|=4,M=e.current;M!==null;){var l=M,o=l.child;if(M.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(M=u;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:Qr(8,f,l)}var c=f.child;if(c!==null)c.return=f,M=c;else for(;M!==null;){f=M;var p=f.sibling,h=f.return;if(Ip(f),f===u){M=null;break}if(p!==null){p.return=h,M=p;break}M=h}}}var m=l.alternate;if(m!==null){var x=m.child;if(x!==null){m.child=null;do{var C=x.sibling;x.sibling=null,x=C}while(x!==null)}}M=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,M=o;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Qr(9,l,l.return)}var g=l.sibling;if(g!==null){g.return=l.return,M=g;break e}M=l.return}}var y=e.current;for(M=y;M!==null;){o=M;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,M=v;else e:for(o=y;M!==null;){if(s=M,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Xl(9,s)}}catch(z){he(s,s.return,z)}if(s===o){M=null;break e}var j=s.sibling;if(j!==null){j.return=s.return,M=j;break e}M=s.return}}if(G=i,hn(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot($l,e)}catch{}r=!0}return r}finally{Z=n,at.transition=t}}return!1}function Lc(e,t,n){t=pr(n,t),t=xp(e,t,1),e=on(e,t,1),t=Re(),e!==null&&(wi(e,1,t),Qe(e,t))}function he(e,t,n){if(e.tag===3)Lc(e,e,n);else for(;t!==null;){if(t.tag===3){Lc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sn===null||!sn.has(r))){e=pr(n,e),e=kp(t,e,1),t=on(t,e,1),e=Re(),t!==null&&(wi(t,1,e),Qe(t,e));break}}t=t.return}}function My(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Re(),e.pingedLanes|=e.suspendedLanes&n,je===e&&(ze&n)===n&&(Se===4||Se===3&&(ze&130023424)===ze&&500>ge()-Va?jn(e,0):Ha|=n),Qe(e,t)}function Bp(e,t){t===0&&(e.mode&1?(t=Di,Di<<=1,!(Di&130023424)&&(Di=4194304)):t=1);var n=Re();e=Bt(e,t),e!==null&&(wi(e,t,n),Qe(e,n))}function Ry(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bp(e,n)}function Fy(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),Bp(e,n)}var $p;$p=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,jy(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ce&&t.flags&1048576&&Wd(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var i=ur(t,be.current);lr(t,n),i=Ra(null,t,r,e,i,n);var l=Fa();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,We(r)?(l=!0,wl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_a(t),i.updater=Yl,t.stateNode=i,i._reactInternals=t,Is(t,r,e,n),t=bs(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&ja(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=By(r),e=mt(r,e),i){case 0:t=_s(null,t,r,e,n);break e;case 1:t=wc(null,t,r,e,n);break e;case 11:t=xc(null,t,r,e,n);break e;case 14:t=kc(null,t,r,mt(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:mt(r,i),_s(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),wc(e,t,r,i,n);case 3:e:{if(Ep(t),e===null)throw Error(L(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Gd(e,t),Nl(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=pr(Error(L(423)),t),t=Sc(e,t,r,n,i);break e}else if(r!==i){i=pr(Error(L(424)),t),t=Sc(e,t,r,n,i);break e}else for(Je=ln(t.stateNode.containerInfo.firstChild),Ze=t,ce=!0,yt=null,n=Xd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cr(),r===i){t=$t(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Jd(t),e===null&&zs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ss(r,i)?o=null:l!==null&&Ss(r,l)&&(t.flags|=32),Cp(e,t),Ae(e,t,o,n),t.child;case 6:return e===null&&zs(t),null;case 13:return jp(e,t,n);case 4:return ba(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),xc(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(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,le(El,r._currentValue),r._currentValue=o,l!==null)if(St(l.value,o)){if(l.children===i.children&&!Ve.current){t=$t(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=Rt(-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),Ts(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),Ts(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}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,lr(t,n),i=ct(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),kc(e,t,r,i,n);case 15:return wp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),il(e,t),t.tag=1,We(r)?(e=!0,wl(t)):e=!1,lr(t,n),vp(t,r,i),Is(t,r,i,n),bs(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return Sp(e,t,n)}throw Error(L(156,t.tag))};function Up(e,t){return md(e,t)}function Oy(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 st(e,t,n,r){return new Oy(e,t,n,r)}function Ya(e){return e=e.prototype,!(!e||!e.isReactComponent)}function By(e){if(typeof e=="function")return Ya(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pa)return 11;if(e===ha)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=st(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 sl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ya(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Vn:return Nn(n.children,i,l,t);case da:o=8,i|=8;break;case es:return e=st(12,n,t,i|2),e.elementType=es,e.lanes=l,e;case ts:return e=st(13,n,t,i),e.elementType=ts,e.lanes=l,e;case ns:return e=st(19,n,t,i),e.elementType=ns,e.lanes=l,e;case Jf:return Gl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kf:o=10;break e;case Gf:o=9;break e;case pa:o=11;break e;case ha:o=14;break e;case Xt:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=st(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Nn(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Gl(e,t,n,r){return e=st(22,e,r,t),e.elementType=Jf,e.lanes=n,e.stateNode={isHidden:!1},e}function Mo(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $y(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=yo(0),this.expirationTimes=yo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,i,l,o,s,a){return e=new $y(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=st(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(l),e}function Uy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hp(e){if(!e)return fn;e=e._reactInternals;e:{if(An(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(We(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(We(n))return Hd(e,n,t)}return t}function Vp(e,t,n,r,i,l,o,s,a){return e=Xa(n,r,!0,e,i,l,o,s,a),e.context=Hp(null),n=e.current,r=Re(),i=an(n),l=Rt(r,i),l.callback=t??null,on(n,l,i),e.current.lanes=i,wi(e,i,r),Qe(e,r),e}function Jl(e,t,n,r){var i=t.current,l=Re(),o=an(i);return n=Hp(n),t.context===null?t.context=n:t.pendingContext=n,t=Rt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=on(i,t,o),e!==null&&(xt(e,i,o,l),tl(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 _c(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ka(e,t){_c(e,t),(e=e.alternate)&&_c(e,t)}function Hy(){return null}var Wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ga(e){this._internalRoot=e}Zl.prototype.render=Ga.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Jl(e,t,null,null)};Zl.prototype.unmount=Ga.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_n(function(){Jl(null,e,null,null)}),t[Ot]=null}};function Zl(e){this._internalRoot=e}Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&Ed(e)}};function Ja(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bc(){}function Vy(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=Vp(t,r,e,0,null,!1,!1,"",bc);return e._reactRootContainer=o,e[Ot]=o.current,ai(e.nodeType===8?e.parentNode:e),_n(),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=Xa(e,0,!1,null,null,!1,!1,"",bc);return e._reactRootContainer=a,e[Ot]=a.current,ai(e.nodeType===8?e.parentNode:e),_n(function(){Jl(t,a,n,r)}),a}function to(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Dl(o);s.call(a)}}Jl(t,o,e,i)}else o=Vy(n,t,e,i,r);return Dl(o)}kd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fr(t.pendingLanes);n!==0&&(ya(t,n|1),Qe(t,ge()),!(G&6)&&(hr=ge()+500,hn()))}break;case 13:_n(function(){var r=Bt(e,1);if(r!==null){var i=Re();xt(r,e,1,i)}}),Ka(e,1)}};va=function(e){if(e.tag===13){var t=Bt(e,134217728);if(t!==null){var n=Re();xt(t,e,134217728,n)}Ka(e,134217728)}};wd=function(e){if(e.tag===13){var t=an(e),n=Bt(e,t);if(n!==null){var r=Re();xt(n,e,t,r)}Ka(e,t)}};Sd=function(){return Z};Cd=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};ds=function(e,t,n){switch(t){case"input":if(ls(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Wl(r);if(!i)throw Error(L(90));ed(r),ls(r,i)}}}break;case"textarea":nd(e,n);break;case"select":t=n.value,t!=null&&tr(e,!!n.multiple,t,!1)}};ud=Wa;cd=_n;var Wy={usingClientEntryPoint:!1,Events:[Ci,Yn,Wl,sd,ad,Wa]},_r={findFiberByHostInstance:Sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qy={bundleType:_r.bundleType,version:_r.version,rendererPackageName:_r.rendererPackageName,rendererConfig:_r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ht.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pd(e),e===null?null:e.stateNode},findFiberByHostInstance:_r.findFiberByHostInstance||Hy,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{$l=Wi.inject(Qy),Tt=Wi}catch{}}nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wy;nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ja(t))throw Error(L(200));return Uy(e,t,null,n)};nt.createRoot=function(e,t){if(!Ja(e))throw Error(L(299));var n=!1,r="",i=Wp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Xa(e,1,!1,null,null,n,!1,r,i),e[Ot]=t.current,ai(e.nodeType===8?e.parentNode:e),new Ga(t)};nt.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};nt.flushSync=function(e){return _n(e)};nt.hydrate=function(e,t,n){if(!eo(t))throw Error(L(200));return to(null,e,t,!0,n)};nt.hydrateRoot=function(e,t,n){if(!Ja(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=Wp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Vp(t,null,e,1,n??null,i,!1,l,o),e[Ot]=t.current,ai(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zl(t)};nt.render=function(e,t,n){if(!eo(t))throw Error(L(200));return to(null,e,t,!1,n)};nt.unmountComponentAtNode=function(e){if(!eo(e))throw Error(L(40));return e._reactRootContainer?(_n(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};nt.unstable_batchedUpdates=Wa;nt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return to(e,t,n,!1,r)};nt.version="18.3.1-next-f1338f8080-20240426";function Qp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qp)}catch(e){console.error(e)}}Qp(),Qf.exports=nt;var qp=Qf.exports,Yp,Dc=qp;Yp=Dc.createRoot,Dc.hydrateRoot;/**
41
- * @license lucide-react v0.460.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const qy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
- * @license lucide-react v0.460.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var Yy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
- * @license lucide-react v0.460.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const Xy=I.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...s},a)=>I.createElement("svg",{ref:a,...Yy,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xp("lucide",i),...s},[...o.map(([u,f])=>I.createElement(u,f)),...Array.isArray(l)?l:[l]]));/**
56
- * @license lucide-react v0.460.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const H=(e,t)=>{const n=I.forwardRef(({className:r,...i},l)=>I.createElement(Xy,{ref:l,iconNode:t,className:Xp(`lucide-${qy(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61
- * @license lucide-react v0.460.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Al=H("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
66
- * @license lucide-react v0.460.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const Ky=H("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
71
- * @license lucide-react v0.460.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Gy=H("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
76
- * @license lucide-react v0.460.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Jy=H("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
81
- * @license lucide-react v0.460.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const Zy=H("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
86
- * @license lucide-react v0.460.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const e1=H("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
91
- * @license lucide-react v0.460.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const t1=H("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);/**
96
- * @license lucide-react v0.460.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const n1=H("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
101
- * @license lucide-react v0.460.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const r1=H("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
106
- * @license lucide-react v0.460.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const i1=H("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
111
- * @license lucide-react v0.460.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const l1=H("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
116
- * @license lucide-react v0.460.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Ac=H("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
121
- * @license lucide-react v0.460.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const no=H("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
126
- * @license lucide-react v0.460.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const o1=H("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 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",key:"oot6mr"}]]);/**
131
- * @license lucide-react v0.460.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const Kp=H("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
136
- * @license lucide-react v0.460.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Gp=H("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
141
- * @license lucide-react v0.460.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const sr=H("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
146
- * @license lucide-react v0.460.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const s1=H("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
151
- * @license lucide-react v0.460.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const a1=H("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
156
- * @license lucide-react v0.460.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const yi=H("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
161
- * @license lucide-react v0.460.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const u1=H("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
166
- * @license lucide-react v0.460.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const c1=H("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
171
- * @license lucide-react v0.460.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const f1=H("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
176
- * @license lucide-react v0.460.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const Jp=H("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
181
- * @license lucide-react v0.460.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const Za=H("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
186
- * @license lucide-react v0.460.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const mn=H("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
191
- * @license lucide-react v0.460.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const Zp=H("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
196
- * @license lucide-react v0.460.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const d1=H("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
201
- * @license lucide-react v0.460.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const p1=H("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
206
- * @license lucide-react v0.460.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const eh=H("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
211
- * @license lucide-react v0.460.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const h1=H("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
216
- * @license lucide-react v0.460.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const th=H("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
221
- * @license lucide-react v0.460.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const eu=H("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
226
- * @license lucide-react v0.460.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const m1=H("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
231
- * @license lucide-react v0.460.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const g1=H("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
236
- * @license lucide-react v0.460.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const y1=H("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
241
- * @license lucide-react v0.460.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const ro=H("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
246
- * @license lucide-react v0.460.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const v1=H("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Ce(...e){return e.filter(Boolean).join(" ")}function kr(e){if(!e&&e!==0)return"";const t=typeof e=="number"?e:new Date(e).getTime();if(Number.isNaN(t))return"";const n=Date.now()-t;return n<0||n<6e4?"just now":n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:n<7*864e5?`${Math.floor(n/864e5)}d ago`:new Date(t).toLocaleDateString()}function Ws(e){if(!e)return"";const t=typeof e=="number"?new Date(e):new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString()}function nh(e,t=160){return e?e.length>t?e.slice(0,t)+"…":e:""}function x1(e,t=200){let n=null;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>e(...r),t)}}const k1={low:"var(--text-dim)",normal:"var(--info)",high:"var(--error)"};function Mc(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t^e.charCodeAt(n);return(t>>>0).toString(36)}const Qs=[{id:"overview",label:"Overview",icon:Gp},{id:"chat",label:"Chat",icon:yi},{id:"agents",label:"Agents",icon:Al},{id:"plans",label:"Plans",icon:sr},{id:"projects",label:"Projects",icon:no},{id:"tasks",label:"Tasks",icon:eu},{id:"config",label:"Config",icon:eh},{id:"settings",label:"Settings",icon:th}];function w1({activeTab:e,onTabChange:t,wsStatus:n,version:r,rightSlot:i}){return d.jsxs("header",{className:"topbar",children:[d.jsxs("div",{className:"brand",children:[d.jsx("span",{className:"brand-logo","aria-hidden":!0,children:"🪩"}),d.jsx("span",{className:"brand-title",children:"Bizar"}),d.jsx("span",{className:"brand-version",children:r})]}),d.jsx("nav",{className:"tabs",role:"tablist",children:Qs.map(l=>{const o=l.icon,s=l.id===e;return d.jsxs("button",{type:"button",role:"tab","aria-selected":s,className:Ce("tab",s&&"tab-active"),onClick:()=>t(l.id),title:`${l.label} (${Qs.findIndex(a=>a.id===l.id)+1})`,children:[d.jsx(o,{size:14,className:"tab-icon"}),d.jsx("span",{className:"tab-label",children:l.label})]},l.id)})}),d.jsxs("div",{className:"topbar-right",children:[i,d.jsxs("div",{className:Ce("ws-status",`ws-${n}`),title:`WebSocket: ${n}`,children:[d.jsx("span",{className:"ws-dot"}),d.jsx("span",{className:"ws-label",children:n})]})]})]})}const rh=I.createContext(null);function tu(){const e=I.useContext(rh);return e||{open:()=>"",close:()=>{}}}function S1({children:e}){const[t,n]=I.useState([]),r=I.useCallback(l=>{n(o=>{if(!l)return[];const s=o.findIndex(a=>a.id===l);return s===-1||s!==o.length-1?o:o.slice(0,-1)})},[]),i=I.useCallback(l=>{const o=`m${Math.random().toString(36).slice(2,9)}`;return n(s=>[...s,{...l,id:o}]),o},[]);return I.useEffect(()=>{if(t.length===0)return;const l=o=>{o.key==="Escape"&&(o.stopPropagation(),r())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t.length,r]),d.jsxs(rh.Provider,{value:{open:i,close:r},children:[e,typeof document<"u"&&qp.createPortal(d.jsx("div",{className:"modal-stack","aria-hidden":t.length===0,children:t.map((l,o)=>d.jsx(C1,{modal:l,onClose:()=>{var s;(s=l.onClose)==null||s.call(l),r(l.id)},depth:o},l.id))}),document.body)]})}function C1({modal:e,onClose:t,depth:n}){return d.jsx("div",{className:"modal-backdrop",onClick:r=>{r.target===r.currentTarget&&t()},style:n>0?{background:"rgba(0,0,0,0.4)"}:void 0,children:d.jsxs("div",{className:"modal",role:"dialog","aria-modal":"true",style:e.width?{maxWidth:e.width}:void 0,children:[e.title&&d.jsxs("header",{className:"modal-header",children:[d.jsx("h2",{className:"modal-title",children:e.title}),d.jsx("button",{type:"button",className:"icon-btn","aria-label":"Close",onClick:t,children:d.jsx(ro,{size:16})})]}),d.jsx("div",{className:"modal-body",children:e.children}),e.footer&&d.jsx("footer",{className:"modal-footer",children:e.footer})]})})}const ih=I.createContext(null);function Vt(){const e=I.useContext(ih);return e||{show:()=>{},info:()=>{},success:()=>{},error:()=>{},warning:()=>{},dismiss:()=>{},toasts:[]}}const E1={info:Kp,success:Zy,error:Jy,warning:y1};function j1({children:e}){const[t,n]=I.useState([]),r=I.useRef(1),i=I.useRef(new Map),l=I.useCallback(a=>{n(f=>f.filter(c=>c.id!==a));const u=i.current.get(a);u&&(clearTimeout(u),i.current.delete(a))},[]),o=I.useCallback((a,u="info",f=4e3)=>{const c=r.current++;if(n(p=>[...p,{id:c,kind:u,message:a}]),f>0){const p=setTimeout(()=>l(c),f);i.current.set(c,p)}},[l]),s=I.useMemo(()=>({show:o,info:(a,u)=>o(a,"info",u),success:(a,u)=>o(a,"success",u),error:(a,u)=>o(a,"error",u),warning:(a,u)=>o(a,"warning",u),dismiss:l,toasts:t}),[o,l,t]);return d.jsxs(ih.Provider,{value:s,children:[e,d.jsx(N1,{toasts:t,onDismiss:l})]})}function N1({toasts:e,onDismiss:t}){return d.jsx("div",{className:"toast-stack","aria-live":"polite",children:e.map(n=>d.jsx(z1,{toast:n,onDismiss:t},n.id))})}function z1({toast:e,onDismiss:t}){const n=E1[e.kind];return d.jsxs("div",{className:`toast toast-${e.kind}`,role:"status",children:[d.jsx(n,{size:16,className:"toast-icon"}),d.jsx("span",{className:"toast-message",children:e.message}),d.jsx("button",{type:"button",className:"toast-close","aria-label":"Dismiss",onClick:()=>t(e.id),children:d.jsx(ro,{size:14})})]})}class Rc extends Error{constructor(n,r,i){super(n);Xe(this,"status");Xe(this,"data");this.name="ApiError",this.status=r,this.data=i}}class T1{constructor(){Xe(this,"base","/api")}async get(t){return this.req("GET",t)}async post(t,n){return this.req("POST",t,n)}async put(t,n){return this.req("PUT",t,n)}async patch(t,n){return this.req("PATCH",t,n)}async del(t){return this.req("DELETE",t)}async req(t,n,r){const i={method:t,headers:{"Content-Type":"application/json"}};r!=null&&(i.body=typeof r=="string"?r:JSON.stringify(r));const l=await fetch(this.base+n,i);if((l.headers.get("content-type")||"").includes("application/json")){const a=await l.json();if(!l.ok){const u=(a&&typeof a=="object"&&"message"in a?a.message:void 0)||`${t} ${n}: ${l.status}`;throw new Rc(u,l.status,a)}return a}const s=await l.text();if(!l.ok)throw new Rc(`${t} ${n}: ${l.status} — ${s.slice(0,200)}`,l.status,s);try{return JSON.parse(s)}catch{return s}}}const oe=new T1;class P1{constructor(t){Xe(this,"url");Xe(this,"handlers",new Set);Xe(this,"statusHandlers",new Set);Xe(this,"ws",null);Xe(this,"reconnectDelay",1e3);Xe(this,"maxReconnectDelay",15e3);Xe(this,"_status","connecting");Xe(this,"pingTimer",null);Xe(this,"closed",!1);this.url=t||(typeof location<"u"?`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws`:"ws://localhost/ws"),this.connect()}on(t){return this.handlers.add(t),()=>{this.handlers.delete(t)}}onStatus(t){return this.statusHandlers.add(t),t(this._status),()=>{this.statusHandlers.delete(t)}}get status(){return this._status}send(t){return this.ws&&this.ws.readyState===WebSocket.OPEN?(this.ws.send(JSON.stringify(t)),!0):!1}close(){var t;this.closed=!0,this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null;try{(t=this.ws)==null||t.close()}catch{}}connect(){this.setStatus("connecting");try{this.ws=new WebSocket(this.url)}catch(t){console.warn("[ws] construct failed:",t),this.scheduleReconnect();return}this.ws.addEventListener("open",()=>{this.reconnectDelay=1e3,this.setStatus("connected"),this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=setInterval(()=>{this._status==="connected"&&this.send({type:"ping"})},3e4)}),this.ws.addEventListener("close",()=>{this.setStatus("disconnected"),this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null),this.closed||this.scheduleReconnect()}),this.ws.addEventListener("error",()=>{console.warn("[ws] error")}),this.ws.addEventListener("message",t=>{let n;try{n=JSON.parse(t.data)}catch{console.warn("[ws] bad message");return}for(const r of this.handlers)try{r(n)}catch(i){console.error("[ws] handler error:",i)}})}scheduleReconnect(){setTimeout(()=>this.connect(),this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*1.6,this.maxReconnectDelay)}setStatus(t){this._status=t;for(const n of this.statusHandlers)try{n(t)}catch(r){console.error("[ws] status handler error:",r)}}}function Xr(e){const t=e==="system"?typeof window<"u"&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":e;return typeof document<"u"&&(t==="light"?document.documentElement.setAttribute("data-theme","light"):document.documentElement.removeAttribute("data-theme")),t}function He({variant:e="elevated",interactive:t=!1,className:n,children:r,...i}){return d.jsx("div",{className:Ce("card",`card-${e}`,t&&"card-interactive",n),...i,children:r})}function ut({children:e,className:t}){return d.jsx("h3",{className:Ce("card-title",t),children:e})}function kt({children:e,className:t}){return d.jsx("div",{className:Ce("card-meta",t),children:e})}const J=I.forwardRef(function({variant:t="secondary",size:n="md",iconOnly:r=!1,loading:i=!1,disabled:l,className:o,children:s,...a},u){return d.jsxs("button",{ref:u,type:a.type??"button",disabled:l||i,className:Ce("btn",`btn-${t}`,`btn-size-${n}`,r&&"btn-icon",i&&"btn-loading",o),...a,children:[i?d.jsx("span",{className:"btn-spinner","aria-hidden":!0}):null,s]})});function mr({icon:e,title:t,message:n,action:r,className:i}){return d.jsxs("div",{className:Ce("empty-state",i),children:[d.jsx("div",{className:"empty-icon",children:e??d.jsx(o1,{size:32})}),d.jsx("div",{className:"empty-title",children:t}),n&&d.jsx("div",{className:"empty-message",children:n}),r&&d.jsx("div",{className:"empty-action",children:r})]})}function Ut({size:e="md",className:t,label:n}){return d.jsx("span",{className:Ce("spinner",`spinner-${e}`,t),role:"status","aria-label":n||"Loading"})}const I1=[{key:"agents",label:"Agents",Icon:Al,tab:"agents"},{key:"plans",label:"Plans",Icon:sr,tab:"plans"},{key:"projects",label:"Projects",Icon:no,tab:"projects"},{key:"sessions",label:"Sessions",Icon:yi,tab:"chat"}];function L1({snapshot:e,setActiveTab:t,refreshSnapshot:n}){const r=Vt(),i=tu(),[l,o]=I.useState(e.overview??null),[s,a]=I.useState(!e.overview);I.useEffect(()=>{if(e.overview){o(e.overview),a(!1);return}let c=!1;return oe.get("/overview").then(p=>{c||(o(p),a(!1))}).catch(p=>{c||(a(!1),r.error(`Could not load overview: ${p.message}`))}),()=>{c=!0}},[e.overview,r]);const u=async()=>{r.info("Refreshing…",1500),await n()},f=()=>{i.open({title:"Run audit",children:d.jsxs("div",{children:[d.jsx("p",{children:"The full security audit runs in the opencode TUI for proper reporting and exit codes."}),d.jsx("p",{children:"Run this in your terminal:"}),d.jsx("pre",{className:"code-block",children:d.jsx("code",{children:"bizar audit"})})]}),footer:d.jsx(J,{variant:"primary",onClick:()=>i.close(),children:"Got it"})})};return s||!l?d.jsxs("div",{className:"view-loading",children:[d.jsx(Ut,{size:"lg"}),d.jsx("p",{children:"Loading overview…"})]}):d.jsxs("div",{className:"view view-overview",children:[d.jsx("header",{className:"view-header",children:d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(Gp,{size:18}),"System Overview"]}),d.jsx("p",{className:"view-subtitle",children:"Live snapshot of agents, plans, projects, and recent activity."})]})}),d.jsx("section",{className:"stat-grid",children:I1.map(c=>{const p=c.Icon;return d.jsxs(He,{variant:"elevated",interactive:!0,className:"stat-card",onClick:()=>t(c.tab),role:"button",tabIndex:0,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),t(c.tab))},children:[d.jsx("div",{className:"stat-card-icon",children:d.jsx(p,{size:20})}),d.jsxs("div",{className:"stat-card-body",children:[d.jsx("div",{className:"stat-card-value tabular-nums",children:l.counts[c.key]}),d.jsx("div",{className:"stat-card-label",children:c.label})]}),d.jsx("div",{className:"stat-card-arrow",children:"→"})]},c.key)})}),d.jsxs(He,{className:"quick-actions",children:[d.jsx(ut,{children:"Quick actions"}),d.jsx(kt,{children:"Jump straight to common workflows."}),d.jsxs("div",{className:"quick-actions-row",children:[d.jsxs(J,{variant:"secondary",onClick:()=>t("chat"),iconOnly:!1,children:[d.jsx(yi,{size:14})," New chat"]}),d.jsxs(J,{variant:"secondary",onClick:()=>t("plans"),children:[d.jsx(sr,{size:14})," New plan"]}),d.jsxs(J,{variant:"secondary",onClick:()=>t("tasks"),children:[d.jsx(eu,{size:14})," Add task"]}),d.jsxs(J,{variant:"secondary",onClick:()=>t("projects"),children:[d.jsx(no,{size:14})," Switch project"]}),d.jsxs(J,{variant:"secondary",onClick:f,children:[d.jsx(h1,{size:14})," Run audit"]}),d.jsxs(J,{variant:"primary",onClick:u,children:[d.jsx(mn,{size:14})," Refresh"]})]})]}),d.jsxs("div",{className:"overview-cols",children:[d.jsxs(He,{children:[d.jsxs(ut,{children:[d.jsx(v1,{size:14})," Recent activity"]}),d.jsx(kt,{children:"Last 30 events from .bizar/activity.log"}),l.recentActivity.length===0?d.jsx(mr,{icon:d.jsx(l1,{size:28}),title:"No activity yet",message:"Use the chat or invoke a Bizar command to start a feed."}):d.jsx("ul",{className:"activity-list",children:l.recentActivity.slice(0,30).map((c,p)=>d.jsxs("li",{className:"activity-item",children:[d.jsx("span",{className:"activity-ts tabular-nums",children:kr(c.ts)}),d.jsx("span",{className:"activity-kind",children:c.kind}),d.jsx("span",{className:"activity-msg",children:_1(c)})]},p))})]}),d.jsxs(He,{children:[d.jsx(ut,{children:"Environment"}),d.jsx(kt,{children:"Runtime + paths"}),d.jsxs("dl",{className:"env-table",children:[d.jsx("dt",{children:"Node"}),d.jsx("dd",{className:"mono",children:l.versions.node}),d.jsx("dt",{children:"Platform"}),d.jsx("dd",{className:"mono",children:l.versions.platform}),d.jsx("dt",{children:"Project root"}),d.jsx("dd",{className:"mono ellipsis",title:l.versions.projectRoot,children:l.versions.projectRoot}),d.jsx("dt",{children:"Bizar root"}),d.jsx("dd",{className:"mono ellipsis",title:l.versions.bizarRoot,children:l.versions.bizarRoot}),d.jsx("dt",{children:"Generated"}),d.jsx("dd",{className:"mono tabular-nums",children:Ws(l.generatedAt)})]})]})]}),d.jsxs("div",{className:"overview-footer",children:[d.jsx(e1,{size:14})," Dashboard built ",Ws(l.generatedAt)]})]})}function _1(e){if(typeof e.message=="string")return e.message;if(typeof e.prompt=="string")return e.prompt;if(typeof e.slug=="string"){const t=typeof e.title=="string"?` title=${e.title}`:"";return`slug=${e.slug}${t}`}return typeof e.name=="string"?`name=${e.name}`:JSON.stringify(e)}function b1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const D1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,A1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M1={};function Fc(e,t){return(M1.jsx?A1:D1).test(e)}const R1=/[ \t\n\f\r]/g;function F1(e){return typeof e=="object"?e.type==="text"?Oc(e.value):!1:Oc(e)}function Oc(e){return e.replace(R1,"")===""}class ji{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ji.prototype.normal={};ji.prototype.property={};ji.prototype.space=void 0;function lh(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ji(n,r,t)}function qs(e){return e.toLowerCase()}class qe{constructor(t,n){this.attribute=n,this.property=t}}qe.prototype.attribute="";qe.prototype.booleanish=!1;qe.prototype.boolean=!1;qe.prototype.commaOrSpaceSeparated=!1;qe.prototype.commaSeparated=!1;qe.prototype.defined=!1;qe.prototype.mustUseProperty=!1;qe.prototype.number=!1;qe.prototype.overloadedBoolean=!1;qe.prototype.property="";qe.prototype.spaceSeparated=!1;qe.prototype.space=void 0;let O1=0;const $=Mn(),ve=Mn(),Ys=Mn(),_=Mn(),ne=Mn(),zn=Mn(),Ke=Mn();function Mn(){return 2**++O1}const Xs=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:ve,commaOrSpaceSeparated:Ke,commaSeparated:zn,number:_,overloadedBoolean:Ys,spaceSeparated:ne},Symbol.toStringTag,{value:"Module"})),Fo=Object.keys(Xs);class nu extends qe{constructor(t,n,r,i){let l=-1;if(super(t,n),Bc(this,"space",i),typeof r=="number")for(;++l<Fo.length;){const o=Fo[l];Bc(this,Fo[l],(r&Xs[o])===Xs[o])}}}nu.prototype.defined=!0;function Bc(e,t,n){n&&(e[t]=n)}function wr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new nu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[qs(r)]=r,n[qs(l.attribute)]=r}return new ji(t,n,e.space)}const oh=wr({properties:{ariaActiveDescendant:null,ariaAtomic:ve,ariaAutoComplete:null,ariaBusy:ve,ariaChecked:ve,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:ve,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:ve,ariaFlowTo:ne,ariaGrabbed:ve,ariaHasPopup:null,ariaHidden:ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:_,ariaLive:null,ariaModal:ve,ariaMultiLine:ve,ariaMultiSelectable:ve,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ve,ariaReadOnly:ve,ariaRelevant:null,ariaRequired:ve,ariaRoleDescription:ne,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ve,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function sh(e,t){return t in e?e[t]:t}function ah(e,t){return sh(e,t.toLowerCase())}const B1=wr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zn,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alpha:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:ne,autoFocus:$,autoPlay:$,blocking:ne,capture:null,charSet:null,checked:$,cite:null,className:ne,closedBy:null,colorSpace:null,cols:_,colSpan:_,command:null,commandFor:null,content:null,contentEditable:ve,controls:$,controlsList:ne,coords:_|zn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Ys,draggable:ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:ne,height:_,hidden:Ys,high:_,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:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,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:_,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:_,rowSpan:_,sandbox:ne,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootCustomElementRegistry:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shadowRootSerializable:$,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:ve,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,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:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ve,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:$,disablePictureInPicture:$,disableRemotePlayback:$,exportParts:zn,part:ne,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:ah}),$1=wr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ke,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:zn,g2:zn,glyphName:zn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:Ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ke,rev:Ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ke,requiredFeatures:Ke,requiredFonts:Ke,requiredFormats:Ke,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:Ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ke,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sh}),uh=wr({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=wr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ah}),fh=wr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),U1={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"},H1=/[A-Z]/g,$c=/-[a-z]/g,V1=/^data[-\w.:]+$/i;function W1(e,t){const n=qs(t);let r=t,i=qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&V1.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace($c,q1);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!$c.test(l)){let o=l.replace(H1,Q1);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nu}return new i(r,t)}function Q1(e){return"-"+e.toLowerCase()}function q1(e){return e.charAt(1).toUpperCase()}const Y1=lh([oh,B1,uh,ch,fh],"html"),ru=lh([oh,$1,uh,ch,fh],"svg");function X1(e){return e.join(" ").trim()}var iu={},Uc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,K1=/\n/g,G1=/^\s*/,J1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Z1=/^:\s*/,ev=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tv=/^[;\s]*/,nv=/^\s+|\s+$/g,rv=`
251
- `,Hc="/",Vc="*",wn="",iv="comment",lv="declaration";function ov(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(m){var x=m.match(K1);x&&(n+=x.length);var C=m.lastIndexOf(rv);r=~C?m.length-C:r+m.length}function l(){var m={line:n,column:r};return function(x){return x.position=new o(m),u(),x}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var x=new Error(t.source+":"+n+":"+r+": "+m);if(x.reason=m,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function a(m){var x=m.exec(e);if(x){var C=x[0];return i(C),e=e.slice(C.length),x}}function u(){a(G1)}function f(m){var x;for(m=m||[];x=c();)x!==!1&&m.push(x);return m}function c(){var m=l();if(!(Hc!=e.charAt(0)||Vc!=e.charAt(1))){for(var x=2;wn!=e.charAt(x)&&(Vc!=e.charAt(x)||Hc!=e.charAt(x+1));)++x;if(x+=2,wn===e.charAt(x-1))return s("End of comment missing");var C=e.slice(2,x-2);return r+=2,i(C),e=e.slice(x),r+=2,m({type:iv,comment:C})}}function p(){var m=l(),x=a(J1);if(x){if(c(),!a(Z1))return s("property missing ':'");var C=a(ev),g=m({type:lv,property:Wc(x[0].replace(Uc,wn)),value:C?Wc(C[0].replace(Uc,wn)):wn});return a(tv),g}}function h(){var m=[];f(m);for(var x;x=p();)x!==!1&&(m.push(x),f(m));return m}return u(),h()}function Wc(e){return e?e.replace(nv,wn):wn}var sv=ov,av=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iu,"__esModule",{value:!0});iu.default=cv;const uv=av(sv);function cv(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,uv.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 io={};Object.defineProperty(io,"__esModule",{value:!0});io.camelCase=void 0;var fv=/^--[a-zA-Z0-9_-]+$/,dv=/-([a-z])/g,pv=/^[^-]+$/,hv=/^-(webkit|moz|ms|o|khtml)-/,mv=/^-(ms)-/,gv=function(e){return!e||pv.test(e)||fv.test(e)},yv=function(e,t){return t.toUpperCase()},Qc=function(e,t){return"".concat(t,"-")},vv=function(e,t){return t===void 0&&(t={}),gv(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(mv,Qc):e=e.replace(hv,Qc),e.replace(dv,yv))};io.camelCase=vv;var xv=cl&&cl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},kv=xv(iu),wv=io;function Ks(e,t){var n={};return!e||typeof e!="string"||(0,kv.default)(e,function(r,i){r&&i&&(n[(0,wv.camelCase)(r,t)]=i)}),n}Ks.default=Ks;var Sv=Ks;const Cv=Df(Sv),dh=ph("end"),lu=ph("start");function ph(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 Ev(e){const t=lu(e),n=dh(e);if(t&&n)return{start:t,end:n}}function Kr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qc(e.position):"start"in e||"end"in e?qc(e):"line"in e||"column"in e?Gs(e):""}function Gs(e){return Yc(e&&e.line)+":"+Yc(e&&e.column)}function qc(e){return Gs(e&&e.start)+"-"+Gs(e&&e.end)}function Yc(e){return e&&typeof e=="number"?e:1}class De 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}}De.prototype.file="";De.prototype.name="";De.prototype.reason="";De.prototype.message="";De.prototype.stack="";De.prototype.column=void 0;De.prototype.line=void 0;De.prototype.ancestors=void 0;De.prototype.cause=void 0;De.prototype.fatal=void 0;De.prototype.place=void 0;De.prototype.ruleId=void 0;De.prototype.source=void 0;const ou={}.hasOwnProperty,jv=new Map,Nv=/[A-Z]/g,zv=new Set(["table","tbody","thead","tfoot","tr"]),Tv=new Set(["td","th"]),hh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pv(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=Rv(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=Mv(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"?ru:Y1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=mh(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function mh(e,t,n){if(t.type==="element")return Iv(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lv(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bv(e,t,n);if(t.type==="mdxjsEsm")return _v(e,t);if(t.type==="root")return Dv(e,t,n);if(t.type==="text")return Av(e,t)}function Iv(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ru,e.schema=i),e.ancestors.push(t);const l=yh(e,t.tagName,!1),o=Fv(e,t);let s=au(e,t);return zv.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!F1(a):!0})),gh(e,o,l,t),su(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Lv(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)}vi(e,t.position)}function _v(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vi(e,t.position)}function bv(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ru,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:yh(e,t.name,!0),o=Ov(e,t),s=au(e,t);return gh(e,o,l,t),su(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Dv(e,t,n){const r={};return su(r,au(e,t)),e.create(t,e.Fragment,r,n)}function Av(e,t){return t.value}function gh(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function su(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Mv(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 Rv(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),a=lu(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 Fv(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ou.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"&&Tv.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 Ov(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 vi(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 vi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function au(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:jv;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=mh(e,l,o);s!==void 0&&n.push(s)}return n}function Bv(e,t,n){const r=W1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?b1(n):X1(n)),r.property==="style"){let i=typeof n=="object"?n:$v(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Uv(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?U1[r.property]||r.property:r.attribute,n]}}function $v(e,t){try{return Cv(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new De("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=hh+"#cannot-parse-style-attribute",i}}function yh(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=Fc(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=Fc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ou.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);vi(e)}function vi(e,t){const n=new De("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=hh+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Uv(e){const t={};let n;for(n in e)ou.call(e,n)&&(t[Hv(n)]=e[n]);return t}function Hv(e){let t=e.replace(Nv,Vv);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Vv(e){return"-"+e.toLowerCase()}const Oo={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"]},Wv={};function uu(e,t){const n=Wv,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return vh(e,r,i)}function vh(e,t,n){if(Qv(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 Xc(e.children,t,n)}return Array.isArray(e)?Xc(e,t,n):""}function Xc(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=vh(e[i],t,n);return r.join("")}function Qv(e){return!!(e&&typeof e=="object")}const Kc=document.createElement("i");function cu(e){const t="&"+e+";";Kc.innerHTML=t;const n=Kc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function et(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 ot(e,t){return e.length>0?(et(e,e.length,0,t),e):t}const Gc={}.hasOwnProperty;function xh(e){const t={};let n=-1;for(;++n<e.length;)qv(t,e[n]);return t}function qv(e,t){let n;for(n in t){const i=(Gc.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Gc.call(i,o)||(i[o]=[]);const s=l[o];Yv(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Yv(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);et(e,0,0,r)}function kh(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 wt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Me=gn(/[A-Za-z]/),_e=gn(/[\dA-Za-z]/),Xv=gn(/[#-'*+\--9=?A-Z^-~]/);function Ml(e){return e!==null&&(e<32||e===127)}const Js=gn(/\d/),Kv=gn(/[\dA-Fa-f]/),Gv=gn(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function re(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}const lo=gn(new RegExp("\\p{P}|\\p{S}","u")),bn=gn(/\s/);function gn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Sr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&_e(e.charCodeAt(n+1))&&_e(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function 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 Jv={tokenize:Zv};function Zv(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 O(s)?(e.consume(s),e.exit("chunkText"),l):(e.consume(s),o)}}const ex={tokenize:tx},Jc={tokenize:nx};function tx(e){const t=this,n=[];let r=0,i,l,o;return s;function s(v){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,a,u)(v)}return u(v)}function a(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const j=t.events.length;let z=j,w;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){w=t.events[z][1].end;break}g(r);let N=j;for(;N<t.events.length;)t.events[N][1].end={...w},N++;return et(t.events,z+1,0,t.events.slice(j)),t.events.length=N,u(v)}return s(v)}function u(v){if(r===n.length){if(!i)return p(v);if(i.currentConstruct&&i.currentConstruct.concrete)return m(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jc,f,c)(v)}function f(v){return i&&y(),g(r),p(v)}function c(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(v)}function p(v){return t.containerState={},e.attempt(Jc,h,m)(v)}function h(v){return r++,n.push([t.currentConstruct,t.containerState]),p(v)}function m(v){if(v===null){i&&y(),g(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),x(v)}function x(v){if(v===null){C(e.exit("chunkFlow"),!0),g(0),e.consume(v);return}return O(v)?(e.consume(v),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),x)}function C(v,j){const z=t.sliceStream(v);if(j&&z.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(z),t.parser.lazy[v.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const N=t.events.length;let P=N,R,E;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(R){E=t.events[P][1].end;break}R=!0}for(g(r),w=N;w<t.events.length;)t.events[w][1].end={...E},w++;et(t.events,P+1,0,t.events.slice(N)),t.events.length=w}}function g(v){let j=n.length;for(;j-- >v;){const z=n[j];t.containerState=z[1],z[0].exit.call(t,e)}n.length=v}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function nx(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 gr(e){if(e===null||re(e)||bn(e))return 1;if(lo(e))return 2}function oo(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 Zs={name:"attention",resolveAll:rx,tokenize:ix};function rx(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},p={...e[n][1].start};Zc(c,-a),Zc(p,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:p},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=ot(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ot(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),u=ot(u,oo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ot(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=ot(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,et(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 ix(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gr(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=gr(a),c=!f||f===2&&i||n.includes(a),p=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!p)),u._close=!!(l===42?p:p&&(f||!c)),t(a)}}function Zc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const lx={name:"autolink",tokenize:ox};function ox(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Me(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||_e(h)?(r=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||_e(h))&&r++<32?(e.consume(h),s):(r=0,u(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ml(h)?n(h):(e.consume(h),a)}function u(h){return h===64?(e.consume(h),f):Xv(h)?(e.consume(h),u):n(h)}function f(h){return _e(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||_e(h))&&r++<63){const m=h===45?p:c;return e.consume(h),m}return n(h)}}const Ni={partial:!0,tokenize:sx};function sx(e,t,n){return r;function r(l){return V(l)?Y(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||O(l)?t(l):n(l)}}const wh={continuation:{tokenize:ux},exit:cx,name:"blockQuote",tokenize:ax};function ax(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 ux(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(wh,t,n)(o)}}function cx(e){e.exit("blockQuote")}const Sh={name:"characterEscape",tokenize:fx};function fx(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 Gv(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Ch={name:"characterReference",tokenize:dx};function dx(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=_e,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=Kv,f):(e.enter("characterReferenceValue"),l=7,o=Js,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===_e&&!cu(r.sliceSerialize(p))?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 ef={partial:!0,tokenize:hx},tf={concrete:!0,name:"codeFenced",tokenize:px};function px(e,t,n){const r=this,i={partial:!0,tokenize:z};let l=0,o=0,s;return a;function a(w){return u(w)}function u(w){const N=r.events[r.events.length-1];return l=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===s?(o++,e.consume(w),f):o<3?n(w):(e.exit("codeFencedFenceSequence"),V(w)?Y(e,c,"whitespace")(w):c(w))}function c(w){return w===null||O(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(ef,x,j)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):V(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,h,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),p)}function h(w){return w===null||O(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),m)}function x(w){return e.attempt(i,j,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),g}function g(w){return l>0&&V(w)?Y(e,y,"linePrefix",l+1)(w):y(w)}function y(w){return w===null||O(w)?e.check(ef,x,j)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||O(w)?(e.exit("codeFlowValue"),y(w)):(e.consume(w),v)}function j(w){return e.exit("codeFenced"),t(w)}function z(w,N,P){let R=0;return E;function E(Q){return w.enter("lineEnding"),w.consume(Q),w.exit("lineEnding"),A}function A(Q){return w.enter("codeFencedFence"),V(Q)?Y(w,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):F(Q)}function F(Q){return Q===s?(w.enter("codeFencedFenceSequence"),X(Q)):P(Q)}function X(Q){return Q===s?(R++,w.consume(Q),X):R>=o?(w.exit("codeFencedFenceSequence"),V(Q)?Y(w,ie,"whitespace")(Q):ie(Q)):P(Q)}function ie(Q){return Q===null||O(Q)?(w.exit("codeFencedFence"),N(Q)):P(Q)}}}function hx(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 Bo={name:"codeIndented",tokenize:gx},mx={partial:!0,tokenize:yx};function gx(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):O(u)?e.attempt(mx,o,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||O(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}function yx(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):O(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):O(o)?i(o):n(o)}}const vx={name:"codeText",previous:kx,resolve:xx,tokenize:wx};function xx(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 kx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wx(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)):O(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||O(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 Sx{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&&br(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),br(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),br(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);br(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);br(this.left,n.reverse())}}}function br(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 Eh(e){const t={};let n=-1,r,i,l,o,s,a,u;const f=new Sx(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,Cx(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 et(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Cx(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,p=-1,h=n,m=0,x=0;const C=[x];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(x=p+1,C.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const g=s.slice(C[p],C[p+1]),y=l.pop();a.push([y,y+g.length-1]),e.splice(y,2,g)}for(a.reverse(),p=-1;++p<a.length;)u[m+a[p][0]]=m+a[p][1],m+=a[p][1]-a[p][0]-1;return u}const Ex={resolve:Nx,tokenize:zx},jx={partial:!0,tokenize:Tx};function Nx(e){return Eh(e),e}function zx(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):O(s)?e.check(jx,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 Tx(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||O(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 jh(e,t,n,r,i,l,o,s,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(g){return g===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(g),e.exit(l),p):g===null||g===32||g===41||Ml(g)?n(g):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(g))}function p(g){return g===62?(e.enter(l),e.consume(g),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(s),p(g)):g===null||g===60||O(g)?n(g):(e.consume(g),g===92?m:h)}function m(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function x(g){return!f&&(g===null||g===41||re(g))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(g)):f<u&&g===40?(e.consume(g),f++,x):g===41?(e.consume(g),f--,x):g===null||g===32||g===40||Ml(g)?n(g):(e.consume(g),g===92?C:x)}function C(g){return g===40||g===41||g===92?(e.consume(g),x):x(g)}}function Nh(e,t,n,r,i,l){const o=this;let s=0,a;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return s>999||h===null||h===91||h===93&&!a||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):O(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||O(h)||s++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!V(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function zh(e,t,n,r,i,l){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,a):n(p)}function a(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),u(p))}function u(p){return p===o?(e.exit(l),a(o)):p===null?n(p):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||O(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Gr(e,t){let n;return r;function r(i){return O(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 Px={name:"definition",tokenize:Lx},Ix={partial:!0,tokenize:_x};function Lx(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Nh.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return re(h)?Gr(e,u)(h):u(h)}function u(h){return jh(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Ix,c,c)(h)}function c(h){return V(h)?Y(e,p,"whitespace")(h):p(h)}function p(h){return h===null||O(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function _x(e,t,n){return r;function r(s){return re(s)?Gr(e,i)(s):n(s)}function i(s){return zh(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||O(s)?t(s):n(s)}}const bx={name:"hardBreakEscape",tokenize:Dx};function Dx(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Ax={name:"headingAtx",resolve:Mx,tokenize:Rx};function Mx(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"},et(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function Rx(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||re(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||O(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||re(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const Fx=["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"],nf=["pre","script","style","textarea"],Ox={concrete:!0,name:"htmlFlow",resolveTo:Ux,tokenize:Hx},Bx={partial:!0,tokenize:Wx},$x={partial:!0,tokenize:Vx};function Ux(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 Hx(e,t,n){const r=this;let i,l,o,s,a;return u;function u(S){return f(S)}function f(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),c}function c(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),l=!0,x):S===63?(e.consume(S),i=3,r.interrupt?t:k):Me(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function p(S){return S===45?(e.consume(S),i=2,h):S===91?(e.consume(S),i=5,s=0,m):Me(S)?(e.consume(S),i=4,r.interrupt?t:k):n(S)}function h(S){return S===45?(e.consume(S),r.interrupt?t:k):n(S)}function m(S){const ke="CDATA[";return S===ke.charCodeAt(s++)?(e.consume(S),s===ke.length?r.interrupt?t:F:m):n(S)}function x(S){return Me(S)?(e.consume(S),o=String.fromCharCode(S),C):n(S)}function C(S){if(S===null||S===47||S===62||re(S)){const ke=S===47,dt=o.toLowerCase();return!ke&&!l&&nf.includes(dt)?(i=1,r.interrupt?t(S):F(S)):Fx.includes(o.toLowerCase())?(i=6,ke?(e.consume(S),g):r.interrupt?t(S):F(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):l?y(S):v(S))}return S===45||_e(S)?(e.consume(S),o+=String.fromCharCode(S),C):n(S)}function g(S){return S===62?(e.consume(S),r.interrupt?t:F):n(S)}function y(S){return V(S)?(e.consume(S),y):E(S)}function v(S){return S===47?(e.consume(S),E):S===58||S===95||Me(S)?(e.consume(S),j):V(S)?(e.consume(S),v):E(S)}function j(S){return S===45||S===46||S===58||S===95||_e(S)?(e.consume(S),j):z(S)}function z(S){return S===61?(e.consume(S),w):V(S)?(e.consume(S),z):v(S)}function w(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),a=S,N):V(S)?(e.consume(S),w):P(S)}function N(S){return S===a?(e.consume(S),a=null,R):S===null||O(S)?n(S):(e.consume(S),N)}function P(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||re(S)?z(S):(e.consume(S),P)}function R(S){return S===47||S===62||V(S)?v(S):n(S)}function E(S){return S===62?(e.consume(S),A):n(S)}function A(S){return S===null||O(S)?F(S):V(S)?(e.consume(S),A):n(S)}function F(S){return S===45&&i===2?(e.consume(S),ye):S===60&&i===1?(e.consume(S),me):S===62&&i===4?(e.consume(S),K):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),B):O(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Bx,ee,X)(S)):S===null||O(S)?(e.exit("htmlFlowData"),X(S)):(e.consume(S),F)}function X(S){return e.check($x,ie,ee)(S)}function ie(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Q}function Q(S){return S===null||O(S)?X(S):(e.enter("htmlFlowData"),F(S))}function ye(S){return S===45?(e.consume(S),k):F(S)}function me(S){return S===47?(e.consume(S),o="",D):F(S)}function D(S){if(S===62){const ke=o.toLowerCase();return nf.includes(ke)?(e.consume(S),K):F(S)}return Me(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),D):F(S)}function B(S){return S===93?(e.consume(S),k):F(S)}function k(S){return S===62?(e.consume(S),K):S===45&&i===2?(e.consume(S),k):F(S)}function K(S){return S===null||O(S)?(e.exit("htmlFlowData"),ee(S)):(e.consume(S),K)}function ee(S){return e.exit("htmlFlow"),t(S)}}function Vx(e,t,n){const r=this;return i;function i(o){return O(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 Wx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ni,t,n)}}const Qx={name:"htmlText",tokenize:qx};function qx(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),z):k===63?(e.consume(k),v):Me(k)?(e.consume(k),P):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,m):Me(k)?(e.consume(k),y):n(k)}function f(k){return k===45?(e.consume(k),h):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),p):O(k)?(o=c,me(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?ye(k):k===45?p(k):c(k)}function m(k){const K="CDATA[";return k===K.charCodeAt(l++)?(e.consume(k),l===K.length?x:m):n(k)}function x(k){return k===null?n(k):k===93?(e.consume(k),C):O(k)?(o=x,me(k)):(e.consume(k),x)}function C(k){return k===93?(e.consume(k),g):x(k)}function g(k){return k===62?ye(k):k===93?(e.consume(k),g):x(k)}function y(k){return k===null||k===62?ye(k):O(k)?(o=y,me(k)):(e.consume(k),y)}function v(k){return k===null?n(k):k===63?(e.consume(k),j):O(k)?(o=v,me(k)):(e.consume(k),v)}function j(k){return k===62?ye(k):v(k)}function z(k){return Me(k)?(e.consume(k),w):n(k)}function w(k){return k===45||_e(k)?(e.consume(k),w):N(k)}function N(k){return O(k)?(o=N,me(k)):V(k)?(e.consume(k),N):ye(k)}function P(k){return k===45||_e(k)?(e.consume(k),P):k===47||k===62||re(k)?R(k):n(k)}function R(k){return k===47?(e.consume(k),ye):k===58||k===95||Me(k)?(e.consume(k),E):O(k)?(o=R,me(k)):V(k)?(e.consume(k),R):ye(k)}function E(k){return k===45||k===46||k===58||k===95||_e(k)?(e.consume(k),E):A(k)}function A(k){return k===61?(e.consume(k),F):O(k)?(o=A,me(k)):V(k)?(e.consume(k),A):R(k)}function F(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,X):O(k)?(o=F,me(k)):V(k)?(e.consume(k),F):(e.consume(k),ie)}function X(k){return k===i?(e.consume(k),i=void 0,Q):k===null?n(k):O(k)?(o=X,me(k)):(e.consume(k),X)}function ie(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||re(k)?R(k):(e.consume(k),ie)}function Q(k){return k===47||k===62||re(k)?R(k):n(k)}function ye(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function me(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D}function D(k){return V(k)?Y(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):B(k)}function B(k){return e.enter("htmlTextData"),o(k)}}const fu={name:"labelEnd",resolveAll:Gx,resolveTo:Jx,tokenize:Zx},Yx={tokenize:ek},Xx={tokenize:tk},Kx={tokenize:nk};function Gx(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&&et(e,0,e.length,n),e}function Jx(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=ot(s,e.slice(l+1,l+r+3)),s=ot(s,[["enter",f,t]]),s=ot(s,oo(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),s=ot(s,[["exit",f,t],e[o-2],e[o-1],["exit",u,t]]),s=ot(s,e.slice(o+1)),s=ot(s,[["exit",a,t]]),et(e,l,e.length,s),e}function Zx(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(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(wt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(Yx,f,o?f:c)(p):p===91?e.attempt(Xx,f,o?u:c)(p):o?f(p):c(p)}function u(p){return e.attempt(Kx,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function ek(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 re(c)?Gr(e,l)(c):l(c)}function l(c){return c===41?f(c):jh(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return re(c)?Gr(e,a)(c):f(c)}function s(c){return n(c)}function a(c){return c===34||c===39||c===40?zh(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return re(c)?Gr(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 tk(e,t,n){const r=this;return i;function i(s){return Nh.call(r,e,l,o,"reference","referenceMarker","referenceString")(s)}function l(s){return r.parser.defined.includes(wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function nk(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 rk={name:"labelStartImage",resolveAll:fu.resolveAll,tokenize:ik};function ik(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 lk={name:"labelStartLink",resolveAll:fu.resolveAll,tokenize:ok};function ok(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 $o={name:"lineEnding",tokenize:sk};function sk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const al={name:"thematicBreak",tokenize:ak};function ak(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||O(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 Be={continuation:{tokenize:dk},exit:hk,name:"list",tokenize:fk},uk={partial:!0,tokenize:mk},ck={partial:!0,tokenize:pk};function fk(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(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Js(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(al,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Js(h)&&++o<10?(e.consume(h),a):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ni,r.interrupt?n:f,e.attempt(uk,p,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function c(h){return V(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function dk(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ni,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(ck,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(Be,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function pk(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 hk(e){e.exit(this.containerState.type)}function mk(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 rf={name:"setextUnderline",resolveTo:gk,tokenize:yk};function gk(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 yk(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||O(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const vk={tokenize:xk};function xk(e){const t=this,n=e.attempt(Ni,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ex,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 kk={resolveAll:Ph()},wk=Th("string"),Sk=Th("text");function Th(e){return{resolveAll:Ph(e==="text"?Ck: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 p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ph(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 Ck(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 Ek={42:Be,43:Be,45:Be,48:Be,49:Be,50:Be,51:Be,52:Be,53:Be,54:Be,55:Be,56:Be,57:Be,62:wh},jk={91:Px},Nk={[-2]:Bo,[-1]:Bo,32:Bo},zk={35:Ax,42:al,45:[rf,al],60:Ox,61:rf,95:al,96:tf,126:tf},Tk={38:Ch,92:Sh},Pk={[-5]:$o,[-4]:$o,[-3]:$o,33:rk,38:Ch,42:Zs,60:[lx,Qx],91:lk,92:[bx,Sh],93:fu,95:Zs,96:vx},Ik={null:[Zs,kk]},Lk={null:[42,95]},_k={null:[]},bk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Lk,contentInitial:jk,disable:_k,document:Ek,flow:zk,flowInitial:Nk,insideSpan:Ik,string:Tk,text:Pk},Symbol.toStringTag,{value:"Module"}));function Dk(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(z),check:N(w),consume:y,enter:v,exit:j,interrupt:N(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,a);return t.resolveAll&&l.push(t),u;function c(A){return o=ot(o,A),C(),o[o.length-1]!==null?[]:(P(t,0),u.events=oo(l,u.events,u),u.events)}function p(A,F){return Mk(h(A),F)}function h(A){return Ak(o,A)}function m(){const{_bufferIndex:A,_index:F,line:X,column:ie,offset:Q}=r;return{_bufferIndex:A,_index:F,line:X,column:ie,offset:Q}}function x(A){i[A.line]=A.column,E()}function C(){let A;for(;r._index<o.length;){const F=o[r._index];if(typeof F=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<F.length;)g(F.charCodeAt(r._bufferIndex));else g(F)}}function g(A){f=f(A)}function y(A){O(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,E()):A!==-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=A}function v(A,F){const X=F||{};return X.type=A,X.start=m(),u.events.push(["enter",X,u]),s.push(X),X}function j(A){const F=s.pop();return F.end=m(),u.events.push(["exit",F,u]),F}function z(A,F){P(A,F.from)}function w(A,F){F.restore()}function N(A,F){return X;function X(ie,Q,ye){let me,D,B,k;return Array.isArray(ie)?ee(ie):"tokenize"in ie?ee([ie]):K(ie);function K(se){return Ct;function Ct(Qt){const Rn=Qt!==null&&se[Qt],Fn=Qt!==null&&se.null,Ti=[...Array.isArray(Rn)?Rn:Rn?[Rn]:[],...Array.isArray(Fn)?Fn:Fn?[Fn]:[]];return ee(Ti)(Qt)}}function ee(se){return me=se,D=0,se.length===0?ye:S(se[D])}function S(se){return Ct;function Ct(Qt){return k=R(),B=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?dt():se.tokenize.call(F?Object.assign(Object.create(u),F):u,a,ke,dt)(Qt)}}function ke(se){return A(B,k),Q}function dt(se){return k.restore(),++D<me.length?S(me[D]):ye}}}function P(A,F){A.resolveAll&&!l.includes(A)&&l.push(A),A.resolve&&et(u.events,F,u.events.length-F,A.resolve(u.events.slice(F),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function R(){const A=m(),F=u.previous,X=u.currentConstruct,ie=u.events.length,Q=Array.from(s);return{from:ie,restore:ye};function ye(){r=A,u.previous=F,u.currentConstruct=X,u.events.length=ie,s=Q,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ak(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 Mk(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=`
252
- `;break}case-3:{o=`\r
253
- `;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 Rk(e){const r={constructs:xh([bk,...(e||{}).extensions||[]]),content:i(Jv),defined:[],document:i(ex),flow:i(vk),lazy:{},string:i(wk),text:i(Sk)};return r;function i(l){return o;function o(s){return Dk(r,l,s)}}}function Fk(e){for(;!Eh(e););return e}const lf=/[\0\t\n\r]/g;function Ok(){let e=1,t="",n=!0,r;return i;function i(l,o,s){const a=[];let u,f,c,p,h;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(lf.lastIndex=c,u=lf.exec(l),p=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(p),!u){t=l.slice(c);break}if(h===10&&c===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<p&&(a.push(l.slice(c,p)),e+=p-c),h){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=p+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 $k(e){return e.replace(Bk,Uk)}function Uk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return kh(n.slice(l?2:1),l?16:10)}return cu(n)||e}const Ih={}.hasOwnProperty;function Hk(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Vk(n)(Fk(Rk(n).document().write(Ok()(e,t,!0))))}function Vk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Eu),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(wu),blockQuote:l(Fn),characterEscape:R,characterReference:R,codeFenced:l(Ti),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ti,o),codeText:l(fm,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(dm),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(pm),hardBreakEscape:l(Su),hardBreakTrailing:l(Su),htmlFlow:l(Cu,o),htmlFlowData:R,htmlText:l(Cu,o),htmlTextData:R,image:l(hm),label:o,link:l(Eu),listItem:l(mm),listItemValue:p,listOrdered:l(ju,c),listUnordered:l(ju),paragraph:l(gm),reference:S,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(wu),strong:l(ym),thematicBreak:l(xm)},exit:{atxHeading:a(),atxHeadingSequence:z,autolink:a(),autolinkEmail:Rn,autolinkProtocol:Qt,blockQuote:a(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:dt,characterReferenceMarkerNumeric:dt,characterReferenceValue:se,characterReference:Ct,codeFenced:a(C),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:a(g),codeText:a(Q),codeTextData:E,data:E,definition:a(),definitionDestinationString:j,definitionLabelString:y,definitionTitleString:v,emphasis:a(),hardBreakEscape:a(F),hardBreakTrailing:a(F),htmlFlow:a(X),htmlFlowData:E,htmlText:a(ie),htmlTextData:E,image:a(me),label:B,labelText:D,lineEnding:A,link:a(ye),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ke,resourceDestinationString:k,resourceTitleString:K,resource:ee,setextHeading:a(P),setextHeadingLineSequence:N,setextHeadingText:w,strong:a(),thematicBreak:a()}};Lh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let b={type:"root",children:[]};const U={stack:[b],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:f,data:n},q=[];let te=-1;for(;++te<T.length;)if(T[te][1].type==="listOrdered"||T[te][1].type==="listUnordered")if(T[te][0]==="enter")q.push(te);else{const pt=q.pop();te=i(T,pt,te)}for(te=-1;++te<T.length;){const pt=t[T[te][0]];Ih.call(pt,T[te][1].type)&&pt[T[te][1].type].call(Object.assign({sliceSerialize:T[te][2].sliceSerialize},U),T[te][1])}if(U.tokenStack.length>0){const pt=U.tokenStack[U.tokenStack.length-1];(pt[1]||of).call(U,void 0,pt[0])}for(b.position={start:Yt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Yt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te<t.transforms.length;)b=t.transforms[te](b)||b;return b}function i(T,b,U){let q=b-1,te=-1,pt=!1,yn,Lt,Cr,Er;for(;++q<=U;){const Ye=T[q];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?te++:te--,Er=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(yn&&!Er&&!te&&!Cr&&(Cr=q),Er=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Er=void 0}if(!te&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||te===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(yn){let On=q;for(Lt=void 0;On--;){const _t=T[On];if(_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank"){if(_t[0]==="exit")continue;Lt&&(T[Lt][1].type="lineEndingBlank",pt=!0),_t[1].type="lineEnding",Lt=On}else if(!(_t[1].type==="linePrefix"||_t[1].type==="blockQuotePrefix"||_t[1].type==="blockQuotePrefixWhitespace"||_t[1].type==="blockQuoteMarker"||_t[1].type==="listItemIndent"))break}Cr&&(!Lt||Cr<Lt)&&(yn._spread=!0),yn.end=Object.assign({},Lt?T[Lt][1].start:Ye[1].end),T.splice(Lt||q,0,["exit",yn,Ye[2]]),q++,U++}if(Ye[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};yn=On,T.splice(q,0,["enter",On,Ye[2]]),q++,U++,Cr=void 0,Er=!0}}}return T[b][1]._spread=pt,U}function l(T,b){return U;function U(q){s.call(this,T(q),q),b&&b.call(this,q)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,b,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([b,U||void 0]),T.position={start:Yt(b.start),end:void 0}}function a(T){return b;function b(U){T&&T.call(this,U),u.call(this,U)}}function u(T,b){const U=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==T.type&&(b?b.call(this,T,q[0]):(q[1]||of).call(this,T,q[0]));else throw new Error("Cannot close `"+T.type+"` ("+Kr({start:T.start,end:T.end})+"): it’s not open");U.position.end=Yt(T.end)}function f(){return uu(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),b=this.stack[this.stack.length-1];b.lang=T}function m(){const T=this.resume(),b=this.stack[this.stack.length-1];b.meta=T}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const T=this.resume(),b=this.stack[this.stack.length-1];b.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),b=this.stack[this.stack.length-1];b.value=T.replace(/(\r?\n|\r)$/g,"")}function y(T){const b=this.resume(),U=this.stack[this.stack.length-1];U.label=b,U.identifier=wt(this.sliceSerialize(T)).toLowerCase()}function v(){const T=this.resume(),b=this.stack[this.stack.length-1];b.title=T}function j(){const T=this.resume(),b=this.stack[this.stack.length-1];b.url=T}function z(T){const b=this.stack[this.stack.length-1];if(!b.depth){const U=this.sliceSerialize(T).length;b.depth=U}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(T){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function R(T){const U=this.stack[this.stack.length-1].children;let q=U[U.length-1];(!q||q.type!=="text")&&(q=vm(),q.position={start:Yt(T.start),end:void 0},U.push(q)),this.stack.push(q)}function E(T){const b=this.stack.pop();b.value+=this.sliceSerialize(T),b.position.end=Yt(T.end)}function A(T){const b=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=b.children[b.children.length-1];U.position.end=Yt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(b.type)&&(R.call(this,T),E.call(this,T))}function F(){this.data.atHardBreak=!0}function X(){const T=this.resume(),b=this.stack[this.stack.length-1];b.value=T}function ie(){const T=this.resume(),b=this.stack[this.stack.length-1];b.value=T}function Q(){const T=this.resume(),b=this.stack[this.stack.length-1];b.value=T}function ye(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=b,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function me(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=b,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function D(T){const b=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=$k(b),U.identifier=wt(b).toLowerCase()}function B(){const T=this.stack[this.stack.length-1],b=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const q=T.children;U.children=q}else U.alt=b}function k(){const T=this.resume(),b=this.stack[this.stack.length-1];b.url=T}function K(){const T=this.resume(),b=this.stack[this.stack.length-1];b.title=T}function ee(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function ke(T){const b=this.resume(),U=this.stack[this.stack.length-1];U.label=b,U.identifier=wt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function dt(T){this.data.characterReferenceType=T.type}function se(T){const b=this.sliceSerialize(T),U=this.data.characterReferenceType;let q;U?(q=kh(b,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=cu(b);const te=this.stack[this.stack.length-1];te.value+=q}function Ct(T){const b=this.stack.pop();b.position.end=Yt(T.end)}function Qt(T){E.call(this,T);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(T)}function Rn(T){E.call(this,T);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(T)}function Fn(){return{type:"blockquote",children:[]}}function Ti(){return{type:"code",lang:null,meta:null,value:""}}function fm(){return{type:"inlineCode",value:""}}function dm(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pm(){return{type:"emphasis",children:[]}}function wu(){return{type:"heading",depth:0,children:[]}}function Su(){return{type:"break"}}function Cu(){return{type:"html",value:""}}function hm(){return{type:"image",title:null,url:"",alt:null}}function Eu(){return{type:"link",title:null,url:"",children:[]}}function ju(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function mm(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function gm(){return{type:"paragraph",children:[]}}function ym(){return{type:"strong",children:[]}}function vm(){return{type:"text",value:""}}function xm(){return{type:"thematicBreak"}}}function Yt(e){return{line:e.line,column:e.column,offset:e.offset}}function Lh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Lh(e,r):Wk(e,r)}}function Wk(e,t){let n;for(n in t)if(Ih.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 of(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 Qk(e){const t=this;t.parser=n;function n(r){return Hk(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qk(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 Yk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
254
- `}]}function Xk(e,t){const n=t.value?t.value+`
255
- `:"",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 Kk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Sr(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 Zk(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 e0(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _h(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 t0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _h(e,t);const i={src:Sr(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 n0(e,t){const n={src:Sr(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 r0(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 i0(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _h(e,t);const i={href:Sr(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 l0(e,t){const n={href:Sr(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 o0(e,t,n){const r=e.all(t),i=n?s0(n):bh(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:`
256
- `}),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:`
257
- `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)}function s0(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=bh(n[r])}return t}function bh(e){const t=e.spread;return t??e.children.length>1}function a0(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 u0(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function c0(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function f0(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d0(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=lu(t.children[1]),a=dh(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 p0(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],p={},h=o?o[a]:void 0;h&&(p.align=h);let m={type:"element",tagName:l,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function h0(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const sf=9,af=32;function m0(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(uf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(uf(t.slice(i),i>0,!1)),l.join("")}function uf(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===sf||l===af;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===sf||l===af;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function g0(e,t){const n={type:"text",value:m0(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function y0(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const v0={blockquote:qk,break:Yk,code:Xk,delete:Kk,emphasis:Gk,footnoteReference:Jk,heading:Zk,html:e0,imageReference:t0,image:n0,inlineCode:r0,linkReference:i0,link:l0,listItem:o0,list:a0,paragraph:u0,root:c0,strong:f0,table:d0,tableCell:h0,tableRow:p0,text:g0,thematicBreak:y0,toml:Qi,yaml:Qi,definition:Qi,footnoteDefinition:Qi};function Qi(){}const Dh=-1,so=0,Jr=1,Rl=2,du=3,pu=4,hu=5,mu=6,Ah=7,Mh=8,x0=typeof self=="object"?self:globalThis,cf=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new x0[e](t)},k0=(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 so:case Dh:return n(o,i);case Jr:{const s=n([],i);for(const a of o)s.push(r(a));return s}case Rl:{const s=n({},i);for(const[a,u]of o)s[r(a)]=r(u);return s}case du:return n(new Date(o),i);case pu:{const{source:s,flags:a}=o;return n(new RegExp(s,a),i)}case hu:{const s=n(new Map,i);for(const[a,u]of o)s.set(r(a),r(u));return s}case mu:{const s=n(new Set,i);for(const a of o)s.add(r(a));return s}case Ah:{const{name:s,message:a}=o;return n(cf(s,a),i)}case Mh: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(cf(l,o),i)};return r},ff=e=>k0(new Map,e)(0),$n="",{toString:w0}={},{keys:S0}=Object,Dr=e=>{const t=typeof e;if(t!=="object"||!e)return[so,t];const n=w0.call(e).slice(8,-1);switch(n){case"Array":return[Jr,$n];case"Object":return[Rl,$n];case"Date":return[du,$n];case"RegExp":return[pu,$n];case"Map":return[hu,$n];case"Set":return[mu,$n];case"DataView":return[Jr,n]}return n.includes("Array")?[Jr,n]:n.includes("Error")?[Ah,n]:[Rl,n]},qi=([e,t])=>e===so&&(t==="function"||t==="symbol"),C0=(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]=Dr(o);switch(s){case so:{let f=o;switch(a){case"bigint":s=Mh,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Dh],o)}return i([s,f],o)}case Jr:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),i([a,[...p]],o)}const f=[],c=i([s,f],o);for(const p of o)f.push(l(p));return c}case Rl:{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 p of S0(o))(e||!qi(Dr(o[p])))&&f.push([l(p),l(o[p])]);return c}case du:return i([s,o.toISOString()],o);case pu:{const{source:f,flags:c}=o;return i([s,{source:f,flags:c}],o)}case hu:{const f=[],c=i([s,f],o);for(const[p,h]of o)(e||!(qi(Dr(p))||qi(Dr(h))))&&f.push([l(p),l(h)]);return c}case mu:{const f=[],c=i([s,f],o);for(const p of o)(e||!qi(Dr(p)))&&f.push(l(p));return c}}const{message:u}=o;return i([s,{name:a,message:u}],o)};return l},df=(e,{json:t,lossy:n}={})=>{const r=[];return C0(!(t||n),!!t,new Map,r)(e),r},Fl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ff(df(e,t)):structuredClone(e):(e,t)=>ff(df(e,t));function E0(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 j0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function N0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||E0,r=e.options.footnoteBackLabel||j0,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(),p=Sr(c.toLowerCase());let h=0;const m=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let y=typeof n=="string"?n:n(a,h);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const y=C.children[C.children.length-1];y&&y.type==="text"?y.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else f.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Fl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
258
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
259
- `}]}}const ao=function(e){if(e==null)return I0;if(typeof e=="function")return uo(e);if(typeof e=="object")return Array.isArray(e)?z0(e):T0(e);if(typeof e=="string")return P0(e);throw new Error("Expected function, string, or object as test")};function z0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ao(e[n]);return uo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function T0(e){const t=e;return uo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function P0(e){return uo(t);function t(n){return n&&n.type===e}}function uo(e){return t;function t(n,r,i){return!!(L0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function I0(){return!0}function L0(e){return e!==null&&typeof e=="object"&&"type"in e}const Rh=[],_0=!0,ea=!1,b0="skip";function Fh(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=ao(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 h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Rh,m,x,C;if((!t||l(a,u,f[f.length-1]||void 0))&&(h=D0(n(a,f)),h[0]===ea))return h;if("children"in a&&a.children){const g=a;if(g.children&&h[0]!==b0)for(x=(r?g.children.length:-1)+o,C=f.concat(g);x>-1&&x<g.children.length;){const y=g.children[x];if(m=s(y,x,C)(),m[0]===ea)return m;x=typeof m[1]=="number"?m[1]:x+o}}return h}}}function D0(e){return Array.isArray(e)?e:typeof e=="number"?[_0,e]:e==null?Rh:[e]}function gu(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),Fh(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 ta={}.hasOwnProperty,A0={};function M0(e,t){const n=t||A0,r=new Map,i=new Map,l=new Map,o={...v0,...n.handlers},s={all:u,applyData:F0,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:a,options:n,patch:R0,wrap:B0};return gu(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),s;function a(f,c){const p=f.type,h=s.handlers[p];if(ta.call(s.handlers,p)&&h)return h(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in f){const{children:x,...C}=f,g=Fl(C);return g.children=s.all(f),g}return Fl(f)}return(s.options.unknownHandler||O0)(s,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const m=s.one(p[h],f);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=pf(m.value)),!Array.isArray(m)&&m.type==="element")){const x=m.children[0];x&&x.type==="text"&&(x.value=pf(x.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function R0(e,t){e.position&&(t.position=Ev(e))}function F0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,Fl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function O0(e,t){const n=t.data||{},r="value"in t&&!(ta.call(n,"hProperties")||ta.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 B0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
260
- `});++r<e.length;)r&&n.push({type:"text",value:`
261
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
262
- `}),n}function pf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hf(e,t){const n=M0(e,t),r=n.one(e,void 0),i=N0(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
263
- `},i),l}function $0(e,t){return e&&"run"in e?async function(n,r){const i=hf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hf(n,{file:r,...e||t})}}function mf(e){if(e)throw e}var ul=Object.prototype.hasOwnProperty,Oh=Object.prototype.toString,gf=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,vf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Oh.call(t)==="[object Array]"},xf=function(t){if(!t||Oh.call(t)!=="[object Object]")return!1;var n=ul.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ul.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||ul.call(t,i)},kf=function(t,n){gf&&n.name==="__proto__"?gf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},wf=function(t,n){if(n==="__proto__")if(ul.call(t,n)){if(yf)return yf(t,n).value}else return;return t[n]},U0=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=wf(s,n),i=wf(t,n),s!==i&&(f&&i&&(xf(i)||(l=vf(i)))?(l?(l=!1,o=r&&vf(r)?r:[]):o=r&&xf(r)?r:{},kf(s,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&kf(s,{name:n,newValue:i}));return s};const Uo=Df(U0);function na(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 H0(){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?V0(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 V0(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 Nt={basename:W0,dirname:Q0,extname:q0,join:Y0,sep:"/"};function W0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zi(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 Q0(e){if(zi(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 q0(e){zi(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 Y0(...e){let t=-1,n;for(;++t<e.length;)zi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":X0(n)}function X0(e){zi(e);const t=e.codePointAt(0)===47;let n=K0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function K0(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 zi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const G0={cwd:J0};function J0(){return"/"}function ra(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Z0(e){if(typeof e=="string")e=new URL(e);else if(!ra(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 ew(e)}function ew(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 Ho=["history","path","basename","stem","extname","dirname"];class Bh{constructor(t){let n;t?ra(t)?n={path:t}:typeof t=="string"||tw(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":G0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ho.length;){const l=Ho[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)Ho.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Nt.basename(this.path):void 0}set basename(t){Wo(t,"basename"),Vo(t,"basename"),this.path=Nt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Nt.dirname(this.path):void 0}set dirname(t){Sf(this.basename,"dirname"),this.path=Nt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Nt.extname(this.path):void 0}set extname(t){if(Vo(t,"extname"),Sf(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=Nt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ra(t)&&(t=Z0(t)),Wo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Nt.basename(this.path,this.extname):void 0}set stem(t){Wo(t,"stem"),Vo(t,"stem"),this.path=Nt.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 De(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Vo(e,t){if(e&&e.includes(Nt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Nt.sep+"`")}function Wo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function tw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nw=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},rw={}.hasOwnProperty;class yu extends nw{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=H0()}copy(){const t=new yu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Uo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Yo("data",this.frozen),this.namespace[t]=n,this):rw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Yo("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 Qo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qo("process",this.parser||this.Parser),qo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const s=Yi(t),a=r.parse(s);r.run(a,s,function(f,c,p){if(f||!c||!p)return u(f);const h=c,m=r.stringify(h,p);ow(m)?p.value=m:p.result=m,u(f,p)});function u(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Qo("processSync",this.parser||this.Parser),qo("processSync",this.compiler||this.Compiler),this.process(t,i),Ef("processSync","process",n),r;function i(l,o){n=!0,mf(l),r=o}}run(t,n,r){Cf(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,p){const h=c||t;f?s(f):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Ef("runSync","run",r),i;function l(o,s){mf(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Yi(n),i=this.compiler||this.Compiler;return qo("stringify",i),Cf(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Yo("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=Uo(!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,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...m]=f;const x=r[p][1];na(x)&&na(h)&&(h=Uo(!0,x,h)),r[p]=[u,h,...m]}}}}const iw=new yu().freeze();function Qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yo(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 Cf(e){if(!na(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ef(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yi(e){return lw(e)?e:new Bh(e)}function lw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ow(e){return typeof e=="string"||sw(e)}function sw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jf=[],Nf={allowDangerousHtml:!0},uw=/^(https?|ircs?|mailto|xmpp)$/i,cw=[{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:"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 fw(e){const t=dw(e),n=pw(e);return hw(t.runSync(t.parse(n),n),e)}function dw(e){const t=e.rehypePlugins||jf,n=e.remarkPlugins||jf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Nf}:Nf;return iw().use(Qk).use(n).use($0,r).use(t)}function pw(e){const t=e.children||"",n=new Bh;return typeof t=="string"&&(n.value=t),n}function hw(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||mw;for(const f of cw)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+aw+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),gu(e,u),Pv(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Oo)if(Object.hasOwn(Oo,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],x=Oo[h];(x===null||x.includes(f.tagName))&&(f.properties[h]=a(String(m||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return s&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function mw(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||uw.test(e.slice(0,t))?e:""}function zf(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 gw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yw(e,t,n){const i=ao((n||{}).ignore||[]),l=vw(t);let o=-1;for(;++o<l.length;)Fh(e,"text",s);function s(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return a(u,f)}function a(u,f){const c=f[f.length-1],p=l[o][0],h=l[o][1];let m=0;const C=c.children.indexOf(u);let g=!1,y=[];p.lastIndex=0;let v=p.exec(u.value);for(;v;){const j=v.index,z={index:v.index,input:v.input,stack:[...f,u]};let w=h(...v,z);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=j+1:(m!==j&&y.push({type:"text",value:u.value.slice(m,j)}),Array.isArray(w)?y.push(...w):w&&y.push(w),m=j+v[0].length,g=!0),!p.global)break;v=p.exec(u.value)}return g?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),c.children.splice(C,1,...y)):y=[u],C+y.length}}function vw(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([xw(i[0]),kw(i[1])])}return t}function xw(e){return typeof e=="string"?new RegExp(gw(e),"g"):e}function kw(e){return typeof e=="function"?e:function(){return e}}const Xo="phrasing",Ko=["autolink","link","image","label"];function ww(){return{transforms:[Tw],enter:{literalAutolink:Cw,literalAutolinkEmail:Go,literalAutolinkHttp:Go,literalAutolinkWww:Go},exit:{literalAutolink:zw,literalAutolinkEmail:Nw,literalAutolinkHttp:Ew,literalAutolinkWww:jw}}}function Sw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xo,notInConstruct:Ko},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xo,notInConstruct:Ko},{character:":",before:"[ps]",after:"\\/",inConstruct:Xo,notInConstruct:Ko}]}}function Cw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Go(e){this.config.enter.autolinkProtocol.call(this,e)}function Ew(e){this.config.exit.autolinkProtocol.call(this,e)}function jw(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 Nw(e){this.config.exit.autolinkEmail.call(this,e)}function zw(e){this.exit(e)}function Tw(e){yw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Iw]],{ignore:["link","linkReference"]})}function Pw(e,t,n,r,i){let l="";if(!$h(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Lw(n)))return!1;const o=_w(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 Iw(e,t,n,r){return!$h(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Lw(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 _w(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=zf(e,"(");let l=zf(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 $h(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||bn(n)||lo(n))&&(!t||n!==47)}Uh.peek=$w;function bw(){this.buffer()}function Dw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Aw(){this.buffer()}function Mw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Rw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Fw(e){this.exit(e)}function Ow(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bw(e){this.exit(e)}function $w(){return"["}function Uh(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 Uw(){return{enter:{gfmFootnoteCallString:bw,gfmFootnoteCall:Dw,gfmFootnoteDefinitionLabelString:Aw,gfmFootnoteDefinition:Mw},exit:{gfmFootnoteCallString:Rw,gfmFootnoteCall:Fw,gfmFootnoteDefinitionLabelString:Ow,gfmFootnoteDefinition:Bw}}}function Hw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Uh},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?`
264
- `:" ")+l.indentLines(l.containerFlow(r,s.current()),t?Hh:Vw))),u(),a}}function Vw(e,t,n){return t===0?e:Hh(e,t,n)}function Hh(e,t,n){return(n?"":" ")+e}const Ww=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vh.peek=Kw;function Qw(){return{canContainEols:["delete"],enter:{strikethrough:Yw},exit:{strikethrough:Xw}}}function qw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ww}],handlers:{delete:Vh}}}function Yw(e){this.enter({type:"delete",children:[]},e)}function Xw(e){this.exit(e)}function Vh(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 Kw(){return"~"}function Gw(e){return e.length}function Jw(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Gw,l=[],o=[],s=[],a=[];let u=0,f=-1;for(;++f<e.length;){const x=[],C=[];let g=-1;for(e[f].length>u&&(u=e[f].length);++g<e[f].length;){const y=Zw(e[f][g]);if(n.alignDelimiters!==!1){const v=i(y);C[g]=v,(a[g]===void 0||v>a[g])&&(a[g]=v)}x.push(y)}o[f]=x,s[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=Tf(r[c]);else{const x=Tf(r);for(;++c<u;)l[c]=x}c=-1;const p=[],h=[];for(;++c<u;){const x=l[c];let C="",g="";x===99?(C=":",g=":"):x===108?C=":":x===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,a[c]-C.length-g.length);const v=C+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=C.length+y+g.length,y>a[c]&&(a[c]=y),h[c]=y),p[c]=v}o.splice(1,0,p),s.splice(1,0,h),f=-1;const m=[];for(;++f<o.length;){const x=o[f],C=s[f];c=-1;const g=[];for(;++c<u;){const y=x[c]||"";let v="",j="";if(n.alignDelimiters!==!1){const z=a[c]-(C[c]||0),w=l[c];w===114?v=" ".repeat(z):w===99?z%2?(v=" ".repeat(z/2+.5),j=" ".repeat(z/2-.5)):(v=" ".repeat(z/2),j=v):j=" ".repeat(z)}n.delimiterStart!==!1&&!c&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&g.push(" "),n.alignDelimiters!==!1&&g.push(v),g.push(y),n.alignDelimiters!==!1&&g.push(j),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&g.push("|")}m.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
265
- `)}function Zw(e){return e==null?"":String(e)}function Tf(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 eS(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()),tS);return i(),o}function tS(e,t,n){return">"+(n?"":" ")+e}function nS(e,t){return Pf(e,t.inConstruct,!0)&&!Pf(e,t.notInConstruct,!1)}function Pf(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 If(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
266
- `&&nS(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
267
- `}function rS(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 iS(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 lS(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 oS(e,t,n,r){const i=lS(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(iS(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,sS);return c(),p}const s=n.createTracker(r),a=i.repeat(Math.max(rS(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:`
268
- `,encode:["`"],...s.current()})),c()}return f+=s.move(`
269
- `),l&&(f+=s.move(l+`
270
- `)),f+=s.move(a),u(),f}function sS(e,t,n){return(n?"":" ")+e}function vu(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 aS(e,t,n,r){const i=vu(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?" ":`
271
- `,...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 uS(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 xi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ol(e,t,n){const r=gr(e),i=gr(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}}Wh.peek=cS;function Wh(e,t,n,r){const i=uS(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=Ol(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=xi(u)+a.slice(1));const c=a.charCodeAt(a.length-1),p=Ol(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+xi(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},s+a+h}function cS(e,t,n){return n.options.emphasis||"*"}function fS(e,t){let n=!1;return gu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ea}),!!((!e.depth||e.depth<3)&&uu(e)&&(t.options.setext||n))}function dS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(fS(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
272
- `,after:`
273
- `});return c(),f(),p+`
274
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
275
- `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),a=n.enter("phrasing");l.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
276
- `,...l.current()});return/^[\t ]/.test(u)&&(u=xi(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),a(),s(),u}Qh.peek=pS;function Qh(e){return e.value||""}function pS(){return"<"}qh.peek=hS;function qh(e,t,n,r){const i=vu(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 hS(){return"!"}Yh.peek=mS;function Yh(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 mS(){return"!"}Xh.peek=gS;function Xh(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 gS(){return"`"}function Kh(e,t){const n=uu(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))}Gh.peek=yS;function Gh(e,t,n,r){const i=vu(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,a;if(Kh(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 yS(e,t,n){return Kh(e,n)?"<":"["}Jh.peek=vS;function Jh(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 vS(){return"["}function xu(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 xS(e){const t=xu(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 kS(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 Zh(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 wS(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?kS(n):xu(n);const s=e.ordered?o==="."?")":".":xS(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),Zh(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.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 SS(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 CS(e,t,n,r){const i=SS(n);let l=n.bulletCurrent||xu(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,p,h){return p?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function ES(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const jS=ao(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function NS(e,t,n,r){return(e.children.some(function(o){return jS(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function zS(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}em.peek=TS;function em(e,t,n,r){const i=zS(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=Ol(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=xi(u)+a.slice(1));const c=a.charCodeAt(a.length-1),p=Ol(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+xi(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},s+a+h}function TS(e,t,n){return n.options.strong||"*"}function PS(e,t,n,r){return n.safe(e.value,r)}function IS(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 LS(e,t,n){const r=(Zh(n)+(n.options.ruleSpaces?" ":"")).repeat(IS(n));return n.options.ruleSpaces?r.slice(0,-1):r}const tm={blockquote:eS,break:If,code:oS,definition:aS,emphasis:Wh,hardBreak:If,heading:dS,html:Qh,image:qh,imageReference:Yh,inlineCode:Xh,link:Gh,linkReference:Jh,list:wS,listItem:CS,paragraph:ES,root:NS,strong:em,text:PS,thematicBreak:LS};function _S(){return{enter:{table:bS,tableData:Lf,tableHeader:Lf,tableRow:AS},exit:{codeText:MS,table:DS,tableData:Jo,tableHeader:Jo,tableRow:Jo}}}function bS(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 DS(e){this.exit(e),this.data.inTable=void 0}function AS(e){this.enter({type:"tableRow",children:[]},e)}function Jo(e){this.exit(e)}function Lf(e){this.enter({type:"tableCell",children:[]},e)}function MS(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,RS));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function RS(e,t){return t==="|"?t:e}function FS(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
277
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:a,tableRow:s}};function o(h,m,x,C){return u(f(h,x,C),h.align)}function s(h,m,x,C){const g=c(h,x,C),y=u([g]);return y.slice(0,y.indexOf(`
278
- `))}function a(h,m,x,C){const g=x.enter("tableCell"),y=x.enter("phrasing"),v=x.containerPhrasing(h,{...C,before:l,after:l});return y(),g(),v}function u(h,m){return Jw(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,x){const C=h.children;let g=-1;const y=[],v=m.enter("table");for(;++g<C.length;)y[g]=c(C[g],m,x);return v(),y}function c(h,m,x){const C=h.children;let g=-1;const y=[],v=m.enter("tableRow");for(;++g<C.length;)y[g]=a(C[g],h,m,x);return v(),y}function p(h,m,x){let C=tm.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function OS(){return{exit:{taskListCheckValueChecked:_f,taskListCheckValueUnchecked:_f,paragraph:$S}}}function BS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:US}}}function _f(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $S(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 US(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=tm.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 HS(){return[ww(),Uw(),Qw(),_S(),OS()]}function VS(e){return{extensions:[Sw(),Hw(e),qw(),FS(e),BS()]}}const WS={tokenize:GS,partial:!0},nm={tokenize:JS,partial:!0},rm={tokenize:ZS,partial:!0},im={tokenize:e2,partial:!0},QS={tokenize:t2,partial:!0},lm={name:"wwwAutolink",tokenize:XS,previous:sm},om={name:"protocolAutolink",tokenize:KS,previous:am},Wt={name:"emailAutolink",tokenize:YS,previous:um},It={};function qS(){return{text:It}}let vn=48;for(;vn<123;)It[vn]=Wt,vn++,vn===58?vn=65:vn===91&&(vn=97);It[43]=Wt;It[45]=Wt;It[46]=Wt;It[95]=Wt;It[72]=[Wt,om];It[104]=[Wt,om];It[87]=[Wt,lm];It[119]=[Wt,lm];function YS(e,t,n){const r=this;let i,l;return o;function o(c){return!ia(c)||!um.call(r,r.previous)||ku(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return ia(c)?(e.consume(c),s):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(QS,f,u)(c):c===45||c===95||_e(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&&Me(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function XS(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!sm.call(r,r.previous)||ku(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(WS,e.attempt(nm,e.attempt(rm,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function KS(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&am.call(r,r.previous)&&!ku(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Me(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="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)||re(c)||bn(c)||lo(c)?n(c):e.attempt(nm,e.attempt(rm,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function GS(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 JS(e,t,n){let r,i,l;return o;function o(u){return u===46||u===95?e.check(im,a,s)(u):u===null||re(u)||bn(u)||u!==45&&lo(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 ZS(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(im,t,l)(o):o===null||re(o)||bn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function e2(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||re(s)||bn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||re(s)||bn(s)?t(s):r(s)}function l(s){return Me(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Me(s)?(e.consume(s),o):n(s)}}function t2(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return _e(l)?n(l):t(l)}}function sm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||re(e)}function am(e){return!Me(e)}function um(e){return!(e===47||ia(e))}function ia(e){return e===43||e===45||e===46||e===95||_e(e)}function ku(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 n2={tokenize:c2,partial:!0};function r2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:s2,continuation:{tokenize:a2},exit:u2}},text:{91:{name:"gfmFootnoteCall",tokenize:o2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:i2,resolveTo:l2}}}}function i2(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=wt(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 l2(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 o2(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||re(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return re(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 s2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,s;return a;function a(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(o>999||m===93&&!s||m===null||m===91||re(m))return n(m);if(m===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=wt(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return re(m)||(s=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),Y(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function a2(e,t,n){return e.check(Ni,t,e.attempt(n2,t,n))}function u2(e){e.exit("gfmFootnoteDefinition")}function c2(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 f2(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)},p=[["enter",f,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],h=s.parser.constructs.insideSpan.null;h&&et(p,p.length,0,oo(h,o.slice(u+1,a),s)),et(p,p.length,0,[["exit",c,s],["enter",o[a][1],s],["exit",o[a][1],s],["exit",f,s]]),et(o,u-1,a-u+3,p),a=u+p.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 p;function p(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(m):(o.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const x=gr(u);if(m===126)return c>1?a(m):(o.consume(m),c++,h);if(c<2&&!n)return a(m);const C=o.exit("strikethroughSequenceTemporary"),g=gr(m);return C._open=!g||g===2&&!!x,C._close=!x||x===2&&!!g,s(m)}}}class d2{constructor(){this.map=[]}add(t,n,r){p2(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 p2(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 h2(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 m2(){return{flow:{null:{name:"table",tokenize:g2,resolveAll:y2}}}}function g2(e,t,n){const r=this;let i=0,l=0,o;return s;function s(E){let A=r.events.length-1;for(;A>-1;){const ie=r.events[A][1].type;if(ie==="lineEnding"||ie==="linePrefix")A--;else break}const F=A>-1?r.events[A][1].type:null,X=F==="tableHead"||F==="tableRow"?w:a;return X===w&&r.parser.lazy[r.now().line]?n(E):X(E)}function a(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(o=!0,l+=1),f(E)}function f(E){return E===null?n(E):O(E)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):n(E):V(E)?Y(e,f,"whitespace")(E):(l+=1,o&&(o=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(E)))}function c(E){return E===null||E===124||re(E)?(e.exit("data"),f(E)):(e.consume(E),E===92?p:c)}function p(E){return E===92||E===124?(e.consume(E),c):c(E)}function h(E){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(E):(e.enter("tableDelimiterRow"),o=!1,V(E)?Y(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):m(E))}function m(E){return E===45||E===58?C(E):E===124?(o=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),x):z(E)}function x(E){return V(E)?Y(e,C,"whitespace")(E):C(E)}function C(E){return E===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),g):E===45?(l+=1,g(E)):E===null||O(E)?j(E):z(E)}function g(E){return E===45?(e.enter("tableDelimiterFiller"),y(E)):z(E)}function y(E){return E===45?(e.consume(E),y):E===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(E))}function v(E){return V(E)?Y(e,j,"whitespace")(E):j(E)}function j(E){return E===124?m(E):E===null||O(E)?!o||i!==l?z(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):z(E)}function z(E){return n(E)}function w(E){return e.enter("tableRow"),N(E)}function N(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),N):E===null||O(E)?(e.exit("tableRow"),t(E)):V(E)?Y(e,N,"whitespace")(E):(e.enter("data"),P(E))}function P(E){return E===null||E===124||re(E)?(e.exit("data"),N(E)):(e.consume(E),E===92?R:P)}function R(E){return E===92||E===124?(e.consume(E),P):P(E)}}function y2(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 p=new d2;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(s=!1,a!==0&&(bf(p,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.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({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Xi(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Xi(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):m.type==="tableHead"?(s=!0,a=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(a=n,l[1]!==0?(o[0]=o[1],c=Xi(p,t,l,i,n,c)):o[1]!==0&&(c=Xi(p,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(a!==0&&bf(p,t,a,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=h2(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({},Un(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const a=Un(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=Un(t.events,n[2]),f=Un(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 p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,x=n[3]-n[2]-1;e.add(m,x,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},Un(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function bf(e,t,n,r,i){const l=[],o=Un(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 Un(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const v2={name:"tasklistCheck",tokenize:k2};function x2(){return{text:{91:v2}}}function k2(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 re(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 O(a)?t(a):V(a)?e.check({tokenize:w2},t,n)(a):n(a)}}function w2(e,t,n){return Y(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function S2(e){return xh([qS(),r2(),f2(e),m2(),x2()])}const C2={};function E2(e){const t=this,n=e||C2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(S2(n)),l.push(HS()),o.push(VS(n))}const j2=[{cmd:"/plan new <slug>",desc:"Create a new plan"},{cmd:"/plan list",desc:"List plans"},{cmd:"/plan open <slug>",desc:"Open a plan URL"},{cmd:"/plan status <slug> <status>",desc:"Set plan status"},{cmd:"/visual-plan on|off",desc:"Toggle visual plan mode"},{cmd:"/bizar",desc:"Show Bizar menu / launch dashboard"},{cmd:"/audit",desc:"Run security audit"},{cmd:"/explain <q>",desc:"Read-only code Q&A"},{cmd:"/init",desc:"Initialize .bizar/ in this project"},{cmd:"/learn",desc:"Extract patterns from session"},{cmd:"/pr-review",desc:"PR review with @mimir + @forseti"},{cmd:"/help",desc:"Show all slash commands"}];function N2(e){const t=Vt(),[n,r]=I.useState([]),[i,l]=I.useState([]),[o,s]=I.useState(!0),[a,u]=I.useState(""),[f,c]=I.useState(""),[p,h]=I.useState(!1),[m,x]=I.useState([]),C=I.useRef(null),g=I.useRef(null),y=async w=>{try{const N=w?`/chat?session=${encodeURIComponent(w)}`:"/chat?limit=200",P=await oe.get(N);r(P.messages||[]),l(P.sessions||[])}catch(N){t.error(`Chat load failed: ${N.message}`)}finally{s(!1)}};I.useEffect(()=>{y()},[]),I.useEffect(()=>{C.current&&(C.current.scrollTop=C.current.scrollHeight)},[n]),I.useEffect(()=>{if(f.startsWith("/")&&!f.includes(" ")){const w=f.toLowerCase();x(j2.filter(N=>N.cmd.toLowerCase().startsWith(w)).slice(0,6))}else x([])},[f]);const v=async()=>{var P;const w=f.trim();if(!w||p)return;h(!0);const N={role:"user",content:w,ts:new Date().toISOString()};r(R=>[...R,N]),c(""),x([]);try{await oe.post("/chat",{message:w}),t.success("Message accepted. Open the TUI to dispatch.")}catch(R){r(E=>E.filter(A=>A!==N)),t.error(`Send failed: ${R.message}`)}finally{h(!1),(P=g.current)==null||P.focus()}},j=w=>{if(w.key==="Enter"&&!w.shiftKey)w.preventDefault(),v();else if(w.key==="Tab"&&m.length){w.preventDefault();const P=m[0].cmd.split(" ")[0];c(`${P} `),x([])}},z=[...n].reverse();return d.jsxs("div",{className:"view view-chat",children:[d.jsxs("header",{className:"view-header chat-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(yi,{size:18})," Chat"]}),d.jsx("p",{className:"view-subtitle",children:"Conversation history. Press Enter to send, Shift+Enter for newline."})]}),d.jsxs("div",{className:"view-actions",children:[d.jsxs("select",{className:"select select-sm",value:a,onChange:w=>{const N=w.target.value;u(N),y(N||void 0)},children:[d.jsxs("option",{value:"",children:["All sessions (",i.length,")"]}),i.map(w=>d.jsxs("option",{value:w.id,children:[w.id.slice(0,28),"… ·"," ",new Date(w.mtime).toLocaleDateString()]},w.id))]}),d.jsxs(J,{variant:"secondary",size:"sm",onClick:()=>y(a||void 0),children:[d.jsx(mn,{size:14})," Refresh"]}),d.jsxs(J,{variant:"ghost",size:"sm",onClick:()=>r([]),children:[d.jsx(n1,{size:14})," Clear view"]})]})]}),d.jsxs("div",{className:"chat-container",children:[d.jsx("div",{className:"chat-list",ref:C,children:o?d.jsx("div",{className:"view-loading",children:d.jsx(Ut,{})}):z.length===0?d.jsx(mr,{icon:d.jsx(yi,{size:28}),title:"No messages yet",message:"Type something below to start."}):z.map((w,N)=>d.jsx(z2,{message:w},N))}),d.jsxs("div",{className:"chat-composer",children:[m.length>0&&d.jsx("div",{className:"chat-suggestions",children:m.map(w=>d.jsxs("button",{type:"button",className:"chat-suggestion",onClick:()=>{var P;const N=w.cmd.split(" ")[0];c(`${N} `),(P=g.current)==null||P.focus()},children:[d.jsx("span",{className:"mono",children:w.cmd}),d.jsx("span",{className:"chat-suggestion-desc",children:w.desc})]},w.cmd))}),d.jsxs("div",{className:"chat-composer-row",children:[d.jsx("textarea",{ref:g,className:"chat-input",placeholder:"Send a message… (Enter to send, Shift+Enter for newline, / for commands)",rows:2,value:f,onChange:w=>c(w.target.value),onKeyDown:j,disabled:p}),d.jsxs(J,{variant:"primary",onClick:v,disabled:p||!f.trim(),children:[p?d.jsx(Ut,{size:"sm"}):d.jsx(p1,{size:14})," ",d.jsx("span",{children:"Send"})," ",d.jsx(t1,{size:12,className:"hint-key"})]})]})]})]})]})}function z2({message:e}){const t=(e.role||"assistant").toLowerCase(),n=e.ts?Ws(e.ts):"",r=e.content||e.message||"";return d.jsxs("div",{className:Ce("chat-msg",`chat-msg-${t}`),children:[d.jsxs("div",{className:"chat-msg-meta",children:[d.jsx("span",{className:"chat-msg-role",children:t}),e.agent&&d.jsx("span",{className:"chat-msg-agent",children:e.agent}),n&&d.jsx("span",{className:"chat-msg-ts tabular-nums",children:n})]}),d.jsx("div",{className:"chat-msg-body markdown-body",children:d.jsx(fw,{remarkPlugins:[E2],children:r})})]})}function co({kind:e="neutral",children:t,className:n,dot:r=!1}){return d.jsxs("span",{className:Ce("badge",`badge-${e}`,n),children:[r&&d.jsx("span",{className:"badge-dot"}),t]})}function T2({snapshot:e}){const t=Vt(),n=tu(),[r,i]=I.useState(e.agents||[]),[l,o]=I.useState(!e.agents);I.useEffect(()=>{var f;if((f=e.agents)!=null&&f.length){i(e.agents),o(!1);return}let u=!1;return oe.get("/agents").then(c=>{u||(i(c.agents||[]),o(!1))}).catch(c=>{u||(o(!1),t.error(`Could not load agents: ${c.message}`))}),()=>{u=!0}},[e.agents,t]);const s=I.useMemo(()=>[...r].sort((u,f)=>u.name.localeCompare(f.name)),[r]),a=async()=>{try{const u=await oe.get("/agents");i(u.agents||[]),t.info("Agents refreshed.",1500)}catch(u){t.error(`Refresh failed: ${u.message}`)}};return d.jsxs("div",{className:"view view-agents",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(Al,{size:18})," Agents (",s.length,")"]}),d.jsx("p",{className:"view-subtitle",children:"The Norse pantheon — 13 specialized agents across 4 cost tiers."})]}),d.jsx("div",{className:"view-actions",children:d.jsxs(J,{variant:"secondary",size:"sm",onClick:a,children:[d.jsx(mn,{size:14})," Refresh"]})})]}),l?d.jsx("div",{className:"view-loading",children:d.jsx(Ut,{size:"lg"})}):s.length===0?d.jsx(mr,{icon:d.jsx(Al,{size:32}),title:"No agents found",message:"Run bizar in the terminal to install Bizar."}):d.jsx("div",{className:"agent-grid",children:s.map(u=>d.jsx(P2,{agent:u,onInvoke:()=>I2(n,u,t,a)},u.name))})]})}function P2({agent:e,onInvoke:t}){return d.jsxs(He,{variant:"elevated",interactive:!0,className:"agent-card",children:[d.jsxs("div",{className:"agent-card-head",children:[d.jsx("div",{className:"agent-card-name",children:e.name}),d.jsx(co,{kind:e.mode==="primary"?"accent":"neutral",children:e.mode||"agent"})]}),d.jsx("p",{className:"agent-card-desc",children:nh(e.description,200)}),d.jsxs("div",{className:"agent-card-meta",children:[d.jsx("span",{className:"mono",title:e.model||"",children:e.model||"—"}),d.jsx("span",{className:"tabular-nums muted",children:kr(e.mtime)})]}),d.jsx("div",{className:"agent-card-actions",children:d.jsxs(J,{variant:"primary",size:"sm",onClick:t,children:[d.jsx(Jp,{size:12})," Invoke"]})})]})}function I2(e,t,n,r){let i=null;const l=async()=>{const o=((i==null?void 0:i.value)||"").trim();if(!o){n.warning("Prompt is required.");return}try{await oe.post(`/agents/${encodeURIComponent(t.name)}/invoke`,{prompt:o}),n.success(`Invoked ${t.name}.`),e.close(),await r()}catch(s){n.error(`Invoke failed: ${s.message}`)}};e.open({title:`Invoke ${t.name}`,width:560,children:d.jsxs("div",{className:"invoke-form",children:[d.jsxs("p",{className:"muted invoke-form-meta mono",children:[t.model||"—"," · ",t.path]}),d.jsx("p",{className:"invoke-form-desc",children:t.description}),d.jsx("label",{className:"field-label",htmlFor:"invoke-prompt",children:"Prompt"}),d.jsx("textarea",{ref:o=>{i=o},id:"invoke-prompt",className:"textarea",rows:5,placeholder:"What should this agent do?",autoFocus:!0})]}),footer:d.jsxs("div",{className:"modal-footer-actions",children:[d.jsxs(J,{variant:"ghost",onClick:()=>e.close(),children:[d.jsx(ro,{size:14})," Cancel"]}),d.jsxs(J,{variant:"primary",onClick:l,children:[d.jsx(Jp,{size:14})," Invoke"]})]})})}function L2(e){switch(e){case"approved":case"done":return"success";case"in-progress":case"doing":return"info";case"rejected":return"error";case"draft":case"queued":default:return"neutral"}}function _2({snapshot:e}){const t=Vt(),[n,r]=I.useState(e.plans||[]),[i,l]=I.useState(!e.plans),[o,s]=I.useState(null),[a,u]=I.useState("");I.useEffect(()=>{var x;if((x=e.plans)!=null&&x.length){r(e.plans),l(!1);return}let m=!1;return oe.get("/plans").then(C=>{m||(r(C.plans||[]),l(!1))}).catch(C=>{m||(l(!1),t.error(`Could not load plans: ${C.message}`))}),()=>{m=!0}},[e.plans,t]);const f=I.useMemo(()=>a?n.filter(m=>(m.status||"").toLowerCase().includes(a.toLowerCase())):n,[n,a]),c=async()=>{try{const m=await oe.get("/plans");r(m.plans||[]),t.info("Plans refreshed.",1500)}catch(m){t.error(`Refresh failed: ${m.message}`)}},p=async(m,x)=>{try{await oe.post("/plans",{slug:m,title:x}),t.success(`Plan "${m}" created.`),s(m),await c()}catch(C){t.error(`Create failed: ${C.message}`)}},h=I.useMemo(()=>Array.from(new Set(n.map(m=>m.status||"draft"))),[n]);return d.jsxs("div",{className:"view view-plans",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(sr,{size:18})," Plans (",n.length,")"]}),d.jsx("p",{className:"view-subtitle",children:"Visual plans with elements, connections, and threaded comments."})]}),d.jsxs("div",{className:"view-actions",children:[d.jsxs("select",{className:"select select-sm",value:a,onChange:m=>u(m.target.value),children:[d.jsx("option",{value:"",children:"All statuses"}),h.map(m=>d.jsx("option",{value:m,children:m},m))]}),d.jsxs(J,{variant:"secondary",size:"sm",onClick:c,children:[d.jsx(mn,{size:14})," Refresh"]})]})]}),d.jsx(b2,{onCreate:p}),i?d.jsx("div",{className:"view-loading",children:d.jsx(Ut,{size:"lg"})}):n.length===0?d.jsx(mr,{icon:d.jsx(sr,{size:32}),title:"No plans yet",message:"Create one above to get started."}):d.jsxs("div",{className:"plans-layout",children:[d.jsxs("div",{className:"plans-list-col",children:[f.map(m=>d.jsx(D2,{plan:m,selected:m.slug===o,onSelect:()=>s(m.slug)},m.slug)),f.length===0&&d.jsx("p",{className:"muted text-sm",children:"No plans match that filter."})]}),d.jsx("div",{className:"plans-canvas-col",children:o?d.jsx(A2,{slug:o}):d.jsx(mr,{icon:d.jsx(sr,{size:28}),title:"Select a plan",message:"Pick a plan on the left to view its canvas."})})]})]})}function b2({onCreate:e}){const[t,n]=I.useState(""),[r,i]=I.useState("");return d.jsxs(He,{className:"new-plan",children:[d.jsxs(ut,{children:[d.jsx(Za,{size:14})," New plan"]}),d.jsx(kt,{children:"Slug must be lowercase, may contain hyphens, 1–64 chars."}),d.jsxs("form",{className:"new-plan-form",onSubmit:l=>{l.preventDefault(),t.trim()&&(e(t.trim(),r.trim()||void 0),n(""),i(""))},children:[d.jsx("input",{className:"input",type:"text",placeholder:"slug (e.g. dashboard-v2.6)",pattern:"[a-z0-9][a-z0-9-]{0,63}",required:!0,value:t,onChange:l=>n(l.target.value)}),d.jsx("input",{className:"input",type:"text",placeholder:"Title (optional)",value:r,onChange:l=>i(l.target.value)}),d.jsx(J,{variant:"primary",type:"submit",children:"Create"})]})]})}function D2({plan:e,selected:t,onSelect:n}){const r=L2(e.status||"draft");return d.jsxs(He,{variant:t?"filled":"elevated",interactive:!0,className:Ce("plan-card",t&&"plan-card-selected"),onClick:n,children:[d.jsxs("div",{className:"plan-card-head",children:[d.jsx("div",{className:"plan-card-title",children:e.title||e.slug}),d.jsx(co,{kind:r,children:e.status||"draft"})]}),d.jsxs("div",{className:"plan-card-slug mono",children:[e.slug," · ",e.source]}),d.jsxs("div",{className:"plan-card-meta",children:[e.elementCount!=null&&d.jsxs("span",{children:[e.elementCount," elements"]}),e.commentCount!=null&&d.jsxs("span",{children:[" · ",e.commentCount," comments"]}),d.jsxs("span",{children:[" · edited ",kr(e.mtime)]})]}),d.jsxs("div",{className:"plan-card-actions",children:[d.jsx(J,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),n()},children:"View"}),d.jsxs(J,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),alert(`Open this plan in the CLI:
279
-
280
- bizar plan open ${e.slug}
281
-
282
- The CLI launches the full visual editor with pan, zoom, and edit capabilities.`)},children:[d.jsx(r1,{size:12})," Open"]})]})]})}function A2({slug:e}){const[t,n]=I.useState(null),[r,i]=I.useState(!0),[l,o]=I.useState(null),s=async()=>{i(!0);try{const u=await oe.get(`/plans/${encodeURIComponent(e)}/canvas`);n(u.canvas)}catch(u){console.warn("canvas load failed",u),n({title:e,elements:[],connections:[],comments:[],viewport:{x:0,y:0,zoom:1}})}finally{i(!1)}};if(I.useEffect(()=>{o(null),s()},[e]),r||!t)return d.jsxs("div",{className:"view-loading",children:[d.jsx(Ut,{size:"lg"}),d.jsx("p",{children:"Loading canvas…"})]});const a=l?t.comments.filter(u=>u.elementId===l||u.id===l):t.comments;return d.jsxs("div",{className:"plan-canvas",children:[d.jsxs("header",{className:"plan-canvas-header",children:[d.jsxs("div",{children:[d.jsx("div",{className:"plan-canvas-title",children:t.title||e}),d.jsxs("div",{className:"plan-canvas-meta",children:[t.elements.length," element",t.elements.length!==1?"s":""," ·"," ",t.comments.length," comment",t.comments.length!==1?"s":""]})]}),d.jsxs("div",{className:"plan-canvas-actions",children:[d.jsx(J,{variant:"ghost",size:"sm",onClick:s,title:"Refresh canvas",children:d.jsx(mn,{size:14})}),d.jsx(J,{variant:"ghost",size:"sm",title:"Reset zoom",onClick:()=>{n({...t,viewport:{x:0,y:0,zoom:1}})},children:d.jsx(s1,{size:14})})]})]}),d.jsx("div",{className:"plan-canvas-area",children:t.elements.length===0?d.jsxs("div",{className:"plan-canvas-empty",children:["No elements yet. Add one via the CLI: ",d.jsxs("code",{children:["/plan add ",e," <type>"]})]}):d.jsxs(M2,{canvas:t,children:[t.elements.map(u=>d.jsx(R2,{element:u,selected:l===u.id,onClick:()=>o(l===u.id?null:u.id)},u.id)),d.jsx(F2,{elements:t.elements,connections:t.connections})]})}),d.jsxs("footer",{className:"plan-canvas-comments",children:[d.jsxs("h4",{className:"plan-canvas-comments-title",children:[d.jsx(a1,{size:14})," Comments (",a.length,l?" for selected":"",")"]}),a.length===0?d.jsx("p",{className:"muted text-sm",children:l?"No comments on this element yet.":"No comments yet."}):d.jsx("ul",{className:"comment-list",children:a.map(u=>d.jsx(O2,{comment:u},u.id))})]})]})}function M2({canvas:e,children:t}){const n=I.useRef(null),r=I.useRef(null),i=I.useRef({panning:!1,startX:0,startY:0,ox:e.viewport.x||0,oy:e.viewport.y||0,scale:e.viewport.zoom||1});return I.useEffect(()=>{const l=n.current,o=r.current;if(!l||!o)return;const s=()=>{const p=i.current;o.style.transform=`translate(${p.ox}px, ${p.oy}px) scale(${p.scale})`};s();const a=p=>{const h=p.target;h!==l&&!h.classList.contains("canvas-grid-bg")&&!h.classList.contains("canvas-inner")||(i.current.panning=!0,i.current.startX=p.clientX-i.current.ox,i.current.startY=p.clientY-i.current.oy,l.style.cursor="grabbing")},u=p=>{i.current.panning&&(i.current.ox=p.clientX-i.current.startX,i.current.oy=p.clientY-i.current.startY,s())},f=()=>{i.current.panning&&(i.current.panning=!1,l.style.cursor="")},c=p=>{p.preventDefault();const h=p.deltaY>0?.9:1.1,m=Math.min(Math.max(i.current.scale*h,.2),3);i.current.scale=m,s()};return l.addEventListener("mousedown",a),window.addEventListener("mousemove",u),window.addEventListener("mouseup",f),l.addEventListener("wheel",c,{passive:!1}),()=>{l.removeEventListener("mousedown",a),window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",f),l.removeEventListener("wheel",c)}},[e.elements.length,e.connections.length]),d.jsxs("div",{className:"canvas-root",ref:n,children:[d.jsx("div",{className:"canvas-grid-bg"}),d.jsx("div",{className:"canvas-inner",ref:r,children:t}),d.jsx("div",{className:"canvas-hint",children:"Pan: drag · Zoom: scroll"})]})}function R2({element:e,selected:t,onClick:n}){const r=e.x||0,i=e.y||0,l=e.width||240,o=e.height||160;return d.jsxs("div",{className:Ce("canvas-element",t&&"canvas-element-selected"),style:{left:r,top:i,width:l,minHeight:o},onClick:s=>{s.stopPropagation(),n()},children:[d.jsx("div",{className:"canvas-element-type",children:e.type||"text"}),d.jsx("div",{className:"canvas-element-title",children:e.title||"Untitled"}),e.content&&d.jsx("div",{className:"canvas-element-content",children:nh(e.content,200)})]})}function F2({elements:e,connections:t}){if(!t.length)return null;const n=e.reduce((a,u)=>{const f=u.x||0,c=u.y||0,p=f+(u.width||240),h=c+(u.height||160);return{minX:Math.min(a.minX,f),minY:Math.min(a.minY,c),maxX:Math.max(a.maxX,p),maxY:Math.max(a.maxY,h)}},{minX:0,minY:0,maxX:0,maxY:0}),r=80,i=n.maxX-n.minX+r*2,l=n.maxY-n.minY+r*2,o=-n.minX+r,s=-n.minY+r;return d.jsxs("svg",{className:"canvas-connections",width:i,height:l,style:{left:n.minX-r,top:n.minY-r},children:[d.jsx("defs",{children:d.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:d.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"var(--accent)"})})}),t.map(a=>{const u=e.find(x=>x.id===a.fromElementId||x.id===a.from),f=e.find(x=>x.id===a.toElementId||x.id===a.to);if(!u||!f)return null;const c=o+(u.x||0)+(u.width||240)/2,p=s+(u.y||0)+(u.height||160),h=o+(f.x||0)+(f.width||240)/2,m=s+(f.y||0);return d.jsx("line",{x1:c,y1:p,x2:h,y2:m,stroke:"var(--accent)",strokeWidth:1.5,markerEnd:"url(#arrow)"},a.id)})]})}function O2({comment:e}){return d.jsxs("li",{className:"comment-item",children:[d.jsxs("div",{className:"comment-head",children:[d.jsx("span",{className:"comment-author mono",children:e.author}),d.jsx("span",{className:"comment-time tabular-nums muted",children:kr(e.created)})]}),d.jsx("div",{className:"comment-text",children:e.text}),e.thread&&e.thread.length>0&&d.jsx("div",{className:"comment-thread",children:e.thread.map((t,n)=>d.jsxs("div",{className:"comment-reply",children:[d.jsx("span",{className:"comment-author mono",children:t.author}),d.jsx("span",{className:"comment-reply-text",children:t.text})]},n))})]})}function B2({snapshot:e}){const t=Vt(),[n,r]=I.useState(e.projects||[]),[i,l]=I.useState(!e.projects);I.useEffect(()=>{var f;if((f=e.projects)!=null&&f.length){r(e.projects),l(!1);return}let u=!1;return oe.get("/projects").then(c=>{u||(r(c.projects||[]),l(!1))}).catch(c=>{u||(l(!1),t.error(`Could not load projects: ${c.message}`))}),()=>{u=!0}},[e.projects,t]);const o=I.useMemo(()=>[...n].sort((u,f)=>u.active&&!f.active?-1:!u.active&&f.active?1:f.mtime-u.mtime),[n]),s=async()=>{try{const u=await oe.get("/projects");r(u.projects||[]),t.info("Projects refreshed.",1500)}catch(u){t.error(`Refresh failed: ${u.message}`)}},a=async u=>{try{await oe.post(`/projects/${encodeURIComponent(u)}/activate`),t.success(`Activated "${u}". Restart the TUI in that directory to fully switch.`),await s()}catch(f){t.error(`Activate failed: ${f.message}`)}};return d.jsxs("div",{className:"view view-projects",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(no,{size:18})," Projects (",n.length,")"]}),d.jsx("p",{className:"view-subtitle",children:"Discovered from .bizar/PROJECT.md markers in cwd and ~/Projects."})]}),d.jsx("div",{className:"view-actions",children:d.jsxs(J,{variant:"secondary",size:"sm",onClick:s,children:[d.jsx(mn,{size:14})," Refresh"]})})]}),i?d.jsx("div",{className:"view-loading",children:d.jsx(Ut,{size:"lg"})}):o.length===0?d.jsx(mr,{icon:d.jsx(Ac,{size:32}),title:"No projects found",message:d.jsxs(d.Fragment,{children:["No ",d.jsx("code",{children:".bizar/PROJECT.md"})," files in cwd or ",d.jsx("code",{children:"~/Projects"}),"."]})}):d.jsx("div",{className:"project-grid",children:o.map(u=>d.jsxs(He,{variant:"elevated",className:Ce("project-card",u.active&&"project-card-active"),children:[d.jsxs("div",{className:"project-card-head",children:[d.jsx(ut,{children:u.name}),u.active&&d.jsx(co,{kind:"accent",children:"active"})]}),d.jsx("div",{className:"project-card-path mono",title:u.path,children:u.path}),d.jsxs(kt,{children:[u.projectMdSize?`PROJECT.md: ${u.projectMdSize} bytes`:"no PROJECT.md",u.hindsightCount>0&&` · .hindsight: ${u.hindsightCount}`," · ","accessed ",kr(u.mtime)]}),d.jsx("div",{className:"project-card-actions",children:d.jsxs(J,{variant:u.active?"ghost":"primary",size:"sm",disabled:u.active,onClick:()=>a(u.name),children:[d.jsx(Ac,{size:12})," Activate"]})})]},u.path))})]})}function $2({children:e,className:t,onRemove:n}){return d.jsxs("span",{className:Ce("tag",t),children:[e,n&&d.jsx("button",{type:"button",className:"tag-remove","aria-label":`Remove ${typeof e=="string"?e:"tag"}`,onClick:n,children:"×"})]})}const Zr=[{id:"queued",label:"Queued",kind:"info"},{id:"doing",label:"Doing",kind:"accent"},{id:"done",label:"Done",kind:"success"}],U2=["low","normal","high"];function H2({snapshot:e}){const t=Vt(),n=tu(),[r,i]=I.useState(e.tasks||[]),[l,o]=I.useState(!e.tasks),[s,a]=I.useState(""),[u,f]=I.useState(null),c=async()=>{try{const x=await oe.get("/tasks");i(Array.isArray(x)?x:[])}catch(x){t.error(`Tasks load failed: ${x.message}`)}finally{o(!1)}};I.useEffect(()=>{var x;if((x=e.tasks)!=null&&x.length||e.tasks){i(e.tasks||[]),o(!1);return}c()},[e.tasks]);const p=I.useMemo(()=>{if(!s.trim())return r;const x=s.toLowerCase();return r.filter(C=>{const g=(C.title||"").toLowerCase(),y=(C.description||"").toLowerCase(),v=(C.tags||[]).join(" ").toLowerCase();return g.includes(x)||y.includes(x)||v.includes(x)})},[r,s]),h=async(x,C)=>{const g=r.find(v=>v.id===x);if(!g)return;const y=g.status;i(v=>v.map(j=>j.id===x?{...j,status:C}:j));try{await oe.patch(`/tasks/${encodeURIComponent(x)}/status`,{status:C}),t.success(`Moved to ${C}.`,1500)}catch(v){i(j=>j.map(z=>z.id===x?{...z,status:y}:z)),t.error(`Move failed: ${v.message}`)}},m=async x=>{if(confirm("Delete this task?"))try{await oe.del(`/tasks/${encodeURIComponent(x)}`),i(C=>C.filter(g=>g.id!==x)),t.success("Task deleted.",1500)}catch(C){t.error(`Delete failed: ${C.message}`)}};return I.useEffect(()=>{const x=C=>{var y,v,j,z,w,N;const g=(v=(y=C.target)==null?void 0:y.tagName)==null?void 0:v.toLowerCase();if(!(g==="input"||g==="textarea"||(j=C.target)!=null&&j.isContentEditable||C.metaKey||C.ctrlKey||C.altKey))if(C.key==="n")C.preventDefault(),Ar(n,t,null,"queued",c);else if(C.key==="1")(z=document.querySelector('[data-column="queued"]'))==null||z.scrollIntoView({behavior:"smooth"});else if(C.key==="2")(w=document.querySelector('[data-column="doing"]'))==null||w.scrollIntoView({behavior:"smooth"});else if(C.key==="3")(N=document.querySelector('[data-column="done"]'))==null||N.scrollIntoView({behavior:"smooth"});else if(C.key==="e"&&u){const P=r.find(R=>R.id===u);P&&Ar(n,t,P,P.status,c)}else(C.key==="Delete"||C.key==="Backspace")&&u&&(C.preventDefault(),m(u))};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[u,r]),d.jsxs("div",{className:"view view-tasks",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(eu,{size:18})," Tasks"]}),d.jsxs("p",{className:"view-subtitle",children:["Personal kanban. Press ",d.jsx("kbd",{children:"n"})," for new, ",d.jsx("kbd",{children:"1-3"})," to jump columns, ",d.jsx("kbd",{children:"e"})," edit, ",d.jsx("kbd",{children:"Del"})," delete."]})]}),d.jsxs("div",{className:"view-actions",children:[d.jsxs("div",{className:"search-input",children:[d.jsx(d1,{size:14}),d.jsx("input",{className:"input",type:"text",placeholder:"Search…",value:s,onChange:x=>a(x.target.value)}),s&&d.jsx("button",{type:"button",className:"icon-btn","aria-label":"Clear search",onClick:()=>a(""),children:d.jsx(ro,{size:12})})]}),d.jsxs(J,{variant:"primary",size:"sm",onClick:()=>Ar(n,t,null,"queued",c),children:[d.jsx(Za,{size:14})," Add task"]})]})]}),l?d.jsx("div",{className:"view-loading",children:d.jsx(Ut,{size:"lg"})}):d.jsx("div",{className:"kanban",children:Zr.map(x=>d.jsx(V2,{column:x,tasks:p.filter(C=>C.status===x.id),focusedId:u,onFocus:f,onMove:h,onDelete:m,onEdit:C=>Ar(n,t,C,C.status,c),onAdd:()=>Ar(n,t,null,x.id,c)},x.id))})]})}function V2({column:e,tasks:t,focusedId:n,onFocus:r,onMove:i,onDelete:l,onEdit:o,onAdd:s}){const[a,u]=I.useState(!1);return d.jsxs("div",{className:Ce("kanban-column",a&&"kanban-column-drop"),"data-column":e.id,onDragOver:f=>{f.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:f=>{f.preventDefault(),u(!1);const c=f.dataTransfer.getData("text/task-id");c&&i(c,e.id)},children:[d.jsxs("div",{className:"kanban-col-header",children:[d.jsx(ut,{children:d.jsx(co,{kind:e.kind,dot:!0,children:e.label})}),d.jsx("span",{className:"kanban-col-count tabular-nums",children:t.length})]}),d.jsx("div",{className:"kanban-col-body",children:t.length===0?d.jsx("div",{className:"kanban-empty",children:"No tasks"}):t.map(f=>d.jsx(W2,{task:f,focused:n===f.id,onFocus:()=>r(n===f.id?null:f.id),onMove:c=>{const h=Zr.findIndex(m=>m.id===f.status)+c;h>=0&&h<Zr.length&&i(f.id,Zr[h].id)},onEdit:()=>o(f),onDelete:()=>l(f.id)},f.id))}),d.jsx("footer",{className:"kanban-col-footer",children:d.jsxs(J,{variant:"ghost",size:"sm",onClick:s,className:"w-full",children:[d.jsx(Za,{size:12})," Add task"]})})]})}function W2({task:e,focused:t,onFocus:n,onMove:r,onEdit:i,onDelete:l}){return d.jsxs("div",{className:Ce("task-card",`priority-${e.priority}`,t&&"task-card-focused"),"data-task-id":e.id,draggable:!0,onDragStart:o=>{o.dataTransfer.setData("text/task-id",e.id),o.dataTransfer.effectAllowed="move"},onClick:n,children:[d.jsxs("div",{className:"task-card-head",children:[d.jsx("span",{className:"priority-dot",style:{background:k1[e.priority]||"var(--info)"}}),d.jsx("div",{className:"task-card-title",children:e.title})]}),e.description&&d.jsx("div",{className:"task-card-desc",children:e.description.slice(0,160)}),e.tags&&e.tags.length>0&&d.jsx("div",{className:"task-card-tags",children:e.tags.map(o=>d.jsx($2,{children:o},o))}),d.jsxs("div",{className:"task-card-footer",children:[d.jsx("span",{className:"task-card-time tabular-nums muted",children:kr(e.updatedAt||e.createdAt)}),d.jsxs("div",{className:"task-card-actions",onClick:o=>o.stopPropagation(),children:[d.jsx("button",{type:"button",className:"icon-btn","aria-label":"Move left",title:"Move left",onClick:()=>r(-1),children:d.jsx(Ky,{size:14})}),d.jsx("button",{type:"button",className:"icon-btn","aria-label":"Edit",title:"Edit (e)",onClick:i,children:d.jsx(f1,{size:14})}),d.jsx("button",{type:"button",className:"icon-btn icon-btn-danger","aria-label":"Delete",title:"Delete",onClick:l,children:d.jsx(g1,{size:14})}),d.jsx("button",{type:"button",className:"icon-btn","aria-label":"Move right",title:"Move right",onClick:()=>r(1),children:d.jsx(Gy,{size:14})})]})]})]})}function Ar(e,t,n,r,i){let l=null,o=null,s=null,a=null,u=null;const f=async()=>{var g;const c=(l==null?void 0:l.value.trim())||"";if(!c){t.warning("Title is required."),l==null||l.focus();return}const p=(o==null?void 0:o.value.trim())||"",h=((g=a==null?void 0:a.querySelector('input[name="task-priority"]:checked'))==null?void 0:g.value)||"normal",m=(s==null?void 0:s.value.trim())||"",x=m?m.split(",").map(y=>y.trim()).filter(Boolean):[],C=(u==null?void 0:u.value)||r;try{n?(await oe.put(`/tasks/${encodeURIComponent(n.id)}`,{title:c,description:p,tags:x,priority:h,status:C}),t.success("Task updated.",1500)):(await oe.post("/tasks",{title:c,description:p,status:C,tags:x,priority:h}),t.success("Task created.",1500)),e.close(),await i()}catch(y){t.error(`Save failed: ${y.message}`)}};e.open({title:n?"Edit task":"New task",width:520,children:d.jsxs("div",{className:"task-form",children:[d.jsx("label",{className:"field-label",htmlFor:"task-title",children:"Title *"}),d.jsx("input",{ref:c=>{l=c},id:"task-title",className:"input",type:"text",maxLength:200,placeholder:"What needs to be done?",defaultValue:(n==null?void 0:n.title)||"",autoFocus:!0}),d.jsx("label",{className:"field-label",htmlFor:"task-desc",children:"Description"}),d.jsx("textarea",{ref:c=>{o=c},id:"task-desc",className:"textarea",rows:3,placeholder:"Markdown supported…",defaultValue:(n==null?void 0:n.description)||""}),d.jsxs("div",{className:"task-form-row",children:[d.jsxs("div",{className:"task-form-field",children:[d.jsx("label",{className:"field-label",htmlFor:"task-status",children:"Status"}),d.jsx("select",{ref:c=>{u=c},id:"task-status",className:"select",defaultValue:(n==null?void 0:n.status)||r,children:Zr.map(c=>d.jsx("option",{value:c.id,children:c.label},c.id))})]}),d.jsxs("div",{className:"task-form-field",children:[d.jsx("label",{className:"field-label",children:"Priority"}),d.jsx("div",{className:"radio-row",ref:c=>{a=c},children:U2.map(c=>d.jsxs("label",{className:"radio-label",children:[d.jsx("input",{type:"radio",name:"task-priority",value:c,defaultChecked:((n==null?void 0:n.priority)||"normal")===c}),d.jsx("span",{className:"capitalize",children:c})]},c))})]})]}),d.jsx("label",{className:"field-label",htmlFor:"task-tags",children:"Tags"}),d.jsx("input",{ref:c=>{s=c},id:"task-tags",className:"input",type:"text",placeholder:"comma-separated, e.g. bug, frontend",defaultValue:((n==null?void 0:n.tags)||[]).join(", ")})]}),footer:d.jsxs("div",{className:"modal-footer-actions",children:[d.jsx(J,{variant:"ghost",onClick:()=>e.close(),children:"Cancel"}),d.jsx(J,{variant:"primary",onClick:f,children:n?"Save":"Create"})]})})}function Q2(e){const t=[],n=/("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b)|(\bnull\b)|([{}\[\],])|(\s+)/g;let r;for(;(r=n.exec(e))!==null;)r[1]!==void 0?(t.push({kind:r[2]?"key":"string",value:r[1]}),r[2]&&t.push({kind:"punct",value:r[2]})):r[3]!==void 0?t.push({kind:"number",value:r[3]}):r[4]!==void 0?t.push({kind:"boolean",value:r[4]}):r[5]!==void 0?t.push({kind:"null",value:r[5]}):r[6]!==void 0?t.push({kind:"punct",value:r[6]}):r[7]!==void 0&&t.push({kind:"space",value:r[7]});return t}const q2={key:"var(--syntax-key)",string:"var(--syntax-string)",number:"var(--syntax-number)",boolean:"var(--syntax-boolean)",null:"var(--syntax-null)",punct:void 0,space:void 0};function Y2({value:e}){const t=JSON.stringify(e,null,2);if(t===void 0)return null;const n=Q2(t);return d.jsx(d.Fragment,{children:n.map((r,i)=>{const l=q2[r.kind];return l?d.jsx("span",{style:{color:l},children:r.value},i):d.jsx(I.Fragment,{children:r.value},i)})})}function X2({snapshot:e}){const t=Vt(),n=e.config,[r,i]=I.useState((n==null?void 0:n.raw)||(n!=null&&n.data?JSON.stringify(n.data,null,2):"")),[l,o]=I.useState({raw:(n==null?void 0:n.raw)||"",data:(n==null?void 0:n.data)??null,error:null}),[s,a]=I.useState(!1),[u,f]=I.useState(!1),[c,p]=I.useState((n==null?void 0:n.path)||""),[h,m]=I.useState(!1),x=I.useRef(null),C=I.useMemo(()=>Mc(r),[r]),g=async()=>{try{const N=await oe.post("/config/reload"),P=N.raw||(N.data?JSON.stringify(N.data,null,2):"");i(P),o({raw:P,data:N.data??null,error:null}),a(!1),p(N.path||""),t.info("Config reloaded.",1500)}catch(N){t.error(`Reload failed: ${N.message}`)}},y=N=>{o(P=>{const R={raw:N,data:P.data,error:null};try{R.data=JSON.parse(N),R.error=null}catch(E){R.data=null,R.error=E.message}return R})},v=I.useMemo(()=>x1(N=>{a(Mc(N)!==C)},100),[C]),j=N=>{const P=N.target.value;y(P),v(P)};I.useEffect(()=>{if(!s&&!h)return;const N=P=>{s&&(P.preventDefault(),P.returnValue="")};return window.addEventListener("beforeunload",N),()=>window.removeEventListener("beforeunload",N)},[s,h]);const z=async()=>{if(!(!l.data||l.error||u)){f(!0);try{const N=await oe.put("/config",l.data),P=N.raw||JSON.stringify(N.data,null,2);i(P),o({raw:P,data:N.data??null,error:null}),a(!1),t.success("Config saved.")}catch(N){t.error(`Save failed: ${N.message}`)}finally{f(!1)}}},w=!!l.data&&!l.error&&s&&!u;return d.jsxs("div",{className:"view view-config",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(eh,{size:18})," Config"]}),d.jsx("p",{className:"view-subtitle mono ellipsis",title:c,children:c})]}),d.jsxs("div",{className:"view-actions",children:[d.jsxs(J,{variant:"secondary",size:"sm",onClick:()=>{s?(m(!0),confirm("Discard unsaved changes and reload from disk?")&&g(),m(!1)):g()},children:[d.jsx(mn,{size:14})," Reload from disk"]}),d.jsxs(J,{variant:"primary",size:"sm",disabled:!w,onClick:z,children:[u?d.jsx("span",{className:"btn-spinner"}):d.jsx(Zp,{size:14}),u?"Saving…":"Save"]})]})]}),d.jsxs("div",{className:"config-grid",children:[d.jsxs(He,{children:[d.jsxs(ut,{children:[d.jsx(i1,{size:14})," JSON tree"]}),d.jsx(kt,{children:"Parsed from current editor content"}),d.jsx("div",{className:"json-tree",children:l.data!=null?d.jsx(Y2,{value:l.data}):d.jsx("span",{className:"muted",children:l.error?"Invalid JSON":"No data"})})]}),d.jsxs(He,{children:[d.jsx(ut,{children:"Raw JSON"}),d.jsx(kt,{children:l.error?d.jsx("span",{className:"text-error",children:l.error}):d.jsx("span",{className:"muted",children:"Live validation as you type"})}),d.jsx("textarea",{ref:x,className:Ce("textarea config-textarea",l.error&&"invalid"),spellCheck:!1,value:l.raw,onChange:j})]})]}),d.jsxs(He,{className:"diff-card",children:[d.jsx(ut,{children:"Diff vs last save"}),d.jsx(kt,{children:l.raw===r?"No changes.":"Line-level changes from disk."}),d.jsx("div",{className:"diff-view mono",children:K2(r,l.raw)})]})]})}function K2(e,t){if(e===t)return null;const n=(e||"").split(`
283
- `),r=(t||"").split(`
284
- `),i=Math.max(n.length,r.length),l=[];for(let o=0;o<i;o++){const s=n[o]??"",a=r[o]??"";s===a?l.push(d.jsx("div",{className:"diff-line",children:s||" "},o)):(s&&l.push(d.jsxs("div",{className:"diff-line diff-line-removed",children:["- ",s]},`a${o}`)),a&&l.push(d.jsxs("div",{className:"diff-line diff-line-added",children:["+ ",a]},`b${o}`)))}return l}const G2=[{id:"dark",label:"Dark",Icon:c1},{id:"light",label:"Light",Icon:m1},{id:"system",label:"System",Icon:u1}];function J2({settings:e,refreshSnapshot:t}){const n=Vt(),[r,i]=I.useState(e),[l,o]=I.useState(!1),[s,a]=I.useState(!1);I.useEffect(()=>{i(e),o(!1)},[e]);const u=(m,x)=>{i(C=>({...C,[m]:x})),o(!0)},f=async()=>{a(!0);try{const m=await oe.put("/settings",r);i(m.data),o(!1),Xr(m.data.theme),n.success("Settings saved."),await t()}catch(m){n.error(`Save failed: ${m.message}`)}finally{a(!1)}},c=async()=>{try{const m=await oe.get("/settings");i(m.data),o(!1),Xr(m.data.theme),n.info("Settings reloaded.",1500)}catch(m){n.error(`Reload failed: ${m.message}`)}},p=r.about||{version:"2.6.0",homepage:"https://github.com/DrB0rk/BizarHarness",license:"MIT"},h=r.notifications||{onAgentComplete:!0,onPlanApproval:!0};return d.jsxs("div",{className:"view view-settings",children:[d.jsxs("header",{className:"view-header",children:[d.jsxs("div",{className:"view-header-text",children:[d.jsxs("h2",{className:"view-title",children:[d.jsx(th,{size:18})," Settings"]}),d.jsxs("p",{className:"view-subtitle",children:["Personal preferences. Changes are saved to"," ",d.jsx("code",{children:"~/.config/bizar/settings.json"}),"."]})]}),d.jsxs("div",{className:"view-actions",children:[d.jsxs(J,{variant:"secondary",size:"sm",onClick:c,children:[d.jsx(mn,{size:14})," Reload"]}),d.jsxs(J,{variant:"primary",size:"sm",disabled:!l||s,onClick:f,children:[s?d.jsx("span",{className:"btn-spinner"}):d.jsx(Zp,{size:14}),s?"Saving…":"Save"]})]})]}),d.jsxs("div",{className:"settings-grid",children:[d.jsxs(He,{children:[d.jsx(ut,{children:"General"}),d.jsx(kt,{children:"Theme, default agent, model override."}),d.jsxs("div",{className:"field",children:[d.jsx("label",{className:"field-label",children:"Theme"}),d.jsx("div",{className:"theme-row",children:G2.map(({id:m,label:x,Icon:C})=>{const g=r.theme===m;return d.jsxs("button",{type:"button",className:Ce("theme-card",g&&"theme-card-active"),onClick:()=>{u("theme",m),Xr(m)},children:[d.jsx(C,{size:16}),d.jsx("span",{className:"theme-card-label",children:x}),d.jsx("span",{className:Ce("theme-card-swatch",`theme-card-swatch-${m}`)})]},m)})}),d.jsx("span",{className:"field-help",children:"Dark is the default; Light is a low-contrast variant; System follows your OS."})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{className:"field-label",htmlFor:"set-default-agent",children:"Default agent"}),d.jsx("input",{id:"set-default-agent",className:"input",type:"text",placeholder:"e.g. odin",value:r.defaultAgent||"",onChange:m=>u("defaultAgent",m.target.value)}),d.jsx("span",{className:"field-help",children:"Agent used when none is specified."})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{className:"field-label",htmlFor:"set-default-model",children:"Model override"}),d.jsx("input",{id:"set-default-model",className:"input",type:"text",placeholder:"(leave empty to use provider default)",value:r.defaultModel||"",onChange:m=>u("defaultModel",m.target.value)})]})]}),d.jsxs(He,{children:[d.jsx(ut,{children:"Notifications"}),d.jsx(kt,{children:"Toast triggers inside the dashboard."}),d.jsxs("label",{className:"checkbox-row",children:[d.jsx("input",{type:"checkbox",checked:!!h.onAgentComplete,onChange:m=>i(x=>({...x,notifications:{...x.notifications||{onAgentComplete:!1,onPlanApproval:!1},onAgentComplete:m.target.checked}}))}),d.jsx("span",{children:"Notify when an agent invocation completes"})]}),d.jsxs("label",{className:"checkbox-row",children:[d.jsx("input",{type:"checkbox",checked:!!h.onPlanApproval,onChange:m=>i(x=>({...x,notifications:{...x.notifications||{onAgentComplete:!1,onPlanApproval:!1},onPlanApproval:m.target.checked}}))}),d.jsx("span",{children:"Notify when a plan needs approval"})]})]})]}),d.jsxs(He,{children:[d.jsxs(ut,{children:[d.jsx(Kp,{size:14})," About"]}),d.jsx(kt,{children:"Build metadata."}),d.jsxs("dl",{className:"about-table",children:[d.jsx("dt",{children:"Version"}),d.jsx("dd",{className:"mono",children:p.version}),d.jsx("dt",{children:"Homepage"}),d.jsx("dd",{children:d.jsx("a",{href:p.homepage,target:"_blank",rel:"noopener noreferrer",children:p.homepage})}),d.jsx("dt",{children:"License"}),d.jsx("dd",{children:p.license})]})]})]})}const Z2={overview:L1,chat:N2,agents:T2,plans:_2,projects:B2,tasks:H2,config:X2,settings:J2},eC="v2.6.0";function tC(){return d.jsx(j1,{children:d.jsx(S1,{children:d.jsx(nC,{})})})}function nC(){const[e,t]=I.useState("overview"),[n,r]=I.useState(null),[i,l]=I.useState(null),[o,s]=I.useState("connecting"),[a,u]=I.useState(null),f=I.useRef(null),c=Vt();I.useEffect(()=>{i!=null&&i.theme&&Xr(i.theme)},[i==null?void 0:i.theme]),I.useEffect(()=>{if((i==null?void 0:i.theme)!=="system")return;const m=window.matchMedia("(prefers-color-scheme: light)"),x=()=>Xr("system");return m.addEventListener("change",x),()=>m.removeEventListener("change",x)},[i==null?void 0:i.theme]),I.useEffect(()=>{let m=!1;return Promise.all([oe.get("/snapshot").catch(()=>null),oe.get("/settings").catch(()=>null)]).then(([x,C])=>{m||(x&&r(x),C!=null&&C.data&&l(C.data),!x&&!C&&u("Dashboard server unreachable."))}).catch(x=>{if(m)return;const C=(x==null?void 0:x.message)??"unknown error";u(C),c.error(`Failed to load: ${C}`)}),()=>{m=!0}},[c]),I.useEffect(()=>{const m=new P1;f.current=m;const x=m.onStatus(g=>s(g)),C=m.on(g=>{var y;if(g.type==="snapshot"&&"data"in g&&g.data)r(v=>({...v??{},...g.data}));else if(g.type==="change"){const v=g,j=((y=v.path)==null?void 0:y.split("/").pop())||v.path||"";c.info(`File changed: ${j}`,2500),oe.get("/snapshot").then(z=>r(w=>({...w??{},...z}))).catch(()=>{})}else if(g.type==="tasks:change"){const v=g;r(j=>{if(!j)return j;const z=(j.tasks||[]).map(N=>N.id===v.task.id?v.task:N),w=z.some(N=>N.id===v.task.id);return{...j,tasks:w?z:[v.task,...z]}})}else if(g.type==="tasks:delete"){const v=g;r(j=>j&&{...j,tasks:(j.tasks||[]).filter(z=>z.id!==v.id)})}else if(g.type==="settings:change"){const v=g;v.settings&&l(v.settings)}});return()=>{x(),C(),m.close()}},[c]),I.useEffect(()=>{const m={};Qs.forEach((C,g)=>{m[String(g+1)]=C.id});const x=C=>{var v,j,z;const g=(j=(v=C.target)==null?void 0:v.tagName)==null?void 0:j.toLowerCase();if(g==="input"||g==="textarea"||(z=C.target)!=null&&z.isContentEditable||C.metaKey||C.ctrlKey||C.altKey)return;const y=m[C.key];y&&(C.preventDefault(),t(y))};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[]);const p=Z2[e],h=I.useMemo(()=>async()=>{try{const m=await oe.get("/snapshot");r(x=>({...x??{},...m}))}catch(m){c.error(`Refresh failed: ${m.message}`)}},[c]);return d.jsxs("div",{className:"app",children:[d.jsx(w1,{activeTab:e,onTabChange:t,wsStatus:o,version:eC}),d.jsxs("main",{className:"content",children:[a&&d.jsxs("div",{className:"boot-error",children:[d.jsx("h2",{children:"Dashboard unavailable"}),d.jsx("p",{children:a}),d.jsxs("p",{className:"boot-error-hint",children:["Make sure the Bizar dashboard server is running. Try"," ",d.jsx("code",{children:"bizar dashboard start"})," in your terminal."]})]}),!a&&(!n||!i)&&d.jsxs("div",{className:"loading",children:[d.jsx(Ut,{size:"lg"}),d.jsx("p",{children:"Loading Bizar…"})]}),n&&i&&p&&d.jsx(p,{snapshot:n,settings:i,activeTab:e,setActiveTab:t,refreshSnapshot:h})]})]})}const cm=document.getElementById("root");if(!cm)throw new Error("Root element #root not found");Yp(cm).render(d.jsx(I.StrictMode,{children:d.jsx(tC,{})}));
285
- //# sourceMappingURL=index-CO3c8O32.js.map