@coralai/sps-cli 0.47.0 → 0.48.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.
- package/dist/console-assets/assets/index-BRU_jlI1.css +10 -0
- package/dist/console-assets/assets/index-Bd54PfFr.js +338 -0
- package/dist/console-assets/index.html +2 -2
- package/dist/console-server/routes/chat.d.ts +2 -0
- package/dist/console-server/routes/chat.d.ts.map +1 -1
- package/dist/console-server/routes/chat.js +99 -12
- package/dist/console-server/routes/chat.js.map +1 -1
- package/dist/console-server/routes/logs.d.ts.map +1 -1
- package/dist/console-server/routes/logs.js +13 -1
- package/dist/console-server/routes/logs.js.map +1 -1
- package/dist/console-server/routes/system.d.ts.map +1 -1
- package/dist/console-server/routes/system.js +164 -2
- package/dist/console-server/routes/system.js.map +1 -1
- package/dist/console-server/routes/workers.d.ts.map +1 -1
- package/dist/console-server/routes/workers.js +71 -1
- package/dist/console-server/routes/workers.js.map +1 -1
- package/dist/daemon/daemonClient.d.ts +2 -0
- package/dist/daemon/daemonClient.d.ts.map +1 -1
- package/dist/daemon/daemonClient.js +4 -0
- package/dist/daemon/daemonClient.js.map +1 -1
- package/dist/daemon/sessionDaemon.d.ts +1 -1
- package/dist/daemon/sessionDaemon.d.ts.map +1 -1
- package/dist/daemon/sessionDaemon.js +4 -0
- package/dist/daemon/sessionDaemon.js.map +1 -1
- package/dist/interfaces/ACPClient.d.ts +5 -0
- package/dist/interfaces/ACPClient.d.ts.map +1 -1
- package/dist/interfaces/AgentRuntime.d.ts +5 -0
- package/dist/interfaces/AgentRuntime.d.ts.map +1 -1
- package/dist/providers/ACPWorkerRuntime.d.ts +1 -0
- package/dist/providers/ACPWorkerRuntime.d.ts.map +1 -1
- package/dist/providers/ACPWorkerRuntime.js +5 -0
- package/dist/providers/ACPWorkerRuntime.js.map +1 -1
- package/dist/providers/LocalACPClient.d.ts +1 -0
- package/dist/providers/LocalACPClient.d.ts.map +1 -1
- package/dist/providers/LocalACPClient.js +3 -0
- package/dist/providers/LocalACPClient.js.map +1 -1
- package/dist/providers/adapters/AcpSdkAdapter.d.ts +1 -0
- package/dist/providers/adapters/AcpSdkAdapter.d.ts.map +1 -1
- package/dist/providers/adapters/AcpSdkAdapter.js +14 -0
- package/dist/providers/adapters/AcpSdkAdapter.js.map +1 -1
- package/package.json +1 -1
- package/dist/console-assets/assets/index-Bk5yazEA.js +0 -317
- package/dist/console-assets/assets/index-DWGACIx4.css +0 -10
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
var uS=Object.defineProperty;var Xb=e=>{throw TypeError(e)};var fS=(e,a,i)=>a in e?uS(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i;var Zb=(e,a,i)=>fS(e,typeof a!="symbol"?a+"":a,i),Sd=(e,a,i)=>a.has(e)||Xb("Cannot "+i);var M=(e,a,i)=>(Sd(e,a,"read from private field"),i?i.call(e):a.get(e)),we=(e,a,i)=>a.has(e)?Xb("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(e):a.set(e,i),me=(e,a,i,l)=>(Sd(e,a,"write to private field"),l?l.call(e,i):a.set(e,i),i),Ie=(e,a,i)=>(Sd(e,a,"access private method"),i);var Ic=(e,a,i,l)=>({set _(o){me(e,a,o,i)},get _(){return M(e,a,l)}});(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wd={exports:{}},$s={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Wb;function dS(){if(Wb)return $s;Wb=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:e,type:l,key:u,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=i,$s.jsxs=i,$s}var Jb;function hS(){return Jb||(Jb=1,wd.exports=dS()),wd.exports}var y=hS(),Nd={exports:{}},De={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ey;function mS(){if(ey)return De;ey=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function N(O,Q,k){this.props=O,this.context=Q,this.refs=T,this.updater=k||S}N.prototype.isReactComponent={},N.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Q,"setState")},N.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function I(){}I.prototype=N.prototype;function D(O,Q,k){this.props=O,this.context=Q,this.refs=T,this.updater=k||S}var H=D.prototype=new I;H.constructor=D,w(H,N.prototype),H.isPureReactComponent=!0;var $=Array.isArray;function z(){}var G={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function V(O,Q,k){var de=k.ref;return{$$typeof:e,type:O,key:Q,ref:de!==void 0?de:null,props:k}}function A(O,Q){return V(O.type,Q,O.props)}function ae(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function ie(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(k){return Q[k]})}var ge=/\/+/g;function le(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?ie(""+O.key):Q.toString(36)}function te(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(z,z):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function F(O,Q,k,de,Ne){var xe=typeof O;(xe==="undefined"||xe==="boolean")&&(O=null);var Be=!1;if(O===null)Be=!0;else switch(xe){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(O.$$typeof){case e:case a:Be=!0;break;case b:return Be=O._init,F(Be(O._payload),Q,k,de,Ne)}}if(Be)return Ne=Ne(O),Be=de===""?"."+le(O,0):de,$(Ne)?(k="",Be!=null&&(k=Be.replace(ge,"$&/")+"/"),F(Ne,Q,k,"",function($t){return $t})):Ne!=null&&(ae(Ne)&&(Ne=A(Ne,k+(Ne.key==null||O&&O.key===Ne.key?"":(""+Ne.key).replace(ge,"$&/")+"/")+Be)),Q.push(Ne)),1;Be=0;var rt=de===""?".":de+":";if($(O))for(var nt=0;nt<O.length;nt++)de=O[nt],xe=rt+le(de,nt),Be+=F(de,Q,k,xe,Ne);else if(nt=x(O),typeof nt=="function")for(O=nt.call(O),nt=0;!(de=O.next()).done;)de=de.value,xe=rt+le(de,nt++),Be+=F(de,Q,k,xe,Ne);else if(xe==="object"){if(typeof O.then=="function")return F(te(O),Q,k,de,Ne);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Be}function re(O,Q,k){if(O==null)return O;var de=[],Ne=0;return F(O,de,"","",function(xe){return Q.call(k,xe,Ne++)}),de}function oe(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(k){(O._status===0||O._status===-1)&&(O._status=1,O._result=k)},function(k){(O._status===0||O._status===-1)&&(O._status=2,O._result=k)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var _e=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},C={map:re,forEach:function(O,Q,k){re(O,function(){Q.apply(this,arguments)},k)},count:function(O){var Q=0;return re(O,function(){Q++}),Q},toArray:function(O){return re(O,function(Q){return Q})||[]},only:function(O){if(!ae(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return De.Activity=g,De.Children=C,De.Component=N,De.Fragment=i,De.Profiler=o,De.PureComponent=D,De.StrictMode=l,De.Suspense=m,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,De.__COMPILER_RUNTIME={__proto__:null,c:function(O){return G.H.useMemoCache(O)}},De.cache=function(O){return function(){return O.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(O,Q,k){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var de=w({},O.props),Ne=O.key;if(Q!=null)for(xe in Q.key!==void 0&&(Ne=""+Q.key),Q)!X.call(Q,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Q.ref===void 0||(de[xe]=Q[xe]);var xe=arguments.length-2;if(xe===1)de.children=k;else if(1<xe){for(var Be=Array(xe),rt=0;rt<xe;rt++)Be[rt]=arguments[rt+2];de.children=Be}return V(O.type,Ne,de)},De.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},De.createElement=function(O,Q,k){var de,Ne={},xe=null;if(Q!=null)for(de in Q.key!==void 0&&(xe=""+Q.key),Q)X.call(Q,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(Ne[de]=Q[de]);var Be=arguments.length-2;if(Be===1)Ne.children=k;else if(1<Be){for(var rt=Array(Be),nt=0;nt<Be;nt++)rt[nt]=arguments[nt+2];Ne.children=rt}if(O&&O.defaultProps)for(de in Be=O.defaultProps,Be)Ne[de]===void 0&&(Ne[de]=Be[de]);return V(O,xe,Ne)},De.createRef=function(){return{current:null}},De.forwardRef=function(O){return{$$typeof:d,render:O}},De.isValidElement=ae,De.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:oe}},De.memo=function(O,Q){return{$$typeof:h,type:O,compare:Q===void 0?null:Q}},De.startTransition=function(O){var Q=G.T,k={};G.T=k;try{var de=O(),Ne=G.S;Ne!==null&&Ne(k,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(z,_e)}catch(xe){_e(xe)}finally{Q!==null&&k.types!==null&&(Q.types=k.types),G.T=Q}},De.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},De.use=function(O){return G.H.use(O)},De.useActionState=function(O,Q,k){return G.H.useActionState(O,Q,k)},De.useCallback=function(O,Q){return G.H.useCallback(O,Q)},De.useContext=function(O){return G.H.useContext(O)},De.useDebugValue=function(){},De.useDeferredValue=function(O,Q){return G.H.useDeferredValue(O,Q)},De.useEffect=function(O,Q){return G.H.useEffect(O,Q)},De.useEffectEvent=function(O){return G.H.useEffectEvent(O)},De.useId=function(){return G.H.useId()},De.useImperativeHandle=function(O,Q,k){return G.H.useImperativeHandle(O,Q,k)},De.useInsertionEffect=function(O,Q){return G.H.useInsertionEffect(O,Q)},De.useLayoutEffect=function(O,Q){return G.H.useLayoutEffect(O,Q)},De.useMemo=function(O,Q){return G.H.useMemo(O,Q)},De.useOptimistic=function(O,Q){return G.H.useOptimistic(O,Q)},De.useReducer=function(O,Q,k){return G.H.useReducer(O,Q,k)},De.useRef=function(O){return G.H.useRef(O)},De.useState=function(O){return G.H.useState(O)},De.useSyncExternalStore=function(O,Q,k){return G.H.useSyncExternalStore(O,Q,k)},De.useTransition=function(){return G.H.useTransition()},De.version="19.2.5",De}var ty;function Oh(){return ty||(ty=1,Nd.exports=mS()),Nd.exports}var j=Oh(),kd={exports:{}},Ks={},Td={exports:{}},Cd={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var ny;function pS(){return ny||(ny=1,(function(e){function a(F,re){var oe=F.length;F.push(re);e:for(;0<oe;){var _e=oe-1>>>1,C=F[_e];if(0<o(C,re))F[_e]=re,F[oe]=C,oe=_e;else break e}}function i(F){return F.length===0?null:F[0]}function l(F){if(F.length===0)return null;var re=F[0],oe=F.pop();if(oe!==re){F[0]=oe;e:for(var _e=0,C=F.length,O=C>>>1;_e<O;){var Q=2*(_e+1)-1,k=F[Q],de=Q+1,Ne=F[de];if(0>o(k,oe))de<C&&0>o(Ne,k)?(F[_e]=Ne,F[de]=oe,_e=de):(F[_e]=k,F[Q]=oe,_e=Q);else if(de<C&&0>o(Ne,oe))F[_e]=Ne,F[de]=oe,_e=de;else break e}}return re}function o(F,re){var oe=F.sortIndex-re.sortIndex;return oe!==0?oe:F.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var m=[],h=[],b=1,g=null,E=3,x=!1,S=!1,w=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function H(F){for(var re=i(h);re!==null;){if(re.callback===null)l(h);else if(re.startTime<=F)l(h),re.sortIndex=re.expirationTime,a(m,re);else break;re=i(h)}}function $(F){if(w=!1,H(F),!S)if(i(m)!==null)S=!0,z||(z=!0,ie());else{var re=i(h);re!==null&&te($,re.startTime-F)}}var z=!1,G=-1,X=5,V=-1;function A(){return T?!0:!(e.unstable_now()-V<X)}function ae(){if(T=!1,z){var F=e.unstable_now();V=F;var re=!0;try{e:{S=!1,w&&(w=!1,I(G),G=-1),x=!0;var oe=E;try{t:{for(H(F),g=i(m);g!==null&&!(g.expirationTime>F&&A());){var _e=g.callback;if(typeof _e=="function"){g.callback=null,E=g.priorityLevel;var C=_e(g.expirationTime<=F);if(F=e.unstable_now(),typeof C=="function"){g.callback=C,H(F),re=!0;break t}g===i(m)&&l(m),H(F)}else l(m);g=i(m)}if(g!==null)re=!0;else{var O=i(h);O!==null&&te($,O.startTime-F),re=!1}}break e}finally{g=null,E=oe,x=!1}re=void 0}}finally{re?ie():z=!1}}}var ie;if(typeof D=="function")ie=function(){D(ae)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,le=ge.port2;ge.port1.onmessage=ae,ie=function(){le.postMessage(null)}}else ie=function(){N(ae,0)};function te(F,re){G=N(function(){F(e.unstable_now())},re)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(F){switch(E){case 1:case 2:case 3:var re=3;break;default:re=E}var oe=E;E=re;try{return F()}finally{E=oe}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(F,re){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var oe=E;E=F;try{return re()}finally{E=oe}},e.unstable_scheduleCallback=function(F,re,oe){var _e=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?_e+oe:_e):oe=_e,F){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=oe+C,F={id:b++,callback:re,priorityLevel:F,startTime:oe,expirationTime:C,sortIndex:-1},oe>_e?(F.sortIndex=oe,a(h,F),i(m)===null&&F===i(h)&&(w?(I(G),G=-1):w=!0,te($,oe-_e))):(F.sortIndex=C,a(m,F),S||x||(S=!0,z||(z=!0,ie()))),F},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(F){var re=E;return function(){var oe=E;E=re;try{return F.apply(this,arguments)}finally{E=oe}}}})(Cd)),Cd}var ay;function gS(){return ay||(ay=1,Td.exports=pS()),Td.exports}var Ad={exports:{}},ln={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var iy;function bS(){if(iy)return ln;iy=1;var e=Oh();function a(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,h,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:h,implementation:b}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ln.createPortal=function(m,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return c(m,h,null,b)},ln.flushSync=function(m){var h=u.T,b=l.p;try{if(u.T=null,l.p=2,m)return m()}finally{u.T=h,l.p=b,l.d.f()}},ln.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(m,h))},ln.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},ln.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var b=h.as,g=d(b,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?l.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:x}):b==="script"&&l.d.X(m,{crossOrigin:g,integrity:E,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ln.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=d(h.as,h.crossOrigin);l.d.M(m,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(m)},ln.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,g=d(b,h.crossOrigin);l.d.L(m,b,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ln.preloadModule=function(m,h){if(typeof m=="string")if(h){var b=d(h.as,h.crossOrigin);l.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(m)},ln.requestFormReset=function(m){l.d.r(m)},ln.unstable_batchedUpdates=function(m,h){return m(h)},ln.useFormState=function(m,h,b){return u.H.useFormState(m,h,b)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.5",ln}var ry;function yS(){if(ry)return Ad.exports;ry=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),Ad.exports=bS(),Ad.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var ly;function xS(){if(ly)return Ks;ly=1;var e=gS(),a=Oh(),i=yS();function l(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var n=t,r=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(r=n.return),t=n.return;while(t)}return n.tag===3?r:null}function u(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function d(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function m(t){if(c(t)!==t)throw Error(l(188))}function h(t){var n=t.alternate;if(!n){if(n=c(t),n===null)throw Error(l(188));return n!==t?null:t}for(var r=t,s=n;;){var f=r.return;if(f===null)break;var p=f.alternate;if(p===null){if(s=f.return,s!==null){r=s;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===r)return m(f),t;if(p===s)return m(f),n;p=p.sibling}throw Error(l(188))}if(r.return!==s.return)r=f,s=p;else{for(var v=!1,_=f.child;_;){if(_===r){v=!0,r=f,s=p;break}if(_===s){v=!0,s=f,r=p;break}_=_.sibling}if(!v){for(_=p.child;_;){if(_===r){v=!0,r=p,s=f;break}if(_===s){v=!0,s=p,r=f;break}_=_.sibling}if(!v)throw Error(l(189))}}if(r.alternate!==s)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?t:n}function b(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=b(t),n!==null)return n;t=t.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),D=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function ie(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ge?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case $:return"Suspense";case z:return"SuspenseList";case V:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case D:return t.displayName||"Context";case I:return(t._context.displayName||"Context")+".Consumer";case H:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return n=t.displayName||null,n!==null?n:le(t.type)||"Memo";case X:n=t._payload,t=t._init;try{return le(t(n))}catch{}}return null}var te=Array.isArray,F=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},_e=[],C=-1;function O(t){return{current:t}}function Q(t){0>C||(t.current=_e[C],_e[C]=null,C--)}function k(t,n){C++,_e[C]=t.current,t.current=n}var de=O(null),Ne=O(null),xe=O(null),Be=O(null);function rt(t,n){switch(k(xe,n),k(Ne,t),k(de,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?xb(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=xb(n),t=vb(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(de),k(de,t)}function nt(){Q(de),Q(Ne),Q(xe)}function $t(t){t.memoizedState!==null&&k(Be,t);var n=de.current,r=vb(n,t.type);n!==r&&(k(Ne,t),k(de,r))}function Dn(t){Ne.current===t&&(Q(de),Q(Ne)),Be.current===t&&(Q(Be),Fs._currentValue=oe)}var Da,ui;function Ln(t){if(Da===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Da=n&&n[1]||"",ui=-1<r.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Da+t+ui}var xa=!1;function Ve(t,n){if(!t||xa)return"";xa=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Y){var K=Y}Reflect.construct(t,[],ne)}else{try{ne.call()}catch(Y){K=Y}t.call(ne.prototype)}}else{try{throw Error()}catch(Y){K=Y}(ne=t())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(Y){if(Y&&K&&typeof Y.stack=="string")return[Y.stack,K.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),v=p[0],_=p[1];if(v&&_){var R=v.split(`
|
|
44
|
-
`),P=_.split(`
|
|
45
|
-
`);for(f=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;if(s===R.length||f===P.length)for(s=R.length-1,f=P.length-1;1<=s&&0<=f&&R[s]!==P[f];)f--;for(;1<=s&&0<=f;s--,f--)if(R[s]!==P[f]){if(s!==1||f!==1)do if(s--,f--,0>f||R[s]!==P[f]){var W=`
|
|
46
|
-
`+R[s].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),W}while(1<=s&&0<=f);break}}}finally{xa=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?Ln(r):""}function ca(t,n){switch(t.tag){case 26:case 27:case 5:return Ln(t.type);case 16:return Ln("Lazy");case 13:return t.child!==n&&n!==null?Ln("Suspense Fallback"):Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 15:return Ve(t.type,!1);case 11:return Ve(t.type.render,!1);case 1:return Ve(t.type,!0);case 31:return Ln("Activity");default:return""}}function Qn(t){try{var n="",r=null;do n+=ca(t,r),r=t,t=t.return;while(t);return n}catch(s){return`
|
|
47
|
-
Error generating stack: `+s.message+`
|
|
48
|
-
`+s.stack}}var va=Object.prototype.hasOwnProperty,La=e.unstable_scheduleCallback,Ji=e.unstable_cancelCallback,Zl=e.unstable_shouldYield,Br=e.unstable_requestPaint,kt=e.unstable_now,Hr=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,Ce=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Je=e.unstable_IdlePriority,fn=e.log,ua=e.unstable_setDisableYieldValue,Xt=null,Ct=null;function nn(t){if(typeof fn=="function"&&ua(t),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Xt,t)}catch{}}var lt=Math.clz32?Math.clz32:Eo,Ea=Math.log,dn=Math.LN2;function Eo(t){return t>>>=0,t===0?32:31-(Ea(t)/dn|0)|0}var er=256,Fr=262144,tr=4194304;function xn(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function L(t,n,r){var s=t.pendingLanes;if(s===0)return 0;var f=0,p=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var _=s&134217727;return _!==0?(s=_&~p,s!==0?f=xn(s):(v&=_,v!==0?f=xn(v):r||(r=_&~t,r!==0&&(f=xn(r))))):(_=s&~p,_!==0?f=xn(_):v!==0?f=xn(v):r||(r=s&~t,r!==0&&(f=xn(r)))),f===0?0:n!==0&&n!==f&&(n&p)===0&&(p=f&-f,r=n&-n,p>=r||p===32&&(r&4194048)!==0)?n:f}function J(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function he(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Me(){var t=tr;return tr<<=1,(tr&62914560)===0&&(tr=4194304),t}function vt(t){for(var n=[],r=0;31>r;r++)n.push(t);return n}function pt(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ye(t,n,r,s,f,p){var v=t.pendingLanes;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=r,t.entangledLanes&=r,t.errorRecoveryDisabledLanes&=r,t.shellSuspendCounter=0;var _=t.entanglements,R=t.expirationTimes,P=t.hiddenUpdates;for(r=v&~r;0<r;){var W=31-lt(r),ne=1<<W;_[W]=0,R[W]=-1;var K=P[W];if(K!==null)for(P[W]=null,W=0;W<K.length;W++){var Y=K[W];Y!==null&&(Y.lane&=-536870913)}r&=~ne}s!==0&&pe(t,s,0),p!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=p&~(v&~n))}function pe(t,n,r){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-lt(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|r&261930}function Oe(t,n){var r=t.entangledLanes|=n;for(t=t.entanglements;r;){var s=31-lt(r),f=1<<s;f&n|t[s]&n&&(t[s]|=n),r&=~f}}function Mt(t,n){var r=n&-n;return r=(r&42)!==0?1:St(r),(r&(t.suspendedLanes|n))!==0?0:r}function St(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function za(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qr(){var t=re.p;return t!==0?t:(t=window.event,t===void 0?32:Pb(t.type))}function Pr(t,n){var r=re.p;try{return re.p=t,n()}finally{re.p=r}}var _a=Math.random().toString(36).slice(2),Dt="__reactFiber$"+_a,an="__reactProps$"+_a,fi="__reactContainer$"+_a,Wl="__reactEvents$"+_a,_o="__reactListeners$"+_a,Gr="__reactHandles$"+_a,So="__reactResources$"+_a,nr="__reactMarker$"+_a;function Jl(t){delete t[Dt],delete t[an],delete t[Wl],delete t[_o],delete t[Gr]}function hn(t){var n=t[Dt];if(n)return n;for(var r=t.parentNode;r;){if(n=r[fi]||r[Dt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(t=Tb(t);t!==null;){if(r=t[Dt])return r;t=Tb(t)}return n}t=r,r=t.parentNode}return null}function ja(t){if(t=t[Dt]||t[fi]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function di(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function hi(t){var n=t[So];return n||(n=t[So]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function It(t){t[nr]=!0}var wo=new Set,ar={};function Ia(t,n){se(t,n),se(t+"Capture",n)}function se(t,n){for(ar[t]=n,t=0;t<n.length;t++)wo.add(n[t])}var Se=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qe={},st={};function Lt(t){return va.call(st,t)?!0:va.call(qe,t)?!1:Se.test(t)?st[t]=!0:(qe[t]=!0,!1)}function rn(t,n,r){if(Lt(n))if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+r)}}function zn(t,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+r)}}function vn(t,n,r,s){if(s===null)t.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttributeNS(n,r,""+s)}}function yt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jn(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function No(t,n,r){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(v){r=""+v,p.call(this,v)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(v){r=""+v},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function $r(t){if(!t._valueTracker){var n=jn(t)?"checked":"value";t._valueTracker=No(t,n,""+t[n])}}function es(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var r=n.getValue(),s="";return t&&(s=jn(t)?t.checked?"true":"false":t.value),t=s,t!==r?(n.setValue(t),!0):!1}function Kr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Eu=/[\n"\\]/g;function En(t){return t.replace(Eu,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ts(t,n,r,s,f,p,v,_){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),n!=null?v==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+yt(n)):t.value!==""+yt(n)&&(t.value=""+yt(n)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),n!=null?Yr(t,v,yt(n)):r!=null?Yr(t,v,yt(r)):s!=null&&t.removeAttribute("value"),f==null&&p!=null&&(t.defaultChecked=!!p),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+yt(_):t.removeAttribute("name")}function ir(t,n,r,s,f,p,v,_){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||r!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){$r(t);return}r=r!=null?""+yt(r):"",n=n!=null?""+yt(n):r,_||n===t.value||(t.value=n),t.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=_?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),$r(t)}function Yr(t,n,r){n==="number"&&Kr(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function Zt(t,n,r,s){if(t=t.options,n){n={};for(var f=0;f<r.length;f++)n["$"+r[f]]=!0;for(r=0;r<t.length;r++)f=n.hasOwnProperty("$"+t[r].value),t[r].selected!==f&&(t[r].selected=f),f&&s&&(t[r].defaultSelected=!0)}else{for(r=""+yt(r),n=null,f=0;f<t.length;f++){if(t[f].value===r){t[f].selected=!0,s&&(t[f].defaultSelected=!0);return}n!==null||t[f].disabled||(n=t[f])}n!==null&&(n.selected=!0)}}function ko(t,n,r){if(n!=null&&(n=""+yt(n),n!==t.value&&(t.value=n),r==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=r!=null?""+yt(r):""}function Qr(t,n,r,s){if(n==null){if(s!=null){if(r!=null)throw Error(l(92));if(te(s)){if(1<s.length)throw Error(l(93));s=s[0]}r=s}r==null&&(r=""),n=r}r=yt(n),t.defaultValue=r,s=t.textContent,s===r&&s!==""&&s!==null&&(t.value=s),$r(t)}function Re(t,n){if(n){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=n;return}}t.textContent=n}var To=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ut(t,n,r){var s=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,r):typeof r!="number"||r===0||To.has(n)?n==="float"?t.cssFloat=r:t[n]=(""+r).trim():t[n]=r+"px"}function ot(t,n,r){if(n!=null&&typeof n!="object")throw Error(l(62));if(t=t.style,r!=null){for(var s in r)!r.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&r[f]!==s&&Ut(t,f,s)}else for(var p in n)n.hasOwnProperty(p)&&Ut(t,p,n[p])}function mi(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Ua=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ns=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function pi(t){return ns.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fe(){}var ve=null;function Le(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ke=null,Tt=null;function Vn(t){var n=ja(t);if(n&&(t=n.stateNode)){var r=t[an]||null;e:switch(t=n.stateNode,n.type){case"input":if(ts(t,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+En(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var s=r[n];if(s!==t&&s.form===t.form){var f=s[an]||null;if(!f)throw Error(l(90));ts(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<r.length;n++)s=r[n],s.form===t.form&&es(s)}break e;case"textarea":ko(t,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&Zt(t,!!r.multiple,n,!1)}}}var as=!1;function Co(t,n,r){if(as)return t(n,r);as=!0;try{var s=t(n);return s}finally{if(as=!1,(Ke!==null||Tt!==null)&&(pc(),Ke&&(n=Ke,t=Tt,Tt=Ke=null,Vn(n),t)))for(n=0;n<t.length;n++)Vn(t[n])}}function is(t,n){var r=t.stateNode;if(r===null)return null;var s=r[an]||null;if(s===null)return null;r=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(l(231,n,typeof r));return r}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=!1;if(Ba)try{var rs={};Object.defineProperty(rs,"passive",{get:function(){_u=!0}}),window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{_u=!1}var gi=null,Su=null,Ao=null;function vm(){if(Ao)return Ao;var t,n=Su,r=n.length,s,f="value"in gi?gi.value:gi.textContent,p=f.length;for(t=0;t<r&&n[t]===f[t];t++);var v=r-t;for(s=1;s<=v&&n[r-s]===f[p-s];s++);return Ao=f.slice(t,1<s?1-s:void 0)}function Ro(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Oo(){return!0}function Em(){return!1}function _n(t){function n(r,s,f,p,v){this._reactName=r,this._targetInst=f,this.type=s,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(r=t[_],this[_]=r?r(p):p[_]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Oo:Em,this.isPropagationStopped=Em,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Oo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Oo)},persist:function(){},isPersistent:Oo}),n}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mo=_n(rr),ls=g({},rr,{view:0,detail:0}),o0=_n(ls),wu,Nu,ss,Do=g({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ss&&(ss&&t.type==="mousemove"?(wu=t.screenX-ss.screenX,Nu=t.screenY-ss.screenY):Nu=wu=0,ss=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Nu}}),_m=_n(Do),c0=g({},Do,{dataTransfer:0}),u0=_n(c0),f0=g({},ls,{relatedTarget:0}),ku=_n(f0),d0=g({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),h0=_n(d0),m0=g({},rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),p0=_n(m0),g0=g({},rr,{data:0}),Sm=_n(g0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y0={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"},x0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v0(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=x0[t])?!!n[t]:!1}function Tu(){return v0}var E0=g({},ls,{key:function(t){if(t.key){var n=b0[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Ro(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?y0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tu,charCode:function(t){return t.type==="keypress"?Ro(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ro(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_0=_n(E0),S0=g({},Do,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wm=_n(S0),w0=g({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tu}),N0=_n(w0),k0=g({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),T0=_n(k0),C0=g({},Do,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),A0=_n(C0),R0=g({},rr,{newState:0,oldState:0}),O0=_n(R0),M0=[9,13,27,32],Cu=Ba&&"CompositionEvent"in window,os=null;Ba&&"documentMode"in document&&(os=document.documentMode);var D0=Ba&&"TextEvent"in window&&!os,Nm=Ba&&(!Cu||os&&8<os&&11>=os),km=" ",Tm=!1;function Cm(t,n){switch(t){case"keyup":return M0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Am(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vr=!1;function L0(t,n){switch(t){case"compositionend":return Am(n);case"keypress":return n.which!==32?null:(Tm=!0,km);case"textInput":return t=n.data,t===km&&Tm?null:t;default:return null}}function z0(t,n){if(Vr)return t==="compositionend"||!Cu&&Cm(t,n)?(t=vm(),Ao=Su=gi=null,Vr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Nm&&n.locale!=="ko"?null:n.data;default:return null}}var j0={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 Rm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!j0[t.type]:n==="textarea"}function Om(t,n,r,s){Ke?Tt?Tt.push(s):Tt=[s]:Ke=s,n=_c(n,"onChange"),0<n.length&&(r=new Mo("onChange","change",null,r,s),t.push({event:r,listeners:n}))}var cs=null,us=null;function I0(t){hb(t,0)}function Lo(t){var n=di(t);if(es(n))return t}function Mm(t,n){if(t==="change")return n}var Dm=!1;if(Ba){var Au;if(Ba){var Ru="oninput"in document;if(!Ru){var Lm=document.createElement("div");Lm.setAttribute("oninput","return;"),Ru=typeof Lm.oninput=="function"}Au=Ru}else Au=!1;Dm=Au&&(!document.documentMode||9<document.documentMode)}function zm(){cs&&(cs.detachEvent("onpropertychange",jm),us=cs=null)}function jm(t){if(t.propertyName==="value"&&Lo(us)){var n=[];Om(n,us,t,Le(t)),Co(I0,n)}}function U0(t,n,r){t==="focusin"?(zm(),cs=n,us=r,cs.attachEvent("onpropertychange",jm)):t==="focusout"&&zm()}function B0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Lo(us)}function H0(t,n){if(t==="click")return Lo(n)}function F0(t,n){if(t==="input"||t==="change")return Lo(n)}function q0(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var In=typeof Object.is=="function"?Object.is:q0;function fs(t,n){if(In(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var r=Object.keys(t),s=Object.keys(n);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var f=r[s];if(!va.call(n,f)||!In(t[f],n[f]))return!1}return!0}function Im(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Um(t,n){var r=Im(t);t=0;for(var s;r;){if(r.nodeType===3){if(s=t+r.textContent.length,t<=n&&s>=n)return{node:r,offset:n-t};t=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Im(r)}}function Bm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Bm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Hm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Kr(t.document);n instanceof t.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)t=n.contentWindow;else break;n=Kr(t.document)}return n}function Ou(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var P0=Ba&&"documentMode"in document&&11>=document.documentMode,Xr=null,Mu=null,ds=null,Du=!1;function Fm(t,n,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Du||Xr==null||Xr!==Kr(s)||(s=Xr,"selectionStart"in s&&Ou(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ds&&fs(ds,s)||(ds=s,s=_c(Mu,"onSelect"),0<s.length&&(n=new Mo("onSelect","select",null,n,r),t.push({event:n,listeners:s}),n.target=Xr)))}function lr(t,n){var r={};return r[t.toLowerCase()]=n.toLowerCase(),r["Webkit"+t]="webkit"+n,r["Moz"+t]="moz"+n,r}var Zr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},Lu={},qm={};Ba&&(qm=document.createElement("div").style,"AnimationEvent"in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),"TransitionEvent"in window||delete Zr.transitionend.transition);function sr(t){if(Lu[t])return Lu[t];if(!Zr[t])return t;var n=Zr[t],r;for(r in n)if(n.hasOwnProperty(r)&&r in qm)return Lu[t]=n[r];return t}var Pm=sr("animationend"),Gm=sr("animationiteration"),$m=sr("animationstart"),G0=sr("transitionrun"),$0=sr("transitionstart"),K0=sr("transitioncancel"),Km=sr("transitionend"),Ym=new Map,zu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zu.push("scrollEnd");function fa(t,n){Ym.set(t,n),Ia(n,[t])}var zo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Xn=[],Wr=0,ju=0;function jo(){for(var t=Wr,n=ju=Wr=0;n<t;){var r=Xn[n];Xn[n++]=null;var s=Xn[n];Xn[n++]=null;var f=Xn[n];Xn[n++]=null;var p=Xn[n];if(Xn[n++]=null,s!==null&&f!==null){var v=s.pending;v===null?f.next=f:(f.next=v.next,v.next=f),s.pending=f}p!==0&&Qm(r,f,p)}}function Io(t,n,r,s){Xn[Wr++]=t,Xn[Wr++]=n,Xn[Wr++]=r,Xn[Wr++]=s,ju|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Iu(t,n,r,s){return Io(t,n,r,s),Uo(t)}function or(t,n){return Io(t,null,null,n),Uo(t)}function Qm(t,n,r){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r);for(var f=!1,p=t.return;p!==null;)p.childLanes|=r,s=p.alternate,s!==null&&(s.childLanes|=r),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(f=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,f&&n!==null&&(f=31-lt(r),t=p.hiddenUpdates,s=t[f],s===null?t[f]=[n]:s.push(n),n.lane=r|536870912),p):null}function Uo(t){if(50<Ls)throw Ls=0,Yf=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Jr={};function Y0(t,n,r,s){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(t,n,r,s){return new Y0(t,n,r,s)}function Uu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ha(t,n){var r=t.alternate;return r===null?(r=Un(t.tag,n,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=n,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&65011712,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,n=t.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r.refCleanup=t.refCleanup,r}function Vm(t,n){t.flags&=65011714;var r=t.alternate;return r===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,t.type=r.type,n=r.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Bo(t,n,r,s,f,p){var v=0;if(s=t,typeof t=="function")Uu(t)&&(v=1);else if(typeof t=="string")v=W_(t,r,de.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case V:return t=Un(31,r,n,f),t.elementType=V,t.lanes=p,t;case w:return cr(r.children,f,p,n);case T:v=8,f|=24;break;case N:return t=Un(12,r,n,f|2),t.elementType=N,t.lanes=p,t;case $:return t=Un(13,r,n,f),t.elementType=$,t.lanes=p,t;case z:return t=Un(19,r,n,f),t.elementType=z,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:v=10;break e;case I:v=9;break e;case H:v=11;break e;case G:v=14;break e;case X:v=16,s=null;break e}v=29,r=Error(l(130,t===null?"null":typeof t,"")),s=null}return n=Un(v,r,n,f),n.elementType=t,n.type=s,n.lanes=p,n}function cr(t,n,r,s){return t=Un(7,t,s,n),t.lanes=r,t}function Bu(t,n,r){return t=Un(6,t,null,n),t.lanes=r,t}function Xm(t){var n=Un(18,null,null,0);return n.stateNode=t,n}function Hu(t,n,r){return n=Un(4,t.children!==null?t.children:[],t.key,n),n.lanes=r,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Zm=new WeakMap;function Zn(t,n){if(typeof t=="object"&&t!==null){var r=Zm.get(t);return r!==void 0?r:(n={value:t,source:n,stack:Qn(n)},Zm.set(t,n),n)}return{value:t,source:n,stack:Qn(n)}}var el=[],tl=0,Ho=null,hs=0,Wn=[],Jn=0,bi=null,Sa=1,wa="";function Fa(t,n){el[tl++]=hs,el[tl++]=Ho,Ho=t,hs=n}function Wm(t,n,r){Wn[Jn++]=Sa,Wn[Jn++]=wa,Wn[Jn++]=bi,bi=t;var s=Sa;t=wa;var f=32-lt(s)-1;s&=~(1<<f),r+=1;var p=32-lt(n)+f;if(30<p){var v=f-f%5;p=(s&(1<<v)-1).toString(32),s>>=v,f-=v,Sa=1<<32-lt(n)+f|r<<f|s,wa=p+t}else Sa=1<<p|r<<f|s,wa=t}function Fu(t){t.return!==null&&(Fa(t,1),Wm(t,1,0))}function qu(t){for(;t===Ho;)Ho=el[--tl],el[tl]=null,hs=el[--tl],el[tl]=null;for(;t===bi;)bi=Wn[--Jn],Wn[Jn]=null,wa=Wn[--Jn],Wn[Jn]=null,Sa=Wn[--Jn],Wn[Jn]=null}function Jm(t,n){Wn[Jn++]=Sa,Wn[Jn++]=wa,Wn[Jn++]=bi,Sa=n.id,wa=n.overflow,bi=t}var Wt=null,Et=null,Xe=!1,yi=null,ea=!1,Pu=Error(l(519));function xi(t){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ms(Zn(n,t)),Pu}function ep(t){var n=t.stateNode,r=t.type,s=t.memoizedProps;switch(n[Dt]=t,n[an]=s,r){case"dialog":Ge("cancel",n),Ge("close",n);break;case"iframe":case"object":case"embed":Ge("load",n);break;case"video":case"audio":for(r=0;r<js.length;r++)Ge(js[r],n);break;case"source":Ge("error",n);break;case"img":case"image":case"link":Ge("error",n),Ge("load",n);break;case"details":Ge("toggle",n);break;case"input":Ge("invalid",n),ir(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ge("invalid",n);break;case"textarea":Ge("invalid",n),Qr(n,s.value,s.defaultValue,s.children)}r=s.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||s.suppressHydrationWarning===!0||bb(n.textContent,r)?(s.popover!=null&&(Ge("beforetoggle",n),Ge("toggle",n)),s.onScroll!=null&&Ge("scroll",n),s.onScrollEnd!=null&&Ge("scrollend",n),s.onClick!=null&&(n.onclick=fe),n=!0):n=!1,n||xi(t,!0)}function tp(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Wt=Wt.return}}function nl(t){if(t!==Wt)return!1;if(!Xe)return tp(t),Xe=!0,!1;var n=t.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=t.type,r=!(r!=="form"&&r!=="button")||od(t.type,t.memoizedProps)),r=!r),r&&Et&&xi(t),tp(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=kb(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Et=kb(t)}else n===27?(n=Et,Di(t.type)?(t=hd,hd=null,Et=t):Et=n):Et=Wt?na(t.stateNode.nextSibling):null;return!0}function ur(){Et=Wt=null,Xe=!1}function Gu(){var t=yi;return t!==null&&(kn===null?kn=t:kn.push.apply(kn,t),yi=null),t}function ms(t){yi===null?yi=[t]:yi.push(t)}var $u=O(null),fr=null,qa=null;function vi(t,n,r){k($u,n._currentValue),n._currentValue=r}function Pa(t){t._currentValue=$u.current,Q($u)}function Ku(t,n,r){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===r)break;t=t.return}}function Yu(t,n,r,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var p=f.dependencies;if(p!==null){var v=f.child;p=p.firstContext;e:for(;p!==null;){var _=p;p=f;for(var R=0;R<n.length;R++)if(_.context===n[R]){p.lanes|=r,_=p.alternate,_!==null&&(_.lanes|=r),Ku(p.return,r,t),s||(v=null);break e}p=_.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(l(341));v.lanes|=r,p=v.alternate,p!==null&&(p.lanes|=r),Ku(v,r,t),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===t){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function al(t,n,r,s){t=null;for(var f=n,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(l(387));if(v=v.memoizedProps,v!==null){var _=f.type;In(f.pendingProps.value,v.value)||(t!==null?t.push(_):t=[_])}}else if(f===Be.current){if(v=f.alternate,v===null)throw Error(l(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Fs):t=[Fs])}f=f.return}t!==null&&Yu(n,t,r,s),n.flags|=262144}function Fo(t){for(t=t.firstContext;t!==null;){if(!In(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function dr(t){fr=t,qa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return np(fr,t)}function qo(t,n){return fr===null&&dr(t),np(t,n)}function np(t,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},qa===null){if(t===null)throw Error(l(308));qa=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else qa=qa.next=n;return r}var Q0=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(r,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(r){return r()})}},V0=e.unstable_scheduleCallback,X0=e.unstable_NormalPriority,Bt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new Q0,data:new Map,refCount:0}}function ps(t){t.refCount--,t.refCount===0&&V0(X0,function(){t.controller.abort()})}var gs=null,Vu=0,il=0,rl=null;function Z0(t,n){if(gs===null){var r=gs=[];Vu=0,il=Jf(),rl={status:"pending",value:void 0,then:function(s){r.push(s)}}}return Vu++,n.then(ap,ap),n}function ap(){if(--Vu===0&&gs!==null){rl!==null&&(rl.status="fulfilled");var t=gs;gs=null,il=0,rl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function W0(t,n){var r=[],s={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<r.length;f++)(0,r[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),s}var ip=F.S;F.S=function(t,n){Fg=kt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Z0(t,n),ip!==null&&ip(t,n)};var hr=O(null);function Xu(){var t=hr.current;return t!==null?t:gt.pooledCache}function Po(t,n){n===null?k(hr,hr.current):k(hr,n.pool)}function rp(){var t=Xu();return t===null?null:{parent:Bt._currentValue,pool:t}}var ll=Error(l(460)),Zu=Error(l(474)),Go=Error(l(542)),$o={then:function(){}};function lp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function sp(t,n,r){switch(r=t[r],r===void 0?t.push(n):r!==n&&(n.then(fe,fe),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,cp(t),t;default:if(typeof n.status=="string")n.then(fe,fe);else{if(t=gt,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,cp(t),t}throw pr=n,ll}}function mr(t){try{var n=t._init;return n(t._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(pr=r,ll):r}}var pr=null;function op(){if(pr===null)throw Error(l(459));var t=pr;return pr=null,t}function cp(t){if(t===ll||t===Go)throw Error(l(483))}var sl=null,bs=0;function Ko(t){var n=bs;return bs+=1,sl===null&&(sl=[]),sp(sl,t,n)}function ys(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Yo(t,n){throw n.$$typeof===E?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function up(t){function n(B,U){if(t){var q=B.deletions;q===null?(B.deletions=[U],B.flags|=16):q.push(U)}}function r(B,U){if(!t)return null;for(;U!==null;)n(B,U),U=U.sibling;return null}function s(B){for(var U=new Map;B!==null;)B.key!==null?U.set(B.key,B):U.set(B.index,B),B=B.sibling;return U}function f(B,U){return B=Ha(B,U),B.index=0,B.sibling=null,B}function p(B,U,q){return B.index=q,t?(q=B.alternate,q!==null?(q=q.index,q<U?(B.flags|=67108866,U):q):(B.flags|=67108866,U)):(B.flags|=1048576,U)}function v(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function _(B,U,q,ee){return U===null||U.tag!==6?(U=Bu(q,B.mode,ee),U.return=B,U):(U=f(U,q),U.return=B,U)}function R(B,U,q,ee){var ke=q.type;return ke===w?W(B,U,q.props.children,ee,q.key):U!==null&&(U.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===X&&mr(ke)===U.type)?(U=f(U,q.props),ys(U,q),U.return=B,U):(U=Bo(q.type,q.key,q.props,null,B.mode,ee),ys(U,q),U.return=B,U)}function P(B,U,q,ee){return U===null||U.tag!==4||U.stateNode.containerInfo!==q.containerInfo||U.stateNode.implementation!==q.implementation?(U=Hu(q,B.mode,ee),U.return=B,U):(U=f(U,q.children||[]),U.return=B,U)}function W(B,U,q,ee,ke){return U===null||U.tag!==7?(U=cr(q,B.mode,ee,ke),U.return=B,U):(U=f(U,q),U.return=B,U)}function ne(B,U,q){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Bu(""+U,B.mode,q),U.return=B,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case x:return q=Bo(U.type,U.key,U.props,null,B.mode,q),ys(q,U),q.return=B,q;case S:return U=Hu(U,B.mode,q),U.return=B,U;case X:return U=mr(U),ne(B,U,q)}if(te(U)||ie(U))return U=cr(U,B.mode,q,null),U.return=B,U;if(typeof U.then=="function")return ne(B,Ko(U),q);if(U.$$typeof===D)return ne(B,qo(B,U),q);Yo(B,U)}return null}function K(B,U,q,ee){var ke=U!==null?U.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ke!==null?null:_(B,U,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return q.key===ke?R(B,U,q,ee):null;case S:return q.key===ke?P(B,U,q,ee):null;case X:return q=mr(q),K(B,U,q,ee)}if(te(q)||ie(q))return ke!==null?null:W(B,U,q,ee,null);if(typeof q.then=="function")return K(B,U,Ko(q),ee);if(q.$$typeof===D)return K(B,U,qo(B,q),ee);Yo(B,q)}return null}function Y(B,U,q,ee,ke){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return B=B.get(q)||null,_(U,B,""+ee,ke);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return B=B.get(ee.key===null?q:ee.key)||null,R(U,B,ee,ke);case S:return B=B.get(ee.key===null?q:ee.key)||null,P(U,B,ee,ke);case X:return ee=mr(ee),Y(B,U,q,ee,ke)}if(te(ee)||ie(ee))return B=B.get(q)||null,W(U,B,ee,ke,null);if(typeof ee.then=="function")return Y(B,U,q,Ko(ee),ke);if(ee.$$typeof===D)return Y(B,U,q,qo(U,ee),ke);Yo(U,ee)}return null}function be(B,U,q,ee){for(var ke=null,et=null,Ee=U,je=U=0,Qe=null;Ee!==null&&je<q.length;je++){Ee.index>je?(Qe=Ee,Ee=null):Qe=Ee.sibling;var tt=K(B,Ee,q[je],ee);if(tt===null){Ee===null&&(Ee=Qe);break}t&&Ee&&tt.alternate===null&&n(B,Ee),U=p(tt,U,je),et===null?ke=tt:et.sibling=tt,et=tt,Ee=Qe}if(je===q.length)return r(B,Ee),Xe&&Fa(B,je),ke;if(Ee===null){for(;je<q.length;je++)Ee=ne(B,q[je],ee),Ee!==null&&(U=p(Ee,U,je),et===null?ke=Ee:et.sibling=Ee,et=Ee);return Xe&&Fa(B,je),ke}for(Ee=s(Ee);je<q.length;je++)Qe=Y(Ee,B,je,q[je],ee),Qe!==null&&(t&&Qe.alternate!==null&&Ee.delete(Qe.key===null?je:Qe.key),U=p(Qe,U,je),et===null?ke=Qe:et.sibling=Qe,et=Qe);return t&&Ee.forEach(function(Ui){return n(B,Ui)}),Xe&&Fa(B,je),ke}function Ae(B,U,q,ee){if(q==null)throw Error(l(151));for(var ke=null,et=null,Ee=U,je=U=0,Qe=null,tt=q.next();Ee!==null&&!tt.done;je++,tt=q.next()){Ee.index>je?(Qe=Ee,Ee=null):Qe=Ee.sibling;var Ui=K(B,Ee,tt.value,ee);if(Ui===null){Ee===null&&(Ee=Qe);break}t&&Ee&&Ui.alternate===null&&n(B,Ee),U=p(Ui,U,je),et===null?ke=Ui:et.sibling=Ui,et=Ui,Ee=Qe}if(tt.done)return r(B,Ee),Xe&&Fa(B,je),ke;if(Ee===null){for(;!tt.done;je++,tt=q.next())tt=ne(B,tt.value,ee),tt!==null&&(U=p(tt,U,je),et===null?ke=tt:et.sibling=tt,et=tt);return Xe&&Fa(B,je),ke}for(Ee=s(Ee);!tt.done;je++,tt=q.next())tt=Y(Ee,B,je,tt.value,ee),tt!==null&&(t&&tt.alternate!==null&&Ee.delete(tt.key===null?je:tt.key),U=p(tt,U,je),et===null?ke=tt:et.sibling=tt,et=tt);return t&&Ee.forEach(function(cS){return n(B,cS)}),Xe&&Fa(B,je),ke}function ht(B,U,q,ee){if(typeof q=="object"&&q!==null&&q.type===w&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case x:e:{for(var ke=q.key;U!==null;){if(U.key===ke){if(ke=q.type,ke===w){if(U.tag===7){r(B,U.sibling),ee=f(U,q.props.children),ee.return=B,B=ee;break e}}else if(U.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===X&&mr(ke)===U.type){r(B,U.sibling),ee=f(U,q.props),ys(ee,q),ee.return=B,B=ee;break e}r(B,U);break}else n(B,U);U=U.sibling}q.type===w?(ee=cr(q.props.children,B.mode,ee,q.key),ee.return=B,B=ee):(ee=Bo(q.type,q.key,q.props,null,B.mode,ee),ys(ee,q),ee.return=B,B=ee)}return v(B);case S:e:{for(ke=q.key;U!==null;){if(U.key===ke)if(U.tag===4&&U.stateNode.containerInfo===q.containerInfo&&U.stateNode.implementation===q.implementation){r(B,U.sibling),ee=f(U,q.children||[]),ee.return=B,B=ee;break e}else{r(B,U);break}else n(B,U);U=U.sibling}ee=Hu(q,B.mode,ee),ee.return=B,B=ee}return v(B);case X:return q=mr(q),ht(B,U,q,ee)}if(te(q))return be(B,U,q,ee);if(ie(q)){if(ke=ie(q),typeof ke!="function")throw Error(l(150));return q=ke.call(q),Ae(B,U,q,ee)}if(typeof q.then=="function")return ht(B,U,Ko(q),ee);if(q.$$typeof===D)return ht(B,U,qo(B,q),ee);Yo(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,U!==null&&U.tag===6?(r(B,U.sibling),ee=f(U,q),ee.return=B,B=ee):(r(B,U),ee=Bu(q,B.mode,ee),ee.return=B,B=ee),v(B)):r(B,U)}return function(B,U,q,ee){try{bs=0;var ke=ht(B,U,q,ee);return sl=null,ke}catch(Ee){if(Ee===ll||Ee===Go)throw Ee;var et=Un(29,Ee,null,B.mode);return et.lanes=ee,et.return=B,et}finally{}}}var gr=up(!0),fp=up(!1),Ei=!1;function Wu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ju(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _i(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Si(t,n,r){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(at&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Uo(t),Qm(t,null,r),n}return Io(t,s,n,r),Uo(t)}function xs(t,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,r|=s,n.lanes=r,Oe(t,r)}}function ef(t,n){var r=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var f=null,p=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};p===null?f=p=v:p=p.next=v,r=r.next}while(r!==null);p===null?f=p=n:p=p.next=n}else f=p=n;r={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=n:t.next=n,r.lastBaseUpdate=n}var tf=!1;function vs(){if(tf){var t=rl;if(t!==null)throw t}}function Es(t,n,r,s){tf=!1;var f=t.updateQueue;Ei=!1;var p=f.firstBaseUpdate,v=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var R=_,P=R.next;R.next=null,v===null?p=P:v.next=P,v=R;var W=t.alternate;W!==null&&(W=W.updateQueue,_=W.lastBaseUpdate,_!==v&&(_===null?W.firstBaseUpdate=P:_.next=P,W.lastBaseUpdate=R))}if(p!==null){var ne=f.baseState;v=0,W=P=R=null,_=p;do{var K=_.lane&-536870913,Y=K!==_.lane;if(Y?(Ye&K)===K:(s&K)===K){K!==0&&K===il&&(tf=!0),W!==null&&(W=W.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var be=t,Ae=_;K=n;var ht=r;switch(Ae.tag){case 1:if(be=Ae.payload,typeof be=="function"){ne=be.call(ht,ne,K);break e}ne=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ae.payload,K=typeof be=="function"?be.call(ht,ne,K):be,K==null)break e;ne=g({},ne,K);break e;case 2:Ei=!0}}K=_.callback,K!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[K]:Y.push(K))}else Y={lane:K,tag:_.tag,payload:_.payload,callback:_.callback,next:null},W===null?(P=W=Y,R=ne):W=W.next=Y,v|=K;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;Y=_,_=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);W===null&&(R=ne),f.baseState=R,f.firstBaseUpdate=P,f.lastBaseUpdate=W,p===null&&(f.shared.lanes=0),Ci|=v,t.lanes=v,t.memoizedState=ne}}function dp(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function hp(t,n){var r=t.callbacks;if(r!==null)for(t.callbacks=null,t=0;t<r.length;t++)dp(r[t],n)}var ol=O(null),Qo=O(0);function mp(t,n){t=Wa,k(Qo,t),k(ol,n),Wa=t|n.baseLanes}function nf(){k(Qo,Wa),k(ol,ol.current)}function af(){Wa=Qo.current,Q(ol),Q(Qo)}var Bn=O(null),ta=null;function wi(t){var n=t.alternate;k(zt,zt.current&1),k(Bn,t),ta===null&&(n===null||ol.current!==null||n.memoizedState!==null)&&(ta=t)}function rf(t){k(zt,zt.current),k(Bn,t),ta===null&&(ta=t)}function pp(t){t.tag===22?(k(zt,zt.current),k(Bn,t),ta===null&&(ta=t)):Ni()}function Ni(){k(zt,zt.current),k(Bn,Bn.current)}function Hn(t){Q(Bn),ta===t&&(ta=null),Q(zt)}var zt=O(0);function Vo(t){for(var n=t;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||fd(r)||dd(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ga=0,ze=null,ft=null,Ht=null,Xo=!1,cl=!1,br=!1,Zo=0,_s=0,ul=null,J0=0;function At(){throw Error(l(321))}function lf(t,n){if(n===null)return!1;for(var r=0;r<n.length&&r<t.length;r++)if(!In(t[r],n[r]))return!1;return!0}function sf(t,n,r,s,f,p){return Ga=p,ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=t===null||t.memoizedState===null?Wp:_f,br=!1,p=r(s,f),br=!1,cl&&(p=bp(n,r,s,f)),gp(t),p}function gp(t){F.H=Ns;var n=ft!==null&&ft.next!==null;if(Ga=0,Ht=ft=ze=null,Xo=!1,_s=0,ul=null,n)throw Error(l(300));t===null||Ft||(t=t.dependencies,t!==null&&Fo(t)&&(Ft=!0))}function bp(t,n,r,s){ze=t;var f=0;do{if(cl&&(ul=null),_s=0,cl=!1,25<=f)throw Error(l(301));if(f+=1,Ht=ft=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}F.H=Jp,p=n(r,s)}while(cl);return p}function e_(){var t=F.H,n=t.useState()[0];return n=typeof n.then=="function"?Ss(n):n,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(ze.flags|=1024),n}function of(){var t=Zo!==0;return Zo=0,t}function cf(t,n,r){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~r}function uf(t){if(Xo){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Xo=!1}Ga=0,Ht=ft=ze=null,cl=!1,_s=Zo=0,ul=null}function mn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?ze.memoizedState=Ht=t:Ht=Ht.next=t,Ht}function jt(){if(ft===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var n=Ht===null?ze.memoizedState:Ht.next;if(n!==null)Ht=n,ft=t;else{if(t===null)throw ze.alternate===null?Error(l(467)):Error(l(310));ft=t,t={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Ht===null?ze.memoizedState=Ht=t:Ht=Ht.next=t}return Ht}function Wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ss(t){var n=_s;return _s+=1,ul===null&&(ul=[]),t=sp(ul,t,n),n=ze,(Ht===null?n.memoizedState:Ht.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?Wp:_f),t}function Jo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ss(t);if(t.$$typeof===D)return Jt(t)}throw Error(l(438,String(t)))}function ff(t){var n=null,r=ze.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var s=ze.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Wo(),ze.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(t),s=0;s<t;s++)r[s]=A;return n.index++,r}function $a(t,n){return typeof n=="function"?n(t):n}function ec(t){var n=jt();return df(n,ft,t)}function df(t,n,r){var s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=r;var f=t.baseQueue,p=s.pending;if(p!==null){if(f!==null){var v=f.next;f.next=p.next,p.next=v}n.baseQueue=f=p,s.pending=null}if(p=t.baseState,f===null)t.memoizedState=p;else{n=f.next;var _=v=null,R=null,P=n,W=!1;do{var ne=P.lane&-536870913;if(ne!==P.lane?(Ye&ne)===ne:(Ga&ne)===ne){var K=P.revertLane;if(K===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ne===il&&(W=!0);else if((Ga&K)===K){P=P.next,K===il&&(W=!0);continue}else ne={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},R===null?(_=R=ne,v=p):R=R.next=ne,ze.lanes|=K,Ci|=K;ne=P.action,br&&r(p,ne),p=P.hasEagerState?P.eagerState:r(p,ne)}else K={lane:ne,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},R===null?(_=R=K,v=p):R=R.next=K,ze.lanes|=ne,Ci|=ne;P=P.next}while(P!==null&&P!==n);if(R===null?v=p:R.next=_,!In(p,t.memoizedState)&&(Ft=!0,W&&(r=rl,r!==null)))throw r;t.memoizedState=p,t.baseState=v,t.baseQueue=R,s.lastRenderedState=p}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function hf(t){var n=jt(),r=n.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=t;var s=r.dispatch,f=r.pending,p=n.memoizedState;if(f!==null){r.pending=null;var v=f=f.next;do p=t(p,v.action),v=v.next;while(v!==f);In(p,n.memoizedState)||(Ft=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),r.lastRenderedState=p}return[p,s]}function yp(t,n,r){var s=ze,f=jt(),p=Xe;if(p){if(r===void 0)throw Error(l(407));r=r()}else r=n();var v=!In((ft||f).memoizedState,r);if(v&&(f.memoizedState=r,Ft=!0),f=f.queue,gf(Ep.bind(null,s,f,t),[t]),f.getSnapshot!==n||v||Ht!==null&&Ht.memoizedState.tag&1){if(s.flags|=2048,fl(9,{destroy:void 0},vp.bind(null,s,f,r,n),null),gt===null)throw Error(l(349));p||(Ga&127)!==0||xp(s,n,r)}return r}function xp(t,n,r){t.flags|=16384,t={getSnapshot:n,value:r},n=ze.updateQueue,n===null?(n=Wo(),ze.updateQueue=n,n.stores=[t]):(r=n.stores,r===null?n.stores=[t]:r.push(t))}function vp(t,n,r,s){n.value=r,n.getSnapshot=s,_p(n)&&Sp(t)}function Ep(t,n,r){return r(function(){_p(n)&&Sp(t)})}function _p(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!In(t,r)}catch{return!0}}function Sp(t){var n=or(t,2);n!==null&&Tn(n,t,2)}function mf(t){var n=mn();if(typeof t=="function"){var r=t;if(t=r(),br){nn(!0);try{r()}finally{nn(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:t},n}function wp(t,n,r,s){return t.baseState=r,df(t,ft,typeof s=="function"?s:$a)}function t_(t,n,r,s,f){if(ac(t))throw Error(l(485));if(t=n.action,t!==null){var p={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};F.T!==null?r(!0):p.isTransition=!1,s(p),r=n.pending,r===null?(p.next=n.pending=p,Np(n,p)):(p.next=r.next,n.pending=r.next=p)}}function Np(t,n){var r=n.action,s=n.payload,f=t.state;if(n.isTransition){var p=F.T,v={};F.T=v;try{var _=r(f,s),R=F.S;R!==null&&R(v,_),kp(t,n,_)}catch(P){pf(t,n,P)}finally{p!==null&&v.types!==null&&(p.types=v.types),F.T=p}}else try{p=r(f,s),kp(t,n,p)}catch(P){pf(t,n,P)}}function kp(t,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(s){Tp(t,n,s)},function(s){return pf(t,n,s)}):Tp(t,n,r)}function Tp(t,n,r){n.status="fulfilled",n.value=r,Cp(n),t.state=r,n=t.pending,n!==null&&(r=n.next,r===n?t.pending=null:(r=r.next,n.next=r,Np(t,r)))}function pf(t,n,r){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=r,Cp(n),n=n.next;while(n!==s)}t.action=null}function Cp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Ap(t,n){return n}function Rp(t,n){if(Xe){var r=gt.formState;if(r!==null){e:{var s=ze;if(Xe){if(Et){t:{for(var f=Et,p=ea;f.nodeType!==8;){if(!p){f=null;break t}if(f=na(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Et=na(f.nextSibling),s=f.data==="F!";break e}}xi(s)}s=!1}s&&(n=r[0])}}return r=mn(),r.memoizedState=r.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ap,lastRenderedState:n},r.queue=s,r=Vp.bind(null,ze,s),s.dispatch=r,s=mf(!1),p=Ef.bind(null,ze,!1,s.queue),s=mn(),f={state:n,dispatch:null,action:t,pending:null},s.queue=f,r=t_.bind(null,ze,f,p,r),f.dispatch=r,s.memoizedState=t,[n,r,!1]}function Op(t){var n=jt();return Mp(n,ft,t)}function Mp(t,n,r){if(n=df(t,n,Ap)[0],t=ec($a)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Ss(n)}catch(v){throw v===ll?Go:v}else s=n;n=jt();var f=n.queue,p=f.dispatch;return r!==n.memoizedState&&(ze.flags|=2048,fl(9,{destroy:void 0},n_.bind(null,f,r),null)),[s,p,t]}function n_(t,n){t.action=n}function Dp(t){var n=jt(),r=ft;if(r!==null)return Mp(n,r,t);jt(),n=n.memoizedState,r=jt();var s=r.queue.dispatch;return r.memoizedState=t,[n,s,!1]}function fl(t,n,r,s){return t={tag:t,create:r,deps:s,inst:n,next:null},n=ze.updateQueue,n===null&&(n=Wo(),ze.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=t.next=t:(s=r.next,r.next=t,t.next=s,n.lastEffect=t),t}function Lp(){return jt().memoizedState}function tc(t,n,r,s){var f=mn();ze.flags|=t,f.memoizedState=fl(1|n,{destroy:void 0},r,s===void 0?null:s)}function nc(t,n,r,s){var f=jt();s=s===void 0?null:s;var p=f.memoizedState.inst;ft!==null&&s!==null&&lf(s,ft.memoizedState.deps)?f.memoizedState=fl(n,p,r,s):(ze.flags|=t,f.memoizedState=fl(1|n,p,r,s))}function zp(t,n){tc(8390656,8,t,n)}function gf(t,n){nc(2048,8,t,n)}function a_(t){ze.flags|=4;var n=ze.updateQueue;if(n===null)n=Wo(),ze.updateQueue=n,n.events=[t];else{var r=n.events;r===null?n.events=[t]:r.push(t)}}function jp(t){var n=jt().memoizedState;return a_({ref:n,nextImpl:t}),function(){if((at&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function Ip(t,n){return nc(4,2,t,n)}function Up(t,n){return nc(4,4,t,n)}function Bp(t,n){if(typeof n=="function"){t=t();var r=n(t);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Hp(t,n,r){r=r!=null?r.concat([t]):null,nc(4,4,Bp.bind(null,n,t),r)}function bf(){}function Fp(t,n){var r=jt();n=n===void 0?null:n;var s=r.memoizedState;return n!==null&&lf(n,s[1])?s[0]:(r.memoizedState=[t,n],t)}function qp(t,n){var r=jt();n=n===void 0?null:n;var s=r.memoizedState;if(n!==null&&lf(n,s[1]))return s[0];if(s=t(),br){nn(!0);try{t()}finally{nn(!1)}}return r.memoizedState=[s,n],s}function yf(t,n,r){return r===void 0||(Ga&1073741824)!==0&&(Ye&261930)===0?t.memoizedState=n:(t.memoizedState=r,t=Pg(),ze.lanes|=t,Ci|=t,r)}function Pp(t,n,r,s){return In(r,n)?r:ol.current!==null?(t=yf(t,r,s),In(t,n)||(Ft=!0),t):(Ga&42)===0||(Ga&1073741824)!==0&&(Ye&261930)===0?(Ft=!0,t.memoizedState=r):(t=Pg(),ze.lanes|=t,Ci|=t,n)}function Gp(t,n,r,s,f){var p=re.p;re.p=p!==0&&8>p?p:8;var v=F.T,_={};F.T=_,Ef(t,!1,n,r);try{var R=f(),P=F.S;if(P!==null&&P(_,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var W=W0(R,s);ws(t,n,W,Pn(t))}else ws(t,n,s,Pn(t))}catch(ne){ws(t,n,{then:function(){},status:"rejected",reason:ne},Pn())}finally{re.p=p,v!==null&&_.types!==null&&(v.types=_.types),F.T=v}}function i_(){}function xf(t,n,r,s){if(t.tag!==5)throw Error(l(476));var f=$p(t).queue;Gp(t,f,n,oe,r===null?i_:function(){return Kp(t),r(s)})}function $p(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:oe},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:r},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Kp(t){var n=$p(t);n.next===null&&(n=t.alternate.memoizedState),ws(t,n.next.queue,{},Pn())}function vf(){return Jt(Fs)}function Yp(){return jt().memoizedState}function Qp(){return jt().memoizedState}function r_(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var r=Pn();t=_i(r);var s=Si(n,t,r);s!==null&&(Tn(s,n,r),xs(s,n,r)),n={cache:Qu()},t.payload=n;return}n=n.return}}function l_(t,n,r){var s=Pn();r={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ac(t)?Xp(n,r):(r=Iu(t,n,r,s),r!==null&&(Tn(r,t,s),Zp(r,n,s)))}function Vp(t,n,r){var s=Pn();ws(t,n,r,s)}function ws(t,n,r,s){var f={lane:s,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(ac(t))Xp(n,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var v=n.lastRenderedState,_=p(v,r);if(f.hasEagerState=!0,f.eagerState=_,In(_,v))return Io(t,n,f,0),gt===null&&jo(),!1}catch{}finally{}if(r=Iu(t,n,f,s),r!==null)return Tn(r,t,s),Zp(r,n,s),!0}return!1}function Ef(t,n,r,s){if(s={lane:2,revertLane:Jf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ac(t)){if(n)throw Error(l(479))}else n=Iu(t,r,s,2),n!==null&&Tn(n,t,2)}function ac(t){var n=t.alternate;return t===ze||n!==null&&n===ze}function Xp(t,n){cl=Xo=!0;var r=t.pending;r===null?n.next=n:(n.next=r.next,r.next=n),t.pending=n}function Zp(t,n,r){if((r&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,r|=s,n.lanes=r,Oe(t,r)}}var Ns={readContext:Jt,use:Jo,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At};Ns.useEffectEvent=At;var Wp={readContext:Jt,use:Jo,useCallback:function(t,n){return mn().memoizedState=[t,n===void 0?null:n],t},useContext:Jt,useEffect:zp,useImperativeHandle:function(t,n,r){r=r!=null?r.concat([t]):null,tc(4194308,4,Bp.bind(null,n,t),r)},useLayoutEffect:function(t,n){return tc(4194308,4,t,n)},useInsertionEffect:function(t,n){tc(4,2,t,n)},useMemo:function(t,n){var r=mn();n=n===void 0?null:n;var s=t();if(br){nn(!0);try{t()}finally{nn(!1)}}return r.memoizedState=[s,n],s},useReducer:function(t,n,r){var s=mn();if(r!==void 0){var f=r(n);if(br){nn(!0);try{r(n)}finally{nn(!1)}}}else f=n;return s.memoizedState=s.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},s.queue=t,t=t.dispatch=l_.bind(null,ze,t),[s.memoizedState,t]},useRef:function(t){var n=mn();return t={current:t},n.memoizedState=t},useState:function(t){t=mf(t);var n=t.queue,r=Vp.bind(null,ze,n);return n.dispatch=r,[t.memoizedState,r]},useDebugValue:bf,useDeferredValue:function(t,n){var r=mn();return yf(r,t,n)},useTransition:function(){var t=mf(!1);return t=Gp.bind(null,ze,t.queue,!0,!1),mn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,r){var s=ze,f=mn();if(Xe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=n(),gt===null)throw Error(l(349));(Ye&127)!==0||xp(s,n,r)}f.memoizedState=r;var p={value:r,getSnapshot:n};return f.queue=p,zp(Ep.bind(null,s,p,t),[t]),s.flags|=2048,fl(9,{destroy:void 0},vp.bind(null,s,p,r,n),null),r},useId:function(){var t=mn(),n=gt.identifierPrefix;if(Xe){var r=wa,s=Sa;r=(s&~(1<<32-lt(s)-1)).toString(32)+r,n="_"+n+"R_"+r,r=Zo++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=J0++,n="_"+n+"r_"+r.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:vf,useFormState:Rp,useActionState:Rp,useOptimistic:function(t){var n=mn();n.memoizedState=n.baseState=t;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Ef.bind(null,ze,!0,r),r.dispatch=n,[t,n]},useMemoCache:ff,useCacheRefresh:function(){return mn().memoizedState=r_.bind(null,ze)},useEffectEvent:function(t){var n=mn(),r={impl:t};return n.memoizedState=r,function(){if((at&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},_f={readContext:Jt,use:Jo,useCallback:Fp,useContext:Jt,useEffect:gf,useImperativeHandle:Hp,useInsertionEffect:Ip,useLayoutEffect:Up,useMemo:qp,useReducer:ec,useRef:Lp,useState:function(){return ec($a)},useDebugValue:bf,useDeferredValue:function(t,n){var r=jt();return Pp(r,ft.memoizedState,t,n)},useTransition:function(){var t=ec($a)[0],n=jt().memoizedState;return[typeof t=="boolean"?t:Ss(t),n]},useSyncExternalStore:yp,useId:Yp,useHostTransitionStatus:vf,useFormState:Op,useActionState:Op,useOptimistic:function(t,n){var r=jt();return wp(r,ft,t,n)},useMemoCache:ff,useCacheRefresh:Qp};_f.useEffectEvent=jp;var Jp={readContext:Jt,use:Jo,useCallback:Fp,useContext:Jt,useEffect:gf,useImperativeHandle:Hp,useInsertionEffect:Ip,useLayoutEffect:Up,useMemo:qp,useReducer:hf,useRef:Lp,useState:function(){return hf($a)},useDebugValue:bf,useDeferredValue:function(t,n){var r=jt();return ft===null?yf(r,t,n):Pp(r,ft.memoizedState,t,n)},useTransition:function(){var t=hf($a)[0],n=jt().memoizedState;return[typeof t=="boolean"?t:Ss(t),n]},useSyncExternalStore:yp,useId:Yp,useHostTransitionStatus:vf,useFormState:Dp,useActionState:Dp,useOptimistic:function(t,n){var r=jt();return ft!==null?wp(r,ft,t,n):(r.baseState=t,[t,r.queue.dispatch])},useMemoCache:ff,useCacheRefresh:Qp};Jp.useEffectEvent=jp;function Sf(t,n,r,s){n=t.memoizedState,r=r(s,n),r=r==null?n:g({},n,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var wf={enqueueSetState:function(t,n,r){t=t._reactInternals;var s=Pn(),f=_i(s);f.payload=n,r!=null&&(f.callback=r),n=Si(t,f,s),n!==null&&(Tn(n,t,s),xs(n,t,s))},enqueueReplaceState:function(t,n,r){t=t._reactInternals;var s=Pn(),f=_i(s);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=Si(t,f,s),n!==null&&(Tn(n,t,s),xs(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var r=Pn(),s=_i(r);s.tag=2,n!=null&&(s.callback=n),n=Si(t,s,r),n!==null&&(Tn(n,t,r),xs(n,t,r))}};function eg(t,n,r,s,f,p,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,v):n.prototype&&n.prototype.isPureReactComponent?!fs(r,s)||!fs(f,p):!0}function tg(t,n,r,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,s),n.state!==t&&wf.enqueueReplaceState(n,n.state,null)}function yr(t,n){var r=n;if("ref"in n){r={};for(var s in n)s!=="ref"&&(r[s]=n[s])}if(t=t.defaultProps){r===n&&(r=g({},r));for(var f in t)r[f]===void 0&&(r[f]=t[f])}return r}function ng(t){zo(t)}function ag(t){console.error(t)}function ig(t){zo(t)}function ic(t,n){try{var r=t.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function rg(t,n,r){try{var s=t.onCaughtError;s(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Nf(t,n,r){return r=_i(r),r.tag=3,r.payload={element:null},r.callback=function(){ic(t,n)},r}function lg(t){return t=_i(t),t.tag=3,t}function sg(t,n,r,s){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var p=s.value;t.payload=function(){return f(p)},t.callback=function(){rg(n,r,s)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){rg(n,r,s),typeof f!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function s_(t,n,r,s,f){if(r.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=r.alternate,n!==null&&al(n,r,f,!0),r=Bn.current,r!==null){switch(r.tag){case 31:case 13:return ta===null?gc():r.alternate===null&&Rt===0&&(Rt=3),r.flags&=-257,r.flags|=65536,r.lanes=f,s===$o?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([s]):n.add(s),Xf(t,s,f)),!1;case 22:return r.flags|=65536,s===$o?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([s]):r.add(s)),Xf(t,s,f)),!1}throw Error(l(435,r.tag))}return Xf(t,s,f),gc(),!1}if(Xe)return n=Bn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==Pu&&(t=Error(l(422),{cause:s}),ms(Zn(t,r)))):(s!==Pu&&(n=Error(l(423),{cause:s}),ms(Zn(n,r))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=Zn(s,r),f=Nf(t.stateNode,s,f),ef(t,f),Rt!==4&&(Rt=2)),!1;var p=Error(l(520),{cause:s});if(p=Zn(p,r),Ds===null?Ds=[p]:Ds.push(p),Rt!==4&&(Rt=2),n===null)return!0;s=Zn(s,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,t=f&-f,r.lanes|=t,t=Nf(r.stateNode,s,t),ef(r,t),!1;case 1:if(n=r.type,p=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ai===null||!Ai.has(p))))return r.flags|=65536,f&=-f,r.lanes|=f,f=lg(f),sg(f,t,r,s),ef(r,f),!1}r=r.return}while(r!==null);return!1}var kf=Error(l(461)),Ft=!1;function en(t,n,r,s){n.child=t===null?fp(n,null,r,s):gr(n,t.child,r,s)}function og(t,n,r,s,f){r=r.render;var p=n.ref;if("ref"in s){var v={};for(var _ in s)_!=="ref"&&(v[_]=s[_])}else v=s;return dr(n),s=sf(t,n,r,v,p,f),_=of(),t!==null&&!Ft?(cf(t,n,f),Ka(t,n,f)):(Xe&&_&&Fu(n),n.flags|=1,en(t,n,s,f),n.child)}function cg(t,n,r,s,f){if(t===null){var p=r.type;return typeof p=="function"&&!Uu(p)&&p.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=p,ug(t,n,p,s,f)):(t=Bo(r.type,null,s,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Lf(t,f)){var v=p.memoizedProps;if(r=r.compare,r=r!==null?r:fs,r(v,s)&&t.ref===n.ref)return Ka(t,n,f)}return n.flags|=1,t=Ha(p,s),t.ref=n.ref,t.return=n,n.child=t}function ug(t,n,r,s,f){if(t!==null){var p=t.memoizedProps;if(fs(p,s)&&t.ref===n.ref)if(Ft=!1,n.pendingProps=s=p,Lf(t,f))(t.flags&131072)!==0&&(Ft=!0);else return n.lanes=t.lanes,Ka(t,n,f)}return Tf(t,n,r,s,f)}function fg(t,n,r,s){var f=s.children,p=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|r:r,t!==null){for(s=n.child=t.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~p}else s=0,n.child=null;return dg(t,n,p,r,s)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Po(n,p!==null?p.cachePool:null),p!==null?mp(n,p):nf(),pp(n);else return s=n.lanes=536870912,dg(t,n,p!==null?p.baseLanes|r:r,r,s)}else p!==null?(Po(n,p.cachePool),mp(n,p),Ni(),n.memoizedState=null):(t!==null&&Po(n,null),nf(),Ni());return en(t,n,f,r),n.child}function ks(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function dg(t,n,r,s,f){var p=Xu();return p=p===null?null:{parent:Bt._currentValue,pool:p},n.memoizedState={baseLanes:r,cachePool:p},t!==null&&Po(n,null),nf(),pp(n),t!==null&&al(t,n,s,!0),n.childLanes=f,null}function rc(t,n){return n=sc({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function hg(t,n,r){return gr(n,t.child,null,r),t=rc(n,n.pendingProps),t.flags|=2,Hn(n),n.memoizedState=null,t}function o_(t,n,r){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Xe){if(s.mode==="hidden")return t=rc(n,s),n.lanes=536870912,ks(null,t);if(rf(n),(t=Et)?(t=Nb(t,ea),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:bi!==null?{id:Sa,overflow:wa}:null,retryLane:536870912,hydrationErrors:null},r=Xm(t),r.return=n,n.child=r,Wt=n,Et=null)):t=null,t===null)throw xi(n);return n.lanes=536870912,null}return rc(n,s)}var p=t.memoizedState;if(p!==null){var v=p.dehydrated;if(rf(n),f)if(n.flags&256)n.flags&=-257,n=hg(t,n,r);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(l(558));else if(Ft||al(t,n,r,!1),f=(r&t.childLanes)!==0,Ft||f){if(s=gt,s!==null&&(v=Mt(s,r),v!==0&&v!==p.retryLane))throw p.retryLane=v,or(t,v),Tn(s,t,v),kf;gc(),n=hg(t,n,r)}else t=p.treeContext,Et=na(v.nextSibling),Wt=n,Xe=!0,yi=null,ea=!1,t!==null&&Jm(n,t),n=rc(n,s),n.flags|=4096;return n}return t=Ha(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function lc(t,n){var r=n.ref;if(r===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(t===null||t.ref!==r)&&(n.flags|=4194816)}}function Tf(t,n,r,s,f){return dr(n),r=sf(t,n,r,s,void 0,f),s=of(),t!==null&&!Ft?(cf(t,n,f),Ka(t,n,f)):(Xe&&s&&Fu(n),n.flags|=1,en(t,n,r,f),n.child)}function mg(t,n,r,s,f,p){return dr(n),n.updateQueue=null,r=bp(n,s,r,f),gp(t),s=of(),t!==null&&!Ft?(cf(t,n,p),Ka(t,n,p)):(Xe&&s&&Fu(n),n.flags|=1,en(t,n,r,p),n.child)}function pg(t,n,r,s,f){if(dr(n),n.stateNode===null){var p=Jr,v=r.contextType;typeof v=="object"&&v!==null&&(p=Jt(v)),p=new r(s,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=wf,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=s,p.state=n.memoizedState,p.refs={},Wu(n),v=r.contextType,p.context=typeof v=="object"&&v!==null?Jt(v):Jr,p.state=n.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(Sf(n,r,v,s),p.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&wf.enqueueReplaceState(p,p.state,null),Es(n,s,p,f),vs(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){p=n.stateNode;var _=n.memoizedProps,R=yr(r,_);p.props=R;var P=p.context,W=r.contextType;v=Jr,typeof W=="object"&&W!==null&&(v=Jt(W));var ne=r.getDerivedStateFromProps;W=typeof ne=="function"||typeof p.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,W||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_||P!==v)&&tg(n,p,s,v),Ei=!1;var K=n.memoizedState;p.state=K,Es(n,s,p,f),vs(),P=n.memoizedState,_||K!==P||Ei?(typeof ne=="function"&&(Sf(n,r,ne,s),P=n.memoizedState),(R=Ei||eg(n,r,R,s,K,P,v))?(W||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=P),p.props=s,p.state=P,p.context=v,s=R):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,Ju(t,n),v=n.memoizedProps,W=yr(r,v),p.props=W,ne=n.pendingProps,K=p.context,P=r.contextType,R=Jr,typeof P=="object"&&P!==null&&(R=Jt(P)),_=r.getDerivedStateFromProps,(P=typeof _=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==ne||K!==R)&&tg(n,p,s,R),Ei=!1,K=n.memoizedState,p.state=K,Es(n,s,p,f),vs();var Y=n.memoizedState;v!==ne||K!==Y||Ei||t!==null&&t.dependencies!==null&&Fo(t.dependencies)?(typeof _=="function"&&(Sf(n,r,_,s),Y=n.memoizedState),(W=Ei||eg(n,r,W,s,K,Y,R)||t!==null&&t.dependencies!==null&&Fo(t.dependencies))?(P||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Y,R),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Y,R)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),p.props=s,p.state=Y,p.context=R,s=W):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),s=!1)}return p=s,lc(t,n),s=(n.flags&128)!==0,p||s?(p=n.stateNode,r=s&&typeof r.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&s?(n.child=gr(n,t.child,null,f),n.child=gr(n,null,r,f)):en(t,n,r,f),n.memoizedState=p.state,t=n.child):t=Ka(t,n,f),t}function gg(t,n,r,s){return ur(),n.flags|=256,en(t,n,r,s),n.child}var Cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Af(t){return{baseLanes:t,cachePool:rp()}}function Rf(t,n,r){return t=t!==null?t.childLanes&~r:0,n&&(t|=qn),t}function bg(t,n,r){var s=n.pendingProps,f=!1,p=(n.flags&128)!==0,v;if((v=p)||(v=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),v&&(f=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,t===null){if(Xe){if(f?wi(n):Ni(),(t=Et)?(t=Nb(t,ea),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:bi!==null?{id:Sa,overflow:wa}:null,retryLane:536870912,hydrationErrors:null},r=Xm(t),r.return=n,n.child=r,Wt=n,Et=null)):t=null,t===null)throw xi(n);return dd(t)?n.lanes=32:n.lanes=536870912,null}var _=s.children;return s=s.fallback,f?(Ni(),f=n.mode,_=sc({mode:"hidden",children:_},f),s=cr(s,f,r,null),_.return=n,s.return=n,_.sibling=s,n.child=_,s=n.child,s.memoizedState=Af(r),s.childLanes=Rf(t,v,r),n.memoizedState=Cf,ks(null,s)):(wi(n),Of(n,_))}var R=t.memoizedState;if(R!==null&&(_=R.dehydrated,_!==null)){if(p)n.flags&256?(wi(n),n.flags&=-257,n=Mf(t,n,r)):n.memoizedState!==null?(Ni(),n.child=t.child,n.flags|=128,n=null):(Ni(),_=s.fallback,f=n.mode,s=sc({mode:"visible",children:s.children},f),_=cr(_,f,r,null),_.flags|=2,s.return=n,_.return=n,s.sibling=_,n.child=s,gr(n,t.child,null,r),s=n.child,s.memoizedState=Af(r),s.childLanes=Rf(t,v,r),n.memoizedState=Cf,n=ks(null,s));else if(wi(n),dd(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var P=v.dgst;v=P,s=Error(l(419)),s.stack="",s.digest=v,ms({value:s,source:null,stack:null}),n=Mf(t,n,r)}else if(Ft||al(t,n,r,!1),v=(r&t.childLanes)!==0,Ft||v){if(v=gt,v!==null&&(s=Mt(v,r),s!==0&&s!==R.retryLane))throw R.retryLane=s,or(t,s),Tn(v,t,s),kf;fd(_)||gc(),n=Mf(t,n,r)}else fd(_)?(n.flags|=192,n.child=t.child,n=null):(t=R.treeContext,Et=na(_.nextSibling),Wt=n,Xe=!0,yi=null,ea=!1,t!==null&&Jm(n,t),n=Of(n,s.children),n.flags|=4096);return n}return f?(Ni(),_=s.fallback,f=n.mode,R=t.child,P=R.sibling,s=Ha(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,P!==null?_=Ha(P,_):(_=cr(_,f,r,null),_.flags|=2),_.return=n,s.return=n,s.sibling=_,n.child=s,ks(null,s),s=n.child,_=t.child.memoizedState,_===null?_=Af(r):(f=_.cachePool,f!==null?(R=Bt._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=rp(),_={baseLanes:_.baseLanes|r,cachePool:f}),s.memoizedState=_,s.childLanes=Rf(t,v,r),n.memoizedState=Cf,ks(t.child,s)):(wi(n),r=t.child,t=r.sibling,r=Ha(r,{mode:"visible",children:s.children}),r.return=n,r.sibling=null,t!==null&&(v=n.deletions,v===null?(n.deletions=[t],n.flags|=16):v.push(t)),n.child=r,n.memoizedState=null,r)}function Of(t,n){return n=sc({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function sc(t,n){return t=Un(22,t,null,n),t.lanes=0,t}function Mf(t,n,r){return gr(n,t.child,null,r),t=Of(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function yg(t,n,r){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Ku(t.return,n,r)}function Df(t,n,r,s,f,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:f,treeForkCount:p}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=r,v.tailMode=f,v.treeForkCount=p)}function xg(t,n,r){var s=n.pendingProps,f=s.revealOrder,p=s.tail;s=s.children;var v=zt.current,_=(v&2)!==0;if(_?(v=v&1|2,n.flags|=128):v&=1,k(zt,v),en(t,n,s,r),s=Xe?hs:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&yg(t,r,n);else if(t.tag===19)yg(t,r,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(r=n.child,f=null;r!==null;)t=r.alternate,t!==null&&Vo(t)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),Df(n,!1,f,r,p,s);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&Vo(t)===null){n.child=f;break}t=f.sibling,f.sibling=r,r=f,f=t}Df(n,!0,r,null,p,s);break;case"together":Df(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Ka(t,n,r){if(t!==null&&(n.dependencies=t.dependencies),Ci|=n.lanes,(r&n.childLanes)===0)if(t!==null){if(al(t,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(l(153));if(n.child!==null){for(t=n.child,r=Ha(t,t.pendingProps),n.child=r,r.return=n;t.sibling!==null;)t=t.sibling,r=r.sibling=Ha(t,t.pendingProps),r.return=n;r.sibling=null}return n.child}function Lf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Fo(t)))}function c_(t,n,r){switch(n.tag){case 3:rt(n,n.stateNode.containerInfo),vi(n,Bt,t.memoizedState.cache),ur();break;case 27:case 5:$t(n);break;case 4:rt(n,n.stateNode.containerInfo);break;case 10:vi(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,rf(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(wi(n),n.flags|=128,null):(r&n.child.childLanes)!==0?bg(t,n,r):(wi(n),t=Ka(t,n,r),t!==null?t.sibling:null);wi(n);break;case 19:var f=(t.flags&128)!==0;if(s=(r&n.childLanes)!==0,s||(al(t,n,r,!1),s=(r&n.childLanes)!==0),f){if(s)return xg(t,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),k(zt,zt.current),s)break;return null;case 22:return n.lanes=0,fg(t,n,r,n.pendingProps);case 24:vi(n,Bt,t.memoizedState.cache)}return Ka(t,n,r)}function vg(t,n,r){if(t!==null)if(t.memoizedProps!==n.pendingProps)Ft=!0;else{if(!Lf(t,r)&&(n.flags&128)===0)return Ft=!1,c_(t,n,r);Ft=(t.flags&131072)!==0}else Ft=!1,Xe&&(n.flags&1048576)!==0&&Wm(n,hs,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=mr(n.elementType),n.type=t,typeof t=="function")Uu(t)?(s=yr(t,s),n.tag=1,n=pg(null,n,t,s,r)):(n.tag=0,n=Tf(null,n,t,s,r));else{if(t!=null){var f=t.$$typeof;if(f===H){n.tag=11,n=og(null,n,t,s,r);break e}else if(f===G){n.tag=14,n=cg(null,n,t,s,r);break e}}throw n=le(t)||t,Error(l(306,n,""))}}return n;case 0:return Tf(t,n,n.type,n.pendingProps,r);case 1:return s=n.type,f=yr(s,n.pendingProps),pg(t,n,s,f,r);case 3:e:{if(rt(n,n.stateNode.containerInfo),t===null)throw Error(l(387));s=n.pendingProps;var p=n.memoizedState;f=p.element,Ju(t,n),Es(n,s,null,r);var v=n.memoizedState;if(s=v.cache,vi(n,Bt,s),s!==p.cache&&Yu(n,[Bt],r,!0),vs(),s=v.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=gg(t,n,s,r);break e}else if(s!==f){f=Zn(Error(l(424)),n),ms(f),n=gg(t,n,s,r);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Et=na(t.firstChild),Wt=n,Xe=!0,yi=null,ea=!0,r=fp(n,null,s,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(ur(),s===f){n=Ka(t,n,r);break e}en(t,n,s,r)}n=n.child}return n;case 26:return lc(t,n),t===null?(r=Ob(n.type,null,n.pendingProps,null))?n.memoizedState=r:Xe||(r=n.type,t=n.pendingProps,s=Sc(xe.current).createElement(r),s[Dt]=n,s[an]=t,tn(s,r,t),It(s),n.stateNode=s):n.memoizedState=Ob(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return $t(n),t===null&&Xe&&(s=n.stateNode=Cb(n.type,n.pendingProps,xe.current),Wt=n,ea=!0,f=Et,Di(n.type)?(hd=f,Et=na(s.firstChild)):Et=f),en(t,n,n.pendingProps.children,r),lc(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Xe&&((f=s=Et)&&(s=B_(s,n.type,n.pendingProps,ea),s!==null?(n.stateNode=s,Wt=n,Et=na(s.firstChild),ea=!1,f=!0):f=!1),f||xi(n)),$t(n),f=n.type,p=n.pendingProps,v=t!==null?t.memoizedProps:null,s=p.children,od(f,p)?s=null:v!==null&&od(f,v)&&(n.flags|=32),n.memoizedState!==null&&(f=sf(t,n,e_,null,null,r),Fs._currentValue=f),lc(t,n),en(t,n,s,r),n.child;case 6:return t===null&&Xe&&((t=r=Et)&&(r=H_(r,n.pendingProps,ea),r!==null?(n.stateNode=r,Wt=n,Et=null,t=!0):t=!1),t||xi(n)),null;case 13:return bg(t,n,r);case 4:return rt(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=gr(n,null,s,r):en(t,n,s,r),n.child;case 11:return og(t,n,n.type,n.pendingProps,r);case 7:return en(t,n,n.pendingProps,r),n.child;case 8:return en(t,n,n.pendingProps.children,r),n.child;case 12:return en(t,n,n.pendingProps.children,r),n.child;case 10:return s=n.pendingProps,vi(n,n.type,s.value),en(t,n,s.children,r),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,dr(n),f=Jt(f),s=s(f),n.flags|=1,en(t,n,s,r),n.child;case 14:return cg(t,n,n.type,n.pendingProps,r);case 15:return ug(t,n,n.type,n.pendingProps,r);case 19:return xg(t,n,r);case 31:return o_(t,n,r);case 22:return fg(t,n,r,n.pendingProps);case 24:return dr(n),s=Jt(Bt),t===null?(f=Xu(),f===null&&(f=gt,p=Qu(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=r),f=p),n.memoizedState={parent:s,cache:f},Wu(n),vi(n,Bt,f)):((t.lanes&r)!==0&&(Ju(t,n),Es(n,null,null,r),vs()),f=t.memoizedState,p=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),vi(n,Bt,s)):(s=p.cache,vi(n,Bt,s),s!==f.cache&&Yu(n,[Bt],r,!0))),en(t,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Ya(t){t.flags|=4}function zf(t,n,r,s,f){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(Yg())t.flags|=8192;else throw pr=$o,Zu}else t.flags&=-16777217}function Eg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jb(n))if(Yg())t.flags|=8192;else throw pr=$o,Zu}function oc(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Me():536870912,t.lanes|=n,pl|=n)}function Ts(t,n){if(!Xe)switch(t.tailMode){case"hidden":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function _t(t){var n=t.alternate!==null&&t.alternate.child===t.child,r=0,s=0;if(n)for(var f=t.child;f!==null;)r|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)r|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=s,t.childLanes=r,n}function u_(t,n,r){var s=n.pendingProps;switch(qu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(n),null;case 1:return _t(n),null;case 3:return r=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Pa(Bt),nt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(nl(n)?Ya(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Gu())),_t(n),null;case 26:var f=n.type,p=n.memoizedState;return t===null?(Ya(n),p!==null?(_t(n),Eg(n,p)):(_t(n),zf(n,f,null,s,r))):p?p!==t.memoizedState?(Ya(n),_t(n),Eg(n,p)):(_t(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ya(n),_t(n),zf(n,f,t,s,r)),null;case 27:if(Dn(n),r=xe.current,f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ya(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}t=de.current,nl(n)?ep(n):(t=Cb(f,s,r),n.stateNode=t,Ya(n))}return _t(n),null;case 5:if(Dn(n),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&Ya(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return _t(n),null}if(p=de.current,nl(n))ep(n);else{var v=Sc(xe.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?v.createElement(f,{is:s.is}):v.createElement(f)}}p[Dt]=n,p[an]=s;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=p;e:switch(tn(p,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ya(n)}}return _t(n),zf(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,r),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&Ya(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(t=xe.current,nl(n)){if(t=n.stateNode,r=n.memoizedProps,s=null,f=Wt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[Dt]=n,t=!!(t.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||bb(t.nodeValue,r)),t||xi(n,!0)}else t=Sc(t).createTextNode(s),t[Dt]=n,n.stateNode=t}return _t(n),null;case 31:if(r=n.memoizedState,t===null||t.memoizedState!==null){if(s=nl(n),r!==null){if(t===null){if(!s)throw Error(l(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[Dt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),t=!1}else r=Gu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),t=!0;if(!t)return n.flags&256?(Hn(n),n):(Hn(n),null);if((n.flags&128)!==0)throw Error(l(558))}return _t(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=nl(n),s!==null&&s.dehydrated!==null){if(t===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Dt]=n}else ur(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;_t(n),f=!1}else f=Gu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Hn(n),n):(Hn(n),null)}return Hn(n),(n.flags&128)!==0?(n.lanes=r,n):(r=s!==null,t=t!==null&&t.memoizedState!==null,r&&(s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==f&&(s.flags|=2048)),r!==t&&r&&(n.child.flags|=8192),oc(n,n.updateQueue),_t(n),null);case 4:return nt(),t===null&&ad(n.stateNode.containerInfo),_t(n),null;case 10:return Pa(n.type),_t(n),null;case 19:if(Q(zt),s=n.memoizedState,s===null)return _t(n),null;if(f=(n.flags&128)!==0,p=s.rendering,p===null)if(f)Ts(s,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(p=Vo(t),p!==null){for(n.flags|=128,Ts(s,!1),t=p.updateQueue,n.updateQueue=t,oc(n,t),n.subtreeFlags=0,t=r,r=n.child;r!==null;)Vm(r,t),r=r.sibling;return k(zt,zt.current&1|2),Xe&&Fa(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&kt()>hc&&(n.flags|=128,f=!0,Ts(s,!1),n.lanes=4194304)}else{if(!f)if(t=Vo(p),t!==null){if(n.flags|=128,f=!0,t=t.updateQueue,n.updateQueue=t,oc(n,t),Ts(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Xe)return _t(n),null}else 2*kt()-s.renderingStartTime>hc&&r!==536870912&&(n.flags|=128,f=!0,Ts(s,!1),n.lanes=4194304);s.isBackwards?(p.sibling=n.child,n.child=p):(t=s.last,t!==null?t.sibling=p:n.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=zt.current,k(zt,f?r&1|2:r&1),Xe&&Fa(n,s.treeForkCount),t):(_t(n),null);case 22:case 23:return Hn(n),af(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(r&536870912)!==0&&(n.flags&128)===0&&(_t(n),n.subtreeFlags&6&&(n.flags|=8192)):_t(n),r=n.updateQueue,r!==null&&oc(n,r.retryQueue),r=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==r&&(n.flags|=2048),t!==null&&Q(hr),null;case 24:return r=null,t!==null&&(r=t.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Pa(Bt),_t(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function f_(t,n){switch(qu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Pa(Bt),nt(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Dn(n),null;case 31:if(n.memoizedState!==null){if(Hn(n),n.alternate===null)throw Error(l(340));ur()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Hn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));ur()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Q(zt),null;case 4:return nt(),null;case 10:return Pa(n.type),null;case 22:case 23:return Hn(n),af(),t!==null&&Q(hr),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Pa(Bt),null;case 25:return null;default:return null}}function _g(t,n){switch(qu(n),n.tag){case 3:Pa(Bt),nt();break;case 26:case 27:case 5:Dn(n);break;case 4:nt();break;case 31:n.memoizedState!==null&&Hn(n);break;case 13:Hn(n);break;case 19:Q(zt);break;case 10:Pa(n.type);break;case 22:case 23:Hn(n),af(),t!==null&&Q(hr);break;case 24:Pa(Bt)}}function Cs(t,n){try{var r=n.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var f=s.next;r=f;do{if((r.tag&t)===t){s=void 0;var p=r.create,v=r.inst;s=p(),v.destroy=s}r=r.next}while(r!==f)}}catch(_){ut(n,n.return,_)}}function ki(t,n,r){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next;s=p;do{if((s.tag&t)===t){var v=s.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,f=n;var R=r,P=_;try{P()}catch(W){ut(f,R,W)}}}s=s.next}while(s!==p)}}catch(W){ut(n,n.return,W)}}function Sg(t){var n=t.updateQueue;if(n!==null){var r=t.stateNode;try{hp(n,r)}catch(s){ut(t,t.return,s)}}}function wg(t,n,r){r.props=yr(t.type,t.memoizedProps),r.state=t.memoizedState;try{r.componentWillUnmount()}catch(s){ut(t,n,s)}}function As(t,n){try{var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof r=="function"?t.refCleanup=r(s):r.current=s}}catch(f){ut(t,n,f)}}function Na(t,n){var r=t.ref,s=t.refCleanup;if(r!==null)if(typeof s=="function")try{s()}catch(f){ut(t,n,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){ut(t,n,f)}else r.current=null}function Ng(t){var n=t.type,r=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&s.focus();break e;case"img":r.src?s.src=r.src:r.srcSet&&(s.srcset=r.srcSet)}}catch(f){ut(t,t.return,f)}}function jf(t,n,r){try{var s=t.stateNode;D_(s,t.type,r,n),s[an]=n}catch(f){ut(t,t.return,f)}}function kg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Di(t.type)||t.tag===4}function If(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||kg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Di(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uf(t,n,r){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(t,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(t),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=fe));else if(s!==4&&(s===27&&Di(t.type)&&(r=t.stateNode,n=null),t=t.child,t!==null))for(Uf(t,n,r),t=t.sibling;t!==null;)Uf(t,n,r),t=t.sibling}function cc(t,n,r){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(s!==4&&(s===27&&Di(t.type)&&(r=t.stateNode),t=t.child,t!==null))for(cc(t,n,r),t=t.sibling;t!==null;)cc(t,n,r),t=t.sibling}function Tg(t){var n=t.stateNode,r=t.memoizedProps;try{for(var s=t.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);tn(n,s,r),n[Dt]=t,n[an]=r}catch(p){ut(t,t.return,p)}}var Qa=!1,qt=!1,Bf=!1,Cg=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function d_(t,n){if(t=t.containerInfo,ld=Rc,t=Hm(t),Ou(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var f=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{r.nodeType,p.nodeType}catch{r=null;break e}var v=0,_=-1,R=-1,P=0,W=0,ne=t,K=null;t:for(;;){for(var Y;ne!==r||f!==0&&ne.nodeType!==3||(_=v+f),ne!==p||s!==0&&ne.nodeType!==3||(R=v+s),ne.nodeType===3&&(v+=ne.nodeValue.length),(Y=ne.firstChild)!==null;)K=ne,ne=Y;for(;;){if(ne===t)break t;if(K===r&&++P===f&&(_=v),K===p&&++W===s&&(R=v),(Y=ne.nextSibling)!==null)break;ne=K,K=ne.parentNode}ne=Y}r=_===-1||R===-1?null:{start:_,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(sd={focusedElem:t,selectionRange:r},Rc=!1,Qt=n;Qt!==null;)if(n=Qt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Qt=t;else for(;Qt!==null;){switch(n=Qt,p=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(r=0;r<t.length;r++)f=t[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,r=n,f=p.memoizedProps,p=p.memoizedState,s=r.stateNode;try{var be=yr(r.type,f);t=s.getSnapshotBeforeUpdate(be,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ae){ut(r,r.return,Ae)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,r=t.nodeType,r===9)ud(t);else if(r===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ud(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=n.sibling,t!==null){t.return=n.return,Qt=t;break}Qt=n.return}}function Ag(t,n,r){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Xa(t,r),s&4&&Cs(5,r);break;case 1:if(Xa(t,r),s&4)if(t=r.stateNode,n===null)try{t.componentDidMount()}catch(v){ut(r,r.return,v)}else{var f=yr(r.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(f,n,t.__reactInternalSnapshotBeforeUpdate)}catch(v){ut(r,r.return,v)}}s&64&&Sg(r),s&512&&As(r,r.return);break;case 3:if(Xa(t,r),s&64&&(t=r.updateQueue,t!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{hp(t,n)}catch(v){ut(r,r.return,v)}}break;case 27:n===null&&s&4&&Tg(r);case 26:case 5:Xa(t,r),n===null&&s&4&&Ng(r),s&512&&As(r,r.return);break;case 12:Xa(t,r);break;case 31:Xa(t,r),s&4&&Mg(t,r);break;case 13:Xa(t,r),s&4&&Dg(t,r),s&64&&(t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(r=E_.bind(null,r),F_(t,r))));break;case 22:if(s=r.memoizedState!==null||Qa,!s){n=n!==null&&n.memoizedState!==null||qt,f=Qa;var p=qt;Qa=s,(qt=n)&&!p?Za(t,r,(r.subtreeFlags&8772)!==0):Xa(t,r),Qa=f,qt=p}break;case 30:break;default:Xa(t,r)}}function Rg(t){var n=t.alternate;n!==null&&(t.alternate=null,Rg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Jl(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,Sn=!1;function Va(t,n,r){for(r=r.child;r!==null;)Og(t,n,r),r=r.sibling}function Og(t,n,r){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Xt,r)}catch{}switch(r.tag){case 26:qt||Na(r,n),Va(t,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:qt||Na(r,n);var s=wt,f=Sn;Di(r.type)&&(wt=r.stateNode,Sn=!1),Va(t,n,r),Us(r.stateNode),wt=s,Sn=f;break;case 5:qt||Na(r,n);case 6:if(s=wt,f=Sn,wt=null,Va(t,n,r),wt=s,Sn=f,wt!==null)if(Sn)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(r.stateNode)}catch(p){ut(r,n,p)}else try{wt.removeChild(r.stateNode)}catch(p){ut(r,n,p)}break;case 18:wt!==null&&(Sn?(t=wt,Sb(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,r.stateNode),Sl(t)):Sb(wt,r.stateNode));break;case 4:s=wt,f=Sn,wt=r.stateNode.containerInfo,Sn=!0,Va(t,n,r),wt=s,Sn=f;break;case 0:case 11:case 14:case 15:ki(2,r,n),qt||ki(4,r,n),Va(t,n,r);break;case 1:qt||(Na(r,n),s=r.stateNode,typeof s.componentWillUnmount=="function"&&wg(r,n,s)),Va(t,n,r);break;case 21:Va(t,n,r);break;case 22:qt=(s=qt)||r.memoizedState!==null,Va(t,n,r),qt=s;break;default:Va(t,n,r)}}function Mg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Sl(t)}catch(r){ut(n,n.return,r)}}}function Dg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Sl(t)}catch(r){ut(n,n.return,r)}}function h_(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Cg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Cg),n;default:throw Error(l(435,t.tag))}}function uc(t,n){var r=h_(t);n.forEach(function(s){if(!r.has(s)){r.add(s);var f=__.bind(null,t,s);s.then(f,f)}})}function wn(t,n){var r=n.deletions;if(r!==null)for(var s=0;s<r.length;s++){var f=r[s],p=t,v=n,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(Di(_.type)){wt=_.stateNode,Sn=!1;break e}break;case 5:wt=_.stateNode,Sn=!1;break e;case 3:case 4:wt=_.stateNode.containerInfo,Sn=!0;break e}_=_.return}if(wt===null)throw Error(l(160));Og(p,v,f),wt=null,Sn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Lg(n,t),n=n.sibling}var da=null;function Lg(t,n){var r=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:wn(n,t),Nn(t),s&4&&(ki(3,t,t.return),Cs(3,t),ki(5,t,t.return));break;case 1:wn(n,t),Nn(t),s&512&&(qt||r===null||Na(r,r.return)),s&64&&Qa&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(r=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=r===null?s:r.concat(s))));break;case 26:var f=da;if(wn(n,t),Nn(t),s&512&&(qt||r===null||Na(r,r.return)),s&4){var p=r!==null?r.memoizedState:null;if(s=t.memoizedState,r===null)if(s===null)if(t.stateNode===null){e:{s=t.type,r=t.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":p=f.getElementsByTagName("title")[0],(!p||p[nr]||p[Dt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(s),f.head.insertBefore(p,f.querySelector("head > title"))),tn(p,s,r),p[Dt]=t,It(p),s=p;break e;case"link":var v=Lb("link","href",f).get(s+(r.href||""));if(v){for(var _=0;_<v.length;_++)if(p=v[_],p.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&p.getAttribute("rel")===(r.rel==null?null:r.rel)&&p.getAttribute("title")===(r.title==null?null:r.title)&&p.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(_,1);break t}}p=f.createElement(s),tn(p,s,r),f.head.appendChild(p);break;case"meta":if(v=Lb("meta","content",f).get(s+(r.content||""))){for(_=0;_<v.length;_++)if(p=v[_],p.getAttribute("content")===(r.content==null?null:""+r.content)&&p.getAttribute("name")===(r.name==null?null:r.name)&&p.getAttribute("property")===(r.property==null?null:r.property)&&p.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&p.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(_,1);break t}}p=f.createElement(s),tn(p,s,r),f.head.appendChild(p);break;default:throw Error(l(468,s))}p[Dt]=t,It(p),s=p}t.stateNode=s}else zb(f,t.type,t.stateNode);else t.stateNode=Db(f,s,t.memoizedProps);else p!==s?(p===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):p.count--,s===null?zb(f,t.type,t.stateNode):Db(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&jf(t,t.memoizedProps,r.memoizedProps)}break;case 27:wn(n,t),Nn(t),s&512&&(qt||r===null||Na(r,r.return)),r!==null&&s&4&&jf(t,t.memoizedProps,r.memoizedProps);break;case 5:if(wn(n,t),Nn(t),s&512&&(qt||r===null||Na(r,r.return)),t.flags&32){f=t.stateNode;try{Re(f,"")}catch(be){ut(t,t.return,be)}}s&4&&t.stateNode!=null&&(f=t.memoizedProps,jf(t,f,r!==null?r.memoizedProps:f)),s&1024&&(Bf=!0);break;case 6:if(wn(n,t),Nn(t),s&4){if(t.stateNode===null)throw Error(l(162));s=t.memoizedProps,r=t.stateNode;try{r.nodeValue=s}catch(be){ut(t,t.return,be)}}break;case 3:if(kc=null,f=da,da=wc(n.containerInfo),wn(n,t),da=f,Nn(t),s&4&&r!==null&&r.memoizedState.isDehydrated)try{Sl(n.containerInfo)}catch(be){ut(t,t.return,be)}Bf&&(Bf=!1,zg(t));break;case 4:s=da,da=wc(t.stateNode.containerInfo),wn(n,t),Nn(t),da=s;break;case 12:wn(n,t),Nn(t);break;case 31:wn(n,t),Nn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,uc(t,s)));break;case 13:wn(n,t),Nn(t),t.child.flags&8192&&t.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(dc=kt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,uc(t,s)));break;case 22:f=t.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,P=Qa,W=qt;if(Qa=P||f,qt=W||R,wn(n,t),qt=W,Qa=P,Nn(t),s&8192)e:for(n=t.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||R||Qa||qt||xr(t)),r=null,n=t;;){if(n.tag===5||n.tag===26){if(r===null){R=r=n;try{if(p=R.stateNode,f)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=R.stateNode;var ne=R.memoizedProps.style,K=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;_.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(be){ut(R,R.return,be)}}}else if(n.tag===6){if(r===null){R=n;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(be){ut(R,R.return,be)}}}else if(n.tag===18){if(r===null){R=n;try{var Y=R.stateNode;f?wb(Y,!0):wb(R.stateNode,!1)}catch(be){ut(R,R.return,be)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(r=s.retryQueue,r!==null&&(s.retryQueue=null,uc(t,r))));break;case 19:wn(n,t),Nn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,uc(t,s)));break;case 30:break;case 21:break;default:wn(n,t),Nn(t)}}function Nn(t){var n=t.flags;if(n&2){try{for(var r,s=t.return;s!==null;){if(kg(s)){r=s;break}s=s.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,p=If(t);cc(t,p,f);break;case 5:var v=r.stateNode;r.flags&32&&(Re(v,""),r.flags&=-33);var _=If(t);cc(t,_,v);break;case 3:case 4:var R=r.stateNode.containerInfo,P=If(t);Uf(t,P,R);break;default:throw Error(l(161))}}catch(W){ut(t,t.return,W)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function zg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;zg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Xa(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Ag(t,n.alternate,n),n=n.sibling}function xr(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ki(4,n,n.return),xr(n);break;case 1:Na(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&wg(n,n.return,r),xr(n);break;case 27:Us(n.stateNode);case 26:case 5:Na(n,n.return),xr(n);break;case 22:n.memoizedState===null&&xr(n);break;case 30:xr(n);break;default:xr(n)}t=t.sibling}}function Za(t,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=t,p=n,v=p.flags;switch(p.tag){case 0:case 11:case 15:Za(f,p,r),Cs(4,p);break;case 1:if(Za(f,p,r),s=p,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(P){ut(s,s.return,P)}if(s=p,f=s.updateQueue,f!==null){var _=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)dp(R[f],_)}catch(P){ut(s,s.return,P)}}r&&v&64&&Sg(p),As(p,p.return);break;case 27:Tg(p);case 26:case 5:Za(f,p,r),r&&s===null&&v&4&&Ng(p),As(p,p.return);break;case 12:Za(f,p,r);break;case 31:Za(f,p,r),r&&v&4&&Mg(f,p);break;case 13:Za(f,p,r),r&&v&4&&Dg(f,p);break;case 22:p.memoizedState===null&&Za(f,p,r),As(p,p.return);break;case 30:break;default:Za(f,p,r)}n=n.sibling}}function Hf(t,n){var r=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==r&&(t!=null&&t.refCount++,r!=null&&ps(r))}function Ff(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&ps(t))}function ha(t,n,r,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)jg(t,n,r,s),n=n.sibling}function jg(t,n,r,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:ha(t,n,r,s),f&2048&&Cs(9,n);break;case 1:ha(t,n,r,s);break;case 3:ha(t,n,r,s),f&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&ps(t)));break;case 12:if(f&2048){ha(t,n,r,s),t=n.stateNode;try{var p=n.memoizedProps,v=p.id,_=p.onPostCommit;typeof _=="function"&&_(v,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){ut(n,n.return,R)}}else ha(t,n,r,s);break;case 31:ha(t,n,r,s);break;case 13:ha(t,n,r,s);break;case 23:break;case 22:p=n.stateNode,v=n.alternate,n.memoizedState!==null?p._visibility&2?ha(t,n,r,s):Rs(t,n):p._visibility&2?ha(t,n,r,s):(p._visibility|=2,dl(t,n,r,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Hf(v,n);break;case 24:ha(t,n,r,s),f&2048&&Ff(n.alternate,n);break;default:ha(t,n,r,s)}}function dl(t,n,r,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=t,v=n,_=r,R=s,P=v.flags;switch(v.tag){case 0:case 11:case 15:dl(p,v,_,R,f),Cs(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?dl(p,v,_,R,f):Rs(p,v):(W._visibility|=2,dl(p,v,_,R,f)),f&&P&2048&&Hf(v.alternate,v);break;case 24:dl(p,v,_,R,f),f&&P&2048&&Ff(v.alternate,v);break;default:dl(p,v,_,R,f)}n=n.sibling}}function Rs(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=t,s=n,f=s.flags;switch(s.tag){case 22:Rs(r,s),f&2048&&Hf(s.alternate,s);break;case 24:Rs(r,s),f&2048&&Ff(s.alternate,s);break;default:Rs(r,s)}n=n.sibling}}var Os=8192;function hl(t,n,r){if(t.subtreeFlags&Os)for(t=t.child;t!==null;)Ig(t,n,r),t=t.sibling}function Ig(t,n,r){switch(t.tag){case 26:hl(t,n,r),t.flags&Os&&t.memoizedState!==null&&J_(r,da,t.memoizedState,t.memoizedProps);break;case 5:hl(t,n,r);break;case 3:case 4:var s=da;da=wc(t.stateNode.containerInfo),hl(t,n,r),da=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Os,Os=16777216,hl(t,n,r),Os=s):hl(t,n,r));break;default:hl(t,n,r)}}function Ug(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Ms(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];Qt=s,Hg(s,t)}Ug(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bg(t),t=t.sibling}function Bg(t){switch(t.tag){case 0:case 11:case 15:Ms(t),t.flags&2048&&ki(9,t,t.return);break;case 3:Ms(t);break;case 12:Ms(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,fc(t)):Ms(t);break;default:Ms(t)}}function fc(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];Qt=s,Hg(s,t)}Ug(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ki(8,n,n.return),fc(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,fc(n));break;default:fc(n)}t=t.sibling}}function Hg(t,n){for(;Qt!==null;){var r=Qt;switch(r.tag){case 0:case 11:case 15:ki(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var s=r.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ps(r.memoizedState.cache)}if(s=r.child,s!==null)s.return=r,Qt=s;else e:for(r=t;Qt!==null;){s=Qt;var f=s.sibling,p=s.return;if(Rg(s),s===r){Qt=null;break e}if(f!==null){f.return=p,Qt=f;break e}Qt=p}}}var m_={getCacheForType:function(t){var n=Jt(Bt),r=n.data.get(t);return r===void 0&&(r=t(),n.data.set(t,r)),r},cacheSignal:function(){return Jt(Bt).controller.signal}},p_=typeof WeakMap=="function"?WeakMap:Map,at=0,gt=null,Pe=null,Ye=0,ct=0,Fn=null,Ti=!1,ml=!1,qf=!1,Wa=0,Rt=0,Ci=0,vr=0,Pf=0,qn=0,pl=0,Ds=null,kn=null,Gf=!1,dc=0,Fg=0,hc=1/0,mc=null,Ai=null,Kt=0,Ri=null,gl=null,Ja=0,$f=0,Kf=null,qg=null,Ls=0,Yf=null;function Pn(){return(at&2)!==0&&Ye!==0?Ye&-Ye:F.T!==null?Jf():qr()}function Pg(){if(qn===0)if((Ye&536870912)===0||Xe){var t=Fr;Fr<<=1,(Fr&3932160)===0&&(Fr=262144),qn=t}else qn=536870912;return t=Bn.current,t!==null&&(t.flags|=32),qn}function Tn(t,n,r){(t===gt&&(ct===2||ct===9)||t.cancelPendingCommit!==null)&&(bl(t,0),Oi(t,Ye,qn,!1)),pt(t,r),((at&2)===0||t!==gt)&&(t===gt&&((at&2)===0&&(vr|=r),Rt===4&&Oi(t,Ye,qn,!1)),ka(t))}function Gg(t,n,r){if((at&6)!==0)throw Error(l(327));var s=!r&&(n&127)===0&&(n&t.expiredLanes)===0||J(t,n),f=s?y_(t,n):Vf(t,n,!0),p=s;do{if(f===0){ml&&!s&&Oi(t,n,0,!1);break}else{if(r=t.current.alternate,p&&!g_(r)){f=Vf(t,n,!1),p=!1;continue}if(f===2){if(p=n,t.errorRecoveryDisabledLanes&p)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var _=t;f=Ds;var R=_.current.memoizedState.isDehydrated;if(R&&(bl(_,v).flags|=256),v=Vf(_,v,!1),v!==2){if(qf&&!R){_.errorRecoveryDisabledLanes|=p,vr|=p,f=4;break e}p=kn,kn=f,p!==null&&(kn===null?kn=p:kn.push.apply(kn,p))}f=v}if(p=!1,f!==2)continue}}if(f===1){bl(t,0),Oi(t,n,0,!0);break}e:{switch(s=t,p=f,p){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Oi(s,n,qn,!Ti);break e;case 2:kn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=dc+300-kt(),10<f)){if(Oi(s,n,qn,!Ti),L(s,0,!0)!==0)break e;Ja=n,s.timeoutHandle=Eb($g.bind(null,s,r,kn,mc,Gf,n,qn,vr,pl,Ti,p,"Throttled",-0,0),f);break e}$g(s,r,kn,mc,Gf,n,qn,vr,pl,Ti,p,null,-0,0)}}break}while(!0);ka(t)}function $g(t,n,r,s,f,p,v,_,R,P,W,ne,K,Y){if(t.timeoutHandle=-1,ne=n.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fe},Ig(n,p,ne);var be=(p&62914560)===p?dc-kt():(p&4194048)===p?Fg-kt():0;if(be=eS(ne,be),be!==null){Ja=p,t.cancelPendingCommit=be(Jg.bind(null,t,n,p,r,s,f,v,_,R,W,ne,null,K,Y)),Oi(t,p,v,!P);return}}Jg(t,n,p,r,s,f,v,_,R)}function g_(t){for(var n=t;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var s=0;s<r.length;s++){var f=r[s],p=f.getSnapshot;f=f.value;try{if(!In(p(),f))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Oi(t,n,r,s){n&=~Pf,n&=~vr,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var f=n;0<f;){var p=31-lt(f),v=1<<p;s[p]=-1,f&=~v}r!==0&&pe(t,r,n)}function pc(){return(at&6)===0?(zs(0),!1):!0}function Qf(){if(Pe!==null){if(ct===0)var t=Pe.return;else t=Pe,qa=fr=null,uf(t),sl=null,bs=0,t=Pe;for(;t!==null;)_g(t.alternate,t),t=t.return;Pe=null}}function bl(t,n){var r=t.timeoutHandle;r!==-1&&(t.timeoutHandle=-1,j_(r)),r=t.cancelPendingCommit,r!==null&&(t.cancelPendingCommit=null,r()),Ja=0,Qf(),gt=t,Pe=r=Ha(t.current,null),Ye=n,ct=0,Fn=null,Ti=!1,ml=J(t,n),qf=!1,pl=qn=Pf=vr=Ci=Rt=0,kn=Ds=null,Gf=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var f=31-lt(s),p=1<<f;n|=t[f],s&=~p}return Wa=n,jo(),r}function Kg(t,n){ze=null,F.H=Ns,n===ll||n===Go?(n=op(),ct=3):n===Zu?(n=op(),ct=4):ct=n===kf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Fn=n,Pe===null&&(Rt=1,ic(t,Zn(n,t.current)))}function Yg(){var t=Bn.current;return t===null?!0:(Ye&4194048)===Ye?ta===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?t===ta:!1}function Qg(){var t=F.H;return F.H=Ns,t===null?Ns:t}function Vg(){var t=F.A;return F.A=m_,t}function gc(){Rt=4,Ti||(Ye&4194048)!==Ye&&Bn.current!==null||(ml=!0),(Ci&134217727)===0&&(vr&134217727)===0||gt===null||Oi(gt,Ye,qn,!1)}function Vf(t,n,r){var s=at;at|=2;var f=Qg(),p=Vg();(gt!==t||Ye!==n)&&(mc=null,bl(t,n)),n=!1;var v=Rt;e:do try{if(ct!==0&&Pe!==null){var _=Pe,R=Fn;switch(ct){case 8:Qf(),v=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(n=!0);var P=ct;if(ct=0,Fn=null,yl(t,_,R,P),r&&ml){v=0;break e}break;default:P=ct,ct=0,Fn=null,yl(t,_,R,P)}}b_(),v=Rt;break}catch(W){Kg(t,W)}while(!0);return n&&t.shellSuspendCounter++,qa=fr=null,at=s,F.H=f,F.A=p,Pe===null&&(gt=null,Ye=0,jo()),v}function b_(){for(;Pe!==null;)Xg(Pe)}function y_(t,n){var r=at;at|=2;var s=Qg(),f=Vg();gt!==t||Ye!==n?(mc=null,hc=kt()+500,bl(t,n)):ml=J(t,n);e:do try{if(ct!==0&&Pe!==null){n=Pe;var p=Fn;t:switch(ct){case 1:ct=0,Fn=null,yl(t,n,p,1);break;case 2:case 9:if(lp(p)){ct=0,Fn=null,Zg(n);break}n=function(){ct!==2&&ct!==9||gt!==t||(ct=7),ka(t)},p.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:lp(p)?(ct=0,Fn=null,Zg(n)):(ct=0,Fn=null,yl(t,n,p,7));break;case 5:var v=null;switch(Pe.tag){case 26:v=Pe.memoizedState;case 5:case 27:var _=Pe;if(v?jb(v):_.stateNode.complete){ct=0,Fn=null;var R=_.sibling;if(R!==null)Pe=R;else{var P=_.return;P!==null?(Pe=P,bc(P)):Pe=null}break t}}ct=0,Fn=null,yl(t,n,p,5);break;case 6:ct=0,Fn=null,yl(t,n,p,6);break;case 8:Qf(),Rt=6;break e;default:throw Error(l(462))}}x_();break}catch(W){Kg(t,W)}while(!0);return qa=fr=null,F.H=s,F.A=f,at=r,Pe!==null?0:(gt=null,Ye=0,jo(),Rt)}function x_(){for(;Pe!==null&&!Zl();)Xg(Pe)}function Xg(t){var n=vg(t.alternate,t,Wa);t.memoizedProps=t.pendingProps,n===null?bc(t):Pe=n}function Zg(t){var n=t,r=n.alternate;switch(n.tag){case 15:case 0:n=mg(r,n,n.pendingProps,n.type,void 0,Ye);break;case 11:n=mg(r,n,n.pendingProps,n.type.render,n.ref,Ye);break;case 5:uf(n);default:_g(r,n),n=Pe=Vm(n,Wa),n=vg(r,n,Wa)}t.memoizedProps=t.pendingProps,n===null?bc(t):Pe=n}function yl(t,n,r,s){qa=fr=null,uf(n),sl=null,bs=0;var f=n.return;try{if(s_(t,f,n,r,Ye)){Rt=1,ic(t,Zn(r,t.current)),Pe=null;return}}catch(p){if(f!==null)throw Pe=f,p;Rt=1,ic(t,Zn(r,t.current)),Pe=null;return}n.flags&32768?(Xe||s===1?t=!0:ml||(Ye&536870912)!==0?t=!1:(Ti=t=!0,(s===2||s===9||s===3||s===6)&&(s=Bn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Wg(n,t)):bc(n)}function bc(t){var n=t;do{if((n.flags&32768)!==0){Wg(n,Ti);return}t=n.return;var r=u_(n.alternate,n,Wa);if(r!==null){Pe=r;return}if(n=n.sibling,n!==null){Pe=n;return}Pe=n=t}while(n!==null);Rt===0&&(Rt=5)}function Wg(t,n){do{var r=f_(t.alternate,t);if(r!==null){r.flags&=32767,Pe=r;return}if(r=t.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(t=t.sibling,t!==null)){Pe=t;return}Pe=t=r}while(t!==null);Rt=6,Pe=null}function Jg(t,n,r,s,f,p,v,_,R){t.cancelPendingCommit=null;do yc();while(Kt!==0);if((at&6)!==0)throw Error(l(327));if(n!==null){if(n===t.current)throw Error(l(177));if(p=n.lanes|n.childLanes,p|=ju,ye(t,r,p,v,_,R),t===gt&&(Pe=gt=null,Ye=0),gl=n,Ri=t,Ja=r,$f=p,Kf=f,qg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,S_(Ce,function(){return ib(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=F.T,F.T=null,f=re.p,re.p=2,v=at,at|=4;try{d_(t,n,r)}finally{at=v,re.p=f,F.T=s}}Kt=1,eb(),tb(),nb()}}function eb(){if(Kt===1){Kt=0;var t=Ri,n=gl,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=F.T,F.T=null;var s=re.p;re.p=2;var f=at;at|=4;try{Lg(n,t);var p=sd,v=Hm(t.containerInfo),_=p.focusedElem,R=p.selectionRange;if(v!==_&&_&&_.ownerDocument&&Bm(_.ownerDocument.documentElement,_)){if(R!==null&&Ou(_)){var P=R.start,W=R.end;if(W===void 0&&(W=P),"selectionStart"in _)_.selectionStart=P,_.selectionEnd=Math.min(W,_.value.length);else{var ne=_.ownerDocument||document,K=ne&&ne.defaultView||window;if(K.getSelection){var Y=K.getSelection(),be=_.textContent.length,Ae=Math.min(R.start,be),ht=R.end===void 0?Ae:Math.min(R.end,be);!Y.extend&&Ae>ht&&(v=ht,ht=Ae,Ae=v);var B=Um(_,Ae),U=Um(_,ht);if(B&&U&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==U.node||Y.focusOffset!==U.offset)){var q=ne.createRange();q.setStart(B.node,B.offset),Y.removeAllRanges(),Ae>ht?(Y.addRange(q),Y.extend(U.node,U.offset)):(q.setEnd(U.node,U.offset),Y.addRange(q))}}}}for(ne=[],Y=_;Y=Y.parentNode;)Y.nodeType===1&&ne.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ne.length;_++){var ee=ne[_];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Rc=!!ld,sd=ld=null}finally{at=f,re.p=s,F.T=r}}t.current=n,Kt=2}}function tb(){if(Kt===2){Kt=0;var t=Ri,n=gl,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=F.T,F.T=null;var s=re.p;re.p=2;var f=at;at|=4;try{Ag(t,n.alternate,n)}finally{at=f,re.p=s,F.T=r}}Kt=3}}function nb(){if(Kt===4||Kt===3){Kt=0,Br();var t=Ri,n=gl,r=Ja,s=qg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Kt=5:(Kt=0,gl=Ri=null,ab(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Ai=null),za(r),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Xt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=F.T,f=re.p,re.p=2,F.T=null;try{for(var p=t.onRecoverableError,v=0;v<s.length;v++){var _=s[v];p(_.value,{componentStack:_.stack})}}finally{F.T=n,re.p=f}}(Ja&3)!==0&&yc(),ka(t),f=t.pendingLanes,(r&261930)!==0&&(f&42)!==0?t===Yf?Ls++:(Ls=0,Yf=t):Ls=0,zs(0)}}function ab(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,ps(n)))}function yc(){return eb(),tb(),nb(),ib()}function ib(){if(Kt!==5)return!1;var t=Ri,n=$f;$f=0;var r=za(Ja),s=F.T,f=re.p;try{re.p=32>r?32:r,F.T=null,r=Kf,Kf=null;var p=Ri,v=Ja;if(Kt=0,gl=Ri=null,Ja=0,(at&6)!==0)throw Error(l(331));var _=at;if(at|=4,Bg(p.current),jg(p,p.current,v,r),at=_,zs(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Xt,p)}catch{}return!0}finally{re.p=f,F.T=s,ab(t,n)}}function rb(t,n,r){n=Zn(r,n),n=Nf(t.stateNode,n,2),t=Si(t,n,2),t!==null&&(pt(t,2),ka(t))}function ut(t,n,r){if(t.tag===3)rb(t,t,r);else for(;n!==null;){if(n.tag===3){rb(n,t,r);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ai===null||!Ai.has(s))){t=Zn(r,t),r=lg(2),s=Si(n,r,2),s!==null&&(sg(r,s,n,t),pt(s,2),ka(s));break}}n=n.return}}function Xf(t,n,r){var s=t.pingCache;if(s===null){s=t.pingCache=new p_;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(r)||(qf=!0,f.add(r),t=v_.bind(null,t,n,r),n.then(t,t))}function v_(t,n,r){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&r,t.warmLanes&=~r,gt===t&&(Ye&r)===r&&(Rt===4||Rt===3&&(Ye&62914560)===Ye&&300>kt()-dc?(at&2)===0&&bl(t,0):Pf|=r,pl===Ye&&(pl=0)),ka(t)}function lb(t,n){n===0&&(n=Me()),t=or(t,n),t!==null&&(pt(t,n),ka(t))}function E_(t){var n=t.memoizedState,r=0;n!==null&&(r=n.retryLane),lb(t,r)}function __(t,n){var r=0;switch(t.tag){case 31:case 13:var s=t.stateNode,f=t.memoizedState;f!==null&&(r=f.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),lb(t,r)}function S_(t,n){return La(t,n)}var xc=null,xl=null,Zf=!1,vc=!1,Wf=!1,Mi=0;function ka(t){t!==xl&&t.next===null&&(xl===null?xc=xl=t:xl=xl.next=t),vc=!0,Zf||(Zf=!0,N_())}function zs(t,n){if(!Wf&&vc){Wf=!0;do for(var r=!1,s=xc;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var p=0;else{var v=s.suspendedLanes,_=s.pingedLanes;p=(1<<31-lt(42|t)+1)-1,p&=f&~(v&~_),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(r=!0,ub(s,p))}else p=Ye,p=L(s,s===gt?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||J(s,p)||(r=!0,ub(s,p));s=s.next}while(r);Wf=!1}}function w_(){sb()}function sb(){vc=Zf=!1;var t=0;Mi!==0&&z_()&&(t=Mi);for(var n=kt(),r=null,s=xc;s!==null;){var f=s.next,p=ob(s,n);p===0?(s.next=null,r===null?xc=f:r.next=f,f===null&&(xl=r)):(r=s,(t!==0||(p&3)!==0)&&(vc=!0)),s=f}Kt!==0&&Kt!==5||zs(t),Mi!==0&&(Mi=0)}function ob(t,n){for(var r=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var v=31-lt(p),_=1<<v,R=f[v];R===-1?((_&r)===0||(_&s)!==0)&&(f[v]=he(_,n)):R<=n&&(t.expiredLanes|=_),p&=~_}if(n=gt,r=Ye,r=L(t,t===n?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,r===0||t===n&&(ct===2||ct===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Ji(s),t.callbackNode=null,t.callbackPriority=0;if((r&3)===0||J(t,r)){if(n=r&-r,n===t.callbackPriority)return n;switch(s!==null&&Ji(s),za(r)){case 2:case 8:r=ue;break;case 32:r=Ce;break;case 268435456:r=Je;break;default:r=Ce}return s=cb.bind(null,t),r=La(r,s),t.callbackPriority=n,t.callbackNode=r,n}return s!==null&&s!==null&&Ji(s),t.callbackPriority=2,t.callbackNode=null,2}function cb(t,n){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var r=t.callbackNode;if(yc()&&t.callbackNode!==r)return null;var s=Ye;return s=L(t,t===gt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Gg(t,s,n),ob(t,kt()),t.callbackNode!=null&&t.callbackNode===r?cb.bind(null,t):null)}function ub(t,n){if(yc())return null;Gg(t,n,!0)}function N_(){I_(function(){(at&6)!==0?La(Z,w_):sb()})}function Jf(){if(Mi===0){var t=il;t===0&&(t=er,er<<=1,(er&261888)===0&&(er=256)),Mi=t}return Mi}function fb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:pi(""+t)}function db(t,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,t.id&&r.setAttribute("form",t.id),n.parentNode.insertBefore(r,n),t=new FormData(t),r.parentNode.removeChild(r),t}function k_(t,n,r,s,f){if(n==="submit"&&r&&r.stateNode===f){var p=fb((f[an]||null).action),v=s.submitter;v&&(n=(n=v[an]||null)?fb(n.formAction):v.getAttribute("formAction"),n!==null&&(p=n,v=null));var _=new Mo("action","action",null,s,f);t.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Mi!==0){var R=v?db(f,v):new FormData(f);xf(r,{pending:!0,data:R,method:f.method,action:p},null,R)}}else typeof p=="function"&&(_.preventDefault(),R=v?db(f,v):new FormData(f),xf(r,{pending:!0,data:R,method:f.method,action:p},p,R))},currentTarget:f}]})}}for(var ed=0;ed<zu.length;ed++){var td=zu[ed],T_=td.toLowerCase(),C_=td[0].toUpperCase()+td.slice(1);fa(T_,"on"+C_)}fa(Pm,"onAnimationEnd"),fa(Gm,"onAnimationIteration"),fa($m,"onAnimationStart"),fa("dblclick","onDoubleClick"),fa("focusin","onFocus"),fa("focusout","onBlur"),fa(G0,"onTransitionRun"),fa($0,"onTransitionStart"),fa(K0,"onTransitionCancel"),fa(Km,"onTransitionEnd"),se("onMouseEnter",["mouseout","mouseover"]),se("onMouseLeave",["mouseout","mouseover"]),se("onPointerEnter",["pointerout","pointerover"]),se("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var js="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(" "),A_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(js));function hb(t,n){n=(n&4)!==0;for(var r=0;r<t.length;r++){var s=t[r],f=s.event;s=s.listeners;e:{var p=void 0;if(n)for(var v=s.length-1;0<=v;v--){var _=s[v],R=_.instance,P=_.currentTarget;if(_=_.listener,R!==p&&f.isPropagationStopped())break e;p=_,f.currentTarget=P;try{p(f)}catch(W){zo(W)}f.currentTarget=null,p=R}else for(v=0;v<s.length;v++){if(_=s[v],R=_.instance,P=_.currentTarget,_=_.listener,R!==p&&f.isPropagationStopped())break e;p=_,f.currentTarget=P;try{p(f)}catch(W){zo(W)}f.currentTarget=null,p=R}}}}function Ge(t,n){var r=n[Wl];r===void 0&&(r=n[Wl]=new Set);var s=t+"__bubble";r.has(s)||(mb(n,t,2,!1),r.add(s))}function nd(t,n,r){var s=0;n&&(s|=4),mb(r,t,s,n)}var Ec="_reactListening"+Math.random().toString(36).slice(2);function ad(t){if(!t[Ec]){t[Ec]=!0,wo.forEach(function(r){r!=="selectionchange"&&(A_.has(r)||nd(r,!1,t),nd(r,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Ec]||(n[Ec]=!0,nd("selectionchange",!1,n))}}function mb(t,n,r,s){switch(Pb(n)){case 2:var f=aS;break;case 8:f=iS;break;default:f=yd}r=f.bind(null,n,r,t),f=void 0,!_u||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?t.addEventListener(n,r,{capture:!0,passive:f}):t.addEventListener(n,r,!0):f!==void 0?t.addEventListener(n,r,{passive:f}):t.addEventListener(n,r,!1)}function id(t,n,r,s,f){var p=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var _=s.stateNode.containerInfo;if(_===f)break;if(v===4)for(v=s.return;v!==null;){var R=v.tag;if((R===3||R===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;_!==null;){if(v=hn(_),v===null)return;if(R=v.tag,R===5||R===6||R===26||R===27){s=p=v;continue e}_=_.parentNode}}s=s.return}Co(function(){var P=p,W=Le(r),ne=[];e:{var K=Ym.get(t);if(K!==void 0){var Y=Mo,be=t;switch(t){case"keypress":if(Ro(r)===0)break e;case"keydown":case"keyup":Y=_0;break;case"focusin":be="focus",Y=ku;break;case"focusout":be="blur",Y=ku;break;case"beforeblur":case"afterblur":Y=ku;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=u0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=N0;break;case Pm:case Gm:case $m:Y=h0;break;case Km:Y=T0;break;case"scroll":case"scrollend":Y=o0;break;case"wheel":Y=A0;break;case"copy":case"cut":case"paste":Y=p0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=wm;break;case"toggle":case"beforetoggle":Y=O0}var Ae=(n&4)!==0,ht=!Ae&&(t==="scroll"||t==="scrollend"),B=Ae?K!==null?K+"Capture":null:K;Ae=[];for(var U=P,q;U!==null;){var ee=U;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||B===null||(ee=is(U,B),ee!=null&&Ae.push(Is(U,ee,q))),ht)break;U=U.return}0<Ae.length&&(K=new Y(K,be,null,r,W),ne.push({event:K,listeners:Ae}))}}if((n&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",K&&r!==ve&&(be=r.relatedTarget||r.fromElement)&&(hn(be)||be[fi]))break e;if((Y||K)&&(K=W.window===W?W:(K=W.ownerDocument)?K.defaultView||K.parentWindow:window,Y?(be=r.relatedTarget||r.toElement,Y=P,be=be?hn(be):null,be!==null&&(ht=c(be),Ae=be.tag,be!==ht||Ae!==5&&Ae!==27&&Ae!==6)&&(be=null)):(Y=null,be=P),Y!==be)){if(Ae=_m,ee="onMouseLeave",B="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(Ae=wm,ee="onPointerLeave",B="onPointerEnter",U="pointer"),ht=Y==null?K:di(Y),q=be==null?K:di(be),K=new Ae(ee,U+"leave",Y,r,W),K.target=ht,K.relatedTarget=q,ee=null,hn(W)===P&&(Ae=new Ae(B,U+"enter",be,r,W),Ae.target=q,Ae.relatedTarget=ht,ee=Ae),ht=ee,Y&&be)t:{for(Ae=R_,B=Y,U=be,q=0,ee=B;ee;ee=Ae(ee))q++;ee=0;for(var ke=U;ke;ke=Ae(ke))ee++;for(;0<q-ee;)B=Ae(B),q--;for(;0<ee-q;)U=Ae(U),ee--;for(;q--;){if(B===U||U!==null&&B===U.alternate){Ae=B;break t}B=Ae(B),U=Ae(U)}Ae=null}else Ae=null;Y!==null&&pb(ne,K,Y,Ae,!1),be!==null&&ht!==null&&pb(ne,ht,be,Ae,!0)}}e:{if(K=P?di(P):window,Y=K.nodeName&&K.nodeName.toLowerCase(),Y==="select"||Y==="input"&&K.type==="file")var et=Mm;else if(Rm(K))if(Dm)et=F0;else{et=B0;var Ee=U0}else Y=K.nodeName,!Y||Y.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?P&&mi(P.elementType)&&(et=Mm):et=H0;if(et&&(et=et(t,P))){Om(ne,et,r,W);break e}Ee&&Ee(t,K,P),t==="focusout"&&P&&K.type==="number"&&P.memoizedProps.value!=null&&Yr(K,"number",K.value)}switch(Ee=P?di(P):window,t){case"focusin":(Rm(Ee)||Ee.contentEditable==="true")&&(Xr=Ee,Mu=P,ds=null);break;case"focusout":ds=Mu=Xr=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,Fm(ne,r,W);break;case"selectionchange":if(P0)break;case"keydown":case"keyup":Fm(ne,r,W)}var je;if(Cu)e:{switch(t){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else Vr?Cm(t,r)&&(Qe="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(Qe="onCompositionStart");Qe&&(Nm&&r.locale!=="ko"&&(Vr||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&Vr&&(je=vm()):(gi=W,Su="value"in gi?gi.value:gi.textContent,Vr=!0)),Ee=_c(P,Qe),0<Ee.length&&(Qe=new Sm(Qe,t,null,r,W),ne.push({event:Qe,listeners:Ee}),je?Qe.data=je:(je=Am(r),je!==null&&(Qe.data=je)))),(je=D0?L0(t,r):z0(t,r))&&(Qe=_c(P,"onBeforeInput"),0<Qe.length&&(Ee=new Sm("onBeforeInput","beforeinput",null,r,W),ne.push({event:Ee,listeners:Qe}),Ee.data=je)),k_(ne,t,P,r,W)}hb(ne,n)})}function Is(t,n,r){return{instance:t,listener:n,currentTarget:r}}function _c(t,n){for(var r=n+"Capture",s=[];t!==null;){var f=t,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=is(t,r),f!=null&&s.unshift(Is(t,f,p)),f=is(t,n),f!=null&&s.push(Is(t,f,p))),t.tag===3)return s;t=t.return}return[]}function R_(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function pb(t,n,r,s,f){for(var p=n._reactName,v=[];r!==null&&r!==s;){var _=r,R=_.alternate,P=_.stateNode;if(_=_.tag,R!==null&&R===s)break;_!==5&&_!==26&&_!==27||P===null||(R=P,f?(P=is(r,p),P!=null&&v.unshift(Is(r,P,R))):f||(P=is(r,p),P!=null&&v.push(Is(r,P,R)))),r=r.return}v.length!==0&&t.push({event:n,listeners:v})}var O_=/\r\n?/g,M_=/\u0000|\uFFFD/g;function gb(t){return(typeof t=="string"?t:""+t).replace(O_,`
|
|
49
|
-
`).replace(M_,"")}function bb(t,n){return n=gb(n),gb(t)===n}function dt(t,n,r,s,f,p){switch(r){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Re(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Re(t,""+s);break;case"className":zn(t,"class",s);break;case"tabIndex":zn(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":zn(t,r,s);break;case"style":ot(t,s,p);break;case"data":if(n!=="object"){zn(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||r!=="href")){t.removeAttribute(r);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(r);break}s=pi(""+s),t.setAttribute(r,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(r==="formAction"?(n!=="input"&&dt(t,n,"name",f.name,f,null),dt(t,n,"formEncType",f.formEncType,f,null),dt(t,n,"formMethod",f.formMethod,f,null),dt(t,n,"formTarget",f.formTarget,f,null)):(dt(t,n,"encType",f.encType,f,null),dt(t,n,"method",f.method,f,null),dt(t,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(r);break}s=pi(""+s),t.setAttribute(r,s);break;case"onClick":s!=null&&(t.onclick=fe);break;case"onScroll":s!=null&&Ge("scroll",t);break;case"onScrollEnd":s!=null&&Ge("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(f.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}r=pi(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,""+s):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":s===!0?t.setAttribute(r,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(r,s):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(r,s):t.removeAttribute(r);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(r):t.setAttribute(r,s);break;case"popover":Ge("beforetoggle",t),Ge("toggle",t),rn(t,"popover",s);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":rn(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Ua.get(r)||r,rn(t,r,s))}}function rd(t,n,r,s,f,p){switch(r){case"style":ot(t,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(f.children!=null)throw Error(l(60));t.innerHTML=r}}break;case"children":typeof s=="string"?Re(t,s):(typeof s=="number"||typeof s=="bigint")&&Re(t,""+s);break;case"onScroll":s!=null&&Ge("scroll",t);break;case"onScrollEnd":s!=null&&Ge("scrollend",t);break;case"onClick":s!=null&&(t.onclick=fe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ar.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),p=t[an]||null,p=p!=null?p[r]:null,typeof p=="function"&&t.removeEventListener(n,p,f),typeof s=="function")){typeof p!="function"&&p!==null&&(r in t?t[r]=null:t.hasAttribute(r)&&t.removeAttribute(r)),t.addEventListener(n,s,f);break e}r in t?t[r]=s:s===!0?t.setAttribute(r,""):rn(t,r,s)}}}function tn(t,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",t),Ge("load",t);var s=!1,f=!1,p;for(p in r)if(r.hasOwnProperty(p)){var v=r[p];if(v!=null)switch(p){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,p,v,r,null)}}f&&dt(t,n,"srcSet",r.srcSet,r,null),s&&dt(t,n,"src",r.src,r,null);return;case"input":Ge("invalid",t);var _=p=v=f=null,R=null,P=null;for(s in r)if(r.hasOwnProperty(s)){var W=r[s];if(W!=null)switch(s){case"name":f=W;break;case"type":v=W;break;case"checked":R=W;break;case"defaultChecked":P=W;break;case"value":p=W;break;case"defaultValue":_=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,n));break;default:dt(t,n,s,W,r,null)}}ir(t,p,_,R,P,v,f,!1);return;case"select":Ge("invalid",t),s=v=p=null;for(f in r)if(r.hasOwnProperty(f)&&(_=r[f],_!=null))switch(f){case"value":p=_;break;case"defaultValue":v=_;break;case"multiple":s=_;default:dt(t,n,f,_,r,null)}n=p,r=v,t.multiple=!!s,n!=null?Zt(t,!!s,n,!1):r!=null&&Zt(t,!!s,r,!0);return;case"textarea":Ge("invalid",t),p=f=s=null;for(v in r)if(r.hasOwnProperty(v)&&(_=r[v],_!=null))switch(v){case"value":s=_;break;case"defaultValue":f=_;break;case"children":p=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(l(91));break;default:dt(t,n,v,_,r,null)}Qr(t,s,f,p);return;case"option":for(R in r)if(r.hasOwnProperty(R)&&(s=r[R],s!=null))switch(R){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(t,n,R,s,r,null)}return;case"dialog":Ge("beforetoggle",t),Ge("toggle",t),Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":Ge("load",t);break;case"video":case"audio":for(s=0;s<js.length;s++)Ge(js[s],t);break;case"image":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"embed":case"source":case"link":Ge("error",t),Ge("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in r)if(r.hasOwnProperty(P)&&(s=r[P],s!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:dt(t,n,P,s,r,null)}return;default:if(mi(n)){for(W in r)r.hasOwnProperty(W)&&(s=r[W],s!==void 0&&rd(t,n,W,s,r,void 0));return}}for(_ in r)r.hasOwnProperty(_)&&(s=r[_],s!=null&&dt(t,n,_,s,r,null))}function D_(t,n,r,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,v=null,_=null,R=null,P=null,W=null;for(Y in r){var ne=r[Y];if(r.hasOwnProperty(Y)&&ne!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":R=ne;default:s.hasOwnProperty(Y)||dt(t,n,Y,null,s,ne)}}for(var K in s){var Y=s[K];if(ne=r[K],s.hasOwnProperty(K)&&(Y!=null||ne!=null))switch(K){case"type":p=Y;break;case"name":f=Y;break;case"checked":P=Y;break;case"defaultChecked":W=Y;break;case"value":v=Y;break;case"defaultValue":_=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,n));break;default:Y!==ne&&dt(t,n,K,Y,s,ne)}}ts(t,v,_,R,P,W,p,f);return;case"select":Y=v=_=K=null;for(p in r)if(R=r[p],r.hasOwnProperty(p)&&R!=null)switch(p){case"value":break;case"multiple":Y=R;default:s.hasOwnProperty(p)||dt(t,n,p,null,s,R)}for(f in s)if(p=s[f],R=r[f],s.hasOwnProperty(f)&&(p!=null||R!=null))switch(f){case"value":K=p;break;case"defaultValue":_=p;break;case"multiple":v=p;default:p!==R&&dt(t,n,f,p,s,R)}n=_,r=v,s=Y,K!=null?Zt(t,!!r,K,!1):!!s!=!!r&&(n!=null?Zt(t,!!r,n,!0):Zt(t,!!r,r?[]:"",!1));return;case"textarea":Y=K=null;for(_ in r)if(f=r[_],r.hasOwnProperty(_)&&f!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:dt(t,n,_,null,s,f)}for(v in s)if(f=s[v],p=r[v],s.hasOwnProperty(v)&&(f!=null||p!=null))switch(v){case"value":K=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==p&&dt(t,n,v,f,s,p)}ko(t,K,Y);return;case"option":for(var be in r)if(K=r[be],r.hasOwnProperty(be)&&K!=null&&!s.hasOwnProperty(be))switch(be){case"selected":t.selected=!1;break;default:dt(t,n,be,null,s,K)}for(R in s)if(K=s[R],Y=r[R],s.hasOwnProperty(R)&&K!==Y&&(K!=null||Y!=null))switch(R){case"selected":t.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:dt(t,n,R,K,s,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in r)K=r[Ae],r.hasOwnProperty(Ae)&&K!=null&&!s.hasOwnProperty(Ae)&&dt(t,n,Ae,null,s,K);for(P in s)if(K=s[P],Y=r[P],s.hasOwnProperty(P)&&K!==Y&&(K!=null||Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,n));break;default:dt(t,n,P,K,s,Y)}return;default:if(mi(n)){for(var ht in r)K=r[ht],r.hasOwnProperty(ht)&&K!==void 0&&!s.hasOwnProperty(ht)&&rd(t,n,ht,void 0,s,K);for(W in s)K=s[W],Y=r[W],!s.hasOwnProperty(W)||K===Y||K===void 0&&Y===void 0||rd(t,n,W,K,s,Y);return}}for(var B in r)K=r[B],r.hasOwnProperty(B)&&K!=null&&!s.hasOwnProperty(B)&&dt(t,n,B,null,s,K);for(ne in s)K=s[ne],Y=r[ne],!s.hasOwnProperty(ne)||K===Y||K==null&&Y==null||dt(t,n,ne,K,s,Y)}function yb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L_(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,r=performance.getEntriesByType("resource"),s=0;s<r.length;s++){var f=r[s],p=f.transferSize,v=f.initiatorType,_=f.duration;if(p&&_&&yb(v)){for(v=0,_=f.responseEnd,s+=1;s<r.length;s++){var R=r[s],P=R.startTime;if(P>_)break;var W=R.transferSize,ne=R.initiatorType;W&&yb(ne)&&(R=R.responseEnd,v+=W*(R<_?1:(_-P)/(R-P)))}if(--s,n+=8*(p+v)/(f.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ld=null,sd=null;function Sc(t){return t.nodeType===9?t:t.ownerDocument}function xb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vb(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function od(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var cd=null;function z_(){var t=window.event;return t&&t.type==="popstate"?t===cd?!1:(cd=t,!0):(cd=null,!1)}var Eb=typeof setTimeout=="function"?setTimeout:void 0,j_=typeof clearTimeout=="function"?clearTimeout:void 0,_b=typeof Promise=="function"?Promise:void 0,I_=typeof queueMicrotask=="function"?queueMicrotask:typeof _b<"u"?function(t){return _b.resolve(null).then(t).catch(U_)}:Eb;function U_(t){setTimeout(function(){throw t})}function Di(t){return t==="head"}function Sb(t,n){var r=n,s=0;do{var f=r.nextSibling;if(t.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(s===0){t.removeChild(f),Sl(n);return}s--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")s++;else if(r==="html")Us(t.ownerDocument.documentElement);else if(r==="head"){r=t.ownerDocument.head,Us(r);for(var p=r.firstChild;p;){var v=p.nextSibling,_=p.nodeName;p[nr]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&p.rel.toLowerCase()==="stylesheet"||r.removeChild(p),p=v}}else r==="body"&&Us(t.ownerDocument.body);r=f}while(r);Sl(n)}function wb(t,n){var r=t;t=0;do{var s=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(t===0)break;t--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||t++;r=s}while(r)}function ud(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":ud(r),Jl(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}t.removeChild(r)}}function B_(t,n,r,s){for(;t.nodeType===1;){var f=r;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[nr])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=na(t.nextSibling),t===null)break}return null}function H_(t,n,r){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=na(t.nextSibling),t===null))return null;return t}function Nb(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=na(t.nextSibling),t===null))return null;return t}function fd(t){return t.data==="$?"||t.data==="$~"}function dd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function F_(t,n){var r=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||r.readyState!=="loading")n();else{var s=function(){n(),r.removeEventListener("DOMContentLoaded",s)};r.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function na(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var hd=null;function kb(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"||r==="/&"){if(n===0)return na(t.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}t=t.nextSibling}return null}function Tb(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return t;n--}else r!=="/$"&&r!=="/&"||n++}t=t.previousSibling}return null}function Cb(t,n,r){switch(n=Sc(r),t){case"html":if(t=n.documentElement,!t)throw Error(l(452));return t;case"head":if(t=n.head,!t)throw Error(l(453));return t;case"body":if(t=n.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function Us(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Jl(t)}var aa=new Map,Ab=new Set;function wc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ei=re.d;re.d={f:q_,r:P_,D:G_,C:$_,L:K_,m:Y_,X:V_,S:Q_,M:X_};function q_(){var t=ei.f(),n=pc();return t||n}function P_(t){var n=ja(t);n!==null&&n.tag===5&&n.type==="form"?Kp(n):ei.r(t)}var vl=typeof document>"u"?null:document;function Rb(t,n,r){var s=vl;if(s&&typeof n=="string"&&n){var f=En(n);f='link[rel="'+t+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Ab.has(f)||(Ab.add(f),t={rel:t,crossOrigin:r,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),tn(n,"link",t),It(n),s.head.appendChild(n)))}}function G_(t){ei.D(t),Rb("dns-prefetch",t,null)}function $_(t,n){ei.C(t,n),Rb("preconnect",t,n)}function K_(t,n,r){ei.L(t,n,r);var s=vl;if(s&&t&&n){var f='link[rel="preload"][as="'+En(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+En(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+En(r.imageSizes)+'"]')):f+='[href="'+En(t)+'"]';var p=f;switch(n){case"style":p=El(t);break;case"script":p=_l(t)}aa.has(p)||(t=g({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:t,as:n},r),aa.set(p,t),s.querySelector(f)!==null||n==="style"&&s.querySelector(Bs(p))||n==="script"&&s.querySelector(Hs(p))||(n=s.createElement("link"),tn(n,"link",t),It(n),s.head.appendChild(n)))}}function Y_(t,n){ei.m(t,n);var r=vl;if(r&&t){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+En(s)+'"][href="'+En(t)+'"]',p=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=_l(t)}if(!aa.has(p)&&(t=g({rel:"modulepreload",href:t},n),aa.set(p,t),r.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Hs(p)))return}s=r.createElement("link"),tn(s,"link",t),It(s),r.head.appendChild(s)}}}function Q_(t,n,r){ei.S(t,n,r);var s=vl;if(s&&t){var f=hi(s).hoistableStyles,p=El(t);n=n||"default";var v=f.get(p);if(!v){var _={loading:0,preload:null};if(v=s.querySelector(Bs(p)))_.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},r),(r=aa.get(p))&&md(t,r);var R=v=s.createElement("link");It(R),tn(R,"link",t),R._p=new Promise(function(P,W){R.onload=P,R.onerror=W}),R.addEventListener("load",function(){_.loading|=1}),R.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Nc(v,n,s)}v={type:"stylesheet",instance:v,count:1,state:_},f.set(p,v)}}}function V_(t,n){ei.X(t,n);var r=vl;if(r&&t){var s=hi(r).hoistableScripts,f=_l(t),p=s.get(f);p||(p=r.querySelector(Hs(f)),p||(t=g({src:t,async:!0},n),(n=aa.get(f))&&pd(t,n),p=r.createElement("script"),It(p),tn(p,"link",t),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function X_(t,n){ei.M(t,n);var r=vl;if(r&&t){var s=hi(r).hoistableScripts,f=_l(t),p=s.get(f);p||(p=r.querySelector(Hs(f)),p||(t=g({src:t,async:!0,type:"module"},n),(n=aa.get(f))&&pd(t,n),p=r.createElement("script"),It(p),tn(p,"link",t),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function Ob(t,n,r,s){var f=(f=xe.current)?wc(f):null;if(!f)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=El(r.href),r=hi(f).hoistableStyles,s=r.get(n),s||(s={type:"style",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){t=El(r.href);var p=hi(f).hoistableStyles,v=p.get(t);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,v),(p=f.querySelector(Bs(t)))&&!p._p&&(v.instance=p,v.state.loading=5),aa.has(t)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},aa.set(t,r),p||Z_(f,t,r,v.state))),n&&s===null)throw Error(l(528,""));return v}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=_l(r),r=hi(f).hoistableScripts,s=r.get(n),s||(s={type:"script",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function El(t){return'href="'+En(t)+'"'}function Bs(t){return'link[rel="stylesheet"]['+t+"]"}function Mb(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Z_(t,n,r,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),tn(n,"link",r),It(n),t.head.appendChild(n))}function _l(t){return'[src="'+En(t)+'"]'}function Hs(t){return"script[async]"+t}function Db(t,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+En(r.href)+'"]');if(s)return n.instance=s,It(s),s;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),It(s),tn(s,"style",f),Nc(s,r.precedence,t),n.instance=s;case"stylesheet":f=El(r.href);var p=t.querySelector(Bs(f));if(p)return n.state.loading|=4,n.instance=p,It(p),p;s=Mb(r),(f=aa.get(f))&&md(s,f),p=(t.ownerDocument||t).createElement("link"),It(p);var v=p;return v._p=new Promise(function(_,R){v.onload=_,v.onerror=R}),tn(p,"link",s),n.state.loading|=4,Nc(p,r.precedence,t),n.instance=p;case"script":return p=_l(r.src),(f=t.querySelector(Hs(p)))?(n.instance=f,It(f),f):(s=r,(f=aa.get(p))&&(s=g({},r),pd(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),It(f),tn(f,"link",s),t.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Nc(s,r.precedence,t));return n.instance}function Nc(t,n,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,p=f,v=0;v<s.length;v++){var _=s[v];if(_.dataset.precedence===n)p=_;else if(p!==f)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(t,n.firstChild))}function md(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function pd(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var kc=null;function Lb(t,n,r){if(kc===null){var s=new Map,f=kc=new Map;f.set(r,s)}else f=kc,s=f.get(r),s||(s=new Map,f.set(r,s));if(s.has(t))return s;for(s.set(t,null),r=r.getElementsByTagName(t),f=0;f<r.length;f++){var p=r[f];if(!(p[nr]||p[Dt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(n)||"";v=t+v;var _=s.get(v);_?_.push(p):s.set(v,[p])}}return s}function zb(t,n,r){t=t.ownerDocument||t,t.head.insertBefore(r,n==="title"?t.querySelector("head > title"):null)}function W_(t,n,r){if(r===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function jb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function J_(t,n,r,s){if(r.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=El(s.href),p=n.querySelector(Bs(f));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Tc.bind(t),n.then(t,t)),r.state.loading|=4,r.instance=p,It(p);return}p=n.ownerDocument||n,s=Mb(s),(f=aa.get(f))&&md(s,f),p=p.createElement("link"),It(p);var v=p;v._p=new Promise(function(_,R){v.onload=_,v.onerror=R}),tn(p,"link",s),r.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(t.count++,r=Tc.bind(t),n.addEventListener("load",r),n.addEventListener("error",r))}}var gd=0;function eS(t,n){return t.stylesheets&&t.count===0&&Ac(t,t.stylesheets),0<t.count||0<t.imgCount?function(r){var s=setTimeout(function(){if(t.stylesheets&&Ac(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+n);0<t.imgBytes&&gd===0&&(gd=62500*L_());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ac(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>gd?50:800)+n);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Cc=null;function Ac(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Cc=new Map,n.forEach(tS,t),Cc=null,Tc.call(t))}function tS(t,n){if(!(n.state.loading&4)){var r=Cc.get(t);if(r)var s=r.get(null);else{r=new Map,Cc.set(t,r);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var v=f[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(r.set(v.dataset.precedence,v),s=v)}s&&r.set(null,s)}f=n.instance,v=f.getAttribute("data-precedence"),p=r.get(v)||s,p===s&&r.set(null,f),r.set(v,f),this.count++,s=Tc.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),p?p.parentNode.insertBefore(f,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),n.state.loading|=4}}var Fs={$$typeof:D,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function nS(t,n,r,s,f,p,v,_,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.hiddenUpdates=vt(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ib(t,n,r,s,f,p,v,_,R,P,W,ne){return t=new nS(t,n,r,v,R,P,W,ne,_),n=1,p===!0&&(n|=24),p=Un(3,null,null,n),t.current=p,p.stateNode=t,n=Qu(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:s,isDehydrated:r,cache:n},Wu(p),t}function Ub(t){return t?(t=Jr,t):Jr}function Bb(t,n,r,s,f,p){f=Ub(f),s.context===null?s.context=f:s.pendingContext=f,s=_i(n),s.payload={element:r},p=p===void 0?null:p,p!==null&&(s.callback=p),r=Si(t,s,n),r!==null&&(Tn(r,t,n),xs(r,t,n))}function Hb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<n?r:n}}function bd(t,n){Hb(t,n),(t=t.alternate)&&Hb(t,n)}function Fb(t){if(t.tag===13||t.tag===31){var n=or(t,67108864);n!==null&&Tn(n,t,67108864),bd(t,67108864)}}function qb(t){if(t.tag===13||t.tag===31){var n=Pn();n=St(n);var r=or(t,n);r!==null&&Tn(r,t,n),bd(t,n)}}var Rc=!0;function aS(t,n,r,s){var f=F.T;F.T=null;var p=re.p;try{re.p=2,yd(t,n,r,s)}finally{re.p=p,F.T=f}}function iS(t,n,r,s){var f=F.T;F.T=null;var p=re.p;try{re.p=8,yd(t,n,r,s)}finally{re.p=p,F.T=f}}function yd(t,n,r,s){if(Rc){var f=xd(s);if(f===null)id(t,n,s,Oc,r),Gb(t,s);else if(lS(f,t,n,r,s))s.stopPropagation();else if(Gb(t,s),n&4&&-1<rS.indexOf(t)){for(;f!==null;){var p=ja(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=xn(p.pendingLanes);if(v!==0){var _=p;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var R=1<<31-lt(v);_.entanglements[1]|=R,v&=~R}ka(p),(at&6)===0&&(hc=kt()+500,zs(0))}}break;case 31:case 13:_=or(p,2),_!==null&&Tn(_,p,2),pc(),bd(p,2)}if(p=xd(s),p===null&&id(t,n,s,Oc,r),p===f)break;f=p}f!==null&&s.stopPropagation()}else id(t,n,s,null,r)}}function xd(t){return t=Le(t),vd(t)}var Oc=null;function vd(t){if(Oc=null,t=hn(t),t!==null){var n=c(t);if(n===null)t=null;else{var r=n.tag;if(r===13){if(t=u(n),t!==null)return t;t=null}else if(r===31){if(t=d(n),t!==null)return t;t=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Oc=t,null}function Pb(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hr()){case Z:return 2;case ue:return 8;case Ce:case Fe:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Ed=!1,Li=null,zi=null,ji=null,qs=new Map,Ps=new Map,Ii=[],rS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gb(t,n){switch(t){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":qs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ps.delete(n.pointerId)}}function Gs(t,n,r,s,f,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:r,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]},n!==null&&(n=ja(n),n!==null&&Fb(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function lS(t,n,r,s,f){switch(n){case"focusin":return Li=Gs(Li,t,n,r,s,f),!0;case"dragenter":return zi=Gs(zi,t,n,r,s,f),!0;case"mouseover":return ji=Gs(ji,t,n,r,s,f),!0;case"pointerover":var p=f.pointerId;return qs.set(p,Gs(qs.get(p)||null,t,n,r,s,f)),!0;case"gotpointercapture":return p=f.pointerId,Ps.set(p,Gs(Ps.get(p)||null,t,n,r,s,f)),!0}return!1}function $b(t){var n=hn(t.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=u(r),n!==null){t.blockedOn=n,Pr(t.priority,function(){qb(r)});return}}else if(n===31){if(n=d(r),n!==null){t.blockedOn=n,Pr(t.priority,function(){qb(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Mc(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var r=xd(t.nativeEvent);if(r===null){r=t.nativeEvent;var s=new r.constructor(r.type,r);ve=s,r.target.dispatchEvent(s),ve=null}else return n=ja(r),n!==null&&Fb(n),t.blockedOn=r,!1;n.shift()}return!0}function Kb(t,n,r){Mc(t)&&r.delete(n)}function sS(){Ed=!1,Li!==null&&Mc(Li)&&(Li=null),zi!==null&&Mc(zi)&&(zi=null),ji!==null&&Mc(ji)&&(ji=null),qs.forEach(Kb),Ps.forEach(Kb)}function Dc(t,n){t.blockedOn===n&&(t.blockedOn=null,Ed||(Ed=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sS)))}var Lc=null;function Yb(t){Lc!==t&&(Lc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lc===t&&(Lc=null);for(var n=0;n<t.length;n+=3){var r=t[n],s=t[n+1],f=t[n+2];if(typeof s!="function"){if(vd(s||r)===null)continue;break}var p=ja(r);p!==null&&(t.splice(n,3),n-=3,xf(p,{pending:!0,data:f,method:r.method,action:s},s,f))}}))}function Sl(t){function n(R){return Dc(R,t)}Li!==null&&Dc(Li,t),zi!==null&&Dc(zi,t),ji!==null&&Dc(ji,t),qs.forEach(n),Ps.forEach(n);for(var r=0;r<Ii.length;r++){var s=Ii[r];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Ii.length&&(r=Ii[0],r.blockedOn===null);)$b(r),r.blockedOn===null&&Ii.shift();if(r=(t.ownerDocument||t).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var f=r[s],p=r[s+1],v=f[an]||null;if(typeof p=="function")v||Yb(r);else if(v){var _=null;if(p&&p.hasAttribute("formAction")){if(f=p,v=p[an]||null)_=v.formAction;else if(vd(f)!==null)continue}else _=v.action;typeof _=="function"?r[s+1]=_:(r.splice(s,3),s-=3),Yb(r)}}}function Qb(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),s||setTimeout(r,20)}function r(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function _d(t){this._internalRoot=t}zc.prototype.render=_d.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var r=n.current,s=Pn();Bb(r,s,t,n,null,null)},zc.prototype.unmount=_d.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Bb(t.current,2,null,t,null,null),pc(),n[fi]=null}};function zc(t){this._internalRoot=t}zc.prototype.unstable_scheduleHydration=function(t){if(t){var n=qr();t={blockedOn:null,target:t,priority:n};for(var r=0;r<Ii.length&&n!==0&&n<Ii[r].priority;r++);Ii.splice(r,0,t),r===0&&$b(t)}};var Vb=a.version;if(Vb!=="19.2.5")throw Error(l(527,Vb,"19.2.5"));re.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=h(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var oS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{Xt=jc.inject(oS),Ct=jc}catch{}}return Ks.createRoot=function(t,n){if(!o(t))throw Error(l(299));var r=!1,s="",f=ng,p=ag,v=ig;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=Ib(t,1,!1,null,null,r,s,null,f,p,v,Qb),t[fi]=n.current,ad(t),new _d(n)},Ks.hydrateRoot=function(t,n,r){if(!o(t))throw Error(l(299));var s=!1,f="",p=ng,v=ag,_=ig,R=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),n=Ib(t,1,!0,n,r??null,s,f,R,p,v,_,Qb),n.context=Ub(null),r=n.current,s=Pn(),s=St(s),f=_i(s),f.callback=null,Si(r,f,s),r=s,n.current.lanes=r,pt(n,r),ka(n),t[fi]=n.current,ad(t),new zc(n)},Ks.version="19.2.5",Ks}var sy;function vS(){if(sy)return kd.exports;sy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),kd.exports=xS(),kd.exports}var ES=vS(),Pl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nr,Fi,Rl,Ox,_S=(Ox=class extends Pl{constructor(){super();we(this,Nr);we(this,Fi);we(this,Rl);me(this,Rl,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){M(this,Fi)||this.setEventListener(M(this,Rl))}onUnsubscribe(){var a;this.hasListeners()||((a=M(this,Fi))==null||a.call(this),me(this,Fi,void 0))}setEventListener(a){var i;me(this,Rl,a),(i=M(this,Fi))==null||i.call(this),me(this,Fi,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){M(this,Nr)!==a&&(me(this,Nr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof M(this,Nr)=="boolean"?M(this,Nr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Nr=new WeakMap,Fi=new WeakMap,Rl=new WeakMap,Ox),Mh=new _S,SS={setTimeout:(e,a)=>setTimeout(e,a),clearTimeout:e=>clearTimeout(e),setInterval:(e,a)=>setInterval(e,a),clearInterval:e=>clearInterval(e)},qi,Ah,Mx,wS=(Mx=class{constructor(){we(this,qi,SS);we(this,Ah,!1)}setTimeoutProvider(e){me(this,qi,e)}setTimeout(e,a){return M(this,qi).setTimeout(e,a)}clearTimeout(e){M(this,qi).clearTimeout(e)}setInterval(e,a){return M(this,qi).setInterval(e,a)}clearInterval(e){M(this,qi).clearInterval(e)}},qi=new WeakMap,Ah=new WeakMap,Mx),wr=new wS;function NS(e){setTimeout(e,0)}var kS=typeof window>"u"||"Deno"in globalThis;function bn(){}function TS(e,a){return typeof e=="function"?e(a):e}function eh(e){return typeof e=="number"&&e>=0&&e!==1/0}function qx(e,a){return Math.max(e+(a||0)-Date.now(),0)}function Xi(e,a){return typeof e=="function"?e(a):e}function ra(e,a){return typeof e=="function"?e(a):e}function oy(e,a){const{type:i="all",exact:l,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(l){if(a.queryHash!==Dh(u,a.options))return!1}else if(!ao(a.queryKey,u))return!1}if(i!=="all"){const m=a.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof d=="boolean"&&a.isStale()!==d||o&&o!==a.state.fetchStatus||c&&!c(a))}function cy(e,a){const{exact:i,status:l,predicate:o,mutationKey:c}=e;if(c){if(!a.options.mutationKey)return!1;if(i){if(Lr(a.options.mutationKey)!==Lr(c))return!1}else if(!ao(a.options.mutationKey,c))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function Dh(e,a){return((a==null?void 0:a.queryKeyHashFn)||Lr)(e)}function Lr(e){return JSON.stringify(e,(a,i)=>th(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function ao(e,a){return e===a?!0:typeof e!=typeof a?!1:e&&a&&typeof e=="object"&&typeof a=="object"?Object.keys(a).every(i=>ao(e[i],a[i])):!1}var CS=Object.prototype.hasOwnProperty;function Px(e,a,i=0){if(e===a)return e;if(i>500)return a;const l=uy(e)&&uy(a);if(!l&&!(th(e)&&th(a)))return a;const c=(l?e:Object.keys(e)).length,u=l?a:Object.keys(a),d=u.length,m=l?new Array(d):{};let h=0;for(let b=0;b<d;b++){const g=l?b:u[b],E=e[g],x=a[g];if(E===x){m[g]=E,(l?b<c:CS.call(e,g))&&h++;continue}if(E===null||x===null||typeof E!="object"||typeof x!="object"){m[g]=x;continue}const S=Px(E,x,i+1);m[g]=S,S===E&&h++}return c===d&&h===c?e:m}function eu(e,a){if(!a||Object.keys(e).length!==Object.keys(a).length)return!1;for(const i in e)if(e[i]!==a[i])return!1;return!0}function uy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function th(e){if(!fy(e))return!1;const a=e.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!fy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fy(e){return Object.prototype.toString.call(e)==="[object Object]"}function AS(e){return new Promise(a=>{wr.setTimeout(a,e)})}function nh(e,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,a):i.structuralSharing!==!1?Px(e,a):a}function RS(e,a,i=0){const l=[...e,a];return i&&l.length>i?l.slice(1):l}function OS(e,a,i=0){const l=[a,...e];return i&&l.length>i?l.slice(0,-1):l}var Lh=Symbol();function Gx(e,a){return!e.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!e.queryFn||e.queryFn===Lh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function zh(e,a){return typeof e=="function"?e(...a):!!e}function MS(e,a,i){let l=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=a()),l||(l=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),e}var io=(()=>{let e=()=>kS;return{isServer(){return e()},setIsServer(a){e=a}}})();function ah(){let e,a;const i=new Promise((o,c)=>{e=o,a=c});i.status="pending",i.catch(()=>{});function l(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{l({status:"fulfilled",value:o}),e(o)},i.reject=o=>{l({status:"rejected",reason:o}),a(o)},i}var DS=NS;function LS(){let e=[],a=0,i=d=>{d()},l=d=>{d()},o=DS;const c=d=>{a?e.push(d):o(()=>{i(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{l(()=>{d.forEach(m=>{i(m)})})})};return{batch:d=>{let m;a++;try{m=d()}finally{a--,a||u()}return m},batchCalls:d=>(...m)=>{c(()=>{d(...m)})},schedule:c,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{o=d}}}var Yt=LS(),Ol,Pi,Ml,Dx,zS=(Dx=class extends Pl{constructor(){super();we(this,Ol,!0);we(this,Pi);we(this,Ml);me(this,Ml,a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),l=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){M(this,Pi)||this.setEventListener(M(this,Ml))}onUnsubscribe(){var a;this.hasListeners()||((a=M(this,Pi))==null||a.call(this),me(this,Pi,void 0))}setEventListener(a){var i;me(this,Ml,a),(i=M(this,Pi))==null||i.call(this),me(this,Pi,a(this.setOnline.bind(this)))}setOnline(a){M(this,Ol)!==a&&(me(this,Ol,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return M(this,Ol)}},Ol=new WeakMap,Pi=new WeakMap,Ml=new WeakMap,Dx),tu=new zS;function jS(e){return Math.min(1e3*2**e,3e4)}function $x(e){return(e??"online")==="online"?tu.isOnline():!0}var ih=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kx(e){let a=!1,i=0,l;const o=ah(),c=()=>o.status!=="pending",u=w=>{var T;if(!c()){const N=new ih(w);E(N),(T=e.onCancel)==null||T.call(e,N)}},d=()=>{a=!0},m=()=>{a=!1},h=()=>Mh.isFocused()&&(e.networkMode==="always"||tu.isOnline())&&e.canRun(),b=()=>$x(e.networkMode)&&e.canRun(),g=w=>{c()||(l==null||l(),o.resolve(w))},E=w=>{c()||(l==null||l(),o.reject(w))},x=()=>new Promise(w=>{var T;l=N=>{(c()||h())&&w(N)},(T=e.onPause)==null||T.call(e)}).then(()=>{var w;l=void 0,c()||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(c())return;let w;const T=i===0?e.initialPromise:void 0;try{w=T??e.fn()}catch(N){w=Promise.reject(N)}Promise.resolve(w).then(g).catch(N=>{var z;if(c())return;const I=e.retry??(io.isServer()?0:3),D=e.retryDelay??jS,H=typeof D=="function"?D(i,N):D,$=I===!0||typeof I=="number"&&i<I||typeof I=="function"&&I(i,N);if(a||!$){E(N);return}i++,(z=e.onFail)==null||z.call(e,i,N),AS(H).then(()=>h()?void 0:x()).then(()=>{a?E(N):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(l==null||l(),o),cancelRetry:d,continueRetry:m,canStart:b,start:()=>(b()?S():x().then(S),o)}}var kr,Lx,Yx=(Lx=class{constructor(){we(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eh(this.gcTime)&&me(this,kr,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(io.isServer()?1/0:300*1e3))}clearGcTimeout(){M(this,kr)!==void 0&&(wr.clearTimeout(M(this,kr)),me(this,kr,void 0))}},kr=new WeakMap,Lx),Tr,Dl,ia,Cr,Vt,oo,Ar,$n,Qx,ti,zx,IS=(zx=class extends Yx{constructor(a){super();we(this,$n);we(this,Tr);we(this,Dl);we(this,ia);we(this,Cr);we(this,Vt);we(this,oo);we(this,Ar);me(this,Ar,!1),me(this,oo,a.defaultOptions),this.setOptions(a.options),this.observers=[],me(this,Cr,a.client),me(this,ia,M(this,Cr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,me(this,Tr,hy(this.options)),this.state=a.state??M(this,Tr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=M(this,Vt))==null?void 0:a.promise}setOptions(a){if(this.options={...M(this,oo),...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=hy(this.options);i.data!==void 0&&(this.setState(dy(i.data,i.dataUpdatedAt)),me(this,Tr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,ia).remove(this)}setData(a,i){const l=nh(this.state.data,a,this.options);return Ie(this,$n,ti).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(a,i){Ie(this,$n,ti).call(this,{type:"setState",state:a,setStateOptions:i})}cancel(a){var l,o;const i=(l=M(this,Vt))==null?void 0:l.promise;return(o=M(this,Vt))==null||o.cancel(a),i?i.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return M(this,Tr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>ra(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Xi(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!qx(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=M(this,Vt))==null||i.continue()}onOnline(){var i;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=M(this,Vt))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),M(this,ia).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(M(this,Vt)&&(M(this,Ar)||Ie(this,$n,Qx).call(this)?M(this,Vt).cancel({revert:!0}):M(this,Vt).cancelRetry()),this.scheduleGc()),M(this,ia).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,$n,ti).call(this,{type:"invalidate"})}async fetch(a,i){var m,h,b,g,E,x,S,w,T,N,I,D;if(this.state.fetchStatus!=="idle"&&((m=M(this,Vt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(M(this,Vt))return M(this,Vt).continueRetry(),M(this,Vt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const H=this.observers.find($=>$.options.queryFn);H&&this.setOptions(H.options)}const l=new AbortController,o=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(me(this,Ar,!0),l.signal)})},c=()=>{const H=Gx(this.options,i),z=(()=>{const G={client:M(this,Cr),queryKey:this.queryKey,meta:this.meta};return o(G),G})();return me(this,Ar,!1),this.options.persister?this.options.persister(H,z,this):H(z)},d=(()=>{const H={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:M(this,Cr),state:this.state,fetchFn:c};return o(H),H})();(h=this.options.behavior)==null||h.onFetch(d,this),me(this,Dl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=d.fetchOptions)==null?void 0:b.meta))&&Ie(this,$n,ti).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),me(this,Vt,Kx({initialPromise:i==null?void 0:i.initialPromise,fn:d.fetchFn,onCancel:H=>{H instanceof ih&&H.revert&&this.setState({...M(this,Dl),fetchStatus:"idle"}),l.abort()},onFail:(H,$)=>{Ie(this,$n,ti).call(this,{type:"failed",failureCount:H,error:$})},onPause:()=>{Ie(this,$n,ti).call(this,{type:"pause"})},onContinue:()=>{Ie(this,$n,ti).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const H=await M(this,Vt).start();if(H===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(H),(x=(E=M(this,ia).config).onSuccess)==null||x.call(E,H,this),(w=(S=M(this,ia).config).onSettled)==null||w.call(S,H,this.state.error,this),H}catch(H){if(H instanceof ih){if(H.silent)return M(this,Vt).promise;if(H.revert){if(this.state.data===void 0)throw H;return this.state.data}}throw Ie(this,$n,ti).call(this,{type:"error",error:H}),(N=(T=M(this,ia).config).onError)==null||N.call(T,H,this),(D=(I=M(this,ia).config).onSettled)==null||D.call(I,this.state.data,H,this),H}finally{this.scheduleGc()}}},Tr=new WeakMap,Dl=new WeakMap,ia=new WeakMap,Cr=new WeakMap,Vt=new WeakMap,oo=new WeakMap,Ar=new WeakMap,$n=new WeakSet,Qx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ti=function(a){const i=l=>{switch(a.type){case"failed":return{...l,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Vx(l.data,this.options),fetchMeta:a.meta??null};case"success":const o={...l,...dy(a.data,a.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return me(this,Dl,a.manual?o:void 0),o;case"error":const c=a.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=i(this.state),Yt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),M(this,ia).notify({query:this,type:"updated",action:a})})},zx);function Vx(e,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$x(a.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dy(e,a){return{data:e,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hy(e){const a=typeof e.initialData=="function"?e.initialData():e.initialData,i=a!==void 0,l=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Rn,Ze,co,pn,Rr,Ll,ni,Gi,uo,zl,jl,Or,Mr,$i,Il,it,Js,rh,lh,sh,oh,ch,uh,fh,Xx,jx,US=(jx=class extends Pl{constructor(a,i){super();we(this,it);we(this,Rn);we(this,Ze);we(this,co);we(this,pn);we(this,Rr);we(this,Ll);we(this,ni);we(this,Gi);we(this,uo);we(this,zl);we(this,jl);we(this,Or);we(this,Mr);we(this,$i);we(this,Il,new Set);this.options=i,me(this,Rn,a),me(this,Gi,null),me(this,ni,ah()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Ze).addObserver(this),my(M(this,Ze),this.options)?Ie(this,it,Js).call(this):this.updateResult(),Ie(this,it,oh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dh(M(this,Ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dh(M(this,Ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,it,ch).call(this),Ie(this,it,uh).call(this),M(this,Ze).removeObserver(this)}setOptions(a){const i=this.options,l=M(this,Ze);if(this.options=M(this,Rn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ra(this.options.enabled,M(this,Ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,it,fh).call(this),M(this,Ze).setOptions(this.options),i._defaulted&&!eu(this.options,i)&&M(this,Rn).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Ze),observer:this});const o=this.hasListeners();o&&py(M(this,Ze),l,this.options,i)&&Ie(this,it,Js).call(this),this.updateResult(),o&&(M(this,Ze)!==l||ra(this.options.enabled,M(this,Ze))!==ra(i.enabled,M(this,Ze))||Xi(this.options.staleTime,M(this,Ze))!==Xi(i.staleTime,M(this,Ze)))&&Ie(this,it,rh).call(this);const c=Ie(this,it,lh).call(this);o&&(M(this,Ze)!==l||ra(this.options.enabled,M(this,Ze))!==ra(i.enabled,M(this,Ze))||c!==M(this,$i))&&Ie(this,it,sh).call(this,c)}getOptimisticResult(a){const i=M(this,Rn).getQueryCache().build(M(this,Rn),a),l=this.createResult(i,a);return HS(this,l)&&(me(this,pn,l),me(this,Ll,this.options),me(this,Rr,M(this,Ze).state)),l}getCurrentResult(){return M(this,pn)}trackResult(a,i){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,ni).status==="pending"&&M(this,ni).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(a){M(this,Il).add(a)}getCurrentQuery(){return M(this,Ze)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=M(this,Rn).defaultQueryOptions(a),l=M(this,Rn).getQueryCache().build(M(this,Rn),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(a){return Ie(this,it,Js).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,pn)))}createResult(a,i){var V;const l=M(this,Ze),o=this.options,c=M(this,pn),u=M(this,Rr),d=M(this,Ll),h=a!==l?a.state:M(this,co),{state:b}=a;let g={...b},E=!1,x;if(i._optimisticResults){const A=this.hasListeners(),ae=!A&&my(a,i),ie=A&&py(a,l,i,o);(ae||ie)&&(g={...g,...Vx(b.data,a.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:T}=g;x=g.data;let N=!1;if(i.placeholderData!==void 0&&x===void 0&&T==="pending"){let A;c!=null&&c.isPlaceholderData&&i.placeholderData===(d==null?void 0:d.placeholderData)?(A=c.data,N=!0):A=typeof i.placeholderData=="function"?i.placeholderData((V=M(this,jl))==null?void 0:V.state.data,M(this,jl)):i.placeholderData,A!==void 0&&(T="success",x=nh(c==null?void 0:c.data,A,i),E=!0)}if(i.select&&x!==void 0&&!N)if(c&&x===(u==null?void 0:u.data)&&i.select===M(this,uo))x=M(this,zl);else try{me(this,uo,i.select),x=i.select(x),x=nh(c==null?void 0:c.data,x,i),me(this,zl,x),me(this,Gi,null)}catch(A){me(this,Gi,A)}M(this,Gi)&&(S=M(this,Gi),x=M(this,zl),w=Date.now(),T="error");const I=g.fetchStatus==="fetching",D=T==="pending",H=T==="error",$=D&&I,z=x!==void 0,X={status:T,fetchStatus:g.fetchStatus,isPending:D,isSuccess:T==="success",isError:H,isInitialLoading:$,isLoading:$,data:x,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:I,isRefetching:I&&!D,isLoadingError:H&&!z,isPaused:g.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:H&&z,isStale:jh(a,i),refetch:this.refetch,promise:M(this,ni),isEnabled:ra(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const A=X.data!==void 0,ae=X.status==="error"&&!A,ie=te=>{ae?te.reject(X.error):A&&te.resolve(X.data)},ge=()=>{const te=me(this,ni,X.promise=ah());ie(te)},le=M(this,ni);switch(le.status){case"pending":a.queryHash===l.queryHash&&ie(le);break;case"fulfilled":(ae||X.data!==le.value)&&ge();break;case"rejected":(!ae||X.error!==le.reason)&&ge();break}}return X}updateResult(){const a=M(this,pn),i=this.createResult(M(this,Ze),this.options);if(me(this,Rr,M(this,Ze).state),me(this,Ll,this.options),M(this,Rr).data!==void 0&&me(this,jl,M(this,Ze)),eu(i,a))return;me(this,pn,i);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!M(this,Il).size)return!0;const u=new Set(c??M(this,Il));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,pn)).some(d=>{const m=d;return M(this,pn)[m]!==a[m]&&u.has(m)})};Ie(this,it,Xx).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,it,oh).call(this)}},Rn=new WeakMap,Ze=new WeakMap,co=new WeakMap,pn=new WeakMap,Rr=new WeakMap,Ll=new WeakMap,ni=new WeakMap,Gi=new WeakMap,uo=new WeakMap,zl=new WeakMap,jl=new WeakMap,Or=new WeakMap,Mr=new WeakMap,$i=new WeakMap,Il=new WeakMap,it=new WeakSet,Js=function(a){Ie(this,it,fh).call(this);let i=M(this,Ze).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(bn)),i},rh=function(){Ie(this,it,ch).call(this);const a=Xi(this.options.staleTime,M(this,Ze));if(io.isServer()||M(this,pn).isStale||!eh(a))return;const l=qx(M(this,pn).dataUpdatedAt,a)+1;me(this,Or,wr.setTimeout(()=>{M(this,pn).isStale||this.updateResult()},l))},lh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Ze)):this.options.refetchInterval)??!1},sh=function(a){Ie(this,it,uh).call(this),me(this,$i,a),!(io.isServer()||ra(this.options.enabled,M(this,Ze))===!1||!eh(M(this,$i))||M(this,$i)===0)&&me(this,Mr,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||Mh.isFocused())&&Ie(this,it,Js).call(this)},M(this,$i)))},oh=function(){Ie(this,it,rh).call(this),Ie(this,it,sh).call(this,Ie(this,it,lh).call(this))},ch=function(){M(this,Or)!==void 0&&(wr.clearTimeout(M(this,Or)),me(this,Or,void 0))},uh=function(){M(this,Mr)!==void 0&&(wr.clearInterval(M(this,Mr)),me(this,Mr,void 0))},fh=function(){const a=M(this,Rn).getQueryCache().build(M(this,Rn),this.options);if(a===M(this,Ze))return;const i=M(this,Ze);me(this,Ze,a),me(this,co,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},Xx=function(a){Yt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(M(this,pn))}),M(this,Rn).getQueryCache().notify({query:M(this,Ze),type:"observerResultsUpdated"})})},jx);function BS(e,a){return ra(a.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&a.retryOnMount===!1)}function my(e,a){return BS(e,a)||e.state.data!==void 0&&dh(e,a,a.refetchOnMount)}function dh(e,a,i){if(ra(a.enabled,e)!==!1&&Xi(a.staleTime,e)!=="static"){const l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&jh(e,a)}return!1}function py(e,a,i,l){return(e!==a||ra(l.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&jh(e,i)}function jh(e,a){return ra(a.enabled,e)!==!1&&e.isStaleByTime(Xi(a.staleTime,e))}function HS(e,a){return!eu(e.getCurrentResult(),a)}function gy(e){return{onFetch:(a,i)=>{var b,g,E,x,S;const l=a.options,o=(E=(g=(b=a.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:E.direction,c=((x=a.state.data)==null?void 0:x.pages)||[],u=((S=a.state.data)==null?void 0:S.pageParams)||[];let d={pages:[],pageParams:[]},m=0;const h=async()=>{let w=!1;const T=D=>{MS(D,()=>a.signal,()=>w=!0)},N=Gx(a.options,a.fetchOptions),I=async(D,H,$)=>{if(w)return Promise.reject();if(H==null&&D.pages.length)return Promise.resolve(D);const G=(()=>{const ae={client:a.client,queryKey:a.queryKey,pageParam:H,direction:$?"backward":"forward",meta:a.options.meta};return T(ae),ae})(),X=await N(G),{maxPages:V}=a.options,A=$?OS:RS;return{pages:A(D.pages,X,V),pageParams:A(D.pageParams,H,V)}};if(o&&c.length){const D=o==="backward",H=D?FS:by,$={pages:c,pageParams:u},z=H(l,$);d=await I($,z,D)}else{const D=e??c.length;do{const H=m===0?u[0]??l.initialPageParam:by(l,d);if(m>0&&H==null)break;d=await I(d,H),m++}while(m<D)}return d};a.options.persister?a.fetchFn=()=>{var w,T;return(T=(w=a.options).persister)==null?void 0:T.call(w,h,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i)}:a.fetchFn=h}}}function by(e,{pages:a,pageParams:i}){const l=a.length-1;return a.length>0?e.getNextPageParam(a[l],a,i[l],i):void 0}function FS(e,{pages:a,pageParams:i}){var l;return a.length>0?(l=e.getPreviousPageParam)==null?void 0:l.call(e,a[0],a,i[0],i):void 0}var fo,Aa,sn,Dr,Ra,Hi,Ix,qS=(Ix=class extends Yx{constructor(a){super();we(this,Ra);we(this,fo);we(this,Aa);we(this,sn);we(this,Dr);me(this,fo,a.client),this.mutationId=a.mutationId,me(this,sn,a.mutationCache),me(this,Aa,[]),this.state=a.state||Zx(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){M(this,Aa).includes(a)||(M(this,Aa).push(a),this.clearGcTimeout(),M(this,sn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){me(this,Aa,M(this,Aa).filter(i=>i!==a)),this.scheduleGc(),M(this,sn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){M(this,Aa).length||(this.state.status==="pending"?this.scheduleGc():M(this,sn).remove(this))}continue(){var a;return((a=M(this,Dr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,d,m,h,b,g,E,x,S,w,T,N,I,D,H,$,z,G;const i=()=>{Ie(this,Ra,Hi).call(this,{type:"continue"})},l={client:M(this,fo),meta:this.options.meta,mutationKey:this.options.mutationKey};me(this,Dr,Kx({fn:()=>this.options.mutationFn?this.options.mutationFn(a,l):Promise.reject(new Error("No mutationFn found")),onFail:(X,V)=>{Ie(this,Ra,Hi).call(this,{type:"failed",failureCount:X,error:V})},onPause:()=>{Ie(this,Ra,Hi).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,sn).canRun(this)}));const o=this.state.status==="pending",c=!M(this,Dr).canStart();try{if(o)i();else{Ie(this,Ra,Hi).call(this,{type:"pending",variables:a,isPaused:c}),M(this,sn).config.onMutate&&await M(this,sn).config.onMutate(a,this,l);const V=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,a,l));V!==this.state.context&&Ie(this,Ra,Hi).call(this,{type:"pending",context:V,variables:a,isPaused:c})}const X=await M(this,Dr).start();return await((h=(m=M(this,sn).config).onSuccess)==null?void 0:h.call(m,X,a,this.state.context,this,l)),await((g=(b=this.options).onSuccess)==null?void 0:g.call(b,X,a,this.state.context,l)),await((x=(E=M(this,sn).config).onSettled)==null?void 0:x.call(E,X,null,this.state.variables,this.state.context,this,l)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,X,null,a,this.state.context,l)),Ie(this,Ra,Hi).call(this,{type:"success",data:X}),X}catch(X){try{await((N=(T=M(this,sn).config).onError)==null?void 0:N.call(T,X,a,this.state.context,this,l))}catch(V){Promise.reject(V)}try{await((D=(I=this.options).onError)==null?void 0:D.call(I,X,a,this.state.context,l))}catch(V){Promise.reject(V)}try{await(($=(H=M(this,sn).config).onSettled)==null?void 0:$.call(H,void 0,X,this.state.variables,this.state.context,this,l))}catch(V){Promise.reject(V)}try{await((G=(z=this.options).onSettled)==null?void 0:G.call(z,void 0,X,a,this.state.context,l))}catch(V){Promise.reject(V)}throw Ie(this,Ra,Hi).call(this,{type:"error",error:X}),X}finally{M(this,sn).runNext(this)}}},fo=new WeakMap,Aa=new WeakMap,sn=new WeakMap,Dr=new WeakMap,Ra=new WeakSet,Hi=function(a){const i=l=>{switch(a.type){case"failed":return{...l,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...l,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:a.error,failureCount:l.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Yt.batch(()=>{M(this,Aa).forEach(l=>{l.onMutationUpdate(a)}),M(this,sn).notify({mutation:this,type:"updated",action:a})})},Ix);function Zx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ai,ma,ho,Ux,PS=(Ux=class extends Pl{constructor(a={}){super();we(this,ai);we(this,ma);we(this,ho);this.config=a,me(this,ai,new Set),me(this,ma,new Map),me(this,ho,0)}build(a,i,l){const o=new qS({client:a,mutationCache:this,mutationId:++Ic(this,ho)._,options:a.defaultMutationOptions(i),state:l});return this.add(o),o}add(a){M(this,ai).add(a);const i=Uc(a);if(typeof i=="string"){const l=M(this,ma).get(i);l?l.push(a):M(this,ma).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(M(this,ai).delete(a)){const i=Uc(a);if(typeof i=="string"){const l=M(this,ma).get(i);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&M(this,ma).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Uc(a);if(typeof i=="string"){const l=M(this,ma).get(i),o=l==null?void 0:l.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var l;const i=Uc(a);if(typeof i=="string"){const o=(l=M(this,ma).get(i))==null?void 0:l.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Yt.batch(()=>{M(this,ai).forEach(a=>{this.notify({type:"removed",mutation:a})}),M(this,ai).clear(),M(this,ma).clear()})}getAll(){return Array.from(M(this,ai))}find(a){const i={exact:!0,...a};return this.getAll().find(l=>cy(i,l))}findAll(a={}){return this.getAll().filter(i=>cy(a,i))}notify(a){Yt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Yt.batch(()=>Promise.all(a.map(i=>i.continue().catch(bn))))}},ai=new WeakMap,ma=new WeakMap,ho=new WeakMap,Ux);function Uc(e){var a;return(a=e.options.scope)==null?void 0:a.id}var ii,Ki,On,ri,li,Xc,hh,Bx,GS=(Bx=class extends Pl{constructor(i,l){super();we(this,li);we(this,ii);we(this,Ki);we(this,On);we(this,ri);me(this,ii,i),this.setOptions(l),this.bindMethods(),Ie(this,li,Xc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const l=this.options;this.options=M(this,ii).defaultMutationOptions(i),eu(this.options,l)||M(this,ii).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,On),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Lr(l.mutationKey)!==Lr(this.options.mutationKey)?this.reset():((o=M(this,On))==null?void 0:o.state.status)==="pending"&&M(this,On).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=M(this,On))==null||i.removeObserver(this)}onMutationUpdate(i){Ie(this,li,Xc).call(this),Ie(this,li,hh).call(this,i)}getCurrentResult(){return M(this,Ki)}reset(){var i;(i=M(this,On))==null||i.removeObserver(this),me(this,On,void 0),Ie(this,li,Xc).call(this),Ie(this,li,hh).call(this)}mutate(i,l){var o;return me(this,ri,l),(o=M(this,On))==null||o.removeObserver(this),me(this,On,M(this,ii).getMutationCache().build(M(this,ii),this.options)),M(this,On).addObserver(this),M(this,On).execute(i)}},ii=new WeakMap,Ki=new WeakMap,On=new WeakMap,ri=new WeakMap,li=new WeakSet,Xc=function(){var l;const i=((l=M(this,On))==null?void 0:l.state)??Zx();me(this,Ki,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},hh=function(i){Yt.batch(()=>{var l,o,c,u,d,m,h,b;if(M(this,ri)&&this.hasListeners()){const g=M(this,Ki).variables,E=M(this,Ki).context,x={client:M(this,ii),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(l=M(this,ri)).onSuccess)==null||o.call(l,i.data,g,E,x)}catch(S){Promise.reject(S)}try{(u=(c=M(this,ri)).onSettled)==null||u.call(c,i.data,null,g,E,x)}catch(S){Promise.reject(S)}}else if((i==null?void 0:i.type)==="error"){try{(m=(d=M(this,ri)).onError)==null||m.call(d,i.error,g,E,x)}catch(S){Promise.reject(S)}try{(b=(h=M(this,ri)).onSettled)==null||b.call(h,void 0,i.error,g,E,x)}catch(S){Promise.reject(S)}}}this.listeners.forEach(g=>{g(M(this,Ki))})})},Bx),Oa,Hx,$S=(Hx=class extends Pl{constructor(a={}){super();we(this,Oa);this.config=a,me(this,Oa,new Map)}build(a,i,l){const o=i.queryKey,c=i.queryHash??Dh(o,i);let u=this.get(c);return u||(u=new IS({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(i),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(u)),u}add(a){M(this,Oa).has(a.queryHash)||(M(this,Oa).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=M(this,Oa).get(a.queryHash);i&&(a.destroy(),i===a&&M(this,Oa).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Yt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return M(this,Oa).get(a)}getAll(){return[...M(this,Oa).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(l=>oy(i,l))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(l=>oy(a,l)):i}notify(a){Yt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Oa=new WeakMap,Hx),Ot,Yi,Qi,Ul,Bl,Vi,Hl,Fl,Fx,KS=(Fx=class{constructor(e={}){we(this,Ot);we(this,Yi);we(this,Qi);we(this,Ul);we(this,Bl);we(this,Vi);we(this,Hl);we(this,Fl);me(this,Ot,e.queryCache||new $S),me(this,Yi,e.mutationCache||new PS),me(this,Qi,e.defaultOptions||{}),me(this,Ul,new Map),me(this,Bl,new Map),me(this,Vi,0)}mount(){Ic(this,Vi)._++,M(this,Vi)===1&&(me(this,Hl,Mh.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ot).onFocus())})),me(this,Fl,tu.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ot).onOnline())})))}unmount(){var e,a;Ic(this,Vi)._--,M(this,Vi)===0&&((e=M(this,Hl))==null||e.call(this),me(this,Hl,void 0),(a=M(this,Fl))==null||a.call(this),me(this,Fl,void 0))}isFetching(e){return M(this,Ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Yi).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=M(this,Ot).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const a=this.defaultQueryOptions(e),i=M(this,Ot).build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Xi(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(e){return M(this,Ot).findAll(e).map(({queryKey:a,state:i})=>{const l=i.data;return[a,l]})}setQueryData(e,a,i){const l=this.defaultQueryOptions({queryKey:e}),o=M(this,Ot).get(l.queryHash),c=o==null?void 0:o.state.data,u=TS(a,c);if(u!==void 0)return M(this,Ot).build(this,l).setData(u,{...i,manual:!0})}setQueriesData(e,a,i){return Yt.batch(()=>M(this,Ot).findAll(e).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(e){var i;const a=this.defaultQueryOptions({queryKey:e});return(i=M(this,Ot).get(a.queryHash))==null?void 0:i.state}removeQueries(e){const a=M(this,Ot);Yt.batch(()=>{a.findAll(e).forEach(i=>{a.remove(i)})})}resetQueries(e,a){const i=M(this,Ot);return Yt.batch(()=>(i.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...e},a)))}cancelQueries(e,a={}){const i={revert:!0,...a},l=Yt.batch(()=>M(this,Ot).findAll(e).map(o=>o.cancel(i)));return Promise.all(l).then(bn).catch(bn)}invalidateQueries(e,a={}){return Yt.batch(()=>(M(this,Ot).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},a)))}refetchQueries(e,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},l=Yt.batch(()=>M(this,Ot).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(bn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(bn)}fetchQuery(e){const a=this.defaultQueryOptions(e);a.retry===void 0&&(a.retry=!1);const i=M(this,Ot).build(this,a);return i.isStaleByTime(Xi(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=gy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=gy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tu.isOnline()?M(this,Yi).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Ot)}getMutationCache(){return M(this,Yi)}getDefaultOptions(){return M(this,Qi)}setDefaultOptions(e){me(this,Qi,e)}setQueryDefaults(e,a){M(this,Ul).set(Lr(e),{queryKey:e,defaultOptions:a})}getQueryDefaults(e){const a=[...M(this,Ul).values()],i={};return a.forEach(l=>{ao(e,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(e,a){M(this,Bl).set(Lr(e),{mutationKey:e,defaultOptions:a})}getMutationDefaults(e){const a=[...M(this,Bl).values()],i={};return a.forEach(l=>{ao(e,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const a={...M(this,Qi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return a.queryHash||(a.queryHash=Dh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Lh&&(a.enabled=!1),a}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Qi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,Ot).clear(),M(this,Yi).clear()}},Ot=new WeakMap,Yi=new WeakMap,Qi=new WeakMap,Ul=new WeakMap,Bl=new WeakMap,Vi=new WeakMap,Hl=new WeakMap,Fl=new WeakMap,Fx),Wx=j.createContext(void 0),ba=e=>{const a=j.useContext(Wx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},YS=({client:e,children:a})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Wx.Provider,{value:e,children:a})),Jx=j.createContext(!1),QS=()=>j.useContext(Jx);Jx.Provider;function VS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var XS=j.createContext(VS()),ZS=()=>j.useContext(XS),WS=(e,a,i)=>{const l=i!=null&&i.state.error&&typeof e.throwOnError=="function"?zh(e.throwOnError,[i.state.error,i]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||l)&&(a.isReset()||(e.retryOnMount=!1))},JS=e=>{j.useEffect(()=>{e.clearReset()},[e])},e1=({result:e,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>e.isError&&!a.isReset()&&!e.isFetching&&l&&(o&&e.data===void 0||zh(i,[e.error,l])),t1=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),l=e.staleTime;e.staleTime=typeof l=="function"?(...o)=>i(l(...o)):i(l),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},n1=(e,a)=>e.isLoading&&e.isFetching&&!a,a1=(e,a)=>(e==null?void 0:e.suspense)&&a.isPending,yy=(e,a,i)=>a.fetchOptimistic(e).catch(()=>{i.clearReset()});function i1(e,a,i){var E,x,S,w;const l=QS(),o=ZS(),c=ba(),u=c.defaultQueryOptions(e);(x=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||x.call(E,u);const d=c.getQueryCache().get(u.queryHash);u._optimisticResults=l?"isRestoring":"optimistic",t1(u),WS(u,o,d),JS(o);const m=!c.getQueryCache().get(u.queryHash),[h]=j.useState(()=>new a(c,u)),b=h.getOptimisticResult(u),g=!l&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(T=>{const N=g?h.subscribe(Yt.batchCalls(T)):bn;return h.updateResult(),N},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),j.useEffect(()=>{h.setOptions(u)},[u,h]),a1(u,b))throw yy(u,h,o);if(e1({result:b,errorResetBoundary:o,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw b.error;if((w=(S=c.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||w.call(S,u,b),u.experimental_prefetchInRender&&!io.isServer()&&n1(b,l)){const T=m?yy(u,h,o):d==null?void 0:d.promise;T==null||T.catch(bn).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?b:h.trackResult(b)}function Gt(e,a){return i1(e,US)}function uu(e,a){const i=ba(),[l]=j.useState(()=>new GS(i,e));j.useEffect(()=>{l.setOptions(e)},[l,e]);const o=j.useSyncExternalStore(j.useCallback(u=>l.subscribe(Yt.batchCalls(u)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=j.useCallback((u,d)=>{l.mutate(u,d).catch(bn)},[l]);if(o.error&&zh(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}/**
|
|
50
|
-
* react-router v7.14.2
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var xy="popstate";function vy(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function r1(e={}){function a(l,o){var h;let c=(h=o.state)==null?void 0:h.masked,{pathname:u,search:d,hash:m}=c||l.location;return mh("",{pathname:u,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function i(l,o){return typeof o=="string"?o:ro(o)}return s1(a,i,null,e)}function Nt(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function sa(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function l1(){return Math.random().toString(36).substring(2,10)}function Ey(e,a){return{usr:e.state,key:e.key,idx:a,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function mh(e,a,i=null,l,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Gl(a):a,state:i,key:a&&a.key||l||l1(),unstable_mask:o}}function ro({pathname:e="/",search:a="",hash:i=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Gl(e){let a={};if(e){let i=e.indexOf("#");i>=0&&(a.hash=e.substring(i),e=e.substring(0,i));let l=e.indexOf("?");l>=0&&(a.search=e.substring(l),e=e.substring(0,l)),e&&(a.pathname=e)}return a}function s1(e,a,i,l={}){let{window:o=document.defaultView,v5Compat:c=!1}=l,u=o.history,d="POP",m=null,h=b();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function b(){return(u.state||{idx:null}).idx}function g(){d="POP";let T=b(),N=T==null?null:T-h;h=T,m&&m({action:d,location:w.location,delta:N})}function E(T,N){d="PUSH";let I=vy(T)?T:mh(w.location,T,N);h=b()+1;let D=Ey(I,h),H=w.createHref(I.unstable_mask||I);try{u.pushState(D,"",H)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(H)}c&&m&&m({action:d,location:w.location,delta:1})}function x(T,N){d="REPLACE";let I=vy(T)?T:mh(w.location,T,N);h=b();let D=Ey(I,h),H=w.createHref(I.unstable_mask||I);u.replaceState(D,"",H),c&&m&&m({action:d,location:w.location,delta:0})}function S(T){return o1(T)}let w={get action(){return d},get location(){return e(o,u)},listen(T){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(xy,g),m=T,()=>{o.removeEventListener(xy,g),m=null}},createHref(T){return a(o,T)},createURL:S,encodeLocation(T){let N=S(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:E,replace:x,go(T){return u.go(T)}};return w}function o1(e,a=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Nt(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:ro(e);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function ev(e,a,i="/"){return c1(e,a,i,!1)}function c1(e,a,i,l){let o=typeof a=="string"?Gl(a):a,c=si(o.pathname||"/",i);if(c==null)return null;let u=tv(e);u1(u);let d=null;for(let m=0;d==null&&m<u.length;++m){let h=E1(c);d=x1(u[m],h,l)}return d}function tv(e,a=[],i=[],l="",o=!1){let c=(u,d,m=o,h)=>{let b={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(l)&&m)return;Nt(b.relativePath.startsWith(l),`Absolute route path "${b.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(l.length)}let g=pa([l,b.relativePath]),E=i.concat(b);u.children&&u.children.length>0&&(Nt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),tv(u.children,a,E,g,m)),!(u.path==null&&!u.index)&&a.push({path:g,score:b1(g,u.index),routesMeta:E})};return e.forEach((u,d)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))c(u,d);else for(let h of nv(u.path))c(u,d,!0,h)}),a}function nv(e){let a=e.split("/");if(a.length===0)return[];let[i,...l]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(l.length===0)return o?[c,""]:[c];let u=nv(l.join("/")),d=[];return d.push(...u.map(m=>m===""?c:[c,m].join("/"))),o&&d.push(...u),d.map(m=>e.startsWith("/")&&m===""?"/":m)}function u1(e){e.sort((a,i)=>a.score!==i.score?i.score-a.score:y1(a.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var f1=/^:[\w-]+$/,d1=3,h1=2,m1=1,p1=10,g1=-2,_y=e=>e==="*";function b1(e,a){let i=e.split("/"),l=i.length;return i.some(_y)&&(l+=g1),a&&(l+=h1),i.filter(o=>!_y(o)).reduce((o,c)=>o+(f1.test(c)?d1:c===""?m1:p1),l)}function y1(e,a){return e.length===a.length&&e.slice(0,-1).every((l,o)=>l===a[o])?e[e.length-1]-a[a.length-1]:0}function x1(e,a,i=!1){let{routesMeta:l}=e,o={},c="/",u=[];for(let d=0;d<l.length;++d){let m=l[d],h=d===l.length-1,b=c==="/"?a:a.slice(c.length)||"/",g=nu({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},b),E=m.route;if(!g&&h&&i&&!l[l.length-1].route.index&&(g=nu({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},b)),!g)return null;Object.assign(o,g.params),u.push({params:o,pathname:pa([c,g.pathname]),pathnameBase:N1(pa([c,g.pathnameBase])),route:E}),g.pathnameBase!=="/"&&(c=pa([c,g.pathnameBase]))}return u}function nu(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=v1(e.path,e.caseSensitive,e.end),o=a.match(i);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((h,{paramName:b,isOptional:g},E)=>{if(b==="*"){let S=d[E]||"";u=c.slice(0,c.length-S.length).replace(/(.)\/+$/,"$1")}const x=d[E];return g&&!x?h[b]=void 0:h[b]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:c,pathnameBase:u,pattern:e}}function v1(e,a=!1,i=!0){sa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,m,h,b)=>{if(l.push({paramName:d,isOptional:m!=null}),m){let g=b.charAt(h+u.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),l]}function E1(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return sa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function si(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,l=e.charAt(i);return l&&l!=="/"?null:e.slice(i)||"/"}var _1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function S1(e,a="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?Gl(e):e,c;return i?(i=av(i),i.startsWith("/")?c=Sy(i.substring(1),"/"):c=Sy(i,a)):c=a,{pathname:c,search:k1(l),hash:T1(o)}}function Sy(e,a){let i=au(a).split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Rd(e,a,i,l){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function w1(e){return e.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function Ih(e){let a=w1(e);return a.map((i,l)=>l===a.length-1?i.pathname:i.pathnameBase)}function fu(e,a,i,l=!1){let o;typeof e=="string"?o=Gl(e):(o={...e},Nt(!o.pathname||!o.pathname.includes("?"),Rd("?","pathname","search",o)),Nt(!o.pathname||!o.pathname.includes("#"),Rd("#","pathname","hash",o)),Nt(!o.search||!o.search.includes("#"),Rd("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,d;if(u==null)d=i;else{let g=a.length-1;if(!l&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),g-=1;o.pathname=E.join("/")}d=g>=0?a[g]:"/"}let m=S1(o,d),h=u&&u!=="/"&&u.endsWith("/"),b=(c||u===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(h||b)&&(m.pathname+="/"),m}var av=e=>e.replace(/\/\/+/g,"/"),pa=e=>av(e.join("/")),au=e=>e.replace(/\/+$/,""),N1=e=>au(e).replace(/^\/*/,"/"),k1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,T1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,C1=class{constructor(e,a,i,l=!1){this.status=e,this.statusText=a||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function A1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function R1(e){let a=e.map(i=>i.route.path).filter(Boolean);return pa(a)||"/"}var iv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rv(e,a){let i=e;if(typeof i!="string"||!_1.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,o=!1;if(iv)try{let c=new URL(window.location.href),u=i.startsWith("//")?new URL(c.protocol+i):new URL(i),d=si(u.pathname,a);u.origin===c.origin&&d!=null?i=d+u.search+u.hash:o=!0}catch{sa(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lv=["POST","PUT","PATCH","DELETE"];new Set(lv);var O1=["GET",...lv];new Set(O1);var $l=j.createContext(null);$l.displayName="DataRouter";var du=j.createContext(null);du.displayName="DataRouterState";var sv=j.createContext(!1);function M1(){return j.useContext(sv)}var ov=j.createContext({isTransitioning:!1});ov.displayName="ViewTransition";var D1=j.createContext(new Map);D1.displayName="Fetchers";var L1=j.createContext(null);L1.displayName="Await";var Yn=j.createContext(null);Yn.displayName="Navigation";var mo=j.createContext(null);mo.displayName="Location";var oa=j.createContext({outlet:null,matches:[],isDataRoute:!1});oa.displayName="Route";var Uh=j.createContext(null);Uh.displayName="RouteError";var cv="REACT_ROUTER_ERROR",z1="REDIRECT",j1="ROUTE_ERROR_RESPONSE";function I1(e){if(e.startsWith(`${cv}:${z1}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function U1(e){if(e.startsWith(`${cv}:${j1}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new C1(a.status,a.statusText,a.data)}catch{}}function B1(e,{relative:a}={}){Nt(Kl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=j.useContext(Yn),{hash:o,pathname:c,search:u}=po(e,{relative:a}),d=c;return i!=="/"&&(d=c==="/"?i:pa([i,c])),l.createHref({pathname:d,search:u,hash:o})}function Kl(){return j.useContext(mo)!=null}function ya(){return Nt(Kl(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(mo).location}var uv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fv(e){j.useContext(Yn).static||j.useLayoutEffect(e)}function Zi(){let{isDataRoute:e}=j.useContext(oa);return e?ew():H1()}function H1(){Nt(Kl(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext($l),{basename:a,navigator:i}=j.useContext(Yn),{matches:l}=j.useContext(oa),{pathname:o}=ya(),c=JSON.stringify(Ih(l)),u=j.useRef(!1);return fv(()=>{u.current=!0}),j.useCallback((m,h={})=>{if(sa(u.current,uv),!u.current)return;if(typeof m=="number"){i.go(m);return}let b=fu(m,JSON.parse(c),o,h.relative==="path");e==null&&a!=="/"&&(b.pathname=b.pathname==="/"?a:pa([a,b.pathname])),(h.replace?i.replace:i.push)(b,h.state,h)},[a,i,c,o,e])}var F1=j.createContext(null);function q1(e){let a=j.useContext(oa).outlet;return j.useMemo(()=>a&&j.createElement(F1.Provider,{value:e},a),[a,e])}function dv(){let{matches:e}=j.useContext(oa),a=e[e.length-1];return(a==null?void 0:a.params)??{}}function po(e,{relative:a}={}){let{matches:i}=j.useContext(oa),{pathname:l}=ya(),o=JSON.stringify(Ih(i));return j.useMemo(()=>fu(e,JSON.parse(o),l,a==="path"),[e,o,l,a])}function P1(e,a){return hv(e,a)}function hv(e,a,i){var T;Nt(Kl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=j.useContext(Yn),{matches:o}=j.useContext(oa),c=o[o.length-1],u=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",h=c&&c.route;{let N=h&&h.path||"";pv(d,!h||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=ya(),g;if(a){let N=typeof a=="string"?Gl(a):a;Nt(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),g=N}else g=b;let E=g.pathname||"/",x=E;if(m!=="/"){let N=m.replace(/^\//,"").split("/");x="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let S=ev(e,{pathname:x});sa(h||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),sa(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Q1(S&&S.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:pa([m,l.encodeLocation?l.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:pa([m,l.encodeLocation?l.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),o,i);return a&&w?j.createElement(mo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},w):w}function G1(){let e=J1(),a=A1(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:c},"ErrorBoundary")," or"," ",j.createElement("code",{style:c},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},a),i?j.createElement("pre",{style:o},i):null,u)}var $1=j.createElement(G1,null),mv=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const i=U1(e.digest);i&&(e=i)}let a=e!==void 0?j.createElement(oa.Provider,{value:this.props.routeContext},j.createElement(Uh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(K1,{error:e},a):a}};mv.contextType=sv;var Od=new WeakMap;function K1({children:e,error:a}){let{basename:i}=j.useContext(Yn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=I1(a.digest);if(l){let o=Od.get(a);if(o)throw o;let c=rv(l.location,i);if(iv&&!Od.get(a))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw Od.set(a,u),u}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function Y1({routeContext:e,match:a,children:i}){let l=j.useContext($l);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),j.createElement(oa.Provider,{value:e},i)}function Q1(e,a=[],i){let l=i==null?void 0:i.state;if(e==null){if(!l)return null;if(l.errors)e=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)e=l.matches;else return null}let o=e,c=l==null?void 0:l.errors;if(c!=null){let b=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);Nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let u=!1,d=-1;if(i&&l){u=l.renderFallback;for(let b=0;b<o.length;b++){let g=o[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=b),g.route.id){let{loaderData:E,errors:x}=l,S=g.route.loader&&!E.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||S){i.isStatic&&(u=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=i==null?void 0:i.onError,h=l&&m?(b,g)=>{var E,x;m(b,{location:l.location,params:((x=(E=l.matches)==null?void 0:E[0])==null?void 0:x.params)??{},unstable_pattern:R1(l.matches),errorInfo:g})}:void 0;return o.reduceRight((b,g,E)=>{let x,S=!1,w=null,T=null;l&&(x=c&&g.route.id?c[g.route.id]:void 0,w=g.route.errorElement||$1,u&&(d<0&&E===0?(pv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):d===E&&(S=!0,T=g.route.hydrateFallbackElement||null)));let N=a.concat(o.slice(0,E+1)),I=()=>{let D;return x?D=w:S?D=T:g.route.Component?D=j.createElement(g.route.Component,null):g.route.element?D=g.route.element:D=b,j.createElement(Y1,{match:g,routeContext:{outlet:b,matches:N,isDataRoute:l!=null},children:D})};return l&&(g.route.ErrorBoundary||g.route.errorElement||E===0)?j.createElement(mv,{location:l.location,revalidation:l.revalidation,component:w,error:x,children:I(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):I()},null)}function Bh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V1(e){let a=j.useContext($l);return Nt(a,Bh(e)),a}function X1(e){let a=j.useContext(du);return Nt(a,Bh(e)),a}function Z1(e){let a=j.useContext(oa);return Nt(a,Bh(e)),a}function Hh(e){let a=Z1(e),i=a.matches[a.matches.length-1];return Nt(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function W1(){return Hh("useRouteId")}function J1(){var l;let e=j.useContext(Uh),a=X1("useRouteError"),i=Hh("useRouteError");return e!==void 0?e:(l=a.errors)==null?void 0:l[i]}function ew(){let{router:e}=V1("useNavigate"),a=Hh("useNavigate"),i=j.useRef(!1);return fv(()=>{i.current=!0}),j.useCallback(async(o,c={})=>{sa(i.current,uv),i.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:a,...c}))},[e,a])}var wy={};function pv(e,a,i){!a&&!wy[e]&&(wy[e]=!0,sa(!1,i))}j.memo(tw);function tw({routes:e,future:a,state:i,isStatic:l,onError:o}){return hv(e,void 0,{state:i,isStatic:l,onError:o})}function nw({to:e,replace:a,state:i,relative:l}){Nt(Kl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=j.useContext(Yn);sa(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=j.useContext(oa),{pathname:u}=ya(),d=Zi(),m=fu(e,Ih(c),u,l==="path"),h=JSON.stringify(m);return j.useEffect(()=>{d(JSON.parse(h),{replace:a,state:i,relative:l})},[d,h,l,a,i]),null}function aw(e){return q1(e.context)}function Cn(e){Nt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function iw({basename:e="/",children:a=null,location:i,navigationType:l="POP",navigator:o,static:c=!1,unstable_useTransitions:u}){Nt(!Kl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),m=j.useMemo(()=>({basename:d,navigator:o,static:c,unstable_useTransitions:u,future:{}}),[d,o,c,u]);typeof i=="string"&&(i=Gl(i));let{pathname:h="/",search:b="",hash:g="",state:E=null,key:x="default",unstable_mask:S}=i,w=j.useMemo(()=>{let T=si(h,d);return T==null?null:{location:{pathname:T,search:b,hash:g,state:E,key:x,unstable_mask:S},navigationType:l}},[d,h,b,g,E,x,l,S]);return sa(w!=null,`<Router basename="${d}"> is not able to match the URL "${h}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:j.createElement(Yn.Provider,{value:m},j.createElement(mo.Provider,{children:a,value:w}))}function rw({children:e,location:a}){return P1(ph(e),a)}function ph(e,a=[]){let i=[];return j.Children.forEach(e,(l,o)=>{if(!j.isValidElement(l))return;let c=[...a,o];if(l.type===j.Fragment){i.push.apply(i,ph(l.props.children,c));return}Nt(l.type===Cn,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Nt(!l.props.index||!l.props.children,"An index route cannot have child routes.");let u={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(u.children=ph(l.props.children,c)),i.push(u)}),i}var Zc="get",Wc="application/x-www-form-urlencoded";function hu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function lw(e){return hu(e)&&e.tagName.toLowerCase()==="button"}function sw(e){return hu(e)&&e.tagName.toLowerCase()==="form"}function ow(e){return hu(e)&&e.tagName.toLowerCase()==="input"}function cw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uw(e,a){return e.button===0&&(!a||a==="_self")&&!cw(e)}function gh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((a,i)=>{let l=e[i];return a.concat(Array.isArray(l)?l.map(o=>[i,o]):[[i,l]])},[]))}function fw(e,a){let i=gh(e);return a&&a.forEach((l,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Bc=null;function dw(){if(Bc===null)try{new FormData(document.createElement("form"),0),Bc=!1}catch{Bc=!0}return Bc}var hw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Md(e){return e!=null&&!hw.has(e)?(sa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wc}"`),null):e}function mw(e,a){let i,l,o,c,u;if(sw(e)){let d=e.getAttribute("action");l=d?si(d,a):null,i=e.getAttribute("method")||Zc,o=Md(e.getAttribute("enctype"))||Wc,c=new FormData(e)}else if(lw(e)||ow(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||d.getAttribute("action");if(l=m?si(m,a):null,i=e.getAttribute("formmethod")||d.getAttribute("method")||Zc,o=Md(e.getAttribute("formenctype"))||Md(d.getAttribute("enctype"))||Wc,c=new FormData(d,e),!dw()){let{name:h,type:b,value:g}=e;if(b==="image"){let E=h?`${h}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else h&&c.append(h,g)}}else{if(hu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Zc,l=null,o=Wc,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fh(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function gv(e,a,i,l){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:a&&si(o.pathname,a)==="/"?o.pathname=`${au(a)}/_root.${l}`:o.pathname=`${au(o.pathname)}.${l}`,o}async function pw(e,a){if(e.id in a)return a[e.id];try{let i=await import(e.module);return a[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function bw(e,a,i){let l=await Promise.all(e.map(async o=>{let c=a.routes[o.route.id];if(c){let u=await pw(c,i);return u.links?u.links():[]}return[]}));return Ew(l.flat(1).filter(gw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Ny(e,a,i,l,o,c){let u=(m,h)=>i[h]?m.route.id!==i[h].route.id:!0,d=(m,h)=>{var b;return i[h].pathname!==m.pathname||((b=i[h].route.path)==null?void 0:b.endsWith("*"))&&i[h].params["*"]!==m.params["*"]};return c==="assets"?a.filter((m,h)=>u(m,h)||d(m,h)):c==="data"?a.filter((m,h)=>{var g;let b=l.routes[m.route.id];if(!b||!b.hasLoader)return!1;if(u(m,h)||d(m,h))return!0;if(m.route.shouldRevalidate){let E=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=i[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function yw(e,a,{includeHydrateFallback:i}={}){return xw(e.map(l=>{let o=a.routes[l.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function xw(e){return[...new Set(e)]}function vw(e){let a={},i=Object.keys(e).sort();for(let l of i)a[l]=e[l];return a}function Ew(e,a){let i=new Set;return new Set(a),e.reduce((l,o)=>{let c=JSON.stringify(vw(o));return i.has(c)||(i.add(c),l.push({key:c,link:o})),l},[])}function qh(){let e=j.useContext($l);return Fh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _w(){let e=j.useContext(du);return Fh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ph=j.createContext(void 0);Ph.displayName="FrameworkContext";function Gh(){let e=j.useContext(Ph);return Fh(e,"You must render this element inside a <HydratedRouter> element"),e}function Sw(e,a){let i=j.useContext(Ph),[l,o]=j.useState(!1),[c,u]=j.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:h,onMouseLeave:b,onTouchStart:g}=a,E=j.useRef(null);j.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let w=N=>{N.forEach(I=>{u(I.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return E.current&&T.observe(E.current),()=>{T.disconnect()}}},[e]),j.useEffect(()=>{if(l){let w=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(w)}}},[l]);let x=()=>{o(!0)},S=()=>{o(!1),u(!1)};return i?e!=="intent"?[c,E,{}]:[c,E,{onFocus:Ys(d,x),onBlur:Ys(m,S),onMouseEnter:Ys(h,x),onMouseLeave:Ys(b,S),onTouchStart:Ys(g,x)}]:[!1,E,{}]}function Ys(e,a){return i=>{e&&e(i),i.defaultPrevented||a(i)}}function ww({page:e,...a}){let i=M1(),{router:l}=qh(),o=j.useMemo(()=>ev(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?i?j.createElement(kw,{page:e,matches:o,...a}):j.createElement(Tw,{page:e,matches:o,...a}):null}function Nw(e){let{manifest:a,routeModules:i}=Gh(),[l,o]=j.useState([]);return j.useEffect(()=>{let c=!1;return bw(e,a,i).then(u=>{c||o(u)}),()=>{c=!0}},[e,a,i]),l}function kw({page:e,matches:a,...i}){let l=ya(),{future:o}=Gh(),{basename:c}=qh(),u=j.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let d=gv(e,c,o.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,h=[];for(let b of a)typeof b.route.shouldRevalidate=="function"?m=!0:h.push(b.route.id);return m&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[c,o.unstable_trailingSlashAwareDataRequests,e,l,a]);return j.createElement(j.Fragment,null,u.map(d=>j.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...i})))}function Tw({page:e,matches:a,...i}){let l=ya(),{future:o,manifest:c,routeModules:u}=Gh(),{basename:d}=qh(),{loaderData:m,matches:h}=_w(),b=j.useMemo(()=>Ny(e,a,h,c,l,"data"),[e,a,h,c,l]),g=j.useMemo(()=>Ny(e,a,h,c,l,"assets"),[e,a,h,c,l]),E=j.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(a.forEach(I=>{var H;let D=c.routes[I.route.id];!D||!D.hasLoader||(!b.some($=>$.route.id===I.route.id)&&I.route.id in m&&((H=u[I.route.id])!=null&&H.shouldRevalidate)||D.hasClientLoader?T=!0:w.add(I.route.id))}),w.size===0)return[];let N=gv(e,d,o.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&N.searchParams.set("_routes",a.filter(I=>w.has(I.route.id)).map(I=>I.route.id).join(",")),[N.pathname+N.search]},[d,o.unstable_trailingSlashAwareDataRequests,m,l,c,b,a,e,u]),x=j.useMemo(()=>yw(g,c),[g,c]),S=Nw(g);return j.createElement(j.Fragment,null,E.map(w=>j.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),x.map(w=>j.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),S.map(({key:w,link:T})=>j.createElement("link",{key:w,nonce:i.nonce,...T,crossOrigin:T.crossOrigin??i.crossOrigin})))}function Cw(...e){return a=>{e.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Aw&&(window.__reactRouterVersion="7.14.2")}catch{}function Rw({basename:e,children:a,unstable_useTransitions:i,window:l}){let o=j.useRef();o.current==null&&(o.current=r1({window:l,v5Compat:!0}));let c=o.current,[u,d]=j.useState({action:c.action,location:c.location}),m=j.useCallback(h=>{i===!1?d(h):j.startTransition(()=>d(h))},[i]);return j.useLayoutEffect(()=>c.listen(m),[c,m]),j.createElement(iw,{basename:e,children:a,location:u.location,navigationType:u.action,navigator:c,unstable_useTransitions:i})}var bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jr=j.forwardRef(function({onClick:a,discover:i="render",prefetch:l="none",relative:o,reloadDocument:c,replace:u,unstable_mask:d,state:m,target:h,to:b,preventScrollReset:g,viewTransition:E,unstable_defaultShouldRevalidate:x,...S},w){let{basename:T,navigator:N,unstable_useTransitions:I}=j.useContext(Yn),D=typeof b=="string"&&bv.test(b),H=rv(b,T);b=H.to;let $=B1(b,{relative:o}),z=ya(),G=null;if(d){let te=fu(d,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);T!=="/"&&(te.pathname=te.pathname==="/"?T:pa([T,te.pathname])),G=N.createHref(te)}let[X,V,A]=Sw(l,S),ae=Dw(b,{replace:u,unstable_mask:d,state:m,target:h,preventScrollReset:g,relative:o,viewTransition:E,unstable_defaultShouldRevalidate:x,unstable_useTransitions:I});function ie(te){a&&a(te),te.defaultPrevented||ae(te)}let ge=!(H.isExternal||c),le=j.createElement("a",{...S,...A,href:(ge?G:void 0)||H.absoluteURL||$,onClick:ge?ie:a,ref:Cw(w,V),target:h,"data-discover":!D&&i==="render"?"true":void 0});return X&&!D?j.createElement(j.Fragment,null,le,j.createElement(ww,{page:$})):le});jr.displayName="Link";var yv=j.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:l="",end:o=!1,style:c,to:u,viewTransition:d,children:m,...h},b){let g=po(u,{relative:h.relative}),E=ya(),x=j.useContext(du),{navigator:S,basename:w}=j.useContext(Yn),T=x!=null&&Uw(g)&&d===!0,N=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,I=E.pathname,D=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(I=I.toLowerCase(),D=D?D.toLowerCase():null,N=N.toLowerCase()),D&&w&&(D=si(D,w)||D);const H=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let $=I===N||!o&&I.startsWith(N)&&I.charAt(H)==="/",z=D!=null&&(D===N||!o&&D.startsWith(N)&&D.charAt(N.length)==="/"),G={isActive:$,isPending:z,isTransitioning:T},X=$?a:void 0,V;typeof l=="function"?V=l(G):V=[l,$?"active":null,z?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let A=typeof c=="function"?c(G):c;return j.createElement(jr,{...h,"aria-current":X,className:V,ref:b,style:A,to:u,viewTransition:d},typeof m=="function"?m(G):m)});yv.displayName="NavLink";var Ow=j.forwardRef(({discover:e="render",fetcherKey:a,navigate:i,reloadDocument:l,replace:o,state:c,method:u=Zc,action:d,onSubmit:m,relative:h,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:E,...x},S)=>{let{unstable_useTransitions:w}=j.useContext(Yn),T=jw(),N=Iw(d,{relative:h}),I=u.toLowerCase()==="get"?"get":"post",D=typeof d=="string"&&bv.test(d),H=$=>{if(m&&m($),$.defaultPrevented)return;$.preventDefault();let z=$.nativeEvent.submitter,G=(z==null?void 0:z.getAttribute("formmethod"))||u,X=()=>T(z||$.currentTarget,{fetcherKey:a,method:G,navigate:i,replace:o,state:c,relative:h,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:E});w&&i!==!1?j.startTransition(()=>X()):X()};return j.createElement("form",{ref:S,method:I,action:N,onSubmit:l?m:H,...x,"data-discover":!D&&e==="render"?"true":void 0})});Ow.displayName="Form";function Mw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xv(e){let a=j.useContext($l);return Nt(a,Mw(e)),a}function Dw(e,{target:a,replace:i,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let b=Zi(),g=ya(),E=po(e,{relative:u});return j.useCallback(x=>{if(uw(x,a)){x.preventDefault();let S=i!==void 0?i:ro(g)===ro(E),w=()=>b(e,{replace:S,unstable_mask:l,state:o,preventScrollReset:c,relative:u,viewTransition:d,unstable_defaultShouldRevalidate:m});h?j.startTransition(()=>w()):w()}},[g,b,E,i,l,o,a,e,c,u,d,m,h])}function $h(e){sa(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=j.useRef(gh(e)),i=j.useRef(!1),l=ya(),o=j.useMemo(()=>fw(l.search,i.current?null:a.current),[l.search]),c=Zi(),u=j.useCallback((d,m)=>{const h=gh(typeof d=="function"?d(new URLSearchParams(o)):d);i.current=!0,c("?"+h,m)},[c,o]);return[o,u]}var Lw=0,zw=()=>`__${String(++Lw)}__`;function jw(){let{router:e}=xv("useSubmit"),{basename:a}=j.useContext(Yn),i=W1(),l=e.fetch,o=e.navigate;return j.useCallback(async(c,u={})=>{let{action:d,method:m,encType:h,formData:b,body:g}=mw(c,a);if(u.navigate===!1){let E=u.fetcherKey||zw();await l(E,i,u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:g,formMethod:u.method||m,formEncType:u.encType||h,flushSync:u.flushSync})}else await o(u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:g,formMethod:u.method||m,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:i,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,o,a,i])}function Iw(e,{relative:a}={}){let{basename:i}=j.useContext(Yn),l=j.useContext(oa);Nt(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),c={...po(e||".",{relative:a})},u=ya();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),m=d.getAll("index");if(m.some(b=>b==="")){d.delete("index"),m.filter(g=>g).forEach(g=>d.append("index",g));let b=d.toString();c.search=b?`?${b}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:pa([i,c.pathname])),ro(c)}function Uw(e,{relative:a}={}){let i=j.useContext(ov);Nt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=xv("useViewTransitionState"),o=po(e,{relative:a});if(!i.isTransitioning)return!1;let c=si(i.currentLocation.pathname,l)||i.currentLocation.pathname,u=si(i.nextLocation.pathname,l)||i.nextLocation.pathname;return nu(o.pathname,u)!=null||nu(o.pathname,c)!=null}/**
|
|
61
|
-
* @license lucide-react v0.544.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 Bw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,l)=>l?l.toUpperCase():i.toLowerCase()),ky=e=>{const a=Hw(e);return a.charAt(0).toUpperCase()+a.slice(1)},vv=(...e)=>e.filter((a,i,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===i).join(" ").trim(),Fw=e=>{for(const a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
66
|
-
* @license lucide-react v0.544.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
|
-
*/var qw={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"};/**
|
|
71
|
-
* @license lucide-react v0.544.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 Pw=j.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:c,iconNode:u,...d},m)=>j.createElement("svg",{ref:m,...qw,width:a,height:a,stroke:e,strokeWidth:l?Number(i)*24/Number(a):i,className:vv("lucide",o),...!c&&!Fw(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,b])=>j.createElement(h,b)),...Array.isArray(c)?c:[c]]));/**
|
|
76
|
-
* @license lucide-react v0.544.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 He=(e,a)=>{const i=j.forwardRef(({className:l,...o},c)=>j.createElement(Pw,{ref:c,iconNode:a,className:vv(`lucide-${Bw(ky(e))}`,`lucide-${e}`,l),...o}));return i.displayName=ky(e),i};/**
|
|
81
|
-
* @license lucide-react v0.544.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 Gw=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],$w=He("activity",Gw);/**
|
|
86
|
-
* @license lucide-react v0.544.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 Kw=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ev=He("arrow-left",Kw);/**
|
|
91
|
-
* @license lucide-react v0.544.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 Yw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qw=He("check",Yw);/**
|
|
96
|
-
* @license lucide-react v0.544.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 Vw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xw=He("chevron-down",Vw);/**
|
|
101
|
-
* @license lucide-react v0.544.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 Zw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_v=He("chevron-right",Zw);/**
|
|
106
|
-
* @license lucide-react v0.544.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 Ww=[["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"}]],Jw=He("circle-alert",Ww);/**
|
|
111
|
-
* @license lucide-react v0.544.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 eN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],tN=He("circle-check-big",eN);/**
|
|
116
|
-
* @license lucide-react v0.544.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 nN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],aN=He("circle-check",nN);/**
|
|
121
|
-
* @license lucide-react v0.544.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 iN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],rN=He("circle-x",iN);/**
|
|
126
|
-
* @license lucide-react v0.544.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 lN=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],sN=He("download",lN);/**
|
|
131
|
-
* @license lucide-react v0.544.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 oN=[["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"}]],Sv=He("file-text",oN);/**
|
|
136
|
-
* @license lucide-react v0.544.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 cN=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],uN=He("flame",cN);/**
|
|
141
|
-
* @license lucide-react v0.544.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 fN=[["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],dN=He("folder-git-2",fN);/**
|
|
146
|
-
* @license lucide-react v0.544.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 hN=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],mN=He("funnel",hN);/**
|
|
151
|
-
* @license lucide-react v0.544.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 pN=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],gN=He("git-branch",pN);/**
|
|
156
|
-
* @license lucide-react v0.544.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 bN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],yN=He("globe",bN);/**
|
|
161
|
-
* @license lucide-react v0.544.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 xN=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],vN=He("kanban",xN);/**
|
|
166
|
-
* @license lucide-react v0.544.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 EN=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],_N=He("layout-grid",EN);/**
|
|
171
|
-
* @license lucide-react v0.544.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 SN=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],wN=He("link",SN);/**
|
|
176
|
-
* @license lucide-react v0.544.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 NN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yl=He("loader-circle",NN);/**
|
|
181
|
-
* @license lucide-react v0.544.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 kN=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ty=He("message-circle",kN);/**
|
|
186
|
-
* @license lucide-react v0.544.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 TN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],CN=He("message-square",TN);/**
|
|
191
|
-
* @license lucide-react v0.544.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 AN=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],RN=He("pause",AN);/**
|
|
196
|
-
* @license lucide-react v0.544.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 ON=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Kh=He("play",ON);/**
|
|
201
|
-
* @license lucide-react v0.544.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 MN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],go=He("plus",MN);/**
|
|
206
|
-
* @license lucide-react v0.544.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 DN=[["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"}]],Yh=He("refresh-cw",DN);/**
|
|
211
|
-
* @license lucide-react v0.544.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 LN=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Qh=He("rotate-ccw",LN);/**
|
|
216
|
-
* @license lucide-react v0.544.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 zN=[["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"}]],jN=He("save",zN);/**
|
|
221
|
-
* @license lucide-react v0.544.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 IN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Vh=He("search",IN);/**
|
|
226
|
-
* @license lucide-react v0.544.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 UN=[["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"}]],BN=He("send",UN);/**
|
|
231
|
-
* @license lucide-react v0.544.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 HN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],wv=He("settings",HN);/**
|
|
236
|
-
* @license lucide-react v0.544.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 FN=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],qN=He("snowflake",FN);/**
|
|
241
|
-
* @license lucide-react v0.544.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 PN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],GN=He("square",PN);/**
|
|
246
|
-
* @license lucide-react v0.544.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 $N=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],KN=He("terminal",$N);/**
|
|
251
|
-
* @license lucide-react v0.544.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const YN=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Xh=He("trash-2",YN);/**
|
|
256
|
-
* @license lucide-react v0.544.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const QN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Nv=He("users",QN);/**
|
|
261
|
-
* @license lucide-react v0.544.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const VN=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],kv=He("workflow",VN);/**
|
|
266
|
-
* @license lucide-react v0.544.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const XN=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ZN=He("wrench",XN);/**
|
|
271
|
-
* @license lucide-react v0.544.0 - ISC
|
|
272
|
-
*
|
|
273
|
-
* This source code is licensed under the ISC license.
|
|
274
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
-
*/const WN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tv=He("x",WN);/**
|
|
276
|
-
* @license lucide-react v0.544.0 - ISC
|
|
277
|
-
*
|
|
278
|
-
* This source code is licensed under the ISC license.
|
|
279
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
-
*/const JN=[["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"}]],ek=He("zap",JN),tk=[{to:"/chat",label:"对话",icon:CN},{to:"/projects",label:"项目",icon:_N},{to:"/board",label:"看板",icon:vN},{to:"/workers",label:"Workers",icon:Nv},{to:"/logs",label:"Logs",icon:Sv},{to:"/skills",label:"Skills",icon:yN},{to:"/system",label:"系统",icon:wv}];function nk(){return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"font-[family-name:var(--font-heading)] font-bold text-lg px-3 pt-2 pb-4 flex items-center gap-3 text-[var(--color-text)]",children:[y.jsx("span",{className:"w-5 h-5 rounded-md bg-[var(--color-accent-mint)] border-2 border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]"}),"SPS Console",y.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),y.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:tk.map(e=>{const a=e.icon;return y.jsxs(yv,{to:e.to,className:({isActive:i})=>["flex items-center gap-3 px-3 py-2.5 rounded-xl font-semibold text-sm cursor-pointer transition-transform duration-150","border-2 border-transparent",i?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] font-bold":"text-[var(--color-text)] hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)] hover:shadow-[3px_3px_0_var(--color-text)] hover:-translate-x-px hover:-translate-y-px"].join(" "),children:[y.jsx(a,{size:18,strokeWidth:2.5}),e.label]},e.to)})})]})}class ak extends Error{constructor(a,i,l){super(i),this.status=a,this.detail=l,this.name="ApiError"}}async function cn(e){const a=await fetch(e,{headers:{Accept:"application/json"}});if(!a.ok){let i;try{i=await a.json()}catch{i=await a.text()}throw new ak(a.status,`${a.status} ${a.statusText}`,i)}return await a.json()}function Cv(){return cn("/api/system/info")}function ik(){return cn("/api/system/env")}function rk(){return cn("/api/system/doctor/all")}function lk(){const{data:e,isError:a}=Gt({queryKey:["system-info"],queryFn:Cv,refetchInterval:3e4});return y.jsxs("div",{className:"h-10 flex items-center gap-4 px-6 font-[family-name:var(--font-mono)] text-[11px] text-[var(--color-text-muted)]",children:[y.jsx("span",{className:"nb-status",style:{background:a?"var(--color-crashed-bg)":"var(--color-running-bg)",color:a?"var(--color-crashed)":"var(--color-running)",padding:"2px 8px 2px 7px"},children:a?"disconnected":"server"}),y.jsxs("span",{children:["localhost:",window.location.port]}),e&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),y.jsxs("span",{children:["v",e.version]}),y.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),y.jsxs("span",{children:["node ",e.nodeVersion]})]}),y.jsx("span",{className:"ml-auto text-[var(--color-text-subtle)]",children:"Cmd+K"})]})}function sk(){return y.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[y.jsx("aside",{className:"row-span-1 row-start-1 border-r-[3px] border-[var(--color-text)] bg-[var(--color-bg)] p-4 flex flex-col",children:y.jsx(nk,{})}),y.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:y.jsx(aw,{})}),y.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:y.jsx(lk,{})})]})}class ok extends j.Component{constructor(){super(...arguments);Zb(this,"state",{error:null})}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i,l){console.error("[ErrorBoundary]",i,l)}render(){return this.state.error?y.jsx("div",{className:"p-6",children:y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),y.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),y.jsxs("details",{className:"text-xs mb-4",children:[y.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),y.jsx("pre",{className:"mt-2 font-[family-name:var(--font-mono)] overflow-auto max-h-60 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-md p-3",children:this.state.error.stack??"(no stack)"})]}),y.jsx("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"刷新页面"})]})}):this.props.children}}function mu(){return cn("/api/projects")}function ck(e){return cn(`/api/projects/${encodeURIComponent(e)}`)}async function uk(e){const a=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const i=await a.text();throw new Error(`${a.status}: ${i}`)}return a.json()}function fk(e){return cn(`/api/projects/${encodeURIComponent(e)}/conf`)}async function dk(e,a,i){const l=await fetch(`/api/projects/${encodeURIComponent(e)}/conf`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:a,etag:i})});if(!l.ok){const o=await l.text(),c=new Error(`${l.status}: ${o}`);throw c.status=l.status,c}return l.json()}async function hk(e,a={}){const i=await fetch(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok){const l=await i.text();throw new Error(`${i.status}: ${l}`)}return i.json()}function mk(e){return cn(`/api/projects/${encodeURIComponent(e)}/pipelines`)}async function pk(e,a){const i=await fetch(`/api/projects/${encodeURIComponent(e)}/pipeline`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({pipeline:a})});if(!i.ok){const l=await i.text();throw new Error(`${i.status}: ${l}`)}return i.json()}function gk(){const e=Zi(),{data:a,isLoading:i,isError:l,error:o,refetch:c}=Gt({queryKey:["projects"],queryFn:mu});return y.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:a?`${a.data.length} 个本机项目`:i?"加载中…":"点击刷新重试"})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>c(),type:"button",children:[y.jsx($w,{size:16,strokeWidth:2.5}),"刷新"]}),y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:()=>e("/projects/new"),"aria-label":"新建项目",children:[y.jsx(go,{size:16,strokeWidth:3}),"新建项目"]})]})]}),i&&y.jsx(xk,{}),l&&y.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),y.jsx("p",{className:"text-sm text-[var(--color-text)]",children:o instanceof Error?o.message:String(o)}),y.jsx("button",{className:"nb-btn mt-4",onClick:()=>c(),type:"button",children:"重试"})]}),a&&a.data.length===0&&y.jsx(vk,{}),a&&a.data.length>0&&y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:a.data.map(u=>y.jsx(bk,{project:u},u.name))})]})}function bk({project:e}){const a=e.pipelineStatus==="running";return y.jsxs(jr,{to:`/projects/${encodeURIComponent(e.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:e.name}),y.jsx(yk,{status:e.pipelineStatus})]}),e.repoDir&&y.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:e.repoDir}),y.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm mt-4 pt-3 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[y.jsx(Dd,{label:"cards",value:e.cards.total,accent:"purple"}),y.jsx(Dd,{label:"inprogress",value:e.cards.inprogress,accent:e.cards.inprogress>0?"yellow":"idle"}),y.jsx(Dd,{label:"workers",value:`${e.workers.active}/${e.workers.total}`,accent:a?"mint":"idle"})]})]})}function Dd({label:e,value:a,accent:i}){const l={purple:"var(--color-accent-purple)",yellow:"var(--color-accent-yellow)",mint:"var(--color-accent-mint)",idle:"var(--color-bg-cream)"};return y.jsxs("div",{className:"flex flex-col items-center justify-center py-2 rounded-lg border-2 border-[var(--color-text)]",style:{background:l[i]},children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:a}),y.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:e})]})}function yk({status:e}){const a={running:{bg:"var(--color-running-bg)",label:"running"},idle:{bg:"var(--color-idle-bg)",label:"idle"},stopping:{bg:"var(--color-stuck-bg)",label:"stopping"},error:{bg:"var(--color-crashed-bg)",label:"error"}},{bg:i,label:l}=a[e],o=e==="running"?"var(--color-running)":e==="error"?"var(--color-crashed)":e==="stopping"?"var(--color-stuck)":"var(--color-idle)";return y.jsx("span",{className:"nb-status",style:{background:i,color:o},children:l})}function xk(){return y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(e=>y.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[y.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),y.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),y.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},e))})}function vk(){return y.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[y.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center",children:y.jsx(Nv,{size:32,strokeWidth:2.5})}),y.jsxs("div",{className:"flex-1",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),y.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",y.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded-md font-[family-name:var(--font-mono)]",children:"sps project init <name>"})," 创建第一个项目。"]}),y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[y.jsx(go,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function Ek({title:e,body:a,confirm:i,onConfirm:l,onCancel:o,danger:c}){return j.useEffect(()=>{const u=d=>{d.key==="Escape"&&o()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[o]),y.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:o,children:y.jsxs("div",{onClick:u=>u.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:a}),y.jsxs("div",{className:"flex gap-3 justify-end",children:[y.jsx("button",{className:"nb-btn",onClick:o,type:"button",children:"取消"}),y.jsx("button",{className:c?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await l()},type:"button",children:i})]})]})})}const Av=j.createContext(null);function _k({children:e}){const[a,i]=j.useState(null),l=j.useCallback(u=>new Promise(d=>{i({kind:"confirm",opts:u,resolve:m=>{i(null),d(m)}})}),[]),o=j.useCallback(u=>new Promise(d=>{i({kind:"alert",opts:u,resolve:()=>{i(null),d()}})}),[]),c=j.useCallback(u=>new Promise(d=>{i({kind:"prompt",opts:u,resolve:m=>{i(null),d(m)}})}),[]);return y.jsxs(Av.Provider,{value:{confirm:l,alert:o,prompt:c},children:[e,(a==null?void 0:a.kind)==="confirm"&&y.jsx(Ek,{title:a.opts.title,body:a.opts.body,confirm:a.opts.confirm??"确定",danger:a.opts.danger,onConfirm:()=>a.resolve(!0),onCancel:()=>a.resolve(!1)}),(a==null?void 0:a.kind)==="alert"&&y.jsx(Sk,{title:a.opts.title,body:a.opts.body,confirm:a.opts.confirm??"知道了",onClose:()=>a.resolve()}),(a==null?void 0:a.kind)==="prompt"&&y.jsx(wk,{title:a.opts.title,body:a.opts.body,placeholder:a.opts.placeholder,defaultValue:a.opts.defaultValue,confirm:a.opts.confirm??"确定",cancel:a.opts.cancel??"取消",onConfirm:u=>a.resolve(u),onCancel:()=>a.resolve(null)})]})}function oi(){const e=j.useContext(Av);if(!e)throw new Error("useDialog must be used inside <DialogProvider>");return e}function Sk({title:e,body:a,confirm:i,onClose:l}){return j.useEffect(()=>{const o=c=>{(c.key==="Escape"||c.key==="Enter")&&l()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[l]),y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:l,children:y.jsxs("div",{onClick:o=>o.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5 whitespace-pre-wrap break-words",children:a}),y.jsx("div",{className:"flex gap-3 justify-end",children:y.jsx("button",{className:"nb-btn nb-btn-primary",onClick:l,type:"button",autoFocus:!0,children:i})})]})})}function wk({title:e,body:a,placeholder:i,defaultValue:l,confirm:o,cancel:c,onConfirm:u,onCancel:d}){const[m,h]=j.useState(l??""),b=j.useRef(null);j.useEffect(()=>{var x,S;(x=b.current)==null||x.focus(),(S=b.current)==null||S.select();const E=w=>{w.key==="Escape"&&d()};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[d]);const g=()=>{const E=m.trim();E&&u(E)};return y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:d,children:y.jsxs("div",{onClick:E=>E.stopPropagation(),className:"nb-card max-w-md w-full",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:e}),a&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-3 whitespace-pre-wrap break-words",children:a}),y.jsx("input",{ref:b,type:"text",className:"nb-input w-full mb-5",placeholder:i,value:m,onChange:E=>h(E.target.value),onKeyDown:E=>{E.key==="Enter"&&!E.nativeEvent.isComposing&&(E.preventDefault(),g())}}),y.jsxs("div",{className:"flex gap-3 justify-end",children:[y.jsx("button",{className:"nb-btn",onClick:d,type:"button",children:c}),y.jsx("button",{className:"nb-btn nb-btn-primary",onClick:g,type:"button",disabled:!m.trim(),children:o})]})]})})}function Nk(){const e=Zi(),a=ba(),{alert:i}=oi(),[l,o]=j.useState({name:"",projectDir:"",mergeBranch:"main",maxWorkers:"1"}),c=uu({mutationFn:m=>uk(m),onSuccess:m=>{a.invalidateQueries({queryKey:["projects"]}),e(`/projects/${encodeURIComponent(m.name)}`)},onError:m=>{i({title:"创建失败",body:m instanceof Error?m.message:String(m)})}}),u=/^[a-zA-Z0-9_-]+$/.test(l.name),d=u&&l.projectDir.trim()!==""&&!c.isPending;return y.jsxs("div",{className:"flex flex-col gap-5 max-w-2xl",children:[y.jsxs("header",{className:"flex items-center gap-3",children:[y.jsxs("button",{type:"button",onClick:()=>e("/projects"),className:"nb-btn",style:{padding:"6px 12px"},"aria-label":"返回项目列表",children:[y.jsx(Ev,{size:14,strokeWidth:3}),"返回"]}),y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:"新建项目"})]}),y.jsx("div",{className:"nb-card",children:y.jsxs("form",{onSubmit:m=>{m.preventDefault(),d&&c.mutate(l)},className:"flex flex-col gap-5",children:[y.jsxs(Er,{label:"项目名",hint:"只能用字母、数字、下划线、连字符。例如 acme-web",children:[y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"例如: acme-web",value:l.name,onChange:m=>o({...l,name:m.target.value}),autoFocus:!0,required:!0}),l.name&&!u&&y.jsx("p",{className:"text-xs text-[var(--color-crashed)] mt-1",children:"名称只能包含 a-z A-Z 0-9 _ -"})]}),y.jsx(Er,{label:"Git 仓库路径",hint:"本机绝对路径,如 /home/coral/code/acme",children:y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"/home/coral/code/acme",value:l.projectDir,onChange:m=>o({...l,projectDir:m.target.value}),required:!0})}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsx(Er,{label:"合并分支",children:y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:l.mergeBranch,onChange:m=>o({...l,mergeBranch:m.target.value})})}),y.jsx(Er,{label:"最大 Worker 数",children:y.jsx("input",{type:"number",min:"1",max:"8",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:l.maxWorkers,onChange:m=>o({...l,maxWorkers:m.target.value})})})]}),y.jsxs("div",{className:"pt-2 border-t-2 border-[var(--color-text)] border-dashed",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold uppercase tracking-wider mb-3 text-[var(--color-text-muted)]",children:"可选配置"}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(Er,{label:"Git 远程项目路径",hint:"如 user/repo,空则跳过 Git API",children:y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"user/repo",value:l.gitlabProject??"",onChange:m=>o({...l,gitlabProject:m.target.value})})}),l.gitlabProject&&y.jsx(Er,{label:"GitLab 项目 ID",hint:"数字,GitHub 用户可留空",children:y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"42",value:l.gitlabProjectId??"",onChange:m=>o({...l,gitlabProjectId:m.target.value})})}),y.jsx(Er,{label:"Matrix 房间 ID",hint:"空则使用全局配置",children:y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",placeholder:"!abc:matrix.example.com",value:l.matrixRoomId??"",onChange:m=>o({...l,matrixRoomId:m.target.value})})})]})]}),y.jsxs("div",{className:"flex gap-3 justify-end pt-3",children:[y.jsx("button",{type:"button",className:"nb-btn",onClick:()=>e("/projects"),disabled:c.isPending,children:"取消"}),y.jsx("button",{type:"submit",className:"nb-btn nb-btn-primary",disabled:!d,"aria-label":"创建项目",children:c.isPending?y.jsxs(y.Fragment,{children:[y.jsx(Yl,{size:14,strokeWidth:3,className:"animate-spin"}),"创建中…"]}):y.jsxs(y.Fragment,{children:[y.jsx(go,{size:14,strokeWidth:3}),"创建"]})})]})]})})]})}function Er({label:e,hint:a,children:i}){return y.jsxs("label",{className:"flex flex-col gap-1.5",children:[y.jsx("span",{className:"text-sm font-bold",children:e}),i,a&&y.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:a})]})}function kk(){var c;const{name:e=""}=dv(),a=Zi(),[i,l]=j.useState("overview"),o=Gt({queryKey:["project",e],queryFn:()=>ck(e),enabled:!!e});return y.jsxs("div",{className:"flex flex-col gap-5 max-w-4xl",children:[y.jsxs("header",{className:"flex items-center gap-3",children:[y.jsxs("button",{type:"button",onClick:()=>a("/projects"),className:"nb-btn",style:{padding:"6px 12px"},"aria-label":"返回项目列表",children:[y.jsx(Ev,{size:14,strokeWidth:3}),"返回"]}),y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold flex-1",children:e}),y.jsx(jr,{to:`/board?project=${encodeURIComponent(e)}`,className:"nb-btn nb-btn-mint",children:"看板"})]}),y.jsxs("nav",{className:"flex gap-2 flex-wrap",children:[y.jsx(Hc,{current:i,value:"overview",onSelect:l,icon:dN,children:"概览"}),y.jsx(Hc,{current:i,value:"config",onSelect:l,icon:wv,children:"配置"}),y.jsx(Hc,{current:i,value:"pipelines",onSelect:l,icon:kv,children:"Pipelines"}),y.jsx(Hc,{current:i,value:"danger",onSelect:l,icon:Xh,children:"危险操作"})]}),i==="overview"&&y.jsx(Tk,{name:e,data:o.data,loading:o.isLoading}),i==="config"&&y.jsx(Ck,{name:e}),i==="pipelines"&&y.jsx(Ak,{name:e}),i==="danger"&&y.jsx(Rk,{name:e,repoDir:((c=o.data)==null?void 0:c.repoDir)??null})]})}function Hc({current:e,value:a,onSelect:i,icon:l,children:o}){const c=e===a;return y.jsxs("button",{type:"button",onClick:()=>i(a),"aria-current":c?"page":void 0,className:["nb-btn",c?"nb-btn-primary":""].join(" "),style:{padding:"6px 14px",fontSize:13},children:[y.jsx(l,{size:13,strokeWidth:2.5}),o]})}function Tk({name:e,data:a,loading:i}){return i?y.jsx("div",{className:"nb-card",children:y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):a?y.jsx("div",{className:"nb-card",children:y.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-3 text-sm",children:[y.jsx("dt",{className:"font-bold",children:"仓库路径"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.repoDir??"—"}),y.jsx("dt",{className:"font-bold",children:"PM 后端"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.pmBackend}),y.jsx("dt",{className:"font-bold",children:"Agent"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.agentProvider}),y.jsx("dt",{className:"font-bold",children:"卡片"}),y.jsxs("dd",{className:"font-[family-name:var(--font-mono)]",children:[a.cards.total," 张 · ",a.cards.inprogress," 进行中 · ",a.cards.done," 完成"]}),y.jsx("dt",{className:"font-bold",children:"Worker"}),y.jsxs("dd",{className:"font-[family-name:var(--font-mono)]",children:[a.workers.total," 个(",a.workers.active," 活跃)"]}),y.jsx("dt",{className:"font-bold",children:"Pipeline"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.pipelineStatus}),y.jsx("dt",{className:"font-bold",children:"最近活动"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:a.lastActivityAt?new Date(a.lastActivityAt).toLocaleString():"—"})]})}):y.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:y.jsxs("p",{children:["项目 ",e," 不存在或无法读取。"]})})}function Ck({name:e}){const a=ba(),{alert:i}=oi(),{data:l,isLoading:o,isError:c,error:u,refetch:d}=Gt({queryKey:["project-conf",e],queryFn:()=>fk(e)}),[m,h]=j.useState(null),[b,g]=j.useState(null);l&&m===null&&(h(l.content),g(l.etag));const E=m!==null&&l!==void 0&&m!==l.content,x=uu({mutationFn:()=>{if(m===null||b===null)throw new Error("no draft");return dk(e,m,b)},onSuccess:S=>{g(S.etag),a.invalidateQueries({queryKey:["project-conf",e]}),a.invalidateQueries({queryKey:["project",e]})},onError:S=>{const w=S.status;i({title:w===409?"配置已被其他地方修改":"保存失败",body:w===409?'conf 文件在你编辑期间被改过。点"重新加载"后再编辑。':S instanceof Error?S.message:String(S)})}});return o?y.jsx("div",{className:"nb-card",children:y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):c?y.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:y.jsxs("p",{children:["加载失败: ",u instanceof Error?u.message:String(u)]})}):y.jsxs("div",{className:"nb-card",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold",children:y.jsxs("code",{className:"font-[family-name:var(--font-mono)] text-sm bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:["~/.coral/projects/",e,"/conf"]})}),b&&y.jsxs("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] mt-1",children:["etag: ",b]})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("button",{type:"button",className:"nb-btn",style:{padding:"6px 12px"},onClick:()=>{h(null),d()},disabled:x.isPending,"aria-label":"重新加载",children:[y.jsx(Yh,{size:13,strokeWidth:2.5}),"重新加载"]}),y.jsxs("button",{type:"button",className:"nb-btn nb-btn-primary",style:{padding:"6px 12px"},onClick:()=>x.mutate(),disabled:!E||x.isPending,"aria-label":"保存配置",children:[x.isPending?y.jsx(Yl,{size:13,strokeWidth:3,className:"animate-spin"}):x.isSuccess&&!E?y.jsx(Qw,{size:13,strokeWidth:3}):y.jsx(jN,{size:13,strokeWidth:3}),"保存"]})]})]}),y.jsx("textarea",{className:"nb-input w-full font-[family-name:var(--font-mono)] text-xs",style:{minHeight:480,resize:"vertical"},value:m??"",onChange:S=>h(S.target.value),spellCheck:!1,"aria-label":"conf 文件编辑器"}),E&&y.jsx("p",{className:"text-xs text-[var(--color-stuck)] mt-2 font-bold",children:"● 未保存的修改"})]})}function Ak({name:e}){const a=ba(),{confirm:i,alert:l}=oi(),{data:o,isLoading:c}=Gt({queryKey:["project-pipelines",e],queryFn:()=>mk(e)}),u=uu({mutationFn:d=>pk(e,d),onSuccess:()=>a.invalidateQueries({queryKey:["project-pipelines",e]}),onError:d=>{l({title:"切换失败",body:d instanceof Error?d.message:String(d)})}});return c?y.jsx("div",{className:"nb-card",children:y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})}):!o||o.available.length===0?y.jsx("div",{className:"nb-card bg-[var(--color-accent-yellow)]",children:y.jsxs("p",{className:"text-sm",children:["还没有 pipeline 文件。去"," ",y.jsxs("code",{className:"font-[family-name:var(--font-mono)] bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:["~/.coral/projects/",e,"/pipelines/"]})," ","里放一个 .yaml 再来切。"]})}):y.jsxs("div",{className:"nb-card",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold mb-3",children:"可用 Pipelines"}),y.jsx("ul",{className:"flex flex-col gap-2",children:o.available.map(d=>y.jsxs("li",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[y.jsx(kv,{size:16,strokeWidth:2.5}),y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold flex-1",children:d.name}),d.isActive?y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"active"}):y.jsx("button",{type:"button",className:"nb-btn nb-btn-primary",style:{padding:"4px 12px",fontSize:12},onClick:async()=>{await i({title:`切换到 ${d.name}`,body:`当前 project.yaml 会被 ${d.name} 的内容覆盖。继续?`,confirm:"切换"})&&u.mutate(d.name)},disabled:u.isPending,"aria-label":`切换到 ${d.name}`,children:"切换"})]},d.name))})]})}function Rk({name:e,repoDir:a}){const i=Zi(),l=ba(),{alert:o}=oi(),[c,u]=j.useState(""),[d,m]=j.useState(!0),h=uu({mutationFn:()=>hk(e,{includeClaudeDir:d}),onSuccess:b=>{l.invalidateQueries({queryKey:["projects"]});const g=b.claudeRemoved.filter(E=>E.ok).map(E=>E.path);o({title:"已删除",body:g.length>0?`项目已删除。同时清理了:
|
|
281
|
-
${g.join(`
|
|
282
|
-
`)}`:"项目已删除。"}).then(()=>i("/projects"))},onError:b=>{o({title:"删除失败",body:b instanceof Error?b.message:String(b)})}});return y.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-lg font-bold mb-2 text-[var(--color-crashed)]",children:"删除项目"}),y.jsxs("p",{className:"text-sm mb-4",children:["这会清理 ",y.jsxs("code",{className:"font-[family-name:var(--font-mono)] bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-1.5 py-0.5 rounded",children:["~/.coral/projects/",e,"/"]}),"(包括所有卡片、runtime、logs)。"]}),a&&y.jsxs("label",{className:"flex items-start gap-2 mb-4 p-3 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg cursor-pointer",children:[y.jsx("input",{type:"checkbox",checked:d,onChange:b=>m(b.target.checked),className:"mt-0.5"}),y.jsxs("div",{className:"flex-1",children:[y.jsx("div",{className:"text-sm font-bold",children:"同时清理 repo 的 .claude/"}),y.jsxs("div",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:[a,"/.claude/"]}),y.jsx("div",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"repo 本身不动,只清这个目录。"})]})]}),y.jsx("div",{className:"mb-4",children:y.jsxs("label",{className:"flex flex-col gap-1.5",children:[y.jsxs("span",{className:"text-sm font-bold",children:["输入项目名 ",y.jsx("code",{className:"font-[family-name:var(--font-mono)] text-xs",children:e})," 确认:"]}),y.jsx("input",{type:"text",className:"nb-input w-full font-[family-name:var(--font-mono)]",value:c,onChange:b=>u(b.target.value),placeholder:e})]})}),y.jsxs("button",{type:"button",className:"nb-btn nb-btn-danger",disabled:c!==e||h.isPending,onClick:()=>h.mutate(),"aria-label":"永久删除项目",children:[h.isPending?y.jsx(Yl,{size:14,strokeWidth:3,className:"animate-spin"}):y.jsx(Xh,{size:14,strokeWidth:3}),"永久删除"]})]})}function Ok(e){return cn(`/api/projects/${encodeURIComponent(e)}/cards`)}function Mk(e,a){return cn(`/api/projects/${encodeURIComponent(e)}/cards/${a}`)}async function Ql(e,a){const i=await fetch(e,{method:"POST",headers:a?{"Content-Type":"application/json"}:void 0,body:a?JSON.stringify(a):void 0});if(!i.ok){const l=await i.text();throw new Error(`${i.status} ${i.statusText}: ${l}`)}return i.json().catch(()=>({}))}function Dk(e,a){return Ql(`/api/projects/${encodeURIComponent(e)}/cards/${a}/reset`)}function Lk(e,a){return Ql(`/api/projects/${encodeURIComponent(e)}/cards/${a}/launch`)}function zk(e,a){return Ql(`/api/projects/${encodeURIComponent(e)}/cards`,{title:a})}function jk(e){return Ql(`/api/projects/${encodeURIComponent(e)}/pipeline/start`)}function Ik(e){return Ql(`/api/projects/${encodeURIComponent(e)}/pipeline/stop`)}function Uk(e,a){return Ql(`/api/projects/${encodeURIComponent(e)}/pipeline/reset`,a??{})}function Rv(e){const a=ba();j.useEffect(()=>{if(!e)return;const i=`/stream/projects/${encodeURIComponent(e)}`,l=new EventSource(i),o=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["cards",m.project]}),m.card&&a.setQueryData(["card",m.project,m.seq],{...a.getQueryData(["card",m.project,m.seq])??{},...m.card}),a.invalidateQueries({queryKey:["projects"]})}catch{}},c=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["workers",m.project]}),a.invalidateQueries({queryKey:["projects"]})}catch{}},u=d=>{try{const m=JSON.parse(d.data);a.invalidateQueries({queryKey:["pipeline-status",m.project]}),a.invalidateQueries({queryKey:["projects"]})}catch{}};return l.addEventListener("card.created",o),l.addEventListener("card.updated",o),l.addEventListener("card.deleted",o),l.addEventListener("worker.updated",c),l.addEventListener("worker.added",c),l.addEventListener("worker.deleted",c),l.addEventListener("pipeline.status",u),()=>l.close()},[e,a])}const Bk=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),Hk=new Set(["frontend","backend","mobile","database","devops"]),Fk=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),qk=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function Pk(e){return Bk.has(e)?"lang":Hk.has(e)?"end":Fk.has(e)?"persona":qk.has(e)?"workflow":"other"}const Gk={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function Ov({name:e}){const a=Gk[Pk(e)];return y.jsx("span",{className:"nb-badge",style:{background:a},children:e})}function Mv({label:e,kind:a="default"}){const i=a==="warn"?"var(--color-accent-pink)":a==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return y.jsx("span",{className:"nb-badge",style:{background:i},children:e})}function $k({card:e,onClick:a,done:i}){const l=e.labels.some(o=>o.startsWith("STARTED-"))&&!i;return y.jsxs("article",{onClick:a,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),a())},tabIndex:0,role:"button","aria-label":`Card #${e.seq}: ${e.title}`,className:["bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl p-3","shadow-[3px_3px_0_var(--color-text)] cursor-pointer","transition-[transform,box-shadow] duration-[180ms] ease-out","hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0_var(--color-text)]","focus:outline-none focus-visible:ring-[3px] focus-visible:ring-offset-2 focus-visible:ring-[var(--color-text)]",i?"opacity-60":""].join(" "),children:[y.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[y.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-[11px] px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full",children:["#",e.seq]}),l&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),y.jsx("p",{className:`font-bold text-sm leading-5 mb-2 line-clamp-2 ${i?"line-through decoration-2":""}`,children:e.title}),(e.skills.length>0||e.labels.length>0)&&y.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[e.skills.slice(0,3).map(o=>y.jsx(Ov,{name:o},o)),e.labels.filter(o=>o==="NEEDS-FIX").map(o=>y.jsx(Mv,{label:o,kind:"warn"},o))]}),y.jsxs("div",{className:"pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)] flex items-center gap-2 text-[11px] font-[family-name:var(--font-mono)] text-[var(--color-text-subtle)]",children:[y.jsx("span",{children:Kk(e.updatedAt??e.createdAt)}),e.branch&&y.jsxs("span",{className:"truncate",children:["· ",e.branch]})]})]})}function Kk(e){if(!e)return"—";const a=new Date(e),i=Date.now()-a.getTime();return i<6e4?"刚才":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:a.toLocaleDateString()}function Yk({label:e,bg:a,cards:i,onCardClick:l}){return y.jsxs("div",{className:"flex flex-col gap-2 p-3 rounded-2xl border-[3px] border-[var(--color-text)] min-h-[340px]",style:{background:a},children:[y.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[y.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:e}),y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full",children:i.length})]}),y.jsxs("div",{className:"flex flex-col gap-2",children:[i.length===0&&y.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),i.map(o=>y.jsx($k,{card:o,onClick:()=>l(o),done:e==="Done"},o.seq))]})]})}function Qk({project:e,seq:a,onClose:i,onChanged:l}){const{confirm:o}=oi(),{data:c,isLoading:u,isError:d,error:m}=Gt({queryKey:["card",e,a],queryFn:()=>Mk(e,a)});return j.useEffect(()=>{const h=b=>{b.key==="Escape"&&i()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[i]),y.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"card-modal-title",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:i,children:y.jsxs("div",{onClick:h=>h.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[y.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[y.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full",children:["#",a]}),(c==null?void 0:c.state)&&y.jsx("span",{className:"font-[family-name:var(--font-mono)] text-xs px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full font-semibold",children:c.state})]}),y.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(c==null?void 0:c.title)??"加载中…"})]}),y.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:y.jsx(Tv,{size:16,strokeWidth:3})})]}),u&&y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),d&&y.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&y.jsxs("div",{className:"flex flex-col gap-4",children:[c.branch&&y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx(gN,{size:14}),y.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:c.branch})]}),(c.skills.length>0||c.labels.length>0)&&y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.skills.map(h=>y.jsx(Ov,{name:h},h)),c.labels.map(h=>y.jsx(Mv,{label:h,kind:h==="NEEDS-FIX"?"warn":"default"},h))]}),c.checklist.total>0&&y.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",c.checklist.done,"/",c.checklist.total]}),y.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${c.checklist.percent}%`}})})]}),y.jsx("ul",{className:"text-sm space-y-1",children:c.checklist.items.map((h,b)=>y.jsxs("li",{className:`flex items-start gap-2 ${h.done?"opacity-60 line-through":""}`,children:[y.jsx("span",{children:h.done?"✓":"○"}),y.jsx("span",{children:h.text})]},b))})]}),c.body&&y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),y.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-64 overflow-auto",children:c.body.trim()||"(空)"})]}),y.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[y.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await Lk(e,a),l()},children:[y.jsx(Kh,{size:14,strokeWidth:3}),"启动 worker"]}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await o({title:`重置卡片 #${a}`,body:"卡片状态会回到初始,已做的 checklist 会清空。",confirm:"重置",danger:!0})&&(await Dk(e,a),l(),i())},children:[y.jsx(Qh,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Zh({current:e,onChange:a}){const[i,l]=j.useState(!1),o=j.useRef(null),{data:c}=Gt({queryKey:["projects"],queryFn:mu});return j.useEffect(()=>{const u=d=>{var m;(m=o.current)!=null&&m.contains(d.target)||l(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),y.jsxs("div",{className:"relative",ref:o,children:[y.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-3 py-2 bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[3px_3px_0_var(--color-text)] font-[family-name:var(--font-mono)] text-sm font-bold hover:-translate-x-px hover:-translate-y-px hover:shadow-[4px_4px_0_var(--color-text)] transition-[transform,box-shadow] duration-150",onClick:()=>l(u=>!u),children:[e,y.jsx(Xw,{size:14,strokeWidth:2.5})]}),i&&c&&y.jsx("div",{className:"absolute right-0 mt-2 z-20 min-w-[200px] bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[5px_5px_0_var(--color-text)] overflow-hidden",children:c.data.map(u=>y.jsxs("button",{type:"button",onClick:()=>{a(u.name),l(!1)},className:["w-full text-left px-4 py-2 text-sm font-semibold",u.name===e?"bg-[var(--color-accent-mint)]":"hover:bg-[var(--color-bg-cream)]"].join(" "),children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:u.name}),y.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[u.cards.total," cards"]})]},u.name))})]})}const Vk=[{state:"Backlog",label:"Backlog",bg:"var(--color-accent-purple)"},{state:"Inprogress",label:"Inprogress",bg:"var(--color-accent-yellow)"},{state:"Review",label:"Review",bg:"var(--color-accent-pink)"},{state:"Done",label:"Done",bg:"var(--color-accent-mint)"}];function Xk(){var I,D,H;const[e,a]=$h(),i=e.get("project"),[l,o]=j.useState(null),[c,u]=j.useState(""),{confirm:d,prompt:m}=oi();Rv(i);const h=Gt({queryKey:["projects"],queryFn:mu}),b=Gt({queryKey:["cards",i],queryFn:()=>Ok(i??""),enabled:!!i}),g=ba(),E=()=>{g.invalidateQueries({queryKey:["cards",i]}),g.invalidateQueries({queryKey:["projects"]}),g.invalidateQueries({queryKey:["pipeline-status",i]})},x=$=>{a({project:$})};if(!i)return y.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),y.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),y.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),y.jsx("div",{className:"flex flex-wrap gap-2",children:(I=h.data)==null?void 0:I.data.map($=>y.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>x($.name),type:"button",children:$.name},$.name))})]})]});const S=((D=b.data)==null?void 0:D.data)??[],w=c?S.filter($=>$.title.toLowerCase().includes(c.toLowerCase())||$.skills.some(z=>z.includes(c))||$.labels.some(z=>z.includes(c))):S,T=(H=h.data)==null?void 0:H.data.find($=>$.name===i),N=(T==null?void 0:T.pipelineStatus)==="running";return y.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[y.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:T?`${T.name} · ${T.cards.total} cards · ${T.workers.active} workers 活跃`:"加载中…"})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsx(Zh,{current:i,onChange:x}),N?y.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await Ik(i),E()},type:"button",children:[y.jsx(GN,{size:14,strokeWidth:3})," 停止"]}):y.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await jk(i),E()},type:"button",children:[y.jsx(Kh,{size:14,strokeWidth:3})," 启动 pipeline"]}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await d({title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",danger:!0})&&(await Uk(i,{all:!0}),E())},children:[y.jsx(Qh,{size:14,strokeWidth:2.5})," 重置"]}),y.jsxs("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:async()=>{const $=await m({title:"新建卡片",body:"输入卡片标题,会作为 markdown 文件的 title。",placeholder:"例如:接入 GitHub OAuth"});$&&(await zk(i,$),E())},children:[y.jsx(go,{size:14,strokeWidth:3})," 新卡片"]})]})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Vh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:c,onChange:$=>u($.target.value),"aria-label":"搜索卡片"})]}),y.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[y.jsx(mN,{size:12}),w.length," / ",S.length]})]}),b.isError&&y.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[y.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),y.jsx("p",{className:"text-sm mt-1 text-[var(--color-text-muted)]",children:b.error instanceof Error?b.error.message:String(b.error)})]}),!b.isError&&y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:Vk.map($=>y.jsx(Yk,{label:$.label,bg:$.bg,cards:w.filter(Zk($.state)),onCardClick:z=>o(z.seq)},$.state))}),l!==null&&y.jsx(Qk,{project:i,seq:l,onClose:()=>o(null),onChanged:E})]})}function Zk(e){return a=>e==="Backlog"?a.state==="Backlog"||a.state==="Planning":e==="Done"?a.state==="Done"||a.state==="Canceled":a.state===e}function Wk(e){return cn(`/api/projects/${encodeURIComponent(e)}/workers`)}async function Jk(e,a){const i=await fetch(e,{method:"POST",headers:void 0,body:void 0});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return i.json().catch(()=>({}))}function eT(e,a){return Jk(`/api/projects/${encodeURIComponent(e)}/workers/${a}/kill`)}function tT(){const[e,a]=$h(),i=e.get("project");Rv(i);const l=ba(),{data:o,isLoading:c,isError:u,error:d,refetch:m}=Gt({queryKey:["workers",i],queryFn:()=>Wk(i??""),enabled:!!i,refetchInterval:5e3});if(!i)return y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",y.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",y.jsx(jr,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const h=(o==null?void 0:o.data)??[],b=h.filter(x=>x.state==="running").length,g=h.filter(x=>x.state==="stuck").length,E=h.filter(x=>x.state==="crashed").length;return y.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[h.length," 个 slot · ",b," running · ",g," stuck · ",E," crashed"]})]}),y.jsxs("div",{className:"flex gap-3 items-center",children:[y.jsx(Zh,{current:i,onChange:x=>a({project:x})}),y.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>m(),type:"button",children:[y.jsx(Qh,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),c&&y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),u&&y.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:y.jsxs("p",{className:"font-semibold",children:["加载失败: ",d instanceof Error?d.message:String(d)]})}),!c&&h.length===0&&y.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),h.length>0&&y.jsx("div",{className:"nb-card p-0 overflow-hidden",children:y.jsxs("table",{className:"w-full text-sm",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[y.jsx(_r,{w:"70px",children:"Slot"}),y.jsx(_r,{children:"Card"}),y.jsx(_r,{w:"110px",children:"Status"}),y.jsx(_r,{w:"90px",children:"Stage"}),y.jsx(_r,{w:"90px",children:"PID"}),y.jsx(_r,{w:"120px",children:"Runtime"}),y.jsx(_r,{w:"200px",right:!0,children:"Action"})]})}),y.jsx("tbody",{children:h.map(x=>y.jsx(nT,{project:i,worker:x,onChange:()=>l.invalidateQueries({queryKey:["workers",i]})},x.slot))})]})})]})}function _r({children:e,w:a,right:i}){return y.jsx("th",{className:["px-4 py-3 text-left font-[family-name:var(--font-heading)] font-bold text-[12px] uppercase tracking-wider text-[var(--color-text-muted)]",i?"text-right":""].join(" "),style:a?{width:a}:void 0,children:e})}function nT({project:e,worker:a,onChange:i}){const{confirm:l}=oi(),o=a.state==="idle";return y.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:a.slot}),y.jsx("td",{className:"px-4 py-3",children:a.card?y.jsxs("span",{className:"font-semibold",children:[y.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full font-[family-name:var(--font-mono)] mr-2",children:["#",a.card.seq]}),a.card.title]}):y.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),y.jsx("td",{className:"px-4 py-3",children:y.jsx(aT,{state:a.state})}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.stage||"—"}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:a.pid??"—"}),y.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:iT(a.runtimeMs)}),y.jsx("td",{className:"px-4 py-3 text-right space-x-2",children:!o&&y.jsxs(y.Fragment,{children:[y.jsxs(jr,{to:`/logs?project=${encodeURIComponent(e)}&worker=${a.slot}`,className:"nb-btn nb-btn-sm",style:{display:"inline-flex",padding:"4px 10px",fontSize:11},children:[y.jsx(KN,{size:12,strokeWidth:2.5})," log"]}),y.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{await l({title:`终止 worker-${a.slot}`,body:"当前任务会被强制中断,未保存的工作可能丢失。",confirm:"终止",danger:!0})&&(await eT(e,a.slot),i())},type:"button",children:[y.jsx(ek,{size:12,strokeWidth:2.5})," 终止"]})]})})]})}function aT({state:e}){const a={running:{bg:"var(--color-running-bg)",color:"var(--color-running)"},stuck:{bg:"var(--color-stuck-bg)",color:"var(--color-stuck)"},crashed:{bg:"var(--color-crashed-bg)",color:"var(--color-crashed)"},idle:{bg:"var(--color-idle-bg)",color:"var(--color-idle)"}},{bg:i,color:l}=a[e];return y.jsx("span",{className:"nb-status",style:{background:i,color:l},children:e})}function iT(e){if(e==null||e<=0)return"—";const a=Math.floor(e/1e3),i=Math.floor(a/3600),l=Math.floor(a%3600/60),o=a%60,c=u=>u.toString().padStart(2,"0");return i>0?`${c(i)}:${c(l)}:${c(o)}`:`${c(l)}:${c(o)}`}function rT(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),a.set("limit",String(e.limit)),cn(`/api/logs?${a}`)}function lT(e){const a=new URLSearchParams({project:e.project});return e.worker&&a.set("worker",e.worker),`/stream/logs?${a}`}const sT=["error","warn","info","debug"],oT=["error","warn","info"];function cT(){const[e,a]=$h(),i=e.get("project"),l=e.get("worker")??"",[o,c]=j.useState([]),[u,d]=j.useState(!1),[m,h]=j.useState(!0),[b,g]=j.useState(()=>new Set(oT)),[E,x]=j.useState(""),S=j.useRef(null),{data:w}=Gt({queryKey:["logs",i,l],queryFn:()=>rT({project:i??"",worker:l||void 0,limit:500}),enabled:!!i});j.useEffect(()=>{w!=null&&w.data&&c(w.data)},[w]),j.useEffect(()=>{if(!i)return;const N=lT({project:i,worker:l||void 0}),I=new EventSource(N);return I.addEventListener("log.line",D=>{if(!u)try{const H=JSON.parse(D.data);c($=>{const z=[...$,H];return z.length>5e3&&z.splice(0,z.length-5e3),z})}catch{}}),()=>I.close()},[i,l,u]),j.useEffect(()=>{if(!m)return;const N=S.current;N&&(N.scrollTop=N.scrollHeight)},[o,m]);const T=j.useMemo(()=>{const N=E.toLowerCase();return o.filter(I=>!(!b.has(I.level)||N&&!I.msg.toLowerCase().includes(N)))},[o,b,E]);return i?y.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[y.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[i,l&&` · worker-${l}`," · tail -f · ",o.length," lines",u&&y.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),y.jsx("div",{className:"flex gap-3 items-center",children:y.jsx(Zh,{current:i,onChange:N=>a({project:N})})})]}),y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Vh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:E,onChange:N=>x(N.target.value),"aria-label":"过滤日志"})]}),y.jsx("div",{className:"flex items-center gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:sT.map(N=>y.jsx(uT,{level:N,enabled:b.has(N),onToggle:()=>{g(I=>{const D=new Set(I);return D.has(N)?D.delete(N):D.add(N),D})}},N))}),y.jsxs("div",{className:"ml-auto flex gap-2",children:[y.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>h(N=>!N),type:"button",children:m?"✓ Auto-scroll":"Auto-scroll"}),y.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>d(N=>!N),type:"button",children:u?y.jsxs(y.Fragment,{children:[y.jsx(Kh,{size:12,strokeWidth:3})," Resume"]}):y.jsxs(y.Fragment,{children:[y.jsx(RN,{size:12,strokeWidth:3})," Pause"]})}),y.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const N=new Blob([T.map(H=>H.raw).join(`
|
|
283
|
-
`)],{type:"text/plain"}),I=URL.createObjectURL(N),D=document.createElement("a");D.href=I,D.download=`${i}-log-${Date.now()}.log`,D.click(),URL.revokeObjectURL(I)},type:"button",children:[y.jsx(sN,{size:12,strokeWidth:2.5})," Export"]})]})]}),y.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[y.jsxs("div",{className:"px-4 py-2 bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)] flex items-center justify-between font-[family-name:var(--font-mono)] text-xs",children:[y.jsx("span",{className:"text-[var(--color-text-muted)]",children:(w==null?void 0:w.file)??"~/.coral/projects/.../logs/*.log"}),y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"})]}),y.jsxs("div",{ref:S,className:"overflow-auto font-[family-name:var(--font-mono)] text-[12px] leading-[22px] max-h-[70vh] bg-[var(--color-bg)] p-2",onScroll:N=>{const I=N.currentTarget;!(I.scrollHeight-I.scrollTop-I.clientHeight<40)&&m&&h(!1)},children:[T.map((N,I)=>y.jsx(fT,{line:N},I)),T.length===0&&y.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):y.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),y.jsxs("p",{className:"text-sm",children:["需要 ",y.jsx("code",{children:"?project=xx"}),"。"]})]})}function uT({level:e,enabled:a,onToggle:i}){const l={error:"var(--color-crashed-bg)",warn:"var(--color-stuck-bg)",info:"var(--color-secondary)",debug:"var(--color-accent-purple)"},o={error:"var(--color-crashed)",warn:"var(--color-stuck)",info:"var(--color-text)",debug:"var(--color-text)"};return y.jsx("button",{type:"button",onClick:i,"aria-pressed":a,className:["px-3 py-0.5 rounded-full font-[family-name:var(--font-mono)] text-[10px] font-bold tracking-widest cursor-pointer",a?"border-[1.5px] border-[var(--color-text)]":"text-[var(--color-text-subtle)]"].join(" "),style:a?{background:l[e],color:o[e]}:{},children:e.toUpperCase()})}function fT({line:e}){var i;const a={error:"bg-[var(--color-crashed)] text-[var(--color-text)]",warn:"bg-[var(--color-stuck)] text-[var(--color-text)]",info:"bg-[var(--color-secondary)] text-[var(--color-text)]",debug:"",trace:""};return y.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[y.jsx("span",{className:"text-[var(--color-text-subtle)] whitespace-nowrap",children:e.ts?((i=e.ts.split("T")[1])==null?void 0:i.replace("Z",""))??e.ts:"--"}),y.jsx("span",{className:`text-center font-bold ${a[e.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:e.level.toUpperCase()}),y.jsx("span",{className:"truncate text-[var(--color-text)]",children:e.msg})]})}function dT(e){return cn("/api/skills")}function hT(e){return cn(`/api/skills/${encodeURIComponent(e)}`)}function mT(e,a){return cn(`/api/skills/${encodeURIComponent(e)}/references/${encodeURIComponent(a)}`)}async function pu(e,a){const i=await fetch(e,{method:"POST",headers:a?{"Content-Type":"application/json"}:void 0,body:a?JSON.stringify(a):void 0});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return i.json().catch(()=>({}))}function pT(e,a){return pu(`/api/skills/${encodeURIComponent(e)}/link`,{project:a})}function gT(e,a){return fetch(`/api/skills/${encodeURIComponent(e)}/link?project=${encodeURIComponent(a)}`,{method:"DELETE"}).then(i=>{if(!i.ok)throw new Error(`${i.status}`);return i.json()})}function bT(e,a){return pu(`/api/skills/${encodeURIComponent(e)}/freeze`,{project:a})}function yT(e,a){return pu(`/api/skills/${encodeURIComponent(e)}/unfreeze`,{project:a})}function xT(){return pu("/api/skills/sync")}function vT(e,a){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const ET=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_T=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ST={};function Cy(e,a){return(ST.jsx?_T:ET).test(e)}const wT=/[ \t\n\f\r]/g;function NT(e){return typeof e=="object"?e.type==="text"?Ay(e.value):!1:Ay(e)}function Ay(e){return e.replace(wT,"")===""}class bo{constructor(a,i,l){this.normal=i,this.property=a,l&&(this.space=l)}}bo.prototype.normal={};bo.prototype.property={};bo.prototype.space=void 0;function Dv(e,a){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new bo(i,l,a)}function bh(e){return e.toLowerCase()}class Mn{constructor(a,i){this.attribute=i,this.property=a}}Mn.prototype.attribute="";Mn.prototype.booleanish=!1;Mn.prototype.boolean=!1;Mn.prototype.commaOrSpaceSeparated=!1;Mn.prototype.commaSeparated=!1;Mn.prototype.defined=!1;Mn.prototype.mustUseProperty=!1;Mn.prototype.number=!1;Mn.prototype.overloadedBoolean=!1;Mn.prototype.property="";Mn.prototype.spaceSeparated=!1;Mn.prototype.space=void 0;let kT=0;const Ue=Ir(),Pt=Ir(),yh=Ir(),ce=Ir(),xt=Ir(),Al=Ir(),Gn=Ir();function Ir(){return 2**++kT}const xh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Pt,commaOrSpaceSeparated:Gn,commaSeparated:Al,number:ce,overloadedBoolean:yh,spaceSeparated:xt},Symbol.toStringTag,{value:"Module"})),Ld=Object.keys(xh);class Wh extends Mn{constructor(a,i,l,o){let c=-1;if(super(a,i),Ry(this,"space",o),typeof l=="number")for(;++c<Ld.length;){const u=Ld[c];Ry(this,Ld[c],(l&xh[u])===xh[u])}}}Wh.prototype.defined=!0;function Ry(e,a,i){i&&(e[a]=i)}function Vl(e){const a={},i={};for(const[l,o]of Object.entries(e.properties)){const c=new Wh(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(c.mustUseProperty=!0),a[l]=c,i[bh(l)]=l,i[bh(c.attribute)]=l}return new bo(a,i,e.space)}const Lv=Vl({properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:xt,ariaCurrent:null,ariaDescribedBy:xt,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:xt,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:xt,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xt,ariaLevel:ce,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:xt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:xt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Pt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function zv(e,a){return a in e?e[a]:a}function jv(e,a){return zv(e,a.toLowerCase())}const TT=Vl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Al,acceptCharset:xt,accessKey:xt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:xt,autoFocus:Ue,autoPlay:Ue,blocking:xt,capture:null,charSet:null,checked:Ue,cite:null,className:xt,cols:ce,colSpan:null,content:null,contentEditable:Pt,controls:Ue,controlsList:xt,coords:ce|Al,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:yh,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:xt,height:ce,hidden:yh,high:ce,href:null,hrefLang:null,htmlFor:xt,httpEquiv:xt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:xt,itemRef:xt,itemScope:Ue,itemType:xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,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:Ue,optimum:ce,pattern:null,ping:xt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:xt,required:Ue,reversed:Ue,rows:ce,rowSpan:ce,sandbox:xt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Pt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:jv}),CT=Vl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Gn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:xt,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:Al,g2:Al,glyphName:Al,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zv}),Iv=Vl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,a){return"xlink:"+a.slice(5).toLowerCase()}}),Uv=Vl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jv}),Bv=Vl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,a){return"xml:"+a.slice(3).toLowerCase()}}),AT={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"},RT=/[A-Z]/g,Oy=/-[a-z]/g,OT=/^data[-\w.:]+$/i;function MT(e,a){const i=bh(a);let l=a,o=Mn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&OT.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Oy,LT);l="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Oy.test(c)){let u=c.replace(RT,DT);u.charAt(0)!=="-"&&(u="-"+u),a="data"+u}}o=Wh}return new o(l,a)}function DT(e){return"-"+e.toLowerCase()}function LT(e){return e.charAt(1).toUpperCase()}const zT=Dv([Lv,TT,Iv,Uv,Bv],"html"),Jh=Dv([Lv,CT,Iv,Uv,Bv],"svg");function jT(e){return e.join(" ").trim()}var wl={},zd,My;function IT(){if(My)return zd;My=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
284
|
-
`,h="/",b="*",g="",E="comment",x="declaration";function S(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var I=1,D=1;function H(le){var te=le.match(a);te&&(I+=te.length);var F=le.lastIndexOf(m);D=~F?le.length-F:D+le.length}function $(){var le={line:I,column:D};return function(te){return te.position=new z(le),V(),te}}function z(le){this.start=le,this.end={line:I,column:D},this.source=N.source}z.prototype.content=T;function G(le){var te=new Error(N.source+":"+I+":"+D+": "+le);if(te.reason=le,te.filename=N.source,te.line=I,te.column=D,te.source=T,!N.silent)throw te}function X(le){var te=le.exec(T);if(te){var F=te[0];return H(F),T=T.slice(F.length),te}}function V(){X(i)}function A(le){var te;for(le=le||[];te=ae();)te!==!1&&le.push(te);return le}function ae(){var le=$();if(!(h!=T.charAt(0)||b!=T.charAt(1))){for(var te=2;g!=T.charAt(te)&&(b!=T.charAt(te)||h!=T.charAt(te+1));)++te;if(te+=2,g===T.charAt(te-1))return G("End of comment missing");var F=T.slice(2,te-2);return D+=2,H(F),T=T.slice(te),D+=2,le({type:E,comment:F})}}function ie(){var le=$(),te=X(l);if(te){if(ae(),!X(o))return G("property missing ':'");var F=X(c),re=le({type:x,property:w(te[0].replace(e,g)),value:F?w(F[0].replace(e,g)):g});return X(u),re}}function ge(){var le=[];A(le);for(var te;te=ie();)te!==!1&&(le.push(te),A(le));return le}return V(),ge()}function w(T){return T?T.replace(d,g):g}return zd=S,zd}var Dy;function UT(){if(Dy)return wl;Dy=1;var e=wl&&wl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=i;const a=e(IT());function i(l,o){let c=null;if(!l||typeof l!="string")return c;const u=(0,a.default)(l),d=typeof o=="function";return u.forEach(m=>{if(m.type!=="declaration")return;const{property:h,value:b}=m;d?o(h,b,m):b&&(c=c||{},c[h]=b)}),c}return wl}var Qs={},Ly;function BT(){if(Ly)return Qs;Ly=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(h){return!h||i.test(h)||e.test(h)},u=function(h,b){return b.toUpperCase()},d=function(h,b){return"".concat(b,"-")},m=function(h,b){return b===void 0&&(b={}),c(h)?h:(h=h.toLowerCase(),b.reactCompat?h=h.replace(o,d):h=h.replace(l,d),h.replace(a,u))};return Qs.camelCase=m,Qs}var Vs,zy;function HT(){if(zy)return Vs;zy=1;var e=Vs&&Vs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=e(UT()),i=BT();function l(o,c){var u={};return!o||typeof o!="string"||(0,a.default)(o,function(d,m){d&&m&&(u[(0,i.camelCase)(d,c)]=m)}),u}return l.default=l,Vs=l,Vs}var FT=HT();const qT=Rh(FT),Hv=Fv("end"),em=Fv("start");function Fv(e){return a;function a(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function PT(e){const a=em(e),i=Hv(e);if(a&&i)return{start:a,end:i}}function eo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jy(e.position):"start"in e||"end"in e?jy(e):"line"in e||"column"in e?vh(e):""}function vh(e){return Iy(e&&e.line)+":"+Iy(e&&e.column)}function jy(e){return vh(e&&e.start)+"-"+vh(e&&e.end)}function Iy(e){return e&&typeof e=="number"?e:1}class un extends Error{constructor(a,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let o="",c={},u=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof a=="string"?o=a:!c.cause&&a&&(u=!0,o=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof l=="string"){const m=l.indexOf(":");m===-1?c.ruleId=l:(c.source=l.slice(0,m),c.ruleId=l.slice(m+1))}if(!c.place&&c.ancestors&&c.ancestors){const m=c.ancestors[c.ancestors.length-1];m&&(c.place=m.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=eo(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}un.prototype.file="";un.prototype.name="";un.prototype.reason="";un.prototype.message="";un.prototype.stack="";un.prototype.column=void 0;un.prototype.line=void 0;un.prototype.ancestors=void 0;un.prototype.cause=void 0;un.prototype.fatal=void 0;un.prototype.place=void 0;un.prototype.ruleId=void 0;un.prototype.source=void 0;const tm={}.hasOwnProperty,GT=new Map,$T=/[A-Z]/g,KT=new Set(["table","tbody","thead","tfoot","tr"]),YT=new Set(["td","th"]),qv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QT(e,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let l;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=nC(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=tC(i,a.jsx,a.jsxs)}const o={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:l,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?Jh:zT,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Pv(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function Pv(e,a,i){if(a.type==="element")return VT(e,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return XT(e,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return WT(e,a,i);if(a.type==="mdxjsEsm")return ZT(e,a);if(a.type==="root")return JT(e,a,i);if(a.type==="text")return eC(e,a)}function VT(e,a,i){const l=e.schema;let o=l;a.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Jh,e.schema=o),e.ancestors.push(a);const c=$v(e,a.tagName,!1),u=aC(e,a);let d=am(e,a);return KT.has(a.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!NT(m):!0})),Gv(e,u,c,a),nm(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function XT(e,a){if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}lo(e,a.position)}function ZT(e,a){if(a.data&&a.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(a.data.estree);lo(e,a.position)}function WT(e,a,i){const l=e.schema;let o=l;a.name==="svg"&&l.space==="html"&&(o=Jh,e.schema=o),e.ancestors.push(a);const c=a.name===null?e.Fragment:$v(e,a.name,!0),u=iC(e,a),d=am(e,a);return Gv(e,u,c,a),nm(u,d),e.ancestors.pop(),e.schema=l,e.create(a,c,u,i)}function JT(e,a,i){const l={};return nm(l,am(e,a)),e.create(a,e.Fragment,l,i)}function eC(e,a){return a.value}function Gv(e,a,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(a.node=l)}function nm(e,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(e.children=i)}}function tC(e,a,i){return l;function l(o,c,u,d){const h=Array.isArray(u.children)?i:a;return d?h(c,u,d):h(c,u)}}function nC(e,a){return i;function i(l,o,c,u){const d=Array.isArray(c.children),m=em(l);return a(o,c,u,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function aC(e,a){const i={};let l,o;for(o in a.properties)if(o!=="children"&&tm.call(a.properties,o)){const c=rC(e,o,a.properties[o]);if(c){const[u,d]=c;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&YT.has(a.tagName)?l=d:i[u]=d}}if(l){const c=i.style||(i.style={});c[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function iC(e,a){const i={};for(const l of a.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const c=l.data.estree.body[0];c.type;const u=c.expression;u.type;const d=u.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else lo(e,a.position);else{const o=l.name;let c;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const d=l.value.data.estree.body[0];d.type,c=e.evaluater.evaluateExpression(d.expression)}else lo(e,a.position);else c=l.value===null?!0:l.value;i[o]=c}return i}function am(e,a){const i=[];let l=-1;const o=e.passKeys?new Map:GT;for(;++l<a.children.length;){const c=a.children[l];let u;if(e.passKeys){const m=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(m){const h=o.get(m)||0;u=m+"-"+h,o.set(m,h+1)}}const d=Pv(e,c,u);d!==void 0&&i.push(d)}return i}function rC(e,a,i){const l=MT(e.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?vT(i):jT(i)),l.property==="style"){let o=typeof i=="object"?i:lC(e,String(i));return e.stylePropertyNameCase==="css"&&(o=sC(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?AT[l.property]||l.property:l.attribute,i]}}function lC(e,a){try{return qT(a,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new un("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=qv+"#cannot-parse-style-attribute",o}}function $v(e,a,i){let l;if(!i)l={type:"Literal",value:a};else if(a.includes(".")){const o=a.split(".");let c=-1,u;for(;++c<o.length;){const d=Cy(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}l=u}else l=Cy(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(l.type==="Literal"){const o=l.value;return tm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);lo(e)}function lo(e,a){const i=new un("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qv+"#cannot-handle-mdx-estrees-without-createevaluater",i}function sC(e){const a={};let i;for(i in e)tm.call(e,i)&&(a[oC(i)]=e[i]);return a}function oC(e){let a=e.replace($T,cC);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function cC(e){return"-"+e.toLowerCase()}const jd={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"]},uC={};function im(e,a){const i=uC,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Kv(e,l,o)}function Kv(e,a,i){if(fC(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(a&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Uy(e.children,a,i)}return Array.isArray(e)?Uy(e,a,i):""}function Uy(e,a,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=Kv(e[o],a,i);return l.join("")}function fC(e){return!!(e&&typeof e=="object")}const By=document.createElement("i");function rm(e){const a="&"+e+";";By.innerHTML=a;const i=By.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===a?!1:i}function Kn(e,a,i,l){const o=e.length;let c=0,u;if(a<0?a=-a>o?0:o+a:a=a>o?o:a,i=i>0?i:0,l.length<1e4)u=Array.from(l),u.unshift(a,i),e.splice(...u);else for(i&&e.splice(a,i);c<l.length;)u=l.slice(c,c+1e4),u.unshift(a,0),e.splice(...u),c+=1e4,a+=1e4}function la(e,a){return e.length>0?(Kn(e,e.length,0,a),e):a}const Hy={}.hasOwnProperty;function Yv(e){const a={};let i=-1;for(;++i<e.length;)dC(a,e[i]);return a}function dC(e,a){let i;for(i in a){const o=(Hy.call(e,i)?e[i]:void 0)||(e[i]={}),c=a[i];let u;if(c)for(u in c){Hy.call(o,u)||(o[u]=[]);const d=c[u];hC(o[u],Array.isArray(d)?d:d?[d]:[])}}}function hC(e,a){let i=-1;const l=[];for(;++i<a.length;)(a[i].add==="after"?e:l).push(a[i]);Kn(e,0,0,l)}function Qv(e,a){const i=Number.parseInt(e,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function ga(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yn=Wi(/[A-Za-z]/),on=Wi(/[\dA-Za-z]/),mC=Wi(/[#-'*+\--9=?A-Z^-~]/);function iu(e){return e!==null&&(e<32||e===127)}const Eh=Wi(/\d/),pC=Wi(/[\dA-Fa-f]/),gC=Wi(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function bt(e){return e!==null&&(e<0||e===32)}function $e(e){return e===-2||e===-1||e===32}const gu=Wi(new RegExp("\\p{P}|\\p{S}","u")),zr=Wi(/\s/);function Wi(e){return a;function a(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Xl(e){const a=[];let i=-1,l=0,o=0;for(;++i<e.length;){const c=e.charCodeAt(i);let u="";if(c===37&&on(e.charCodeAt(i+1))&&on(e.charCodeAt(i+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const d=e.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(u=String.fromCharCode(c,d),o=1):u="�"}else u=String.fromCharCode(c);u&&(a.push(e.slice(l,i),encodeURIComponent(u)),l=i+o+1,u=""),o&&(i+=o,o=0)}return a.join("")+e.slice(l)}function We(e,a,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let c=0;return u;function u(m){return $e(m)?(e.enter(i),d(m)):a(m)}function d(m){return $e(m)&&c++<o?(e.consume(m),d):(e.exit(i),a(m))}}const bC={tokenize:yC};function yC(e){const a=e.attempt(this.parser.constructs.contentInitial,l,o);let i;return a;function l(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),We(e,a,"linePrefix")}function o(d){return e.enter("paragraph"),c(d)}function c(d){const m=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Te(d)?(e.consume(d),e.exit("chunkText"),c):(e.consume(d),u)}}const xC={tokenize:vC},Fy={tokenize:EC};function vC(e){const a=this,i=[];let l=0,o,c,u;return d;function d(D){if(l<i.length){const H=i[l];return a.containerState=H[1],e.attempt(H[0].continuation,m,h)(D)}return h(D)}function m(D){if(l++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&I();const H=a.events.length;let $=H,z;for(;$--;)if(a.events[$][0]==="exit"&&a.events[$][1].type==="chunkFlow"){z=a.events[$][1].end;break}N(l);let G=H;for(;G<a.events.length;)a.events[G][1].end={...z},G++;return Kn(a.events,$+1,0,a.events.slice(H)),a.events.length=G,h(D)}return d(D)}function h(D){if(l===i.length){if(!o)return E(D);if(o.currentConstruct&&o.currentConstruct.concrete)return S(D);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},e.check(Fy,b,g)(D)}function b(D){return o&&I(),N(l),E(D)}function g(D){return a.parser.lazy[a.now().line]=l!==i.length,u=a.now().offset,S(D)}function E(D){return a.containerState={},e.attempt(Fy,x,S)(D)}function x(D){return l++,i.push([a.currentConstruct,a.containerState]),E(D)}function S(D){if(D===null){o&&I(),N(0),e.consume(D);return}return o=o||a.parser.flow(a.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),w(D)}function w(D){if(D===null){T(e.exit("chunkFlow"),!0),N(0),e.consume(D);return}return Te(D)?(e.consume(D),T(e.exit("chunkFlow")),l=0,a.interrupt=void 0,d):(e.consume(D),w)}function T(D,H){const $=a.sliceStream(D);if(H&&$.push(null),D.previous=c,c&&(c.next=D),c=D,o.defineSkip(D.start),o.write($),a.parser.lazy[D.start.line]){let z=o.events.length;for(;z--;)if(o.events[z][1].start.offset<u&&(!o.events[z][1].end||o.events[z][1].end.offset>u))return;const G=a.events.length;let X=G,V,A;for(;X--;)if(a.events[X][0]==="exit"&&a.events[X][1].type==="chunkFlow"){if(V){A=a.events[X][1].end;break}V=!0}for(N(l),z=G;z<a.events.length;)a.events[z][1].end={...A},z++;Kn(a.events,X+1,0,a.events.slice(G)),a.events.length=z}}function N(D){let H=i.length;for(;H-- >D;){const $=i[H];a.containerState=$[1],$[0].exit.call(a,e)}i.length=D}function I(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function EC(e,a,i){return We(e,e.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ql(e){if(e===null||bt(e)||zr(e))return 1;if(gu(e))return 2}function bu(e,a,i){const l=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!l.includes(c)&&(a=c(a,i),l.push(c))}return a}const _h={name:"attention",resolveAll:_C,tokenize:SC};function _C(e,a){let i=-1,l,o,c,u,d,m,h,b;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&a.sliceSerialize(e[l][1]).charCodeAt(0)===a.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;m=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[l][1].end},E={...e[i][1].start};qy(g,-m),qy(E,m),u={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:E},c={type:m>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={type:m>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[l][1].end={...u.start},e[i][1].start={...d.end},h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=la(h,[["enter",e[l][1],a],["exit",e[l][1],a]])),h=la(h,[["enter",o,a],["enter",u,a],["exit",u,a],["enter",c,a]]),h=la(h,bu(a.parser.constructs.insideSpan.null,e.slice(l+1,i),a)),h=la(h,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",o,a]]),e[i][1].end.offset-e[i][1].start.offset?(b=2,h=la(h,[["enter",e[i][1],a],["exit",e[i][1],a]])):b=0,Kn(e,l-1,i-l+3,h),i=l+h.length-b-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function SC(e,a){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ql(l);let c;return u;function u(m){return c=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===c)return e.consume(m),d;const h=e.exit("attentionSequence"),b=ql(m),g=!b||b===2&&o||i.includes(m),E=!o||o===2&&b||i.includes(l);return h._open=!!(c===42?g:g&&(o||!E)),h._close=!!(c===42?E:E&&(b||!g)),a(m)}}function qy(e,a){e.column+=a,e.offset+=a,e._bufferIndex+=a}const wC={name:"autolink",tokenize:NC};function NC(e,a,i){let l=0;return o;function o(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(x){return yn(x)?(e.consume(x),u):x===64?i(x):h(x)}function u(x){return x===43||x===45||x===46||on(x)?(l=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),l=0,m):(x===43||x===45||x===46||on(x))&&l++<32?(e.consume(x),d):(l=0,h(x))}function m(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),a):x===null||x===32||x===60||iu(x)?i(x):(e.consume(x),m)}function h(x){return x===64?(e.consume(x),b):mC(x)?(e.consume(x),h):i(x)}function b(x){return on(x)?g(x):i(x)}function g(x){return x===46?(e.consume(x),l=0,b):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),a):E(x)}function E(x){if((x===45||on(x))&&l++<63){const S=x===45?E:g;return e.consume(x),S}return i(x)}}const yo={partial:!0,tokenize:kC};function kC(e,a,i){return l;function l(c){return $e(c)?We(e,o,"linePrefix")(c):o(c)}function o(c){return c===null||Te(c)?a(c):i(c)}}const Vv={continuation:{tokenize:CC},exit:AC,name:"blockQuote",tokenize:TC};function TC(e,a,i){const l=this;return o;function o(u){if(u===62){const d=l.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),c}return i(u)}function c(u){return $e(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),a):(e.exit("blockQuotePrefix"),a(u))}}function CC(e,a,i){const l=this;return o;function o(u){return $e(u)?We(e,c,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):c(u)}function c(u){return e.attempt(Vv,a,i)(u)}}function AC(e){e.exit("blockQuote")}const Xv={name:"characterEscape",tokenize:RC};function RC(e,a,i){return l;function l(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),o}function o(c){return gC(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),a):i(c)}}const Zv={name:"characterReference",tokenize:OC};function OC(e,a,i){const l=this;let o=0,c,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),m}function m(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),c=31,u=on,b(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,u=pC,b):(e.enter("characterReferenceValue"),c=7,u=Eh,b(g))}function b(g){if(g===59&&o){const E=e.exit("characterReferenceValue");return u===on&&!rm(l.sliceSerialize(E))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),a)}return u(g)&&o++<c?(e.consume(g),b):i(g)}}const Py={partial:!0,tokenize:DC},Gy={concrete:!0,name:"codeFenced",tokenize:MC};function MC(e,a,i){const l=this,o={partial:!0,tokenize:$};let c=0,u=0,d;return m;function m(z){return h(z)}function h(z){const G=l.events[l.events.length-1];return c=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,d=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(z)}function b(z){return z===d?(u++,e.consume(z),b):u<3?i(z):(e.exit("codeFencedFenceSequence"),$e(z)?We(e,g,"whitespace")(z):g(z))}function g(z){return z===null||Te(z)?(e.exit("codeFencedFence"),l.interrupt?a(z):e.check(Py,w,H)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(z))}function E(z){return z===null||Te(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(z)):$e(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,x,"whitespace")(z)):z===96&&z===d?i(z):(e.consume(z),E)}function x(z){return z===null||Te(z)?g(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(z))}function S(z){return z===null||Te(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(z)):z===96&&z===d?i(z):(e.consume(z),S)}function w(z){return e.attempt(o,H,T)(z)}function T(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),N}function N(z){return c>0&&$e(z)?We(e,I,"linePrefix",c+1)(z):I(z)}function I(z){return z===null||Te(z)?e.check(Py,w,H)(z):(e.enter("codeFlowValue"),D(z))}function D(z){return z===null||Te(z)?(e.exit("codeFlowValue"),I(z)):(e.consume(z),D)}function H(z){return e.exit("codeFenced"),a(z)}function $(z,G,X){let V=0;return A;function A(te){return z.enter("lineEnding"),z.consume(te),z.exit("lineEnding"),ae}function ae(te){return z.enter("codeFencedFence"),$e(te)?We(z,ie,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):ie(te)}function ie(te){return te===d?(z.enter("codeFencedFenceSequence"),ge(te)):X(te)}function ge(te){return te===d?(V++,z.consume(te),ge):V>=u?(z.exit("codeFencedFenceSequence"),$e(te)?We(z,le,"whitespace")(te):le(te)):X(te)}function le(te){return te===null||Te(te)?(z.exit("codeFencedFence"),G(te)):X(te)}}}function DC(e,a,i){const l=this;return o;function o(u){return u===null?i(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c)}function c(u){return l.parser.lazy[l.now().line]?i(u):a(u)}}const Id={name:"codeIndented",tokenize:zC},LC={partial:!0,tokenize:jC};function zC(e,a,i){const l=this;return o;function o(h){return e.enter("codeIndented"),We(e,c,"linePrefix",5)(h)}function c(h){const b=l.events[l.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?u(h):i(h)}function u(h){return h===null?m(h):Te(h)?e.attempt(LC,u,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Te(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function m(h){return e.exit("codeIndented"),a(h)}}function jC(e,a,i){const l=this;return o;function o(u){return l.parser.lazy[l.now().line]?i(u):Te(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):We(e,c,"linePrefix",5)(u)}function c(u){const d=l.events[l.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):Te(u)?o(u):i(u)}}const IC={name:"codeText",previous:BC,resolve:UC,tokenize:HC};function UC(e){let a=e.length-4,i=3,l,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[a][1].type==="lineEnding"||e[a][1].type==="space")){for(l=i;++l<a;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(l=i-1,a++;++l<=a;)o===void 0?l!==a&&e[l][1].type!=="lineEnding"&&(o=l):(l===a||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),a-=l-o-2,l=o+2),o=void 0);return e}function BC(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function HC(e,a,i){let l=0,o,c;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),l++,d):(e.exit("codeTextSequence"),m(g))}function m(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),m):g===96?(c=e.enter("codeTextSequence"),o=0,b(g)):Te(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Te(g)?(e.exit("codeTextData"),m(g)):(e.consume(g),h)}function b(g){return g===96?(e.consume(g),o++,b):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),a(g)):(c.type="codeTextData",h(g))}}class FC{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(a,l):a>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(a,i,l){const o=i||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&Xs(this.left,l),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Xs(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Xs(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);Xs(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Xs(this.left,i.reverse())}}}function Xs(e,a){let i=0;if(a.length<1e4)e.push(...a);else for(;i<a.length;)e.push(...a.slice(i,i+1e4)),i+=1e4}function Wv(e){const a={};let i=-1,l,o,c,u,d,m,h;const b=new FC(e);for(;++i<b.length;){for(;i in a;)i=a[i];if(l=b.get(i),i&&l[1].type==="chunkFlow"&&b.get(i-1)[1].type==="listItemPrefix"&&(m=l[1]._tokenizer.events,c=0,c<m.length&&m[c][1].type==="lineEndingBlank"&&(c+=2),c<m.length&&m[c][1].type==="content"))for(;++c<m.length&&m[c][1].type!=="content";)m[c][1].type==="chunkText"&&(m[c][1]._isInFirstContentOfListItem=!0,c++);if(l[0]==="enter")l[1].contentType&&(Object.assign(a,qC(b,i)),i=a[i],h=!0);else if(l[1]._container){for(c=i,o=void 0;c--;)if(u=b.get(c),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=c);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(l[1].end={...b.get(o)[1].start},d=b.slice(o,i),d.unshift(l),b.splice(o,i-o+1,d))}}return Kn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!h}function qC(e,a){const i=e.get(a)[1],l=e.get(a)[2];let o=a-1;const c=[];let u=i._tokenizer;u||(u=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,m=[],h={};let b,g,E=-1,x=i,S=0,w=0;const T=[w];for(;x;){for(;e.get(++o)[1]!==x;);c.push(o),x._tokenizer||(b=l.sliceStream(x),x.next||b.push(null),g&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(b),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=i;++E<d.length;)d[E][0]==="exit"&&d[E-1][0]==="enter"&&d[E][1].type===d[E-1][1].type&&d[E][1].start.line!==d[E][1].end.line&&(w=E+1,T.push(w),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):T.pop(),E=T.length;E--;){const N=d.slice(T[E],T[E+1]),I=c.pop();m.push([I,I+N.length-1]),e.splice(I,2,N)}for(m.reverse(),E=-1;++E<m.length;)h[S+m[E][0]]=S+m[E][1],S+=m[E][1]-m[E][0]-1;return h}const PC={resolve:$C,tokenize:KC},GC={partial:!0,tokenize:YC};function $C(e){return Wv(e),e}function KC(e,a){let i;return l;function l(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?c(d):Te(d)?e.check(GC,u,c)(d):(e.consume(d),o)}function c(d){return e.exit("chunkContent"),e.exit("content"),a(d)}function u(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function YC(e,a,i){const l=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),We(e,c,"linePrefix")}function c(u){if(u===null||Te(u))return i(u);const d=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):e.interrupt(l.parser.constructs.flow,i,a)(u)}}function Jv(e,a,i,l,o,c,u,d,m){const h=m||Number.POSITIVE_INFINITY;let b=0;return g;function g(N){return N===60?(e.enter(l),e.enter(o),e.enter(c),e.consume(N),e.exit(c),E):N===null||N===32||N===41||iu(N)?i(N):(e.enter(l),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(N))}function E(N){return N===62?(e.enter(c),e.consume(N),e.exit(c),e.exit(o),e.exit(l),a):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===62?(e.exit("chunkString"),e.exit(d),E(N)):N===null||N===60||Te(N)?i(N):(e.consume(N),N===92?S:x)}function S(N){return N===60||N===62||N===92?(e.consume(N),x):x(N)}function w(N){return!b&&(N===null||N===41||bt(N))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(l),a(N)):b<h&&N===40?(e.consume(N),b++,w):N===41?(e.consume(N),b--,w):N===null||N===32||N===40||iu(N)?i(N):(e.consume(N),N===92?T:w)}function T(N){return N===40||N===41||N===92?(e.consume(N),w):w(N)}}function eE(e,a,i,l,o,c){const u=this;let d=0,m;return h;function h(x){return e.enter(l),e.enter(o),e.consume(x),e.exit(o),e.enter(c),b}function b(x){return d>999||x===null||x===91||x===93&&!m||x===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?i(x):x===93?(e.exit(c),e.enter(o),e.consume(x),e.exit(o),e.exit(l),a):Te(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||Te(x)||d++>999?(e.exit("chunkString"),b(x)):(e.consume(x),m||(m=!$e(x)),x===92?E:g)}function E(x){return x===91||x===92||x===93?(e.consume(x),d++,g):g(x)}}function tE(e,a,i,l,o,c){let u;return d;function d(E){return E===34||E===39||E===40?(e.enter(l),e.enter(o),e.consume(E),e.exit(o),u=E===40?41:E,m):i(E)}function m(E){return E===u?(e.enter(o),e.consume(E),e.exit(o),e.exit(l),a):(e.enter(c),h(E))}function h(E){return E===u?(e.exit(c),m(u)):E===null?i(E):Te(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),We(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===u||E===null||Te(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?g:b)}function g(E){return E===u||E===92?(e.consume(E),b):b(E)}}function to(e,a){let i;return l;function l(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):$e(o)?We(e,l,i?"linePrefix":"lineSuffix")(o):a(o)}}const QC={name:"definition",tokenize:XC},VC={partial:!0,tokenize:ZC};function XC(e,a,i){const l=this;let o;return c;function c(x){return e.enter("definition"),u(x)}function u(x){return eE.call(l,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=ga(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),m):i(x)}function m(x){return bt(x)?to(e,h)(x):h(x)}function h(x){return Jv(e,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return e.attempt(VC,g,g)(x)}function g(x){return $e(x)?We(e,E,"whitespace")(x):E(x)}function E(x){return x===null||Te(x)?(e.exit("definition"),l.parser.defined.push(o),a(x)):i(x)}}function ZC(e,a,i){return l;function l(d){return bt(d)?to(e,o)(d):i(d)}function o(d){return tE(e,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return $e(d)?We(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Te(d)?a(d):i(d)}}const WC={name:"hardBreakEscape",tokenize:JC};function JC(e,a,i){return l;function l(c){return e.enter("hardBreakEscape"),e.consume(c),o}function o(c){return Te(c)?(e.exit("hardBreakEscape"),a(c)):i(c)}}const eA={name:"headingAtx",resolve:tA,tokenize:nA};function tA(e,a){let i=e.length-2,l=3,o,c;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},c={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Kn(e,l,i-l+1,[["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a]])),e}function nA(e,a,i){let l=0;return o;function o(b){return e.enter("atxHeading"),c(b)}function c(b){return e.enter("atxHeadingSequence"),u(b)}function u(b){return b===35&&l++<6?(e.consume(b),u):b===null||bt(b)?(e.exit("atxHeadingSequence"),d(b)):i(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),m(b)):b===null||Te(b)?(e.exit("atxHeading"),a(b)):$e(b)?We(e,d,"whitespace")(b):(e.enter("atxHeadingText"),h(b))}function m(b){return b===35?(e.consume(b),m):(e.exit("atxHeadingSequence"),d(b))}function h(b){return b===null||b===35||bt(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),h)}}const aA=["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"],$y=["pre","script","style","textarea"],iA={concrete:!0,name:"htmlFlow",resolveTo:sA,tokenize:oA},rA={partial:!0,tokenize:uA},lA={partial:!0,tokenize:cA};function sA(e){let a=e.length;for(;a--&&!(e[a][0]==="enter"&&e[a][1].type==="htmlFlow"););return a>1&&e[a-2][1].type==="linePrefix"&&(e[a][1].start=e[a-2][1].start,e[a+1][1].start=e[a-2][1].start,e.splice(a-2,2)),e}function oA(e,a,i){const l=this;let o,c,u,d,m;return h;function h(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),g}function g(k){return k===33?(e.consume(k),E):k===47?(e.consume(k),c=!0,w):k===63?(e.consume(k),o=3,l.interrupt?a:C):yn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function E(k){return k===45?(e.consume(k),o=2,x):k===91?(e.consume(k),o=5,d=0,S):yn(k)?(e.consume(k),o=4,l.interrupt?a:C):i(k)}function x(k){return k===45?(e.consume(k),l.interrupt?a:C):i(k)}function S(k){const de="CDATA[";return k===de.charCodeAt(d++)?(e.consume(k),d===de.length?l.interrupt?a:ie:S):i(k)}function w(k){return yn(k)?(e.consume(k),u=String.fromCharCode(k),T):i(k)}function T(k){if(k===null||k===47||k===62||bt(k)){const de=k===47,Ne=u.toLowerCase();return!de&&!c&&$y.includes(Ne)?(o=1,l.interrupt?a(k):ie(k)):aA.includes(u.toLowerCase())?(o=6,de?(e.consume(k),N):l.interrupt?a(k):ie(k)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(k):c?I(k):D(k))}return k===45||on(k)?(e.consume(k),u+=String.fromCharCode(k),T):i(k)}function N(k){return k===62?(e.consume(k),l.interrupt?a:ie):i(k)}function I(k){return $e(k)?(e.consume(k),I):A(k)}function D(k){return k===47?(e.consume(k),A):k===58||k===95||yn(k)?(e.consume(k),H):$e(k)?(e.consume(k),D):A(k)}function H(k){return k===45||k===46||k===58||k===95||on(k)?(e.consume(k),H):$(k)}function $(k){return k===61?(e.consume(k),z):$e(k)?(e.consume(k),$):D(k)}function z(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(e.consume(k),m=k,G):$e(k)?(e.consume(k),z):X(k)}function G(k){return k===m?(e.consume(k),m=null,V):k===null||Te(k)?i(k):(e.consume(k),G)}function X(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||bt(k)?$(k):(e.consume(k),X)}function V(k){return k===47||k===62||$e(k)?D(k):i(k)}function A(k){return k===62?(e.consume(k),ae):i(k)}function ae(k){return k===null||Te(k)?ie(k):$e(k)?(e.consume(k),ae):i(k)}function ie(k){return k===45&&o===2?(e.consume(k),F):k===60&&o===1?(e.consume(k),re):k===62&&o===4?(e.consume(k),O):k===63&&o===3?(e.consume(k),C):k===93&&o===5?(e.consume(k),_e):Te(k)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(rA,Q,ge)(k)):k===null||Te(k)?(e.exit("htmlFlowData"),ge(k)):(e.consume(k),ie)}function ge(k){return e.check(lA,le,Q)(k)}function le(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),te}function te(k){return k===null||Te(k)?ge(k):(e.enter("htmlFlowData"),ie(k))}function F(k){return k===45?(e.consume(k),C):ie(k)}function re(k){return k===47?(e.consume(k),u="",oe):ie(k)}function oe(k){if(k===62){const de=u.toLowerCase();return $y.includes(de)?(e.consume(k),O):ie(k)}return yn(k)&&u.length<8?(e.consume(k),u+=String.fromCharCode(k),oe):ie(k)}function _e(k){return k===93?(e.consume(k),C):ie(k)}function C(k){return k===62?(e.consume(k),O):k===45&&o===2?(e.consume(k),C):ie(k)}function O(k){return k===null||Te(k)?(e.exit("htmlFlowData"),Q(k)):(e.consume(k),O)}function Q(k){return e.exit("htmlFlow"),a(k)}}function cA(e,a,i){const l=this;return o;function o(u){return Te(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):i(u)}function c(u){return l.parser.lazy[l.now().line]?i(u):a(u)}}function uA(e,a,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(yo,a,i)}}const fA={name:"htmlText",tokenize:dA};function dA(e,a,i){const l=this;let o,c,u;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),m}function m(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),$):C===63?(e.consume(C),D):yn(C)?(e.consume(C),X):i(C)}function h(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),c=0,S):yn(C)?(e.consume(C),I):i(C)}function b(C){return C===45?(e.consume(C),x):i(C)}function g(C){return C===null?i(C):C===45?(e.consume(C),E):Te(C)?(u=g,re(C)):(e.consume(C),g)}function E(C){return C===45?(e.consume(C),x):g(C)}function x(C){return C===62?F(C):C===45?E(C):g(C)}function S(C){const O="CDATA[";return C===O.charCodeAt(c++)?(e.consume(C),c===O.length?w:S):i(C)}function w(C){return C===null?i(C):C===93?(e.consume(C),T):Te(C)?(u=w,re(C)):(e.consume(C),w)}function T(C){return C===93?(e.consume(C),N):w(C)}function N(C){return C===62?F(C):C===93?(e.consume(C),N):w(C)}function I(C){return C===null||C===62?F(C):Te(C)?(u=I,re(C)):(e.consume(C),I)}function D(C){return C===null?i(C):C===63?(e.consume(C),H):Te(C)?(u=D,re(C)):(e.consume(C),D)}function H(C){return C===62?F(C):D(C)}function $(C){return yn(C)?(e.consume(C),z):i(C)}function z(C){return C===45||on(C)?(e.consume(C),z):G(C)}function G(C){return Te(C)?(u=G,re(C)):$e(C)?(e.consume(C),G):F(C)}function X(C){return C===45||on(C)?(e.consume(C),X):C===47||C===62||bt(C)?V(C):i(C)}function V(C){return C===47?(e.consume(C),F):C===58||C===95||yn(C)?(e.consume(C),A):Te(C)?(u=V,re(C)):$e(C)?(e.consume(C),V):F(C)}function A(C){return C===45||C===46||C===58||C===95||on(C)?(e.consume(C),A):ae(C)}function ae(C){return C===61?(e.consume(C),ie):Te(C)?(u=ae,re(C)):$e(C)?(e.consume(C),ae):V(C)}function ie(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),o=C,ge):Te(C)?(u=ie,re(C)):$e(C)?(e.consume(C),ie):(e.consume(C),le)}function ge(C){return C===o?(e.consume(C),o=void 0,te):C===null?i(C):Te(C)?(u=ge,re(C)):(e.consume(C),ge)}function le(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||bt(C)?V(C):(e.consume(C),le)}function te(C){return C===47||C===62||bt(C)?V(C):i(C)}function F(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),a):i(C)}function re(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),oe}function oe(C){return $e(C)?We(e,_e,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):_e(C)}function _e(C){return e.enter("htmlTextData"),u(C)}}const lm={name:"labelEnd",resolveAll:gA,resolveTo:bA,tokenize:yA},hA={tokenize:xA},mA={tokenize:vA},pA={tokenize:EA};function gA(e){let a=-1;const i=[];for(;++a<e.length;){const l=e[a][1];if(i.push(e[a]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",a+=o}}return e.length!==i.length&&Kn(e,0,e.length,i),e}function bA(e,a){let i=e.length,l=0,o,c,u,d;for(;i--;)if(o=e[i][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=i,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(u=i);const m={type:e[c][1].type==="labelLink"?"link":"image",start:{...e[c][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[c][1].start},end:{...e[u][1].end}},b={type:"labelText",start:{...e[c+l+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",m,a],["enter",h,a]],d=la(d,e.slice(c+1,c+l+3)),d=la(d,[["enter",b,a]]),d=la(d,bu(a.parser.constructs.insideSpan.null,e.slice(c+l+4,u-3),a)),d=la(d,[["exit",b,a],e[u-2],e[u-1],["exit",h,a]]),d=la(d,e.slice(u+1)),d=la(d,[["exit",m,a]]),Kn(e,c,e.length,d),e}function yA(e,a,i){const l=this;let o=l.events.length,c,u;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){c=l.events[o][1];break}return d;function d(E){return c?c._inactive?g(E):(u=l.parser.defined.includes(ga(l.sliceSerialize({start:c.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),m):i(E)}function m(E){return E===40?e.attempt(hA,b,u?b:g)(E):E===91?e.attempt(mA,b,u?h:g)(E):u?b(E):g(E)}function h(E){return e.attempt(pA,b,g)(E)}function b(E){return a(E)}function g(E){return c._balanced=!0,i(E)}}function xA(e,a,i){return l;function l(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return bt(g)?to(e,c)(g):c(g)}function c(g){return g===41?b(g):Jv(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return bt(g)?to(e,m)(g):b(g)}function d(g){return i(g)}function m(g){return g===34||g===39||g===40?tE(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function h(g){return bt(g)?to(e,b)(g):b(g)}function b(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),a):i(g)}}function vA(e,a,i){const l=this;return o;function o(d){return eE.call(l,e,c,u,"reference","referenceMarker","referenceString")(d)}function c(d){return l.parser.defined.includes(ga(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function u(d){return i(d)}}function EA(e,a,i){return l;function l(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),o}function o(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),a):i(c)}}const _A={name:"labelStartImage",resolveAll:lm.resolveAll,tokenize:SA};function SA(e,a,i){const l=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),c}function c(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):i(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(d):a(d)}}const wA={name:"labelStartLink",resolveAll:lm.resolveAll,tokenize:NA};function NA(e,a,i){const l=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),c}function c(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(u):a(u)}}const Ud={name:"lineEnding",tokenize:kA};function kA(e,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),We(e,a,"linePrefix")}}const Jc={name:"thematicBreak",tokenize:TA};function TA(e,a,i){let l=0,o;return c;function c(h){return e.enter("thematicBreak"),u(h)}function u(h){return o=h,d(h)}function d(h){return h===o?(e.enter("thematicBreakSequence"),m(h)):l>=3&&(h===null||Te(h))?(e.exit("thematicBreak"),a(h)):i(h)}function m(h){return h===o?(e.consume(h),l++,m):(e.exit("thematicBreakSequence"),$e(h)?We(e,d,"whitespace")(h):d(h))}}const An={continuation:{tokenize:OA},exit:DA,name:"list",tokenize:RA},CA={partial:!0,tokenize:LA},AA={partial:!0,tokenize:MA};function RA(e,a,i){const l=this,o=l.events[l.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return d;function d(x){const S=l.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!l.containerState.marker||x===l.containerState.marker:Eh(x)){if(l.containerState.type||(l.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(Jc,i,h)(x):h(x);if(!l.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(x)}return i(x)}function m(x){return Eh(x)&&++u<10?(e.consume(x),m):(!l.interrupt||u<2)&&(l.containerState.marker?x===l.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):i(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||x,e.check(yo,l.interrupt?i:b,e.attempt(CA,E,g))}function b(x){return l.containerState.initialBlankLine=!0,c++,E(x)}function g(x){return $e(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),E):i(x)}function E(x){return l.containerState.size=c+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,a(x)}}function OA(e,a,i){const l=this;return l.containerState._closeFlow=void 0,e.check(yo,o,c);function o(d){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,We(e,a,"listItemIndent",l.containerState.size+1)(d)}function c(d){return l.containerState.furtherBlankLines||!$e(d)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(d)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(AA,a,u)(d))}function u(d){return l.containerState._closeFlow=!0,l.interrupt=void 0,We(e,e.attempt(An,a,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function MA(e,a,i){const l=this;return We(e,o,"listItemIndent",l.containerState.size+1);function o(c){const u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?a(c):i(c)}}function DA(e){e.exit(this.containerState.type)}function LA(e,a,i){const l=this;return We(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const u=l.events[l.events.length-1];return!$e(c)&&u&&u[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const Ky={name:"setextUnderline",resolveTo:zA,tokenize:jA};function zA(e,a){let i=e.length,l,o,c;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!c&&e[i][1].type==="definition"&&(c=i);const u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",c?(e.splice(o,0,["enter",u,a]),e.splice(c+1,0,["exit",e[l][1],a]),e[l][1].end={...e[c][1].end}):e[l][1]=u,e.push(["exit",u,a]),e}function jA(e,a,i){const l=this;let o;return c;function c(h){let b=l.events.length,g;for(;b--;)if(l.events[b][1].type!=="lineEnding"&&l.events[b][1].type!=="linePrefix"&&l.events[b][1].type!=="content"){g=l.events[b][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=h,u(h)):i(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===o?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),$e(h)?We(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||Te(h)?(e.exit("setextHeadingLine"),a(h)):i(h)}}const IA={tokenize:UA};function UA(e){const a=this,i=e.attempt(yo,l,e.attempt(this.parser.constructs.flowInitial,o,We(e,e.attempt(this.parser.constructs.flow,o,e.attempt(PC,o)),"linePrefix")));return i;function l(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function o(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a.currentConstruct=void 0,i}}const BA={resolveAll:aE()},HA=nE("string"),FA=nE("text");function nE(e){return{resolveAll:aE(e==="text"?qA:void 0),tokenize:a};function a(i){const l=this,o=this.parser.constructs[e],c=i.attempt(o,u,d);return u;function u(b){return h(b)?c(b):d(b)}function d(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),m}function m(b){return h(b)?(i.exit("data"),c(b)):(i.consume(b),m)}function h(b){if(b===null)return!0;const g=o[b];let E=-1;if(g)for(;++E<g.length;){const x=g[E];if(!x.previous||x.previous.call(l,l.previous))return!0}return!1}}}function aE(e){return a;function a(i,l){let o=-1,c;for(;++o<=i.length;)c===void 0?i[o]&&i[o][1].type==="data"&&(c=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==c+2&&(i[c][1].end=i[o-1][1].end,i.splice(c+2,o-c-2),o=c+2),c=void 0);return e?e(i,l):i}}function qA(e,a){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const l=e[i-1][1],o=a.sliceStream(l);let c=o.length,u=-1,d=0,m;for(;c--;){const h=o[c];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)m=!0,d++;else if(h!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===e.length&&(d=0),d){const h={type:i===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?u:l.start._bufferIndex+u,_index:l.start._index+c,line:l.end.line,column:l.end.column-d,offset:l.end.offset-d},end:{...l.end}};l.end={...h.start},l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(i,0,["enter",h,a],["exit",h,a]),i+=2)}i++}return e}const PA={42:An,43:An,45:An,48:An,49:An,50:An,51:An,52:An,53:An,54:An,55:An,56:An,57:An,62:Vv},GA={91:QC},$A={[-2]:Id,[-1]:Id,32:Id},KA={35:eA,42:Jc,45:[Ky,Jc],60:iA,61:Ky,95:Jc,96:Gy,126:Gy},YA={38:Zv,92:Xv},QA={[-5]:Ud,[-4]:Ud,[-3]:Ud,33:_A,38:Zv,42:_h,60:[wC,fA],91:wA,92:[WC,Xv],93:lm,95:_h,96:IC},VA={null:[_h,BA]},XA={null:[42,95]},ZA={null:[]},WA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:XA,contentInitial:GA,disable:ZA,document:PA,flow:KA,flowInitial:$A,insideSpan:VA,string:YA,text:QA},Symbol.toStringTag,{value:"Module"}));function JA(e,a,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},c=[];let u=[],d=[];const m={attempt:G($),check:G(z),consume:I,enter:D,exit:H,interrupt:G(z,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:S,parser:e,previous:null,sliceSerialize:E,sliceStream:x,write:g};let b=a.tokenize.call(h,m);return a.resolveAll&&c.push(a),h;function g(ae){return u=la(u,ae),T(),u[u.length-1]!==null?[]:(X(a,0),h.events=bu(c,h.events,h),h.events)}function E(ae,ie){return tR(x(ae),ie)}function x(ae){return eR(u,ae)}function S(){const{_bufferIndex:ae,_index:ie,line:ge,column:le,offset:te}=l;return{_bufferIndex:ae,_index:ie,line:ge,column:le,offset:te}}function w(ae){o[ae.line]=ae.column,A()}function T(){let ae;for(;l._index<u.length;){const ie=u[l._index];if(typeof ie=="string")for(ae=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ae&&l._bufferIndex<ie.length;)N(ie.charCodeAt(l._bufferIndex));else N(ie)}}function N(ae){b=b(ae)}function I(ae){Te(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,A()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=ae}function D(ae,ie){const ge=ie||{};return ge.type=ae,ge.start=S(),h.events.push(["enter",ge,h]),d.push(ge),ge}function H(ae){const ie=d.pop();return ie.end=S(),h.events.push(["exit",ie,h]),ie}function $(ae,ie){X(ae,ie.from)}function z(ae,ie){ie.restore()}function G(ae,ie){return ge;function ge(le,te,F){let re,oe,_e,C;return Array.isArray(le)?Q(le):"tokenize"in le?Q([le]):O(le);function O(xe){return Be;function Be(rt){const nt=rt!==null&&xe[rt],$t=rt!==null&&xe.null,Dn=[...Array.isArray(nt)?nt:nt?[nt]:[],...Array.isArray($t)?$t:$t?[$t]:[]];return Q(Dn)(rt)}}function Q(xe){return re=xe,oe=0,xe.length===0?F:k(xe[oe])}function k(xe){return Be;function Be(rt){return C=V(),_e=xe,xe.partial||(h.currentConstruct=xe),xe.name&&h.parser.constructs.disable.null.includes(xe.name)?Ne():xe.tokenize.call(ie?Object.assign(Object.create(h),ie):h,m,de,Ne)(rt)}}function de(xe){return ae(_e,C),te}function Ne(xe){return C.restore(),++oe<re.length?k(re[oe]):F}}}function X(ae,ie){ae.resolveAll&&!c.includes(ae)&&c.push(ae),ae.resolve&&Kn(h.events,ie,h.events.length-ie,ae.resolve(h.events.slice(ie),h)),ae.resolveTo&&(h.events=ae.resolveTo(h.events,h))}function V(){const ae=S(),ie=h.previous,ge=h.currentConstruct,le=h.events.length,te=Array.from(d);return{from:le,restore:F};function F(){l=ae,h.previous=ie,h.currentConstruct=ge,h.events.length=le,d=te,A()}}function A(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function eR(e,a){const i=a.start._index,l=a.start._bufferIndex,o=a.end._index,c=a.end._bufferIndex;let u;if(i===o)u=[e[i].slice(l,c)];else{if(u=e.slice(i,o),l>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(l):u.shift()}c>0&&u.push(e[o].slice(0,c))}return u}function tR(e,a){let i=-1;const l=[];let o;for(;++i<e.length;){const c=e[i];let u;if(typeof c=="string")u=c;else switch(c){case-5:{u="\r";break}case-4:{u=`
|
|
285
|
-
`;break}case-3:{u=`\r
|
|
286
|
-
`;break}case-2:{u=a?" ":" ";break}case-1:{if(!a&&o)continue;u=" ";break}default:u=String.fromCharCode(c)}o=c===-2,l.push(u)}return l.join("")}function nR(e){const l={constructs:Yv([WA,...(e||{}).extensions||[]]),content:o(bC),defined:[],document:o(xC),flow:o(IA),lazy:{},string:o(HA),text:o(FA)};return l;function o(c){return u;function u(d){return JA(l,c,d)}}}function aR(e){for(;!Wv(e););return e}const Yy=/[\0\t\n\r]/g;function iR(){let e=1,a="",i=!0,l;return o;function o(c,u,d){const m=[];let h,b,g,E,x;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c)),g=0,a="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(Yy.lastIndex=g,h=Yy.exec(c),E=h&&h.index!==void 0?h.index:c.length,x=c.charCodeAt(E),!h){a=c.slice(g);break}if(x===10&&g===E&&l)m.push(-3),l=void 0;else switch(l&&(m.push(-5),l=void 0),g<E&&(m.push(c.slice(g,E)),e+=E-g),x){case 0:{m.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,m.push(-2);e++<b;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:l=!0,e=1}g=E+1}return d&&(l&&m.push(-5),a&&m.push(a),m.push(null)),m}}const rR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lR(e){return e.replace(rR,sR)}function sR(e,a,i){if(a)return a;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return Qv(i.slice(c?2:1),c?16:10)}return rm(i)||e}const iE={}.hasOwnProperty;function oR(e,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),cR(i)(aR(nR(i).document().write(iR()(e,a,!0))))}function cR(e){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(va),autolinkProtocol:V,autolinkEmail:V,atxHeading:c(xa),blockQuote:c($t),characterEscape:V,characterReference:V,codeFenced:c(Dn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Dn,u),codeText:c(Da,u),codeTextData:V,data:V,codeFlowValue:V,definition:c(ui),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(Ln),hardBreakEscape:c(Ve),hardBreakTrailing:c(Ve),htmlFlow:c(ca,u),htmlFlowData:V,htmlText:c(ca,u),htmlTextData:V,image:c(Qn),label:u,link:c(va),listItem:c(Ji),listItemValue:E,listOrdered:c(La,g),listUnordered:c(La),paragraph:c(Zl),reference:k,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(xa),strong:c(Br),thematicBreak:c(Hr)},exit:{atxHeading:m(),atxHeadingSequence:$,autolink:m(),autolinkEmail:nt,autolinkProtocol:rt,blockQuote:m(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:xe,characterReference:Be,codeFenced:m(T),codeFencedFence:w,codeFencedFenceInfo:x,codeFencedFenceMeta:S,codeFlowValue:A,codeIndented:m(N),codeText:m(te),codeTextData:A,data:A,definition:m(),definitionDestinationString:H,definitionLabelString:I,definitionTitleString:D,emphasis:m(),hardBreakEscape:m(ie),hardBreakTrailing:m(ie),htmlFlow:m(ge),htmlFlowData:A,htmlText:m(le),htmlTextData:A,image:m(re),label:_e,labelText:oe,lineEnding:ae,link:m(F),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:de,resourceDestinationString:C,resourceTitleString:O,resource:Q,setextHeading:m(X),setextHeadingLineSequence:G,setextHeadingText:z,strong:m(),thematicBreak:m()}};rE(a,(e||{}).mdastExtensions||[]);const i={};return l;function l(Z){let ue={type:"root",children:[]};const Ce={stack:[ue],tokenStack:[],config:a,enter:d,exit:h,buffer:u,resume:b,data:i},Fe=[];let Je=-1;for(;++Je<Z.length;)if(Z[Je][1].type==="listOrdered"||Z[Je][1].type==="listUnordered")if(Z[Je][0]==="enter")Fe.push(Je);else{const fn=Fe.pop();Je=o(Z,fn,Je)}for(Je=-1;++Je<Z.length;){const fn=a[Z[Je][0]];iE.call(fn,Z[Je][1].type)&&fn[Z[Je][1].type].call(Object.assign({sliceSerialize:Z[Je][2].sliceSerialize},Ce),Z[Je][1])}if(Ce.tokenStack.length>0){const fn=Ce.tokenStack[Ce.tokenStack.length-1];(fn[1]||Qy).call(Ce,void 0,fn[0])}for(ue.position={start:Bi(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Bi(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<a.transforms.length;)ue=a.transforms[Je](ue)||ue;return ue}function o(Z,ue,Ce){let Fe=ue-1,Je=-1,fn=!1,ua,Xt,Ct,nn;for(;++Fe<=Ce;){const lt=Z[Fe];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?Je++:Je--,nn=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(ua&&!nn&&!Je&&!Ct&&(Ct=Fe),nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nn=void 0}if(!Je&<[0]==="enter"&<[1].type==="listItemPrefix"||Je===-1&<[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(ua){let Ea=Fe;for(Xt=void 0;Ea--;){const dn=Z[Ea];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;Xt&&(Z[Xt][1].type="lineEndingBlank",fn=!0),dn[1].type="lineEnding",Xt=Ea}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}Ct&&(!Xt||Ct<Xt)&&(ua._spread=!0),ua.end=Object.assign({},Xt?Z[Xt][1].start:lt[1].end),Z.splice(Xt||Fe,0,["exit",ua,lt[2]]),Fe++,Ce++}if(lt[1].type==="listItemPrefix"){const Ea={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};ua=Ea,Z.splice(Fe,0,["enter",Ea,lt[2]]),Fe++,Ce++,Ct=void 0,nn=!0}}}return Z[ue][1]._spread=fn,Ce}function c(Z,ue){return Ce;function Ce(Fe){d.call(this,Z(Fe),Fe),ue&&ue.call(this,Fe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(Z,ue,Ce){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ue,Ce||void 0]),Z.position={start:Bi(ue.start),end:void 0}}function m(Z){return ue;function ue(Ce){Z&&Z.call(this,Ce),h.call(this,Ce)}}function h(Z,ue){const Ce=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==Z.type&&(ue?ue.call(this,Z,Fe[0]):(Fe[1]||Qy).call(this,Z,Fe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+eo({start:Z.start,end:Z.end})+"): it’s not open");Ce.position.end=Bi(Z.end)}function b(){return im(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function E(Z){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function x(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=Z}function S(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=Z}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z.replace(/(\r?\n|\r)$/g,"")}function I(Z){const ue=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ue,Ce.identifier=ga(this.sliceSerialize(Z)).toLowerCase()}function D(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Z}function H(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Z}function $(Z){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Ce=this.sliceSerialize(Z).length;ue.depth=Ce}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function G(Z){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function V(Z){const Ce=this.stack[this.stack.length-1].children;let Fe=Ce[Ce.length-1];(!Fe||Fe.type!=="text")&&(Fe=kt(),Fe.position={start:Bi(Z.start),end:void 0},Ce.push(Fe)),this.stack.push(Fe)}function A(Z){const ue=this.stack.pop();ue.value+=this.sliceSerialize(Z),ue.position.end=Bi(Z.end)}function ae(Z){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ue.children[ue.children.length-1];Ce.position.end=Bi(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ue.type)&&(V.call(this,Z),A.call(this,Z))}function ie(){this.data.atHardBreak=!0}function ge(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function le(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function te(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Z}function F(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ue,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function re(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ue,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function oe(Z){const ue=this.sliceSerialize(Z),Ce=this.stack[this.stack.length-2];Ce.label=lR(ue),Ce.identifier=ga(ue).toLowerCase()}function _e(){const Z=this.stack[this.stack.length-1],ue=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Fe=Z.children;Ce.children=Fe}else Ce.alt=ue}function C(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Z}function O(){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Z}function Q(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function de(Z){const ue=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ue,Ce.identifier=ga(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Ne(Z){this.data.characterReferenceType=Z.type}function xe(Z){const ue=this.sliceSerialize(Z),Ce=this.data.characterReferenceType;let Fe;Ce?(Fe=Qv(ue,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=rm(ue);const Je=this.stack[this.stack.length-1];Je.value+=Fe}function Be(Z){const ue=this.stack.pop();ue.position.end=Bi(Z.end)}function rt(Z){A.call(this,Z);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(Z)}function nt(Z){A.call(this,Z);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(Z)}function $t(){return{type:"blockquote",children:[]}}function Dn(){return{type:"code",lang:null,meta:null,value:""}}function Da(){return{type:"inlineCode",value:""}}function ui(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ln(){return{type:"emphasis",children:[]}}function xa(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function ca(){return{type:"html",value:""}}function Qn(){return{type:"image",title:null,url:"",alt:null}}function va(){return{type:"link",title:null,url:"",children:[]}}function La(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Ji(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Zl(){return{type:"paragraph",children:[]}}function Br(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function Hr(){return{type:"thematicBreak"}}}function Bi(e){return{line:e.line,column:e.column,offset:e.offset}}function rE(e,a){let i=-1;for(;++i<a.length;){const l=a[i];Array.isArray(l)?rE(e,l):uR(e,l)}}function uR(e,a){let i;for(i in a)if(iE.call(a,i))switch(i){case"canContainEols":{const l=a[i];l&&e[i].push(...l);break}case"transforms":{const l=a[i];l&&e[i].push(...l);break}case"enter":case"exit":{const l=a[i];l&&Object.assign(e[i],l);break}}}function Qy(e,a){throw e?new Error("Cannot close `"+e.type+"` ("+eo({start:e.start,end:e.end})+"): a different token (`"+a.type+"`, "+eo({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+eo({start:a.start,end:a.end})+") is still open")}function fR(e){const a=this;a.parser=i;function i(l){return oR(l,{...a.data("settings"),...e,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function dR(e,a){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(a),!0)};return e.patch(a,i),e.applyData(a,i)}function hR(e,a){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(a,i),[e.applyData(a,i),{type:"text",value:`
|
|
287
|
-
`}]}function mR(e,a){const i=a.value?a.value+`
|
|
288
|
-
`:"",l={},o=a.lang?a.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return a.meta&&(c.data={meta:a.meta}),e.patch(a,c),c=e.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(a,c),c}function pR(e,a){const i={type:"element",tagName:"del",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function gR(e,a){const i={type:"element",tagName:"em",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function bR(e,a){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(a.identifier).toUpperCase(),o=Xl(l.toLowerCase()),c=e.footnoteOrder.indexOf(l);let u,d=e.footnoteCounts.get(l);d===void 0?(d=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=c+1,d+=1,e.footnoteCounts.set(l,d);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(a,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(a,h),e.applyData(a,h)}function yR(e,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function xR(e,a){if(e.options.allowDangerousHtml){const i={type:"raw",value:a.value};return e.patch(a,i),e.applyData(a,i)}}function lE(e,a){const i=a.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+l}];const o=e.all(a),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=l:o.push({type:"text",value:l}),o}function vR(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return lE(e,a);const o={src:Xl(l.url||""),alt:a.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const c={type:"element",tagName:"img",properties:o,children:[]};return e.patch(a,c),e.applyData(a,c)}function ER(e,a){const i={src:Xl(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(a,l),e.applyData(a,l)}function _R(e,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};e.patch(a,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(a,l),e.applyData(a,l)}function SR(e,a){const i=String(a.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return lE(e,a);const o={href:Xl(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const c={type:"element",tagName:"a",properties:o,children:e.all(a)};return e.patch(a,c),e.applyData(a,c)}function wR(e,a){const i={href:Xl(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"a",properties:i,children:e.all(a)};return e.patch(a,l),e.applyData(a,l)}function NR(e,a,i){const l=e.all(a),o=i?kR(i):sE(a),c={},u=[];if(typeof a.checked=="boolean"){const b=l[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},l.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<l.length;){const b=l[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&u.push({type:"text",value:`
|
|
289
|
-
`}),b.type==="element"&&b.tagName==="p"&&!o?u.push(...b.children):u.push(b)}const m=l[l.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
290
|
-
`});const h={type:"element",tagName:"li",properties:c,children:u};return e.patch(a,h),e.applyData(a,h)}function kR(e){let a=!1;if(e.type==="list"){a=e.spread||!1;const i=e.children;let l=-1;for(;!a&&++l<i.length;)a=sE(i[l])}return a}function sE(e){const a=e.spread;return a??e.children.length>1}function TR(e,a){const i={},l=e.all(a);let o=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++o<l.length;){const u=l[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:e.wrap(l,!0)};return e.patch(a,c),e.applyData(a,c)}function CR(e,a){const i={type:"element",tagName:"p",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function AR(e,a){const i={type:"root",children:e.wrap(e.all(a))};return e.patch(a,i),e.applyData(a,i)}function RR(e,a){const i={type:"element",tagName:"strong",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}function OR(e,a){const i=e.all(a),l=i.shift(),o=[];if(l){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(a.children[0],u),o.push(u)}if(i.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=em(a.children[1]),m=Hv(a.children[a.children.length-1]);d&&m&&(u.position={start:d,end:m}),o.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(a,c),e.applyData(a,c)}function MR(e,a,i){const l=i?i.children:void 0,c=(l?l.indexOf(a):1)===0?"th":"td",u=i&&i.type==="table"?i.align:void 0,d=u?u.length:a.children.length;let m=-1;const h=[];for(;++m<d;){const g=a.children[m],E={},x=u?u[m]:void 0;x&&(E.align=x);let S={type:"element",tagName:c,properties:E,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),h.push(S)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(a,b),e.applyData(a,b)}function DR(e,a){const i={type:"element",tagName:"td",properties:{},children:e.all(a)};return e.patch(a,i),e.applyData(a,i)}const Vy=9,Xy=32;function LR(e){const a=String(e),i=/\r?\n|\r/g;let l=i.exec(a),o=0;const c=[];for(;l;)c.push(Zy(a.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(a);return c.push(Zy(a.slice(o),o>0,!1)),c.join("")}function Zy(e,a,i){let l=0,o=e.length;if(a){let c=e.codePointAt(l);for(;c===Vy||c===Xy;)l++,c=e.codePointAt(l)}if(i){let c=e.codePointAt(o-1);for(;c===Vy||c===Xy;)o--,c=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function zR(e,a){const i={type:"text",value:LR(String(a.value))};return e.patch(a,i),e.applyData(a,i)}function jR(e,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(a,i),e.applyData(a,i)}const IR={blockquote:dR,break:hR,code:mR,delete:pR,emphasis:gR,footnoteReference:bR,heading:yR,html:xR,imageReference:vR,image:ER,inlineCode:_R,linkReference:SR,link:wR,listItem:NR,list:TR,paragraph:CR,root:AR,strong:RR,table:OR,tableCell:DR,tableRow:MR,text:zR,thematicBreak:jR,toml:Fc,yaml:Fc,definition:Fc,footnoteDefinition:Fc};function Fc(){}const oE=-1,yu=0,no=1,ru=2,sm=3,om=4,cm=5,um=6,cE=7,uE=8,Wy=typeof self=="object"?self:globalThis,UR=(e,a)=>{const i=(o,c)=>(e.set(c,o),o),l=o=>{if(e.has(o))return e.get(o);const[c,u]=a[o];switch(c){case yu:case oE:return i(u,o);case no:{const d=i([],o);for(const m of u)d.push(l(m));return d}case ru:{const d=i({},o);for(const[m,h]of u)d[l(m)]=l(h);return d}case sm:return i(new Date(u),o);case om:{const{source:d,flags:m}=u;return i(new RegExp(d,m),o)}case cm:{const d=i(new Map,o);for(const[m,h]of u)d.set(l(m),l(h));return d}case um:{const d=i(new Set,o);for(const m of u)d.add(l(m));return d}case cE:{const{name:d,message:m}=u;return i(new Wy[d](m),o)}case uE:return i(BigInt(u),o);case"BigInt":return i(Object(BigInt(u)),o);case"ArrayBuffer":return i(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return i(new DataView(d),u)}}return i(new Wy[c](u),o)};return l},Jy=e=>UR(new Map,e)(0),Nl="",{toString:BR}={},{keys:HR}=Object,Zs=e=>{const a=typeof e;if(a!=="object"||!e)return[yu,a];const i=BR.call(e).slice(8,-1);switch(i){case"Array":return[no,Nl];case"Object":return[ru,Nl];case"Date":return[sm,Nl];case"RegExp":return[om,Nl];case"Map":return[cm,Nl];case"Set":return[um,Nl];case"DataView":return[no,i]}return i.includes("Array")?[no,i]:i.includes("Error")?[cE,i]:[ru,i]},qc=([e,a])=>e===yu&&(a==="function"||a==="symbol"),FR=(e,a,i,l)=>{const o=(u,d)=>{const m=l.push(u)-1;return i.set(d,m),m},c=u=>{if(i.has(u))return i.get(u);let[d,m]=Zs(u);switch(d){case yu:{let b=u;switch(m){case"bigint":d=uE,b=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);b=null;break;case"undefined":return o([oE],u)}return o([d,b],u)}case no:{if(m){let E=u;return m==="DataView"?E=new Uint8Array(u.buffer):m==="ArrayBuffer"&&(E=new Uint8Array(u)),o([m,[...E]],u)}const b=[],g=o([d,b],u);for(const E of u)b.push(c(E));return g}case ru:{if(m)switch(m){case"BigInt":return o([m,u.toString()],u);case"Boolean":case"Number":case"String":return o([m,u.valueOf()],u)}if(a&&"toJSON"in u)return c(u.toJSON());const b=[],g=o([d,b],u);for(const E of HR(u))(e||!qc(Zs(u[E])))&&b.push([c(E),c(u[E])]);return g}case sm:return o([d,u.toISOString()],u);case om:{const{source:b,flags:g}=u;return o([d,{source:b,flags:g}],u)}case cm:{const b=[],g=o([d,b],u);for(const[E,x]of u)(e||!(qc(Zs(E))||qc(Zs(x))))&&b.push([c(E),c(x)]);return g}case um:{const b=[],g=o([d,b],u);for(const E of u)(e||!qc(Zs(E)))&&b.push(c(E));return g}}const{message:h}=u;return o([d,{name:m,message:h}],u)};return c},ex=(e,{json:a,lossy:i}={})=>{const l=[];return FR(!(a||i),!!a,new Map,l)(e),l},lu=typeof structuredClone=="function"?(e,a)=>a&&("json"in a||"lossy"in a)?Jy(ex(e,a)):structuredClone(e):(e,a)=>Jy(ex(e,a));function qR(e,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function PR(e,a){return"Back to reference "+(e+1)+(a>1?"-"+a:"")}function GR(e){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||qR,l=e.options.footnoteBackLabel||PR,o=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const b=e.all(h),g=String(h.identifier).toUpperCase(),E=Xl(g.toLowerCase());let x=0;const S=[],w=e.footnoteCounts.get(g);for(;w!==void 0&&++x<=w;){S.length>0&&S.push({type:"text",value:" "});let I=typeof i=="string"?i:i(m,x);typeof I=="string"&&(I={type:"text",value:I}),S.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+E+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(m,x),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const T=b[b.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const I=T.children[T.children.length-1];I&&I.type==="text"?I.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...S)}else b.push(...S);const N={type:"element",tagName:"li",properties:{id:a+"fn-"+E},children:e.wrap(b,!0)};e.patch(h,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...lu(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
291
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
292
|
-
`}]}}const xo=(function(e){if(e==null)return QR;if(typeof e=="function")return xu(e);if(typeof e=="object")return Array.isArray(e)?$R(e):KR(e);if(typeof e=="string")return YR(e);throw new Error("Expected function, string, or object as test")});function $R(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=xo(e[i]);return xu(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function KR(e){const a=e;return xu(i);function i(l){const o=l;let c;for(c in e)if(o[c]!==a[c])return!1;return!0}}function YR(e){return xu(a);function a(i){return i&&i.type===e}}function xu(e){return a;function a(i,l,o){return!!(VR(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function QR(){return!0}function VR(e){return e!==null&&typeof e=="object"&&"type"in e}const fE=[],XR=!0,Sh=!1,ZR="skip";function dE(e,a,i,l){let o;typeof a=="function"&&typeof i!="function"?(l=i,i=a):o=a;const c=xo(o),u=l?-1:1;d(e,void 0,[])();function d(m,h,b){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(m.type+(x?"<"+x+">":""))+")"})}return E;function E(){let x=fE,S,w,T;if((!a||c(m,h,b[b.length-1]||void 0))&&(x=WR(i(m,b)),x[0]===Sh))return x;if("children"in m&&m.children){const N=m;if(N.children&&x[0]!==ZR)for(w=(l?N.children.length:-1)+u,T=b.concat(N);w>-1&&w<N.children.length;){const I=N.children[w];if(S=d(I,w,T)(),S[0]===Sh)return S;w=typeof S[1]=="number"?S[1]:w+u}}return x}}}function WR(e){return Array.isArray(e)?e:typeof e=="number"?[XR,e]:e==null?fE:[e]}function vu(e,a,i,l){let o,c,u;typeof a=="function"&&typeof i!="function"?(c=void 0,u=a,o=i):(c=a,u=i,o=l),dE(e,c,d,o);function d(m,h){const b=h[h.length-1],g=b?b.children.indexOf(m):void 0;return u(m,g,b)}}const wh={}.hasOwnProperty,JR={};function eO(e,a){const i=a||JR,l=new Map,o=new Map,c=new Map,u={...IR,...i.handlers},d={all:h,applyData:nO,definitionById:l,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:m,options:i,patch:tO,wrap:iO};return vu(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?l:o,E=String(b.identifier).toUpperCase();g.has(E)||g.set(E,b)}}),d;function m(b,g){const E=b.type,x=d.handlers[E];if(wh.call(d.handlers,E)&&x)return x(d,b,g);if(d.options.passThrough&&d.options.passThrough.includes(E)){if("children"in b){const{children:w,...T}=b,N=lu(T);return N.children=d.all(b),N}return lu(b)}return(d.options.unknownHandler||aO)(d,b,g)}function h(b){const g=[];if("children"in b){const E=b.children;let x=-1;for(;++x<E.length;){const S=d.one(E[x],b);if(S){if(x&&E[x-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=tx(S.value)),!Array.isArray(S)&&S.type==="element")){const w=S.children[0];w&&w.type==="text"&&(w.value=tx(w.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function tO(e,a){e.position&&(a.position=PT(e))}function nO(e,a){let i=a;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,c=e.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const u="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:u}}i.type==="element"&&c&&Object.assign(i.properties,lu(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function aO(e,a){const i=a.data||{},l="value"in a&&!(wh.call(i,"hProperties")||wh.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:e.all(a)};return e.patch(a,l),e.applyData(a,l)}function iO(e,a){const i=[];let l=-1;for(a&&i.push({type:"text",value:`
|
|
293
|
-
`});++l<e.length;)l&&i.push({type:"text",value:`
|
|
294
|
-
`}),i.push(e[l]);return a&&e.length>0&&i.push({type:"text",value:`
|
|
295
|
-
`}),i}function tx(e){let a=0,i=e.charCodeAt(a);for(;i===9||i===32;)a++,i=e.charCodeAt(a);return e.slice(a)}function nx(e,a){const i=eO(e,a),l=i.one(e,void 0),o=GR(i),c=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
296
|
-
`},o),c}function rO(e,a){return e&&"run"in e?async function(i,l){const o=nx(i,{file:l,...a});await e.run(o,l)}:function(i,l){return nx(i,{file:l,...e||a})}}function ax(e){if(e)throw e}var Bd,ix;function lO(){if(ix)return Bd;ix=1;var e=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},c=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var b=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!g)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},u=function(h,b){i&&b.name==="__proto__"?i(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},d=function(h,b){if(b==="__proto__")if(e.call(h,b)){if(l)return l(h,b).value}else return;return h[b]};return Bd=function m(){var h,b,g,E,x,S,w=arguments[0],T=1,N=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},T=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});T<N;++T)if(h=arguments[T],h!=null)for(b in h)g=d(w,b),E=d(h,b),w!==E&&(I&&E&&(c(E)||(x=o(E)))?(x?(x=!1,S=g&&o(g)?g:[]):S=g&&c(g)?g:{},u(w,{name:b,newValue:m(I,S,E)})):typeof E<"u"&&u(w,{name:b,newValue:E}));return w},Bd}var sO=lO();const Hd=Rh(sO);function Nh(e){if(typeof e!="object"||e===null)return!1;const a=Object.getPrototypeOf(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oO(){const e=[],a={run:i,use:l};return a;function i(...o){let c=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...o);function d(m,...h){const b=e[++c];let g=-1;if(m){u(m);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,b?cO(b,d)(...h):u(null,...h)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),a}}function cO(e,a){let i;return l;function l(...u){const d=e.length>u.length;let m;d&&u.push(o);try{m=e.apply(this,u)}catch(h){const b=h;if(d&&i)throw b;return o(b)}d||(m&&m.then&&typeof m.then=="function"?m.then(c,o):m instanceof Error?o(m):c(m))}function o(u,...d){i||(i=!0,a(u,...d))}function c(u){o(null,u)}}const Ca={basename:uO,dirname:fO,extname:dO,join:hO,sep:"/"};function uO(e,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');vo(e);let i=0,l=-1,o=e.length,c;if(a===void 0||a.length===0||a.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(c){i=o+1;break}}else l<0&&(c=!0,l=o+1);return l<0?"":e.slice(i,l)}if(a===e)return"";let u=-1,d=a.length-1;for(;o--;)if(e.codePointAt(o)===47){if(c){i=o+1;break}}else u<0&&(c=!0,u=o+1),d>-1&&(e.codePointAt(o)===a.codePointAt(d--)?d<0&&(l=o):(d=-1,l=u));return i===l?l=u:l<0&&(l=e.length),e.slice(i,l)}function fO(e){if(vo(e),e.length===0)return".";let a=-1,i=e.length,l;for(;--i;)if(e.codePointAt(i)===47){if(l){a=i;break}}else l||(l=!0);return a<0?e.codePointAt(0)===47?"/":".":a===1&&e.codePointAt(0)===47?"//":e.slice(0,a)}function dO(e){vo(e);let a=e.length,i=-1,l=0,o=-1,c=0,u;for(;a--;){const d=e.codePointAt(a);if(d===47){if(u){l=a+1;break}continue}i<0&&(u=!0,i=a+1),d===46?o<0?o=a:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||i<0||c===0||c===1&&o===i-1&&o===l+1?"":e.slice(o,i)}function hO(...e){let a=-1,i;for(;++a<e.length;)vo(e[a]),e[a]&&(i=i===void 0?e[a]:i+"/"+e[a]);return i===void 0?".":mO(i)}function mO(e){vo(e);const a=e.codePointAt(0)===47;let i=pO(e,!a);return i.length===0&&!a&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),a?"/"+i:i}function pO(e,a){let i="",l=0,o=-1,c=0,u=-1,d,m;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(o===u-1||c===1))if(o!==u-1&&c===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",l=0):(i=i.slice(0,m),l=i.length-1-i.lastIndexOf("/")),o=u,c=0;continue}}else if(i.length>0){i="",l=0,o=u,c=0;continue}}a&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,c=0}else d===46&&c>-1?c++:c=-1}return i}function vo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gO={cwd:bO};function bO(){return"/"}function kh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function yO(e){if(typeof e=="string")e=new URL(e);else if(!kh(e)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(e.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return xO(e)}function xO(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const a=e.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const l=a.codePointAt(i+2);if(l===70||l===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(a)}const Fd=["history","path","basename","stem","extname","dirname"];class hE{constructor(a){let i;a?kh(a)?i={path:a}:typeof a=="string"||vO(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":gO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Fd.length;){const c=Fd[l];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let o;for(o in i)Fd.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?Ca.basename(this.path):void 0}set basename(a){Pd(a,"basename"),qd(a,"basename"),this.path=Ca.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Ca.dirname(this.path):void 0}set dirname(a){rx(this.basename,"dirname"),this.path=Ca.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Ca.extname(this.path):void 0}set extname(a){if(qd(a,"extname"),rx(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ca.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){kh(a)&&(a=yO(a)),Pd(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Ca.basename(this.path,this.extname):void 0}set stem(a){Pd(a,"stem"),qd(a,"stem"),this.path=Ca.join(this.dirname||"",a+(this.extname||""))}fail(a,i,l){const o=this.message(a,i,l);throw o.fatal=!0,o}info(a,i,l){const o=this.message(a,i,l);return o.fatal=void 0,o}message(a,i,l){const o=new un(a,i,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function qd(e,a){if(e&&e.includes(Ca.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Ca.sep+"`")}function Pd(e,a){if(!e)throw new Error("`"+a+"` cannot be empty")}function rx(e,a){if(!e)throw new Error("Setting `"+a+"` requires `path` to be set too")}function vO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const EO=(function(e){const l=this.constructor.prototype,o=l[e],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,l),c}),_O={}.hasOwnProperty;class fm extends EO{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=oO()}copy(){const a=new fm;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];a.use(...l)}return a.data(Hd(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Kd("data",this.frozen),this.namespace[a]=i,this):_O.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Kd("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=i.call(a,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=Pc(a),l=this.parser||this.Parser;return Gd("parse",l),l(String(i),i)}process(a,i){const l=this;return this.freeze(),Gd("process",this.parser||this.Parser),$d("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,u){const d=Pc(a),m=l.parse(d);l.run(m,d,function(b,g,E){if(b||!g||!E)return h(b);const x=g,S=l.stringify(x,E);NO(S)?E.value=S:E.result=S,h(b,E)});function h(b,g){b||!g?u(b):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,l;return this.freeze(),Gd("processSync",this.parser||this.Parser),$d("processSync",this.compiler||this.Compiler),this.process(a,o),sx("processSync","process",i),l;function o(c,u){i=!0,ax(c),l=u}}run(a,i,l){lx(a),this.freeze();const o=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?c(void 0,l):new Promise(c);function c(u,d){const m=Pc(i);o.run(a,m,h);function h(b,g,E){const x=g||a;b?d(b):u?u(x):l(void 0,x,E)}}}runSync(a,i){let l=!1,o;return this.run(a,i,c),sx("runSync","run",l),o;function c(u,d){ax(u),o=d,l=!0}}stringify(a,i){this.freeze();const l=Pc(i),o=this.compiler||this.Compiler;return $d("stringify",o),lx(a),o(a,l)}use(a,...i){const l=this.attachers,o=this.namespace;if(Kd("use",this.frozen),a!=null)if(typeof a=="function")m(a,i);else if(typeof a=="object")Array.isArray(a)?d(a):u(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[b,...g]=h;m(b,g)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(o.settings=Hd(!0,o.settings,h.settings))}function d(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const g=h[b];c(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,b){let g=-1,E=-1;for(;++g<l.length;)if(l[g][0]===h){E=g;break}if(E===-1)l.push([h,...b]);else if(b.length>0){let[x,...S]=b;const w=l[E][1];Nh(w)&&Nh(x)&&(x=Hd(!0,w,x)),l[E]=[h,x,...S]}}}}const SO=new fm().freeze();function Gd(e,a){if(typeof a!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $d(e,a){if(typeof a!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Kd(e,a){if(a)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lx(e){if(!Nh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sx(e,a,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+a+"` instead")}function Pc(e){return wO(e)?e:new hE(e)}function wO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function NO(e){return typeof e=="string"||kO(e)}function kO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const TO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ox=[],cx={allowDangerousHtml:!0},CO=/^(https?|ircs?|mailto|xmpp)$/i,AO=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function dm(e){const a=RO(e),i=OO(e);return MO(a.runSync(a.parse(i),i),e)}function RO(e){const a=e.rehypePlugins||ox,i=e.remarkPlugins||ox,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...cx}:cx;return SO().use(fR).use(i).use(rO,l).use(a)}function OO(e){const a=e.children||"",i=new hE;return typeof a=="string"&&(i.value=a),i}function MO(e,a){const i=a.allowedElements,l=a.allowElement,o=a.components,c=a.disallowedElements,u=a.skipHtml,d=a.unwrapDisallowed,m=a.urlTransform||DO;for(const b of AO)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+TO+b.id,void 0);return vu(e,h),QT(e,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function h(b,g,E){if(b.type==="raw"&&E&&typeof g=="number")return u?E.children.splice(g,1):E.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let x;for(x in jd)if(Object.hasOwn(jd,x)&&Object.hasOwn(b.properties,x)){const S=b.properties[x],w=jd[x];(w===null||w.includes(b.tagName))&&(b.properties[x]=m(String(S||""),x,b))}}if(b.type==="element"){let x=i?!i.includes(b.tagName):c?c.includes(b.tagName):!1;if(!x&&l&&typeof g=="number"&&(x=!l(b,g,E)),x&&E&&typeof g=="number")return d&&b.children?E.children.splice(g,1,...b.children):E.children.splice(g,1),g}}}function DO(e){const a=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return a===-1||o!==-1&&a>o||i!==-1&&a>i||l!==-1&&a>l||CO.test(e.slice(0,a))?e:""}function ux(e,a){const i=String(e);if(typeof a!="string")throw new TypeError("Expected character");let l=0,o=i.indexOf(a);for(;o!==-1;)l++,o=i.indexOf(a,o+a.length);return l}function LO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zO(e,a,i){const o=xo((i||{}).ignore||[]),c=jO(a);let u=-1;for(;++u<c.length;)dE(e,"text",d);function d(h,b){let g=-1,E;for(;++g<b.length;){const x=b[g],S=E?E.children:void 0;if(o(x,S?S.indexOf(x):void 0,E))return;E=x}if(E)return m(h,b)}function m(h,b){const g=b[b.length-1],E=c[u][0],x=c[u][1];let S=0;const T=g.children.indexOf(h);let N=!1,I=[];E.lastIndex=0;let D=E.exec(h.value);for(;D;){const H=D.index,$={index:D.index,input:D.input,stack:[...b,h]};let z=x(...D,$);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?E.lastIndex=H+1:(S!==H&&I.push({type:"text",value:h.value.slice(S,H)}),Array.isArray(z)?I.push(...z):z&&I.push(z),S=H+D[0].length,N=!0),!E.global)break;D=E.exec(h.value)}return N?(S<h.value.length&&I.push({type:"text",value:h.value.slice(S)}),g.children.splice(T,1,...I)):I=[h],T+I.length}}function jO(e){const a=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<i.length;){const o=i[l];a.push([IO(o[0]),UO(o[1])])}return a}function IO(e){return typeof e=="string"?new RegExp(LO(e),"g"):e}function UO(e){return typeof e=="function"?e:function(){return e}}const Yd="phrasing",Qd=["autolink","link","image","label"];function BO(){return{transforms:[KO],enter:{literalAutolink:FO,literalAutolinkEmail:Vd,literalAutolinkHttp:Vd,literalAutolinkWww:Vd},exit:{literalAutolink:$O,literalAutolinkEmail:GO,literalAutolinkHttp:qO,literalAutolinkWww:PO}}}function HO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Yd,notInConstruct:Qd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Yd,notInConstruct:Qd},{character:":",before:"[ps]",after:"\\/",inConstruct:Yd,notInConstruct:Qd}]}}function FO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vd(e){this.config.enter.autolinkProtocol.call(this,e)}function qO(e){this.config.exit.autolinkProtocol.call(this,e)}function PO(e){this.config.exit.data.call(this,e);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(e)}function GO(e){this.config.exit.autolinkEmail.call(this,e)}function $O(e){this.exit(e)}function KO(e){zO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,YO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),QO]],{ignore:["link","linkReference"]})}function YO(e,a,i,l,o){let c="";if(!mE(o)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!VO(i)))return!1;const u=XO(i+l);if(!u[0])return!1;const d={type:"link",title:null,url:c+a+u[0],children:[{type:"text",value:a+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function QO(e,a,i,l){return!mE(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function VO(e){const a=e.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function XO(e){const a=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!a)return[e,void 0];e=e.slice(0,a.index);let i=a[0],l=i.indexOf(")");const o=ux(e,"(");let c=ux(e,")");for(;l!==-1&&o>c;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),c++;return[e,i]}function mE(e,a){const i=e.input.charCodeAt(e.index-1);return(e.index===0||zr(i)||gu(i))&&(!a||i!==47)}pE.peek=r2;function ZO(){this.buffer()}function WO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function JO(){this.buffer()}function e2(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t2(e){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ga(this.sliceSerialize(e)).toLowerCase(),i.label=a}function n2(e){this.exit(e)}function a2(e){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ga(this.sliceSerialize(e)).toLowerCase(),i.label=a}function i2(e){this.exit(e)}function r2(){return"["}function pE(e,a,i,l){const o=i.createTracker(l);let c=o.move("[^");const u=i.enter("footnoteReference"),d=i.enter("reference");return c+=o.move(i.safe(i.associationId(e),{after:"]",before:c})),d(),u(),c+=o.move("]"),c}function l2(){return{enter:{gfmFootnoteCallString:ZO,gfmFootnoteCall:WO,gfmFootnoteDefinitionLabelString:JO,gfmFootnoteDefinition:e2},exit:{gfmFootnoteCallString:t2,gfmFootnoteCall:n2,gfmFootnoteDefinitionLabelString:a2,gfmFootnoteDefinition:i2}}}function s2(e){let a=!1;return e&&e.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:pE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,c,u){const d=c.createTracker(u);let m=d.move("[^");const h=c.enter("footnoteDefinition"),b=c.enter("label");return m+=d.move(c.safe(c.associationId(l),{before:m,after:"]"})),b(),m+=d.move("]:"),l.children&&l.children.length>0&&(d.shift(4),m+=d.move((a?`
|
|
297
|
-
`:" ")+c.indentLines(c.containerFlow(l,d.current()),a?gE:o2))),h(),m}}function o2(e,a,i){return a===0?e:gE(e,a,i)}function gE(e,a,i){return(i?"":" ")+e}const c2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];bE.peek=m2;function u2(){return{canContainEols:["delete"],enter:{strikethrough:d2},exit:{strikethrough:h2}}}function f2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c2}],handlers:{delete:bE}}}function d2(e){this.enter({type:"delete",children:[]},e)}function h2(e){this.exit(e)}function bE(e,a,i,l){const o=i.createTracker(l),c=i.enter("strikethrough");let u=o.move("~~");return u+=i.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),c(),u}function m2(){return"~"}function p2(e){return e.length}function g2(e,a){const i=a||{},l=(i.align||[]).concat(),o=i.stringLength||p2,c=[],u=[],d=[],m=[];let h=0,b=-1;for(;++b<e.length;){const w=[],T=[];let N=-1;for(e[b].length>h&&(h=e[b].length);++N<e[b].length;){const I=b2(e[b][N]);if(i.alignDelimiters!==!1){const D=o(I);T[N]=D,(m[N]===void 0||D>m[N])&&(m[N]=D)}w.push(I)}u[b]=w,d[b]=T}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<h;)c[g]=fx(l[g]);else{const w=fx(l);for(;++g<h;)c[g]=w}g=-1;const E=[],x=[];for(;++g<h;){const w=c[g];let T="",N="";w===99?(T=":",N=":"):w===108?T=":":w===114&&(N=":");let I=i.alignDelimiters===!1?1:Math.max(1,m[g]-T.length-N.length);const D=T+"-".repeat(I)+N;i.alignDelimiters!==!1&&(I=T.length+I+N.length,I>m[g]&&(m[g]=I),x[g]=I),E[g]=D}u.splice(1,0,E),d.splice(1,0,x),b=-1;const S=[];for(;++b<u.length;){const w=u[b],T=d[b];g=-1;const N=[];for(;++g<h;){const I=w[g]||"";let D="",H="";if(i.alignDelimiters!==!1){const $=m[g]-(T[g]||0),z=c[g];z===114?D=" ".repeat($):z===99?$%2?(D=" ".repeat($/2+.5),H=" ".repeat($/2-.5)):(D=" ".repeat($/2),H=D):H=" ".repeat($)}i.delimiterStart!==!1&&!g&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&I==="")&&(i.delimiterStart!==!1||g)&&N.push(" "),i.alignDelimiters!==!1&&N.push(D),N.push(I),i.alignDelimiters!==!1&&N.push(H),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||g!==h-1)&&N.push("|")}S.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return S.join(`
|
|
298
|
-
`)}function b2(e){return e==null?"":String(e)}function fx(e){const a=typeof e=="string"?e.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function y2(e,a,i,l){const o=i.enter("blockquote"),c=i.createTracker(l);c.move("> "),c.shift(2);const u=i.indentLines(i.containerFlow(e,c.current()),x2);return o(),u}function x2(e,a,i){return">"+(i?"":" ")+e}function v2(e,a){return dx(e,a.inConstruct,!0)&&!dx(e,a.notInConstruct,!1)}function dx(e,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let l=-1;for(;++l<a.length;)if(e.includes(a[l]))return!0;return!1}function hx(e,a,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
|
|
299
|
-
`&&v2(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
|
|
300
|
-
`}function E2(e,a){const i=String(e);let l=i.indexOf(a),o=l,c=0,u=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++c>u&&(u=c):c=1,o=l+a.length,l=i.indexOf(a,o);return u}function _2(e,a){return!!(a.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function S2(e){const a=e.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function w2(e,a,i,l){const o=S2(i),c=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(_2(e,i)){const g=i.enter("codeIndented"),E=i.indentLines(c,N2);return g(),E}const d=i.createTracker(l),m=o.repeat(Math.max(E2(c,o)+1,3)),h=i.enter("codeFenced");let b=d.move(m);if(e.lang){const g=i.enter(`codeFencedLang${u}`);b+=d.move(i.safe(e.lang,{before:b,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${u}`);b+=d.move(" "),b+=d.move(i.safe(e.meta,{before:b,after:`
|
|
301
|
-
`,encode:["`"],...d.current()})),g()}return b+=d.move(`
|
|
302
|
-
`),c&&(b+=d.move(c+`
|
|
303
|
-
`)),b+=d.move(m),h(),b}function N2(e,a,i){return(i?"":" ")+e}function hm(e){const a=e.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function k2(e,a,i,l){const o=hm(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("definition");let d=i.enter("label");const m=i.createTracker(l);let h=m.move("[");return h+=m.move(i.safe(i.associationId(e),{before:h,after:"]",...m.current()})),h+=m.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(i.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(d=i.enter("destinationRaw"),h+=m.move(i.safe(e.url,{before:h,after:e.title?" ":`
|
|
304
|
-
`,...m.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=m.move(" "+o),h+=m.move(i.safe(e.title,{before:h,after:o,...m.current()})),h+=m.move(o),d()),u(),h}function T2(e){const a=e.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function so(e){return"&#x"+e.toString(16).toUpperCase()+";"}function su(e,a,i){const l=ql(e),o=ql(a);return l===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yE.peek=C2;function yE(e,a,i,l){const o=T2(i),c=i.enter("emphasis"),u=i.createTracker(l),d=u.move(o);let m=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=m.charCodeAt(0),b=su(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(m=so(h)+m.slice(1));const g=m.charCodeAt(m.length-1),E=su(l.after.charCodeAt(0),g,o);E.inside&&(m=m.slice(0,-1)+so(g));const x=u.move(o);return c(),i.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},d+m+x}function C2(e,a,i){return i.options.emphasis||"*"}function A2(e,a){let i=!1;return vu(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Sh}),!!((!e.depth||e.depth<3)&&im(e)&&(a.options.setext||i))}function R2(e,a,i,l){const o=Math.max(Math.min(6,e.depth||1),1),c=i.createTracker(l);if(A2(e,i)){const b=i.enter("headingSetext"),g=i.enter("phrasing"),E=i.containerPhrasing(e,{...c.current(),before:`
|
|
305
|
-
`,after:`
|
|
306
|
-
`});return g(),b(),E+`
|
|
307
|
-
`+(o===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
308
|
-
`))+1))}const u="#".repeat(o),d=i.enter("headingAtx"),m=i.enter("phrasing");c.move(u+" ");let h=i.containerPhrasing(e,{before:"# ",after:`
|
|
309
|
-
`,...c.current()});return/^[\t ]/.test(h)&&(h=so(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,i.options.closeAtx&&(h+=" "+u),m(),d(),h}xE.peek=O2;function xE(e){return e.value||""}function O2(){return"<"}vE.peek=M2;function vE(e,a,i,l){const o=hm(i),c=o==='"'?"Quote":"Apostrophe",u=i.enter("image");let d=i.enter("label");const m=i.createTracker(l);let h=m.move("![");return h+=m.move(i.safe(e.alt,{before:h,after:"]",...m.current()})),h+=m.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(i.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(d=i.enter("destinationRaw"),h+=m.move(i.safe(e.url,{before:h,after:e.title?" ":")",...m.current()}))),d(),e.title&&(d=i.enter(`title${c}`),h+=m.move(" "+o),h+=m.move(i.safe(e.title,{before:h,after:o,...m.current()})),h+=m.move(o),d()),h+=m.move(")"),u(),h}function M2(){return"!"}EE.peek=D2;function EE(e,a,i,l){const o=e.referenceType,c=i.enter("imageReference");let u=i.enter("label");const d=i.createTracker(l);let m=d.move("![");const h=i.safe(e.alt,{before:m,after:"]",...d.current()});m+=d.move(h+"]["),u();const b=i.stack;i.stack=[],u=i.enter("reference");const g=i.safe(i.associationId(e),{before:m,after:"]",...d.current()});return u(),i.stack=b,c(),o==="full"||!h||h!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function D2(){return"!"}_E.peek=L2;function _E(e,a,i){let l=e.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++c<i.unsafe.length;){const u=i.unsafe[c],d=i.compilePattern(u);let m;if(u.atBreak)for(;m=d.exec(l);){let h=m.index;l.charCodeAt(h)===10&&l.charCodeAt(h-1)===13&&h--,l=l.slice(0,h)+" "+l.slice(m.index+1)}}return o+l+o}function L2(){return"`"}function SE(e,a){const i=im(e);return!!(!a.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}wE.peek=z2;function wE(e,a,i,l){const o=hm(i),c=o==='"'?"Quote":"Apostrophe",u=i.createTracker(l);let d,m;if(SE(e,i)){const b=i.stack;i.stack=[],d=i.enter("autolink");let g=u.move("<");return g+=u.move(i.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),i.stack=b,g}d=i.enter("link"),m=i.enter("label");let h=u.move("[");return h+=u.move(i.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),m(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(m=i.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(i.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(m=i.enter("destinationRaw"),h+=u.move(i.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),m(),e.title&&(m=i.enter(`title${c}`),h+=u.move(" "+o),h+=u.move(i.safe(e.title,{before:h,after:o,...u.current()})),h+=u.move(o),m()),h+=u.move(")"),d(),h}function z2(e,a,i){return SE(e,i)?"<":"["}NE.peek=j2;function NE(e,a,i,l){const o=e.referenceType,c=i.enter("linkReference");let u=i.enter("label");const d=i.createTracker(l);let m=d.move("[");const h=i.containerPhrasing(e,{before:m,after:"]",...d.current()});m+=d.move(h+"]["),u();const b=i.stack;i.stack=[],u=i.enter("reference");const g=i.safe(i.associationId(e),{before:m,after:"]",...d.current()});return u(),i.stack=b,c(),o==="full"||!h||h!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function j2(){return"["}function mm(e){const a=e.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function I2(e){const a=mm(e),i=e.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function U2(e){const a=e.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function kE(e){const a=e.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function B2(e,a,i,l){const o=i.enter("list"),c=i.bulletCurrent;let u=e.ordered?U2(i):mm(i);const d=e.ordered?u==="."?")":".":I2(i);let m=a&&i.bulletLastUsed?u===i.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&b&&(!b.children||!b.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),kE(i)===u&&b){let g=-1;for(;++g<e.children.length;){const E=e.children[g];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(u=d),i.bulletCurrent=u;const h=i.containerFlow(e,l);return i.bulletLastUsed=u,i.bulletCurrent=c,o(),h}function H2(e){const a=e.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function F2(e,a,i,l){const o=H2(i);let c=i.bulletCurrent||mm(i);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(e))+c);let u=c.length+1;(o==="tab"||o==="mixed"&&(a&&a.type==="list"&&a.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=i.createTracker(l);d.move(c+" ".repeat(u-c.length)),d.shift(u);const m=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,d.current()),b);return m(),h;function b(g,E,x){return E?(x?"":" ".repeat(u))+g:(x?c:c+" ".repeat(u-c.length))+g}}function q2(e,a,i,l){const o=i.enter("paragraph"),c=i.enter("phrasing"),u=i.containerPhrasing(e,l);return c(),o(),u}const P2=xo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function G2(e,a,i,l){return(e.children.some(function(u){return P2(u)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function $2(e){const a=e.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}TE.peek=K2;function TE(e,a,i,l){const o=$2(i),c=i.enter("strong"),u=i.createTracker(l),d=u.move(o+o);let m=u.move(i.containerPhrasing(e,{after:o,before:d,...u.current()}));const h=m.charCodeAt(0),b=su(l.before.charCodeAt(l.before.length-1),h,o);b.inside&&(m=so(h)+m.slice(1));const g=m.charCodeAt(m.length-1),E=su(l.after.charCodeAt(0),g,o);E.inside&&(m=m.slice(0,-1)+so(g));const x=u.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},d+m+x}function K2(e,a,i){return i.options.strong||"*"}function Y2(e,a,i,l){return i.safe(e.value,l)}function Q2(e){const a=e.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function V2(e,a,i){const l=(kE(i)+(i.options.ruleSpaces?" ":"")).repeat(Q2(i));return i.options.ruleSpaces?l.slice(0,-1):l}const CE={blockquote:y2,break:hx,code:w2,definition:k2,emphasis:yE,hardBreak:hx,heading:R2,html:xE,image:vE,imageReference:EE,inlineCode:_E,link:wE,linkReference:NE,list:B2,listItem:F2,paragraph:q2,root:G2,strong:TE,text:Y2,thematicBreak:V2};function X2(){return{enter:{table:Z2,tableData:mx,tableHeader:mx,tableRow:J2},exit:{codeText:eM,table:W2,tableData:Xd,tableHeader:Xd,tableRow:Xd}}}function Z2(e){const a=e._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function W2(e){this.exit(e),this.data.inTable=void 0}function J2(e){this.enter({type:"tableRow",children:[]},e)}function Xd(e){this.exit(e)}function mx(e){this.enter({type:"tableCell",children:[]},e)}function eM(e){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,tM));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(e)}function tM(e,a){return a==="|"?a:e}function nM(e){const a=e||{},i=a.tableCellPadding,l=a.tablePipeAlign,o=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
310
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:u,tableCell:m,tableRow:d}};function u(x,S,w,T){return h(b(x,w,T),x.align)}function d(x,S,w,T){const N=g(x,w,T),I=h([N]);return I.slice(0,I.indexOf(`
|
|
311
|
-
`))}function m(x,S,w,T){const N=w.enter("tableCell"),I=w.enter("phrasing"),D=w.containerPhrasing(x,{...T,before:c,after:c});return I(),N(),D}function h(x,S){return g2(x,{align:S,alignDelimiters:l,padding:i,stringLength:o})}function b(x,S,w){const T=x.children;let N=-1;const I=[],D=S.enter("table");for(;++N<T.length;)I[N]=g(T[N],S,w);return D(),I}function g(x,S,w){const T=x.children;let N=-1;const I=[],D=S.enter("tableRow");for(;++N<T.length;)I[N]=m(T[N],x,S,w);return D(),I}function E(x,S,w){let T=CE.inlineCode(x,S,w);return w.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function aM(){return{exit:{taskListCheckValueChecked:px,taskListCheckValueUnchecked:px,paragraph:rM}}}function iM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lM}}}function px(e){const a=this.stack[this.stack.length-2];a.type,a.checked=e.type==="taskListCheckValueChecked"}function rM(e){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const l=i.children[0];if(l&&l.type==="text"){const o=a.children;let c=-1,u;for(;++c<o.length;){const d=o[c];if(d.type==="paragraph"){u=d;break}}u===i&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function lM(e,a,i,l){const o=e.children[0],c=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=i.createTracker(l);c&&d.move(u);let m=CE.listItem(e,a,i,{...l,...d.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(b){return b+u}}function sM(){return[BO(),l2(),u2(),X2(),aM()]}function oM(e){return{extensions:[HO(),s2(e),f2(),nM(e),iM()]}}const cM={tokenize:pM,partial:!0},AE={tokenize:gM,partial:!0},RE={tokenize:bM,partial:!0},OE={tokenize:yM,partial:!0},uM={tokenize:xM,partial:!0},ME={name:"wwwAutolink",tokenize:hM,previous:LE},DE={name:"protocolAutolink",tokenize:mM,previous:zE},ci={name:"emailAutolink",tokenize:dM,previous:jE},Ma={};function fM(){return{text:Ma}}let Sr=48;for(;Sr<123;)Ma[Sr]=ci,Sr++,Sr===58?Sr=65:Sr===91&&(Sr=97);Ma[43]=ci;Ma[45]=ci;Ma[46]=ci;Ma[95]=ci;Ma[72]=[ci,DE];Ma[104]=[ci,DE];Ma[87]=[ci,ME];Ma[119]=[ci,ME];function dM(e,a,i){const l=this;let o,c;return u;function u(g){return!Th(g)||!jE.call(l,l.previous)||pm(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return Th(g)?(e.consume(g),d):g===64?(e.consume(g),m):i(g)}function m(g){return g===46?e.check(uM,b,h)(g):g===45||g===95||on(g)?(c=!0,e.consume(g),m):b(g)}function h(g){return e.consume(g),o=!0,m}function b(g){return c&&o&&yn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),a(g)):i(g)}}function hM(e,a,i){const l=this;return o;function o(u){return u!==87&&u!==119||!LE.call(l,l.previous)||pm(l.events)?i(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cM,e.attempt(AE,e.attempt(RE,c),i),i)(u))}function c(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),a(u)}}function mM(e,a,i){const l=this;let o="",c=!1;return u;function u(g){return(g===72||g===104)&&zE.call(l,l.previous)&&!pm(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),d):i(g)}function d(g){if(yn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const E=o.toLowerCase();if(E==="http"||E==="https")return e.consume(g),m}return i(g)}function m(g){return g===47?(e.consume(g),c?h:(c=!0,m)):i(g)}function h(g){return g===null||iu(g)||bt(g)||zr(g)||gu(g)?i(g):e.attempt(AE,e.attempt(RE,b),i)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),a(g)}}function pM(e,a,i){let l=0;return o;function o(u){return(u===87||u===119)&&l<3?(l++,e.consume(u),o):u===46&&l===3?(e.consume(u),c):i(u)}function c(u){return u===null?i(u):a(u)}}function gM(e,a,i){let l,o,c;return u;function u(h){return h===46||h===95?e.check(OE,m,d)(h):h===null||bt(h)||zr(h)||h!==45&&gu(h)?m(h):(c=!0,e.consume(h),u)}function d(h){return h===95?l=!0:(o=l,l=void 0),e.consume(h),u}function m(h){return o||l||!c?i(h):a(h)}}function bM(e,a){let i=0,l=0;return o;function o(u){return u===40?(i++,e.consume(u),o):u===41&&l<i?c(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(OE,a,c)(u):u===null||bt(u)||zr(u)?a(u):(e.consume(u),o)}function c(u){return u===41&&l++,e.consume(u),o}}function yM(e,a,i){return l;function l(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),l):d===38?(e.consume(d),c):d===93?(e.consume(d),o):d===60||d===null||bt(d)||zr(d)?a(d):i(d)}function o(d){return d===null||d===40||d===91||bt(d)||zr(d)?a(d):l(d)}function c(d){return yn(d)?u(d):i(d)}function u(d){return d===59?(e.consume(d),l):yn(d)?(e.consume(d),u):i(d)}}function xM(e,a,i){return l;function l(c){return e.consume(c),o}function o(c){return on(c)?i(c):a(c)}}function LE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||bt(e)}function zE(e){return!yn(e)}function jE(e){return!(e===47||Th(e))}function Th(e){return e===43||e===45||e===46||e===95||on(e)}function pm(e){let a=e.length,i=!1;for(;a--;){const l=e[a][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const vM={tokenize:CM,partial:!0};function EM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:NM,continuation:{tokenize:kM},exit:TM}},text:{91:{name:"gfmFootnoteCall",tokenize:wM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_M,resolveTo:SM}}}}function _M(e,a,i){const l=this;let o=l.events.length;const c=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u;for(;o--;){const m=l.events[o][1];if(m.type==="labelImage"){u=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!u||!u._balanced)return i(m);const h=ga(l.sliceSerialize({start:u.end,end:l.now()}));return h.codePointAt(0)!==94||!c.includes(h.slice(1))?i(m):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),a(m))}}function SM(e,a){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[e[i+1],e[i+2],["enter",l,a],e[i+3],e[i+4],["enter",o,a],["exit",o,a],["enter",c,a],["enter",u,a],["exit",u,a],["exit",c,a],e[e.length-2],e[e.length-1],["exit",l,a]];return e.splice(i,e.length-i+1,...d),e}function wM(e,a,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(c>999||g===93&&!u||g===null||g===91||bt(g))return i(g);if(g===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return o.includes(ga(l.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),a):i(g)}return bt(g)||(u=!0),c++,e.consume(g),g===92?b:h}function b(g){return g===91||g===92||g===93?(e.consume(g),c++,h):h(g)}}function NM(e,a,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c,u=0,d;return m;function m(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):i(S)}function b(S){if(u>999||S===93&&!d||S===null||S===91||bt(S))return i(S);if(S===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return c=ga(l.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return bt(S)||(d=!0),u++,e.consume(S),S===92?g:b}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,b):b(S)}function E(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),o.includes(c)||o.push(c),We(e,x,"gfmFootnoteDefinitionWhitespace")):i(S)}function x(S){return a(S)}}function kM(e,a,i){return e.check(yo,a,e.attempt(vM,a,i))}function TM(e){e.exit("gfmFootnoteDefinition")}function CM(e,a,i){const l=this;return We(e,o,"gfmFootnoteDefinitionIndent",5);function o(c){const u=l.events[l.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?a(c):i(c)}}function AM(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:c,resolveAll:o};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(u,d){let m=-1;for(;++m<u.length;)if(u[m][0]==="enter"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._close){let h=m;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[m][1].end.offset-u[m][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[m][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[m][1].end)},g={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[m][1].start)},E=[["enter",b,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Kn(E,E.length,0,bu(x,u.slice(h+1,m),d)),Kn(E,E.length,0,[["exit",g,d],["enter",u[m][1],d],["exit",u[m][1],d],["exit",b,d]]),Kn(u,h-1,m-h+3,E),m=h+E.length-2;break}}for(m=-1;++m<u.length;)u[m][1].type==="strikethroughSequenceTemporary"&&(u[m][1].type="data");return u}function c(u,d,m){const h=this.previous,b=this.events;let g=0;return E;function E(S){return h===126&&b[b.length-1][1].type!=="characterEscape"?m(S):(u.enter("strikethroughSequenceTemporary"),x(S))}function x(S){const w=ql(h);if(S===126)return g>1?m(S):(u.consume(S),g++,x);if(g<2&&!i)return m(S);const T=u.exit("strikethroughSequenceTemporary"),N=ql(S);return T._open=!N||N===2&&!!w,T._close=!w||w===2&&!!N,d(S)}}}class RM{constructor(){this.map=[]}add(a,i,l){OM(this,a,i,l)}consume(a){if(this.map.sort(function(c,u){return c[0]-u[0]}),this.map.length===0)return;let i=this.map.length;const l=[];for(;i>0;)i-=1,l.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];l.push(a.slice()),a.length=0;let o=l.pop();for(;o;){for(const c of o)a.push(c);o=l.pop()}this.map.length=0}}function OM(e,a,i,l){let o=0;if(!(i===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===a){e.map[o][1]+=i,e.map[o][2].push(...l);return}o+=1}e.map.push([a,i,l])}}function MM(e,a){let i=!1;const l=[];for(;a<e.length;){const o=e[a];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[a-1][1].type==="tableDelimiterMarker"){const c=l.length-1;l[c]=l[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return l}function DM(){return{flow:{null:{name:"table",tokenize:LM,resolveAll:zM}}}}function LM(e,a,i){const l=this;let o=0,c=0,u;return d;function d(A){let ae=l.events.length-1;for(;ae>-1;){const le=l.events[ae][1].type;if(le==="lineEnding"||le==="linePrefix")ae--;else break}const ie=ae>-1?l.events[ae][1].type:null,ge=ie==="tableHead"||ie==="tableRow"?z:m;return ge===z&&l.parser.lazy[l.now().line]?i(A):ge(A)}function m(A){return e.enter("tableHead"),e.enter("tableRow"),h(A)}function h(A){return A===124||(u=!0,c+=1),b(A)}function b(A){return A===null?i(A):Te(A)?c>1?(c=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),x):i(A):$e(A)?We(e,b,"whitespace")(A):(c+=1,u&&(u=!1,o+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),u=!0,b):(e.enter("data"),g(A)))}function g(A){return A===null||A===124||bt(A)?(e.exit("data"),b(A)):(e.consume(A),A===92?E:g)}function E(A){return A===92||A===124?(e.consume(A),g):g(A)}function x(A){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(A):(e.enter("tableDelimiterRow"),u=!1,$e(A)?We(e,S,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):S(A))}function S(A){return A===45||A===58?T(A):A===124?(u=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),w):$(A)}function w(A){return $e(A)?We(e,T,"whitespace")(A):T(A)}function T(A){return A===58?(c+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),N):A===45?(c+=1,N(A)):A===null||Te(A)?H(A):$(A)}function N(A){return A===45?(e.enter("tableDelimiterFiller"),I(A)):$(A)}function I(A){return A===45?(e.consume(A),I):A===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(A))}function D(A){return $e(A)?We(e,H,"whitespace")(A):H(A)}function H(A){return A===124?S(A):A===null||Te(A)?!u||o!==c?$(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),a(A)):$(A)}function $(A){return i(A)}function z(A){return e.enter("tableRow"),G(A)}function G(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),G):A===null||Te(A)?(e.exit("tableRow"),a(A)):$e(A)?We(e,G,"whitespace")(A):(e.enter("data"),X(A))}function X(A){return A===null||A===124||bt(A)?(e.exit("data"),G(A)):(e.consume(A),A===92?V:X)}function V(A){return A===92||A===124?(e.consume(A),X):X(A)}}function zM(e,a){let i=-1,l=!0,o=0,c=[0,0,0,0],u=[0,0,0,0],d=!1,m=0,h,b,g;const E=new RM;for(;++i<e.length;){const x=e[i],S=x[1];x[0]==="enter"?S.type==="tableHead"?(d=!1,m!==0&&(gx(E,a,m,h,b),b=void 0,m=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},E.add(i,0,[["enter",h,a]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(l=!0,g=void 0,c=[0,0,0,0],u=[0,i+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},E.add(i,0,[["enter",b,a]])),o=S.type==="tableDelimiterRow"?2:b?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],g=Gc(E,a,c,o,void 0,g),c=[0,0,0,0]),u[2]=i)):S.type==="tableCellDivider"&&(l?l=!1:(c[1]!==0&&(u[0]=u[1],g=Gc(E,a,c,o,void 0,g)),c=u,u=[c[1],i,0,0])):S.type==="tableHead"?(d=!0,m=i):S.type==="tableRow"||S.type==="tableDelimiterRow"?(m=i,c[1]!==0?(u[0]=u[1],g=Gc(E,a,c,o,i,g)):u[1]!==0&&(g=Gc(E,a,u,o,i,g)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=i)}for(m!==0&&gx(E,a,m,h,b),E.consume(a.events),i=-1;++i<a.events.length;){const x=a.events[i];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=MM(a.events,i))}return e}function Gc(e,a,i,l,o,c){const u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},kl(a.events,i[0])),e.add(i[0],0,[["exit",c,a]]));const m=kl(a.events,i[1]);if(c={type:u,start:Object.assign({},m),end:Object.assign({},m)},e.add(i[1],0,[["enter",c,a]]),i[2]!==0){const h=kl(a.events,i[2]),b=kl(a.events,i[3]),g={type:d,start:Object.assign({},h),end:Object.assign({},b)};if(e.add(i[2],0,[["enter",g,a]]),l!==2){const E=a.events[i[2]],x=a.events[i[3]];if(E[1].end=Object.assign({},x[1].end),E[1].type="chunkText",E[1].contentType="text",i[3]>i[2]+1){const S=i[2]+1,w=i[3]-i[2]-1;e.add(S,w,[])}}e.add(i[3]+1,0,[["exit",g,a]])}return o!==void 0&&(c.end=Object.assign({},kl(a.events,o)),e.add(o,0,[["exit",c,a]]),c=void 0),c}function gx(e,a,i,l,o){const c=[],u=kl(a.events,i);o&&(o.end=Object.assign({},u),c.push(["exit",o,a])),l.end=Object.assign({},u),c.push(["exit",l,a]),e.add(i+1,0,c)}function kl(e,a){const i=e[a],l=i[0]==="enter"?"start":"end";return i[1][l]}const jM={name:"tasklistCheck",tokenize:UM};function IM(){return{text:{91:jM}}}function UM(e,a,i){const l=this;return o;function o(m){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(m):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),c)}function c(m){return bt(m)?(e.enter("taskListCheckValueUnchecked"),e.consume(m),e.exit("taskListCheckValueUnchecked"),u):m===88||m===120?(e.enter("taskListCheckValueChecked"),e.consume(m),e.exit("taskListCheckValueChecked"),u):i(m)}function u(m){return m===93?(e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(m)}function d(m){return Te(m)?a(m):$e(m)?e.check({tokenize:BM},a,i)(m):i(m)}}function BM(e,a,i){return We(e,l,"whitespace");function l(o){return o===null?i(o):a(o)}}function HM(e){return Yv([fM(),EM(),AM(e),DM(),IM()])}const FM={};function gm(e){const a=this,i=e||FM,l=a.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),c=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(HM(i)),c.push(sM()),u.push(oM(i))}const bx=(function(e,a,i){const l=xo(i);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=e.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<e.children.length;)if(l(e.children[a],a,e))return e.children[a]}),Ur=(function(e){if(e==null)return GM;if(typeof e=="string")return PM(e);if(typeof e=="object")return qM(e);if(typeof e=="function")return bm(e);throw new Error("Expected function, string, or array as `test`")});function qM(e){const a=[];let i=-1;for(;++i<e.length;)a[i]=Ur(e[i]);return bm(l);function l(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function PM(e){return bm(a);function a(i){return i.tagName===e}}function bm(e){return a;function a(i,l,o){return!!($M(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function GM(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function $M(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const yx=/\n/g,xx=/[\t ]+/g,Ch=Ur("br"),vx=Ur(JM),KM=Ur("p"),Ex=Ur("tr"),YM=Ur(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",WM,eD]),IE=Ur(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function QM(e,a){const i=a||{},l="children"in e?e.children:[],o=IE(e),c=HE(e,{whitespace:i.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...BE(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<l.length;)u.push(...UE(l[d],e,{whitespace:c,breakBefore:d?void 0:o,breakAfter:d<l.length-1?Ch(l[d+1]):o}));const m=[];let h;for(d=-1;++d<u.length;){const b=u[d];typeof b=="number"?h!==void 0&&b>h&&(h=b):b&&(h!==void 0&&h>-1&&m.push(`
|
|
312
|
-
`.repeat(h)||" "),h=-1,m.push(b))}return m.join("")}function UE(e,a,i){return e.type==="element"?VM(e,a,i):e.type==="text"?i.whitespace==="normal"?BE(e,i):XM(e):[]}function VM(e,a,i){const l=HE(e,i),o=e.children||[];let c=-1,u=[];if(YM(e))return u;let d,m;for(Ch(e)||Ex(e)&&bx(a,e,Ex)?m=`
|
|
313
|
-
`:KM(e)?(d=2,m=2):IE(e)&&(d=1,m=1);++c<o.length;)u=u.concat(UE(o[c],e,{whitespace:l,breakBefore:c?void 0:d,breakAfter:c<o.length-1?Ch(o[c+1]):m}));return vx(e)&&bx(a,e,vx)&&u.push(" "),d&&u.unshift(d),m&&u.push(m),u}function BE(e,a){const i=String(e.value),l=[],o=[];let c=0;for(;c<=i.length;){yx.lastIndex=c;const m=yx.exec(i),h=m&&"index"in m?m.index:i.length;l.push(ZM(i.slice(c,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),c===0?a.breakBefore:!0,h===i.length?a.breakAfter:!0)),c=h+1}let u=-1,d;for(;++u<l.length;)l[u].charCodeAt(l[u].length-1)===8203||u<l.length-1&&l[u+1].charCodeAt(0)===8203?(o.push(l[u]),d=void 0):l[u]?(typeof d=="number"&&o.push(d),o.push(l[u]),d=0):(u===0||u===l.length-1)&&o.push(0);return o}function XM(e){return[String(e.value)]}function ZM(e,a,i){const l=[];let o=0,c;for(;o<e.length;){xx.lastIndex=o;const u=xx.exec(e);c=u?u.index:e.length,!o&&!c&&u&&!a&&l.push(""),o!==c&&l.push(e.slice(o,c)),o=u?c+u[0].length:c}return o!==c&&!i&&l.push(""),l.join(" ")}function HE(e,a){if(e.type==="element"){const i=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return i.wrap?"pre-wrap":"pre";case"td":case"th":return i.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function WM(e){return!!(e.properties||{}).hidden}function JM(e){return e.tagName==="td"||e.tagName==="th"}function eD(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function tD(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],H={type:w,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},$={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},z=[$,g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:z.concat([{begin:/\(/,end:/\)/,keywords:H,contains:z.concat(["self"]),relevance:0}]),relevance:0},X={className:"function",begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:H,relevance:0},{begin:x,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:H,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,X,$,z,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:H,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:H},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function nD(e){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=tD(e),l=i.keywords;return l.type=[...l.type,...a.type],l.literal=[...l.literal,...a.literal],l.built_in=[...l.built_in,...a.built_in],l._hints=a._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}function aD(e){const a=e.regex,i={},l={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},l]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,o]};o.contains.push(d);const m={match:/\\"/},h={className:"string",begin:/'/,end:/'/},b={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],x=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],T=["true","false"],N={match:/(\/[a-z._-]+)+/},I=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],$=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:T,built_in:[...I,...D,"set","shopt",...H,...$]},contains:[x,e.SHEBANG(),S,g,c,u,N,d,m,h,b,i]}}function iD(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",T={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},N=[g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:N.concat([{begin:/\(/,end:/\)/,keywords:T,contains:N.concat(["self"]),relevance:0}]),relevance:0},D={begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:T,relevance:0},{begin:x,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"</",contains:[].concat(I,D,N,[g,{begin:e.IDENT_RE+"::",keywords:T},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:h,keywords:T}}}function rD(e){const a=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="(?!struct)("+l+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:a.optional(o)+e.IDENT_RE,relevance:0},x=a.optional(o)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],w=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],N=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],H={type:w,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},$={className:"function.dispatch",relevance:0,keywords:{_hint:N},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},z=[$,g,d,i,e.C_BLOCK_COMMENT_MODE,b,h],G={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:z.concat([{begin:/\(/,end:/\)/,keywords:H,contains:z.concat(["self"]),relevance:0}]),relevance:0},X={className:"function",begin:"("+u+"[\\*&\\s]+)+"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:H,relevance:0},{begin:x,returnBegin:!0,contains:[E],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,h,b,d,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,h,b,d]}]},d,i,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:H,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(G,X,$,z,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:H,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:H},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function lD(e){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],l=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:o.concat(c),built_in:a,literal:l},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(b,{illegal:/\n/}),E={className:"subst",begin:/\{/,end:/\}/,keywords:u},x=e.inherit(E,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,x]},w={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},E]},T=e.inherit(w,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]});E.contains=[w,S,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.C_BLOCK_COMMENT_MODE],x.contains=[T,S,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const N={variants:[h,w,S,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},I={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},D=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",H={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},N,m,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+D+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,I],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[N,m,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},H]}}const sD=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),oD=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],cD=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],uD=[...oD,...cD],fD=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),dD=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),hD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),mD=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function pD(e){const a=e.regex,i=sD(e),l={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,l,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+dD.join("|")+")"},{begin:":(:)?("+hD.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+mD.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:fD.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+uD.join("|")+")\\b"}]}}function gD(e){const a=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function bD(e){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}function yD(e){const a=e.regex,i=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(i,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function xD(e){const a=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},l=e.COMMENT();l.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[l,c,o,u,i,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,b=/'[^']*'/,g=a.either(m,h,b),E=a.concat(g,"(\\s*\\.\\s*",g,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:E,className:"attr",starts:{end:/$/,contains:[l,d,c,o,u,i]}}]}}var Tl="[0-9](_*[0-9])*",$c=`\\.(${Tl})`,Kc="[0-9a-fA-F](_*[0-9a-fA-F])*",_x={className:"number",variants:[{begin:`(\\b(${Tl})((${$c})|\\.)?|(${$c}))[eE][+-]?(${Tl})[fFdD]?\\b`},{begin:`\\b(${Tl})((${$c})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${$c})[fFdD]?\\b`},{begin:`\\b(${Tl})[fFdD]\\b`},{begin:`\\b0[xX]((${Kc})\\.?|(${Kc})?\\.(${Kc}))[pP][+-]?(${Tl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Kc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function FE(e,a,i){return i===-1?"":e.replace(a,l=>FE(e,a,i-1))}function vD(e){const a=e.regex,i="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=i+FE("(?:<"+i+"~~~(?:\\s*,\\s*"+i+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+i,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,i),/\s+/,i,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,i],className:{1:"keyword",3:"title.class"},contains:[b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+l+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_x,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},_x,h]}}const Sx="[A-Za-z$_][0-9A-Za-z$_]*",ED=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],_D=["true","false","null","undefined","NaN","Infinity"],qE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],PE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],GE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],SD=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],wD=[].concat(GE,qE,PE);function ND(e){const a=e.regex,i=(oe,{after:_e})=>{const C="</"+oe[0].slice(1);return oe.input.indexOf(C,_e)!==-1},l=Sx,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,_e)=>{const C=oe[0].length+oe.index,O=oe.input[C];if(O==="<"||O===","){_e.ignoreMatch();return}O===">"&&(i(oe,{after:C})||_e.ignoreMatch());let Q;const k=oe.input.substring(C);if(Q=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Q=k.match(/^\s+extends\s+/))&&Q.index===0){_e.ignoreMatch();return}}},d={$pattern:Sx,keyword:ED,literal:_D,built_in:wD,"variable.language":SD},m="[0-9](_?[0-9])*",h=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,{match:/\$\d+/},g];E.contains=D.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(D)});const H=[].concat(I,E.contains),$=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(H)}]),z={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:$},G={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,a.concat(l,"(",a.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qE,...PE]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(oe){return a.concat("(?!",oe.join("|"),")")}const ge={match:a.concat(/\b/,ie([...GE,"super","import"].map(oe=>`${oe}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},F="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(F)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,I,{match:/\$\d+/},g,X,{scope:"attr",match:l+a.lookahead(":"),relevance:0},re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:F,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},ge,ae,G,te,{match:/\$[(.]/}]}}function kD(e){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},l=["true","false","null"],o={scope:"literal",beginKeywords:l.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:l},contains:[a,i,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Cl="[0-9](_*[0-9])*",Yc=`\\.(${Cl})`,Qc="[0-9a-fA-F](_*[0-9a-fA-F])*",TD={className:"number",variants:[{begin:`(\\b(${Cl})((${Yc})|\\.)?|(${Yc}))[eE][+-]?(${Cl})[fFdD]?\\b`},{begin:`\\b(${Cl})((${Yc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Yc})[fFdD]?\\b`},{begin:`\\b(${Cl})[fFdD]\\b`},{begin:`\\b0[xX]((${Qc})\\.?|(${Qc})?\\.(${Qc}))[pP][+-]?(${Cl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Qc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function CD(e){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},i={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,c,o]}]};o.contains.push(u);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},m={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},h=TD,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=g;return E.variants[1].contains=[g],g.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,i,l,d,m,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,e.C_LINE_COMMENT_MODE,b],relevance:0},e.C_LINE_COMMENT_MODE,b,d,m,u,e.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,m]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
314
|
-
`},h]}}const AD=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),RD=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],OD=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],MD=[...RD,...OD],DD=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),$E=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),KE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),LD=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),zD=$E.concat(KE).sort().reverse();function jD(e){const a=AD(e),i=zD,l="and or not only",o="[\\w-]+",c="("+o+"|@\\{"+o+"\\})",u=[],d=[],m=function(D){return{className:"string",begin:"~?"+D+".*?"+D}},h=function(D,H,$){return{className:D,begin:H,relevance:$}},b={$pattern:/[a-z-]+/,keyword:l,attribute:DD.join(" ")},g={begin:"\\(",end:"\\)",contains:d,keywords:b,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,g,h("variable","@@?"+o,10),h("variable","@\\{"+o+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const E=d.concat({begin:/\{/,end:/\}/,contains:u}),x={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},S={begin:c+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+LD.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},w={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:d,relevance:0}},T={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:E}},N={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:c,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,h("keyword","all\\b"),h("variable","@\\{"+o+"\\}"),{begin:"\\b("+MD.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,h("selector-tag",c,0),h("selector-id","#"+c),h("selector-class","\\."+c,0),h("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+$E.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+KE.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:E},{begin:"!important"},a.FUNCTION_DISPATCH]},I={begin:o+`:(:)?(${i.join("|")})`,returnBegin:!0,contains:[N]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,w,T,I,S,N,x,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function ID(e){const a="\\[=*\\[",i="\\]=*\\]",l={begin:a,end:i,contains:["self"]},o=[e.COMMENT("--(?!"+a+")","$"),e.COMMENT("--"+a,i,{contains:[l],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:a,end:i,contains:[l],relevance:5}])}}function UD(e){const a={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]},l={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,i]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},c={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,a,i,l,o,c,u]}}function BD(e){const a=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},l={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=e.inherit(h,{contains:[]}),E=e.inherit(b,{contains:[]});h.contains.push(E),b.contains.push(g);let x=[i,m];return[h,b,g,E].forEach(N=>{N.contains=N.contains.concat(x)}),x=x.concat(h,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:x},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:x}]}]},i,c,h,b,{className:"quote",begin:"^>\\s+",contains:x,end:"$"},o,l,m,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function HD(e){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:i,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"</",contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function FD(e){const a=e.regex,i=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],l=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:i.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},u={begin:/->\{/,end:/\}/},d={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[d]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[e.BACKSLASH_ESCAPE,c,m],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(w,T,N="\\1")=>{const I=N==="\\1"?N:a.concat(N,T);return a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,I,/(?:\\.|[^\\\/])*?/,N,l)},x=(w,T,N)=>a.concat(a.concat("(?:",w,")"),T,/(?:\\.|[^\\\/])*?/,N,l),S=[m,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",a.either(...g,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:x("(?:m|qr)?",/\//,/\//)},{begin:x("m|qr",a.either(...g,{capture:!0}),/\1/)},{begin:x("m|qr",/\(/,/\)/)},{begin:x("m|qr",/\[/,/\]/)},{begin:x("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,d,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=S,u.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:S}}function qD(e){const a=e.regex,i=/(?![A-Za-z0-9])(?![$])/,l=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),o=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),c=a.concat(/[A-Z]+/,i),u={scope:"variable",match:"\\$+"+l},d={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),b=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(m)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(le,te)=>{te.data._beginMatch=le[1]||le[2]},"on:end":(le,te)=>{te.data._beginMatch!==le[1]&&te.ignoreMatch()}},E=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),x=`[
|
|
315
|
-
]`,S={scope:"string",variants:[b,h,g,E]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},T=["false","null","true"],N=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],I=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],H={keyword:N,literal:(le=>{const te=[];return le.forEach(F=>{te.push(F),F.toLowerCase()===F?te.push(F.toUpperCase()):te.push(F.toLowerCase())}),te})(T),built_in:I},$=le=>le.map(te=>te.replace(/\|\d+$/,"")),z={variants:[{match:[/new/,a.concat(x,"+"),a.concat("(?!",$(I).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},G=a.concat(l,"\\b(?!\\()"),X={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),G],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,a.concat(/::/,a.lookahead(/(?!class\b)/)),G],scope:{1:"title.class",3:"variable.constant"}},{match:[o,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},V={scope:"attr",match:a.concat(l,a.lookahead(":"),a.lookahead(/(?!::)/))},A={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[V,u,X,e.C_BLOCK_COMMENT_MODE,S,w,z]},ae={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",$(N).join("\\b|"),"|",$(I).join("\\b|"),"\\b)"),l,a.concat(x,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[A]};A.contains.push(ae);const ie=[V,X,e.C_BLOCK_COMMENT_MODE,S,w,z],ge={begin:a.concat(/#\[\s*\\?/,a.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:T,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:T,keyword:["new","array"]},contains:["self",...ie]},...ie,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:H,contains:[ge,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},d,{scope:"variable.language",match:/\$this\b/},u,ae,X,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},z,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:H,contains:["self",ge,u,X,e.C_BLOCK_COMMENT_MODE,S,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},S,w]}}function PD(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function GD(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function $D(e){const a=e.regex,i=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),l=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:l,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},b={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m,b,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,b,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",x=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,S=`\\b|${l.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${x}))[eE][+-]?(${E})[jJ]?(?=${S})`},{begin:`(${x})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${E})[jJ](?=${S})`}]},T={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},N={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",m,w,g,e.HASH_COMMENT_MODE]}]};return h.contains=[g,w,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[m,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[N]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[w,N,g]}]}}function KD(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function YD(e){const a=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,l=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:i},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,l]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,l]},{scope:{1:"punctuation",2:"number"},match:[c,l]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,l]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function QD(e){const a=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",l=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=a.concat(l,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[d]}),e.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:u},g={className:"string",contains:[e.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,b]})]}]},E="[1-9](_?[0-9])*|0",x="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${E})(\\.(${x}))?([eE][+-]?(${x})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},z=[g,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:u},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:l,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[w]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:i}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,h),relevance:0}].concat(m,h);b.contains=z,w.contains=z;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:z}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:z}}];return h.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(h).concat(z)}}function VD(e){const a=e.regex,i=/(r#)?/,l=a.concat(i,e.UNDERSCORE_IDENT_RE),o=a.concat(i,e.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,a.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",d=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:b,keyword:d,literal:m,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,l],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,l],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,l,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:b}},{className:"punctuation",begin:"->"},c]}}const XD=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ZD=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],WD=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],JD=[...ZD,...WD],eL=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tL=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),nL=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),aL=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function iL(e){const a=XD(e),i=nL,l=tL,o="@[a-z-]+",c="and or not only",d={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+JD.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+aL.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,d,a.HEXCOLOR,a.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:c,attribute:eL.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function rL(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function lL(e){const a=e.regex,i=e.COMMENT("--","$"),l={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],x=b,S=[...h,...m].filter($=>!b.includes($)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},N={match:a.concat(/\b/,a.either(...x),/\s*\(/),relevance:0,keywords:{built_in:x}};function I($){return a.concat(/\b/,a.either(...$.map(z=>z.replace(/\s+/,"\\s+"))),/\b/)}const D={scope:"keyword",match:I(E),relevance:0};function H($,{exceptions:z,when:G}={}){const X=G;return z=z||[],$.map(V=>V.match(/\|\d+$/)||z.includes(V)?V:X(V)?`${V}|0`:V)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(S,{when:$=>$.length<3}),literal:c,type:d,built_in:g},contains:[{scope:"type",match:I(u)},D,N,w,l,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,T]}}function YE(e){return e?typeof e=="string"?e:e.source:null}function Ws(e){return mt("(?=",e,")")}function mt(...e){return e.map(i=>YE(i)).join("")}function sL(e){const a=e[e.length-1];return typeof a=="object"&&a.constructor===Object?(e.splice(e.length-1,1),a):{}}function gn(...e){return"("+(sL(e).capture?"":"?:")+e.map(l=>YE(l)).join("|")+")"}const ym=e=>mt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),oL=["Protocol","Type"].map(ym),wx=["init","self"].map(ym),cL=["Any","Self"],Zd=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Nx=["false","nil","true"],uL=["assignment","associativity","higherThan","left","lowerThan","none","right"],fL=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],kx=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],QE=gn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),VE=gn(QE,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Wd=mt(QE,VE,"*"),XE=gn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),ou=gn(XE,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ta=mt(XE,ou,"*"),Vc=mt(/[A-Z]/,ou,"*"),dL=["attached","autoclosure",mt(/convention\(/,gn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",mt(/objc\(/,Ta,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],hL=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function mL(e){const a={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),l=[e.C_LINE_COMMENT_MODE,i],o={match:[/\./,gn(...oL,...wx)],className:{2:"keyword"}},c={match:mt(/\./,gn(...Zd)),relevance:0},u=Zd.filter(Ve=>typeof Ve=="string").concat(["_|0"]),d=Zd.filter(Ve=>typeof Ve!="string").concat(cL).map(ym),m={variants:[{className:"keyword",match:gn(...d,...wx)}]},h={$pattern:gn(/\b\w+/,/#\w+/),keyword:u.concat(fL),literal:Nx},b=[o,c,m],g={match:mt(/\./,gn(...kx)),relevance:0},E={className:"built_in",match:mt(/\b/,gn(...kx),/(?=\()/)},x=[g,E],S={match:/->/,relevance:0},w={className:"operator",relevance:0,variants:[{match:Wd},{match:`\\.(\\.|${VE})+`}]},T=[S,w],N="([0-9]_*)+",I="([0-9a-fA-F]_*)+",D={className:"number",relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${I})(\\.(${I}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},H=(Ve="")=>({className:"subst",variants:[{match:mt(/\\/,Ve,/[0\\tnr"']/)},{match:mt(/\\/,Ve,/u\{[0-9a-fA-F]{1,8}\}/)}]}),$=(Ve="")=>({className:"subst",match:mt(/\\/,Ve,/[\t ]*(?:[\r\n]|\r\n)/)}),z=(Ve="")=>({className:"subst",label:"interpol",begin:mt(/\\/,Ve,/\(/),end:/\)/}),G=(Ve="")=>({begin:mt(Ve,/"""/),end:mt(/"""/,Ve),contains:[H(Ve),$(Ve),z(Ve)]}),X=(Ve="")=>({begin:mt(Ve,/"/),end:mt(/"/,Ve),contains:[H(Ve),z(Ve)]}),V={className:"string",variants:[G(),G("#"),G("##"),G("###"),X(),X("#"),X("##"),X("###")]},A=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ae={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:A},ie=Ve=>{const ca=mt(Ve,/\//),Qn=mt(/\//,Ve);return{begin:ca,end:Qn,contains:[...A,{scope:"comment",begin:`#(?!.*${Qn})`,end:/$/}]}},ge={scope:"regexp",variants:[ie("###"),ie("##"),ie("#"),ae]},le={match:mt(/`/,Ta,/`/)},te={className:"variable",match:/\$\d+/},F={className:"variable",match:`\\$${ou}+`},re=[le,te,F],oe={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:hL,contains:[...T,D,V]}]}},_e={scope:"keyword",match:mt(/@/,gn(...dL),Ws(gn(/\(/,/\s+/)))},C={scope:"meta",match:mt(/@/,Ta)},O=[oe,_e,C],Q={match:Ws(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:mt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,ou,"+")},{className:"type",match:Vc,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:mt(/\s+&\s+/,Ws(Vc)),relevance:0}]},k={begin:/</,end:/>/,keywords:h,contains:[...l,...b,...O,S,Q]};Q.contains.push(k);const de={match:mt(Ta,/\s*:/),keywords:"_|0",relevance:0},Ne={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",de,...l,ge,...b,...x,...T,D,V,...re,...O,Q]},xe={begin:/</,end:/>/,keywords:"repeat each",contains:[...l,Q]},Be={begin:gn(Ws(mt(Ta,/\s*:/)),Ws(mt(Ta,/\s+/,Ta,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ta}]},rt={begin:/\(/,end:/\)/,keywords:h,contains:[Be,...l,...b,...T,D,V,...O,Q,Ne],endsParent:!0,illegal:/["']/},nt={match:[/(func|macro)/,/\s+/,gn(le.match,Ta,Wd)],className:{1:"keyword",3:"title.function"},contains:[xe,rt,a],illegal:[/\[/,/%/]},$t={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,rt,a],illegal:/\[|%/},Dn={match:[/operator/,/\s+/,Wd],className:{1:"keyword",3:"title"}},Da={begin:[/precedencegroup/,/\s+/,Vc],className:{1:"keyword",3:"title"},contains:[Q],keywords:[...uL,...Nx],end:/}/},ui={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ln={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},xa={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ta,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[xe,...b,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:Vc},...b],relevance:0}]};for(const Ve of V.variants){const ca=Ve.contains.find(va=>va.label==="interpol");ca.keywords=h;const Qn=[...b,...x,...T,D,V,...re];ca.contains=[...Qn,{begin:/\(/,end:/\)/,contains:["self",...Qn]}]}return{name:"Swift",keywords:h,contains:[...l,nt,$t,ui,Ln,xa,Dn,Da,{beginKeywords:"import",end:/$/,contains:[...l],relevance:0},ge,...b,...x,...T,D,V,...re,...O,Q,Ne]}}const cu="[A-Za-z$_][0-9A-Za-z$_]*",ZE=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],WE=["true","false","null","undefined","NaN","Infinity"],JE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],e0=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],t0=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],n0=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a0=[].concat(t0,JE,e0);function pL(e){const a=e.regex,i=(oe,{after:_e})=>{const C="</"+oe[0].slice(1);return oe.input.indexOf(C,_e)!==-1},l=cu,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,_e)=>{const C=oe[0].length+oe.index,O=oe.input[C];if(O==="<"||O===","){_e.ignoreMatch();return}O===">"&&(i(oe,{after:C})||_e.ignoreMatch());let Q;const k=oe.input.substring(C);if(Q=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Q=k.match(/^\s+extends\s+/))&&Q.index===0){_e.ignoreMatch();return}}},d={$pattern:cu,keyword:ZE,literal:WE,built_in:a0,"variable.language":n0},m="[0-9](_?[0-9])*",h=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},x={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},w={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:l+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,{match:/\$\d+/},g];E.contains=D.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(D)});const H=[].concat(I,E.contains),$=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(H)}]),z={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:$},G={variants:[{match:[/class/,/\s+/,l,/\s+/,/extends/,/\s+/,a.concat(l,"(",a.concat(/\./,l),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,l],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...JE,...e0]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,l,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(oe){return a.concat("(?!",oe.join("|"),")")}const ge={match:a.concat(/\b/,ie([...t0,"super","import"].map(oe=>`${oe}\\s*\\(`)),l,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:a.concat(/\./,a.lookahead(a.concat(l,/(?![0-9A-Za-z$_(])/))),end:l,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},te={match:[/get|set/,/\s+/,l,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},F="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,l,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(F)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,w,T,I,{match:/\$\d+/},g,X,{scope:"attr",match:l+a.lookahead(":"),relevance:0},re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:F,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,e.inherit(e.TITLE_MODE,{begin:l,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+l,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},ge,ae,G,te,{match:/\$[(.]/}]}}function gL(e){const a=e.regex,i=pL(e),l=cu,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:cu,keyword:ZE.concat(m),literal:WE,built_in:a0.concat(o),"variable.language":n0},b={className:"meta",begin:"@"+l},g=(w,T,N)=>{const I=w.contains.findIndex(D=>D.label===T);if(I===-1)throw new Error("can not find mode to replace");w.contains.splice(I,1,N)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(b);const E=i.contains.find(w=>w.scope==="attr"),x=Object.assign({},E,{match:a.concat(l,a.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,E,x]),i.contains=i.contains.concat([b,c,u,x]),g(i,"shebang",e.SHEBANG()),g(i,"use_strict",d);const S=i.contains.find(w=>w.label==="func.def");return S.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function bL(e){const a=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},l={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:a.concat(/# */,a.either(c,o),/ *#/)},{begin:a.concat(/# */,d,/ *#/)},{begin:a.concat(/# */,u,/ *#/)},{begin:a.concat(/# */,a.either(c,o),/ +/,a.either(u,d),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},g=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),E=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[i,l,m,h,b,g,E,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[E]}]}}function yL(e){e.regex;const a=e.COMMENT(/\(;/,/;\)/);a.contains.push("self");const i=e.COMMENT(/;;/,/$/),l=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:l},contains:[i,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,u,o,e.QUOTE_STRING_MODE,m,h,d]}}function xL(e){const a=e.regex,i=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(c,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),m=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:l,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,m,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,m,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(i,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function vL(e){const a="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",l={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,o]},d=e.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},x={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},S={begin:/\{/,end:/\}/,contains:[x],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[x],illegal:"\\n",relevance:0},T=[l,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},S,w,c,u],N=[...T];return N.pop(),N.push(d),x.contains=N,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}const EL={arduino:nD,bash:aD,c:iD,cpp:rD,csharp:lD,css:pD,diff:gD,go:bD,graphql:yD,ini:xD,java:vD,javascript:ND,json:kD,kotlin:CD,less:jD,lua:ID,makefile:UD,markdown:BD,objectivec:HD,perl:FD,php:qD,"php-template":PD,plaintext:GD,python:$D,"python-repl":KD,r:YD,ruby:QD,rust:VD,scss:iL,shell:rL,sql:lL,swift:mL,typescript:gL,vbnet:bL,wasm:yL,xml:xL,yaml:vL};var Jd,Tx;function _L(){if(Tx)return Jd;Tx=1;function e(L){return L instanceof Map?L.clear=L.delete=L.set=function(){throw new Error("map is read-only")}:L instanceof Set&&(L.add=L.clear=L.delete=function(){throw new Error("set is read-only")}),Object.freeze(L),Object.getOwnPropertyNames(L).forEach(J=>{const he=L[J],Me=typeof he;(Me==="object"||Me==="function")&&!Object.isFrozen(he)&&e(he)}),L}class a{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(L){return L.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(L,...J){const he=Object.create(null);for(const Me in L)he[Me]=L[Me];return J.forEach(function(Me){for(const vt in Me)he[vt]=Me[vt]}),he}const o="</span>",c=L=>!!L.scope,u=(L,{prefix:J})=>{if(L.startsWith("language:"))return L.replace("language:","language-");if(L.includes(".")){const he=L.split(".");return[`${J}${he.shift()}`,...he.map((Me,vt)=>`${Me}${"_".repeat(vt+1)}`)].join(" ")}return`${J}${L}`};class d{constructor(J,he){this.buffer="",this.classPrefix=he.classPrefix,J.walk(this)}addText(J){this.buffer+=i(J)}openNode(J){if(!c(J))return;const he=u(J.scope,{prefix:this.classPrefix});this.span(he)}closeNode(J){c(J)&&(this.buffer+=o)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const m=(L={})=>{const J={children:[]};return Object.assign(J,L),J};class h{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const he=m({scope:J});this.add(he),this.stack.push(he)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,he){return typeof he=="string"?J.addText(he):he.children&&(J.openNode(he),he.children.forEach(Me=>this._walk(J,Me)),J.closeNode(he)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(he=>typeof he=="string")?J.children=[J.children.join("")]:J.children.forEach(he=>{h._collapse(he)}))}}class b extends h{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,he){const Me=J.root;he&&(Me.scope=`language:${he}`),this.add(Me)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(L){return L?typeof L=="string"?L:L.source:null}function E(L){return w("(?=",L,")")}function x(L){return w("(?:",L,")*")}function S(L){return w("(?:",L,")?")}function w(...L){return L.map(he=>g(he)).join("")}function T(L){const J=L[L.length-1];return typeof J=="object"&&J.constructor===Object?(L.splice(L.length-1,1),J):{}}function N(...L){return"("+(T(L).capture?"":"?:")+L.map(Me=>g(Me)).join("|")+")"}function I(L){return new RegExp(L.toString()+"|").exec("").length-1}function D(L,J){const he=L&&L.exec(J);return he&&he.index===0}const H=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function $(L,{joinWith:J}){let he=0;return L.map(Me=>{he+=1;const vt=he;let pt=g(Me),ye="";for(;pt.length>0;){const pe=H.exec(pt);if(!pe){ye+=pt;break}ye+=pt.substring(0,pe.index),pt=pt.substring(pe.index+pe[0].length),pe[0][0]==="\\"&&pe[1]?ye+="\\"+String(Number(pe[1])+vt):(ye+=pe[0],pe[0]==="("&&he++)}return ye}).map(Me=>`(${Me})`).join(J)}const z=/\b\B/,G="[a-zA-Z]\\w*",X="[a-zA-Z_]\\w*",V="\\b\\d+(\\.\\d+)?",A="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ae="\\b(0b[01]+)",ie="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ge=(L={})=>{const J=/^#![ ]*\//;return L.binary&&(L.begin=w(J,/.*\b/,L.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(he,Me)=>{he.index!==0&&Me.ignoreMatch()}},L)},le={begin:"\\\\[\\s\\S]",relevance:0},te={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},F={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},re={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},oe=function(L,J,he={}){const Me=l({scope:"comment",begin:L,end:J,contains:[]},he);Me.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const vt=N("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Me.contains.push({begin:w(/[ ]+/,"(",vt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},_e=oe("//","$"),C=oe("/\\*","\\*/"),O=oe("#","$"),Q={scope:"number",begin:V,relevance:0},k={scope:"number",begin:A,relevance:0},de={scope:"number",begin:ae,relevance:0},Ne={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},xe={scope:"title",begin:G,relevance:0},Be={scope:"title",begin:X,relevance:0},rt={begin:"\\.\\s*"+X,relevance:0};var $t=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:de,BINARY_NUMBER_RE:ae,COMMENT:oe,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:_e,C_NUMBER_MODE:k,C_NUMBER_RE:A,END_SAME_AS_BEGIN:function(L){return Object.assign(L,{"on:begin":(J,he)=>{he.data._beginMatch=J[1]},"on:end":(J,he)=>{he.data._beginMatch!==J[1]&&he.ignoreMatch()}})},HASH_COMMENT_MODE:O,IDENT_RE:G,MATCH_NOTHING_RE:z,METHOD_GUARD:rt,NUMBER_MODE:Q,NUMBER_RE:V,PHRASAL_WORDS_MODE:re,QUOTE_STRING_MODE:F,REGEXP_MODE:Ne,RE_STARTERS_RE:ie,SHEBANG:ge,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:X,UNDERSCORE_TITLE_MODE:Be});function Dn(L,J){L.input[L.index-1]==="."&&J.ignoreMatch()}function Da(L,J){L.className!==void 0&&(L.scope=L.className,delete L.className)}function ui(L,J){J&&L.beginKeywords&&(L.begin="\\b("+L.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",L.__beforeBegin=Dn,L.keywords=L.keywords||L.beginKeywords,delete L.beginKeywords,L.relevance===void 0&&(L.relevance=0))}function Ln(L,J){Array.isArray(L.illegal)&&(L.illegal=N(...L.illegal))}function xa(L,J){if(L.match){if(L.begin||L.end)throw new Error("begin & end are not supported with match");L.begin=L.match,delete L.match}}function Ve(L,J){L.relevance===void 0&&(L.relevance=1)}const ca=(L,J)=>{if(!L.beforeMatch)return;if(L.starts)throw new Error("beforeMatch cannot be used with starts");const he=Object.assign({},L);Object.keys(L).forEach(Me=>{delete L[Me]}),L.keywords=he.keywords,L.begin=w(he.beforeMatch,E(he.begin)),L.starts={relevance:0,contains:[Object.assign(he,{endsParent:!0})]},L.relevance=0,delete he.beforeMatch},Qn=["of","and","for","in","not","or","if","then","parent","list","value"],va="keyword";function La(L,J,he=va){const Me=Object.create(null);return typeof L=="string"?vt(he,L.split(" ")):Array.isArray(L)?vt(he,L):Object.keys(L).forEach(function(pt){Object.assign(Me,La(L[pt],J,pt))}),Me;function vt(pt,ye){J&&(ye=ye.map(pe=>pe.toLowerCase())),ye.forEach(function(pe){const Oe=pe.split("|");Me[Oe[0]]=[pt,Ji(Oe[0],Oe[1])]})}}function Ji(L,J){return J?Number(J):Zl(L)?0:1}function Zl(L){return Qn.includes(L.toLowerCase())}const Br={},kt=L=>{console.error(L)},Hr=(L,...J)=>{console.log(`WARN: ${L}`,...J)},Z=(L,J)=>{Br[`${L}/${J}`]||(console.log(`Deprecated as of ${L}. ${J}`),Br[`${L}/${J}`]=!0)},ue=new Error;function Ce(L,J,{key:he}){let Me=0;const vt=L[he],pt={},ye={};for(let pe=1;pe<=J.length;pe++)ye[pe+Me]=vt[pe],pt[pe+Me]=!0,Me+=I(J[pe-1]);L[he]=ye,L[he]._emit=pt,L[he]._multi=!0}function Fe(L){if(Array.isArray(L.begin)){if(L.skip||L.excludeBegin||L.returnBegin)throw kt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ue;if(typeof L.beginScope!="object"||L.beginScope===null)throw kt("beginScope must be object"),ue;Ce(L,L.begin,{key:"beginScope"}),L.begin=$(L.begin,{joinWith:""})}}function Je(L){if(Array.isArray(L.end)){if(L.skip||L.excludeEnd||L.returnEnd)throw kt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ue;if(typeof L.endScope!="object"||L.endScope===null)throw kt("endScope must be object"),ue;Ce(L,L.end,{key:"endScope"}),L.end=$(L.end,{joinWith:""})}}function fn(L){L.scope&&typeof L.scope=="object"&&L.scope!==null&&(L.beginScope=L.scope,delete L.scope)}function ua(L){fn(L),typeof L.beginScope=="string"&&(L.beginScope={_wrap:L.beginScope}),typeof L.endScope=="string"&&(L.endScope={_wrap:L.endScope}),Fe(L),Je(L)}function Xt(L){function J(ye,pe){return new RegExp(g(ye),"m"+(L.case_insensitive?"i":"")+(L.unicodeRegex?"u":"")+(pe?"g":""))}class he{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(pe,Oe){Oe.position=this.position++,this.matchIndexes[this.matchAt]=Oe,this.regexes.push([Oe,pe]),this.matchAt+=I(pe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const pe=this.regexes.map(Oe=>Oe[1]);this.matcherRe=J($(pe,{joinWith:"|"}),!0),this.lastIndex=0}exec(pe){this.matcherRe.lastIndex=this.lastIndex;const Oe=this.matcherRe.exec(pe);if(!Oe)return null;const Mt=Oe.findIndex((za,qr)=>qr>0&&za!==void 0),St=this.matchIndexes[Mt];return Oe.splice(0,Mt),Object.assign(Oe,St)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(pe){if(this.multiRegexes[pe])return this.multiRegexes[pe];const Oe=new he;return this.rules.slice(pe).forEach(([Mt,St])=>Oe.addRule(Mt,St)),Oe.compile(),this.multiRegexes[pe]=Oe,Oe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(pe,Oe){this.rules.push([pe,Oe]),Oe.type==="begin"&&this.count++}exec(pe){const Oe=this.getMatcher(this.regexIndex);Oe.lastIndex=this.lastIndex;let Mt=Oe.exec(pe);if(this.resumingScanAtSamePosition()&&!(Mt&&Mt.index===this.lastIndex)){const St=this.getMatcher(0);St.lastIndex=this.lastIndex+1,Mt=St.exec(pe)}return Mt&&(this.regexIndex+=Mt.position+1,this.regexIndex===this.count&&this.considerAll()),Mt}}function vt(ye){const pe=new Me;return ye.contains.forEach(Oe=>pe.addRule(Oe.begin,{rule:Oe,type:"begin"})),ye.terminatorEnd&&pe.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&pe.addRule(ye.illegal,{type:"illegal"}),pe}function pt(ye,pe){const Oe=ye;if(ye.isCompiled)return Oe;[Da,xa,ua,ca].forEach(St=>St(ye,pe)),L.compilerExtensions.forEach(St=>St(ye,pe)),ye.__beforeBegin=null,[ui,Ln,Ve].forEach(St=>St(ye,pe)),ye.isCompiled=!0;let Mt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Mt=ye.keywords.$pattern,delete ye.keywords.$pattern),Mt=Mt||/\w+/,ye.keywords&&(ye.keywords=La(ye.keywords,L.case_insensitive)),Oe.keywordPatternRe=J(Mt,!0),pe&&(ye.begin||(ye.begin=/\B|\b/),Oe.beginRe=J(Oe.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(Oe.endRe=J(Oe.end)),Oe.terminatorEnd=g(Oe.end)||"",ye.endsWithParent&&pe.terminatorEnd&&(Oe.terminatorEnd+=(ye.end?"|":"")+pe.terminatorEnd)),ye.illegal&&(Oe.illegalRe=J(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(St){return nn(St==="self"?ye:St)})),ye.contains.forEach(function(St){pt(St,Oe)}),ye.starts&&pt(ye.starts,pe),Oe.matcher=vt(Oe),Oe}if(L.compilerExtensions||(L.compilerExtensions=[]),L.contains&&L.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return L.classNameAliases=l(L.classNameAliases||{}),pt(L)}function Ct(L){return L?L.endsWithParent||Ct(L.starts):!1}function nn(L){return L.variants&&!L.cachedVariants&&(L.cachedVariants=L.variants.map(function(J){return l(L,{variants:null},J)})),L.cachedVariants?L.cachedVariants:Ct(L)?l(L,{starts:L.starts?l(L.starts):null}):Object.isFrozen(L)?l(L):L}var lt="11.11.1";class Ea extends Error{constructor(J,he){super(J),this.name="HTMLInjectionError",this.html=he}}const dn=i,Eo=l,er=Symbol("nomatch"),Fr=7,tr=function(L){const J=Object.create(null),he=Object.create(null),Me=[];let vt=!0;const pt="Could not find the language '{}', did you forget to load/include a language module?",ye={disableAutodetect:!0,name:"Plain text",contains:[]};let pe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Oe(se){return pe.noHighlightRe.test(se)}function Mt(se){let Se=se.className+" ";Se+=se.parentNode?se.parentNode.className:"";const qe=pe.languageDetectRe.exec(Se);if(qe){const st=hn(qe[1]);return st||(Hr(pt.replace("{}",qe[1])),Hr("Falling back to no-highlight mode for this block.",se)),st?qe[1]:"no-highlight"}return Se.split(/\s+/).find(st=>Oe(st)||hn(st))}function St(se,Se,qe){let st="",Lt="";typeof Se=="object"?(st=se,qe=Se.ignoreIllegals,Lt=Se.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),Z("10.7.0",`Please use highlight(code, options) instead.
|
|
316
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Lt=se,st=Se),qe===void 0&&(qe=!0);const rn={code:st,language:Lt};ar("before:highlight",rn);const zn=rn.result?rn.result:za(rn.language,rn.code,qe);return zn.code=rn.code,ar("after:highlight",zn),zn}function za(se,Se,qe,st){const Lt=Object.create(null);function rn(fe,ve){return fe.keywords[ve]}function zn(){if(!Re.keywords){Ut.addText(ot);return}let fe=0;Re.keywordPatternRe.lastIndex=0;let ve=Re.keywordPatternRe.exec(ot),Le="";for(;ve;){Le+=ot.substring(fe,ve.index);const Ke=Zt.case_insensitive?ve[0].toLowerCase():ve[0],Tt=rn(Re,Ke);if(Tt){const[Vn,as]=Tt;if(Ut.addText(Le),Le="",Lt[Ke]=(Lt[Ke]||0)+1,Lt[Ke]<=Fr&&(mi+=as),Vn.startsWith("_"))Le+=ve[0];else{const Co=Zt.classNameAliases[Vn]||Vn;jn(ve[0],Co)}}else Le+=ve[0];fe=Re.keywordPatternRe.lastIndex,ve=Re.keywordPatternRe.exec(ot)}Le+=ot.substring(fe),Ut.addText(Le)}function vn(){if(ot==="")return;let fe=null;if(typeof Re.subLanguage=="string"){if(!J[Re.subLanguage]){Ut.addText(ot);return}fe=za(Re.subLanguage,ot,!0,To[Re.subLanguage]),To[Re.subLanguage]=fe._top}else fe=Pr(ot,Re.subLanguage.length?Re.subLanguage:null);Re.relevance>0&&(mi+=fe.relevance),Ut.__addSublanguage(fe._emitter,fe.language)}function yt(){Re.subLanguage!=null?vn():zn(),ot=""}function jn(fe,ve){fe!==""&&(Ut.startScope(ve),Ut.addText(fe),Ut.endScope())}function No(fe,ve){let Le=1;const Ke=ve.length-1;for(;Le<=Ke;){if(!fe._emit[Le]){Le++;continue}const Tt=Zt.classNameAliases[fe[Le]]||fe[Le],Vn=ve[Le];Tt?jn(Vn,Tt):(ot=Vn,zn(),ot=""),Le++}}function $r(fe,ve){return fe.scope&&typeof fe.scope=="string"&&Ut.openNode(Zt.classNameAliases[fe.scope]||fe.scope),fe.beginScope&&(fe.beginScope._wrap?(jn(ot,Zt.classNameAliases[fe.beginScope._wrap]||fe.beginScope._wrap),ot=""):fe.beginScope._multi&&(No(fe.beginScope,ve),ot="")),Re=Object.create(fe,{parent:{value:Re}}),Re}function es(fe,ve,Le){let Ke=D(fe.endRe,Le);if(Ke){if(fe["on:end"]){const Tt=new a(fe);fe["on:end"](ve,Tt),Tt.isMatchIgnored&&(Ke=!1)}if(Ke){for(;fe.endsParent&&fe.parent;)fe=fe.parent;return fe}}if(fe.endsWithParent)return es(fe.parent,ve,Le)}function Kr(fe){return Re.matcher.regexIndex===0?(ot+=fe[0],1):(pi=!0,0)}function Eu(fe){const ve=fe[0],Le=fe.rule,Ke=new a(Le),Tt=[Le.__beforeBegin,Le["on:begin"]];for(const Vn of Tt)if(Vn&&(Vn(fe,Ke),Ke.isMatchIgnored))return Kr(ve);return Le.skip?ot+=ve:(Le.excludeBegin&&(ot+=ve),yt(),!Le.returnBegin&&!Le.excludeBegin&&(ot=ve)),$r(Le,fe),Le.returnBegin?0:ve.length}function En(fe){const ve=fe[0],Le=Se.substring(fe.index),Ke=es(Re,fe,Le);if(!Ke)return er;const Tt=Re;Re.endScope&&Re.endScope._wrap?(yt(),jn(ve,Re.endScope._wrap)):Re.endScope&&Re.endScope._multi?(yt(),No(Re.endScope,fe)):Tt.skip?ot+=ve:(Tt.returnEnd||Tt.excludeEnd||(ot+=ve),yt(),Tt.excludeEnd&&(ot=ve));do Re.scope&&Ut.closeNode(),!Re.skip&&!Re.subLanguage&&(mi+=Re.relevance),Re=Re.parent;while(Re!==Ke.parent);return Ke.starts&&$r(Ke.starts,fe),Tt.returnEnd?0:ve.length}function ts(){const fe=[];for(let ve=Re;ve!==Zt;ve=ve.parent)ve.scope&&fe.unshift(ve.scope);fe.forEach(ve=>Ut.openNode(ve))}let ir={};function Yr(fe,ve){const Le=ve&&ve[0];if(ot+=fe,Le==null)return yt(),0;if(ir.type==="begin"&&ve.type==="end"&&ir.index===ve.index&&Le===""){if(ot+=Se.slice(ve.index,ve.index+1),!vt){const Ke=new Error(`0 width match regex (${se})`);throw Ke.languageName=se,Ke.badRule=ir.rule,Ke}return 1}if(ir=ve,ve.type==="begin")return Eu(ve);if(ve.type==="illegal"&&!qe){const Ke=new Error('Illegal lexeme "'+Le+'" for mode "'+(Re.scope||"<unnamed>")+'"');throw Ke.mode=Re,Ke}else if(ve.type==="end"){const Ke=En(ve);if(Ke!==er)return Ke}if(ve.type==="illegal"&&Le==="")return ot+=`
|
|
317
|
-
`,1;if(ns>1e5&&ns>ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=Le,Le.length}const Zt=hn(se);if(!Zt)throw kt(pt.replace("{}",se)),new Error('Unknown language: "'+se+'"');const ko=Xt(Zt);let Qr="",Re=st||ko;const To={},Ut=new pe.__emitter(pe);ts();let ot="",mi=0,Ua=0,ns=0,pi=!1;try{if(Zt.__emitTokens)Zt.__emitTokens(Se,Ut);else{for(Re.matcher.considerAll();;){ns++,pi?pi=!1:Re.matcher.considerAll(),Re.matcher.lastIndex=Ua;const fe=Re.matcher.exec(Se);if(!fe)break;const ve=Se.substring(Ua,fe.index),Le=Yr(ve,fe);Ua=fe.index+Le}Yr(Se.substring(Ua))}return Ut.finalize(),Qr=Ut.toHTML(),{language:se,value:Qr,relevance:mi,illegal:!1,_emitter:Ut,_top:Re}}catch(fe){if(fe.message&&fe.message.includes("Illegal"))return{language:se,value:dn(Se),illegal:!0,relevance:0,_illegalBy:{message:fe.message,index:Ua,context:Se.slice(Ua-100,Ua+100),mode:fe.mode,resultSoFar:Qr},_emitter:Ut};if(vt)return{language:se,value:dn(Se),illegal:!1,relevance:0,errorRaised:fe,_emitter:Ut,_top:Re};throw fe}}function qr(se){const Se={value:dn(se),illegal:!1,relevance:0,_top:ye,_emitter:new pe.__emitter(pe)};return Se._emitter.addText(se),Se}function Pr(se,Se){Se=Se||pe.languages||Object.keys(J);const qe=qr(se),st=Se.filter(hn).filter(di).map(yt=>za(yt,se,!1));st.unshift(qe);const Lt=st.sort((yt,jn)=>{if(yt.relevance!==jn.relevance)return jn.relevance-yt.relevance;if(yt.language&&jn.language){if(hn(yt.language).supersetOf===jn.language)return 1;if(hn(jn.language).supersetOf===yt.language)return-1}return 0}),[rn,zn]=Lt,vn=rn;return vn.secondBest=zn,vn}function _a(se,Se,qe){const st=Se&&he[Se]||qe;se.classList.add("hljs"),se.classList.add(`language-${st}`)}function Dt(se){let Se=null;const qe=Mt(se);if(Oe(qe))return;if(ar("before:highlightElement",{el:se,language:qe}),se.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",se);return}if(se.children.length>0&&(pe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(se)),pe.throwUnescapedHTML))throw new Ea("One of your code blocks includes unescaped HTML.",se.innerHTML);Se=se;const st=Se.textContent,Lt=qe?St(st,{language:qe,ignoreIllegals:!0}):Pr(st);se.innerHTML=Lt.value,se.dataset.highlighted="yes",_a(se,qe,Lt.language),se.result={language:Lt.language,re:Lt.relevance,relevance:Lt.relevance},Lt.secondBest&&(se.secondBest={language:Lt.secondBest.language,relevance:Lt.secondBest.relevance}),ar("after:highlightElement",{el:se,result:Lt,text:st})}function an(se){pe=Eo(pe,se)}const fi=()=>{Gr(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wl(){Gr(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _o=!1;function Gr(){function se(){Gr()}if(document.readyState==="loading"){_o||window.addEventListener("DOMContentLoaded",se,!1),_o=!0;return}document.querySelectorAll(pe.cssSelector).forEach(Dt)}function So(se,Se){let qe=null;try{qe=Se(L)}catch(st){if(kt("Language definition for '{}' could not be registered.".replace("{}",se)),vt)kt(st);else throw st;qe=ye}qe.name||(qe.name=se),J[se]=qe,qe.rawDefinition=Se.bind(null,L),qe.aliases&&ja(qe.aliases,{languageName:se})}function nr(se){delete J[se];for(const Se of Object.keys(he))he[Se]===se&&delete he[Se]}function Jl(){return Object.keys(J)}function hn(se){return se=(se||"").toLowerCase(),J[se]||J[he[se]]}function ja(se,{languageName:Se}){typeof se=="string"&&(se=[se]),se.forEach(qe=>{he[qe.toLowerCase()]=Se})}function di(se){const Se=hn(se);return Se&&!Se.disableAutodetect}function hi(se){se["before:highlightBlock"]&&!se["before:highlightElement"]&&(se["before:highlightElement"]=Se=>{se["before:highlightBlock"](Object.assign({block:Se.el},Se))}),se["after:highlightBlock"]&&!se["after:highlightElement"]&&(se["after:highlightElement"]=Se=>{se["after:highlightBlock"](Object.assign({block:Se.el},Se))})}function It(se){hi(se),Me.push(se)}function wo(se){const Se=Me.indexOf(se);Se!==-1&&Me.splice(Se,1)}function ar(se,Se){const qe=se;Me.forEach(function(st){st[qe]&&st[qe](Se)})}function Ia(se){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),Dt(se)}Object.assign(L,{highlight:St,highlightAuto:Pr,highlightAll:Gr,highlightElement:Dt,highlightBlock:Ia,configure:an,initHighlighting:fi,initHighlightingOnLoad:Wl,registerLanguage:So,unregisterLanguage:nr,listLanguages:Jl,getLanguage:hn,registerAliases:ja,autoDetection:di,inherit:Eo,addPlugin:It,removePlugin:wo}),L.debugMode=function(){vt=!1},L.safeMode=function(){vt=!0},L.versionString=lt,L.regex={concat:w,lookahead:E,either:N,optional:S,anyNumberOfTimes:x};for(const se in $t)typeof $t[se]=="object"&&e($t[se]);return Object.assign(L,$t),L},xn=tr({});return xn.newInstance=()=>tr({}),Jd=xn,xn.HighlightJS=xn,xn.default=xn,Jd}var SL=_L();const wL=Rh(SL),Cx={},NL="hljs-";function kL(e){const a=wL.newInstance();return e&&c(e),{highlight:i,highlightAuto:l,listLanguages:o,register:c,registerAlias:u,registered:d};function i(m,h,b){const g=b||Cx,E=typeof g.prefix=="string"?g.prefix:NL;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:TL,classPrefix:E});const x=a.highlight(h,{ignoreIllegals:!0,language:m});if(x.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:x.errorRaised});const S=x._emitter.root,w=S.data;return w.language=x.language,w.relevance=x.relevance,S}function l(m,h){const g=(h||Cx).subset||o();let E=-1,x=0,S;for(;++E<g.length;){const w=g[E];if(!a.getLanguage(w))continue;const T=i(w,m,h);T.data&&T.data.relevance!==void 0&&T.data.relevance>x&&(x=T.data.relevance,S=T)}return S||{type:"root",children:[],data:{language:void 0,relevance:x}}}function o(){return a.listLanguages()}function c(m,h){if(typeof m=="string")a.registerLanguage(m,h);else{let b;for(b in m)Object.hasOwn(m,b)&&a.registerLanguage(b,m[b])}}function u(m,h){if(typeof m=="string")a.registerAliases(typeof h=="string"?h:[...h],{languageName:m});else{let b;for(b in m)if(Object.hasOwn(m,b)){const g=m[b];a.registerAliases(typeof g=="string"?g:[...g],{languageName:b})}}}function d(m){return!!a.getLanguage(m)}}class TL{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const i=this.stack[this.stack.length-1],l=i.children[i.children.length-1];l&&l.type==="text"?l.value+=a:i.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,i){const l=this.stack[this.stack.length-1],o=a.root.children;i?l.children.push({type:"element",tagName:"span",properties:{className:[i]},children:o}):l.children.push(...o)}openNode(a){const i=this,l=a.split(".").map(function(u,d){return d?u+"_".repeat(d):i.options.classPrefix+u}),o=this.stack[this.stack.length-1],c={type:"element",tagName:"span",properties:{className:l},children:[]};o.children.push(c),this.stack.push(c)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const CL={};function xm(e){const a=e||CL,i=a.aliases,l=a.detect||!1,o=a.languages||EL,c=a.plainText,u=a.prefix,d=a.subset;let m="hljs";const h=kL(o);if(i&&h.registerAlias(i),u){const b=u.indexOf("-");m=b===-1?u:u.slice(0,b)}return function(b,g){vu(b,"element",function(E,x,S){if(E.tagName!=="code"||!S||S.type!=="element"||S.tagName!=="pre")return;const w=AL(E);if(w===!1||!w&&!l||w&&c&&c.includes(w))return;Array.isArray(E.properties.className)||(E.properties.className=[]),E.properties.className.includes(m)||E.properties.className.unshift(m);const T=QM(E,{whitespace:"pre"});let N;try{N=w?h.highlight(w,T,{prefix:u}):h.highlightAuto(T,{prefix:u,subset:d})}catch(I){const D=I;if(w&&/Unknown language/.test(D.message)){g.message("Cannot highlight as `"+w+"`, it’s not registered",{ancestors:[S,E],cause:D,place:E.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw D}!w&&N.data&&N.data.language&&E.properties.className.push("language-"+N.data.language),N.children.length>0&&(E.children=N.children)})}}function AL(e){const a=e.properties.className;let i=-1;if(!Array.isArray(a))return;let l;for(;++i<a.length;){const o=String(a[i]);if(o==="no-highlight"||o==="nohighlight")return!1;!l&&o.slice(0,5)==="lang-"&&(l=o.slice(5)),!l&&o.slice(0,9)==="language-"&&(l=o.slice(9))}return l}function RL({name:e,projects:a,onClose:i,onChange:l}){const{confirm:o}=oi(),{data:c,isLoading:u,isError:d,error:m,refetch:h}=Gt({queryKey:["skill",e],queryFn:()=>hT(e)});j.useEffect(()=>{const w=T=>{T.key==="Escape"&&i()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[i]);const b=async w=>{await pT(e,w),h(),l()},g=async w=>{await o({title:`从 ${w} 移除 ${e}`,body:"skill 链接会被解除,项目后续运行时将无法使用该 skill。",confirm:"移除",danger:!0})&&(await gT(e,w),h(),l())},E=async w=>{await bT(e,w),h(),l()},x=async w=>{await o({title:`解冻 ${e} @ ${w}`,body:"本地对这个 skill 的改动会被覆盖,回到最新共享版本。",confirm:"解冻",danger:!0})&&(await yT(e,w),h(),l())},S=new Map(((c==null?void 0:c.linkedProjects)??[]).map(w=>[w.project,w.state]));return y.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:i,children:y.jsxs("div",{onClick:w=>w.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[y.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:e}),c&&y.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[c.category," · ",c.origin||"local"]})]}),y.jsx("button",{onClick:i,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:y.jsx(Tv,{size:16,strokeWidth:3})})]}),u&&y.jsx("p",{children:"加载中…"}),d&&y.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[a.map(w=>{const T=S.get(w);return y.jsxs("div",{className:"flex items-center justify-between gap-3 p-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:w}),T==="linked"&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),T==="frozen"&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!T&&y.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),y.jsxs("div",{className:"flex gap-2",children:[!T&&y.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>b(w),type:"button",children:[y.jsx(wN,{size:11})," link"]}),T==="linked"&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>E(w),type:"button",children:[y.jsx(qN,{size:11})," freeze"]}),y.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>g(w),type:"button",children:"unlink"})]}),T==="frozen"&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>x(w),type:"button",children:[y.jsx(uN,{size:11})," unfreeze"]}),y.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>g(w),type:"button",children:"unlink"})]})]})]},w)}),a.length===0&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),y.jsx("div",{className:"prose-chat bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-80 overflow-auto text-sm",children:c.body?y.jsx(dm,{remarkPlugins:[gm],rehypePlugins:[xm],children:c.body}):y.jsx("p",{className:"text-[var(--color-text-muted)] italic",children:"(empty)"})})]}),c.references.length>0&&y.jsxs("div",{children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),y.jsx("ul",{className:"flex flex-col gap-2",children:c.references.map(w=>y.jsx(OL,{skillName:e,file:w.name,lines:w.lines},w.name))})]})]})]})})}function OL({skillName:e,file:a,lines:i}){const[l,o]=j.useState(!1),{data:c,isLoading:u,isError:d,error:m}=Gt({queryKey:["skill-ref",e,a],queryFn:()=>mT(e,a),enabled:l,staleTime:1/0});return y.jsxs("li",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[y.jsxs("button",{type:"button",onClick:()=>o(h=>!h),"aria-label":`${l?"收起":"展开"} ${a}`,"aria-expanded":l,className:"w-full flex items-center gap-2 px-3 py-2 text-sm font-[family-name:var(--font-mono)] hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx(_v,{size:12,strokeWidth:3,className:["transition-transform",l?"rotate-90":""].join(" ")}),y.jsx(Sv,{size:12,strokeWidth:2.5}),y.jsx("span",{className:"flex-1 text-left font-bold",children:a}),y.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[i," lines"]})]}),l&&y.jsxs("div",{className:"px-4 py-3 border-t-2 border-[var(--color-text)] bg-[var(--color-bg)] max-h-96 overflow-auto",children:[u&&y.jsx("p",{className:"text-xs text-[var(--color-text-muted)]",children:"加载中…"}),d&&y.jsxs("p",{className:"text-xs text-[var(--color-crashed)]",children:["加载失败: ",m instanceof Error?m.message:String(m)]}),c&&y.jsx("div",{className:"prose-chat text-sm",children:y.jsx(dm,{remarkPlugins:[gm],rehypePlugins:[xm],children:c.content})})]})]})}const ML=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],DL={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function LL(){var E;const[e,a]=j.useState("all"),[i,l]=j.useState(""),[o,c]=j.useState(null),u=ba(),{data:d,isLoading:m}=Gt({queryKey:["skills"],queryFn:()=>dT()}),h=Gt({queryKey:["projects"],queryFn:mu}),b=j.useMemo(()=>((d==null?void 0:d.data)??[]).filter(S=>!(e!=="all"&&S.category!==e||i&&!S.name.toLowerCase().includes(i.toLowerCase()))),[d,e,i]),g=j.useMemo(()=>{const x=(d==null?void 0:d.data)??[],S={all:x.length};for(const w of x)S[w.category]=(S[w.category]??0)+1;return S},[d]);return y.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[y.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:m?"加载中…":`${(d==null?void 0:d.data.length)??0} 个 user-level skill`})]}),y.jsx("div",{className:"flex gap-3 items-center",children:y.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await xT(),u.invalidateQueries({queryKey:["skills"]})},type:"button",children:[y.jsx(Yh,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[y.jsxs("div",{className:"relative flex-1 max-w-md",children:[y.jsx(Vh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),y.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:i,onChange:x=>l(x.target.value),"aria-label":"搜索 skill"})]}),y.jsx("div",{className:"flex gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:ML.map(x=>y.jsxs("button",{type:"button",onClick:()=>a(x.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",e===x.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[x.label," ",g[x.value]]},x.value))})]}),y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:b.map(x=>{var S;return y.jsx(zL,{skill:x,projectCount:((S=h.data)==null?void 0:S.data.length)??0,onOpen:()=>c(x.name)},x.name)})}),o&&y.jsx(RL,{name:o,projects:((E=h.data)==null?void 0:E.data.map(x=>x.name))??[],onClose:()=>c(null),onChange:()=>u.invalidateQueries({queryKey:["skills"]})})]})}function zL({skill:e,projectCount:a,onOpen:i}){const l=DL[e.category];return y.jsxs("article",{onClick:i,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),i())},tabIndex:0,role:"button","aria-label":`Open ${e.name}`,className:"nb-card nb-card-interactive flex flex-col gap-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:e.name}),y.jsx("span",{className:"nb-badge text-[10px]",style:{background:l},children:e.category})]}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:e.description||"(no description)"}),y.jsxs("div",{className:"flex items-center justify-between text-xs font-[family-name:var(--font-mono)] pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[y.jsx("span",{className:"font-bold",children:e.linkedProjects.length>0?`● linked in ${e.linkedProjects.length}`:"○ not linked"}),y.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[a," projects"]})]})]})}function jL(){const e=Gt({queryKey:["system-info"],queryFn:Cv}),a=Gt({queryKey:["system-env"],queryFn:ik}),i=Gt({queryKey:["doctor"],queryFn:rk});return y.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[y.jsx("header",{children:y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),y.jsxs("section",{className:"nb-card",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"版本与运行时"}),e.data?y.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[y.jsx("dt",{className:"font-bold",children:"sps-cli"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.version}),y.jsx("dt",{className:"font-bold",children:"Node"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.nodeVersion}),y.jsx("dt",{className:"font-bold",children:"Platform"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.platform}),y.jsx("dt",{className:"font-bold",children:"PID"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:e.data.pid??"—"}),y.jsx("dt",{className:"font-bold",children:"Uptime"}),y.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:IL(e.data.uptimeMs)})]}):y.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),y.jsxs("section",{className:"nb-card",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",y.jsx("code",{className:"text-sm font-[family-name:var(--font-mono)] font-normal bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"~/.coral/env"})]}),y.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:"敏感值脱敏"})]}),a.data&&a.data.exists?y.jsx("dl",{className:"grid grid-cols-[220px_1fr] gap-y-1 text-sm font-[family-name:var(--font-mono)]",children:a.data.entries.map(l=>y.jsxs("div",{className:"contents",children:[y.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[l.masked&&y.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),l.key]}),y.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:l.value})]},l.key))}):y.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:["env 文件不存在。运行 ",y.jsx("code",{className:"bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded font-[family-name:var(--font-mono)]",children:"sps setup"})," 配置。"]})]}),y.jsxs("section",{className:"nb-card",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),y.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>i.refetch(),type:"button",children:[y.jsx(Yh,{size:12,strokeWidth:2.5}),"重跑"]})]}),i.data&&i.data.data.length>0?y.jsx("ul",{className:"flex flex-col gap-2",children:i.data.data.map(l=>y.jsxs("li",{className:"flex items-center gap-3 px-3 py-2 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[l.ok?y.jsx(tN,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):y.jsx(Jw,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),y.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:l.project}),l.issues.length>0?y.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:l.issues.join("; ")}):y.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},l.project))}):y.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function IL(e){const a=Math.floor(e/1e3),i=Math.floor(a/3600),l=Math.floor(a%3600/60),o=a%60;return i>0?`${i}h ${l}m ${o}s`:l>0?`${l}m ${o}s`:`${o}s`}function UL(){return cn("/api/chat/sessions")}function BL(e){return cn(`/api/chat/sessions/${e}`)}async function Ax(e={}){const a=await fetch("/api/chat/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)throw new Error(`${a.status}: ${await a.text()}`);return await a.json()}async function HL(e){const a=await fetch(`/api/chat/sessions/${e}`,{method:"DELETE"});if(!a.ok)throw new Error(`${a.status}`)}async function FL(e,a){const i=await fetch(`/api/chat/sessions/${e}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:a})});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return await i.json()}function Rx(){var N,I,D,H,$,z;const{sessionId:e}=dv(),a=Zi(),i=ba(),{confirm:l,alert:o}=oi(),c=Gt({queryKey:["chat-sessions"],queryFn:UL}),u=Gt({queryKey:["chat-session",e],queryFn:()=>BL(e??""),enabled:!!e}),[d,m]=j.useState(null),[h,b]=j.useState(""),[g,E]=j.useState(!1),x=j.useRef(null);j.useEffect(()=>{if(!e)return;const G=new EventSource(`/stream/chat/${encodeURIComponent(e)}`);return G.addEventListener("chat.message",X=>{try{const V=JSON.parse(X.data);i.setQueryData(["chat-session",e],A=>{if(!A||A.messages.some(ge=>ge.id===V.message.id))return A;const ie=A.messages.findIndex(ge=>ge.role==="user"&&ge.id.startsWith("optim-")&&ge.content===V.message.content);if(ie>=0){const ge=[...A.messages];return ge[ie]=V.message,{...A,messages:ge}}return{...A,messages:[...A.messages,V.message]}})}catch{}}),G.addEventListener("chat.message.pending",X=>{try{const V=JSON.parse(X.data);m({id:V.assistantId,blocks:[],done:!1,finalMessage:null})}catch{}}),G.addEventListener("chat.message.chunk.text",X=>{try{const V=JSON.parse(X.data);m(A=>{if(!A||A.id!==V.assistantId)return A;const ae=[...A.blocks],ie=ae[ae.length-1];return ie&&ie.type==="text"?ae[ae.length-1]={...ie,target:ie.target+V.text}:ae.push({type:"text",target:V.text,displayed:""}),{...A,blocks:ae}})}catch{}}),G.addEventListener("chat.message.chunk.tool_use",X=>{try{const V=JSON.parse(X.data);m(A=>!A||A.id!==V.assistantId?A:{...A,blocks:[...A.blocks,{type:"tool_use",id:V.id,title:V.title,kind:V.kind,status:V.status}]})}catch{}}),G.addEventListener("chat.message.chunk.tool_update",X=>{try{const V=JSON.parse(X.data);m(A=>!A||A.id!==V.assistantId?A:{...A,blocks:A.blocks.map(ae=>ae.type==="tool_use"&&ae.id===V.id?{...ae,status:V.status}:ae)})}catch{}}),G.addEventListener("chat.message.complete",X=>{try{const V=JSON.parse(X.data);m(A=>A&&A.id===V.assistantId?{...A,done:!0,finalMessage:V.message}:A)}catch{}}),()=>G.close()},[e,i]),j.useEffect(()=>{if(!d)return;const G=d.blocks.reduce((V,A)=>A.type==="text"?V+(A.target.length-A.displayed.length):V,0);if(G<=0){if(d.done&&d.finalMessage){const V=d.finalMessage;i.setQueryData(["chat-session",e],A=>!A||A.messages.some(ae=>ae.id===V.id)?A:{...A,messages:[...A.messages,V],lastMessageAt:V.ts,messageCount:A.messageCount+1}),i.invalidateQueries({queryKey:["chat-sessions"]}),m(null),E(!1)}return}const X=setTimeout(()=>{m(V=>{if(!V)return V;let A=Math.max(1,Math.ceil(G/40));const ae=V.blocks.map(ie=>{if(ie.type!=="text"||A<=0)return ie;const ge=ie.target.length-ie.displayed.length;if(ge<=0)return ie;const le=Math.min(ge,A);return A-=le,{...ie,displayed:ie.target.slice(0,ie.displayed.length+le)}});return{...V,blocks:ae}})},25);return()=>clearTimeout(X)},[d,i,e]),j.useEffect(()=>{const G=x.current;G&&(G.scrollTop=G.scrollHeight)},[u.data,d]);const S=j.useCallback(async()=>{const G=await Ax();i.invalidateQueries({queryKey:["chat-sessions"]}),a(`/chat/${G.id}`)},[i,a]),w=j.useCallback(async()=>{const G=h.trim();if(!G||g)return;let X=e;if(!X){const A=await Ax();i.invalidateQueries({queryKey:["chat-sessions"]}),X=A.id,a(`/chat/${X}`,{replace:!0})}const V={id:`optim-${Date.now()}`,role:"user",content:G,ts:new Date().toISOString(),status:"complete"};i.setQueryData(["chat-session",X],A=>A?{...A,messages:[...A.messages,V],lastMessageAt:V.ts,messageCount:A.messageCount+1}:{id:X,createdAt:V.ts,lastMessageAt:V.ts,title:G.slice(0,60),project:null,messageCount:1,messages:[V]}),b(""),E(!0);try{await FL(X,G)}catch(A){E(!1),console.error("sendMessage failed",A),o({title:"发送失败",body:A instanceof Error?A.message:String(A)})}},[h,g,e,i,a,o]),T=j.useCallback(async G=>{await l({title:"删除对话",body:"对话记录会永久删除,不可恢复。",confirm:"删除",danger:!0})&&(await HL(G),i.invalidateQueries({queryKey:["chat-sessions"]}),e===G&&a("/chat"))},[i,e,a,l]);return y.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[y.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[y.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:S,type:"button",children:[y.jsx(go,{size:14,strokeWidth:3}),"新建对话"]}),y.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((N=c.data)==null?void 0:N.data.length)??0]}),y.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((I=c.data)==null?void 0:I.data)??[]).map(G=>y.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",e===G.id?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]":"hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)]"].join(" "),onClick:()=>a(`/chat/${G.id}`),onKeyDown:X=>{X.key==="Enter"&&a(`/chat/${G.id}`)},tabIndex:0,role:"button",children:[y.jsx(Ty,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("p",{className:"text-sm font-semibold truncate",children:G.title}),y.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[G.messageCount," msg · ",l0(G.lastMessageAt??G.createdAt)]})]}),y.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:X=>{X.stopPropagation(),T(G.id)},children:y.jsx(Xh,{size:12})})]},G.id)),(((D=c.data)==null?void 0:D.data)??[]).length===0&&y.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),y.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:e?y.jsxs(y.Fragment,{children:[y.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[y.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((H=u.data)==null?void 0:H.title)??"新对话"}),y.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:e})]}),y.jsxs("div",{ref:x,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[((($=u.data)==null?void 0:$.messages)??[]).map(G=>y.jsx(qL,{msg:G},G.id)),d&&y.jsx(PL,{pending:d}),!u.isLoading&&(((z=u.data)==null?void 0:z.messages)??[]).length===0&&!d&&!g&&y.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话 · Enter 发送 · Shift+Enter 换行"})]}),y.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:y.jsxs("div",{className:"flex gap-2 items-end",children:[y.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (Enter 发送,Shift+Enter 换行)",rows:2,value:h,onChange:G=>b(G.target.value),onKeyDown:G=>{G.key==="Enter"&&!G.shiftKey&&!G.nativeEvent.isComposing&&(G.preventDefault(),w())},"aria-label":"消息输入"}),y.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:w,disabled:!h.trim()||g,type:"button","aria-label":"发送",children:[g?y.jsx(Yl,{size:14,strokeWidth:3,className:"animate-spin"}):y.jsx(BN,{size:14,strokeWidth:3}),"发送"]})]})})]}):y.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:y.jsxs("div",{className:"text-center max-w-md",children:[y.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center mx-auto mb-4",children:y.jsx(Ty,{size:32,strokeWidth:2.5})}),y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:'点左上角"新建对话"开始一个 session。或直接在下方输入,会自动建 session。'}),y.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"Enter 发送 · Shift+Enter 换行 · 内容流式返回"})]})})})]})}function qL({msg:e}){const a=e.role==="user",i=e.role==="error",l=e.blocks&&e.blocks.length>0?e.blocks:[{type:"text",text:e.content}];return y.jsx("div",{className:a?"self-end max-w-3xl":"self-start max-w-3xl",children:y.jsxs("div",{className:["nb-card",a?"bg-[var(--color-secondary)]":i?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[y.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-2 flex items-center gap-2",children:[a?"你":i?"错误":"assistant",y.jsx("span",{className:"font-normal",children:"·"}),y.jsx("span",{className:"font-normal",children:l0(e.ts)})]}),y.jsx("div",{className:"flex flex-col gap-2",children:l.map((o,c)=>y.jsx(GL,{block:o},c))})]})})}function PL({pending:e}){const a=(()=>{for(let i=e.blocks.length-1;i>=0;i--)if(e.blocks[i].type==="text")return i;return-1})();return y.jsx("div",{className:"self-start max-w-3xl",children:y.jsxs("div",{className:"nb-card bg-[var(--color-bg)]",children:[y.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-2 flex items-center gap-2",children:["assistant",y.jsx("span",{className:"font-normal",children:"·"}),y.jsxs("span",{className:"flex items-center gap-1 font-normal text-[var(--color-running)]",children:[y.jsx(Yl,{size:10,strokeWidth:3,className:"animate-spin"}),"streaming"]})]}),y.jsxs("div",{className:"flex flex-col gap-2",children:[e.blocks.length===0&&y.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"…"}),e.blocks.map((i,l)=>{if(i.type==="text"){const o=l===a;return y.jsxs("div",{className:"relative",children:[y.jsx(i0,{text:i.displayed}),o&&y.jsx("span",{className:"inline-block w-2 h-4 ml-1 bg-[var(--color-text)] animate-pulse align-middle"})]},l)}return y.jsx(r0,{tool:i},l)})]})]})})}function GL({block:e}){return e.type==="text"?y.jsx(i0,{text:e.text}):y.jsx(r0,{tool:e})}function i0({text:e}){return e?y.jsx("div",{className:"text-sm font-[family-name:var(--font-body)] break-words prose-chat",children:y.jsx(dm,{remarkPlugins:[gm],rehypePlugins:[xm],children:e})}):null}function r0({tool:e}){const[a,i]=j.useState(!1),l=e.status==="completed",o=e.status==="failed",c=!l&&!o;return y.jsxs("div",{className:"border-2 border-[var(--color-text)] rounded-lg overflow-hidden bg-[var(--color-bg-cream)]",children:[y.jsxs("button",{type:"button",onClick:()=>i(u=>!u),className:"w-full flex items-center gap-2 px-3 py-2 text-xs font-[family-name:var(--font-mono)] hover:bg-[var(--color-accent-yellow)] transition-colors",children:[y.jsx(_v,{size:12,strokeWidth:3,className:["transition-transform",a?"rotate-90":""].join(" ")}),y.jsx(ZN,{size:12,strokeWidth:2.5}),y.jsx("span",{className:"font-bold",children:e.kind}),y.jsx("span",{className:"flex-1 text-left text-[var(--color-text-muted)] truncate",children:e.title}),c&&y.jsx(Yl,{size:12,strokeWidth:3,className:"animate-spin text-[var(--color-running)]"}),l&&y.jsx(aN,{size:12,strokeWidth:2.5,className:"text-[var(--color-running)]"}),o&&y.jsx(rN,{size:12,strokeWidth:2.5,className:"text-[var(--color-crashed)]"})]}),a&&y.jsxs("div",{className:"px-3 py-2 text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] border-t-2 border-[var(--color-text)]",children:[y.jsxs("div",{children:["id: ",y.jsx("span",{className:"text-[var(--color-text)]",children:e.id})]}),y.jsxs("div",{children:["status: ",y.jsx("span",{className:"text-[var(--color-text)]",children:e.status})]})]})]})}function l0(e){if(!e)return"";const a=new Date(e),i=Date.now()-a.getTime();return i<6e4?"刚才":i<36e5?`${Math.floor(i/6e4)}m`:i<864e5?`${Math.floor(i/36e5)}h`:a.toLocaleDateString()}function $L(){return y.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[y.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),y.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),y.jsx(jr,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function KL(){return y.jsx(ok,{children:y.jsx(rw,{children:y.jsxs(Cn,{element:y.jsx(sk,{}),children:[y.jsx(Cn,{index:!0,element:y.jsx(nw,{to:"/board",replace:!0})}),y.jsx(Cn,{path:"/projects",element:y.jsx(gk,{})}),y.jsx(Cn,{path:"/projects/new",element:y.jsx(Nk,{})}),y.jsx(Cn,{path:"/projects/:name",element:y.jsx(kk,{})}),y.jsx(Cn,{path:"/board",element:y.jsx(Xk,{})}),y.jsx(Cn,{path:"/workers",element:y.jsx(tT,{})}),y.jsx(Cn,{path:"/logs",element:y.jsx(cT,{})}),y.jsx(Cn,{path:"/skills",element:y.jsx(LL,{})}),y.jsx(Cn,{path:"/system",element:y.jsx(jL,{})}),y.jsx(Cn,{path:"/chat",element:y.jsx(Rx,{})}),y.jsx(Cn,{path:"/chat/:sessionId",element:y.jsx(Rx,{})}),y.jsx(Cn,{path:"*",element:y.jsx($L,{})})]})})})}const YL=new KS({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),s0=document.getElementById("root");if(!s0)throw new Error("#root not found");ES.createRoot(s0).render(y.jsx(j.StrictMode,{children:y.jsx(YS,{client:YL,children:y.jsx(Rw,{children:y.jsx(_k,{children:y.jsx(KL,{})})})})}));
|