difit 3.1.7 → 3.1.8
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/cli/utils.d.ts +0 -11
- package/dist/cli/utils.js +2 -2
- package/dist/client/assets/index-C3dUtNTw.js +92 -0
- package/dist/client/assets/index-D4vctQX_.css +1 -0
- package/dist/client/assets/{prism-csharp-CpJpO3Rp.js → prism-csharp-CBHytnk2.js} +1 -1
- package/dist/client/assets/{prism-hcl-D3OomFiZ.js → prism-hcl-Dg0qCBz9.js} +1 -1
- package/dist/client/assets/{prism-java-DKu7Mdwl.js → prism-java-qbAyqoLL.js} +1 -1
- package/dist/client/assets/{prism-perl-BcSVuy7b.js → prism-perl-C5wGhuJd.js} +1 -1
- package/dist/client/assets/{prism-php-BzFHnoKk.js → prism-php-BAMztFi0.js} +1 -1
- package/dist/client/assets/{prism-ruby-_Fv626ts.js → prism-ruby-BVXH3cUk.js} +1 -1
- package/dist/client/assets/{prism-solidity-DNmqWy7k.js → prism-solidity-DLMGfXyj.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/types/watch.d.ts +0 -14
- package/dist/utils/commentFormatting.d.ts +1 -1
- package/dist/utils/commentFormatting.js +32 -2
- package/dist/utils/commentFormatting.test.js +30 -0
- package/dist/utils/suggestionUtils.d.ts +18 -0
- package/dist/utils/suggestionUtils.js +31 -0
- package/dist/utils/suggestionUtils.test.d.ts +1 -0
- package/dist/utils/suggestionUtils.test.js +106 -0
- package/package.json +5 -6
- package/dist/client/assets/index-BVVFshvc.css +0 -1
- package/dist/client/assets/index-N61VWhYi.js +0 -67
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
function v2(e,r){for(var l=0;l<r.length;l++){const a=r[l];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},Aa={};var Cb;function w2(){if(Cb)return Aa;Cb=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Aa.Fragment=r,Aa.jsx=l,Aa.jsxs=l,Aa}var Nb;function S2(){return Nb||(Nb=1,jf.exports=w2()),jf.exports}var y=S2(),_f={exports:{}},Re={};var Ab;function k2(){if(Ab)return Re;Ab=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function E(D,H,A){this.props=D,this.context=H,this.refs=N,this.updater=A||w}E.prototype.isReactComponent={},E.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,H,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=E.prototype;function j(D,H,A){this.props=D,this.context=H,this.refs=N,this.updater=A||w}var B=j.prototype=new C;B.constructor=j,S(B,E.prototype),B.isPureReactComponent=!0;var q=Array.isArray;function L(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function G(D,H,A){var te=A.ref;return{$$typeof:e,type:D,key:H,ref:te!==void 0?te:null,props:A}}function M(D,H){return G(D.type,H,D.props)}function V(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Y(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(A){return H[A]})}var J=/\/+/g;function U(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Y(""+D.key):H.toString(36)}function X(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(L,L):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function F(D,H,A,te,ue){var fe=typeof D;(fe==="undefined"||fe==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(fe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case e:case r:pe=!0;break;case b:return pe=D._init,F(pe(D._payload),H,A,te,ue)}}if(pe)return ue=ue(D),pe=te===""?"."+U(D,0):te,q(ue)?(A="",pe!=null&&(A=pe.replace(J,"$&/")+"/"),F(ue,H,A,"",function(ge){return ge})):ue!=null&&(V(ue)&&(ue=M(ue,A+(ue.key==null||D&&D.key===ue.key?"":(""+ue.key).replace(J,"$&/")+"/")+pe)),H.push(ue)),1;pe=0;var me=te===""?".":te+":";if(q(D))for(var de=0;de<D.length;de++)te=D[de],fe=me+U(te,de),pe+=F(te,H,A,fe,ue);else if(de=x(D),typeof de=="function")for(D=de.call(D),de=0;!(te=D.next()).done;)te=te.value,fe=me+U(te,de++),pe+=F(te,H,A,fe,ue);else if(fe==="object"){if(typeof D.then=="function")return F(X(D),H,A,te,ue);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pe}function O(D,H,A){if(D==null)return D;var te=[],ue=0;return F(D,te,"","",function(fe){return H.call(A,fe,ue++)}),te}function z(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(A){(D._status===0||D._status===-1)&&(D._status=1,D._result=A)},function(A){(D._status===0||D._status===-1)&&(D._status=2,D._result=A)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var Q=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},_={map:O,forEach:function(D,H,A){O(D,function(){H.apply(this,arguments)},A)},count:function(D){var H=0;return O(D,function(){H++}),H},toArray:function(D){return O(D,function(H){return H})||[]},only:function(D){if(!V(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Re.Activity=g,Re.Children=_,Re.Component=E,Re.Fragment=l,Re.Profiler=s,Re.PureComponent=j,Re.StrictMode=a,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Re.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},Re.cache=function(D){return function(){return D.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(D,H,A){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var te=S({},D.props),ue=D.key;if(H!=null)for(fe in H.key!==void 0&&(ue=""+H.key),H)!$.call(H,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&H.ref===void 0||(te[fe]=H[fe]);var fe=arguments.length-2;if(fe===1)te.children=A;else if(1<fe){for(var pe=Array(fe),me=0;me<fe;me++)pe[me]=arguments[me+2];te.children=pe}return G(D.type,ue,te)},Re.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Re.createElement=function(D,H,A){var te,ue={},fe=null;if(H!=null)for(te in H.key!==void 0&&(fe=""+H.key),H)$.call(H,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ue[te]=H[te]);var pe=arguments.length-2;if(pe===1)ue.children=A;else if(1<pe){for(var me=Array(pe),de=0;de<pe;de++)me[de]=arguments[de+2];ue.children=me}if(D&&D.defaultProps)for(te in pe=D.defaultProps,pe)ue[te]===void 0&&(ue[te]=pe[te]);return G(D,fe,ue)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(D){return{$$typeof:f,render:D}},Re.isValidElement=V,Re.lazy=function(D){return{$$typeof:b,_payload:{_status:-1,_result:D},_init:z}},Re.memo=function(D,H){return{$$typeof:p,type:D,compare:H===void 0?null:H}},Re.startTransition=function(D){var H=I.T,A={};I.T=A;try{var te=D(),ue=I.S;ue!==null&&ue(A,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(L,Q)}catch(fe){Q(fe)}finally{H!==null&&A.types!==null&&(H.types=A.types),I.T=H}},Re.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Re.use=function(D){return I.H.use(D)},Re.useActionState=function(D,H,A){return I.H.useActionState(D,H,A)},Re.useCallback=function(D,H){return I.H.useCallback(D,H)},Re.useContext=function(D){return I.H.useContext(D)},Re.useDebugValue=function(){},Re.useDeferredValue=function(D,H){return I.H.useDeferredValue(D,H)},Re.useEffect=function(D,H){return I.H.useEffect(D,H)},Re.useEffectEvent=function(D){return I.H.useEffectEvent(D)},Re.useId=function(){return I.H.useId()},Re.useImperativeHandle=function(D,H,A){return I.H.useImperativeHandle(D,H,A)},Re.useInsertionEffect=function(D,H){return I.H.useInsertionEffect(D,H)},Re.useLayoutEffect=function(D,H){return I.H.useLayoutEffect(D,H)},Re.useMemo=function(D,H){return I.H.useMemo(D,H)},Re.useOptimistic=function(D,H){return I.H.useOptimistic(D,H)},Re.useReducer=function(D,H,A){return I.H.useReducer(D,H,A)},Re.useRef=function(D){return I.H.useRef(D)},Re.useState=function(D){return I.H.useState(D)},Re.useSyncExternalStore=function(D,H,A){return I.H.useSyncExternalStore(D,H,A)},Re.useTransition=function(){return I.H.useTransition()},Re.version="19.2.3",Re}var Tb;function rh(){return Tb||(Tb=1,_f.exports=k2()),_f.exports}var T=rh();const Jt=eu(T),Mx=v2({__proto__:null,default:Jt},[T]);var Rf={exports:{}},Ta={},Lf={exports:{}},Df={};var jb;function E2(){return jb||(jb=1,(function(e){function r(F,O){var z=F.length;F.push(O);e:for(;0<z;){var Q=z-1>>>1,_=F[Q];if(0<s(_,O))F[Q]=O,F[z]=_,z=Q;else break e}}function l(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var O=F[0],z=F.pop();if(z!==O){F[0]=z;e:for(var Q=0,_=F.length,D=_>>>1;Q<D;){var H=2*(Q+1)-1,A=F[H],te=H+1,ue=F[te];if(0>s(A,z))te<_&&0>s(ue,A)?(F[Q]=ue,F[te]=z,Q=te):(F[Q]=A,F[H]=z,Q=H);else if(te<_&&0>s(ue,z))F[Q]=ue,F[te]=z,Q=te;else break e}}return O}function s(F,O){var z=F.sortIndex-O.sortIndex;return z!==0?z:F.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],p=[],b=1,g=null,v=3,x=!1,w=!1,S=!1,N=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function B(F){for(var O=l(p);O!==null;){if(O.callback===null)a(p);else if(O.startTime<=F)a(p),O.sortIndex=O.expirationTime,r(h,O);else break;O=l(p)}}function q(F){if(S=!1,B(F),!w)if(l(h)!==null)w=!0,L||(L=!0,Y());else{var O=l(p);O!==null&&X(q,O.startTime-F)}}var L=!1,I=-1,$=5,G=-1;function M(){return N?!0:!(e.unstable_now()-G<$)}function V(){if(N=!1,L){var F=e.unstable_now();G=F;var O=!0;try{e:{w=!1,S&&(S=!1,C(I),I=-1),x=!0;var z=v;try{t:{for(B(F),g=l(h);g!==null&&!(g.expirationTime>F&&M());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,v=g.priorityLevel;var _=Q(g.expirationTime<=F);if(F=e.unstable_now(),typeof _=="function"){g.callback=_,B(F),O=!0;break t}g===l(h)&&a(h),B(F)}else a(h);g=l(h)}if(g!==null)O=!0;else{var D=l(p);D!==null&&X(q,D.startTime-F),O=!1}}break e}finally{g=null,v=z,x=!1}O=void 0}}finally{O?Y():L=!1}}}var Y;if(typeof j=="function")Y=function(){j(V)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,U=J.port2;J.port1.onmessage=V,Y=function(){U.postMessage(null)}}else Y=function(){E(V,0)};function X(F,O){I=E(function(){F(e.unstable_now())},O)}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"):$=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var O=3;break;default:O=v}var z=v;v=O;try{return F()}finally{v=z}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(F,O){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=v;v=F;try{return O()}finally{v=z}},e.unstable_scheduleCallback=function(F,O,z){var Q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Q+z:Q):z=Q,F){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=z+_,F={id:b++,callback:O,priorityLevel:F,startTime:z,expirationTime:_,sortIndex:-1},z>Q?(F.sortIndex=z,r(p,F),l(h)===null&&F===l(p)&&(S?(C(I),I=-1):S=!0,X(q,z-Q))):(F.sortIndex=_,r(h,F),w||x||(w=!0,L||(L=!0,Y()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var O=v;return function(){var z=v;v=O;try{return F.apply(this,arguments)}finally{v=z}}}})(Df)),Df}var _b;function C2(){return _b||(_b=1,Lf.exports=E2()),Lf.exports}var Of={exports:{}},Ht={};var Rb;function N2(){if(Rb)return Ht;Rb=1;var e=rh();function r(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,p,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:p,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ht.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(h,p,null,b)},Ht.flushSync=function(h){var p=c.T,b=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=p,a.p=b,a.d.f()}},Ht.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Ht.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Ht.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,g=f(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):b==="script"&&a.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ht.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=f(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Ht.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,g=f(b,p.crossOrigin);a.d.L(h,b,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ht.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=f(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Ht.requestFormReset=function(h){a.d.r(h)},Ht.unstable_batchedUpdates=function(h,p){return h(p)},Ht.useFormState=function(h,p,b){return c.H.useFormState(h,p,b)},Ht.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ht.version="19.2.3",Ht}var Lb;function zx(){if(Lb)return Of.exports;Lb=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(r){console.error(r)}}return e(),Of.exports=N2(),Of.exports}var Db;function A2(){if(Db)return Ta;Db=1;var e=C2(),r=rh(),l=zx();function a(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}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 s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function c(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 f(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 h(t){if(u(t)!==t)throw Error(a(188))}function p(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(a(188));return n!==t?null:t}for(var i=t,o=n;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return h(d),t;if(m===o)return h(d),n;m=m.sibling}throw Error(a(188))}if(i.return!==o.return)i=d,o=m;else{for(var k=!1,R=d.child;R;){if(R===i){k=!0,i=d,o=m;break}if(R===o){k=!0,o=d,i=m;break}R=R.sibling}if(!k){for(R=m.child;R;){if(R===i){k=!0,i=m,o=d;break}if(R===o){k=!0,o=m,i=d;break}R=R.sibling}if(!k)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?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,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),j=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function Y(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var J=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===J?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case E:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case j:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case B:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return n=t.displayName||null,n!==null?n:U(t.type)||"Memo";case $:n=t._payload,t=t._init;try{return U(t(n))}catch{}}return null}var X=Array.isArray,F=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},Q=[],_=-1;function D(t){return{current:t}}function H(t){0>_||(t.current=Q[_],Q[_]=null,_--)}function A(t,n){_++,Q[_]=t.current,t.current=n}var te=D(null),ue=D(null),fe=D(null),pe=D(null);function me(t,n){switch(A(fe,n),A(ue,t),A(te,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Xg(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Xg(n),t=Zg(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(te),A(te,t)}function de(){H(te),H(ue),H(fe)}function ge(t){t.memoizedState!==null&&A(pe,t);var n=te.current,i=Zg(n,t.type);n!==i&&(A(ue,t),A(te,i))}function xe(t){ue.current===t&&(H(te),H(ue)),pe.current===t&&(H(pe),ka._currentValue=z)}var be,ke;function Ne(t){if(be===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);be=n&&n[1]||"",ke=-1<i.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+be+t+ke}var Pe=!1;function Qe(t,n){if(!t||Pe)return"";Pe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(re){var ne=re}Reflect.construct(t,[],ce)}else{try{ce.call()}catch(re){ne=re}t.call(ce.prototype)}}else{try{throw Error()}catch(re){ne=re}(ce=t())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),k=m[0],R=m[1];if(k&&R){var P=k.split(`
|
|
4
|
-
`),ee=R.split(`
|
|
5
|
-
`);for(d=o=0;o<P.length&&!P[o].includes("DetermineComponentFrameRoot");)o++;for(;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;if(o===P.length||d===ee.length)for(o=P.length-1,d=ee.length-1;1<=o&&0<=d&&P[o]!==ee[d];)d--;for(;1<=o&&0<=d;o--,d--)if(P[o]!==ee[d]){if(o!==1||d!==1)do if(o--,d--,0>d||P[o]!==ee[d]){var le=`
|
|
6
|
-
`+P[o].replace(" at new "," at ");return t.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",t.displayName)),le}while(1<=o&&0<=d);break}}}finally{Pe=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ne(i):""}function ze(t,n){switch(t.tag){case 26:case 27:case 5:return Ne(t.type);case 16:return Ne("Lazy");case 13:return t.child!==n&&n!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return Qe(t.type,!1);case 11:return Qe(t.type.render,!1);case 1:return Qe(t.type,!0);case 31:return Ne("Activity");default:return""}}function Bt(t){try{var n="",i=null;do n+=ze(t,i),i=t,t=t.return;while(t);return n}catch(o){return`
|
|
7
|
-
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var pt=Object.prototype.hasOwnProperty,gt=e.unstable_scheduleCallback,Ft=e.unstable_cancelCallback,it=e.unstable_shouldYield,It=e.unstable_requestPaint,at=e.unstable_now,$n=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ye=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Me=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,Yt=e.log,Fn=e.unstable_setDisableYieldValue,Lt=null,mt=null;function jt(t){if(typeof Yt=="function"&&Fn(t),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Lt,t)}catch{}}var Ke=Math.clz32?Math.clz32:zi,En=Math.log,Xt=Math.LN2;function zi(t){return t>>>=0,t===0?32:31-(En(t)/Xt|0)|0}var zl=256,ul=262144,Ar=4194304;function tr(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 cl(t,n,i){var o=t.pendingLanes;if(o===0)return 0;var d=0,m=t.suspendedLanes,k=t.pingedLanes;t=t.warmLanes;var R=o&134217727;return R!==0?(o=R&~m,o!==0?d=tr(o):(k&=R,k!==0?d=tr(k):i||(i=R&~t,i!==0&&(d=tr(i))))):(R=o&~m,R!==0?d=tr(R):k!==0?d=tr(k):i||(i=o&~t,i!==0&&(d=tr(i)))),d===0?0:n!==0&&n!==d&&(n&m)===0&&(m=d&-d,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:d}function Tr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function nr(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 to(){var t=Ar;return Ar<<=1,(Ar&62914560)===0&&(Ar=4194304),t}function Bl(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Vn(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function vu(t,n,i,o,d,m){var k=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var R=t.entanglements,P=t.expirationTimes,ee=t.hiddenUpdates;for(i=k&~i;0<i;){var le=31-Ke(i),ce=1<<le;R[le]=0,P[le]=-1;var ne=ee[le];if(ne!==null)for(ee[le]=null,le=0;le<ne.length;le++){var re=ne[le];re!==null&&(re.lane&=-536870913)}i&=~ce}o!==0&&no(t,o,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(k&~n))}function no(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-Ke(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function ro(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-Ke(i),d=1<<o;d&n|t[o]&n&&(t[o]|=n),i&=~d}}function lo(t,n){var i=n&-n;return i=(i&42)!==0?1:rr(i),(i&(t.suspendedLanes|n))!==0?0:i}function rr(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 Fl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bi(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:yb(t.type))}function io(t,n){var i=O.p;try{return O.p=t,n()}finally{O.p=i}}var Cn=Math.random().toString(36).slice(2),At="__reactFiber$"+Cn,Ut="__reactProps$"+Cn,jr="__reactContainer$"+Cn,Fi="__reactEvents$"+Cn,ie="__reactListeners$"+Cn,ve="__reactHandles$"+Cn,_e="__reactResources$"+Cn,Ee="__reactMarker$"+Cn;function Je(t){delete t[At],delete t[Ut],delete t[Fi],delete t[ie],delete t[ve]}function fn(t){var n=t[At];if(n)return n;for(var i=t.parentNode;i;){if(n=i[jr]||i[At]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=nb(t);t!==null;){if(i=t[At])return i;t=nb(t)}return n}t=i,i=t.parentNode}return null}function In(t){if(t=t[At]||t[jr]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Ii(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function Il(t){var n=t[_e];return n||(n=t[_e]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function _t(t){t[Ee]=!0}var zh=new Set,Bh={};function fl(t,n){Ul(t,n),Ul(t+"Capture",n)}function Ul(t,n){for(Bh[t]=n,t=0;t<n.length;t++)zh.add(n[t])}var fv=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]*$"),Fh={},Ih={};function dv(t){return pt.call(Ih,t)?!0:pt.call(Fh,t)?!1:fv.test(t)?Ih[t]=!0:(Fh[t]=!0,!1)}function ao(t,n,i){if(dv(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function oo(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function lr(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function Nn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hv(t,n,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,m=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(k){i=""+k,m.call(this,k)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(k){i=""+k},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function wu(t){if(!t._valueTracker){var n=Uh(t)?"checked":"value";t._valueTracker=hv(t,n,""+t[n])}}function Hh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=Uh(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function so(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 pv=/[\n"\\]/g;function An(t){return t.replace(pv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Su(t,n,i,o,d,m,k,R){t.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.type=k:t.removeAttribute("type"),n!=null?k==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Nn(n)):t.value!==""+Nn(n)&&(t.value=""+Nn(n)):k!=="submit"&&k!=="reset"||t.removeAttribute("value"),n!=null?ku(t,k,Nn(n)):i!=null?ku(t,k,Nn(i)):o!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+Nn(R):t.removeAttribute("name")}function qh(t,n,i,o,d,m,k,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){wu(t);return}i=i!=null?""+Nn(i):"",n=n!=null?""+Nn(n):i,R||n===t.value||(t.value=n),t.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=R?t.checked:!!o,t.defaultChecked=!!o,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(t.name=k),wu(t)}function ku(t,n,i){n==="number"&&so(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Hl(t,n,i,o){if(t=t.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=n.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&o&&(t[i].defaultSelected=!0)}else{for(i=""+Nn(i),n=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function Ph(t,n,i){if(n!=null&&(n=""+Nn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+Nn(i):""}function $h(t,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(X(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=Nn(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),wu(t)}function ql(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var mv=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 Vh(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||mv.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function Gh(t,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&i[d]!==o&&Vh(t,d,o)}else for(var m in n)n.hasOwnProperty(m)&&Vh(t,m,n[m])}function Eu(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 gv=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"]]),bv=/^[\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 uo(t){return bv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ir(){}var Cu=null;function Nu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Pl=null,$l=null;function Yh(t){var n=In(t);if(n&&(t=n.stateNode)){var i=t[Ut]||null;e:switch(t=n.stateNode,n.type){case"input":if(Su(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+An(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var d=o[Ut]||null;if(!d)throw Error(a(90));Su(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&Hh(o)}break e;case"textarea":Ph(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Hl(t,!!i.multiple,n,!1)}}}var Au=!1;function Xh(t,n,i){if(Au)return t(n,i);Au=!0;try{var o=t(n);return o}finally{if(Au=!1,(Pl!==null||$l!==null)&&(Ko(),Pl&&(n=Pl,t=$l,$l=Pl=null,Yh(n),t)))for(n=0;n<t.length;n++)Yh(t[n])}}function Ui(t,n){var i=t.stateNode;if(i===null)return null;var o=i[Ut]||null;if(o===null)return null;i=o[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":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(ar)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{Tu=!1}var _r=null,ju=null,co=null;function Zh(){if(co)return co;var t,n=ju,i=n.length,o,d="value"in _r?_r.value:_r.textContent,m=d.length;for(t=0;t<i&&n[t]===d[t];t++);var k=i-t;for(o=1;o<=k&&n[i-o]===d[m-o];o++);return co=d.slice(t,1<o?1-o:void 0)}function fo(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 ho(){return!0}function Qh(){return!1}function Wt(t){function n(i,o,d,m,k){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(i=t[R],this[R]=i?i(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ho:Qh,this.isPropagationStopped=Qh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),n}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},po=Wt(dl),qi=g({},dl,{view:0,detail:0}),yv=Wt(qi),_u,Ru,Pi,mo=g({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==Pi&&(Pi&&t.type==="mousemove"?(_u=t.screenX-Pi.screenX,Ru=t.screenY-Pi.screenY):Ru=_u=0,Pi=t),_u)},movementY:function(t){return"movementY"in t?t.movementY:Ru}}),Kh=Wt(mo),xv=g({},mo,{dataTransfer:0}),vv=Wt(xv),wv=g({},qi,{relatedTarget:0}),Lu=Wt(wv),Sv=g({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=Wt(Sv),Ev=g({},dl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cv=Wt(Ev),Nv=g({},dl,{data:0}),Jh=Wt(Nv),Av={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tv={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"},jv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _v(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=jv[t])?!!n[t]:!1}function Du(){return _v}var Rv=g({},qi,{key:function(t){if(t.key){var n=Av[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=fo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Tv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(t){return t.type==="keypress"?fo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?fo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Lv=Wt(Rv),Dv=g({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wh=Wt(Dv),Ov=g({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),Mv=Wt(Ov),zv=g({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bv=Wt(zv),Fv=g({},mo,{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}),Iv=Wt(Fv),Uv=g({},dl,{newState:0,oldState:0}),Hv=Wt(Uv),qv=[9,13,27,32],Ou=ar&&"CompositionEvent"in window,$i=null;ar&&"documentMode"in document&&($i=document.documentMode);var Pv=ar&&"TextEvent"in window&&!$i,ep=ar&&(!Ou||$i&&8<$i&&11>=$i),tp=" ",np=!1;function rp(t,n){switch(t){case"keyup":return qv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vl=!1;function $v(t,n){switch(t){case"compositionend":return lp(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return t=n.data,t===tp&&np?null:t;default:return null}}function Vv(t,n){if(Vl)return t==="compositionend"||!Ou&&rp(t,n)?(t=Zh(),co=ju=_r=null,Vl=!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 ep&&n.locale!=="ko"?null:n.data;default:return null}}var Gv={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 ip(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Gv[t.type]:n==="textarea"}function ap(t,n,i,o){Pl?$l?$l.push(o):$l=[o]:Pl=o,n=ls(n,"onChange"),0<n.length&&(i=new po("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Vi=null,Gi=null;function Yv(t){qg(t,0)}function go(t){var n=Ii(t);if(Hh(n))return t}function op(t,n){if(t==="change")return n}var sp=!1;if(ar){var Mu;if(ar){var zu="oninput"in document;if(!zu){var up=document.createElement("div");up.setAttribute("oninput","return;"),zu=typeof up.oninput=="function"}Mu=zu}else Mu=!1;sp=Mu&&(!document.documentMode||9<document.documentMode)}function cp(){Vi&&(Vi.detachEvent("onpropertychange",fp),Gi=Vi=null)}function fp(t){if(t.propertyName==="value"&&go(Gi)){var n=[];ap(n,Gi,t,Nu(t)),Xh(Yv,n)}}function Xv(t,n,i){t==="focusin"?(cp(),Vi=n,Gi=i,Vi.attachEvent("onpropertychange",fp)):t==="focusout"&&cp()}function Zv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return go(Gi)}function Qv(t,n){if(t==="click")return go(n)}function Kv(t,n){if(t==="input"||t==="change")return go(n)}function Jv(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var dn=typeof Object.is=="function"?Object.is:Jv;function Yi(t,n){if(dn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!pt.call(n,d)||!dn(t[d],n[d]))return!1}return!0}function dp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hp(t,n){var i=dp(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=dp(i)}}function pp(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?pp(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function mp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=so(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=so(t.document)}return n}function Bu(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 Wv=ar&&"documentMode"in document&&11>=document.documentMode,Gl=null,Fu=null,Xi=null,Iu=!1;function gp(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Iu||Gl==null||Gl!==so(o)||(o=Gl,"selectionStart"in o&&Bu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xi&&Yi(Xi,o)||(Xi=o,o=ls(Fu,"onSelect"),0<o.length&&(n=new po("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=Gl)))}function hl(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Yl={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionrun:hl("Transition","TransitionRun"),transitionstart:hl("Transition","TransitionStart"),transitioncancel:hl("Transition","TransitionCancel"),transitionend:hl("Transition","TransitionEnd")},Uu={},bp={};ar&&(bp=document.createElement("div").style,"AnimationEvent"in window||(delete Yl.animationend.animation,delete Yl.animationiteration.animation,delete Yl.animationstart.animation),"TransitionEvent"in window||delete Yl.transitionend.transition);function pl(t){if(Uu[t])return Uu[t];if(!Yl[t])return t;var n=Yl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in bp)return Uu[t]=n[i];return t}var yp=pl("animationend"),xp=pl("animationiteration"),vp=pl("animationstart"),ew=pl("transitionrun"),tw=pl("transitionstart"),nw=pl("transitioncancel"),wp=pl("transitionend"),Sp=new Map,Hu="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(" ");Hu.push("scrollEnd");function Un(t,n){Sp.set(t,n),fl(n,[t])}var bo=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)},Tn=[],Xl=0,qu=0;function yo(){for(var t=Xl,n=qu=Xl=0;n<t;){var i=Tn[n];Tn[n++]=null;var o=Tn[n];Tn[n++]=null;var d=Tn[n];Tn[n++]=null;var m=Tn[n];if(Tn[n++]=null,o!==null&&d!==null){var k=o.pending;k===null?d.next=d:(d.next=k.next,k.next=d),o.pending=d}m!==0&&kp(i,d,m)}}function xo(t,n,i,o){Tn[Xl++]=t,Tn[Xl++]=n,Tn[Xl++]=i,Tn[Xl++]=o,qu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Pu(t,n,i,o){return xo(t,n,i,o),vo(t)}function ml(t,n){return xo(t,null,null,n),vo(t)}function kp(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&n!==null&&(d=31-Ke(i),t=m.hiddenUpdates,o=t[d],o===null?t[d]=[n]:o.push(n),n.lane=i|536870912),m):null}function vo(t){if(50<ga)throw ga=0,Jc=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Zl={};function rw(t,n,i,o){this.tag=t,this.key=i,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(t,n,i,o){return new rw(t,n,i,o)}function $u(t){return t=t.prototype,!(!t||!t.isReactComponent)}function or(t,n){var i=t.alternate;return i===null?(i=hn(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Ep(t,n){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function wo(t,n,i,o,d,m){var k=0;if(o=t,typeof t=="function")$u(t)&&(k=1);else if(typeof t=="string")k=s2(t,i,te.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case G:return t=hn(31,i,n,d),t.elementType=G,t.lanes=m,t;case S:return gl(i.children,d,m,n);case N:k=8,d|=24;break;case E:return t=hn(12,i,n,d|2),t.elementType=E,t.lanes=m,t;case q:return t=hn(13,i,n,d),t.elementType=q,t.lanes=m,t;case L:return t=hn(19,i,n,d),t.elementType=L,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:k=10;break e;case C:k=9;break e;case B:k=11;break e;case I:k=14;break e;case $:k=16,o=null;break e}k=29,i=Error(a(130,t===null?"null":typeof t,"")),o=null}return n=hn(k,i,n,d),n.elementType=t,n.type=o,n.lanes=m,n}function gl(t,n,i,o){return t=hn(7,t,o,n),t.lanes=i,t}function Vu(t,n,i){return t=hn(6,t,null,n),t.lanes=i,t}function Cp(t){var n=hn(18,null,null,0);return n.stateNode=t,n}function Gu(t,n,i){return n=hn(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Np=new WeakMap;function jn(t,n){if(typeof t=="object"&&t!==null){var i=Np.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Bt(n)},Np.set(t,n),n)}return{value:t,source:n,stack:Bt(n)}}var Ql=[],Kl=0,So=null,Zi=0,_n=[],Rn=0,Rr=null,Gn=1,Yn="";function sr(t,n){Ql[Kl++]=Zi,Ql[Kl++]=So,So=t,Zi=n}function Ap(t,n,i){_n[Rn++]=Gn,_n[Rn++]=Yn,_n[Rn++]=Rr,Rr=t;var o=Gn;t=Yn;var d=32-Ke(o)-1;o&=~(1<<d),i+=1;var m=32-Ke(n)+d;if(30<m){var k=d-d%5;m=(o&(1<<k)-1).toString(32),o>>=k,d-=k,Gn=1<<32-Ke(n)+d|i<<d|o,Yn=m+t}else Gn=1<<m|i<<d|o,Yn=t}function Yu(t){t.return!==null&&(sr(t,1),Ap(t,1,0))}function Xu(t){for(;t===So;)So=Ql[--Kl],Ql[Kl]=null,Zi=Ql[--Kl],Ql[Kl]=null;for(;t===Rr;)Rr=_n[--Rn],_n[Rn]=null,Yn=_n[--Rn],_n[Rn]=null,Gn=_n[--Rn],_n[Rn]=null}function Tp(t,n){_n[Rn++]=Gn,_n[Rn++]=Yn,_n[Rn++]=Rr,Gn=n.id,Yn=n.overflow,Rr=t}var Dt=null,ft=null,qe=!1,Lr=null,Ln=!1,Zu=Error(a(519));function Dr(t){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(jn(n,t)),Zu}function jp(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[At]=t,n[Ut]=o,i){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(i=0;i<ya.length;i++)Fe(ya[i],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":Fe("invalid",n),qh(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Fe("invalid",n);break;case"textarea":Fe("invalid",n),$h(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||Gg(n.textContent,i)?(o.popover!=null&&(Fe("beforetoggle",n),Fe("toggle",n)),o.onScroll!=null&&Fe("scroll",n),o.onScrollEnd!=null&&Fe("scrollend",n),o.onClick!=null&&(n.onclick=ir),n=!0):n=!1,n||Dr(t,!0)}function _p(t){for(Dt=t.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Ln=!1;return;case 27:case 3:Ln=!0;return;default:Dt=Dt.return}}function Jl(t){if(t!==Dt)return!1;if(!qe)return _p(t),qe=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||pf(t.type,t.memoizedProps)),i=!i),i&&ft&&Dr(t),_p(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ft=tb(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ft=tb(t)}else n===27?(n=ft,Yr(t.type)?(t=xf,xf=null,ft=t):ft=n):ft=Dt?On(t.stateNode.nextSibling):null;return!0}function bl(){ft=Dt=null,qe=!1}function Qu(){var t=Lr;return t!==null&&(rn===null?rn=t:rn.push.apply(rn,t),Lr=null),t}function Qi(t){Lr===null?Lr=[t]:Lr.push(t)}var Ku=D(null),yl=null,ur=null;function Or(t,n,i){A(Ku,n._currentValue),n._currentValue=i}function cr(t){t._currentValue=Ku.current,H(Ku)}function Ju(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function Wu(t,n,i,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var k=d.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=d;for(var P=0;P<n.length;P++)if(R.context===n[P]){m.lanes|=i,R=m.alternate,R!==null&&(R.lanes|=i),Ju(m.return,i,t),o||(k=null);break e}m=R.next}}else if(d.tag===18){if(k=d.return,k===null)throw Error(a(341));k.lanes|=i,m=k.alternate,m!==null&&(m.lanes|=i),Ju(k,i,t),k=null}else k=d.child;if(k!==null)k.return=d;else for(k=d;k!==null;){if(k===t){k=null;break}if(d=k.sibling,d!==null){d.return=k.return,k=d;break}k=k.return}d=k}}function Wl(t,n,i,o){t=null;for(var d=n,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var k=d.alternate;if(k===null)throw Error(a(387));if(k=k.memoizedProps,k!==null){var R=d.type;dn(d.pendingProps.value,k.value)||(t!==null?t.push(R):t=[R])}}else if(d===pe.current){if(k=d.alternate,k===null)throw Error(a(387));k.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(ka):t=[ka])}d=d.return}t!==null&&Wu(n,t,i,o),n.flags|=262144}function ko(t){for(t=t.firstContext;t!==null;){if(!dn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xl(t){yl=t,ur=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ot(t){return Rp(yl,t)}function Eo(t,n){return yl===null&&xl(t),Rp(t,n)}function Rp(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},ur===null){if(t===null)throw Error(a(308));ur=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else ur=ur.next=n;return i}var lw=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},iw=e.unstable_scheduleCallback,aw=e.unstable_NormalPriority,wt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new lw,data:new Map,refCount:0}}function Ki(t){t.refCount--,t.refCount===0&&iw(aw,function(){t.controller.abort()})}var Ji=null,tc=0,ei=0,ti=null;function ow(t,n){if(Ji===null){var i=Ji=[];tc=0,ei=lf(),ti={status:"pending",value:void 0,then:function(o){i.push(o)}}}return tc++,n.then(Lp,Lp),n}function Lp(){if(--tc===0&&Ji!==null){ti!==null&&(ti.status="fulfilled");var t=Ji;Ji=null,ei=0,ti=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function sw(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<i.length;d++)(0,i[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var Dp=F.S;F.S=function(t,n){gg=at(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&ow(t,n),Dp!==null&&Dp(t,n)};var vl=D(null);function nc(){var t=vl.current;return t!==null?t:ot.pooledCache}function Co(t,n){n===null?A(vl,vl.current):A(vl,n.pool)}function Op(){var t=nc();return t===null?null:{parent:wt._currentValue,pool:t}}var ni=Error(a(460)),rc=Error(a(474)),No=Error(a(542)),Ao={then:function(){}};function Mp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function zp(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(ir,ir),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Fp(t),t;default:if(typeof n.status=="string")n.then(ir,ir);else{if(t=ot,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Fp(t),t}throw Sl=n,ni}}function wl(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Sl=i,ni):i}}var Sl=null;function Bp(){if(Sl===null)throw Error(a(459));var t=Sl;return Sl=null,t}function Fp(t){if(t===ni||t===No)throw Error(a(483))}var ri=null,Wi=0;function To(t){var n=Wi;return Wi+=1,ri===null&&(ri=[]),zp(ri,t,n)}function ea(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function jo(t,n){throw n.$$typeof===v?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Ip(t){function n(K,Z){if(t){var W=K.deletions;W===null?(K.deletions=[Z],K.flags|=16):W.push(Z)}}function i(K,Z){if(!t)return null;for(;Z!==null;)n(K,Z),Z=Z.sibling;return null}function o(K){for(var Z=new Map;K!==null;)K.key!==null?Z.set(K.key,K):Z.set(K.index,K),K=K.sibling;return Z}function d(K,Z){return K=or(K,Z),K.index=0,K.sibling=null,K}function m(K,Z,W){return K.index=W,t?(W=K.alternate,W!==null?(W=W.index,W<Z?(K.flags|=67108866,Z):W):(K.flags|=67108866,Z)):(K.flags|=1048576,Z)}function k(K){return t&&K.alternate===null&&(K.flags|=67108866),K}function R(K,Z,W,oe){return Z===null||Z.tag!==6?(Z=Vu(W,K.mode,oe),Z.return=K,Z):(Z=d(Z,W),Z.return=K,Z)}function P(K,Z,W,oe){var Ce=W.type;return Ce===S?le(K,Z,W.props.children,oe,W.key):Z!==null&&(Z.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===$&&wl(Ce)===Z.type)?(Z=d(Z,W.props),ea(Z,W),Z.return=K,Z):(Z=wo(W.type,W.key,W.props,null,K.mode,oe),ea(Z,W),Z.return=K,Z)}function ee(K,Z,W,oe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==W.containerInfo||Z.stateNode.implementation!==W.implementation?(Z=Gu(W,K.mode,oe),Z.return=K,Z):(Z=d(Z,W.children||[]),Z.return=K,Z)}function le(K,Z,W,oe,Ce){return Z===null||Z.tag!==7?(Z=gl(W,K.mode,oe,Ce),Z.return=K,Z):(Z=d(Z,W),Z.return=K,Z)}function ce(K,Z,W){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=Vu(""+Z,K.mode,W),Z.return=K,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return W=wo(Z.type,Z.key,Z.props,null,K.mode,W),ea(W,Z),W.return=K,W;case w:return Z=Gu(Z,K.mode,W),Z.return=K,Z;case $:return Z=wl(Z),ce(K,Z,W)}if(X(Z)||Y(Z))return Z=gl(Z,K.mode,W,null),Z.return=K,Z;if(typeof Z.then=="function")return ce(K,To(Z),W);if(Z.$$typeof===j)return ce(K,Eo(K,Z),W);jo(K,Z)}return null}function ne(K,Z,W,oe){var Ce=Z!==null?Z.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Ce!==null?null:R(K,Z,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case x:return W.key===Ce?P(K,Z,W,oe):null;case w:return W.key===Ce?ee(K,Z,W,oe):null;case $:return W=wl(W),ne(K,Z,W,oe)}if(X(W)||Y(W))return Ce!==null?null:le(K,Z,W,oe,null);if(typeof W.then=="function")return ne(K,Z,To(W),oe);if(W.$$typeof===j)return ne(K,Z,Eo(K,W),oe);jo(K,W)}return null}function re(K,Z,W,oe,Ce){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return K=K.get(W)||null,R(Z,K,""+oe,Ce);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:return K=K.get(oe.key===null?W:oe.key)||null,P(Z,K,oe,Ce);case w:return K=K.get(oe.key===null?W:oe.key)||null,ee(Z,K,oe,Ce);case $:return oe=wl(oe),re(K,Z,W,oe,Ce)}if(X(oe)||Y(oe))return K=K.get(W)||null,le(Z,K,oe,Ce,null);if(typeof oe.then=="function")return re(K,Z,W,To(oe),Ce);if(oe.$$typeof===j)return re(K,Z,W,Eo(Z,oe),Ce);jo(Z,oe)}return null}function we(K,Z,W,oe){for(var Ce=null,Ye=null,Se=Z,De=Z=0,He=null;Se!==null&&De<W.length;De++){Se.index>De?(He=Se,Se=null):He=Se.sibling;var Xe=ne(K,Se,W[De],oe);if(Xe===null){Se===null&&(Se=He);break}t&&Se&&Xe.alternate===null&&n(K,Se),Z=m(Xe,Z,De),Ye===null?Ce=Xe:Ye.sibling=Xe,Ye=Xe,Se=He}if(De===W.length)return i(K,Se),qe&&sr(K,De),Ce;if(Se===null){for(;De<W.length;De++)Se=ce(K,W[De],oe),Se!==null&&(Z=m(Se,Z,De),Ye===null?Ce=Se:Ye.sibling=Se,Ye=Se);return qe&&sr(K,De),Ce}for(Se=o(Se);De<W.length;De++)He=re(Se,K,De,W[De],oe),He!==null&&(t&&He.alternate!==null&&Se.delete(He.key===null?De:He.key),Z=m(He,Z,De),Ye===null?Ce=He:Ye.sibling=He,Ye=He);return t&&Se.forEach(function(Jr){return n(K,Jr)}),qe&&sr(K,De),Ce}function Te(K,Z,W,oe){if(W==null)throw Error(a(151));for(var Ce=null,Ye=null,Se=Z,De=Z=0,He=null,Xe=W.next();Se!==null&&!Xe.done;De++,Xe=W.next()){Se.index>De?(He=Se,Se=null):He=Se.sibling;var Jr=ne(K,Se,Xe.value,oe);if(Jr===null){Se===null&&(Se=He);break}t&&Se&&Jr.alternate===null&&n(K,Se),Z=m(Jr,Z,De),Ye===null?Ce=Jr:Ye.sibling=Jr,Ye=Jr,Se=He}if(Xe.done)return i(K,Se),qe&&sr(K,De),Ce;if(Se===null){for(;!Xe.done;De++,Xe=W.next())Xe=ce(K,Xe.value,oe),Xe!==null&&(Z=m(Xe,Z,De),Ye===null?Ce=Xe:Ye.sibling=Xe,Ye=Xe);return qe&&sr(K,De),Ce}for(Se=o(Se);!Xe.done;De++,Xe=W.next())Xe=re(Se,K,De,Xe.value,oe),Xe!==null&&(t&&Xe.alternate!==null&&Se.delete(Xe.key===null?De:Xe.key),Z=m(Xe,Z,De),Ye===null?Ce=Xe:Ye.sibling=Xe,Ye=Xe);return t&&Se.forEach(function(x2){return n(K,x2)}),qe&&sr(K,De),Ce}function rt(K,Z,W,oe){if(typeof W=="object"&&W!==null&&W.type===S&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case x:e:{for(var Ce=W.key;Z!==null;){if(Z.key===Ce){if(Ce=W.type,Ce===S){if(Z.tag===7){i(K,Z.sibling),oe=d(Z,W.props.children),oe.return=K,K=oe;break e}}else if(Z.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===$&&wl(Ce)===Z.type){i(K,Z.sibling),oe=d(Z,W.props),ea(oe,W),oe.return=K,K=oe;break e}i(K,Z);break}else n(K,Z);Z=Z.sibling}W.type===S?(oe=gl(W.props.children,K.mode,oe,W.key),oe.return=K,K=oe):(oe=wo(W.type,W.key,W.props,null,K.mode,oe),ea(oe,W),oe.return=K,K=oe)}return k(K);case w:e:{for(Ce=W.key;Z!==null;){if(Z.key===Ce)if(Z.tag===4&&Z.stateNode.containerInfo===W.containerInfo&&Z.stateNode.implementation===W.implementation){i(K,Z.sibling),oe=d(Z,W.children||[]),oe.return=K,K=oe;break e}else{i(K,Z);break}else n(K,Z);Z=Z.sibling}oe=Gu(W,K.mode,oe),oe.return=K,K=oe}return k(K);case $:return W=wl(W),rt(K,Z,W,oe)}if(X(W))return we(K,Z,W,oe);if(Y(W)){if(Ce=Y(W),typeof Ce!="function")throw Error(a(150));return W=Ce.call(W),Te(K,Z,W,oe)}if(typeof W.then=="function")return rt(K,Z,To(W),oe);if(W.$$typeof===j)return rt(K,Z,Eo(K,W),oe);jo(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Z!==null&&Z.tag===6?(i(K,Z.sibling),oe=d(Z,W),oe.return=K,K=oe):(i(K,Z),oe=Vu(W,K.mode,oe),oe.return=K,K=oe),k(K)):i(K,Z)}return function(K,Z,W,oe){try{Wi=0;var Ce=rt(K,Z,W,oe);return ri=null,Ce}catch(Se){if(Se===ni||Se===No)throw Se;var Ye=hn(29,Se,null,K.mode);return Ye.lanes=oe,Ye.return=K,Ye}}}var kl=Ip(!0),Up=Ip(!1),Mr=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(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 zr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Br(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Ze&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=vo(t),kp(t,null,i),n}return xo(t,o,n,i),vo(t)}function ta(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,ro(t,i)}}function ac(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var k={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=k:m=m.next=k,i=i.next}while(i!==null);m===null?d=m=n:m=m.next=n}else d=m=n;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var oc=!1;function na(){if(oc){var t=ti;if(t!==null)throw t}}function ra(t,n,i,o){oc=!1;var d=t.updateQueue;Mr=!1;var m=d.firstBaseUpdate,k=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var P=R,ee=P.next;P.next=null,k===null?m=ee:k.next=ee,k=P;var le=t.alternate;le!==null&&(le=le.updateQueue,R=le.lastBaseUpdate,R!==k&&(R===null?le.firstBaseUpdate=ee:R.next=ee,le.lastBaseUpdate=P))}if(m!==null){var ce=d.baseState;k=0,le=ee=P=null,R=m;do{var ne=R.lane&-536870913,re=ne!==R.lane;if(re?(Ue&ne)===ne:(o&ne)===ne){ne!==0&&ne===ei&&(oc=!0),le!==null&&(le=le.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var we=t,Te=R;ne=n;var rt=i;switch(Te.tag){case 1:if(we=Te.payload,typeof we=="function"){ce=we.call(rt,ce,ne);break e}ce=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Te.payload,ne=typeof we=="function"?we.call(rt,ce,ne):we,ne==null)break e;ce=g({},ce,ne);break e;case 2:Mr=!0}}ne=R.callback,ne!==null&&(t.flags|=64,re&&(t.flags|=8192),re=d.callbacks,re===null?d.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:R.tag,payload:R.payload,callback:R.callback,next:null},le===null?(ee=le=re,P=ce):le=le.next=re,k|=ne;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;re=R,R=re.next,re.next=null,d.lastBaseUpdate=re,d.shared.pending=null}}while(!0);le===null&&(P=ce),d.baseState=P,d.firstBaseUpdate=ee,d.lastBaseUpdate=le,m===null&&(d.shared.lanes=0),qr|=k,t.lanes=k,t.memoizedState=ce}}function Hp(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function qp(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Hp(i[t],n)}var li=D(null),_o=D(0);function Pp(t,n){t=xr,A(_o,t),A(li,n),xr=t|n.baseLanes}function sc(){A(_o,xr),A(li,li.current)}function uc(){xr=_o.current,H(li),H(_o)}var pn=D(null),Dn=null;function Fr(t){var n=t.alternate;A(xt,xt.current&1),A(pn,t),Dn===null&&(n===null||li.current!==null||n.memoizedState!==null)&&(Dn=t)}function cc(t){A(xt,xt.current),A(pn,t),Dn===null&&(Dn=t)}function $p(t){t.tag===22?(A(xt,xt.current),A(pn,t),Dn===null&&(Dn=t)):Ir()}function Ir(){A(xt,xt.current),A(pn,pn.current)}function mn(t){H(pn),Dn===t&&(Dn=null),H(xt)}var xt=D(0);function Ro(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||bf(i)||yf(i)))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 fr=0,Le=null,tt=null,St=null,Lo=!1,ii=!1,El=!1,Do=0,la=0,ai=null,uw=0;function bt(){throw Error(a(321))}function fc(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!dn(t[i],n[i]))return!1;return!0}function dc(t,n,i,o,d,m){return fr=m,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=t===null||t.memoizedState===null?Am:Ac,El=!1,m=i(o,d),El=!1,ii&&(m=Gp(n,i,o,d)),Vp(t),m}function Vp(t){F.H=oa;var n=tt!==null&&tt.next!==null;if(fr=0,St=tt=Le=null,Lo=!1,la=0,ai=null,n)throw Error(a(300));t===null||kt||(t=t.dependencies,t!==null&&ko(t)&&(kt=!0))}function Gp(t,n,i,o){Le=t;var d=0;do{if(ii&&(ai=null),la=0,ii=!1,25<=d)throw Error(a(301));if(d+=1,St=tt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=Tm,m=n(i,o)}while(ii);return m}function cw(){var t=F.H,n=t.useState()[0];return n=typeof n.then=="function"?ia(n):n,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(Le.flags|=1024),n}function hc(){var t=Do!==0;return Do=0,t}function pc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function mc(t){if(Lo){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Lo=!1}fr=0,St=tt=Le=null,ii=!1,la=Do=0,ai=null}function Zt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?Le.memoizedState=St=t:St=St.next=t,St}function vt(){if(tt===null){var t=Le.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var n=St===null?Le.memoizedState:St.next;if(n!==null)St=n,tt=t;else{if(t===null)throw Le.alternate===null?Error(a(467)):Error(a(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},St===null?Le.memoizedState=St=t:St=St.next=t}return St}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ia(t){var n=la;return la+=1,ai===null&&(ai=[]),t=zp(ai,t,n),n=Le,(St===null?n.memoizedState:St.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?Am:Ac),t}function Mo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ia(t);if(t.$$typeof===j)return Ot(t)}throw Error(a(438,String(t)))}function gc(t){var n=null,i=Le.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Le.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Oo(),Le.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=M;return n.index++,i}function dr(t,n){return typeof n=="function"?n(t):n}function zo(t){var n=vt();return bc(n,tt,t)}function bc(t,n,i){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var d=t.baseQueue,m=o.pending;if(m!==null){if(d!==null){var k=d.next;d.next=m.next,m.next=k}n.baseQueue=d=m,o.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{n=d.next;var R=k=null,P=null,ee=n,le=!1;do{var ce=ee.lane&-536870913;if(ce!==ee.lane?(Ue&ce)===ce:(fr&ce)===ce){var ne=ee.revertLane;if(ne===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ce===ei&&(le=!0);else if((fr&ne)===ne){ee=ee.next,ne===ei&&(le=!0);continue}else ce={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(R=P=ce,k=m):P=P.next=ce,Le.lanes|=ne,qr|=ne;ce=ee.action,El&&i(m,ce),m=ee.hasEagerState?ee.eagerState:i(m,ce)}else ne={lane:ce,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(R=P=ne,k=m):P=P.next=ne,Le.lanes|=ce,qr|=ce;ee=ee.next}while(ee!==null&&ee!==n);if(P===null?k=m:P.next=R,!dn(m,t.memoizedState)&&(kt=!0,le&&(i=ti,i!==null)))throw i;t.memoizedState=m,t.baseState=k,t.baseQueue=P,o.lastRenderedState=m}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function yc(t){var n=vt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var o=i.dispatch,d=i.pending,m=n.memoizedState;if(d!==null){i.pending=null;var k=d=d.next;do m=t(m,k.action),k=k.next;while(k!==d);dn(m,n.memoizedState)||(kt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,o]}function Yp(t,n,i){var o=Le,d=vt(),m=qe;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=n();var k=!dn((tt||d).memoizedState,i);if(k&&(d.memoizedState=i,kt=!0),d=d.queue,wc(Qp.bind(null,o,d,t),[t]),d.getSnapshot!==n||k||St!==null&&St.memoizedState.tag&1){if(o.flags|=2048,oi(9,{destroy:void 0},Zp.bind(null,o,d,i,n),null),ot===null)throw Error(a(349));m||(fr&127)!==0||Xp(o,n,i)}return i}function Xp(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Le.updateQueue,n===null?(n=Oo(),Le.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function Zp(t,n,i,o){n.value=i,n.getSnapshot=o,Kp(n)&&Jp(t)}function Qp(t,n,i){return i(function(){Kp(n)&&Jp(t)})}function Kp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!dn(t,i)}catch{return!0}}function Jp(t){var n=ml(t,2);n!==null&&ln(n,t,2)}function xc(t){var n=Zt();if(typeof t=="function"){var i=t;if(t=i(),El){jt(!0);try{i()}finally{jt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:t},n}function Wp(t,n,i,o){return t.baseState=i,bc(t,tt,typeof o=="function"?o:dr)}function fw(t,n,i,o,d){if(Io(t))throw Error(a(485));if(t=n.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){m.listeners.push(k)}};F.T!==null?i(!0):m.isTransition=!1,o(m),i=n.pending,i===null?(m.next=n.pending=m,em(n,m)):(m.next=i.next,n.pending=i.next=m)}}function em(t,n){var i=n.action,o=n.payload,d=t.state;if(n.isTransition){var m=F.T,k={};F.T=k;try{var R=i(d,o),P=F.S;P!==null&&P(k,R),tm(t,n,R)}catch(ee){vc(t,n,ee)}finally{m!==null&&k.types!==null&&(m.types=k.types),F.T=m}}else try{m=i(d,o),tm(t,n,m)}catch(ee){vc(t,n,ee)}}function tm(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){nm(t,n,o)},function(o){return vc(t,n,o)}):nm(t,n,i)}function nm(t,n,i){n.status="fulfilled",n.value=i,rm(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,em(t,i)))}function vc(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,rm(n),n=n.next;while(n!==o)}t.action=null}function rm(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function lm(t,n){return n}function im(t,n){if(qe){var i=ot.formState;if(i!==null){e:{var o=Le;if(qe){if(ft){t:{for(var d=ft,m=Ln;d.nodeType!==8;){if(!m){d=null;break t}if(d=On(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){ft=On(d.nextSibling),o=d.data==="F!";break e}}Dr(o)}o=!1}o&&(n=i[0])}}return i=Zt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:n},i.queue=o,i=Em.bind(null,Le,o),o.dispatch=i,o=xc(!1),m=Nc.bind(null,Le,!1,o.queue),o=Zt(),d={state:n,dispatch:null,action:t,pending:null},o.queue=d,i=fw.bind(null,Le,d,m,i),d.dispatch=i,o.memoizedState=t,[n,i,!1]}function am(t){var n=vt();return om(n,tt,t)}function om(t,n,i){if(n=bc(t,n,lm)[0],t=zo(dr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=ia(n)}catch(k){throw k===ni?No:k}else o=n;n=vt();var d=n.queue,m=d.dispatch;return i!==n.memoizedState&&(Le.flags|=2048,oi(9,{destroy:void 0},dw.bind(null,d,i),null)),[o,m,t]}function dw(t,n){t.action=n}function sm(t){var n=vt(),i=tt;if(i!==null)return om(n,i,t);vt(),n=n.memoizedState,i=vt();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function oi(t,n,i,o){return t={tag:t,create:i,deps:o,inst:n,next:null},n=Le.updateQueue,n===null&&(n=Oo(),Le.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function um(){return vt().memoizedState}function Bo(t,n,i,o){var d=Zt();Le.flags|=t,d.memoizedState=oi(1|n,{destroy:void 0},i,o===void 0?null:o)}function Fo(t,n,i,o){var d=vt();o=o===void 0?null:o;var m=d.memoizedState.inst;tt!==null&&o!==null&&fc(o,tt.memoizedState.deps)?d.memoizedState=oi(n,m,i,o):(Le.flags|=t,d.memoizedState=oi(1|n,m,i,o))}function cm(t,n){Bo(8390656,8,t,n)}function wc(t,n){Fo(2048,8,t,n)}function hw(t){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=Oo(),Le.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function fm(t){var n=vt().memoizedState;return hw({ref:n,nextImpl:t}),function(){if((Ze&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function dm(t,n){return Fo(4,2,t,n)}function hm(t,n){return Fo(4,4,t,n)}function pm(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function mm(t,n,i){i=i!=null?i.concat([t]):null,Fo(4,4,pm.bind(null,n,t),i)}function Sc(){}function gm(t,n){var i=vt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&fc(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function bm(t,n){var i=vt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&fc(n,o[1]))return o[0];if(o=t(),El){jt(!0);try{t()}finally{jt(!1)}}return i.memoizedState=[o,n],o}function kc(t,n,i){return i===void 0||(fr&1073741824)!==0&&(Ue&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=yg(),Le.lanes|=t,qr|=t,i)}function ym(t,n,i,o){return dn(i,n)?i:li.current!==null?(t=kc(t,i,o),dn(t,n)||(kt=!0),t):(fr&42)===0||(fr&1073741824)!==0&&(Ue&261930)===0?(kt=!0,t.memoizedState=i):(t=yg(),Le.lanes|=t,qr|=t,n)}function xm(t,n,i,o,d){var m=O.p;O.p=m!==0&&8>m?m:8;var k=F.T,R={};F.T=R,Nc(t,!1,n,i);try{var P=d(),ee=F.S;if(ee!==null&&ee(R,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var le=sw(P,o);aa(t,n,le,yn(t))}else aa(t,n,o,yn(t))}catch(ce){aa(t,n,{then:function(){},status:"rejected",reason:ce},yn())}finally{O.p=m,k!==null&&R.types!==null&&(k.types=R.types),F.T=k}}function pw(){}function Ec(t,n,i,o){if(t.tag!==5)throw Error(a(476));var d=vm(t).queue;xm(t,d,n,z,i===null?pw:function(){return wm(t),i(o)})}function vm(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:z},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function wm(t){var n=vm(t);n.next===null&&(n=t.alternate.memoizedState),aa(t,n.next.queue,{},yn())}function Cc(){return Ot(ka)}function Sm(){return vt().memoizedState}function km(){return vt().memoizedState}function mw(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=yn();t=zr(i);var o=Br(n,t,i);o!==null&&(ln(o,n,i),ta(o,n,i)),n={cache:ec()},t.payload=n;return}n=n.return}}function gw(t,n,i){var o=yn();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Io(t)?Cm(n,i):(i=Pu(t,n,i,o),i!==null&&(ln(i,t,o),Nm(i,n,o)))}function Em(t,n,i){var o=yn();aa(t,n,i,o)}function aa(t,n,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Io(t))Cm(n,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var k=n.lastRenderedState,R=m(k,i);if(d.hasEagerState=!0,d.eagerState=R,dn(R,k))return xo(t,n,d,0),ot===null&&yo(),!1}catch{}if(i=Pu(t,n,d,o),i!==null)return ln(i,t,o),Nm(i,n,o),!0}return!1}function Nc(t,n,i,o){if(o={lane:2,revertLane:lf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Io(t)){if(n)throw Error(a(479))}else n=Pu(t,i,o,2),n!==null&&ln(n,t,2)}function Io(t){var n=t.alternate;return t===Le||n!==null&&n===Le}function Cm(t,n){ii=Lo=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Nm(t,n,i){if((i&4194048)!==0){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,ro(t,i)}}var oa={readContext:Ot,use:Mo,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};oa.useEffectEvent=bt;var Am={readContext:Ot,use:Mo,useCallback:function(t,n){return Zt().memoizedState=[t,n===void 0?null:n],t},useContext:Ot,useEffect:cm,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Bo(4194308,4,pm.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Bo(4194308,4,t,n)},useInsertionEffect:function(t,n){Bo(4,2,t,n)},useMemo:function(t,n){var i=Zt();n=n===void 0?null:n;var o=t();if(El){jt(!0);try{t()}finally{jt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=Zt();if(i!==void 0){var d=i(n);if(El){jt(!0);try{i(n)}finally{jt(!1)}}}else d=n;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=gw.bind(null,Le,t),[o.memoizedState,t]},useRef:function(t){var n=Zt();return t={current:t},n.memoizedState=t},useState:function(t){t=xc(t);var n=t.queue,i=Em.bind(null,Le,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:Sc,useDeferredValue:function(t,n){var i=Zt();return kc(i,t,n)},useTransition:function(){var t=xc(!1);return t=xm.bind(null,Le,t.queue,!0,!1),Zt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Le,d=Zt();if(qe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),ot===null)throw Error(a(349));(Ue&127)!==0||Xp(o,n,i)}d.memoizedState=i;var m={value:i,getSnapshot:n};return d.queue=m,cm(Qp.bind(null,o,m,t),[t]),o.flags|=2048,oi(9,{destroy:void 0},Zp.bind(null,o,m,i,n),null),i},useId:function(){var t=Zt(),n=ot.identifierPrefix;if(qe){var i=Yn,o=Gn;i=(o&~(1<<32-Ke(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Do++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=uw++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Cc,useFormState:im,useActionState:im,useOptimistic:function(t){var n=Zt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Nc.bind(null,Le,!0,i),i.dispatch=n,[t,n]},useMemoCache:gc,useCacheRefresh:function(){return Zt().memoizedState=mw.bind(null,Le)},useEffectEvent:function(t){var n=Zt(),i={impl:t};return n.memoizedState=i,function(){if((Ze&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Ac={readContext:Ot,use:Mo,useCallback:gm,useContext:Ot,useEffect:wc,useImperativeHandle:mm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:bm,useReducer:zo,useRef:um,useState:function(){return zo(dr)},useDebugValue:Sc,useDeferredValue:function(t,n){var i=vt();return ym(i,tt.memoizedState,t,n)},useTransition:function(){var t=zo(dr)[0],n=vt().memoizedState;return[typeof t=="boolean"?t:ia(t),n]},useSyncExternalStore:Yp,useId:Sm,useHostTransitionStatus:Cc,useFormState:am,useActionState:am,useOptimistic:function(t,n){var i=vt();return Wp(i,tt,t,n)},useMemoCache:gc,useCacheRefresh:km};Ac.useEffectEvent=fm;var Tm={readContext:Ot,use:Mo,useCallback:gm,useContext:Ot,useEffect:wc,useImperativeHandle:mm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:bm,useReducer:yc,useRef:um,useState:function(){return yc(dr)},useDebugValue:Sc,useDeferredValue:function(t,n){var i=vt();return tt===null?kc(i,t,n):ym(i,tt.memoizedState,t,n)},useTransition:function(){var t=yc(dr)[0],n=vt().memoizedState;return[typeof t=="boolean"?t:ia(t),n]},useSyncExternalStore:Yp,useId:Sm,useHostTransitionStatus:Cc,useFormState:sm,useActionState:sm,useOptimistic:function(t,n){var i=vt();return tt!==null?Wp(i,tt,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:gc,useCacheRefresh:km};Tm.useEffectEvent=fm;function Tc(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:g({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var jc={enqueueSetState:function(t,n,i){t=t._reactInternals;var o=yn(),d=zr(o);d.payload=n,i!=null&&(d.callback=i),n=Br(t,d,o),n!==null&&(ln(n,t,o),ta(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=yn(),d=zr(o);d.tag=1,d.payload=n,i!=null&&(d.callback=i),n=Br(t,d,o),n!==null&&(ln(n,t,o),ta(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=yn(),o=zr(i);o.tag=2,n!=null&&(o.callback=n),n=Br(t,o,i),n!==null&&(ln(n,t,i),ta(n,t,i))}};function jm(t,n,i,o,d,m,k){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,k):n.prototype&&n.prototype.isPureReactComponent?!Yi(i,o)||!Yi(d,m):!0}function _m(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&jc.enqueueReplaceState(n,n.state,null)}function Cl(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=g({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Rm(t){bo(t)}function Lm(t){console.error(t)}function Dm(t){bo(t)}function Uo(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function Om(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function _c(t,n,i){return i=zr(i),i.tag=3,i.payload={element:null},i.callback=function(){Uo(t,n)},i}function Mm(t){return t=zr(t),t.tag=3,t}function zm(t,n,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;t.payload=function(){return d(m)},t.callback=function(){Om(n,i,o)}}var k=i.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(t.callback=function(){Om(n,i,o),typeof d!="function"&&(Pr===null?Pr=new Set([this]):Pr.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function bw(t,n,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&Wl(n,i,d,!0),i=pn.current,i!==null){switch(i.tag){case 31:case 13:return Dn===null?Jo():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===Ao?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),tf(t,o,d)),!1;case 22:return i.flags|=65536,o===Ao?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),tf(t,o,d)),!1}throw Error(a(435,i.tag))}return tf(t,o,d),Jo(),!1}if(qe)return n=pn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==Zu&&(t=Error(a(422),{cause:o}),Qi(jn(t,i)))):(o!==Zu&&(n=Error(a(423),{cause:o}),Qi(jn(n,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=jn(o,i),d=_c(t.stateNode,o,d),ac(t,d),yt!==4&&(yt=2)),!1;var m=Error(a(520),{cause:o});if(m=jn(m,i),ma===null?ma=[m]:ma.push(m),yt!==4&&(yt=2),n===null)return!0;o=jn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=_c(i.stateNode,o,t),ac(i,t),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Pr===null||!Pr.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Mm(d),zm(d,t,i,o),ac(i,d),!1}i=i.return}while(i!==null);return!1}var Rc=Error(a(461)),kt=!1;function Mt(t,n,i,o){n.child=t===null?Up(n,null,i,o):kl(n,t.child,i,o)}function Bm(t,n,i,o,d){i=i.render;var m=n.ref;if("ref"in o){var k={};for(var R in o)R!=="ref"&&(k[R]=o[R])}else k=o;return xl(n),o=dc(t,n,i,k,m,d),R=hc(),t!==null&&!kt?(pc(t,n,d),hr(t,n,d)):(qe&&R&&Yu(n),n.flags|=1,Mt(t,n,o,d),n.child)}function Fm(t,n,i,o,d){if(t===null){var m=i.type;return typeof m=="function"&&!$u(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Im(t,n,m,o,d)):(t=wo(i.type,null,o,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(m=t.child,!Ic(t,d)){var k=m.memoizedProps;if(i=i.compare,i=i!==null?i:Yi,i(k,o)&&t.ref===n.ref)return hr(t,n,d)}return n.flags|=1,t=or(m,o),t.ref=n.ref,t.return=n,n.child=t}function Im(t,n,i,o,d){if(t!==null){var m=t.memoizedProps;if(Yi(m,o)&&t.ref===n.ref)if(kt=!1,n.pendingProps=o=m,Ic(t,d))(t.flags&131072)!==0&&(kt=!0);else return n.lanes=t.lanes,hr(t,n,d)}return Lc(t,n,i,o,d)}function Um(t,n,i,o){var d=o.children,m=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(o=n.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~m}else o=0,n.child=null;return Hm(t,n,m,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Co(n,m!==null?m.cachePool:null),m!==null?Pp(n,m):sc(),$p(n);else return o=n.lanes=536870912,Hm(t,n,m!==null?m.baseLanes|i:i,i,o)}else m!==null?(Co(n,m.cachePool),Pp(n,m),Ir(),n.memoizedState=null):(t!==null&&Co(n,null),sc(),Ir());return Mt(t,n,d,i),n.child}function sa(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Hm(t,n,i,o,d){var m=nc();return m=m===null?null:{parent:wt._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},t!==null&&Co(n,null),sc(),$p(n),t!==null&&Wl(t,n,o,!0),n.childLanes=d,null}function Ho(t,n){return n=Po({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function qm(t,n,i){return kl(n,t.child,null,i),t=Ho(n,n.pendingProps),t.flags|=2,mn(n),n.memoizedState=null,t}function yw(t,n,i){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(qe){if(o.mode==="hidden")return t=Ho(n,o),n.lanes=536870912,sa(null,t);if(cc(n),(t=ft)?(t=eb(t,Ln),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Rr!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},i=Cp(t),i.return=n,n.child=i,Dt=n,ft=null)):t=null,t===null)throw Dr(n);return n.lanes=536870912,null}return Ho(n,o)}var m=t.memoizedState;if(m!==null){var k=m.dehydrated;if(cc(n),d)if(n.flags&256)n.flags&=-257,n=qm(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(a(558));else if(kt||Wl(t,n,i,!1),d=(i&t.childLanes)!==0,kt||d){if(o=ot,o!==null&&(k=lo(o,i),k!==0&&k!==m.retryLane))throw m.retryLane=k,ml(t,k),ln(o,t,k),Rc;Jo(),n=qm(t,n,i)}else t=m.treeContext,ft=On(k.nextSibling),Dt=n,qe=!0,Lr=null,Ln=!1,t!==null&&Tp(n,t),n=Ho(n,o),n.flags|=4096;return n}return t=or(t.child,{mode:o.mode,children:o.children}),t.ref=n.ref,n.child=t,t.return=n,t}function qo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function Lc(t,n,i,o,d){return xl(n),i=dc(t,n,i,o,void 0,d),o=hc(),t!==null&&!kt?(pc(t,n,d),hr(t,n,d)):(qe&&o&&Yu(n),n.flags|=1,Mt(t,n,i,d),n.child)}function Pm(t,n,i,o,d,m){return xl(n),n.updateQueue=null,i=Gp(n,o,i,d),Vp(t),o=hc(),t!==null&&!kt?(pc(t,n,m),hr(t,n,m)):(qe&&o&&Yu(n),n.flags|=1,Mt(t,n,i,m),n.child)}function $m(t,n,i,o,d){if(xl(n),n.stateNode===null){var m=Zl,k=i.contextType;typeof k=="object"&&k!==null&&(m=Ot(k)),m=new i(o,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=jc,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=o,m.state=n.memoizedState,m.refs={},lc(n),k=i.contextType,m.context=typeof k=="object"&&k!==null?Ot(k):Zl,m.state=n.memoizedState,k=i.getDerivedStateFromProps,typeof k=="function"&&(Tc(n,i,k,o),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(k=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),k!==m.state&&jc.enqueueReplaceState(m,m.state,null),ra(n,o,m,d),na(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){m=n.stateNode;var R=n.memoizedProps,P=Cl(i,R);m.props=P;var ee=m.context,le=i.contextType;k=Zl,typeof le=="object"&&le!==null&&(k=Ot(le));var ce=i.getDerivedStateFromProps;le=typeof ce=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,le||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||ee!==k)&&_m(n,m,o,k),Mr=!1;var ne=n.memoizedState;m.state=ne,ra(n,o,m,d),na(),ee=n.memoizedState,R||ne!==ee||Mr?(typeof ce=="function"&&(Tc(n,i,ce,o),ee=n.memoizedState),(P=Mr||jm(n,i,P,o,ne,ee,k))?(le||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=ee),m.props=o,m.state=ee,m.context=k,o=P):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{m=n.stateNode,ic(t,n),k=n.memoizedProps,le=Cl(i,k),m.props=le,ce=n.pendingProps,ne=m.context,ee=i.contextType,P=Zl,typeof ee=="object"&&ee!==null&&(P=Ot(ee)),R=i.getDerivedStateFromProps,(ee=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==ce||ne!==P)&&_m(n,m,o,P),Mr=!1,ne=n.memoizedState,m.state=ne,ra(n,o,m,d),na();var re=n.memoizedState;k!==ce||ne!==re||Mr||t!==null&&t.dependencies!==null&&ko(t.dependencies)?(typeof R=="function"&&(Tc(n,i,R,o),re=n.memoizedState),(le=Mr||jm(n,i,le,o,ne,re,P)||t!==null&&t.dependencies!==null&&ko(t.dependencies))?(ee||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,re,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,re,P)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=re),m.props=o,m.state=re,m.context=P,o=le):(typeof m.componentDidUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(n.flags|=1024),o=!1)}return m=o,qo(t,n),o=(n.flags&128)!==0,m||o?(m=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,t!==null&&o?(n.child=kl(n,t.child,null,d),n.child=kl(n,null,i,d)):Mt(t,n,i,d),n.memoizedState=m.state,t=n.child):t=hr(t,n,d),t}function Vm(t,n,i,o){return bl(),n.flags|=256,Mt(t,n,i,o),n.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(t){return{baseLanes:t,cachePool:Op()}}function Mc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=bn),t}function Gm(t,n,i){var o=n.pendingProps,d=!1,m=(n.flags&128)!==0,k;if((k=m)||(k=t!==null&&t.memoizedState===null?!1:(xt.current&2)!==0),k&&(d=!0,n.flags&=-129),k=(n.flags&32)!==0,n.flags&=-33,t===null){if(qe){if(d?Fr(n):Ir(),(t=ft)?(t=eb(t,Ln),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Rr!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},i=Cp(t),i.return=n,n.child=i,Dt=n,ft=null)):t=null,t===null)throw Dr(n);return yf(t)?n.lanes=32:n.lanes=536870912,null}var R=o.children;return o=o.fallback,d?(Ir(),d=n.mode,R=Po({mode:"hidden",children:R},d),o=gl(o,d,i,null),R.return=n,o.return=n,R.sibling=o,n.child=R,o=n.child,o.memoizedState=Oc(i),o.childLanes=Mc(t,k,i),n.memoizedState=Dc,sa(null,o)):(Fr(n),zc(n,R))}var P=t.memoizedState;if(P!==null&&(R=P.dehydrated,R!==null)){if(m)n.flags&256?(Fr(n),n.flags&=-257,n=Bc(t,n,i)):n.memoizedState!==null?(Ir(),n.child=t.child,n.flags|=128,n=null):(Ir(),R=o.fallback,d=n.mode,o=Po({mode:"visible",children:o.children},d),R=gl(R,d,i,null),R.flags|=2,o.return=n,R.return=n,o.sibling=R,n.child=o,kl(n,t.child,null,i),o=n.child,o.memoizedState=Oc(i),o.childLanes=Mc(t,k,i),n.memoizedState=Dc,n=sa(null,o));else if(Fr(n),yf(R)){if(k=R.nextSibling&&R.nextSibling.dataset,k)var ee=k.dgst;k=ee,o=Error(a(419)),o.stack="",o.digest=k,Qi({value:o,source:null,stack:null}),n=Bc(t,n,i)}else if(kt||Wl(t,n,i,!1),k=(i&t.childLanes)!==0,kt||k){if(k=ot,k!==null&&(o=lo(k,i),o!==0&&o!==P.retryLane))throw P.retryLane=o,ml(t,o),ln(k,t,o),Rc;bf(R)||Jo(),n=Bc(t,n,i)}else bf(R)?(n.flags|=192,n.child=t.child,n=null):(t=P.treeContext,ft=On(R.nextSibling),Dt=n,qe=!0,Lr=null,Ln=!1,t!==null&&Tp(n,t),n=zc(n,o.children),n.flags|=4096);return n}return d?(Ir(),R=o.fallback,d=n.mode,P=t.child,ee=P.sibling,o=or(P,{mode:"hidden",children:o.children}),o.subtreeFlags=P.subtreeFlags&65011712,ee!==null?R=or(ee,R):(R=gl(R,d,i,null),R.flags|=2),R.return=n,o.return=n,o.sibling=R,n.child=o,sa(null,o),o=n.child,R=t.child.memoizedState,R===null?R=Oc(i):(d=R.cachePool,d!==null?(P=wt._currentValue,d=d.parent!==P?{parent:P,pool:P}:d):d=Op(),R={baseLanes:R.baseLanes|i,cachePool:d}),o.memoizedState=R,o.childLanes=Mc(t,k,i),n.memoizedState=Dc,sa(t.child,o)):(Fr(n),i=t.child,t=i.sibling,i=or(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(k=n.deletions,k===null?(n.deletions=[t],n.flags|=16):k.push(t)),n.child=i,n.memoizedState=null,i)}function zc(t,n){return n=Po({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Po(t,n){return t=hn(22,t,null,n),t.lanes=0,t}function Bc(t,n,i){return kl(n,t.child,null,i),t=zc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Ym(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Ju(t.return,n,i)}function Fc(t,n,i,o,d,m){var k=t.memoizedState;k===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:m}:(k.isBackwards=n,k.rendering=null,k.renderingStartTime=0,k.last=o,k.tail=i,k.tailMode=d,k.treeForkCount=m)}function Xm(t,n,i){var o=n.pendingProps,d=o.revealOrder,m=o.tail;o=o.children;var k=xt.current,R=(k&2)!==0;if(R?(k=k&1|2,n.flags|=128):k&=1,A(xt,k),Mt(t,n,o,i),o=qe?Zi:0,!R&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ym(t,i,n);else if(t.tag===19)Ym(t,i,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(d){case"forwards":for(i=n.child,d=null;i!==null;)t=i.alternate,t!==null&&Ro(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),Fc(n,!1,d,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&Ro(t)===null){n.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Fc(n,!0,i,null,m,o);break;case"together":Fc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function hr(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),qr|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Wl(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,i=or(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=or(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Ic(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&ko(t)))}function xw(t,n,i){switch(n.tag){case 3:me(n,n.stateNode.containerInfo),Or(n,wt,t.memoizedState.cache),bl();break;case 27:case 5:ge(n);break;case 4:me(n,n.stateNode.containerInfo);break;case 10:Or(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,cc(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Fr(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Gm(t,n,i):(Fr(n),t=hr(t,n,i),t!==null?t.sibling:null);Fr(n);break;case 19:var d=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(Wl(t,n,i,!1),o=(i&n.childLanes)!==0),d){if(o)return Xm(t,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),A(xt,xt.current),o)break;return null;case 22:return n.lanes=0,Um(t,n,i,n.pendingProps);case 24:Or(n,wt,t.memoizedState.cache)}return hr(t,n,i)}function Zm(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)kt=!0;else{if(!Ic(t,i)&&(n.flags&128)===0)return kt=!1,xw(t,n,i);kt=(t.flags&131072)!==0}else kt=!1,qe&&(n.flags&1048576)!==0&&Ap(n,Zi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(t=wl(n.elementType),n.type=t,typeof t=="function")$u(t)?(o=Cl(t,o),n.tag=1,n=$m(null,n,t,o,i)):(n.tag=0,n=Lc(null,n,t,o,i));else{if(t!=null){var d=t.$$typeof;if(d===B){n.tag=11,n=Bm(null,n,t,o,i);break e}else if(d===I){n.tag=14,n=Fm(null,n,t,o,i);break e}}throw n=U(t)||t,Error(a(306,n,""))}}return n;case 0:return Lc(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,d=Cl(o,n.pendingProps),$m(t,n,o,d,i);case 3:e:{if(me(n,n.stateNode.containerInfo),t===null)throw Error(a(387));o=n.pendingProps;var m=n.memoizedState;d=m.element,ic(t,n),ra(n,o,null,i);var k=n.memoizedState;if(o=k.cache,Or(n,wt,o),o!==m.cache&&Wu(n,[wt],i,!0),na(),o=k.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:k.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Vm(t,n,o,i);break e}else if(o!==d){d=jn(Error(a(424)),n),Qi(d),n=Vm(t,n,o,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ft=On(t.firstChild),Dt=n,qe=!0,Lr=null,Ln=!0,i=Up(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(bl(),o===d){n=hr(t,n,i);break e}Mt(t,n,o,i)}n=n.child}return n;case 26:return qo(t,n),t===null?(i=ab(n.type,null,n.pendingProps,null))?n.memoizedState=i:qe||(i=n.type,t=n.pendingProps,o=is(fe.current).createElement(i),o[At]=n,o[Ut]=t,zt(o,i,t),_t(o),n.stateNode=o):n.memoizedState=ab(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return ge(n),t===null&&qe&&(o=n.stateNode=rb(n.type,n.pendingProps,fe.current),Dt=n,Ln=!0,d=ft,Yr(n.type)?(xf=d,ft=On(o.firstChild)):ft=d),Mt(t,n,n.pendingProps.children,i),qo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&qe&&((d=o=ft)&&(o=Zw(o,n.type,n.pendingProps,Ln),o!==null?(n.stateNode=o,Dt=n,ft=On(o.firstChild),Ln=!1,d=!0):d=!1),d||Dr(n)),ge(n),d=n.type,m=n.pendingProps,k=t!==null?t.memoizedProps:null,o=m.children,pf(d,m)?o=null:k!==null&&pf(d,k)&&(n.flags|=32),n.memoizedState!==null&&(d=dc(t,n,cw,null,null,i),ka._currentValue=d),qo(t,n),Mt(t,n,o,i),n.child;case 6:return t===null&&qe&&((t=i=ft)&&(i=Qw(i,n.pendingProps,Ln),i!==null?(n.stateNode=i,Dt=n,ft=null,t=!0):t=!1),t||Dr(n)),null;case 13:return Gm(t,n,i);case 4:return me(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=kl(n,null,o,i):Mt(t,n,o,i),n.child;case 11:return Bm(t,n,n.type,n.pendingProps,i);case 7:return Mt(t,n,n.pendingProps,i),n.child;case 8:return Mt(t,n,n.pendingProps.children,i),n.child;case 12:return Mt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Or(n,n.type,o.value),Mt(t,n,o.children,i),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,xl(n),d=Ot(d),o=o(d),n.flags|=1,Mt(t,n,o,i),n.child;case 14:return Fm(t,n,n.type,n.pendingProps,i);case 15:return Im(t,n,n.type,n.pendingProps,i);case 19:return Xm(t,n,i);case 31:return yw(t,n,i);case 22:return Um(t,n,i,n.pendingProps);case 24:return xl(n),o=Ot(wt),t===null?(d=nc(),d===null&&(d=ot,m=ec(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),n.memoizedState={parent:o,cache:d},lc(n),Or(n,wt,d)):((t.lanes&i)!==0&&(ic(t,n),ra(n,null,null,i),na()),d=t.memoizedState,m=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Or(n,wt,o)):(o=m.cache,Or(n,wt,o),o!==d.cache&&Wu(n,[wt],i,!0))),Mt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function pr(t){t.flags|=4}function Uc(t,n,i,o,d){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(Sg())t.flags|=8192;else throw Sl=Ao,rc}else t.flags&=-16777217}function Qm(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!fb(n))if(Sg())t.flags|=8192;else throw Sl=Ao,rc}function $o(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?to():536870912,t.lanes|=n,fi|=n)}function ua(t,n){if(!qe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function dt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function vw(t,n,i){var o=n.pendingProps;switch(Xu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(n),null;case 1:return dt(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),cr(wt),de(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Jl(n)?pr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Qu())),dt(n),null;case 26:var d=n.type,m=n.memoizedState;return t===null?(pr(n),m!==null?(dt(n),Qm(n,m)):(dt(n),Uc(n,d,null,o,i))):m?m!==t.memoizedState?(pr(n),dt(n),Qm(n,m)):(dt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==o&&pr(n),dt(n),Uc(n,d,t,o,i)),null;case 27:if(xe(n),i=fe.current,d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&pr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return dt(n),null}t=te.current,Jl(n)?jp(n):(t=rb(d,o,i),n.stateNode=t,pr(n))}return dt(n),null;case 5:if(xe(n),d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&pr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return dt(n),null}if(m=te.current,Jl(n))jp(n);else{var k=is(fe.current);switch(m){case 1:m=k.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=k.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=k.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=k.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=k.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?k.createElement("select",{is:o.is}):k.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?k.createElement(d,{is:o.is}):k.createElement(d)}}m[At]=n,m[Ut]=o;e:for(k=n.child;k!==null;){if(k.tag===5||k.tag===6)m.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===n)break e;for(;k.sibling===null;){if(k.return===null||k.return===n)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}n.stateNode=m;e:switch(zt(m,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&pr(n)}}return dt(n),Uc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&pr(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(t=fe.current,Jl(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,d=Dt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[At]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||Gg(t.nodeValue,i)),t||Dr(n,!0)}else t=is(t).createTextNode(o),t[At]=n,n.stateNode=t}return dt(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(o=Jl(n),i!==null){if(t===null){if(!o)throw Error(a(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[At]=n}else bl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;dt(n),t=!1}else i=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(mn(n),n):(mn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return dt(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Jl(n),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(a(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[At]=n}else bl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;dt(n),d=!1}else d=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(mn(n),n):(mn(n),null)}return mn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),$o(n,n.updateQueue),dt(n),null);case 4:return de(),t===null&&uf(n.stateNode.containerInfo),dt(n),null;case 10:return cr(n.type),dt(n),null;case 19:if(H(xt),o=n.memoizedState,o===null)return dt(n),null;if(d=(n.flags&128)!==0,m=o.rendering,m===null)if(d)ua(o,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(m=Ro(t),m!==null){for(n.flags|=128,ua(o,!1),t=m.updateQueue,n.updateQueue=t,$o(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Ep(i,t),i=i.sibling;return A(xt,xt.current&1|2),qe&&sr(n,o.treeForkCount),n.child}t=t.sibling}o.tail!==null&&at()>Zo&&(n.flags|=128,d=!0,ua(o,!1),n.lanes=4194304)}else{if(!d)if(t=Ro(m),t!==null){if(n.flags|=128,d=!0,t=t.updateQueue,n.updateQueue=t,$o(n,t),ua(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!qe)return dt(n),null}else 2*at()-o.renderingStartTime>Zo&&i!==536870912&&(n.flags|=128,d=!0,ua(o,!1),n.lanes=4194304);o.isBackwards?(m.sibling=n.child,n.child=m):(t=o.last,t!==null?t.sibling=m:n.child=m,o.last=m)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=at(),t.sibling=null,i=xt.current,A(xt,d?i&1|2:i&1),qe&&sr(n,o.treeForkCount),t):(dt(n),null);case 22:case 23:return mn(n),uc(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(dt(n),n.subtreeFlags&6&&(n.flags|=8192)):dt(n),i=n.updateQueue,i!==null&&$o(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&H(vl),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),cr(wt),dt(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function ww(t,n){switch(Xu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return cr(wt),de(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return xe(n),null;case 31:if(n.memoizedState!==null){if(mn(n),n.alternate===null)throw Error(a(340));bl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(mn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));bl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return H(xt),null;case 4:return de(),null;case 10:return cr(n.type),null;case 22:case 23:return mn(n),uc(),t!==null&&H(vl),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return cr(wt),null;case 25:return null;default:return null}}function Km(t,n){switch(Xu(n),n.tag){case 3:cr(wt),de();break;case 26:case 27:case 5:xe(n);break;case 4:de();break;case 31:n.memoizedState!==null&&mn(n);break;case 13:mn(n);break;case 19:H(xt);break;case 10:cr(n.type);break;case 22:case 23:mn(n),uc(),t!==null&&H(vl);break;case 24:cr(wt)}}function ca(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&t)===t){o=void 0;var m=i.create,k=i.inst;o=m(),k.destroy=o}i=i.next}while(i!==d)}}catch(R){et(n,n.return,R)}}function Ur(t,n,i){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&t)===t){var k=o.inst,R=k.destroy;if(R!==void 0){k.destroy=void 0,d=n;var P=i,ee=R;try{ee()}catch(le){et(d,P,le)}}}o=o.next}while(o!==m)}}catch(le){et(n,n.return,le)}}function Jm(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{qp(n,i)}catch(o){et(t,t.return,o)}}}function Wm(t,n,i){i.props=Cl(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){et(t,n,o)}}function fa(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(d){et(t,n,d)}}function Xn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){et(t,n,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){et(t,n,d)}else i.current=null}function eg(t){var n=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(d){et(t,t.return,d)}}function Hc(t,n,i){try{var o=t.stateNode;Pw(o,t.type,i,n),o[Ut]=n}catch(d){et(t,t.return,d)}}function tg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yr(t.type)||t.tag===4}function qc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tg(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&&Yr(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 Pc(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=ir));else if(o!==4&&(o===27&&Yr(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(Pc(t,n,i),t=t.sibling;t!==null;)Pc(t,n,i),t=t.sibling}function Vo(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&(o===27&&Yr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Vo(t,n,i),t=t.sibling;t!==null;)Vo(t,n,i),t=t.sibling}function ng(t){var n=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);zt(n,o,i),n[At]=t,n[Ut]=i}catch(m){et(t,t.return,m)}}var mr=!1,Et=!1,$c=!1,rg=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function Sw(t,n){if(t=t.containerInfo,df=ds,t=mp(t),Bu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var k=0,R=-1,P=-1,ee=0,le=0,ce=t,ne=null;t:for(;;){for(var re;ce!==i||d!==0&&ce.nodeType!==3||(R=k+d),ce!==m||o!==0&&ce.nodeType!==3||(P=k+o),ce.nodeType===3&&(k+=ce.nodeValue.length),(re=ce.firstChild)!==null;)ne=ce,ce=re;for(;;){if(ce===t)break t;if(ne===i&&++ee===d&&(R=k),ne===m&&++le===o&&(P=k),(re=ce.nextSibling)!==null)break;ce=ne,ne=ce.parentNode}ce=re}i=R===-1||P===-1?null:{start:R,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(hf={focusedElem:t,selectionRange:i},ds=!1,Rt=n;Rt!==null;)if(n=Rt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Rt=t;else for(;Rt!==null;){switch(n=Rt,m=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(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=n,d=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var we=Cl(i.type,d);t=o.getSnapshotBeforeUpdate(we,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(Te){et(i,i.return,Te)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)gf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":gf(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(a(163))}if(t=n.sibling,t!==null){t.return=n.return,Rt=t;break}Rt=n.return}}function lg(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:br(t,i),o&4&&ca(5,i);break;case 1:if(br(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(k){et(i,i.return,k)}else{var d=Cl(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(d,n,t.__reactInternalSnapshotBeforeUpdate)}catch(k){et(i,i.return,k)}}o&64&&Jm(i),o&512&&fa(i,i.return);break;case 3:if(br(t,i),o&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{qp(t,n)}catch(k){et(i,i.return,k)}}break;case 27:n===null&&o&4&&ng(i);case 26:case 5:br(t,i),n===null&&o&4&&eg(i),o&512&&fa(i,i.return);break;case 12:br(t,i);break;case 31:br(t,i),o&4&&og(t,i);break;case 13:br(t,i),o&4&&sg(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=Rw.bind(null,i),Kw(t,i))));break;case 22:if(o=i.memoizedState!==null||mr,!o){n=n!==null&&n.memoizedState!==null||Et,d=mr;var m=Et;mr=o,(Et=n)&&!m?yr(t,i,(i.subtreeFlags&8772)!==0):br(t,i),mr=d,Et=m}break;case 30:break;default:br(t,i)}}function ig(t){var n=t.alternate;n!==null&&(t.alternate=null,ig(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Je(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 ht=null,en=!1;function gr(t,n,i){for(i=i.child;i!==null;)ag(t,n,i),i=i.sibling}function ag(t,n,i){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Lt,i)}catch{}switch(i.tag){case 26:Et||Xn(i,n),gr(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Et||Xn(i,n);var o=ht,d=en;Yr(i.type)&&(ht=i.stateNode,en=!1),gr(t,n,i),va(i.stateNode),ht=o,en=d;break;case 5:Et||Xn(i,n);case 6:if(o=ht,d=en,ht=null,gr(t,n,i),ht=o,en=d,ht!==null)if(en)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(i.stateNode)}catch(m){et(i,n,m)}else try{ht.removeChild(i.stateNode)}catch(m){et(i,n,m)}break;case 18:ht!==null&&(en?(t=ht,Jg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),xi(t)):Jg(ht,i.stateNode));break;case 4:o=ht,d=en,ht=i.stateNode.containerInfo,en=!0,gr(t,n,i),ht=o,en=d;break;case 0:case 11:case 14:case 15:Ur(2,i,n),Et||Ur(4,i,n),gr(t,n,i);break;case 1:Et||(Xn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Wm(i,n,o)),gr(t,n,i);break;case 21:gr(t,n,i);break;case 22:Et=(o=Et)||i.memoizedState!==null,gr(t,n,i),Et=o;break;default:gr(t,n,i)}}function og(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{xi(t)}catch(i){et(n,n.return,i)}}}function sg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{xi(t)}catch(i){et(n,n.return,i)}}function kw(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new rg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new rg),n;default:throw Error(a(435,t.tag))}}function Go(t,n){var i=kw(t);n.forEach(function(o){if(!i.has(o)){i.add(o);var d=Lw.bind(null,t,o);o.then(d,d)}})}function tn(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],m=t,k=n,R=k;e:for(;R!==null;){switch(R.tag){case 27:if(Yr(R.type)){ht=R.stateNode,en=!1;break e}break;case 5:ht=R.stateNode,en=!1;break e;case 3:case 4:ht=R.stateNode.containerInfo,en=!0;break e}R=R.return}if(ht===null)throw Error(a(160));ag(m,k,d),ht=null,en=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)ug(n,t),n=n.sibling}var Hn=null;function ug(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:tn(n,t),nn(t),o&4&&(Ur(3,t,t.return),ca(3,t),Ur(5,t,t.return));break;case 1:tn(n,t),nn(t),o&512&&(Et||i===null||Xn(i,i.return)),o&64&&mr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=Hn;if(tn(n,t),nn(t),o&512&&(Et||i===null||Xn(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Ee]||m[At]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),zt(m,o,i),m[At]=t,_t(m),o=m;break e;case"link":var k=ub("link","href",d).get(o+(i.href||""));if(k){for(var R=0;R<k.length;R++)if(m=k[R],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){k.splice(R,1);break t}}m=d.createElement(o),zt(m,o,i),d.head.appendChild(m);break;case"meta":if(k=ub("meta","content",d).get(o+(i.content||""))){for(R=0;R<k.length;R++)if(m=k[R],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){k.splice(R,1);break t}}m=d.createElement(o),zt(m,o,i),d.head.appendChild(m);break;default:throw Error(a(468,o))}m[At]=t,_t(m),o=m}t.stateNode=o}else cb(d,t.type,t.stateNode);else t.stateNode=sb(d,o,t.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?cb(d,t.type,t.stateNode):sb(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Hc(t,t.memoizedProps,i.memoizedProps)}break;case 27:tn(n,t),nn(t),o&512&&(Et||i===null||Xn(i,i.return)),i!==null&&o&4&&Hc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(tn(n,t),nn(t),o&512&&(Et||i===null||Xn(i,i.return)),t.flags&32){d=t.stateNode;try{ql(d,"")}catch(we){et(t,t.return,we)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Hc(t,d,i!==null?i.memoizedProps:d)),o&1024&&($c=!0);break;case 6:if(tn(n,t),nn(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(we){et(t,t.return,we)}}break;case 3:if(ss=null,d=Hn,Hn=as(n.containerInfo),tn(n,t),Hn=d,nn(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{xi(n.containerInfo)}catch(we){et(t,t.return,we)}$c&&($c=!1,cg(t));break;case 4:o=Hn,Hn=as(t.stateNode.containerInfo),tn(n,t),nn(t),Hn=o;break;case 12:tn(n,t),nn(t);break;case 31:tn(n,t),nn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 13:tn(n,t),nn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Xo=at()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 22:d=t.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,ee=mr,le=Et;if(mr=ee||d,Et=le||P,tn(n,t),Et=le,mr=ee,nn(t),o&8192)e:for(n=t.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(i===null||P||mr||Et||Nl(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){P=i=n;try{if(m=P.stateNode,d)k=m.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{R=P.stateNode;var ce=P.memoizedProps.style,ne=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;R.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(we){et(P,P.return,we)}}}else if(n.tag===6){if(i===null){P=n;try{P.stateNode.nodeValue=d?"":P.memoizedProps}catch(we){et(P,P.return,we)}}}else if(n.tag===18){if(i===null){P=n;try{var re=P.stateNode;d?Wg(re,!0):Wg(P.stateNode,!1)}catch(we){et(P,P.return,we)}}}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;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Go(t,i))));break;case 19:tn(n,t),nn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 30:break;case 21:break;default:tn(n,t),nn(t)}}function nn(t){var n=t.flags;if(n&2){try{for(var i,o=t.return;o!==null;){if(tg(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var d=i.stateNode,m=qc(t);Vo(t,m,d);break;case 5:var k=i.stateNode;i.flags&32&&(ql(k,""),i.flags&=-33);var R=qc(t);Vo(t,R,k);break;case 3:case 4:var P=i.stateNode.containerInfo,ee=qc(t);Pc(t,ee,P);break;default:throw Error(a(161))}}catch(le){et(t,t.return,le)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function cg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;cg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function br(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)lg(t,n.alternate,n),n=n.sibling}function Nl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Ur(4,n,n.return),Nl(n);break;case 1:Xn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Wm(n,n.return,i),Nl(n);break;case 27:va(n.stateNode);case 26:case 5:Xn(n,n.return),Nl(n);break;case 22:n.memoizedState===null&&Nl(n);break;case 30:Nl(n);break;default:Nl(n)}t=t.sibling}}function yr(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=t,m=n,k=m.flags;switch(m.tag){case 0:case 11:case 15:yr(d,m,i),ca(4,m);break;case 1:if(yr(d,m,i),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ee){et(o,o.return,ee)}if(o=m,d=o.updateQueue,d!==null){var R=o.stateNode;try{var P=d.shared.hiddenCallbacks;if(P!==null)for(d.shared.hiddenCallbacks=null,d=0;d<P.length;d++)Hp(P[d],R)}catch(ee){et(o,o.return,ee)}}i&&k&64&&Jm(m),fa(m,m.return);break;case 27:ng(m);case 26:case 5:yr(d,m,i),i&&o===null&&k&4&&eg(m),fa(m,m.return);break;case 12:yr(d,m,i);break;case 31:yr(d,m,i),i&&k&4&&og(d,m);break;case 13:yr(d,m,i),i&&k&4&&sg(d,m);break;case 22:m.memoizedState===null&&yr(d,m,i),fa(m,m.return);break;case 30:break;default:yr(d,m,i)}n=n.sibling}}function Vc(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Ki(i))}function Gc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ki(t))}function qn(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)fg(t,n,i,o),n=n.sibling}function fg(t,n,i,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:qn(t,n,i,o),d&2048&&ca(9,n);break;case 1:qn(t,n,i,o);break;case 3:qn(t,n,i,o),d&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ki(t)));break;case 12:if(d&2048){qn(t,n,i,o),t=n.stateNode;try{var m=n.memoizedProps,k=m.id,R=m.onPostCommit;typeof R=="function"&&R(k,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){et(n,n.return,P)}}else qn(t,n,i,o);break;case 31:qn(t,n,i,o);break;case 13:qn(t,n,i,o);break;case 23:break;case 22:m=n.stateNode,k=n.alternate,n.memoizedState!==null?m._visibility&2?qn(t,n,i,o):da(t,n):m._visibility&2?qn(t,n,i,o):(m._visibility|=2,si(t,n,i,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&Vc(k,n);break;case 24:qn(t,n,i,o),d&2048&&Gc(n.alternate,n);break;default:qn(t,n,i,o)}}function si(t,n,i,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=t,k=n,R=i,P=o,ee=k.flags;switch(k.tag){case 0:case 11:case 15:si(m,k,R,P,d),ca(8,k);break;case 23:break;case 22:var le=k.stateNode;k.memoizedState!==null?le._visibility&2?si(m,k,R,P,d):da(m,k):(le._visibility|=2,si(m,k,R,P,d)),d&&ee&2048&&Vc(k.alternate,k);break;case 24:si(m,k,R,P,d),d&&ee&2048&&Gc(k.alternate,k);break;default:si(m,k,R,P,d)}n=n.sibling}}function da(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,d=o.flags;switch(o.tag){case 22:da(i,o),d&2048&&Vc(o.alternate,o);break;case 24:da(i,o),d&2048&&Gc(o.alternate,o);break;default:da(i,o)}n=n.sibling}}var ha=8192;function ui(t,n,i){if(t.subtreeFlags&ha)for(t=t.child;t!==null;)dg(t,n,i),t=t.sibling}function dg(t,n,i){switch(t.tag){case 26:ui(t,n,i),t.flags&ha&&t.memoizedState!==null&&u2(i,Hn,t.memoizedState,t.memoizedProps);break;case 5:ui(t,n,i);break;case 3:case 4:var o=Hn;Hn=as(t.stateNode.containerInfo),ui(t,n,i),Hn=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=ha,ha=16777216,ui(t,n,i),ha=o):ui(t,n,i));break;default:ui(t,n,i)}}function hg(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 pa(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,mg(o,t)}hg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pg(t),t=t.sibling}function pg(t){switch(t.tag){case 0:case 11:case 15:pa(t),t.flags&2048&&Ur(9,t,t.return);break;case 3:pa(t);break;case 12:pa(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Yo(t)):pa(t);break;default:pa(t)}}function Yo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,mg(o,t)}hg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Ur(8,n,n.return),Yo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Yo(n));break;default:Yo(n)}t=t.sibling}}function mg(t,n){for(;Rt!==null;){var i=Rt;switch(i.tag){case 0:case 11:case 15:Ur(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ki(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Rt=o;else e:for(i=t;Rt!==null;){o=Rt;var d=o.sibling,m=o.return;if(ig(o),o===i){Rt=null;break e}if(d!==null){d.return=m,Rt=d;break e}Rt=m}}}var Ew={getCacheForType:function(t){var n=Ot(wt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Ot(wt).controller.signal}},Cw=typeof WeakMap=="function"?WeakMap:Map,Ze=0,ot=null,Be=null,Ue=0,We=0,gn=null,Hr=!1,ci=!1,Yc=!1,xr=0,yt=0,qr=0,Al=0,Xc=0,bn=0,fi=0,ma=null,rn=null,Zc=!1,Xo=0,gg=0,Zo=1/0,Qo=null,Pr=null,Tt=0,$r=null,di=null,vr=0,Qc=0,Kc=null,bg=null,ga=0,Jc=null;function yn(){return(Ze&2)!==0&&Ue!==0?Ue&-Ue:F.T!==null?lf():Bi()}function yg(){if(bn===0)if((Ue&536870912)===0||qe){var t=ul;ul<<=1,(ul&3932160)===0&&(ul=262144),bn=t}else bn=536870912;return t=pn.current,t!==null&&(t.flags|=32),bn}function ln(t,n,i){(t===ot&&(We===2||We===9)||t.cancelPendingCommit!==null)&&(hi(t,0),Vr(t,Ue,bn,!1)),Vn(t,i),((Ze&2)===0||t!==ot)&&(t===ot&&((Ze&2)===0&&(Al|=i),yt===4&&Vr(t,Ue,bn,!1)),Zn(t))}function xg(t,n,i){if((Ze&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&t.expiredLanes)===0||Tr(t,n),d=o?Tw(t,n):ef(t,n,!0),m=o;do{if(d===0){ci&&!o&&Vr(t,n,0,!1);break}else{if(i=t.current.alternate,m&&!Nw(i)){d=ef(t,n,!1),m=!1;continue}if(d===2){if(m=n,t.errorRecoveryDisabledLanes&m)var k=0;else k=t.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){n=k;e:{var R=t;d=ma;var P=R.current.memoizedState.isDehydrated;if(P&&(hi(R,k).flags|=256),k=ef(R,k,!1),k!==2){if(Yc&&!P){R.errorRecoveryDisabledLanes|=m,Al|=m,d=4;break e}m=rn,rn=d,m!==null&&(rn===null?rn=m:rn.push.apply(rn,m))}d=k}if(m=!1,d!==2)continue}}if(d===1){hi(t,0),Vr(t,n,0,!0);break}e:{switch(o=t,m=d,m){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Vr(o,n,bn,!Hr);break e;case 2:rn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(d=Xo+300-at(),10<d)){if(Vr(o,n,bn,!Hr),cl(o,0,!0)!==0)break e;vr=n,o.timeoutHandle=Qg(vg.bind(null,o,i,rn,Qo,Zc,n,bn,Al,fi,Hr,m,"Throttled",-0,0),d);break e}vg(o,i,rn,Qo,Zc,n,bn,Al,fi,Hr,m,null,-0,0)}}break}while(!0);Zn(t)}function vg(t,n,i,o,d,m,k,R,P,ee,le,ce,ne,re){if(t.timeoutHandle=-1,ce=n.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ir},dg(n,m,ce);var we=(m&62914560)===m?Xo-at():(m&4194048)===m?gg-at():0;if(we=c2(ce,we),we!==null){vr=m,t.cancelPendingCommit=we(Tg.bind(null,t,n,m,i,o,d,k,R,P,le,ce,null,ne,re)),Vr(t,m,k,!ee);return}}Tg(t,n,m,i,o,d,k,R,P)}function Nw(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var d=i[o],m=d.getSnapshot;d=d.value;try{if(!dn(m(),d))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;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 Vr(t,n,i,o){n&=~Xc,n&=~Al,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var d=n;0<d;){var m=31-Ke(d),k=1<<m;o[m]=-1,d&=~k}i!==0&&no(t,i,n)}function Ko(){return(Ze&6)===0?(ba(0),!1):!0}function Wc(){if(Be!==null){if(We===0)var t=Be.return;else t=Be,ur=yl=null,mc(t),ri=null,Wi=0,t=Be;for(;t!==null;)Km(t.alternate,t),t=t.return;Be=null}}function hi(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,Gw(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),vr=0,Wc(),ot=t,Be=i=or(t.current,null),Ue=n,We=0,gn=null,Hr=!1,ci=Tr(t,n),Yc=!1,fi=bn=Xc=Al=qr=yt=0,rn=ma=null,Zc=!1,(n&8)!==0&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var d=31-Ke(o),m=1<<d;n|=t[d],o&=~m}return xr=n,yo(),i}function wg(t,n){Le=null,F.H=oa,n===ni||n===No?(n=Bp(),We=3):n===rc?(n=Bp(),We=4):We=n===Rc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,gn=n,Be===null&&(yt=1,Uo(t,jn(n,t.current)))}function Sg(){var t=pn.current;return t===null?!0:(Ue&4194048)===Ue?Dn===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?t===Dn:!1}function kg(){var t=F.H;return F.H=oa,t===null?oa:t}function Eg(){var t=F.A;return F.A=Ew,t}function Jo(){yt=4,Hr||(Ue&4194048)!==Ue&&pn.current!==null||(ci=!0),(qr&134217727)===0&&(Al&134217727)===0||ot===null||Vr(ot,Ue,bn,!1)}function ef(t,n,i){var o=Ze;Ze|=2;var d=kg(),m=Eg();(ot!==t||Ue!==n)&&(Qo=null,hi(t,n)),n=!1;var k=yt;e:do try{if(We!==0&&Be!==null){var R=Be,P=gn;switch(We){case 8:Wc(),k=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(n=!0);var ee=We;if(We=0,gn=null,pi(t,R,P,ee),i&&ci){k=0;break e}break;default:ee=We,We=0,gn=null,pi(t,R,P,ee)}}Aw(),k=yt;break}catch(le){wg(t,le)}while(!0);return n&&t.shellSuspendCounter++,ur=yl=null,Ze=o,F.H=d,F.A=m,Be===null&&(ot=null,Ue=0,yo()),k}function Aw(){for(;Be!==null;)Cg(Be)}function Tw(t,n){var i=Ze;Ze|=2;var o=kg(),d=Eg();ot!==t||Ue!==n?(Qo=null,Zo=at()+500,hi(t,n)):ci=Tr(t,n);e:do try{if(We!==0&&Be!==null){n=Be;var m=gn;t:switch(We){case 1:We=0,gn=null,pi(t,n,m,1);break;case 2:case 9:if(Mp(m)){We=0,gn=null,Ng(n);break}n=function(){We!==2&&We!==9||ot!==t||(We=7),Zn(t)},m.then(n,n);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:Mp(m)?(We=0,gn=null,Ng(n)):(We=0,gn=null,pi(t,n,m,7));break;case 5:var k=null;switch(Be.tag){case 26:k=Be.memoizedState;case 5:case 27:var R=Be;if(k?fb(k):R.stateNode.complete){We=0,gn=null;var P=R.sibling;if(P!==null)Be=P;else{var ee=R.return;ee!==null?(Be=ee,Wo(ee)):Be=null}break t}}We=0,gn=null,pi(t,n,m,5);break;case 6:We=0,gn=null,pi(t,n,m,6);break;case 8:Wc(),yt=6;break e;default:throw Error(a(462))}}jw();break}catch(le){wg(t,le)}while(!0);return ur=yl=null,F.H=o,F.A=d,Ze=i,Be!==null?0:(ot=null,Ue=0,yo(),yt)}function jw(){for(;Be!==null&&!it();)Cg(Be)}function Cg(t){var n=Zm(t.alternate,t,xr);t.memoizedProps=t.pendingProps,n===null?Wo(t):Be=n}function Ng(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=Pm(i,n,n.pendingProps,n.type,void 0,Ue);break;case 11:n=Pm(i,n,n.pendingProps,n.type.render,n.ref,Ue);break;case 5:mc(n);default:Km(i,n),n=Be=Ep(n,xr),n=Zm(i,n,xr)}t.memoizedProps=t.pendingProps,n===null?Wo(t):Be=n}function pi(t,n,i,o){ur=yl=null,mc(n),ri=null,Wi=0;var d=n.return;try{if(bw(t,d,n,i,Ue)){yt=1,Uo(t,jn(i,t.current)),Be=null;return}}catch(m){if(d!==null)throw Be=d,m;yt=1,Uo(t,jn(i,t.current)),Be=null;return}n.flags&32768?(qe||o===1?t=!0:ci||(Ue&536870912)!==0?t=!1:(Hr=t=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ag(n,t)):Wo(n)}function Wo(t){var n=t;do{if((n.flags&32768)!==0){Ag(n,Hr);return}t=n.return;var i=vw(n.alternate,n,xr);if(i!==null){Be=i;return}if(n=n.sibling,n!==null){Be=n;return}Be=n=t}while(n!==null);yt===0&&(yt=5)}function Ag(t,n){do{var i=ww(t.alternate,t);if(i!==null){i.flags&=32767,Be=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Be=t;return}Be=t=i}while(t!==null);yt=6,Be=null}function Tg(t,n,i,o,d,m,k,R,P){t.cancelPendingCommit=null;do es();while(Tt!==0);if((Ze&6)!==0)throw Error(a(327));if(n!==null){if(n===t.current)throw Error(a(177));if(m=n.lanes|n.childLanes,m|=qu,vu(t,i,m,k,R,P),t===ot&&(Be=ot=null,Ue=0),di=n,$r=t,vr=i,Qc=m,Kc=d,bg=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Dw(je,function(){return Dg(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=F.T,F.T=null,d=O.p,O.p=2,k=Ze,Ze|=4;try{Sw(t,n,i)}finally{Ze=k,O.p=d,F.T=o}}Tt=1,jg(),_g(),Rg()}}function jg(){if(Tt===1){Tt=0;var t=$r,n=di,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Ze;Ze|=4;try{ug(n,t);var m=hf,k=mp(t.containerInfo),R=m.focusedElem,P=m.selectionRange;if(k!==R&&R&&R.ownerDocument&&pp(R.ownerDocument.documentElement,R)){if(P!==null&&Bu(R)){var ee=P.start,le=P.end;if(le===void 0&&(le=ee),"selectionStart"in R)R.selectionStart=ee,R.selectionEnd=Math.min(le,R.value.length);else{var ce=R.ownerDocument||document,ne=ce&&ce.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),we=R.textContent.length,Te=Math.min(P.start,we),rt=P.end===void 0?Te:Math.min(P.end,we);!re.extend&&Te>rt&&(k=rt,rt=Te,Te=k);var K=hp(R,Te),Z=hp(R,rt);if(K&&Z&&(re.rangeCount!==1||re.anchorNode!==K.node||re.anchorOffset!==K.offset||re.focusNode!==Z.node||re.focusOffset!==Z.offset)){var W=ce.createRange();W.setStart(K.node,K.offset),re.removeAllRanges(),Te>rt?(re.addRange(W),re.extend(Z.node,Z.offset)):(W.setEnd(Z.node,Z.offset),re.addRange(W))}}}}for(ce=[],re=R;re=re.parentNode;)re.nodeType===1&&ce.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ce.length;R++){var oe=ce[R];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}ds=!!df,hf=df=null}finally{Ze=d,O.p=o,F.T=i}}t.current=n,Tt=2}}function _g(){if(Tt===2){Tt=0;var t=$r,n=di,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Ze;Ze|=4;try{lg(t,n.alternate,n)}finally{Ze=d,O.p=o,F.T=i}}Tt=3}}function Rg(){if(Tt===4||Tt===3){Tt=0,It();var t=$r,n=di,i=vr,o=bg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Tt=5:(Tt=0,di=$r=null,Lg(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Pr=null),Fl(i),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Lt,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=F.T,d=O.p,O.p=2,F.T=null;try{for(var m=t.onRecoverableError,k=0;k<o.length;k++){var R=o[k];m(R.value,{componentStack:R.stack})}}finally{F.T=n,O.p=d}}(vr&3)!==0&&es(),Zn(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===Jc?ga++:(ga=0,Jc=t):ga=0,ba(0)}}function Lg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Ki(n)))}function es(){return jg(),_g(),Rg(),Dg()}function Dg(){if(Tt!==5)return!1;var t=$r,n=Qc;Qc=0;var i=Fl(vr),o=F.T,d=O.p;try{O.p=32>i?32:i,F.T=null,i=Kc,Kc=null;var m=$r,k=vr;if(Tt=0,di=$r=null,vr=0,(Ze&6)!==0)throw Error(a(331));var R=Ze;if(Ze|=4,pg(m.current),fg(m,m.current,k,i),Ze=R,ba(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Lt,m)}catch{}return!0}finally{O.p=d,F.T=o,Lg(t,n)}}function Og(t,n,i){n=jn(i,n),n=_c(t.stateNode,n,2),t=Br(t,n,2),t!==null&&(Vn(t,2),Zn(t))}function et(t,n,i){if(t.tag===3)Og(t,t,i);else for(;n!==null;){if(n.tag===3){Og(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Pr===null||!Pr.has(o))){t=jn(i,t),i=Mm(2),o=Br(n,i,2),o!==null&&(zm(i,o,n,t),Vn(o,2),Zn(o));break}}n=n.return}}function tf(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new Cw;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(i)||(Yc=!0,d.add(i),t=_w.bind(null,t,n,i),n.then(t,t))}function _w(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ot===t&&(Ue&i)===i&&(yt===4||yt===3&&(Ue&62914560)===Ue&&300>at()-Xo?(Ze&2)===0&&hi(t,0):Xc|=i,fi===Ue&&(fi=0)),Zn(t)}function Mg(t,n){n===0&&(n=to()),t=ml(t,n),t!==null&&(Vn(t,n),Zn(t))}function Rw(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Mg(t,i)}function Lw(t,n){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),Mg(t,i)}function Dw(t,n){return gt(t,n)}var ts=null,mi=null,nf=!1,ns=!1,rf=!1,Gr=0;function Zn(t){t!==mi&&t.next===null&&(mi===null?ts=mi=t:mi=mi.next=t),ns=!0,nf||(nf=!0,Mw())}function ba(t,n){if(!rf&&ns){rf=!0;do for(var i=!1,o=ts;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var k=o.suspendedLanes,R=o.pingedLanes;m=(1<<31-Ke(42|t)+1)-1,m&=d&~(k&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Ig(o,m))}else m=Ue,m=cl(o,o===ot?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||Tr(o,m)||(i=!0,Ig(o,m));o=o.next}while(i);rf=!1}}function Ow(){zg()}function zg(){ns=nf=!1;var t=0;Gr!==0&&Vw()&&(t=Gr);for(var n=at(),i=null,o=ts;o!==null;){var d=o.next,m=Bg(o,n);m===0?(o.next=null,i===null?ts=d:i.next=d,d===null&&(mi=i)):(i=o,(t!==0||(m&3)!==0)&&(ns=!0)),o=d}Tt!==0&&Tt!==5||ba(t),Gr!==0&&(Gr=0)}function Bg(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var k=31-Ke(m),R=1<<k,P=d[k];P===-1?((R&i)===0||(R&o)!==0)&&(d[k]=nr(R,n)):P<=n&&(t.expiredLanes|=R),m&=~R}if(n=ot,i=Ue,i=cl(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===n&&(We===2||We===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Ft(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Tr(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&Ft(o),Fl(i)){case 2:case 8:i=ye;break;case 32:i=je;break;case 268435456:i=Ge;break;default:i=je}return o=Fg.bind(null,t),i=gt(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&Ft(o),t.callbackPriority=2,t.callbackNode=null,2}function Fg(t,n){if(Tt!==0&&Tt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(es()&&t.callbackNode!==i)return null;var o=Ue;return o=cl(t,t===ot?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(xg(t,o,n),Bg(t,at()),t.callbackNode!=null&&t.callbackNode===i?Fg.bind(null,t):null)}function Ig(t,n){if(es())return null;xg(t,n,!0)}function Mw(){Yw(function(){(Ze&6)!==0?gt(ae,Ow):zg()})}function lf(){if(Gr===0){var t=ei;t===0&&(t=zl,zl<<=1,(zl&261888)===0&&(zl=256)),Gr=t}return Gr}function Ug(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:uo(""+t)}function Hg(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function zw(t,n,i,o,d){if(n==="submit"&&i&&i.stateNode===d){var m=Ug((d[Ut]||null).action),k=o.submitter;k&&(n=(n=k[Ut]||null)?Ug(n.formAction):k.getAttribute("formAction"),n!==null&&(m=n,k=null));var R=new po("action","action",null,o,d);t.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Gr!==0){var P=k?Hg(d,k):new FormData(d);Ec(i,{pending:!0,data:P,method:d.method,action:m},null,P)}}else typeof m=="function"&&(R.preventDefault(),P=k?Hg(d,k):new FormData(d),Ec(i,{pending:!0,data:P,method:d.method,action:m},m,P))},currentTarget:d}]})}}for(var af=0;af<Hu.length;af++){var of=Hu[af],Bw=of.toLowerCase(),Fw=of[0].toUpperCase()+of.slice(1);Un(Bw,"on"+Fw)}Un(yp,"onAnimationEnd"),Un(xp,"onAnimationIteration"),Un(vp,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(ew,"onTransitionRun"),Un(tw,"onTransitionStart"),Un(nw,"onTransitionCancel"),Un(wp,"onTransitionEnd"),Ul("onMouseEnter",["mouseout","mouseover"]),Ul("onMouseLeave",["mouseout","mouseover"]),Ul("onPointerEnter",["pointerout","pointerover"]),Ul("onPointerLeave",["pointerout","pointerover"]),fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ya="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(" "),Iw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ya));function qg(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],d=o.event;o=o.listeners;e:{var m=void 0;if(n)for(var k=o.length-1;0<=k;k--){var R=o[k],P=R.instance,ee=R.currentTarget;if(R=R.listener,P!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=ee;try{m(d)}catch(le){bo(le)}d.currentTarget=null,m=P}else for(k=0;k<o.length;k++){if(R=o[k],P=R.instance,ee=R.currentTarget,R=R.listener,P!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=ee;try{m(d)}catch(le){bo(le)}d.currentTarget=null,m=P}}}}function Fe(t,n){var i=n[Fi];i===void 0&&(i=n[Fi]=new Set);var o=t+"__bubble";i.has(o)||(Pg(n,t,2,!1),i.add(o))}function sf(t,n,i){var o=0;n&&(o|=4),Pg(i,t,o,n)}var rs="_reactListening"+Math.random().toString(36).slice(2);function uf(t){if(!t[rs]){t[rs]=!0,zh.forEach(function(i){i!=="selectionchange"&&(Iw.has(i)||sf(i,!1,t),sf(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[rs]||(n[rs]=!0,sf("selectionchange",!1,n))}}function Pg(t,n,i,o){switch(yb(n)){case 2:var d=h2;break;case 8:d=p2;break;default:d=Ef}i=d.bind(null,n,i,t),d=void 0,!Tu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(n,i,{capture:!0,passive:d}):t.addEventListener(n,i,!0):d!==void 0?t.addEventListener(n,i,{passive:d}):t.addEventListener(n,i,!1)}function cf(t,n,i,o,d){var m=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var k=o.tag;if(k===3||k===4){var R=o.stateNode.containerInfo;if(R===d)break;if(k===4)for(k=o.return;k!==null;){var P=k.tag;if((P===3||P===4)&&k.stateNode.containerInfo===d)return;k=k.return}for(;R!==null;){if(k=fn(R),k===null)return;if(P=k.tag,P===5||P===6||P===26||P===27){o=m=k;continue e}R=R.parentNode}}o=o.return}Xh(function(){var ee=m,le=Nu(i),ce=[];e:{var ne=Sp.get(t);if(ne!==void 0){var re=po,we=t;switch(t){case"keypress":if(fo(i)===0)break e;case"keydown":case"keyup":re=Lv;break;case"focusin":we="focus",re=Lu;break;case"focusout":we="blur",re=Lu;break;case"beforeblur":case"afterblur":re=Lu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=vv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=Mv;break;case yp:case xp:case vp:re=kv;break;case wp:re=Bv;break;case"scroll":case"scrollend":re=yv;break;case"wheel":re=Iv;break;case"copy":case"cut":case"paste":re=Cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Wh;break;case"toggle":case"beforetoggle":re=Hv}var Te=(n&4)!==0,rt=!Te&&(t==="scroll"||t==="scrollend"),K=Te?ne!==null?ne+"Capture":null:ne;Te=[];for(var Z=ee,W;Z!==null;){var oe=Z;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||K===null||(oe=Ui(Z,K),oe!=null&&Te.push(xa(Z,oe,W))),rt)break;Z=Z.return}0<Te.length&&(ne=new re(ne,we,null,i,le),ce.push({event:ne,listeners:Te}))}}if((n&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",re=t==="mouseout"||t==="pointerout",ne&&i!==Cu&&(we=i.relatedTarget||i.fromElement)&&(fn(we)||we[jr]))break e;if((re||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(we=i.relatedTarget||i.toElement,re=ee,we=we?fn(we):null,we!==null&&(rt=u(we),Te=we.tag,we!==rt||Te!==5&&Te!==27&&Te!==6)&&(we=null)):(re=null,we=ee),re!==we)){if(Te=Kh,oe="onMouseLeave",K="onMouseEnter",Z="mouse",(t==="pointerout"||t==="pointerover")&&(Te=Wh,oe="onPointerLeave",K="onPointerEnter",Z="pointer"),rt=re==null?ne:Ii(re),W=we==null?ne:Ii(we),ne=new Te(oe,Z+"leave",re,i,le),ne.target=rt,ne.relatedTarget=W,oe=null,fn(le)===ee&&(Te=new Te(K,Z+"enter",we,i,le),Te.target=W,Te.relatedTarget=rt,oe=Te),rt=oe,re&&we)t:{for(Te=Uw,K=re,Z=we,W=0,oe=K;oe;oe=Te(oe))W++;oe=0;for(var Ce=Z;Ce;Ce=Te(Ce))oe++;for(;0<W-oe;)K=Te(K),W--;for(;0<oe-W;)Z=Te(Z),oe--;for(;W--;){if(K===Z||Z!==null&&K===Z.alternate){Te=K;break t}K=Te(K),Z=Te(Z)}Te=null}else Te=null;re!==null&&$g(ce,ne,re,Te,!1),we!==null&&rt!==null&&$g(ce,rt,we,Te,!0)}}e:{if(ne=ee?Ii(ee):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Ye=op;else if(ip(ne))if(sp)Ye=Kv;else{Ye=Zv;var Se=Xv}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Eu(ee.elementType)&&(Ye=op):Ye=Qv;if(Ye&&(Ye=Ye(t,ee))){ap(ce,Ye,i,le);break e}Se&&Se(t,ne,ee),t==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&ku(ne,"number",ne.value)}switch(Se=ee?Ii(ee):window,t){case"focusin":(ip(Se)||Se.contentEditable==="true")&&(Gl=Se,Fu=ee,Xi=null);break;case"focusout":Xi=Fu=Gl=null;break;case"mousedown":Iu=!0;break;case"contextmenu":case"mouseup":case"dragend":Iu=!1,gp(ce,i,le);break;case"selectionchange":if(Wv)break;case"keydown":case"keyup":gp(ce,i,le)}var De;if(Ou)e:{switch(t){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Vl?rp(t,i)&&(He="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(He="onCompositionStart");He&&(ep&&i.locale!=="ko"&&(Vl||He!=="onCompositionStart"?He==="onCompositionEnd"&&Vl&&(De=Zh()):(_r=le,ju="value"in _r?_r.value:_r.textContent,Vl=!0)),Se=ls(ee,He),0<Se.length&&(He=new Jh(He,t,null,i,le),ce.push({event:He,listeners:Se}),De?He.data=De:(De=lp(i),De!==null&&(He.data=De)))),(De=Pv?$v(t,i):Vv(t,i))&&(He=ls(ee,"onBeforeInput"),0<He.length&&(Se=new Jh("onBeforeInput","beforeinput",null,i,le),ce.push({event:Se,listeners:He}),Se.data=De)),zw(ce,t,ee,i,le)}qg(ce,n)})}function xa(t,n,i){return{instance:t,listener:n,currentTarget:i}}function ls(t,n){for(var i=n+"Capture",o=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=Ui(t,i),d!=null&&o.unshift(xa(t,d,m)),d=Ui(t,n),d!=null&&o.push(xa(t,d,m))),t.tag===3)return o;t=t.return}return[]}function Uw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $g(t,n,i,o,d){for(var m=n._reactName,k=[];i!==null&&i!==o;){var R=i,P=R.alternate,ee=R.stateNode;if(R=R.tag,P!==null&&P===o)break;R!==5&&R!==26&&R!==27||ee===null||(P=ee,d?(ee=Ui(i,m),ee!=null&&k.unshift(xa(i,ee,P))):d||(ee=Ui(i,m),ee!=null&&k.push(xa(i,ee,P)))),i=i.return}k.length!==0&&t.push({event:n,listeners:k})}var Hw=/\r\n?/g,qw=/\u0000|\uFFFD/g;function Vg(t){return(typeof t=="string"?t:""+t).replace(Hw,`
|
|
9
|
-
`).replace(qw,"")}function Gg(t,n){return n=Vg(n),Vg(t)===n}function nt(t,n,i,o,d,m){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||ql(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&ql(t,""+o);break;case"className":oo(t,"class",o);break;case"tabIndex":oo(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":oo(t,i,o);break;case"style":Gh(t,o,m);break;case"data":if(n!=="object"){oo(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=uo(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(n!=="input"&&nt(t,n,"name",d.name,d,null),nt(t,n,"formEncType",d.formEncType,d,null),nt(t,n,"formMethod",d.formMethod,d,null),nt(t,n,"formTarget",d.formTarget,d,null)):(nt(t,n,"encType",d.encType,d,null),nt(t,n,"method",d.method,d,null),nt(t,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=uo(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=ir);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=uo(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Fe("beforetoggle",t),Fe("toggle",t),ao(t,"popover",o);break;case"xlinkActuate":lr(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":lr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":lr(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":lr(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":lr(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":lr(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":lr(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":lr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":lr(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ao(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=gv.get(i)||i,ao(t,i,o))}}function ff(t,n,i,o,d,m){switch(i){case"style":Gh(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof o=="string"?ql(t,o):(typeof o=="number"||typeof o=="bigint")&&ql(t,""+o);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"onClick":o!=null&&(t.onclick=ir);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),n=i.slice(2,d?i.length-7:void 0),m=t[Ut]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(n,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,d);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):ao(t,i,o)}}}function zt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",t),Fe("load",t);var o=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var k=i[m];if(k!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,m,k,i,null)}}d&&nt(t,n,"srcSet",i.srcSet,i,null),o&&nt(t,n,"src",i.src,i,null);return;case"input":Fe("invalid",t);var R=m=k=d=null,P=null,ee=null;for(o in i)if(i.hasOwnProperty(o)){var le=i[o];if(le!=null)switch(o){case"name":d=le;break;case"type":k=le;break;case"checked":P=le;break;case"defaultChecked":ee=le;break;case"value":m=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(137,n));break;default:nt(t,n,o,le,i,null)}}qh(t,m,R,P,ee,k,d,!1);return;case"select":Fe("invalid",t),o=k=m=null;for(d in i)if(i.hasOwnProperty(d)&&(R=i[d],R!=null))switch(d){case"value":m=R;break;case"defaultValue":k=R;break;case"multiple":o=R;default:nt(t,n,d,R,i,null)}n=m,i=k,t.multiple=!!o,n!=null?Hl(t,!!o,n,!1):i!=null&&Hl(t,!!o,i,!0);return;case"textarea":Fe("invalid",t),m=d=o=null;for(k in i)if(i.hasOwnProperty(k)&&(R=i[k],R!=null))switch(k){case"value":o=R;break;case"defaultValue":d=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(a(91));break;default:nt(t,n,k,R,i,null)}$h(t,o,d,m);return;case"option":for(P in i)i.hasOwnProperty(P)&&(o=i[P],o!=null)&&(P==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":nt(t,n,P,o,i,null));return;case"dialog":Fe("beforetoggle",t),Fe("toggle",t),Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":Fe("load",t);break;case"video":case"audio":for(o=0;o<ya.length;o++)Fe(ya[o],t);break;case"image":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"embed":case"source":case"link":Fe("error",t),Fe("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(ee in i)if(i.hasOwnProperty(ee)&&(o=i[ee],o!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,ee,o,i,null)}return;default:if(Eu(n)){for(le in i)i.hasOwnProperty(le)&&(o=i[le],o!==void 0&&ff(t,n,le,o,i,void 0));return}}for(R in i)i.hasOwnProperty(R)&&(o=i[R],o!=null&&nt(t,n,R,o,i,null))}function Pw(t,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,k=null,R=null,P=null,ee=null,le=null;for(re in i){var ce=i[re];if(i.hasOwnProperty(re)&&ce!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":P=ce;default:o.hasOwnProperty(re)||nt(t,n,re,null,o,ce)}}for(var ne in o){var re=o[ne];if(ce=i[ne],o.hasOwnProperty(ne)&&(re!=null||ce!=null))switch(ne){case"type":m=re;break;case"name":d=re;break;case"checked":ee=re;break;case"defaultChecked":le=re;break;case"value":k=re;break;case"defaultValue":R=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(a(137,n));break;default:re!==ce&&nt(t,n,ne,re,o,ce)}}Su(t,k,R,P,ee,le,m,d);return;case"select":re=k=R=ne=null;for(m in i)if(P=i[m],i.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":re=P;default:o.hasOwnProperty(m)||nt(t,n,m,null,o,P)}for(d in o)if(m=o[d],P=i[d],o.hasOwnProperty(d)&&(m!=null||P!=null))switch(d){case"value":ne=m;break;case"defaultValue":R=m;break;case"multiple":k=m;default:m!==P&&nt(t,n,d,m,o,P)}n=R,i=k,o=re,ne!=null?Hl(t,!!i,ne,!1):!!o!=!!i&&(n!=null?Hl(t,!!i,n,!0):Hl(t,!!i,i?[]:"",!1));return;case"textarea":re=ne=null;for(R in i)if(d=i[R],i.hasOwnProperty(R)&&d!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:nt(t,n,R,null,o,d)}for(k in o)if(d=o[k],m=i[k],o.hasOwnProperty(k)&&(d!=null||m!=null))switch(k){case"value":ne=d;break;case"defaultValue":re=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==m&&nt(t,n,k,d,o,m)}Ph(t,ne,re);return;case"option":for(var we in i)ne=i[we],i.hasOwnProperty(we)&&ne!=null&&!o.hasOwnProperty(we)&&(we==="selected"?t.selected=!1:nt(t,n,we,null,o,ne));for(P in o)ne=o[P],re=i[P],o.hasOwnProperty(P)&&ne!==re&&(ne!=null||re!=null)&&(P==="selected"?t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":nt(t,n,P,ne,o,re));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 Te in i)ne=i[Te],i.hasOwnProperty(Te)&&ne!=null&&!o.hasOwnProperty(Te)&&nt(t,n,Te,null,o,ne);for(ee in o)if(ne=o[ee],re=i[ee],o.hasOwnProperty(ee)&&ne!==re&&(ne!=null||re!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,n));break;default:nt(t,n,ee,ne,o,re)}return;default:if(Eu(n)){for(var rt in i)ne=i[rt],i.hasOwnProperty(rt)&&ne!==void 0&&!o.hasOwnProperty(rt)&&ff(t,n,rt,void 0,o,ne);for(le in o)ne=o[le],re=i[le],!o.hasOwnProperty(le)||ne===re||ne===void 0&&re===void 0||ff(t,n,le,ne,o,re);return}}for(var K in i)ne=i[K],i.hasOwnProperty(K)&&ne!=null&&!o.hasOwnProperty(K)&&nt(t,n,K,null,o,ne);for(ce in o)ne=o[ce],re=i[ce],!o.hasOwnProperty(ce)||ne===re||ne==null&&re==null||nt(t,n,ce,ne,o,re)}function Yg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $w(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],m=d.transferSize,k=d.initiatorType,R=d.duration;if(m&&R&&Yg(k)){for(k=0,R=d.responseEnd,o+=1;o<i.length;o++){var P=i[o],ee=P.startTime;if(ee>R)break;var le=P.transferSize,ce=P.initiatorType;le&&Yg(ce)&&(P=P.responseEnd,k+=le*(P<R?1:(R-ee)/(P-ee)))}if(--o,n+=8*(m+k)/(d.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 df=null,hf=null;function is(t){return t.nodeType===9?t:t.ownerDocument}function Xg(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 Zg(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 pf(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 mf=null;function Vw(){var t=window.event;return t&&t.type==="popstate"?t===mf?!1:(mf=t,!0):(mf=null,!1)}var Qg=typeof setTimeout=="function"?setTimeout:void 0,Gw=typeof clearTimeout=="function"?clearTimeout:void 0,Kg=typeof Promise=="function"?Promise:void 0,Yw=typeof queueMicrotask=="function"?queueMicrotask:typeof Kg<"u"?function(t){return Kg.resolve(null).then(t).catch(Xw)}:Qg;function Xw(t){setTimeout(function(){throw t})}function Yr(t){return t==="head"}function Jg(t,n){var i=n,o=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(d),xi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")va(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,va(i);for(var m=i.firstChild;m;){var k=m.nextSibling,R=m.nodeName;m[Ee]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=k}}else i==="body"&&va(t.ownerDocument.body);i=d}while(i);xi(n)}function Wg(t,n){var i=t;t=0;do{var o=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function gf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":gf(i),Je(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Zw(t,n,i,o){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ee])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=On(t.nextSibling),t===null)break}return null}function Qw(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=On(t.nextSibling),t===null))return null;return t}function eb(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=On(t.nextSibling),t===null))return null;return t}function bf(t){return t.data==="$?"||t.data==="$~"}function yf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Kw(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function On(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 xf=null;function tb(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return On(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function nb(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function rb(t,n,i){switch(n=is(i),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function va(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Je(t)}var Mn=new Map,lb=new Set;function as(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var wr=O.d;O.d={f:Jw,r:Ww,D:e2,C:t2,L:n2,m:r2,X:i2,S:l2,M:a2};function Jw(){var t=wr.f(),n=Ko();return t||n}function Ww(t){var n=In(t);n!==null&&n.tag===5&&n.type==="form"?wm(n):wr.r(t)}var gi=typeof document>"u"?null:document;function ib(t,n,i){var o=gi;if(o&&typeof n=="string"&&n){var d=An(n);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),lb.has(d)||(lb.add(d),t={rel:t,crossOrigin:i,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),zt(n,"link",t),_t(n),o.head.appendChild(n)))}}function e2(t){wr.D(t),ib("dns-prefetch",t,null)}function t2(t,n){wr.C(t,n),ib("preconnect",t,n)}function n2(t,n,i){wr.L(t,n,i);var o=gi;if(o&&t&&n){var d='link[rel="preload"][as="'+An(n)+'"]';n==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+An(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+An(i.imageSizes)+'"]')):d+='[href="'+An(t)+'"]';var m=d;switch(n){case"style":m=bi(t);break;case"script":m=yi(t)}Mn.has(m)||(t=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),Mn.set(m,t),o.querySelector(d)!==null||n==="style"&&o.querySelector(wa(m))||n==="script"&&o.querySelector(Sa(m))||(n=o.createElement("link"),zt(n,"link",t),_t(n),o.head.appendChild(n)))}}function r2(t,n){wr.m(t,n);var i=gi;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+An(o)+'"][href="'+An(t)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=yi(t)}if(!Mn.has(m)&&(t=g({rel:"modulepreload",href:t},n),Mn.set(m,t),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Sa(m)))return}o=i.createElement("link"),zt(o,"link",t),_t(o),i.head.appendChild(o)}}}function l2(t,n,i){wr.S(t,n,i);var o=gi;if(o&&t){var d=Il(o).hoistableStyles,m=bi(t);n=n||"default";var k=d.get(m);if(!k){var R={loading:0,preload:null};if(k=o.querySelector(wa(m)))R.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},i),(i=Mn.get(m))&&vf(t,i);var P=k=o.createElement("link");_t(P),zt(P,"link",t),P._p=new Promise(function(ee,le){P.onload=ee,P.onerror=le}),P.addEventListener("load",function(){R.loading|=1}),P.addEventListener("error",function(){R.loading|=2}),R.loading|=4,os(k,n,o)}k={type:"stylesheet",instance:k,count:1,state:R},d.set(m,k)}}}function i2(t,n){wr.X(t,n);var i=gi;if(i&&t){var o=Il(i).hoistableScripts,d=yi(t),m=o.get(d);m||(m=i.querySelector(Sa(d)),m||(t=g({src:t,async:!0},n),(n=Mn.get(d))&&wf(t,n),m=i.createElement("script"),_t(m),zt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function a2(t,n){wr.M(t,n);var i=gi;if(i&&t){var o=Il(i).hoistableScripts,d=yi(t),m=o.get(d);m||(m=i.querySelector(Sa(d)),m||(t=g({src:t,async:!0,type:"module"},n),(n=Mn.get(d))&&wf(t,n),m=i.createElement("script"),_t(m),zt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function ab(t,n,i,o){var d=(d=fe.current)?as(d):null;if(!d)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=bi(i.href),i=Il(d).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=bi(i.href);var m=Il(d).hoistableStyles,k=m.get(t);if(k||(d=d.ownerDocument||d,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,k),(m=d.querySelector(wa(t)))&&!m._p&&(k.instance=m,k.state.loading=5),Mn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Mn.set(t,i),m||o2(d,t,i,k.state))),n&&o===null)throw Error(a(528,""));return k}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=yi(i),i=Il(d).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function bi(t){return'href="'+An(t)+'"'}function wa(t){return'link[rel="stylesheet"]['+t+"]"}function ob(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function o2(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),zt(n,"link",i),_t(n),t.head.appendChild(n))}function yi(t){return'[src="'+An(t)+'"]'}function Sa(t){return"script[async]"+t}function sb(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+An(i.href)+'"]');if(o)return n.instance=o,_t(o),o;var d=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),_t(o),zt(o,"style",d),os(o,i.precedence,t),n.instance=o;case"stylesheet":d=bi(i.href);var m=t.querySelector(wa(d));if(m)return n.state.loading|=4,n.instance=m,_t(m),m;o=ob(i),(d=Mn.get(d))&&vf(o,d),m=(t.ownerDocument||t).createElement("link"),_t(m);var k=m;return k._p=new Promise(function(R,P){k.onload=R,k.onerror=P}),zt(m,"link",o),n.state.loading|=4,os(m,i.precedence,t),n.instance=m;case"script":return m=yi(i.src),(d=t.querySelector(Sa(m)))?(n.instance=d,_t(d),d):(o=i,(d=Mn.get(m))&&(o=g({},i),wf(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),_t(d),zt(d,"link",o),t.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,os(o,i.precedence,t));return n.instance}function os(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,k=0;k<o.length;k++){var R=o[k];if(R.dataset.precedence===n)m=R;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function vf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function wf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var ss=null;function ub(t,n,i){if(ss===null){var o=new Map,d=ss=new Map;d.set(i,o)}else d=ss,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[Ee]||m[At]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var k=m.getAttribute(n)||"";k=t+k;var R=o.get(k);R?R.push(m):o.set(k,[m])}}return o}function cb(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function s2(t,n,i){if(i===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;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!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 fb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function u2(t,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=bi(o.href),m=n.querySelector(wa(d));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=us.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=m,_t(m);return}m=n.ownerDocument||n,o=ob(o),(d=Mn.get(d))&&vf(o,d),m=m.createElement("link"),_t(m);var k=m;k._p=new Promise(function(R,P){k.onload=R,k.onerror=P}),zt(m,"link",o),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=us.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var Sf=0;function c2(t,n){return t.stylesheets&&t.count===0&&fs(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&fs(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+n);0<t.imgBytes&&Sf===0&&(Sf=62500*$w());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&fs(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Sf?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function us(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cs=null;function fs(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cs=new Map,n.forEach(f2,t),cs=null,us.call(t))}function f2(t,n){if(!(n.state.loading&4)){var i=cs.get(t);if(i)var o=i.get(null);else{i=new Map,cs.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var k=d[m];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(i.set(k.dataset.precedence,k),o=k)}o&&i.set(null,o)}d=n.instance,k=d.getAttribute("data-precedence"),m=i.get(k)||o,m===o&&i.set(null,d),i.set(k,d),this.count++,o=us.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),n.state.loading|=4}}var ka={$$typeof:j,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function d2(t,n,i,o,d,m,k,R,P){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=Bl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bl(0),this.hiddenUpdates=Bl(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function db(t,n,i,o,d,m,k,R,P,ee,le,ce){return t=new d2(t,n,i,k,P,ee,le,ce,R),n=1,m===!0&&(n|=24),m=hn(3,null,null,n),t.current=m,m.stateNode=t,n=ec(),n.refCount++,t.pooledCache=n,n.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:n},lc(m),t}function hb(t){return t?(t=Zl,t):Zl}function pb(t,n,i,o,d,m){d=hb(d),o.context===null?o.context=d:o.pendingContext=d,o=zr(n),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=Br(t,o,n),i!==null&&(ln(i,t,n),ta(i,t,n))}function mb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function kf(t,n){mb(t,n),(t=t.alternate)&&mb(t,n)}function gb(t){if(t.tag===13||t.tag===31){var n=ml(t,67108864);n!==null&&ln(n,t,67108864),kf(t,67108864)}}function bb(t){if(t.tag===13||t.tag===31){var n=yn();n=rr(n);var i=ml(t,n);i!==null&&ln(i,t,n),kf(t,n)}}var ds=!0;function h2(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=2,Ef(t,n,i,o)}finally{O.p=m,F.T=d}}function p2(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=8,Ef(t,n,i,o)}finally{O.p=m,F.T=d}}function Ef(t,n,i,o){if(ds){var d=Cf(o);if(d===null)cf(t,n,o,hs,i),xb(t,o);else if(g2(d,t,n,i,o))o.stopPropagation();else if(xb(t,o),n&4&&-1<m2.indexOf(t)){for(;d!==null;){var m=In(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var k=tr(m.pendingLanes);if(k!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;k;){var P=1<<31-Ke(k);R.entanglements[1]|=P,k&=~P}Zn(m),(Ze&6)===0&&(Zo=at()+500,ba(0))}}break;case 31:case 13:R=ml(m,2),R!==null&&ln(R,m,2),Ko(),kf(m,2)}if(m=Cf(o),m===null&&cf(t,n,o,hs,i),m===d)break;d=m}d!==null&&o.stopPropagation()}else cf(t,n,o,null,i)}}function Cf(t){return t=Nu(t),Nf(t)}var hs=null;function Nf(t){if(hs=null,t=fn(t),t!==null){var n=u(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=c(n),t!==null)return t;t=null}else if(i===31){if(t=f(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return hs=t,null}function yb(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($n()){case ae:return 2;case ye:return 8;case je:case Me:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Af=!1,Xr=null,Zr=null,Qr=null,Ea=new Map,Ca=new Map,Kr=[],m2="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 xb(t,n){switch(t){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":Qr=null;break;case"pointerover":case"pointerout":Ea.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ca.delete(n.pointerId)}}function Na(t,n,i,o,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},n!==null&&(n=In(n),n!==null&&gb(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function g2(t,n,i,o,d){switch(n){case"focusin":return Xr=Na(Xr,t,n,i,o,d),!0;case"dragenter":return Zr=Na(Zr,t,n,i,o,d),!0;case"mouseover":return Qr=Na(Qr,t,n,i,o,d),!0;case"pointerover":var m=d.pointerId;return Ea.set(m,Na(Ea.get(m)||null,t,n,i,o,d)),!0;case"gotpointercapture":return m=d.pointerId,Ca.set(m,Na(Ca.get(m)||null,t,n,i,o,d)),!0}return!1}function vb(t){var n=fn(t.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){t.blockedOn=n,io(t.priority,function(){bb(i)});return}}else if(n===31){if(n=f(i),n!==null){t.blockedOn=n,io(t.priority,function(){bb(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ps(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Cf(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Cu=o,i.target.dispatchEvent(o),Cu=null}else return n=In(i),n!==null&&gb(n),t.blockedOn=i,!1;n.shift()}return!0}function wb(t,n,i){ps(t)&&i.delete(n)}function b2(){Af=!1,Xr!==null&&ps(Xr)&&(Xr=null),Zr!==null&&ps(Zr)&&(Zr=null),Qr!==null&&ps(Qr)&&(Qr=null),Ea.forEach(wb),Ca.forEach(wb)}function ms(t,n){t.blockedOn===n&&(t.blockedOn=null,Af||(Af=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,b2)))}var gs=null;function Sb(t){gs!==t&&(gs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gs===t&&(gs=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],d=t[n+2];if(typeof o!="function"){if(Nf(o||i)===null)continue;break}var m=In(i);m!==null&&(t.splice(n,3),n-=3,Ec(m,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function xi(t){function n(P){return ms(P,t)}Xr!==null&&ms(Xr,t),Zr!==null&&ms(Zr,t),Qr!==null&&ms(Qr,t),Ea.forEach(n),Ca.forEach(n);for(var i=0;i<Kr.length;i++){var o=Kr[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Kr.length&&(i=Kr[0],i.blockedOn===null);)vb(i),i.blockedOn===null&&Kr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],m=i[o+1],k=d[Ut]||null;if(typeof m=="function")k||Sb(i);else if(k){var R=null;if(m&&m.hasAttribute("formAction")){if(d=m,k=m[Ut]||null)R=k.formAction;else if(Nf(d)!==null)continue}else R=k.action;typeof R=="function"?i[o+1]=R:(i.splice(o,3),o-=3),Sb(i)}}}function kb(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(k){return d=k})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Tf(t){this._internalRoot=t}bs.prototype.render=Tf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=yn();pb(i,o,t,n,null,null)},bs.prototype.unmount=Tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;pb(t.current,2,null,t,null,null),Ko(),n[jr]=null}};function bs(t){this._internalRoot=t}bs.prototype.unstable_scheduleHydration=function(t){if(t){var n=Bi();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Kr.length&&n!==0&&n<Kr[i].priority;i++);Kr.splice(i,0,t),i===0&&vb(t)}};var Eb=r.version;if(Eb!=="19.2.3")throw Error(a(527,Eb,"19.2.3"));O.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=p(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var y2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{Lt=ys.inject(y2),mt=ys}catch{}}return Ta.createRoot=function(t,n){if(!s(t))throw Error(a(299));var i=!1,o="",d=Rm,m=Lm,k=Dm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(k=n.onRecoverableError)),n=db(t,1,!1,null,null,i,o,null,d,m,k,kb),t[jr]=n.current,uf(t),new Tf(n)},Ta.hydrateRoot=function(t,n,i){if(!s(t))throw Error(a(299));var o=!1,d="",m=Rm,k=Lm,R=Dm,P=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(k=i.onCaughtError),i.onRecoverableError!==void 0&&(R=i.onRecoverableError),i.formState!==void 0&&(P=i.formState)),n=db(t,1,!0,n,i??null,o,d,P,m,k,R,kb),n.context=hb(null),i=n.current,o=yn(),o=rr(o),d=zr(o),d.callback=null,Br(i,d,o),i=o,n.current.lanes=i,Vn(n,i),Zn(n),t[jr]=n.current,uf(t),new bs(n)},Ta.version="19.2.3",Ta}var Ob;function T2(){if(Ob)return Rf.exports;Ob=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(r){console.error(r)}}return e(),Rf.exports=A2(),Rf.exports}var j2=T2();const _2=eu(j2),Bx=["shift","alt","meta","mod","ctrl","control"],R2={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function il(e){return(R2[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Fx(e){return Bx.includes(e)}function Mf(e,r=","){return e.toLowerCase().split(r)}function zf(e,r="+",l=">",a=!1,s){let u=[],c=!1;e=e.trim(),e.includes(l)?(c=!0,u=e.toLocaleLowerCase().split(l).map(p=>il(p))):u=e.toLocaleLowerCase().split(r).map(p=>il(p));const f={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:a},h=u.filter(p=>!Bx.includes(p));return{...f,keys:h,description:s,isSequence:c,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Ix([il(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Ux([il(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{kr.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{kr.clear()},0)}));const kr=new Set;function lh(e){return Array.isArray(e)}function L2(e,r=","){return(lh(e)?e:e.split(r)).every(l=>kr.has(l.trim().toLowerCase()))}function Ix(e){const r=Array.isArray(e)?e:[e];kr.has("meta")&&kr.forEach(l=>!Fx(l)&&kr.delete(l.toLowerCase())),r.forEach(l=>kr.add(l.toLowerCase()))}function Ux(e){const r=Array.isArray(e)?e:[e];e==="meta"?kr.clear():r.forEach(l=>kr.delete(l.toLowerCase()))}function D2(e,r,l){(typeof l=="function"&&l(e,r)||l===!0)&&e.preventDefault()}function O2(e,r,l){return typeof l=="function"?l(e,r):l===!0||l===void 0}const M2=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function z2(e){return Hx(e,M2)}function Hx(e,r=!1){const{target:l,composed:a}=e;let s,u;return B2(l)&&a?(s=e.composedPath()[0]&&e.composedPath()[0].tagName,u=e.composedPath()[0]&&e.composedPath()[0].role):(s=l&&l.tagName,u=l&&l.role),lh(r)?!!(s&&r&&r.some(c=>c.toLowerCase()===s.toLowerCase()||c===u)):!!(s&&r&&r)}function B2(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function F2(e,r){return e.length===0&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):r?e.some(l=>r.includes(l))||e.includes("*"):!0}const I2=(e,r,l=!1)=>{const{alt:a,meta:s,mod:u,shift:c,ctrl:f,keys:h,useKey:p}=r,{code:b,key:g,ctrlKey:v,metaKey:x,shiftKey:w,altKey:S}=e,N=il(b);if(p&&h?.length===1&&h.includes(g))return!0;if(!h?.includes(N)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(N))return!1;if(!l){if(a!==S&&N!=="alt"||c!==w&&N!=="shift")return!1;if(u){if(!x&&!v)return!1}else if(s!==x&&N!=="meta"&&N!=="os"||f!==v&&N!=="ctrl"&&N!=="control")return!1}return h&&h.length===1&&h.includes(N)?!0:h?L2(h):!h},qx=T.createContext(void 0),U2=()=>T.useContext(qx);function H2({addHotkey:e,removeHotkey:r,children:l}){return y.jsx(qx.Provider,{value:{addHotkey:e,removeHotkey:r},children:l})}function ih(e,r){return e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(e).length===Object.keys(r).length&&Object.keys(e).reduce((l,a)=>l&&ih(e[a],r[a]),!0):e===r}const Px=T.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Ya=()=>T.useContext(Px),q2=({initiallyActiveScopes:e=["*"],children:r})=>{const[l,a]=T.useState(e),[s,u]=T.useState([]),c=T.useCallback(g=>{a(v=>v.includes("*")?[g]:Array.from(new Set([...v,g])))},[]),f=T.useCallback(g=>{a(v=>v.filter(x=>x!==g))},[]),h=T.useCallback(g=>{a(v=>v.includes(g)?v.filter(x=>x!==g):v.includes("*")?[g]:Array.from(new Set([...v,g])))},[]),p=T.useCallback(g=>{u(v=>[...v,g])},[]),b=T.useCallback(g=>{u(v=>v.filter(x=>!ih(x,g)))},[]);return y.jsx(Px.Provider,{value:{activeScopes:l,hotkeys:s,enableScope:c,disableScope:f,toggleScope:h},children:y.jsx(H2,{addHotkey:p,removeHotkey:b,children:r})})};function P2(e){const r=T.useRef(void 0);return ih(r.current,e)||(r.current=e),r.current}const Mb=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},$2=typeof window<"u"?T.useLayoutEffect:T.useEffect;function lt(e,r,l,a){const s=T.useRef(null),u=T.useRef(!1),c=Array.isArray(l)?Array.isArray(a)?void 0:a:l,f=lh(e)?e.join(c?.delimiter):e,h=Array.isArray(l)?l:Array.isArray(a)?a:void 0,p=T.useCallback(r,h??[]),b=T.useRef(p);h?b.current=p:b.current=r;const g=P2(c),{activeScopes:v}=Ya(),x=U2();return $2(()=>{if(g?.enabled===!1||!F2(v,g?.scopes))return;let w=[],S;const N=(B,q=!1)=>{if(!(z2(B)&&!Hx(B,g?.enableOnFormTags))){if(s.current!==null){const L=s.current.getRootNode();if((L instanceof Document||L instanceof ShadowRoot)&&L.activeElement!==s.current&&!s.current.contains(L.activeElement)){Mb(B);return}}B.target?.isContentEditable&&!g?.enableOnContentEditable||Mf(f,g?.delimiter).forEach(L=>{if(L.includes(g?.splitKey??"+")&&L.includes(g?.sequenceSplitKey??">")){console.warn(`Hotkey ${L} contains both ${g?.splitKey??"+"} and ${g?.sequenceSplitKey??">"} which is not supported.`);return}const I=zf(L,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description);if(I.isSequence){S=setTimeout(()=>{w=[]},g?.sequenceTimeoutMs??1e3);const $=I.useKey?B.key:il(B.code);if(Fx($.toLowerCase()))return;w.push($);const G=I.keys?.[w.length-1];if($!==G){w=[],S&&clearTimeout(S);return}w.length===I.keys?.length&&(b.current(B,I),S&&clearTimeout(S),w=[])}else if(I2(B,I,g?.ignoreModifiers)||I.keys?.includes("*")){if(g?.ignoreEventWhen?.(B)||q&&u.current)return;if(D2(B,I,g?.preventDefault),!O2(B,I,g?.enabled)){Mb(B);return}b.current(B,I),q||(u.current=!0)}})}},E=B=>{B.code!==void 0&&(Ix(il(B.code)),(g?.keydown===void 0&&g?.keyup!==!0||g?.keydown)&&N(B))},C=B=>{B.code!==void 0&&(Ux(il(B.code)),u.current=!1,g?.keyup&&N(B,!0))},j=s.current||c?.document||document;return j.addEventListener("keyup",C,c?.eventListenerOptions),j.addEventListener("keydown",E,c?.eventListenerOptions),x&&Mf(f,g?.delimiter).forEach(B=>x.addHotkey(zf(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),()=>{j.removeEventListener("keyup",C,c?.eventListenerOptions),j.removeEventListener("keydown",E,c?.eventListenerOptions),x&&Mf(f,g?.delimiter).forEach(B=>x.removeHotkey(zf(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),w=[],S&&clearTimeout(S)}},[f,g,v]),s}const V2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,a)=>a?a.toUpperCase():l.toLowerCase()),zb=e=>{const r=G2(e);return r.charAt(0).toUpperCase()+r.slice(1)},$x=(...e)=>e.filter((r,l,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===l).join(" ").trim(),Y2=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var X2={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"};const Z2=T.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...f},h)=>T.createElement("svg",{ref:h,...X2,width:r,height:r,stroke:e,strokeWidth:a?Number(l)*24/Number(r):l,className:$x("lucide",s),...!u&&!Y2(f)&&{"aria-hidden":"true"},...f},[...c.map(([p,b])=>T.createElement(p,b)),...Array.isArray(u)?u:[u]]));const Ve=(e,r)=>{const l=T.forwardRef(({className:a,...s},u)=>T.createElement(Z2,{ref:u,iconNode:r,className:$x(`lucide-${V2(zb(e))}`,`lucide-${e}`,a),...s}));return l.displayName=zb(e),l};const Q2=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],K2=Ve("arrow-down-from-line",Q2);const J2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],W2=Ve("arrow-up-from-line",J2);const eS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qa=Ve("check",eS);const tS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_i=Ve("chevron-down",tS);const nS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rS=Ve("chevron-left",nS);const lS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Vx=Ve("chevron-right",lS);const iS=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],aS=Ve("chevrons-down-up",iS);const oS=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],sS=Ve("chevrons-up-down",oS);const uS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],cS=Ve("columns-2",uS);const fS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Gx=Ve("copy",fS);const dS=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],hS=Ve("eraser",dS);const pS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],mS=Ve("external-link",pS);const gS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ls=Ve("eye",gS);const bS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],tu=Ve("file-diff",bS);const yS=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Yx=Ve("file-pen",yS);const xS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Xx=Ve("file-plus",xS);const vS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Zx=Ve("file-x",vS);const wS=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],SS=Ve("folder-open",wS);const kS=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],ES=Ve("folder",kS);const CS=[["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"}]],NS=Ve("git-branch",CS);const AS=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],TS=Ve("keyboard",AS);const jS=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],_S=Ve("list",jS);const RS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LS=Ve("loader-circle",RS);const DS=[["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"}]],Qx=Ve("message-square",DS);const OS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],MS=Ve("panel-left-close",OS);const zS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],BS=Ve("panel-left",zS);const FS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],IS=Ve("pen",FS);const US=[["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"}]],HS=Ve("refresh-cw",US);const qS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],PS=Ve("search",qS);const $S=[["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"}]],Kx=Ve("settings",$S);const VS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],GS=Ve("square",VS);const YS=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],XS=Ve("text-align-start",YS);const ZS=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],QS=Ve("unfold-vertical",ZS);const KS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nu=Ve("x",KS),Xa="split";function JS(e){switch(e){case"split":case"side-by-side":return"split";case"unified":case"inline":return"unified";default:return Xa}}function Jx({checked:e,onChange:r,label:l,className:a="",title:s}){const u=f=>{f.stopPropagation(),r(!e)},c=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),f.stopPropagation(),r(!e))};return y.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${a}`,title:s,onClick:u,onKeyDown:c,role:"checkbox","aria-checked":e,tabIndex:0,children:[y.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${e?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:e&&y.jsx(qa,{size:10,className:"text-white"})}),l&&y.jsx("span",{className:"select-none",children:l})]})}function Bb({commentsCount:e,isCopiedAll:r,onCopyAll:l,onDeleteAll:a,onViewAll:s,direction:u="down",compact:c=!1}){const[f,h]=T.useState(!1),p=T.useRef(null),b=c,g=u==="up";T.useEffect(()=>{const N=E=>{p.current&&!p.current.contains(E.target)&&h(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const v=()=>{l(),h(!1)},x=()=>{a(),h(!1)},w=()=>{s?.(),h(!1)},S=b?r?"Copied":`Copy All (${e})`:r?"Copied All!":`Copy All Prompt (${e})`;return y.jsxs("div",{className:"relative",ref:p,children:[y.jsxs("div",{className:"flex",children:[y.jsxs("button",{onClick:v,className:`text-xs px-3 py-1.5 pr-2 rounded-l transition-all flex items-center gap-1.5 ${b?"whitespace-normal":"whitespace-nowrap"}`,style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${e} comments to AI coding agent`,children:[r?y.jsx(qa,{size:12}):y.jsx(Gx,{size:12}),S]}),y.jsx("button",{onClick:()=>h(!f),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:y.jsx(_i,{size:12,className:`transition-transform duration-200 ${f?"rotate-180":""}`})})]}),f&&y.jsxs("div",{className:`absolute left-0 right-0 bg-github-bg-primary border border-github-border z-50 pb-px ${g?"bottom-full rounded-t":"top-full rounded-b"}`,style:{borderTop:g?void 0:"none",borderBottom:g?"none":void 0},children:[s&&y.jsxs("button",{onClick:w,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:e===0,children:[y.jsx(_S,{size:12}),"View All Comments"]}),y.jsxs("button",{onClick:x,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[y.jsx(hS,{size:12}),"Cleanup All Prompt"]})]})]})}function ah({comment:e,onGeneratePrompt:r,onRemoveComment:l,onUpdateComment:a,onClick:s}){const[u,c]=T.useState(!1),[f,h]=T.useState(!1),[p,b]=T.useState(e.body),g=async E=>{E.stopPropagation();try{const C=r(e);await navigator.clipboard.writeText(C),c(!0),setTimeout(()=>c(!1),2e3)}catch(C){console.error("Failed to copy prompt:",C)}},v=E=>{E.stopPropagation(),h(!0),b(e.body)},x=()=>{h(!1),b(e.body)},w=E=>{E?.stopPropagation(),p.trim()!==e.body&&a(e.id,p.trim()),h(!1)},S=E=>{E.stopPropagation(),l(e.id)},N=E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),w()):E.key==="Escape"&&(E.preventDefault(),x())};return lt("escape",()=>{f&&x()},{enableOnFormTags:["textarea"],enabled:f},[f]),lt("mod+enter",()=>{f&&w()},{enableOnFormTags:["textarea"],enabled:f},[f,p,e.body]),y.jsxs("div",{id:`comment-${e.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${s?"hover:shadow-md cursor-pointer":""}`,onClick:s,children:[y.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[y.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:y.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[e.file,":",Array.isArray(e.line)?`${e.line[0]}-${e.line[1]}`:e.line]})}),y.jsx("div",{className:"flex items-center gap-2",children:!f&&y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:g,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:u?"Copied!":"Copy Prompt"}),y.jsx("button",{onClick:v,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:y.jsx(IS,{size:12})}),y.jsx("button",{onClick:S,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:y.jsx(qa,{size:12})})]})})]}),f?y.jsxs("div",{children:[y.jsx("textarea",{value:p,onChange:E=>b(E.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,p.split(`
|
|
10
|
-
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:E=>E.stopPropagation(),onKeyDown:E=>{E.stopPropagation(),N(E)}}),y.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[y.jsx("button",{type:"button",onClick:x,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),y.jsx("button",{type:"button",onClick:w,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!p.trim(),children:"Submit"})]})]}):y.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:e.body})]})}function WS({isOpen:e,onClose:r,onNavigate:l,comments:a,onRemoveComment:s,onGeneratePrompt:u,onUpdateComment:c}){const[f,h]=T.useState(0),p=T.useRef([]),{enableScope:b,disableScope:g}=Ya(),v=[...a].sort((N,E)=>{const C=N.file.localeCompare(E.file);if(C!==0)return C;const j=Array.isArray(N.line)?N.line[0]:N.line,B=Array.isArray(E.line)?E.line[0]:E.line;return j-B}),x=T.useCallback(N=>{l(N),r()},[l,r]),w=T.useCallback(N=>{confirm(`Delete this comment?
|
|
11
|
-
|
|
12
|
-
"${N.body}"`)&&(s(N.id),f>=v.length-1&&f>0&&h(f-1))},[s,f,v.length]);T.useEffect(()=>(e?(b("comments-list"),g("navigation")):(b("navigation"),g("comments-list"),h(0)),()=>{b("navigation"),g("comments-list")}),[e,b,g]);const S={scopes:"comments-list",enableOnFormTags:!1};return lt("escape",()=>r(),S,[r]),lt("j, down",()=>h(N=>Math.min(N+1,v.length-1)),S,[v.length]),lt("k, up",()=>h(N=>Math.max(N-1,0)),S,[]),lt("enter",()=>{v[f]&&x(v[f])},S,[f,v,x]),lt("d",()=>{v[f]&&w(v[f])},S,[f,v,w]),T.useEffect(()=>{p.current[f]&&p.current[f]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[f]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:y.jsx(nu,{size:20})})]}),y.jsxs("div",{className:"text-xs text-github-text-secondary",children:[y.jsx("span",{className:"font-mono",children:"j/k"})," or ",y.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",y.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",y.jsx("span",{className:"font-mono",children:"d"})," to delete • ",y.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),y.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:y.jsx("div",{className:"p-6",children:v.length===0?y.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"space-y-2",children:v.map((N,E)=>y.jsx("div",{ref:C=>{p.current[E]=C},className:`${f===E?"ring-2 ring-blue-500 rounded":""}`,children:y.jsx(ah,{comment:N,onGeneratePrompt:u,onRemoveComment:s,onUpdateComment:c,onClick:C=>{C.stopPropagation(),h(E),x(N)}})},N.id))}),v.length>0&&y.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[f+1," of ",v.length," comments"]})]})})})]})]}):null}function ru(){return typeof window<"u"}function ol(e){return oh(e)?(e.nodeName||"").toLowerCase():"#document"}function un(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Wn(e){var r;return(r=(oh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function oh(e){return ru()?e instanceof Node||e instanceof un(e).Node:!1}function ct(e){return ru()?e instanceof Element||e instanceof un(e).Element:!1}function Nt(e){return ru()?e instanceof HTMLElement||e instanceof un(e).HTMLElement:!1}function Ds(e){return!ru()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof un(e).ShadowRoot}const ek=new Set(["inline","contents"]);function Za(e){const{overflow:r,overflowX:l,overflowY:a,display:s}=Bn(e);return/auto|scroll|overlay|hidden|clip/.test(r+a+l)&&!ek.has(s)}const tk=new Set(["table","td","th"]);function nk(e){return tk.has(ol(e))}const rk=[":popover-open",":modal"];function lu(e){return rk.some(r=>{try{return e.matches(r)}catch{return!1}})}const lk=["transform","translate","scale","rotate","perspective"],ik=["transform","translate","scale","rotate","perspective","filter"],ak=["paint","layout","strict","content"];function sh(e){const r=iu(),l=ct(e)?Bn(e):e;return lk.some(a=>l[a]?l[a]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!r&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!r&&(l.filter?l.filter!=="none":!1)||ik.some(a=>(l.willChange||"").includes(a))||ak.some(a=>(l.contain||"").includes(a))}function ok(e){let r=Cr(e);for(;Nt(r)&&!Er(r);){if(sh(r))return r;if(lu(r))return null;r=Cr(r)}return null}function iu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sk=new Set(["html","body","#document"]);function Er(e){return sk.has(ol(e))}function Bn(e){return un(e).getComputedStyle(e)}function au(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cr(e){if(ol(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Ds(e)&&e.host||Wn(e);return Ds(r)?r.host:r}function Wx(e){const r=Cr(e);return Er(r)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(r)&&Za(r)?r:Wx(r)}function al(e,r,l){var a;r===void 0&&(r=[]),l===void 0&&(l=!0);const s=Wx(e),u=s===((a=e.ownerDocument)==null?void 0:a.body),c=un(s);if(u){const f=vd(c);return r.concat(c,c.visualViewport||[],Za(s)?s:[],f&&l?al(f):[])}return r.concat(s,al(s,[],l))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Os=Math.min,_l=Math.max,Ms=Math.round,xs=Math.floor,Kn=e=>({x:e,y:e}),uk={left:"right",right:"left",bottom:"top",top:"bottom"},ck={start:"end",end:"start"};function Fb(e,r,l){return _l(e,Os(r,l))}function ou(e,r){return typeof e=="function"?e(r):e}function Rl(e){return e.split("-")[0]}function su(e){return e.split("-")[1]}function e1(e){return e==="x"?"y":"x"}function t1(e){return e==="y"?"height":"width"}const fk=new Set(["top","bottom"]);function rl(e){return fk.has(Rl(e))?"y":"x"}function n1(e){return e1(rl(e))}function dk(e,r,l){l===void 0&&(l=!1);const a=su(e),s=n1(e),u=t1(s);let c=s==="x"?a===(l?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=zs(c)),[c,zs(c)]}function hk(e){const r=zs(e);return[wd(e),r,wd(r)]}function wd(e){return e.replace(/start|end/g,r=>ck[r])}const Ib=["left","right"],Ub=["right","left"],pk=["top","bottom"],mk=["bottom","top"];function gk(e,r,l){switch(e){case"top":case"bottom":return l?r?Ub:Ib:r?Ib:Ub;case"left":case"right":return r?pk:mk;default:return[]}}function bk(e,r,l,a){const s=su(e);let u=gk(Rl(e),l==="start",a);return s&&(u=u.map(c=>c+"-"+s),r&&(u=u.concat(u.map(wd)))),u}function zs(e){return e.replace(/left|right|bottom|top/g,r=>uk[r])}function yk(e){return{top:0,right:0,bottom:0,left:0,...e}}function xk(e){return typeof e!="number"?yk(e):{top:e,right:e,bottom:e,left:e}}function Bs(e){const{x:r,y:l,width:a,height:s}=e;return{width:a,height:s,top:l,left:r,right:r+a,bottom:l+s,x:r,y:l}}var vk=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Fs=vk.join(","),r1=typeof Element>"u",Ri=r1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Is=!r1&&Element.prototype.getRootNode?function(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}:function(e){return e?.ownerDocument},Us=function(r,l){var a;l===void 0&&(l=!0);var s=r==null||(a=r.getAttribute)===null||a===void 0?void 0:a.call(r,"inert"),u=s===""||s==="true",c=u||l&&r&&(typeof r.closest=="function"?r.closest("[inert]"):Us(r.parentNode));return c},wk=function(r){var l,a=r==null||(l=r.getAttribute)===null||l===void 0?void 0:l.call(r,"contenteditable");return a===""||a==="true"},l1=function(r,l,a){if(Us(r))return[];var s=Array.prototype.slice.apply(r.querySelectorAll(Fs));return l&&Ri.call(r,Fs)&&s.unshift(r),s=s.filter(a),s},Hs=function(r,l,a){for(var s=[],u=Array.from(r);u.length;){var c=u.shift();if(!Us(c,!1))if(c.tagName==="SLOT"){var f=c.assignedElements(),h=f.length?f:c.children,p=Hs(h,!0,a);a.flatten?s.push.apply(s,p):s.push({scopeParent:c,candidates:p})}else{var b=Ri.call(c,Fs);b&&a.filter(c)&&(l||!r.includes(c))&&s.push(c);var g=c.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(c),v=!Us(g,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(c));if(g&&v){var x=Hs(g===!0?c.children:g.children,!0,a);a.flatten?s.push.apply(s,x):s.push({scopeParent:c,candidates:x})}else u.unshift.apply(u,c.children)}}return s},i1=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},a1=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||wk(r))&&!i1(r)?0:r.tabIndex},Sk=function(r,l){var a=a1(r);return a<0&&l&&!i1(r)?0:a},kk=function(r,l){return r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex},o1=function(r){return r.tagName==="INPUT"},Ek=function(r){return o1(r)&&r.type==="hidden"},Ck=function(r){var l=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(a){return a.tagName==="SUMMARY"});return l},Nk=function(r,l){for(var a=0;a<r.length;a++)if(r[a].checked&&r[a].form===l)return r[a]},Ak=function(r){if(!r.name)return!0;var l=r.form||Is(r),a=function(f){return l.querySelectorAll('input[type="radio"][name="'+f+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(r.name));else try{s=a(r.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=Nk(s,r.form);return!u||u===r},Tk=function(r){return o1(r)&&r.type==="radio"},jk=function(r){return Tk(r)&&!Ak(r)},_k=function(r){var l,a=r&&Is(r),s=(l=a)===null||l===void 0?void 0:l.host,u=!1;if(a&&a!==r){var c,f,h;for(u=!!((c=s)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(s)||r!=null&&(h=r.ownerDocument)!==null&&h!==void 0&&h.contains(r));!u&&s;){var p,b,g;a=Is(s),s=(p=a)===null||p===void 0?void 0:p.host,u=!!((b=s)!==null&&b!==void 0&&(g=b.ownerDocument)!==null&&g!==void 0&&g.contains(s))}}return u},Hb=function(r){var l=r.getBoundingClientRect(),a=l.width,s=l.height;return a===0&&s===0},Rk=function(r,l){var a=l.displayCheck,s=l.getShadowRoot;if(a==="full-native"&&"checkVisibility"in r){var u=r.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!u}if(getComputedStyle(r).visibility==="hidden")return!0;var c=Ri.call(r,"details>summary:first-of-type"),f=c?r.parentElement:r;if(Ri.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var h=r;r;){var p=r.parentElement,b=Is(r);if(p&&!p.shadowRoot&&s(p)===!0)return Hb(r);r.assignedSlot?r=r.assignedSlot:!p&&b!==r.ownerDocument?r=b.host:r=p}r=h}if(_k(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Hb(r);return!1},Lk=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var l=r.parentElement;l;){if(l.tagName==="FIELDSET"&&l.disabled){for(var a=0;a<l.children.length;a++){var s=l.children.item(a);if(s.tagName==="LEGEND")return Ri.call(l,"fieldset[disabled] *")?!0:!s.contains(r)}return!0}l=l.parentElement}return!1},Sd=function(r,l){return!(l.disabled||Ek(l)||Rk(l,r)||Ck(l)||Lk(l))},kd=function(r,l){return!(jk(l)||a1(l)<0||!Sd(r,l))},Dk=function(r){var l=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(l)||l>=0)},s1=function(r){var l=[],a=[];return r.forEach(function(s,u){var c=!!s.scopeParent,f=c?s.scopeParent:s,h=Sk(f,c),p=c?s1(s.candidates):f;h===0?c?l.push.apply(l,p):l.push(f):a.push({documentOrder:u,tabIndex:h,item:s,isScope:c,content:p})}),a.sort(kk).reduce(function(s,u){return u.isScope?s.push.apply(s,u.content):s.push(u.content),s},[]).concat(l)},uu=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Hs([r],l.includeContainer,{filter:kd.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:Dk}):a=l1(r,l.includeContainer,kd.bind(null,l)),s1(a)},Ok=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Hs([r],l.includeContainer,{filter:Sd.bind(null,l),flatten:!0,getShadowRoot:l.getShadowRoot}):a=l1(r,l.includeContainer,Sd.bind(null,l)),a},u1=function(r,l){if(l=l||{},!r)throw new Error("No node provided");return Ri.call(r,Fs)===!1?!1:kd(l,r)};function c1(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function f1(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:l,version:a}=r;return l+"/"+a}).join(" "):navigator.userAgent}function d1(){return/apple/i.test(navigator.vendor)}function Ed(){const e=/android/i;return e.test(c1())||e.test(f1())}function Mk(){return c1().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function h1(){return f1().includes("jsdom/")}const qb="data-floating-ui-focusable",zk="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function nl(e){let r=e.activeElement;for(;((l=r)==null||(l=l.shadowRoot)==null?void 0:l.activeElement)!=null;){var l;r=r.shadowRoot.activeElement}return r}function Pt(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&Ds(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Sr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Bf(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const l=e;return l.target!=null&&r.contains(l.target)}function Bk(e){return e.matches("html,body")}function $t(e){return e?.ownerDocument||document}function uh(e){return Nt(e)&&e.matches(zk)}function Pb(e){return e?e.getAttribute("role")==="combobox"&&uh(e):!1}function Fk(e){if(!e||h1())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Cd(e){return e?e.hasAttribute(qb)?e:e.querySelector("["+qb+"]")||e:null}function Ni(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Ni(e,s.id,l)])}function $b(e,r){var l;let a=[],s=(l=e.find(u=>u.id===r))==null?void 0:l.parentId;for(;s;){const u=e.find(c=>c.id===s);s=u?.parentId,u&&(a=a.concat(u))}return a}function Ff(e){e.preventDefault(),e.stopPropagation()}function Ik(e){return"nativeEvent"in e}function Uk(e){return e.mozInputSource===0&&e.isTrusted?!0:Ed()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Hk(e){return h1()?!1:!Ed()&&e.width===0&&e.height===0||Ed()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Pa(e,r){const l=["mouse","pen"];return r||l.push("",void 0),l.includes(e)}var qk=typeof document<"u",Pk=function(){},sn=qk?T.useLayoutEffect:Pk;const $k={...Mx};function jl(e){const r=T.useRef(e);return sn(()=>{r.current=e}),r}const Vk=$k.useInsertionEffect,Gk=Vk||(e=>e());function on(e){const r=T.useRef(()=>{});return Gk(()=>{r.current=e}),T.useCallback(function(){for(var l=arguments.length,a=new Array(l),s=0;s<l;s++)a[s]=arguments[s];return r.current==null?void 0:r.current(...a)},[])}const Qa=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function p1(e,r){const l=uu(e,Qa()),a=l.length;if(a===0)return;const s=nl($t(e)),u=l.indexOf(s),c=u===-1?r===1?0:a-1:u+r;return l[c]}function m1(e){return p1($t(e).body,1)||e}function g1(e){return p1($t(e).body,-1)||e}function za(e,r){const l=r||e.currentTarget,a=e.relatedTarget;return!a||!Pt(l,a)}function Yk(e){uu(e,Qa()).forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")})}function Vb(e){e.querySelectorAll("[data-tabindex]").forEach(l=>{const a=l.dataset.tabindex;delete l.dataset.tabindex,a?l.setAttribute("tabindex",a):l.removeAttribute("tabindex")})}var b1=zx();function Gb(e,r,l){let{reference:a,floating:s}=e;const u=rl(r),c=n1(r),f=t1(c),h=Rl(r),p=u==="y",b=a.x+a.width/2-s.width/2,g=a.y+a.height/2-s.height/2,v=a[f]/2-s[f]/2;let x;switch(h){case"top":x={x:b,y:a.y-s.height};break;case"bottom":x={x:b,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:g};break;case"left":x={x:a.x-s.width,y:g};break;default:x={x:a.x,y:a.y}}switch(su(r)){case"start":x[c]-=v*(l&&p?-1:1);break;case"end":x[c]+=v*(l&&p?-1:1);break}return x}const Xk=async(e,r,l)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=l,f=u.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(r));let p=await c.getElementRects({reference:e,floating:r,strategy:s}),{x:b,y:g}=Gb(p,a,h),v=a,x={},w=0;for(let S=0;S<f.length;S++){const{name:N,fn:E}=f[S],{x:C,y:j,data:B,reset:q}=await E({x:b,y:g,initialPlacement:a,placement:v,strategy:s,middlewareData:x,rects:p,platform:c,elements:{reference:e,floating:r}});b=C??b,g=j??g,x={...x,[N]:{...x[N],...B}},q&&w<=50&&(w++,typeof q=="object"&&(q.placement&&(v=q.placement),q.rects&&(p=q.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:s}):q.rects),{x:b,y:g}=Gb(p,v,h)),S=-1)}return{x:b,y:g,placement:v,strategy:s,middlewareData:x}};async function y1(e,r){var l;r===void 0&&(r={});const{x:a,y:s,platform:u,rects:c,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:v=!1,padding:x=0}=ou(r,e),w=xk(x),N=f[v?g==="floating"?"reference":"floating":g],E=Bs(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(N)))==null||l?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:p,rootBoundary:b,strategy:h})),C=g==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),B=await(u.isElement==null?void 0:u.isElement(j))?await(u.getScale==null?void 0:u.getScale(j))||{x:1,y:1}:{x:1,y:1},q=Bs(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:j,strategy:h}):C);return{top:(E.top-q.top+w.top)/B.y,bottom:(q.bottom-E.bottom+w.bottom)/B.y,left:(E.left-q.left+w.left)/B.x,right:(q.right-E.right+w.right)/B.x}}const Zk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var l,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:f,platform:h,elements:p}=r,{mainAxis:b=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...N}=ou(e,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const E=Rl(s),C=rl(f),j=Rl(f)===f,B=await(h.isRTL==null?void 0:h.isRTL(p.floating)),q=v||(j||!S?[zs(f)]:hk(f)),L=w!=="none";!v&&L&&q.push(...bk(f,S,w,B));const I=[f,...q],$=await y1(r,N),G=[];let M=((a=u.flip)==null?void 0:a.overflows)||[];if(b&&G.push($[E]),g){const U=dk(s,c,B);G.push($[U[0]],$[U[1]])}if(M=[...M,{placement:s,overflows:G}],!G.every(U=>U<=0)){var V,Y;const U=(((V=u.flip)==null?void 0:V.index)||0)+1,X=I[U];if(X&&(!(g==="alignment"?C!==rl(X):!1)||M.every(z=>rl(z.placement)===C?z.overflows[0]>0:!0)))return{data:{index:U,overflows:M},reset:{placement:X}};let F=(Y=M.filter(O=>O.overflows[0]<=0).sort((O,z)=>O.overflows[1]-z.overflows[1])[0])==null?void 0:Y.placement;if(!F)switch(x){case"bestFit":{var J;const O=(J=M.filter(z=>{if(L){const Q=rl(z.placement);return Q===C||Q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(Q=>Q>0).reduce((Q,_)=>Q+_,0)]).sort((z,Q)=>z[1]-Q[1])[0])==null?void 0:J[0];O&&(F=O);break}case"initialPlacement":F=f;break}if(s!==F)return{reset:{placement:F}}}return{}}}},Qk=new Set(["left","top"]);async function Kk(e,r){const{placement:l,platform:a,elements:s}=e,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=Rl(l),f=su(l),h=rl(l)==="y",p=Qk.has(c)?-1:1,b=u&&h?-1:1,g=ou(r,e);let{mainAxis:v,crossAxis:x,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(x=f==="end"?w*-1:w),h?{x:x*b,y:v*p}:{x:v*p,y:x*b}}const Jk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var l,a;const{x:s,y:u,placement:c,middlewareData:f}=r,h=await Kk(r,e);return c===((l=f.offset)==null?void 0:l.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+h.x,y:u+h.y,data:{...h,placement:c}}}}},Wk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:l,y:a,placement:s}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:N=>{let{x:E,y:C}=N;return{x:E,y:C}}},...h}=ou(e,r),p={x:l,y:a},b=await y1(r,h),g=rl(Rl(s)),v=e1(g);let x=p[v],w=p[g];if(u){const N=v==="y"?"top":"left",E=v==="y"?"bottom":"right",C=x+b[N],j=x-b[E];x=Fb(C,x,j)}if(c){const N=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=w+b[N],j=w-b[E];w=Fb(C,w,j)}const S=f.fn({...r,[v]:x,[g]:w});return{...S,data:{x:S.x-l,y:S.y-a,enabled:{[v]:u,[g]:c}}}}}};function x1(e){const r=Bn(e);let l=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=Nt(e),u=s?e.offsetWidth:l,c=s?e.offsetHeight:a,f=Ms(l)!==u||Ms(a)!==c;return f&&(l=u,a=c),{width:l,height:a,$:f}}function ch(e){return ct(e)?e:e.contextElement}function Ai(e){const r=ch(e);if(!Nt(r))return Kn(1);const l=r.getBoundingClientRect(),{width:a,height:s,$:u}=x1(r);let c=(u?Ms(l.width):l.width)/a,f=(u?Ms(l.height):l.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const eE=Kn(0);function v1(e){const r=un(e);return!iu()||!r.visualViewport?eE:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tE(e,r,l){return r===void 0&&(r=!1),!l||r&&l!==un(e)?!1:r}function Ll(e,r,l,a){r===void 0&&(r=!1),l===void 0&&(l=!1);const s=e.getBoundingClientRect(),u=ch(e);let c=Kn(1);r&&(a?ct(a)&&(c=Ai(a)):c=Ai(e));const f=tE(u,l,a)?v1(u):Kn(0);let h=(s.left+f.x)/c.x,p=(s.top+f.y)/c.y,b=s.width/c.x,g=s.height/c.y;if(u){const v=un(u),x=a&&ct(a)?un(a):a;let w=v,S=vd(w);for(;S&&a&&x!==w;){const N=Ai(S),E=S.getBoundingClientRect(),C=Bn(S),j=E.left+(S.clientLeft+parseFloat(C.paddingLeft))*N.x,B=E.top+(S.clientTop+parseFloat(C.paddingTop))*N.y;h*=N.x,p*=N.y,b*=N.x,g*=N.y,h+=j,p+=B,w=un(S),S=vd(w)}}return Bs({width:b,height:g,x:h,y:p})}function cu(e,r){const l=au(e).scrollLeft;return r?r.left+l:Ll(Wn(e)).left+l}function w1(e,r){const l=e.getBoundingClientRect(),a=l.left+r.scrollLeft-cu(e,l),s=l.top+r.scrollTop;return{x:a,y:s}}function nE(e){let{elements:r,rect:l,offsetParent:a,strategy:s}=e;const u=s==="fixed",c=Wn(a),f=r?lu(r.floating):!1;if(a===c||f&&u)return l;let h={scrollLeft:0,scrollTop:0},p=Kn(1);const b=Kn(0),g=Nt(a);if((g||!g&&!u)&&((ol(a)!=="body"||Za(c))&&(h=au(a)),Nt(a))){const x=Ll(a);p=Ai(a),b.x=x.x+a.clientLeft,b.y=x.y+a.clientTop}const v=c&&!g&&!u?w1(c,h):Kn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-h.scrollLeft*p.x+b.x+v.x,y:l.y*p.y-h.scrollTop*p.y+b.y+v.y}}function rE(e){return Array.from(e.getClientRects())}function lE(e){const r=Wn(e),l=au(e),a=e.ownerDocument.body,s=_l(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=_l(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-l.scrollLeft+cu(e);const f=-l.scrollTop;return Bn(a).direction==="rtl"&&(c+=_l(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:f}}const Yb=25;function iE(e,r){const l=un(e),a=Wn(e),s=l.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;const b=iu();(!b||b&&r==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}const p=cu(a);if(p<=0){const b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(a.clientWidth-g.clientWidth-x);w<=Yb&&(u-=w)}else p<=Yb&&(u+=p);return{width:u,height:c,x:f,y:h}}const aE=new Set(["absolute","fixed"]);function oE(e,r){const l=Ll(e,!0,r==="fixed"),a=l.top+e.clientTop,s=l.left+e.clientLeft,u=Nt(e)?Ai(e):Kn(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,h=s*u.x,p=a*u.y;return{width:c,height:f,x:h,y:p}}function Xb(e,r,l){let a;if(r==="viewport")a=iE(e,l);else if(r==="document")a=lE(Wn(e));else if(ct(r))a=oE(r,l);else{const s=v1(e);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Bs(a)}function S1(e,r){const l=Cr(e);return l===r||!ct(l)||Er(l)?!1:Bn(l).position==="fixed"||S1(l,r)}function sE(e,r){const l=r.get(e);if(l)return l;let a=al(e,[],!1).filter(f=>ct(f)&&ol(f)!=="body"),s=null;const u=Bn(e).position==="fixed";let c=u?Cr(e):e;for(;ct(c)&&!Er(c);){const f=Bn(c),h=sh(c);!h&&f.position==="fixed"&&(s=null),(u?!h&&!s:!h&&f.position==="static"&&!!s&&aE.has(s.position)||Za(c)&&!h&&S1(e,c))?a=a.filter(b=>b!==c):s=f,c=Cr(c)}return r.set(e,a),a}function uE(e){let{element:r,boundary:l,rootBoundary:a,strategy:s}=e;const c=[...l==="clippingAncestors"?lu(r)?[]:sE(r,this._c):[].concat(l),a],f=c[0],h=c.reduce((p,b)=>{const g=Xb(r,b,s);return p.top=_l(g.top,p.top),p.right=Os(g.right,p.right),p.bottom=Os(g.bottom,p.bottom),p.left=_l(g.left,p.left),p},Xb(r,f,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function cE(e){const{width:r,height:l}=x1(e);return{width:r,height:l}}function fE(e,r,l){const a=Nt(r),s=Wn(r),u=l==="fixed",c=Ll(e,!0,u,r);let f={scrollLeft:0,scrollTop:0};const h=Kn(0);function p(){h.x=cu(s)}if(a||!a&&!u)if((ol(r)!=="body"||Za(s))&&(f=au(r)),a){const x=Ll(r,!0,u,r);h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}else s&&p();u&&!a&&s&&p();const b=s&&!a&&!u?w1(s,f):Kn(0),g=c.left+f.scrollLeft-h.x-b.x,v=c.top+f.scrollTop-h.y-b.y;return{x:g,y:v,width:c.width,height:c.height}}function If(e){return Bn(e).position==="static"}function Zb(e,r){if(!Nt(e)||Bn(e).position==="fixed")return null;if(r)return r(e);let l=e.offsetParent;return Wn(e)===l&&(l=l.ownerDocument.body),l}function k1(e,r){const l=un(e);if(lu(e))return l;if(!Nt(e)){let s=Cr(e);for(;s&&!Er(s);){if(ct(s)&&!If(s))return s;s=Cr(s)}return l}let a=Zb(e,r);for(;a&&nk(a)&&If(a);)a=Zb(a,r);return a&&Er(a)&&If(a)&&!sh(a)?l:a||ok(e)||l}const dE=async function(e){const r=this.getOffsetParent||k1,l=this.getDimensions,a=await l(e.floating);return{reference:fE(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function hE(e){return Bn(e).direction==="rtl"}const pE={convertOffsetParentRelativeRectToViewportRelativeRect:nE,getDocumentElement:Wn,getClippingRect:uE,getOffsetParent:k1,getElementRects:dE,getClientRects:rE,getDimensions:cE,getScale:Ai,isElement:ct,isRTL:hE};function E1(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function mE(e,r){let l=null,a;const s=Wn(e);function u(){var f;clearTimeout(a),(f=l)==null||f.disconnect(),l=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),u();const p=e.getBoundingClientRect(),{left:b,top:g,width:v,height:x}=p;if(f||r(),!v||!x)return;const w=xs(g),S=xs(s.clientWidth-(b+v)),N=xs(s.clientHeight-(g+x)),E=xs(b),j={rootMargin:-w+"px "+-S+"px "+-N+"px "+-E+"px",threshold:_l(0,Os(1,h))||1};let B=!0;function q(L){const I=L[0].intersectionRatio;if(I!==h){if(!B)return c();I?c(!1,I):a=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!E1(p,e.getBoundingClientRect())&&c(),B=!1}try{l=new IntersectionObserver(q,{...j,root:s.ownerDocument})}catch{l=new IntersectionObserver(q,j)}l.observe(e)}return c(!0),u}function Nd(e,r,l,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,p=ch(e),b=s||u?[...p?al(p):[],...al(r)]:[];b.forEach(E=>{s&&E.addEventListener("scroll",l,{passive:!0}),u&&E.addEventListener("resize",l)});const g=p&&f?mE(p,l):null;let v=-1,x=null;c&&(x=new ResizeObserver(E=>{let[C]=E;C&&C.target===p&&x&&(x.unobserve(r),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=x)==null||j.observe(r)})),l()}),p&&!h&&x.observe(p),x.observe(r));let w,S=h?Ll(e):null;h&&N();function N(){const E=Ll(e);S&&!E1(S,E)&&l(),S=E,w=requestAnimationFrame(N)}return l(),()=>{var E;b.forEach(C=>{s&&C.removeEventListener("scroll",l),u&&C.removeEventListener("resize",l)}),g?.(),(E=x)==null||E.disconnect(),x=null,h&&cancelAnimationFrame(w)}}const gE=Jk,bE=Wk,yE=Zk,xE=(e,r,l)=>{const a=new Map,s={platform:pE,...l},u={...s.platform,_c:a};return Xk(e,r,{...s,platform:u})};var vE=typeof document<"u",wE=function(){},_s=vE?T.useLayoutEffect:wE;function qs(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let l,a,s;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==r.length)return!1;for(a=l;a--!==0;)if(!qs(e[a],r[a]))return!1;return!0}if(s=Object.keys(e),l=s.length,l!==Object.keys(r).length)return!1;for(a=l;a--!==0;)if(!{}.hasOwnProperty.call(r,s[a]))return!1;for(a=l;a--!==0;){const u=s[a];if(!(u==="_owner"&&e.$$typeof)&&!qs(e[u],r[u]))return!1}return!0}return e!==e&&r!==r}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qb(e,r){const l=C1(e);return Math.round(r*l)/l}function Uf(e){const r=T.useRef(e);return _s(()=>{r.current=e}),r}function SE(e){e===void 0&&(e={});const{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:h,open:p}=e,[b,g]=T.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[v,x]=T.useState(a);qs(v,a)||x(a);const[w,S]=T.useState(null),[N,E]=T.useState(null),C=T.useCallback(z=>{z!==L.current&&(L.current=z,S(z))},[]),j=T.useCallback(z=>{z!==I.current&&(I.current=z,E(z))},[]),B=u||w,q=c||N,L=T.useRef(null),I=T.useRef(null),$=T.useRef(b),G=h!=null,M=Uf(h),V=Uf(s),Y=Uf(p),J=T.useCallback(()=>{if(!L.current||!I.current)return;const z={placement:r,strategy:l,middleware:v};V.current&&(z.platform=V.current),xE(L.current,I.current,z).then(Q=>{const _={...Q,isPositioned:Y.current!==!1};U.current&&!qs($.current,_)&&($.current=_,b1.flushSync(()=>{g(_)}))})},[v,r,l,V,Y]);_s(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[p]);const U=T.useRef(!1);_s(()=>(U.current=!0,()=>{U.current=!1}),[]),_s(()=>{if(B&&(L.current=B),q&&(I.current=q),B&&q){if(M.current)return M.current(B,q,J);J()}},[B,q,J,M,G]);const X=T.useMemo(()=>({reference:L,floating:I,setReference:C,setFloating:j}),[C,j]),F=T.useMemo(()=>({reference:B,floating:q}),[B,q]),O=T.useMemo(()=>{const z={position:l,left:0,top:0};if(!F.floating)return z;const Q=Qb(F.floating,b.x),_=Qb(F.floating,b.y);return f?{...z,transform:"translate("+Q+"px, "+_+"px)",...C1(F.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:Q,top:_}},[l,f,F.floating,b.x,b.y]);return T.useMemo(()=>({...b,update:J,refs:X,elements:F,floatingStyles:O}),[b,J,X,F,O])}const Ad=(e,r)=>({...gE(e),options:[e,r]}),Td=(e,r)=>({...bE(e),options:[e,r]}),jd=(e,r)=>({...yE(e),options:[e,r]}),kE="data-floating-ui-focusable",Kb="active",Jb="selected",EE={...Mx};let Wb=!1,CE=0;const ey=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+CE++;function NE(){const[e,r]=T.useState(()=>Wb?ey():void 0);return sn(()=>{e==null&&r(ey())},[]),T.useEffect(()=>{Wb=!0},[]),e}const AE=EE.useId,fh=AE||NE;function TE(){const e=new Map;return{emit(r,l){var a;(a=e.get(r))==null||a.forEach(s=>s(l))},on(r,l){e.has(r)||e.set(r,new Set),e.get(r).add(l)},off(r,l){var a;(a=e.get(r))==null||a.delete(l)}}}const jE=T.createContext(null),_E=T.createContext(null),dh=()=>{var e;return((e=T.useContext(jE))==null?void 0:e.id)||null},fu=()=>T.useContext(_E);function Dl(e){return"data-floating-ui-"+e}function Qt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const ty=Dl("safe-polygon");function Hf(e,r,l){if(l&&!Pa(l))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const a=e();return typeof a=="number"?a:a?.[r]}return e?.[r]}function qf(e){return typeof e=="function"?e():e}function _d(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,events:u,elements:c}=e,{enabled:f=!0,delay:h=0,handleClose:p=null,mouseOnly:b=!1,restMs:g=0,move:v=!0}=r,x=fu(),w=dh(),S=jl(p),N=jl(h),E=jl(l),C=jl(g),j=T.useRef(),B=T.useRef(-1),q=T.useRef(),L=T.useRef(-1),I=T.useRef(!0),$=T.useRef(!1),G=T.useRef(()=>{}),M=T.useRef(!1),V=on(()=>{var O;const z=(O=s.current.openEvent)==null?void 0:O.type;return z?.includes("mouse")&&z!=="mousedown"});T.useEffect(()=>{if(!f)return;function O(z){let{open:Q}=z;Q||(Qt(B),Qt(L),I.current=!0,M.current=!1)}return u.on("openchange",O),()=>{u.off("openchange",O)}},[f,u]),T.useEffect(()=>{if(!f||!S.current||!l)return;function O(Q){V()&&a(!1,Q,"hover")}const z=$t(c.floating).documentElement;return z.addEventListener("mouseleave",O),()=>{z.removeEventListener("mouseleave",O)}},[c.floating,l,a,f,S,V]);const Y=T.useCallback(function(O,z,Q){z===void 0&&(z=!0),Q===void 0&&(Q="hover");const _=Hf(N.current,"close",j.current);_&&!q.current?(Qt(B),B.current=window.setTimeout(()=>a(!1,O,Q),_)):z&&(Qt(B),a(!1,O,Q))},[N,a]),J=on(()=>{G.current(),q.current=void 0}),U=on(()=>{if($.current){const O=$t(c.floating).body;O.style.pointerEvents="",O.removeAttribute(ty),$.current=!1}}),X=on(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);T.useEffect(()=>{if(!f)return;function O(H){if(Qt(B),I.current=!1,b&&!Pa(j.current)||qf(C.current)>0&&!Hf(N.current,"open"))return;const A=Hf(N.current,"open",j.current);A?B.current=window.setTimeout(()=>{E.current||a(!0,H,"hover")},A):l||a(!0,H,"hover")}function z(H){if(X()){U();return}G.current();const A=$t(c.floating);if(Qt(L),M.current=!1,S.current&&s.current.floatingContext){l||Qt(B),q.current=S.current({...s.current.floatingContext,tree:x,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H,!0,"safe-polygon")}});const ue=q.current;A.addEventListener("mousemove",ue),G.current=()=>{A.removeEventListener("mousemove",ue)};return}(j.current!=="touch"||!Pt(c.floating,H.relatedTarget))&&Y(H)}function Q(H){X()||s.current.floatingContext&&(S.current==null||S.current({...s.current.floatingContext,tree:x,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H)}})(H))}function _(){Qt(B)}function D(H){X()||Y(H,!1)}if(ct(c.domReference)){const H=c.domReference,A=c.floating;return l&&H.addEventListener("mouseleave",Q),v&&H.addEventListener("mousemove",O,{once:!0}),H.addEventListener("mouseenter",O),H.addEventListener("mouseleave",z),A&&(A.addEventListener("mouseleave",Q),A.addEventListener("mouseenter",_),A.addEventListener("mouseleave",D)),()=>{l&&H.removeEventListener("mouseleave",Q),v&&H.removeEventListener("mousemove",O),H.removeEventListener("mouseenter",O),H.removeEventListener("mouseleave",z),A&&(A.removeEventListener("mouseleave",Q),A.removeEventListener("mouseenter",_),A.removeEventListener("mouseleave",D))}}},[c,f,e,b,v,Y,J,U,a,l,E,x,N,S,s,X,C]),sn(()=>{var O;if(f&&l&&(O=S.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&V()){$.current=!0;const Q=c.floating;if(ct(c.domReference)&&Q){var z;const _=$t(c.floating).body;_.setAttribute(ty,"");const D=c.domReference,H=x==null||(z=x.nodesRef.current.find(A=>A.id===w))==null||(z=z.context)==null?void 0:z.elements.floating;return H&&(H.style.pointerEvents=""),_.style.pointerEvents="none",D.style.pointerEvents="auto",Q.style.pointerEvents="auto",()=>{_.style.pointerEvents="",D.style.pointerEvents="",Q.style.pointerEvents=""}}}},[f,l,w,c,x,S,V]),sn(()=>{l||(j.current=void 0,M.current=!1,J(),U())},[l,J,U]),T.useEffect(()=>()=>{J(),Qt(B),Qt(L),U()},[f,c.domReference,J,U]);const F=T.useMemo(()=>{function O(z){j.current=z.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(z){const{nativeEvent:Q}=z;function _(){!I.current&&!E.current&&a(!0,Q,"hover")}b&&!Pa(j.current)||l||qf(C.current)===0||M.current&&z.movementX**2+z.movementY**2<2||(Qt(L),j.current==="touch"?_():(M.current=!0,L.current=window.setTimeout(_,qf(C.current))))}}},[b,a,l,E,C]);return T.useMemo(()=>f?{reference:F}:{},[f,F])}let ny=0;function vi(e,r){r===void 0&&(r={});const{preventScroll:l=!1,cancelPrevious:a=!0,sync:s=!1}=r;a&&cancelAnimationFrame(ny);const u=()=>e?.focus({preventScroll:l});s?u():ny=requestAnimationFrame(u)}function Pf(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&Ds(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function RE(e){return"composedPath"in e?e.composedPath()[0]:e.target}function LE(e){return e?.ownerDocument||document}const Ti={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function ry(e){return e==="inert"?Ti.inert:e==="aria-hidden"?Ti["aria-hidden"]:Ti.none}let vs=new WeakSet,ws={},$f=0;const DE=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,N1=e=>e&&(e.host||N1(e.parentNode)),OE=(e,r)=>r.map(l=>{if(e.contains(l))return l;const a=N1(l);return e.contains(a)?a:null}).filter(l=>l!=null);function ME(e,r,l,a){const s="data-floating-ui-inert",u=a?"inert":l?"aria-hidden":null,c=OE(r,e),f=new Set,h=new Set(c),p=[];ws[s]||(ws[s]=new WeakMap);const b=ws[s];c.forEach(g),v(r),f.clear();function g(x){!x||f.has(x)||(f.add(x),x.parentNode&&g(x.parentNode))}function v(x){!x||h.has(x)||[].forEach.call(x.children,w=>{if(ol(w)!=="script")if(f.has(w))v(w);else{const S=u?w.getAttribute(u):null,N=S!==null&&S!=="false",E=ry(u),C=(E.get(w)||0)+1,j=(b.get(w)||0)+1;E.set(w,C),b.set(w,j),p.push(w),C===1&&N&&vs.add(w),j===1&&w.setAttribute(s,""),!N&&u&&w.setAttribute(u,u==="inert"?"":"true")}})}return $f++,()=>{p.forEach(x=>{const w=ry(u),N=(w.get(x)||0)-1,E=(b.get(x)||0)-1;w.set(x,N),b.set(x,E),N||(!vs.has(x)&&u&&x.removeAttribute(u),vs.delete(x)),E||x.removeAttribute(s)}),$f--,$f||(Ti.inert=new WeakMap,Ti["aria-hidden"]=new WeakMap,Ti.none=new WeakMap,vs=new WeakSet,ws={})}}function ly(e,r,l){r===void 0&&(r=!1),l===void 0&&(l=!1);const a=LE(e[0]).body;return ME(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,r,l)}const du={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Ps=T.forwardRef(function(r,l){const[a,s]=T.useState();sn(()=>{d1()&&s("button")},[]);const u={ref:l,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[Dl("focus-guard")]:"",style:du};return y.jsx("span",{...r,...u})}),A1=T.createContext(null),iy=Dl("portal");function zE(e){e===void 0&&(e={});const{id:r,root:l}=e,a=fh(),s=T1(),[u,c]=T.useState(null),f=T.useRef(null);return sn(()=>()=>{u?.remove(),queueMicrotask(()=>{f.current=null})},[u]),sn(()=>{if(!a||f.current)return;const h=r?document.getElementById(r):null;if(!h)return;const p=document.createElement("div");p.id=a,p.setAttribute(iy,""),h.appendChild(p),f.current=p,c(p)},[r,a]),sn(()=>{if(l===null||!a||f.current)return;let h=l||s?.portalNode;h&&!oh(h)&&(h=h.current),h=h||document.body;let p=null;r&&(p=document.createElement("div"),p.id=r,h.appendChild(p));const b=document.createElement("div");b.id=a,b.setAttribute(iy,""),h=p||h,h.appendChild(b),f.current=b,c(b)},[r,l,a,s]),u}function Rd(e){const{children:r,id:l,root:a,preserveTabOrder:s=!0}=e,u=zE({id:l,root:a}),[c,f]=T.useState(null),h=T.useRef(null),p=T.useRef(null),b=T.useRef(null),g=T.useRef(null),v=c?.modal,x=c?.open,w=!!c&&!c.modal&&c.open&&s&&!!(a||u);return T.useEffect(()=>{if(!u||!s||v)return;function S(N){u&&za(N)&&(N.type==="focusin"?Vb:Yk)(u)}return u.addEventListener("focusin",S,!0),u.addEventListener("focusout",S,!0),()=>{u.removeEventListener("focusin",S,!0),u.removeEventListener("focusout",S,!0)}},[u,s,v]),T.useEffect(()=>{u&&(x||Vb(u))},[x,u]),y.jsxs(A1.Provider,{value:T.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:h,afterOutsideRef:p,beforeInsideRef:b,afterInsideRef:g,portalNode:u,setFocusManagerState:f}),[s,u]),children:[w&&u&&y.jsx(Ps,{"data-type":"outside",ref:h,onFocus:S=>{if(za(S,u)){var N;(N=b.current)==null||N.focus()}else{const E=c?c.domReference:null,C=g1(E);C?.focus()}}}),w&&u&&y.jsx("span",{"aria-owns":u.id,style:du}),u&&b1.createPortal(r,u),w&&u&&y.jsx(Ps,{"data-type":"outside",ref:p,onFocus:S=>{if(za(S,u)){var N;(N=g.current)==null||N.focus()}else{const E=c?c.domReference:null,C=m1(E);C?.focus(),c?.closeOnFocusOut&&c?.onOpenChange(!1,S.nativeEvent,"focus-out")}}})]})}const T1=()=>T.useContext(A1);function ay(e){return T.useMemo(()=>r=>{e.forEach(l=>{l&&(l.current=r)})},e)}const BE=20;let ll=[];function hh(){ll=ll.filter(e=>e.isConnected)}function FE(e){hh(),e&&ol(e)!=="body"&&(ll.push(e),ll.length>BE&&(ll=ll.slice(-20)))}function oy(){return hh(),ll[ll.length-1]}function IE(e){const r=Qa();return u1(e,r)?e:uu(e,r)[0]||e}function sy(e,r){var l;if(!r.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const a=Qa(),u=Ok(e,a).filter(f=>{const h=f.getAttribute("data-tabindex")||"";return u1(f,a)||f.hasAttribute("data-tabindex")&&!h.startsWith("-")}),c=e.getAttribute("tabindex");r.current.includes("floating")||u.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const UE=T.forwardRef(function(r,l){return y.jsx("button",{...r,type:"button",ref:l,tabIndex:-1,style:du})});function HE(e){const{context:r,children:l,disabled:a=!1,order:s=["content"],guards:u=!0,initialFocus:c=0,returnFocus:f=!0,restoreFocus:h=!1,modal:p=!0,visuallyHiddenDismiss:b=!1,closeOnFocusOut:g=!0,outsideElementsInert:v=!1,getInsideElements:x=()=>[]}=e,{open:w,onOpenChange:S,events:N,dataRef:E,elements:{domReference:C,floating:j}}=r,B=on(()=>{var be;return(be=E.current.floatingContext)==null?void 0:be.nodeId}),q=on(x),L=typeof c=="number"&&c<0,I=Pb(C)&&L,$=DE(),G=$?u:!0,M=!G||$&&v,V=jl(s),Y=jl(c),J=jl(f),U=fu(),X=T1(),F=T.useRef(null),O=T.useRef(null),z=T.useRef(!1),Q=T.useRef(!1),_=T.useRef(-1),D=T.useRef(-1),H=X!=null,A=Cd(j),te=on(function(be){return be===void 0&&(be=A),be?uu(be,Qa()):[]}),ue=on(be=>{const ke=te(be);return V.current.map(Ne=>C&&Ne==="reference"?C:A&&Ne==="floating"?A:ke).filter(Boolean).flat()});T.useEffect(()=>{if(a||!p)return;function be(Ne){if(Ne.key==="Tab"){Pt(A,nl($t(A)))&&te().length===0&&!I&&Ff(Ne);const Pe=ue(),Qe=Sr(Ne);V.current[0]==="reference"&&Qe===C&&(Ff(Ne),Ne.shiftKey?vi(Pe[Pe.length-1]):vi(Pe[1])),V.current[1]==="floating"&&Qe===A&&Ne.shiftKey&&(Ff(Ne),vi(Pe[0]))}}const ke=$t(A);return ke.addEventListener("keydown",be),()=>{ke.removeEventListener("keydown",be)}},[a,C,A,p,V,I,te,ue]),T.useEffect(()=>{if(a||!j)return;function be(ke){const Ne=Sr(ke),Qe=te().indexOf(Ne);Qe!==-1&&(_.current=Qe)}return j.addEventListener("focusin",be),()=>{j.removeEventListener("focusin",be)}},[a,j,te]),T.useEffect(()=>{if(a||!g)return;function be(){Q.current=!0,setTimeout(()=>{Q.current=!1})}function ke(Qe){const ze=Qe.relatedTarget,Bt=Qe.currentTarget,pt=Sr(Qe);queueMicrotask(()=>{const gt=B(),Ft=!(Pt(C,ze)||Pt(j,ze)||Pt(ze,j)||Pt(X?.portalNode,ze)||ze!=null&&ze.hasAttribute(Dl("focus-guard"))||U&&(Ni(U.nodesRef.current,gt).find(it=>{var It,at;return Pt((It=it.context)==null?void 0:It.elements.floating,ze)||Pt((at=it.context)==null?void 0:at.elements.domReference,ze)})||$b(U.nodesRef.current,gt).find(it=>{var It,at,$n;return[(It=it.context)==null?void 0:It.elements.floating,Cd((at=it.context)==null?void 0:at.elements.floating)].includes(ze)||(($n=it.context)==null?void 0:$n.elements.domReference)===ze})));if(Bt===C&&A&&sy(A,V),h&&Bt!==C&&!(pt!=null&&pt.isConnected)&&nl($t(A))===$t(A).body){Nt(A)&&A.focus();const it=_.current,It=te(),at=It[it]||It[It.length-1]||A;Nt(at)&&at.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(I||!p)&&ze&&Ft&&!Q.current&&ze!==oy()&&(z.current=!0,S(!1,Qe,"focus-out"))})}const Ne=!!(!U&&X);function Pe(){Qt(D),E.current.insideReactTree=!0,D.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(j&&Nt(C))return C.addEventListener("focusout",ke),C.addEventListener("pointerdown",be),j.addEventListener("focusout",ke),Ne&&j.addEventListener("focusout",Pe,!0),()=>{C.removeEventListener("focusout",ke),C.removeEventListener("pointerdown",be),j.removeEventListener("focusout",ke),Ne&&j.removeEventListener("focusout",Pe,!0)}},[a,C,j,A,p,U,X,S,g,h,te,I,B,V,E]);const fe=T.useRef(null),pe=T.useRef(null),me=ay([fe,X?.beforeInsideRef]),de=ay([pe,X?.afterInsideRef]);T.useEffect(()=>{var be,ke;if(a||!j)return;const Ne=Array.from((X==null||(be=X.portalNode)==null?void 0:be.querySelectorAll("["+Dl("portal")+"]"))||[]),Qe=(ke=(U?$b(U.nodesRef.current,B()):[]).find(pt=>{var gt;return Pb(((gt=pt.context)==null?void 0:gt.elements.domReference)||null)}))==null||(ke=ke.context)==null?void 0:ke.elements.domReference,ze=[j,Qe,...Ne,...q(),F.current,O.current,fe.current,pe.current,X?.beforeOutsideRef.current,X?.afterOutsideRef.current,V.current.includes("reference")||I?C:null].filter(pt=>pt!=null),Bt=p||I?ly(ze,!M,M):ly(ze);return()=>{Bt()}},[a,C,j,p,V,X,I,G,M,U,B,q]),sn(()=>{if(a||!Nt(A))return;const be=$t(A),ke=nl(be);queueMicrotask(()=>{const Ne=ue(A),Pe=Y.current,Qe=(typeof Pe=="number"?Ne[Pe]:Pe.current)||A,ze=Pt(A,ke);!L&&!ze&&w&&vi(Qe,{preventScroll:Qe===A})})},[a,w,A,L,ue,Y]),sn(()=>{if(a||!A)return;const be=$t(A),ke=nl(be);FE(ke);function Ne(ze){let{reason:Bt,event:pt,nested:gt}=ze;if(["hover","safe-polygon"].includes(Bt)&&pt.type==="mouseleave"&&(z.current=!0),Bt==="outside-press")if(gt)z.current=!1;else if(Uk(pt)||Hk(pt))z.current=!1;else{let Ft=!1;document.createElement("div").focus({get preventScroll(){return Ft=!0,!1}}),Ft?z.current=!1:z.current=!0}}N.on("openchange",Ne);const Pe=be.createElement("span");Pe.setAttribute("tabindex","-1"),Pe.setAttribute("aria-hidden","true"),Object.assign(Pe.style,du),H&&C&&C.insertAdjacentElement("afterend",Pe);function Qe(){if(typeof J.current=="boolean"){const ze=C||oy();return ze&&ze.isConnected?ze:Pe}return J.current.current||Pe}return()=>{N.off("openchange",Ne);const ze=nl(be),Bt=Pt(j,ze)||U&&Ni(U.nodesRef.current,B(),!1).some(gt=>{var Ft;return Pt((Ft=gt.context)==null?void 0:Ft.elements.floating,ze)}),pt=Qe();queueMicrotask(()=>{const gt=IE(pt);J.current&&!z.current&&Nt(gt)&&(!(gt!==ze&&ze!==be.body)||Bt)&>.focus({preventScroll:!0}),Pe.remove()})}},[a,j,A,J,E,N,U,H,C,B]),T.useEffect(()=>(queueMicrotask(()=>{z.current=!1}),()=>{queueMicrotask(hh)}),[a]),sn(()=>{if(!a&&X)return X.setFocusManagerState({modal:p,closeOnFocusOut:g,open:w,onOpenChange:S,domReference:C}),()=>{X.setFocusManagerState(null)}},[a,X,p,w,S,g,C]),sn(()=>{a||A&&sy(A,V)},[a,A,V]);function ge(be){return a||!b||!p?null:y.jsx(UE,{ref:be==="start"?F:O,onClick:ke=>S(!1,ke.nativeEvent),children:typeof b=="string"?b:"Dismiss"})}const xe=!a&&G&&(p?!I:!0)&&(H||p);return y.jsxs(y.Fragment,{children:[xe&&y.jsx(Ps,{"data-type":"inside",ref:me,onFocus:be=>{if(p){const Ne=ue();vi(s[0]==="reference"?Ne[0]:Ne[Ne.length-1])}else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(z.current=!1,za(be,X.portalNode)){const Ne=m1(C);Ne?.focus()}else{var ke;(ke=X.beforeOutsideRef.current)==null||ke.focus()}}}),!I&&ge("start"),l,ge("end"),xe&&y.jsx(Ps,{"data-type":"inside",ref:de,onFocus:be=>{if(p)vi(ue()[0]);else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(g&&(z.current=!0),za(be,X.portalNode)){const Ne=g1(C);Ne?.focus()}else{var ke;(ke=X.afterOutsideRef.current)==null||ke.focus()}}})]})}function uy(e){return Nt(e.target)&&e.target.tagName==="BUTTON"}function qE(e){return Nt(e.target)&&e.target.tagName==="A"}function cy(e){return uh(e)}function Ld(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,elements:{domReference:u}}=e,{enabled:c=!0,event:f="click",toggle:h=!0,ignoreMouse:p=!1,keyboardHandlers:b=!0,stickIfOpen:g=!0}=r,v=T.useRef(),x=T.useRef(!1),w=T.useMemo(()=>({onPointerDown(S){v.current=S.pointerType},onMouseDown(S){const N=v.current;S.button===0&&f!=="click"&&(Pa(N,!0)&&p||(l&&h&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="mousedown")?a(!1,S.nativeEvent,"click"):(S.preventDefault(),a(!0,S.nativeEvent,"click"))))},onClick(S){const N=v.current;if(f==="mousedown"&&v.current){v.current=void 0;return}Pa(N,!0)&&p||(l&&h&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="click")?a(!1,S.nativeEvent,"click"):a(!0,S.nativeEvent,"click"))},onKeyDown(S){v.current=void 0,!(S.defaultPrevented||!b||uy(S))&&(S.key===" "&&!cy(u)&&(S.preventDefault(),x.current=!0),!qE(S)&&S.key==="Enter"&&a(!(l&&h),S.nativeEvent,"click"))},onKeyUp(S){S.defaultPrevented||!b||uy(S)||cy(u)||S.key===" "&&x.current&&(x.current=!1,a(!(l&&h),S.nativeEvent,"click"))}}),[s,u,f,p,b,a,l,g,h]);return T.useMemo(()=>c?{reference:w}:{},[c,w])}const PE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$E={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},fy=e=>{var r,l;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(l=e?.outsidePress)!=null?l:!0}};function Dd(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,elements:s,dataRef:u}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:h=!0,outsidePressEvent:p="pointerdown",referencePress:b=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:x,capture:w}=r,S=fu(),N=on(typeof h=="function"?h:()=>!1),E=typeof h=="function"?N:h,C=T.useRef(!1),{escapeKey:j,outsidePress:B}=fy(x),{escapeKey:q,outsidePress:L}=fy(w),I=T.useRef(!1),$=on(U=>{var X;if(!l||!c||!f||U.key!=="Escape"||I.current)return;const F=(X=u.current.floatingContext)==null?void 0:X.nodeId,O=S?Ni(S.nodesRef.current,F):[];if(!j&&(U.stopPropagation(),O.length>0)){let z=!0;if(O.forEach(Q=>{var _;if((_=Q.context)!=null&&_.open&&!Q.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}a(!1,Ik(U)?U.nativeEvent:U,"escape-key")}),G=on(U=>{var X;const F=()=>{var O;$(U),(O=Sr(U))==null||O.removeEventListener("keydown",F)};(X=Sr(U))==null||X.addEventListener("keydown",F)}),M=on(U=>{var X;const F=u.current.insideReactTree;u.current.insideReactTree=!1;const O=C.current;if(C.current=!1,p==="click"&&O||F||typeof E=="function"&&!E(U))return;const z=Sr(U),Q="["+Dl("inert")+"]",_=$t(s.floating).querySelectorAll(Q);let D=ct(z)?z:null;for(;D&&!Er(D);){const ue=Cr(D);if(Er(ue)||!ct(ue))break;D=ue}if(_.length&&ct(z)&&!Bk(z)&&!Pt(z,s.floating)&&Array.from(_).every(ue=>!Pt(D,ue)))return;if(Nt(z)&&J){const ue=Er(z),fe=Bn(z),pe=/auto|scroll/,me=ue||pe.test(fe.overflowX),de=ue||pe.test(fe.overflowY),ge=me&&z.clientWidth>0&&z.scrollWidth>z.clientWidth,xe=de&&z.clientHeight>0&&z.scrollHeight>z.clientHeight,be=fe.direction==="rtl",ke=xe&&(be?U.offsetX<=z.offsetWidth-z.clientWidth:U.offsetX>z.clientWidth),Ne=ge&&U.offsetY>z.clientHeight;if(ke||Ne)return}const H=(X=u.current.floatingContext)==null?void 0:X.nodeId,A=S&&Ni(S.nodesRef.current,H).some(ue=>{var fe;return Bf(U,(fe=ue.context)==null?void 0:fe.elements.floating)});if(Bf(U,s.floating)||Bf(U,s.domReference)||A)return;const te=S?Ni(S.nodesRef.current,H):[];if(te.length>0){let ue=!0;if(te.forEach(fe=>{var pe;if((pe=fe.context)!=null&&pe.open&&!fe.context.dataRef.current.__outsidePressBubbles){ue=!1;return}}),!ue)return}a(!1,U,"outside-press")}),V=on(U=>{var X;const F=()=>{var O;M(U),(O=Sr(U))==null||O.removeEventListener(p,F)};(X=Sr(U))==null||X.addEventListener(p,F)});T.useEffect(()=>{if(!l||!c)return;u.current.__escapeKeyBubbles=j,u.current.__outsidePressBubbles=B;let U=-1;function X(_){a(!1,_,"ancestor-scroll")}function F(){window.clearTimeout(U),I.current=!0}function O(){U=window.setTimeout(()=>{I.current=!1},iu()?5:0)}const z=$t(s.floating);f&&(z.addEventListener("keydown",q?G:$,q),z.addEventListener("compositionstart",F),z.addEventListener("compositionend",O)),E&&z.addEventListener(p,L?V:M,L);let Q=[];return v&&(ct(s.domReference)&&(Q=al(s.domReference)),ct(s.floating)&&(Q=Q.concat(al(s.floating))),!ct(s.reference)&&s.reference&&s.reference.contextElement&&(Q=Q.concat(al(s.reference.contextElement)))),Q=Q.filter(_=>{var D;return _!==((D=z.defaultView)==null?void 0:D.visualViewport)}),Q.forEach(_=>{_.addEventListener("scroll",X,{passive:!0})}),()=>{f&&(z.removeEventListener("keydown",q?G:$,q),z.removeEventListener("compositionstart",F),z.removeEventListener("compositionend",O)),E&&z.removeEventListener(p,L?V:M,L),Q.forEach(_=>{_.removeEventListener("scroll",X)}),window.clearTimeout(U)}},[u,s,f,E,p,l,a,v,c,j,B,$,q,G,M,L,V]),T.useEffect(()=>{u.current.insideReactTree=!1},[u,E,p]);const Y=T.useMemo(()=>({onKeyDown:$,...b&&{[PE[g]]:U=>{a(!1,U.nativeEvent,"reference-press")},...g!=="click"&&{onClick(U){a(!1,U.nativeEvent,"reference-press")}}}}),[$,a,b,g]),J=T.useMemo(()=>({onKeyDown:$,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[$E[p]]:()=>{u.current.insideReactTree=!0}}),[$,p,u]);return T.useMemo(()=>c?{reference:Y,floating:J}:{},[c,Y,J])}function VE(e){const{open:r=!1,onOpenChange:l,elements:a}=e,s=fh(),u=T.useRef({}),[c]=T.useState(()=>TE()),f=dh()!=null,[h,p]=T.useState(a.reference),b=on((x,w,S)=>{u.current.openEvent=x?w:void 0,c.emit("openchange",{open:x,event:w,reason:S,nested:f}),l?.(x,w,S)}),g=T.useMemo(()=>({setPositionReference:p}),[]),v=T.useMemo(()=>({reference:h||a.reference||null,floating:a.floating||null,domReference:a.reference}),[h,a.reference,a.floating]);return T.useMemo(()=>({dataRef:u,open:r,onOpenChange:b,elements:v,events:c,floatingId:s,refs:g}),[r,b,v,c,s,g])}function Od(e){e===void 0&&(e={});const{nodeId:r}=e,l=VE({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||l,s=a.elements,[u,c]=T.useState(null),[f,h]=T.useState(null),b=s?.domReference||u,g=T.useRef(null),v=fu();sn(()=>{b&&(g.current=b)},[b]);const x=SE({...e,elements:{...s,...f&&{reference:f}}}),w=T.useCallback(j=>{const B=ct(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;h(B),x.refs.setReference(B)},[x.refs]),S=T.useCallback(j=>{(ct(j)||j===null)&&(g.current=j,c(j)),(ct(x.refs.reference.current)||x.refs.reference.current===null||j!==null&&!ct(j))&&x.refs.setReference(j)},[x.refs]),N=T.useMemo(()=>({...x.refs,setReference:S,setPositionReference:w,domReference:g}),[x.refs,S,w]),E=T.useMemo(()=>({...x.elements,domReference:b}),[x.elements,b]),C=T.useMemo(()=>({...x,...a,refs:N,elements:E,nodeId:r}),[x,N,E,r,a]);return sn(()=>{a.dataRef.current.floatingContext=C;const j=v?.nodesRef.current.find(B=>B.id===r);j&&(j.context=C)}),T.useMemo(()=>({...x,context:C,refs:N,elements:E}),[x,N,E,C])}function Vf(){return Mk()&&d1()}function GE(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,events:s,dataRef:u,elements:c}=e,{enabled:f=!0,visibleOnly:h=!0}=r,p=T.useRef(!1),b=T.useRef(-1),g=T.useRef(!0);T.useEffect(()=>{if(!f)return;const x=un(c.domReference);function w(){!l&&Nt(c.domReference)&&c.domReference===nl($t(c.domReference))&&(p.current=!0)}function S(){g.current=!0}function N(){g.current=!1}return x.addEventListener("blur",w),Vf()&&(x.addEventListener("keydown",S,!0),x.addEventListener("pointerdown",N,!0)),()=>{x.removeEventListener("blur",w),Vf()&&(x.removeEventListener("keydown",S,!0),x.removeEventListener("pointerdown",N,!0))}},[c.domReference,l,f]),T.useEffect(()=>{if(!f)return;function x(w){let{reason:S}=w;(S==="reference-press"||S==="escape-key")&&(p.current=!0)}return s.on("openchange",x),()=>{s.off("openchange",x)}},[s,f]),T.useEffect(()=>()=>{Qt(b)},[]);const v=T.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(x){if(p.current)return;const w=Sr(x.nativeEvent);if(h&&ct(w)){if(Vf()&&!x.relatedTarget){if(!g.current&&!uh(w))return}else if(!Fk(w))return}a(!0,x.nativeEvent,"focus")},onBlur(x){p.current=!1;const w=x.relatedTarget,S=x.nativeEvent,N=ct(w)&&w.hasAttribute(Dl("focus-guard"))&&w.getAttribute("data-type")==="outside";b.current=window.setTimeout(()=>{var E;const C=nl(c.domReference?c.domReference.ownerDocument:document);!w&&C===c.domReference||Pt((E=u.current.floatingContext)==null?void 0:E.refs.floating.current,C)||Pt(c.domReference,C)||N||a(!1,S,"focus")})}}),[u,c.domReference,a,h]);return T.useMemo(()=>f?{reference:v}:{},[f,v])}function Gf(e,r,l){const a=new Map,s=l==="item";let u=e;if(s&&e){const{[Kb]:c,[Jb]:f,...h}=e;u=h}return{...l==="floating"&&{tabIndex:-1,[kE]:""},...u,...r.map(c=>{const f=c?c[l]:null;return typeof f=="function"?e?f(e):null:f}).concat(e).reduce((c,f)=>(f&&Object.entries(f).forEach(h=>{let[p,b]=h;if(!(s&&[Kb,Jb].includes(p)))if(p.indexOf("on")===0){if(a.has(p)||a.set(p,[]),typeof b=="function"){var g;(g=a.get(p))==null||g.push(b),c[p]=function(){for(var v,x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];return(v=a.get(p))==null?void 0:v.map(N=>N(...w)).find(N=>N!==void 0)}}}else c[p]=b}),c),{})}}function Md(e){e===void 0&&(e=[]);const r=e.map(f=>f?.reference),l=e.map(f=>f?.floating),a=e.map(f=>f?.item),s=T.useCallback(f=>Gf(f,e,"reference"),r),u=T.useCallback(f=>Gf(f,e,"floating"),l),c=T.useCallback(f=>Gf(f,e,"item"),a);return T.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:c}),[s,u,c])}const YE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zd(e,r){var l,a;r===void 0&&(r={});const{open:s,elements:u,floatingId:c}=e,{enabled:f=!0,role:h="dialog"}=r,p=fh(),b=((l=u.domReference)==null?void 0:l.id)||p,g=T.useMemo(()=>{var C;return((C=Cd(u.floating))==null?void 0:C.id)||c},[u.floating,c]),v=(a=YE.get(h))!=null?a:h,w=dh()!=null,S=T.useMemo(()=>v==="tooltip"||h==="label"?{["aria-"+(h==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":v==="alertdialog"?"dialog":v,"aria-controls":s?g:void 0,...v==="listbox"&&{role:"combobox"},...v==="menu"&&{id:b},...v==="menu"&&w&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[v,g,w,s,b,h]),N=T.useMemo(()=>{const C={id:g,...v&&{role:v}};return v==="tooltip"||h==="label"?C:{...C,...v==="menu"&&{"aria-labelledby":b}}},[v,g,b,h]),E=T.useCallback(C=>{let{active:j,selected:B}=C;const q={role:"option",...j&&{id:g+"-fui-option"}};switch(h){case"select":case"combobox":return{...q,"aria-selected":B}}return{}},[g,h]);return T.useMemo(()=>f?{reference:S,floating:N,item:E}:{},[f,S,N,E])}function j1(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...j1(e,s.id,l)])}function dy(e,r){const[l,a]=e;let s=!1;const u=r.length;for(let c=0,f=u-1;c<u;f=c++){const[h,p]=r[c]||[0,0],[b,g]=r[f]||[0,0];p>=a!=g>=a&&l<=(b-h)*(a-p)/(g-p)+h&&(s=!s)}return s}function XE(e,r){return e[0]>=r.x&&e[0]<=r.x+r.width&&e[1]>=r.y&&e[1]<=r.y+r.height}function Bd(e){e===void 0&&(e={});const{buffer:r=.5,blockPointerEvents:l=!1,requireIntent:a=!0}=e,s={current:-1};let u=!1,c=null,f=null,h=typeof performance<"u"?performance.now():0;function p(g,v){const x=performance.now(),w=x-h;if(c===null||f===null||w===0)return c=g,f=v,h=x,null;const S=g-c,N=v-f,C=Math.sqrt(S*S+N*N)/w;return c=g,f=v,h=x,C}const b=g=>{let{x:v,y:x,placement:w,elements:S,onClose:N,nodeId:E,tree:C}=g;return function(B){function q(){Qt(s),N()}if(Qt(s),!S.domReference||!S.floating||w==null||v==null||x==null)return;const{clientX:L,clientY:I}=B,$=[L,I],G=RE(B),M=B.type==="mouseleave",V=Pf(S.floating,G),Y=Pf(S.domReference,G),J=S.domReference.getBoundingClientRect(),U=S.floating.getBoundingClientRect(),X=w.split("-")[0],F=v>U.right-U.width/2,O=x>U.bottom-U.height/2,z=XE($,J),Q=U.width>J.width,_=U.height>J.height,D=(Q?J:U).left,H=(Q?J:U).right,A=(_?J:U).top,te=(_?J:U).bottom;if(V&&(u=!0,!M))return;if(Y&&(u=!1),Y&&!M){u=!0;return}if(M&&ct(B.relatedTarget)&&Pf(S.floating,B.relatedTarget)||C&&j1(C.nodesRef.current,E).length)return;if(X==="top"&&x>=J.bottom-1||X==="bottom"&&x<=J.top+1||X==="left"&&v>=J.right-1||X==="right"&&v<=J.left+1)return q();let ue=[];switch(X){case"top":ue=[[D,J.top+1],[D,U.bottom-1],[H,U.bottom-1],[H,J.top+1]];break;case"bottom":ue=[[D,U.top+1],[D,J.bottom-1],[H,J.bottom-1],[H,U.top+1]];break;case"left":ue=[[U.right-1,te],[U.right-1,A],[J.left+1,A],[J.left+1,te]];break;case"right":ue=[[J.right-1,te],[J.right-1,A],[U.left+1,A],[U.left+1,te]];break}function fe(pe){let[me,de]=pe;switch(X){case"top":{const ge=[Q?me+r/2:F?me+r*4:me-r*4,de+r+1],xe=[Q?me-r/2:F?me+r*4:me-r*4,de+r+1],be=[[U.left,F||Q?U.bottom-r:U.top],[U.right,F?Q?U.bottom-r:U.top:U.bottom-r]];return[ge,xe,...be]}case"bottom":{const ge=[Q?me+r/2:F?me+r*4:me-r*4,de-r],xe=[Q?me-r/2:F?me+r*4:me-r*4,de-r],be=[[U.left,F||Q?U.top+r:U.bottom],[U.right,F?Q?U.top+r:U.bottom:U.top+r]];return[ge,xe,...be]}case"left":{const ge=[me+r+1,_?de+r/2:O?de+r*4:de-r*4],xe=[me+r+1,_?de-r/2:O?de+r*4:de-r*4];return[...[[O||_?U.right-r:U.left,U.top],[O?_?U.right-r:U.left:U.right-r,U.bottom]],ge,xe]}case"right":{const ge=[me-r,_?de+r/2:O?de+r*4:de-r*4],xe=[me-r,_?de-r/2:O?de+r*4:de-r*4],be=[[O||_?U.left+r:U.right,U.top],[O?_?U.left+r:U.right:U.left+r,U.bottom]];return[ge,xe,...be]}}}if(!dy([L,I],ue)){if(u&&!z)return q();if(!M&&a){const pe=p(B.clientX,B.clientY);if(pe!==null&&pe<.1)return q()}dy([L,I],fe([v,x]))?!u&&a&&(s.current=window.setTimeout(q,40)):q()}}};return b.__options={blockPointerEvents:l},b}const ZE={".":"Uncommitted Changes",staged:"Staging Area",working:"Working Directory"},QE=new Set([".","staged","working"]),KE=e=>{const r=!e||QE.has(e)?"HEAD":`${e}^`;return{base:`${r}^`,target:r}},hy=(e,r)=>!!r&&e===`${r}^`,Ss=(e,r)=>e?e===r.shortHash||e===r.hash:!1,py=(e,r)=>r?`${e.shortHash}^`:e.shortHash,my=(e,r,l)=>{if(!r)return"Select...";const a=r.endsWith("^"),s=a?r.slice(0,-1):r;if(s.startsWith("HEAD"))return r;const u=ZE[r];if(u)return u;const c=e.specialOptions.find(p=>p.value===r);if(c)return c.label;const f=e.branches.find(p=>p.name===s);if(f)return a?`${f.name}^`:f.name;const h=e.commits.find(p=>p.shortHash===s||p.hash===s);if(h)return py(h,a);if(l){const p=e.commits.find(b=>b.shortHash===l||b.hash===l);if(p)return py(p,!1)}return r};function JE({options:e,baseRevision:r,targetRevision:l,resolvedBaseRevision:a,resolvedTargetRevision:s,onSelectDiff:u,onOpenAdvanced:c,compact:f=!1}){const[h,p]=T.useState(!1),[b,g]=T.useState(!1),v=f,{refs:x,floatingStyles:w,context:S}=Od({open:h||b,onOpenChange:te=>{!te&&b||p(te)},placement:"bottom-end",middleware:[Ad(6),jd(),Td({padding:8})],whileElementsMounted:Nd}),N=_d(S,{handleClose:Bd()}),E=Ld(S),C=Dd(S),j=zd(S,{role:"menu"}),{getReferenceProps:B,getFloatingProps:q}=Md([N,E,C,j]),{refs:L,floatingStyles:I,context:$}=Od({open:b,onOpenChange:te=>{te&&p(!0),g(te)},placement:"left-start",middleware:[Ad(0),jd(),Td({padding:8})],whileElementsMounted:Nd}),G=_d($,{handleClose:Bd()}),M=Ld($),V=Dd($),Y=zd($,{role:"menu"}),{getReferenceProps:J,getFloatingProps:U}=Md([G,M,V,Y]);T.useEffect(()=>{h||g(!1)},[h]);const X=T.useMemo(()=>{const te=hy(r,l),ue=e.commits.find(me=>te?Ss(l,me)||Ss(s,me):!1);if(ue)return`${ue.shortHash} ${ue.message}`;const fe=my(e,r,a),pe=my(e,l,s);return`${fe}...${pe}`},[e,r,l,a,s]),F=T.useMemo(()=>e.branches.find(te=>te.name==="main")||e.branches.find(te=>te.name==="master"),[e.branches]),O=!!F,z=T.useMemo(()=>KE(l),[l]),Q=(te,ue)=>{u(te,ue),g(!1),p(!1)},_=()=>{g(!1),p(!1),c()},D=(te,ue)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",te?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",te?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",ue?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),H=(te,ue)=>r===te&&l===ue,A=te=>hy(r,l)?Ss(l,te)||Ss(s,te):!1;return y.jsxs("div",{className:"relative",children:[y.jsx("button",{ref:x.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"menu","aria-expanded":h,"aria-label":`Revision menu: ${X}`,title:X,...B(),children:v?y.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx(NS,{size:14,className:"text-github-text-secondary"}),y.jsx(_i,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]}):y.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx("code",{className:"text-xs text-github-text-primary",children:X}),y.jsx(_i,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})}),h&&y.jsx(Rd,{children:y.jsxs("div",{ref:x.setFloating,style:w,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[260px] max-h-[360px] overflow-y-auto",...q(),children:[y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Quick Diffs"}),y.jsx("button",{onClick:()=>Q("HEAD","."),className:D(H("HEAD","."),!1),children:"HEAD...Uncommitted"}),y.jsx("button",{onClick:()=>Q("HEAD","staged"),className:D(H("HEAD","staged"),!1),children:"HEAD...Staging"}),y.jsx("button",{onClick:()=>Q("staged","working"),className:D(H("staged","working"),!1),children:"Staging...Working"}),O&&F&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{onClick:()=>Q(F.name,"."),className:D(H(F.name,"."),!1),children:[F.name,"...Uncommitted"]}),y.jsxs("button",{onClick:()=>Q(F.name,"HEAD"),className:D(H(F.name,"HEAD"),!1),children:[F.name,"...HEAD"]})]})]}),y.jsx("div",{className:"border-b border-github-border",children:y.jsx("button",{onClick:()=>Q(z.base,z.target),className:D(H(z.base,z.target),!1),type:"button",children:"Previous commit"})}),y.jsx("div",{className:"border-b border-github-border",children:y.jsx("button",{ref:e.commits.length>0?L.setReference:void 0,className:D(!1,e.commits.length===0),...e.commits.length>0?J():{},disabled:e.commits.length===0,type:"button",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(rS,{size:12,className:"text-github-text-secondary"}),y.jsx("span",{children:"Pick Commit..."})]})})}),y.jsx("div",{children:y.jsx("button",{onClick:_,className:D(!1,!1),type:"button",children:"Detailed..."})})]})}),b&&e.commits.length>0&&y.jsx(Rd,{children:y.jsxs("div",{ref:L.setFloating,style:I,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[360px] overflow-y-auto",...U(),children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),e.commits.map(te=>y.jsx("button",{onClick:()=>Q(`${te.shortHash}^`,te.shortHash),className:D(A(te),!1),type:"button",children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:te.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:te.message})]})},te.hash))]})})]})}function Ka(e){return e&&e.split(".").pop()?.toLowerCase()||null}function WE(e){return e&&e.split("/").pop()||""}const eC=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function tC(e){if(!e)return!1;const r=Ka(e);return r?eC.includes(r):!1}const nC=["md","markdown"];function rC(e){if(!e)return!1;const r=Ka(e);return r?nC.includes(r):!1}const lC=["ipynb"];function iC(e){if(!e)return!1;const r=Ka(e);return r?lC.includes(r):!1}function aC({file:e,diffMode:r,baseCommitish:l,targetCommitish:a}){const s=r??Xa,u=e.status==="deleted",c=e.status==="added",f=e.status==="modified"||e.status==="renamed",h=l||"HEAD~1",p=a||"HEAD",[b,g]=T.useState({}),[v,x]=T.useState({}),w=async(C,j)=>{try{const B=C.naturalWidth,q=C.naturalHeight,$=(await(await fetch(C.src)).blob()).size;j({width:B,height:q,size:$})}catch(B){console.error("Failed to get image info:",B)}},S=C=>C?C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(1)} KB`:`${(C/(1024*1024)).toFixed(1)} MB`:"",N=C=>!C.width||!C.height?"":`W: ${C.width}px | H: ${C.height}px`,E={backgroundImage:`
|
|
13
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
14
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
15
|
-
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return u?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})]})}):c?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`New image ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})]})}):f?s==="split"?y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})})]})]}):y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"space-y-6",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})})]})]}):null}function oC(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const sC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cC={};function gy(e,r){return(cC.jsx?uC:sC).test(e)}const fC=/[ \t\n\f\r]/g;function dC(e){return typeof e=="object"?e.type==="text"?by(e.value):!1:by(e)}function by(e){return e.replace(fC,"")===""}class Ja{constructor(r,l,a){this.normal=l,this.property=r,a&&(this.space=a)}}Ja.prototype.normal={};Ja.prototype.property={};Ja.prototype.space=void 0;function _1(e,r){const l={},a={};for(const s of e)Object.assign(l,s.property),Object.assign(a,s.normal);return new Ja(l,a,r)}function Fd(e){return e.toLowerCase()}class cn{constructor(r,l){this.attribute=l,this.property=r}}cn.prototype.attribute="";cn.prototype.booleanish=!1;cn.prototype.boolean=!1;cn.prototype.commaOrSpaceSeparated=!1;cn.prototype.commaSeparated=!1;cn.prototype.defined=!1;cn.prototype.mustUseProperty=!1;cn.prototype.number=!1;cn.prototype.overloadedBoolean=!1;cn.prototype.property="";cn.prototype.spaceSeparated=!1;cn.prototype.space=void 0;let hC=0;const Oe=Ml(),Ct=Ml(),Id=Ml(),he=Ml(),ut=Ml(),ji=Ml(),vn=Ml();function Ml(){return 2**++hC}const Ud=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Ct,commaOrSpaceSeparated:vn,commaSeparated:ji,number:he,overloadedBoolean:Id,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),Yf=Object.keys(Ud);class ph extends cn{constructor(r,l,a,s){let u=-1;if(super(r,l),yy(this,"space",s),typeof a=="number")for(;++u<Yf.length;){const c=Yf[u];yy(this,Yf[u],(a&Ud[c])===Ud[c])}}}ph.prototype.defined=!0;function yy(e,r,l){l&&(e[r]=l)}function Oi(e){const r={},l={};for(const[a,s]of Object.entries(e.properties)){const u=new ph(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,l[Fd(a)]=a,l[Fd(u.attribute)]=a}return new Ja(r,l,e.space)}const R1=Oi({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:ut,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:he,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:ut,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Ct,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function L1(e,r){return r in e?e[r]:r}function D1(e,r){return L1(e,r.toLowerCase())}const pC=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:ut,autoFocus:Oe,autoPlay:Oe,blocking:ut,capture:null,charSet:null,checked:Oe,cite:null,className:ut,cols:he,colSpan:null,content:null,contentEditable:Ct,controls:Oe,controlsList:ut,coords:he|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Id,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:ut,height:he,hidden:Id,high:he,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:ut,itemRef:ut,itemScope:Oe,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:he,pattern:null,ping:ut,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:ut,required:Oe,reversed:Oe,rows:he,rowSpan:he,sandbox:ut,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Ct,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:D1}),mC=Oi({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:vn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:ut,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:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,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:he,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:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,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:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:L1}),O1=Oi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),M1=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:D1}),z1=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),gC={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"},bC=/[A-Z]/g,xy=/-[a-z]/g,yC=/^data[-\w.:]+$/i;function xC(e,r){const l=Fd(r);let a=r,s=cn;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&yC.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(xy,wC);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!xy.test(u)){let c=u.replace(bC,vC);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=ph}return new s(a,r)}function vC(e){return"-"+e.toLowerCase()}function wC(e){return e.charAt(1).toUpperCase()}const SC=_1([R1,pC,O1,M1,z1],"html"),mh=_1([R1,mC,O1,M1,z1],"svg");function kC(e){return e.join(" ").trim()}var wi={},Xf,vy;function EC(){if(vy)return Xf;vy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
16
|
-
`,p="/",b="*",g="",v="comment",x="declaration";function w(N,E){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];E=E||{};var C=1,j=1;function B(U){var X=U.match(r);X&&(C+=X.length);var F=U.lastIndexOf(h);j=~F?U.length-F:j+U.length}function q(){var U={line:C,column:j};return function(X){return X.position=new L(U),G(),X}}function L(U){this.start=U,this.end={line:C,column:j},this.source=E.source}L.prototype.content=N;function I(U){var X=new Error(E.source+":"+C+":"+j+": "+U);if(X.reason=U,X.filename=E.source,X.line=C,X.column=j,X.source=N,!E.silent)throw X}function $(U){var X=U.exec(N);if(X){var F=X[0];return B(F),N=N.slice(F.length),X}}function G(){$(l)}function M(U){var X;for(U=U||[];X=V();)X!==!1&&U.push(X);return U}function V(){var U=q();if(!(p!=N.charAt(0)||b!=N.charAt(1))){for(var X=2;g!=N.charAt(X)&&(b!=N.charAt(X)||p!=N.charAt(X+1));)++X;if(X+=2,g===N.charAt(X-1))return I("End of comment missing");var F=N.slice(2,X-2);return j+=2,B(F),N=N.slice(X),j+=2,U({type:v,comment:F})}}function Y(){var U=q(),X=$(a);if(X){if(V(),!$(s))return I("property missing ':'");var F=$(u),O=U({type:x,property:S(X[0].replace(e,g)),value:F?S(F[0].replace(e,g)):g});return $(c),O}}function J(){var U=[];M(U);for(var X;X=Y();)X!==!1&&(U.push(X),M(U));return U}return G(),J()}function S(N){return N?N.replace(f,g):g}return Xf=w,Xf}var wy;function CC(){if(wy)return wi;wy=1;var e=wi&&wi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(wi,"__esModule",{value:!0}),wi.default=l;const r=e(EC());function l(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),f=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:p,value:b}=h;f?s(p,b,h):b&&(u=u||{},u[p]=b)}),u}return wi}var ja={},Sy;function NC(){if(Sy)return ja;Sy=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(p){return!p||l.test(p)||e.test(p)},c=function(p,b){return b.toUpperCase()},f=function(p,b){return"".concat(b,"-")},h=function(p,b){return b===void 0&&(b={}),u(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(s,f):p=p.replace(a,f),p.replace(r,c))};return ja.camelCase=h,ja}var _a,ky;function AC(){if(ky)return _a;ky=1;var e=_a&&_a.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(CC()),l=NC();function a(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,h){f&&h&&(c[(0,l.camelCase)(f,u)]=h)}),c}return a.default=a,_a=a,_a}var TC=AC();const jC=eu(TC),B1=F1("end"),gh=F1("start");function F1(e){return r;function r(l){const a=l&&l.position&&l.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function _C(e){const r=gh(e),l=B1(e);if(r&&l)return{start:r,end:l}}function Ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ey(e.position):"start"in e||"end"in e?Ey(e):"line"in e||"column"in e?Hd(e):""}function Hd(e){return Cy(e&&e.line)+":"+Cy(e&&e.column)}function Ey(e){return Hd(e&&e.start)+"-"+Hd(e&&e.end)}function Cy(e){return e&&typeof e=="number"?e:1}class Gt extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let s="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof r=="string"?s=r:!u.cause&&r&&(c=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?u.ruleId=a:(u.source=a.slice(0,h),u.ruleId=a.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Ba(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Gt.prototype.file="";Gt.prototype.name="";Gt.prototype.reason="";Gt.prototype.message="";Gt.prototype.stack="";Gt.prototype.column=void 0;Gt.prototype.line=void 0;Gt.prototype.ancestors=void 0;Gt.prototype.cause=void 0;Gt.prototype.fatal=void 0;Gt.prototype.place=void 0;Gt.prototype.ruleId=void 0;Gt.prototype.source=void 0;const bh={}.hasOwnProperty,RC=new Map,LC=/[A-Z]/g,DC=new Set(["table","tbody","thead","tfoot","tr"]),OC=new Set(["td","th"]),I1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MC(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=PC(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=qC(l,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?mh:SC,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=U1(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function U1(e,r,l){if(r.type==="element")return zC(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return BC(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return IC(e,r,l);if(r.type==="mdxjsEsm")return FC(e,r);if(r.type==="root")return UC(e,r,l);if(r.type==="text")return HC(e,r)}function zC(e,r,l){const a=e.schema;let s=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=mh,e.schema=s),e.ancestors.push(r);const u=q1(e,r.tagName,!1),c=$C(e,r);let f=xh(e,r);return DC.has(r.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!dC(h):!0})),H1(e,c,u,r),yh(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function BC(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}$a(e,r.position)}function FC(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);$a(e,r.position)}function IC(e,r,l){const a=e.schema;let s=a;r.name==="svg"&&a.space==="html"&&(s=mh,e.schema=s),e.ancestors.push(r);const u=r.name===null?e.Fragment:q1(e,r.name,!0),c=VC(e,r),f=xh(e,r);return H1(e,c,u,r),yh(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function UC(e,r,l){const a={};return yh(a,xh(e,r)),e.create(r,e.Fragment,a,l)}function HC(e,r){return r.value}function H1(e,r,l,a){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=a)}function yh(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function qC(e,r,l){return a;function a(s,u,c,f){const p=Array.isArray(c.children)?l:r;return f?p(u,c,f):p(u,c)}}function PC(e,r){return l;function l(a,s,u,c){const f=Array.isArray(u.children),h=gh(a);return r(s,u,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function $C(e,r){const l={};let a,s;for(s in r.properties)if(s!=="children"&&bh.call(r.properties,s)){const u=GC(e,s,r.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&OC.has(r.tagName)?a=f:l[c]=f}}if(a){const u=l.style||(l.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function VC(e,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(l,e.evaluater.evaluateExpression(f.argument))}else $a(e,r.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else $a(e,r.position);else u=a.value===null?!0:a.value;l[s]=u}return l}function xh(e,r){const l=[];let a=-1;const s=e.passKeys?new Map:RC;for(;++a<r.children.length;){const u=r.children[a];let c;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const p=s.get(h)||0;c=h+"-"+p,s.set(h,p+1)}}const f=U1(e,u,c);f!==void 0&&l.push(f)}return l}function GC(e,r,l){const a=xC(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?oC(l):kC(l)),a.property==="style"){let s=typeof l=="object"?l:YC(e,String(l));return e.stylePropertyNameCase==="css"&&(s=XC(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?gC[a.property]||a.property:a.attribute,l]}}function YC(e,r){try{return jC(r,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const a=l,s=new Gt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=I1+"#cannot-parse-style-attribute",s}}function q1(e,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,c;for(;++u<s.length;){const f=gy(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=gy(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const s=a.value;return bh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);$a(e)}function $a(e,r){const l=new Gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=I1+"#cannot-handle-mdx-estrees-without-createevaluater",l}function XC(e){const r={};let l;for(l in e)bh.call(e,l)&&(r[ZC(l)]=e[l]);return r}function ZC(e){let r=e.replace(LC,QC);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function QC(e){return"-"+e.toLowerCase()}const Zf={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"]},KC={};function vh(e,r){const l=KC,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return P1(e,a,s)}function P1(e,r,l){if(JC(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ny(e.children,r,l)}return Array.isArray(e)?Ny(e,r,l):""}function Ny(e,r,l){const a=[];let s=-1;for(;++s<e.length;)a[s]=P1(e[s],r,l);return a.join("")}function JC(e){return!!(e&&typeof e=="object")}const Ay=document.createElement("i");function wh(e){const r="&"+e+";";Ay.innerHTML=r;const l=Ay.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function kn(e,r,l,a){const s=e.length;let u=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,l=l>0?l:0,a.length<1e4)c=Array.from(a),c.unshift(r,l),e.splice(...c);else for(l&&e.splice(r,l);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function zn(e,r){return e.length>0?(kn(e,e.length,0,r),e):r}const Ty={}.hasOwnProperty;function $1(e){const r={};let l=-1;for(;++l<e.length;)WC(r,e[l]);return r}function WC(e,r){let l;for(l in r){const s=(Ty.call(e,l)?e[l]:void 0)||(e[l]={}),u=r[l];let c;if(u)for(c in u){Ty.call(s,c)||(s[c]=[]);const f=u[c];e3(s[c],Array.isArray(f)?f:f?[f]:[])}}}function e3(e,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?e:a).push(r[l]);kn(e,0,0,a)}function V1(e,r){const l=Number.parseInt(e,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Pn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Kt=sl(/[A-Za-z]/),Vt=sl(/[\dA-Za-z]/),t3=sl(/[#-'*+\--9=?A-Z^-~]/);function $s(e){return e!==null&&(e<32||e===127)}const qd=sl(/\d/),n3=sl(/[\dA-Fa-f]/),r3=sl(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function st(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const hu=sl(new RegExp("\\p{P}|\\p{S}","u")),Ol=sl(/\s/);function sl(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function Mi(e){const r=[];let l=-1,a=0,s=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&Vt(e.charCodeAt(l+1))&&Vt(e.charCodeAt(l+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(l+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(a,l),encodeURIComponent(c)),a=l+s+1,c=""),s&&(l+=s,s=0)}return r.join("")+e.slice(a)}function $e(e,r,l,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return Ie(h)?(e.enter(l),f(h)):r(h)}function f(h){return Ie(h)&&u++<s?(e.consume(h),f):(e.exit(l),r(h))}}const l3={tokenize:i3};function i3(e){const r=e.attempt(this.parser.constructs.contentInitial,a,s);let l;return r;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const h=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=h),l=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const a3={tokenize:o3},jy={tokenize:s3};function o3(e){const r=this,l=[];let a=0,s,u,c;return f;function f(j){if(a<l.length){const B=l[a];return r.containerState=B[1],e.attempt(B[0].continuation,h,p)(j)}return p(j)}function h(j){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&C();const B=r.events.length;let q=B,L;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){L=r.events[q][1].end;break}E(a);let I=B;for(;I<r.events.length;)r.events[I][1].end={...L},I++;return kn(r.events,q+1,0,r.events.slice(B)),r.events.length=I,p(j)}return f(j)}function p(j){if(a===l.length){if(!s)return v(j);if(s.currentConstruct&&s.currentConstruct.concrete)return w(j);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(jy,b,g)(j)}function b(j){return s&&C(),E(a),v(j)}function g(j){return r.parser.lazy[r.now().line]=a!==l.length,c=r.now().offset,w(j)}function v(j){return r.containerState={},e.attempt(jy,x,w)(j)}function x(j){return a++,l.push([r.currentConstruct,r.containerState]),v(j)}function w(j){if(j===null){s&&C(),E(0),e.consume(j);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),S(j)}function S(j){if(j===null){N(e.exit("chunkFlow"),!0),E(0),e.consume(j);return}return Ae(j)?(e.consume(j),N(e.exit("chunkFlow")),a=0,r.interrupt=void 0,f):(e.consume(j),S)}function N(j,B){const q=r.sliceStream(j);if(B&&q.push(null),j.previous=u,u&&(u.next=j),u=j,s.defineSkip(j.start),s.write(q),r.parser.lazy[j.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<c&&(!s.events[L][1].end||s.events[L][1].end.offset>c))return;const I=r.events.length;let $=I,G,M;for(;$--;)if(r.events[$][0]==="exit"&&r.events[$][1].type==="chunkFlow"){if(G){M=r.events[$][1].end;break}G=!0}for(E(a),L=I;L<r.events.length;)r.events[L][1].end={...M},L++;kn(r.events,$+1,0,r.events.slice(I)),r.events.length=L}}function E(j){let B=l.length;for(;B-- >j;){const q=l[B];r.containerState=q[1],q[0].exit.call(r,e)}l.length=j}function C(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function s3(e,r,l){return $e(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Li(e){if(e===null||st(e)||Ol(e))return 1;if(hu(e))return 2}function pu(e,r,l){const a=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!a.includes(u)&&(r=u(r,l),a.push(u))}return r}const Pd={name:"attention",resolveAll:u3,tokenize:c3};function u3(e,r){let l=-1,a,s,u,c,f,h,p,b;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(a=l;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[a][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;h=e[a][1].end.offset-e[a][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const g={...e[a][1].end},v={...e[l][1].start};_y(g,-h),_y(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:v},u={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[l][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[l][1].start={...f.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=zn(p,[["enter",e[a][1],r],["exit",e[a][1],r]])),p=zn(p,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),p=zn(p,pu(r.parser.constructs.insideSpan.null,e.slice(a+1,l),r)),p=zn(p,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[l][1].end.offset-e[l][1].start.offset?(b=2,p=zn(p,[["enter",e[l][1],r],["exit",e[l][1],r]])):b=0,kn(e,a-1,l-a+3,p),l=a+p.length-b-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function c3(e,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Li(a);let u;return c;function c(h){return u=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===u)return e.consume(h),f;const p=e.exit("attentionSequence"),b=Li(h),g=!b||b===2&&s||l.includes(h),v=!s||s===2&&b||l.includes(a);return p._open=!!(u===42?g:g&&(s||!v)),p._close=!!(u===42?v:v&&(b||!g)),r(h)}}function _y(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const f3={name:"autolink",tokenize:d3};function d3(e,r,l){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return Kt(x)?(e.consume(x),c):x===64?l(x):p(x)}function c(x){return x===43||x===45||x===46||Vt(x)?(a=1,f(x)):p(x)}function f(x){return x===58?(e.consume(x),a=0,h):(x===43||x===45||x===46||Vt(x))&&a++<32?(e.consume(x),f):(a=0,p(x))}function h(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),r):x===null||x===32||x===60||$s(x)?l(x):(e.consume(x),h)}function p(x){return x===64?(e.consume(x),b):t3(x)?(e.consume(x),p):l(x)}function b(x){return Vt(x)?g(x):l(x)}function g(x){return x===46?(e.consume(x),a=0,b):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),r):v(x)}function v(x){if((x===45||Vt(x))&&a++<63){const w=x===45?v:g;return e.consume(x),w}return l(x)}}const Wa={partial:!0,tokenize:h3};function h3(e,r,l){return a;function a(u){return Ie(u)?$e(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Ae(u)?r(u):l(u)}}const G1={continuation:{tokenize:m3},exit:g3,name:"blockQuote",tokenize:p3};function p3(e,r,l){const a=this;return s;function s(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ie(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function m3(e,r,l){const a=this;return s;function s(c){return Ie(c)?$e(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(G1,r,l)(c)}}function g3(e){e.exit("blockQuote")}const Y1={name:"characterEscape",tokenize:b3};function b3(e,r,l){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return r3(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(u)}}const X1={name:"characterReference",tokenize:y3};function y3(e,r,l){const a=this;let s=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),u=31,c=Vt,b(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=n3,b):(e.enter("characterReferenceValue"),u=7,c=qd,b(g))}function b(g){if(g===59&&s){const v=e.exit("characterReferenceValue");return c===Vt&&!wh(a.sliceSerialize(v))?l(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(g)&&s++<u?(e.consume(g),b):l(g)}}const Ry={partial:!0,tokenize:v3},Ly={concrete:!0,name:"codeFenced",tokenize:x3};function x3(e,r,l){const a=this,s={partial:!0,tokenize:q};let u=0,c=0,f;return h;function h(L){return p(L)}function p(L){const I=a.events[a.events.length-1];return u=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===f?(c++,e.consume(L),b):c<3?l(L):(e.exit("codeFencedFenceSequence"),Ie(L)?$e(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Ae(L)?(e.exit("codeFencedFence"),a.interrupt?r(L):e.check(Ry,S,B)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||Ae(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Ie(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,x,"whitespace")(L)):L===96&&L===f?l(L):(e.consume(L),v)}function x(L){return L===null||Ae(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Ae(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===f?l(L):(e.consume(L),w)}function S(L){return e.attempt(s,B,N)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),E}function E(L){return u>0&&Ie(L)?$e(e,C,"linePrefix",u+1)(L):C(L)}function C(L){return L===null||Ae(L)?e.check(Ry,S,B)(L):(e.enter("codeFlowValue"),j(L))}function j(L){return L===null||Ae(L)?(e.exit("codeFlowValue"),C(L)):(e.consume(L),j)}function B(L){return e.exit("codeFenced"),r(L)}function q(L,I,$){let G=0;return M;function M(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),V}function V(X){return L.enter("codeFencedFence"),Ie(X)?$e(L,Y,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):Y(X)}function Y(X){return X===f?(L.enter("codeFencedFenceSequence"),J(X)):$(X)}function J(X){return X===f?(G++,L.consume(X),J):G>=c?(L.exit("codeFencedFenceSequence"),Ie(X)?$e(L,U,"whitespace")(X):U(X)):$(X)}function U(X){return X===null||Ae(X)?(L.exit("codeFencedFence"),I(X)):$(X)}}}function v3(e,r,l){const a=this;return s;function s(c){return c===null?l(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}const Qf={name:"codeIndented",tokenize:S3},w3={partial:!0,tokenize:k3};function S3(e,r,l){const a=this;return s;function s(p){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(p)}function u(p){const b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(p):l(p)}function c(p){return p===null?h(p):Ae(p)?e.attempt(w3,c,h)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||Ae(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),f)}function h(p){return e.exit("codeIndented"),r(p)}}function k3(e,r,l){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?l(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):$e(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):Ae(c)?s(c):l(c)}}const E3={name:"codeText",previous:N3,resolve:C3,tokenize:A3};function C3(e){let r=e.length-4,l=3,a,s;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=l;++a<r;)if(e[a][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)s===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(s=a):(a===r||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),r-=a-s-2,a=s+2),s=void 0);return e}function N3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function A3(e,r,l){let a=0,s,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),a++,f):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?l(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(u=e.enter("codeTextSequence"),s=0,b(g)):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Ae(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),p)}function b(g){return g===96?(e.consume(g),s++,b):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(g)):(u.type="codeTextData",p(g))}}class T3{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const s=l||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Ra(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Ra(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ra(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);Ra(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ra(this.left,l.reverse())}}}function Ra(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function Z1(e){const r={};let l=-1,a,s,u,c,f,h,p;const b=new T3(e);for(;++l<b.length;){for(;l in r;)l=r[l];if(a=b.get(l),l&&a[1].type==="chunkFlow"&&b.get(l-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,j3(b,l)),l=r[l],p=!0);else if(a[1]._container){for(u=l,s=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...b.get(s)[1].start},f=b.slice(s,l),f.unshift(a),b.splice(s,l-s+1,f))}}return kn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function j3(e,r){const l=e.get(r)[1],a=e.get(r)[2];let s=r-1;const u=[];let c=l._tokenizer;c||(c=a.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],p={};let b,g,v=-1,x=l,w=0,S=0;const N=[S];for(;x;){for(;e.get(++s)[1]!==x;);u.push(s),x._tokenizer||(b=a.sliceStream(x),x.next||b.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=l;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(S=v+1,N.push(S),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),v=N.length;v--;){const E=f.slice(N[v],N[v+1]),C=u.pop();h.push([C,C+E.length-1]),e.splice(C,2,E)}for(h.reverse(),v=-1;++v<h.length;)p[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return p}const _3={resolve:L3,tokenize:D3},R3={partial:!0,tokenize:O3};function L3(e){return Z1(e),e}function D3(e,r){let l;return a;function a(f){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Ae(f)?e.check(R3,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function c(f){return e.consume(f),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function O3(e,r,l){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(c){if(c===null||Ae(c))return l(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):e.interrupt(a.parser.constructs.flow,l,r)(c)}}function Q1(e,r,l,a,s,u,c,f,h){const p=h||Number.POSITIVE_INFINITY;let b=0;return g;function g(E){return E===60?(e.enter(a),e.enter(s),e.enter(u),e.consume(E),e.exit(u),v):E===null||E===32||E===41||$s(E)?l(E):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(E))}function v(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(s),e.exit(a),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||Ae(E)?l(E):(e.consume(E),E===92?w:x)}function w(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function S(E){return!b&&(E===null||E===41||st(E))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),r(E)):b<p&&E===40?(e.consume(E),b++,S):E===41?(e.consume(E),b--,S):E===null||E===32||E===40||$s(E)?l(E):(e.consume(E),E===92?N:S)}function N(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function K1(e,r,l,a,s,u){const c=this;let f=0,h;return p;function p(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(u),b}function b(x){return f>999||x===null||x===91||x===93&&!h||x===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?l(x):x===93?(e.exit(u),e.enter(s),e.consume(x),e.exit(s),e.exit(a),r):Ae(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||Ae(x)||f++>999?(e.exit("chunkString"),b(x)):(e.consume(x),h||(h=!Ie(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(e.consume(x),f++,g):g(x)}}function J1(e,r,l,a,s,u){let c;return f;function f(v){return v===34||v===39||v===40?(e.enter(a),e.enter(s),e.consume(v),e.exit(s),c=v===40?41:v,h):l(v)}function h(v){return v===c?(e.enter(s),e.consume(v),e.exit(s),e.exit(a),r):(e.enter(u),p(v))}function p(v){return v===c?(e.exit(u),h(c)):v===null?l(v):Ae(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===c||v===null||Ae(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:b)}function g(v){return v===c||v===92?(e.consume(v),b):b(v)}}function Fa(e,r){let l;return a;function a(s){return Ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l=!0,a):Ie(s)?$e(e,a,l?"linePrefix":"lineSuffix")(s):r(s)}}const M3={name:"definition",tokenize:B3},z3={partial:!0,tokenize:F3};function B3(e,r,l){const a=this;let s;return u;function u(x){return e.enter("definition"),c(x)}function c(x){return K1.call(a,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return s=Pn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):l(x)}function h(x){return st(x)?Fa(e,p)(x):p(x)}function p(x){return Q1(e,b,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return e.attempt(z3,g,g)(x)}function g(x){return Ie(x)?$e(e,v,"whitespace")(x):v(x)}function v(x){return x===null||Ae(x)?(e.exit("definition"),a.parser.defined.push(s),r(x)):l(x)}}function F3(e,r,l){return a;function a(f){return st(f)?Fa(e,s)(f):l(f)}function s(f){return J1(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ie(f)?$e(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?r(f):l(f)}}const I3={name:"hardBreakEscape",tokenize:U3};function U3(e,r,l){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Ae(u)?(e.exit("hardBreakEscape"),r(u)):l(u)}}const H3={name:"headingAtx",resolve:q3,tokenize:P3};function q3(e,r){let l=e.length-2,a=3,s,u;return e[a][1].type==="whitespace"&&(a+=2),l-2>a&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&e[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[l][1].end},u={type:"chunkText",start:e[a][1].start,end:e[l][1].end,contentType:"text"},kn(e,a,l-a+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),e}function P3(e,r,l){let a=0;return s;function s(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&a++<6?(e.consume(b),c):b===null||st(b)?(e.exit("atxHeadingSequence"),f(b)):l(b)}function f(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||Ae(b)?(e.exit("atxHeading"),r(b)):Ie(b)?$e(e,f,"whitespace")(b):(e.enter("atxHeadingText"),p(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),f(b))}function p(b){return b===null||b===35||st(b)?(e.exit("atxHeadingText"),f(b)):(e.consume(b),p)}}const $3=["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"],Dy=["pre","script","style","textarea"],V3={concrete:!0,name:"htmlFlow",resolveTo:X3,tokenize:Z3},G3={partial:!0,tokenize:K3},Y3={partial:!0,tokenize:Q3};function X3(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Z3(e,r,l){const a=this;let s,u,c,f,h;return p;function p(A){return b(A)}function b(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),g}function g(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),u=!0,S):A===63?(e.consume(A),s=3,a.interrupt?r:_):Kt(A)?(e.consume(A),c=String.fromCharCode(A),N):l(A)}function v(A){return A===45?(e.consume(A),s=2,x):A===91?(e.consume(A),s=5,f=0,w):Kt(A)?(e.consume(A),s=4,a.interrupt?r:_):l(A)}function x(A){return A===45?(e.consume(A),a.interrupt?r:_):l(A)}function w(A){const te="CDATA[";return A===te.charCodeAt(f++)?(e.consume(A),f===te.length?a.interrupt?r:Y:w):l(A)}function S(A){return Kt(A)?(e.consume(A),c=String.fromCharCode(A),N):l(A)}function N(A){if(A===null||A===47||A===62||st(A)){const te=A===47,ue=c.toLowerCase();return!te&&!u&&Dy.includes(ue)?(s=1,a.interrupt?r(A):Y(A)):$3.includes(c.toLowerCase())?(s=6,te?(e.consume(A),E):a.interrupt?r(A):Y(A)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(A):u?C(A):j(A))}return A===45||Vt(A)?(e.consume(A),c+=String.fromCharCode(A),N):l(A)}function E(A){return A===62?(e.consume(A),a.interrupt?r:Y):l(A)}function C(A){return Ie(A)?(e.consume(A),C):M(A)}function j(A){return A===47?(e.consume(A),M):A===58||A===95||Kt(A)?(e.consume(A),B):Ie(A)?(e.consume(A),j):M(A)}function B(A){return A===45||A===46||A===58||A===95||Vt(A)?(e.consume(A),B):q(A)}function q(A){return A===61?(e.consume(A),L):Ie(A)?(e.consume(A),q):j(A)}function L(A){return A===null||A===60||A===61||A===62||A===96?l(A):A===34||A===39?(e.consume(A),h=A,I):Ie(A)?(e.consume(A),L):$(A)}function I(A){return A===h?(e.consume(A),h=null,G):A===null||Ae(A)?l(A):(e.consume(A),I)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||st(A)?q(A):(e.consume(A),$)}function G(A){return A===47||A===62||Ie(A)?j(A):l(A)}function M(A){return A===62?(e.consume(A),V):l(A)}function V(A){return A===null||Ae(A)?Y(A):Ie(A)?(e.consume(A),V):l(A)}function Y(A){return A===45&&s===2?(e.consume(A),F):A===60&&s===1?(e.consume(A),O):A===62&&s===4?(e.consume(A),D):A===63&&s===3?(e.consume(A),_):A===93&&s===5?(e.consume(A),Q):Ae(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(G3,H,J)(A)):A===null||Ae(A)?(e.exit("htmlFlowData"),J(A)):(e.consume(A),Y)}function J(A){return e.check(Y3,U,H)(A)}function U(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),X}function X(A){return A===null||Ae(A)?J(A):(e.enter("htmlFlowData"),Y(A))}function F(A){return A===45?(e.consume(A),_):Y(A)}function O(A){return A===47?(e.consume(A),c="",z):Y(A)}function z(A){if(A===62){const te=c.toLowerCase();return Dy.includes(te)?(e.consume(A),D):Y(A)}return Kt(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),z):Y(A)}function Q(A){return A===93?(e.consume(A),_):Y(A)}function _(A){return A===62?(e.consume(A),D):A===45&&s===2?(e.consume(A),_):Y(A)}function D(A){return A===null||Ae(A)?(e.exit("htmlFlowData"),H(A)):(e.consume(A),D)}function H(A){return e.exit("htmlFlow"),r(A)}}function Q3(e,r,l){const a=this;return s;function s(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):l(c)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}function K3(e,r,l){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Wa,r,l)}}const J3={name:"htmlText",tokenize:W3};function W3(e,r,l){const a=this;let s,u,c;return f;function f(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),h}function h(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),q):_===63?(e.consume(_),j):Kt(_)?(e.consume(_),$):l(_)}function p(_){return _===45?(e.consume(_),b):_===91?(e.consume(_),u=0,w):Kt(_)?(e.consume(_),C):l(_)}function b(_){return _===45?(e.consume(_),x):l(_)}function g(_){return _===null?l(_):_===45?(e.consume(_),v):Ae(_)?(c=g,O(_)):(e.consume(_),g)}function v(_){return _===45?(e.consume(_),x):g(_)}function x(_){return _===62?F(_):_===45?v(_):g(_)}function w(_){const D="CDATA[";return _===D.charCodeAt(u++)?(e.consume(_),u===D.length?S:w):l(_)}function S(_){return _===null?l(_):_===93?(e.consume(_),N):Ae(_)?(c=S,O(_)):(e.consume(_),S)}function N(_){return _===93?(e.consume(_),E):S(_)}function E(_){return _===62?F(_):_===93?(e.consume(_),E):S(_)}function C(_){return _===null||_===62?F(_):Ae(_)?(c=C,O(_)):(e.consume(_),C)}function j(_){return _===null?l(_):_===63?(e.consume(_),B):Ae(_)?(c=j,O(_)):(e.consume(_),j)}function B(_){return _===62?F(_):j(_)}function q(_){return Kt(_)?(e.consume(_),L):l(_)}function L(_){return _===45||Vt(_)?(e.consume(_),L):I(_)}function I(_){return Ae(_)?(c=I,O(_)):Ie(_)?(e.consume(_),I):F(_)}function $(_){return _===45||Vt(_)?(e.consume(_),$):_===47||_===62||st(_)?G(_):l(_)}function G(_){return _===47?(e.consume(_),F):_===58||_===95||Kt(_)?(e.consume(_),M):Ae(_)?(c=G,O(_)):Ie(_)?(e.consume(_),G):F(_)}function M(_){return _===45||_===46||_===58||_===95||Vt(_)?(e.consume(_),M):V(_)}function V(_){return _===61?(e.consume(_),Y):Ae(_)?(c=V,O(_)):Ie(_)?(e.consume(_),V):G(_)}function Y(_){return _===null||_===60||_===61||_===62||_===96?l(_):_===34||_===39?(e.consume(_),s=_,J):Ae(_)?(c=Y,O(_)):Ie(_)?(e.consume(_),Y):(e.consume(_),U)}function J(_){return _===s?(e.consume(_),s=void 0,X):_===null?l(_):Ae(_)?(c=J,O(_)):(e.consume(_),J)}function U(_){return _===null||_===34||_===39||_===60||_===61||_===96?l(_):_===47||_===62||st(_)?G(_):(e.consume(_),U)}function X(_){return _===47||_===62||st(_)?G(_):l(_)}function F(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),r):l(_)}function O(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),z}function z(_){return Ie(_)?$e(e,Q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Q(_)}function Q(_){return e.enter("htmlTextData"),c(_)}}const Sh={name:"labelEnd",resolveAll:r4,resolveTo:l4,tokenize:i4},e4={tokenize:a4},t4={tokenize:o4},n4={tokenize:s4};function r4(e){let r=-1;const l=[];for(;++r<e.length;){const a=e[r][1];if(l.push(e[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",r+=s}}return e.length!==l.length&&kn(e,0,e.length,l),e}function l4(e,r){let l=e.length,a=0,s,u,c,f;for(;l--;)if(s=e[l][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[l][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=l,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=l);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,r],["enter",p,r]],f=zn(f,e.slice(u+1,u+a+3)),f=zn(f,[["enter",b,r]]),f=zn(f,pu(r.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),r)),f=zn(f,[["exit",b,r],e[c-2],e[c-1],["exit",p,r]]),f=zn(f,e.slice(c+1)),f=zn(f,[["exit",h,r]]),kn(e,u,e.length,f),e}function i4(e,r,l){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return f;function f(v){return u?u._inactive?g(v):(c=a.parser.defined.includes(Pn(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):l(v)}function h(v){return v===40?e.attempt(e4,b,c?b:g)(v):v===91?e.attempt(t4,b,c?p:g)(v):c?b(v):g(v)}function p(v){return e.attempt(n4,b,g)(v)}function b(v){return r(v)}function g(v){return u._balanced=!0,l(v)}}function a4(e,r,l){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return st(g)?Fa(e,u)(g):u(g)}function u(g){return g===41?b(g):Q1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return st(g)?Fa(e,h)(g):b(g)}function f(g){return l(g)}function h(g){return g===34||g===39||g===40?J1(e,p,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function p(g){return st(g)?Fa(e,b)(g):b(g)}function b(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),r):l(g)}}function o4(e,r,l){const a=this;return s;function s(f){return K1.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(Pn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(f):l(f)}function c(f){return l(f)}}function s4(e,r,l){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):l(u)}}const u4={name:"labelStartImage",resolveAll:Sh.resolveAll,tokenize:c4};function c4(e,r,l){const a=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):l(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(f):r(f)}}const f4={name:"labelStartLink",resolveAll:Sh.resolveAll,tokenize:d4};function d4(e,r,l){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(c):r(c)}}const Kf={name:"lineEnding",tokenize:h4};function h4(e,r){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const Rs={name:"thematicBreak",tokenize:p4};function p4(e,r,l){let a=0,s;return u;function u(p){return e.enter("thematicBreak"),c(p)}function c(p){return s=p,f(p)}function f(p){return p===s?(e.enter("thematicBreakSequence"),h(p)):a>=3&&(p===null||Ae(p))?(e.exit("thematicBreak"),r(p)):l(p)}function h(p){return p===s?(e.consume(p),a++,h):(e.exit("thematicBreakSequence"),Ie(p)?$e(e,f,"whitespace")(p):f(p))}}const an={continuation:{tokenize:y4},exit:v4,name:"list",tokenize:b4},m4={partial:!0,tokenize:w4},g4={partial:!0,tokenize:x4};function b4(e,r,l){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(x){const w=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:qd(x)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(Rs,l,p)(x):p(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return l(x)}function h(x){return qd(x)&&++c<10?(e.consume(x),h):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),p(x)):l(x)}function p(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(Wa,a.interrupt?l:b,e.attempt(m4,v,g))}function b(x){return a.containerState.initialBlankLine=!0,u++,v(x)}function g(x){return Ie(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):l(x)}function v(x){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(x)}}function y4(e,r,l){const a=this;return a.containerState._closeFlow=void 0,e.check(Wa,s,u);function s(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,$e(e,r,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Ie(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(g4,r,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,$e(e,e.attempt(an,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function x4(e,r,l){const a=this;return $e(e,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):l(u)}}function v4(e){e.exit(this.containerState.type)}function w4(e,r,l){const a=this;return $e(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Ie(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const Oy={name:"setextUnderline",resolveTo:S4,tokenize:k4};function S4(e,r){let l=e.length,a,s,u;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){a=l;break}e[l][1].type==="paragraph"&&(s=l)}else e[l][1].type==="content"&&e.splice(l,1),!u&&e[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,r]),e.splice(u+1,0,["exit",e[a][1],r]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function k4(e,r,l){const a=this;let s;return u;function u(p){let b=a.events.length,g;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){g=a.events[b][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),s=p,c(p)):l(p)}function c(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===s?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),Ie(p)?$e(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Ae(p)?(e.exit("setextHeadingLine"),r(p)):l(p)}}const E4={tokenize:C4};function C4(e){const r=this,l=e.attempt(Wa,a,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(_3,s)),"linePrefix")));return l;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const N4={resolveAll:e0()},A4=W1("string"),T4=W1("text");function W1(e){return{resolveAll:e0(e==="text"?j4:void 0),tokenize:r};function r(l){const a=this,s=this.parser.constructs[e],u=l.attempt(s,c,f);return c;function c(b){return p(b)?u(b):f(b)}function f(b){if(b===null){l.consume(b);return}return l.enter("data"),l.consume(b),h}function h(b){return p(b)?(l.exit("data"),u(b)):(l.consume(b),h)}function p(b){if(b===null)return!0;const g=s[b];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function e0(e){return r;function r(l,a){let s=-1,u;for(;++s<=l.length;)u===void 0?l[s]&&l[s][1].type==="data"&&(u=s,s++):(!l[s]||l[s][1].type!=="data")&&(s!==u+2&&(l[u][1].end=l[s-1][1].end,l.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(l,a):l}}function j4(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const a=e[l-1][1],s=r.sliceStream(a);let u=s.length,c=-1,f=0,h;for(;u--;){const p=s[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(p===-2)h=!0,f++;else if(p!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===e.length&&(f=0),f){const p={type:l===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(l,0,["enter",p,r],["exit",p,r]),l+=2)}l++}return e}const _4={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:G1},R4={91:M3},L4={[-2]:Qf,[-1]:Qf,32:Qf},D4={35:H3,42:Rs,45:[Oy,Rs],60:V3,61:Oy,95:Rs,96:Ly,126:Ly},O4={38:X1,92:Y1},M4={[-5]:Kf,[-4]:Kf,[-3]:Kf,33:u4,38:X1,42:Pd,60:[f3,J3],91:f4,92:[I3,Y1],93:Sh,95:Pd,96:E3},z4={null:[Pd,N4]},B4={null:[42,95]},F4={null:[]},I4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:B4,contentInitial:R4,disable:F4,document:_4,flow:D4,flowInitial:L4,insideSpan:z4,string:O4,text:M4},Symbol.toStringTag,{value:"Module"}));function U4(e,r,l){let a={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const s={},u=[];let c=[],f=[];const h={attempt:I(q),check:I(L),consume:C,enter:j,exit:B,interrupt:I(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:g};let b=r.tokenize.call(p,h);return r.resolveAll&&u.push(r),p;function g(V){return c=zn(c,V),N(),c[c.length-1]!==null?[]:($(r,0),p.events=pu(u,p.events,p),p.events)}function v(V,Y){return q4(x(V),Y)}function x(V){return H4(c,V)}function w(){const{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}=a;return{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}}function S(V){s[V.line]=V.column,M()}function N(){let V;for(;a._index<c.length;){const Y=c[a._index];if(typeof Y=="string")for(V=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===V&&a._bufferIndex<Y.length;)E(Y.charCodeAt(a._bufferIndex));else E(Y)}}function E(V){b=b(V)}function C(V){Ae(V)?(a.line++,a.column=1,a.offset+=V===-3?2:1,M()):V!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=V}function j(V,Y){const J=Y||{};return J.type=V,J.start=w(),p.events.push(["enter",J,p]),f.push(J),J}function B(V){const Y=f.pop();return Y.end=w(),p.events.push(["exit",Y,p]),Y}function q(V,Y){$(V,Y.from)}function L(V,Y){Y.restore()}function I(V,Y){return J;function J(U,X,F){let O,z,Q,_;return Array.isArray(U)?H(U):"tokenize"in U?H([U]):D(U);function D(fe){return pe;function pe(me){const de=me!==null&&fe[me],ge=me!==null&&fe.null,xe=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return H(xe)(me)}}function H(fe){return O=fe,z=0,fe.length===0?F:A(fe[z])}function A(fe){return pe;function pe(me){return _=G(),Q=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.includes(fe.name)?ue():fe.tokenize.call(Y?Object.assign(Object.create(p),Y):p,h,te,ue)(me)}}function te(fe){return V(Q,_),X}function ue(fe){return _.restore(),++z<O.length?A(O[z]):F}}}function $(V,Y){V.resolveAll&&!u.includes(V)&&u.push(V),V.resolve&&kn(p.events,Y,p.events.length-Y,V.resolve(p.events.slice(Y),p)),V.resolveTo&&(p.events=V.resolveTo(p.events,p))}function G(){const V=w(),Y=p.previous,J=p.currentConstruct,U=p.events.length,X=Array.from(f);return{from:U,restore:F};function F(){a=V,p.previous=Y,p.currentConstruct=J,p.events.length=U,f=X,M()}}function M(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function H4(e,r){const l=r.start._index,a=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(l===s)c=[e[l].slice(a,u)];else{if(c=e.slice(l,s),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function q4(e,r){let l=-1;const a=[];let s;for(;++l<e.length;){const u=e[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
17
|
-
`;break}case-3:{c=`\r
|
|
18
|
-
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function P4(e){const a={constructs:$1([I4,...(e||{}).extensions||[]]),content:s(l3),defined:[],document:s(a3),flow:s(E4),lazy:{},string:s(A4),text:s(T4)};return a;function s(u){return c;function c(f){return U4(a,u,f)}}}function $4(e){for(;!Z1(e););return e}const My=/[\0\t\n\r]/g;function V4(){let e=1,r="",l=!0,a;return s;function s(u,c,f){const h=[];let p,b,g,v,x;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,r="",l&&(u.charCodeAt(0)===65279&&g++,l=void 0);g<u.length;){if(My.lastIndex=g,p=My.exec(u),v=p&&p.index!==void 0?p.index:u.length,x=u.charCodeAt(v),!p){r=u.slice(g);break}if(x===10&&g===v&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),g<v&&(h.push(u.slice(g,v)),e+=v-g),x){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}g=v+1}return f&&(a&&h.push(-5),r&&h.push(r),h.push(null)),h}}const G4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Y4(e){return e.replace(G4,X4)}function X4(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),u=s===120||s===88;return V1(l.slice(u?2:1),u?16:10)}return wh(l)||e}const t0={}.hasOwnProperty;function Z4(e,r,l){return typeof r!="string"&&(l=r,r=void 0),Q4(l)($4(P4(l).document().write(V4()(e,r,!0))))}function Q4(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(pt),autolinkProtocol:G,autolinkEmail:G,atxHeading:u(Pe),blockQuote:u(ge),characterEscape:G,characterReference:G,codeFenced:u(xe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(xe,c),codeText:u(be,c),codeTextData:G,data:G,codeFlowValue:G,definition:u(ke),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Ne),hardBreakEscape:u(Qe),hardBreakTrailing:u(Qe),htmlFlow:u(ze,c),htmlFlowData:G,htmlText:u(ze,c),htmlTextData:G,image:u(Bt),label:c,link:u(pt),listItem:u(Ft),listItemValue:v,listOrdered:u(gt,g),listUnordered:u(gt),paragraph:u(it),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Pe),strong:u(It),thematicBreak:u($n)},exit:{atxHeading:h(),atxHeadingSequence:q,autolink:h(),autolinkEmail:de,autolinkProtocol:me,blockQuote:h(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:fe,characterReference:pe,codeFenced:h(N),codeFencedFence:S,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:M,codeIndented:h(E),codeText:h(X),codeTextData:M,data:M,definition:h(),definitionDestinationString:B,definitionLabelString:C,definitionTitleString:j,emphasis:h(),hardBreakEscape:h(Y),hardBreakTrailing:h(Y),htmlFlow:h(J),htmlFlowData:M,htmlText:h(U),htmlTextData:M,image:h(O),label:Q,labelText:z,lineEnding:V,link:h(F),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:te,resourceDestinationString:_,resourceTitleString:D,resource:H,setextHeading:h($),setextHeadingLineSequence:I,setextHeadingText:L,strong:h(),thematicBreak:h()}};n0(r,(e||{}).mdastExtensions||[]);const l={};return a;function a(ae){let ye={type:"root",children:[]};const je={stack:[ye],tokenStack:[],config:r,enter:f,exit:p,buffer:c,resume:b,data:l},Me=[];let Ge=-1;for(;++Ge<ae.length;)if(ae[Ge][1].type==="listOrdered"||ae[Ge][1].type==="listUnordered")if(ae[Ge][0]==="enter")Me.push(Ge);else{const Yt=Me.pop();Ge=s(ae,Yt,Ge)}for(Ge=-1;++Ge<ae.length;){const Yt=r[ae[Ge][0]];t0.call(Yt,ae[Ge][1].type)&&Yt[ae[Ge][1].type].call(Object.assign({sliceSerialize:ae[Ge][2].sliceSerialize},je),ae[Ge][1])}if(je.tokenStack.length>0){const Yt=je.tokenStack[je.tokenStack.length-1];(Yt[1]||zy).call(je,void 0,Yt[0])}for(ye.position={start:Wr(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Wr(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<r.transforms.length;)ye=r.transforms[Ge](ye)||ye;return ye}function s(ae,ye,je){let Me=ye-1,Ge=-1,Yt=!1,Fn,Lt,mt,jt;for(;++Me<=je;){const Ke=ae[Me];switch(Ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ke[0]==="enter"?Ge++:Ge--,jt=void 0;break}case"lineEndingBlank":{Ke[0]==="enter"&&(Fn&&!jt&&!Ge&&!mt&&(mt=Me),jt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jt=void 0}if(!Ge&&Ke[0]==="enter"&&Ke[1].type==="listItemPrefix"||Ge===-1&&Ke[0]==="exit"&&(Ke[1].type==="listUnordered"||Ke[1].type==="listOrdered")){if(Fn){let En=Me;for(Lt=void 0;En--;){const Xt=ae[En];if(Xt[1].type==="lineEnding"||Xt[1].type==="lineEndingBlank"){if(Xt[0]==="exit")continue;Lt&&(ae[Lt][1].type="lineEndingBlank",Yt=!0),Xt[1].type="lineEnding",Lt=En}else if(!(Xt[1].type==="linePrefix"||Xt[1].type==="blockQuotePrefix"||Xt[1].type==="blockQuotePrefixWhitespace"||Xt[1].type==="blockQuoteMarker"||Xt[1].type==="listItemIndent"))break}mt&&(!Lt||mt<Lt)&&(Fn._spread=!0),Fn.end=Object.assign({},Lt?ae[Lt][1].start:Ke[1].end),ae.splice(Lt||Me,0,["exit",Fn,Ke[2]]),Me++,je++}if(Ke[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},Ke[1].start),end:void 0};Fn=En,ae.splice(Me,0,["enter",En,Ke[2]]),Me++,je++,mt=void 0,jt=!0}}}return ae[ye][1]._spread=Yt,je}function u(ae,ye){return je;function je(Me){f.call(this,ae(Me),Me),ye&&ye.call(this,Me)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ae,ye,je){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([ye,je||void 0]),ae.position={start:Wr(ye.start),end:void 0}}function h(ae){return ye;function ye(je){ae&&ae.call(this,je),p.call(this,je)}}function p(ae,ye){const je=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ae.type&&(ye?ye.call(this,ae,Me[0]):(Me[1]||zy).call(this,ae,Me[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Ba({start:ae.start,end:ae.end})+"): it’s not open");je.position.end=Wr(ae.end)}function b(){return vh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ae){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ae}function w(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ae}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ae.replace(/(\r?\n|\r)$/g,"")}function C(ae){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=Pn(this.sliceSerialize(ae)).toLowerCase()}function j(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ae}function B(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ae}function q(ae){const ye=this.stack[this.stack.length-1];if(!ye.depth){const je=this.sliceSerialize(ae).length;ye.depth=je}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function I(ae){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ae){const je=this.stack[this.stack.length-1].children;let Me=je[je.length-1];(!Me||Me.type!=="text")&&(Me=at(),Me.position={start:Wr(ae.start),end:void 0},je.push(Me)),this.stack.push(Me)}function M(ae){const ye=this.stack.pop();ye.value+=this.sliceSerialize(ae),ye.position.end=Wr(ae.end)}function V(ae){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ye.children[ye.children.length-1];je.position.end=Wr(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ye.type)&&(G.call(this,ae),M.call(this,ae))}function Y(){this.data.atHardBreak=!0}function J(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ae}function U(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ae}function X(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ae}function F(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ye,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function O(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=ye,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function z(ae){const ye=this.sliceSerialize(ae),je=this.stack[this.stack.length-2];je.label=Y4(ye),je.identifier=Pn(ye).toLowerCase()}function Q(){const ae=this.stack[this.stack.length-1],ye=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const Me=ae.children;je.children=Me}else je.alt=ye}function _(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ae}function D(){const ae=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ae}function H(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function te(ae){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=Pn(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function ue(ae){this.data.characterReferenceType=ae.type}function fe(ae){const ye=this.sliceSerialize(ae),je=this.data.characterReferenceType;let Me;je?(Me=V1(ye,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=wh(ye);const Ge=this.stack[this.stack.length-1];Ge.value+=Me}function pe(ae){const ye=this.stack.pop();ye.position.end=Wr(ae.end)}function me(ae){M.call(this,ae);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ae)}function de(ae){M.call(this,ae);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ae)}function ge(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function Pe(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function ze(){return{type:"html",value:""}}function Bt(){return{type:"image",title:null,url:"",alt:null}}function pt(){return{type:"link",title:null,url:"",children:[]}}function gt(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Ft(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function it(){return{type:"paragraph",children:[]}}function It(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function $n(){return{type:"thematicBreak"}}}function Wr(e){return{line:e.line,column:e.column,offset:e.offset}}function n0(e,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?n0(e,a):K4(e,a)}}function K4(e,r){let l;for(l in r)if(t0.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&e[l].push(...a);break}case"transforms":{const a=r[l];a&&e[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(e[l],a);break}}}function zy(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Ba({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Ba({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Ba({start:r.start,end:r.end})+") is still open")}function J4(e){const r=this;r.parser=l;function l(a){return Z4(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function W4(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function eN(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
|
|
19
|
-
`}]}function tN(e,r){const l=r.value?r.value+`
|
|
20
|
-
`:"",a={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function nN(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function rN(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function lN(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),s=Mi(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const h={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+s,id:l+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(r,p),e.applyData(r,p)}function iN(e,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function aN(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function r0(e,r){const l=r.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const s=e.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function oN(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return r0(e,r);const s={src:Mi(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,u),e.applyData(r,u)}function sN(e,r){const l={src:Mi(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(r,a),e.applyData(r,a)}function uN(e,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(r,a),e.applyData(r,a)}function cN(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return r0(e,r);const s={href:Mi(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function fN(e,r){const l={href:Mi(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function dN(e,r,l){const a=e.all(r),s=l?hN(l):l0(r),u={},c=[];if(typeof r.checked=="boolean"){const b=a[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const b=a[f];(s||f!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
21
|
-
`}),b.type==="element"&&b.tagName==="p"&&!s?c.push(...b.children):c.push(b)}const h=a[a.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
22
|
-
`});const p={type:"element",tagName:"li",properties:u,children:c};return e.patch(r,p),e.applyData(r,p)}function hN(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const l=e.children;let a=-1;for(;!r&&++a<l.length;)r=l0(l[a])}return r}function l0(e){const r=e.spread;return r??e.children.length>1}function pN(e,r){const l={},a=e.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:l,children:e.wrap(a,!0)};return e.patch(r,u),e.applyData(r,u)}function mN(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function gN(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function bN(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function yN(e,r){const l=e.all(r),a=l.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(r.children[0],c),s.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},f=gh(r.children[1]),h=B1(r.children[r.children.length-1]);f&&h&&(c.position={start:f,end:h}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,u),e.applyData(r,u)}function xN(e,r,l){const a=l?l.children:void 0,u=(a?a.indexOf(r):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,f=c?c.length:r.children.length;let h=-1;const p=[];for(;++h<f;){const g=r.children[h],v={},x=c?c[h]:void 0;x&&(v.align=x);let w={type:"element",tagName:u,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),p.push(w)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(r,b),e.applyData(r,b)}function vN(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const By=9,Fy=32;function wN(e){const r=String(e),l=/\r?\n|\r/g;let a=l.exec(r),s=0;const u=[];for(;a;)u.push(Iy(r.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=l.exec(r);return u.push(Iy(r.slice(s),s>0,!1)),u.join("")}function Iy(e,r,l){let a=0,s=e.length;if(r){let u=e.codePointAt(a);for(;u===By||u===Fy;)a++,u=e.codePointAt(a)}if(l){let u=e.codePointAt(s-1);for(;u===By||u===Fy;)s--,u=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function SN(e,r){const l={type:"text",value:wN(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function kN(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const EN={blockquote:W4,break:eN,code:tN,delete:nN,emphasis:rN,footnoteReference:lN,heading:iN,html:aN,imageReference:oN,image:sN,inlineCode:uN,linkReference:cN,link:fN,listItem:dN,list:pN,paragraph:mN,root:gN,strong:bN,table:yN,tableCell:vN,tableRow:xN,text:SN,thematicBreak:kN,toml:ks,yaml:ks,definition:ks,footnoteDefinition:ks};function ks(){}const i0=-1,mu=0,Ia=1,Vs=2,kh=3,Eh=4,Ch=5,Nh=6,a0=7,o0=8,Uy=typeof self=="object"?self:globalThis,CN=(e,r)=>{const l=(s,u)=>(e.set(u,s),s),a=s=>{if(e.has(s))return e.get(s);const[u,c]=r[s];switch(u){case mu:case i0:return l(c,s);case Ia:{const f=l([],s);for(const h of c)f.push(a(h));return f}case Vs:{const f=l({},s);for(const[h,p]of c)f[a(h)]=a(p);return f}case kh:return l(new Date(c),s);case Eh:{const{source:f,flags:h}=c;return l(new RegExp(f,h),s)}case Ch:{const f=l(new Map,s);for(const[h,p]of c)f.set(a(h),a(p));return f}case Nh:{const f=l(new Set,s);for(const h of c)f.add(a(h));return f}case a0:{const{name:f,message:h}=c;return l(new Uy[f](h),s)}case o0:return l(BigInt(c),s);case"BigInt":return l(Object(BigInt(c)),s);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return l(new DataView(f),c)}}return l(new Uy[u](c),s)};return a},Hy=e=>CN(new Map,e)(0),Si="",{toString:NN}={},{keys:AN}=Object,La=e=>{const r=typeof e;if(r!=="object"||!e)return[mu,r];const l=NN.call(e).slice(8,-1);switch(l){case"Array":return[Ia,Si];case"Object":return[Vs,Si];case"Date":return[kh,Si];case"RegExp":return[Eh,Si];case"Map":return[Ch,Si];case"Set":return[Nh,Si];case"DataView":return[Ia,l]}return l.includes("Array")?[Ia,l]:l.includes("Error")?[a0,l]:[Vs,l]},Es=([e,r])=>e===mu&&(r==="function"||r==="symbol"),TN=(e,r,l,a)=>{const s=(c,f)=>{const h=a.push(c)-1;return l.set(f,h),h},u=c=>{if(l.has(c))return l.get(c);let[f,h]=La(c);switch(f){case mu:{let b=c;switch(h){case"bigint":f=o0,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return s([i0],c)}return s([f,b],c)}case Ia:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),s([h,[...v]],c)}const b=[],g=s([f,b],c);for(const v of c)b.push(u(v));return g}case Vs:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const b=[],g=s([f,b],c);for(const v of AN(c))(e||!Es(La(c[v])))&&b.push([u(v),u(c[v])]);return g}case kh:return s([f,c.toISOString()],c);case Eh:{const{source:b,flags:g}=c;return s([f,{source:b,flags:g}],c)}case Ch:{const b=[],g=s([f,b],c);for(const[v,x]of c)(e||!(Es(La(v))||Es(La(x))))&&b.push([u(v),u(x)]);return g}case Nh:{const b=[],g=s([f,b],c);for(const v of c)(e||!Es(La(v)))&&b.push(u(v));return g}}const{message:p}=c;return s([f,{name:h,message:p}],c)};return u},qy=(e,{json:r,lossy:l}={})=>{const a=[];return TN(!(r||l),!!r,new Map,a)(e),a},Gs=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Hy(qy(e,r)):structuredClone(e):(e,r)=>Hy(qy(e,r));function jN(e,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function _N(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function RN(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||jN,a=e.options.footnoteBackLabel||_N,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const b=e.all(p),g=String(p.identifier).toUpperCase(),v=Mi(g.toLowerCase());let x=0;const w=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++x<=S;){w.length>0&&w.push({type:"text",value:" "});let C=typeof l=="string"?l:l(h,x);typeof C=="string"&&(C={type:"text",value:C}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,x),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const N=b[b.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const C=N.children[N.children.length-1];C&&C.type==="text"?C.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...w)}else b.push(...w);const E={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(b,!0)};e.patch(p,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Gs(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
23
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}const gu=(function(e){if(e==null)return MN;if(typeof e=="function")return bu(e);if(typeof e=="object")return Array.isArray(e)?LN(e):DN(e);if(typeof e=="string")return ON(e);throw new Error("Expected function, string, or object as test")});function LN(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=gu(e[l]);return bu(a);function a(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function DN(e){const r=e;return bu(l);function l(a){const s=a;let u;for(u in e)if(s[u]!==r[u])return!1;return!0}}function ON(e){return bu(r);function r(l){return l&&l.type===e}}function bu(e){return r;function r(l,a,s){return!!(zN(l)&&e.call(this,l,typeof a=="number"?a:void 0,s||void 0))}}function MN(){return!0}function zN(e){return e!==null&&typeof e=="object"&&"type"in e}const s0=[],BN=!0,$d=!1,FN="skip";function u0(e,r,l,a){let s;typeof r=="function"&&typeof l!="function"?(a=l,l=r):s=r;const u=gu(s),c=a?-1:1;f(e,void 0,[])();function f(h,p,b){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=s0,w,S,N;if((!r||u(h,p,b[b.length-1]||void 0))&&(x=IN(l(h,b)),x[0]===$d))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==FN)for(S=(a?E.children.length:-1)+c,N=b.concat(E);S>-1&&S<E.children.length;){const C=E.children[S];if(w=f(C,S,N)(),w[0]===$d)return w;S=typeof w[1]=="number"?w[1]:S+c}}return x}}}function IN(e){return Array.isArray(e)?e:typeof e=="number"?[BN,e]:e==null?s0:[e]}function Ah(e,r,l,a){let s,u,c;typeof r=="function"&&typeof l!="function"?(u=void 0,c=r,s=l):(u=r,c=l,s=a),u0(e,u,f,s);function f(h,p){const b=p[p.length-1],g=b?b.children.indexOf(h):void 0;return c(h,g,b)}}const Vd={}.hasOwnProperty,UN={};function HN(e,r){const l=r||UN,a=new Map,s=new Map,u=new Map,c={...EN,...l.handlers},f={all:p,applyData:PN,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:l,patch:qN,wrap:VN};return Ah(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?a:s,v=String(b.identifier).toUpperCase();g.has(v)||g.set(v,b)}}),f;function h(b,g){const v=b.type,x=f.handlers[v];if(Vd.call(f.handlers,v)&&x)return x(f,b,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in b){const{children:S,...N}=b,E=Gs(N);return E.children=f.all(b),E}return Gs(b)}return(f.options.unknownHandler||$N)(f,b,g)}function p(b){const g=[];if("children"in b){const v=b.children;let x=-1;for(;++x<v.length;){const w=f.one(v[x],b);if(w){if(x&&v[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Py(w.value)),!Array.isArray(w)&&w.type==="element")){const S=w.children[0];S&&S.type==="text"&&(S.value=Py(S.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function qN(e,r){e.position&&(r.position=_C(e))}function PN(e,r){let l=r;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const c="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,Gs(u)),"children"in l&&l.children&&s!==null&&s!==void 0&&(l.children=s)}return l}function $N(e,r){const l=r.data||{},a="value"in r&&!(Vd.call(l,"hProperties")||Vd.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function VN(e,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
|
|
25
|
-
`});++a<e.length;)a&&l.push({type:"text",value:`
|
|
26
|
-
`}),l.push(e[a]);return r&&e.length>0&&l.push({type:"text",value:`
|
|
27
|
-
`}),l}function Py(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function $y(e,r){const l=HN(e,r),a=l.one(e,void 0),s=RN(l),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
|
|
28
|
-
`},s),u}function GN(e,r){return e&&"run"in e?async function(l,a){const s=$y(l,{file:a,...r});await e.run(s,a)}:function(l,a){return $y(l,{file:a,...e||r})}}function Vy(e){if(e)throw e}var Jf,Gy;function YN(){if(Gy)return Jf;Gy=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},u=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var b=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},c=function(p,b){l&&b.name==="__proto__"?l(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},f=function(p,b){if(b==="__proto__")if(e.call(p,b)){if(a)return a(p,b).value}else return;return p[b]};return Jf=function h(){var p,b,g,v,x,w,S=arguments[0],N=1,E=arguments.length,C=!1;for(typeof S=="boolean"&&(C=S,S=arguments[1]||{},N=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});N<E;++N)if(p=arguments[N],p!=null)for(b in p)g=f(S,b),v=f(p,b),S!==v&&(C&&v&&(u(v)||(x=s(v)))?(x?(x=!1,w=g&&s(g)?g:[]):w=g&&u(g)?g:{},c(S,{name:b,newValue:h(C,w,v)})):typeof v<"u"&&c(S,{name:b,newValue:v}));return S},Jf}var XN=YN();const Wf=eu(XN);function Gd(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ZN(){const e=[],r={run:l,use:a};return r;function l(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(h,...p){const b=e[++u];let g=-1;if(h){c(h);return}for(;++g<s.length;)(p[g]===null||p[g]===void 0)&&(p[g]=s[g]);s=p,b?QN(b,f)(...p):c(null,...p)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function QN(e,r){let l;return a;function a(...c){const f=e.length>c.length;let h;f&&c.push(s);try{h=e.apply(this,c)}catch(p){const b=p;if(f&&l)throw b;return s(b)}f||(h&&h.then&&typeof h.then=="function"?h.then(u,s):h instanceof Error?s(h):u(h))}function s(c,...f){l||(l=!0,r(c,...f))}function u(c){s(null,c)}}const Qn={basename:KN,dirname:JN,extname:WN,join:eA,sep:"/"};function KN(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');eo(e);let l=0,a=-1,s=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":e.slice(l,a)}if(r===e)return"";let c=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(a=s):(f=-1,a=c));return l===a?a=c:a<0&&(a=e.length),e.slice(l,a)}function JN(e){if(eo(e),e.length===0)return".";let r=-1,l=e.length,a;for(;--l;)if(e.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function WN(e){eo(e);let r=e.length,l=-1,a=0,s=-1,u=0,c;for(;r--;){const f=e.codePointAt(r);if(f===47){if(c){a=r+1;break}continue}l<0&&(c=!0,l=r+1),f===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||l<0||u===0||u===1&&s===l-1&&s===a+1?"":e.slice(s,l)}function eA(...e){let r=-1,l;for(;++r<e.length;)eo(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":tA(l)}function tA(e){eo(e);const r=e.codePointAt(0)===47;let l=nA(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function nA(e,r){let l="",a=0,s=-1,u=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(h=l.lastIndexOf("/"),h!==l.length-1){h<0?(l="",a=0):(l=l.slice(0,h),a=l.length-1-l.lastIndexOf("/")),s=c,u=0;continue}}else if(l.length>0){l="",a=0,s=c,u=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+e.slice(s+1,c):l=e.slice(s+1,c),a=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return l}function eo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rA={cwd:lA};function lA(){return"/"}function Yd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function iA(e){if(typeof e=="string")e=new URL(e);else if(!Yd(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return aA(e)}function aA(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=e.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const ed=["history","path","basename","stem","extname","dirname"];class c0{constructor(r){let l;r?Yd(r)?l={path:r}:typeof r=="string"||oA(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":rA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<ed.length;){const u=ed[a];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let s;for(s in l)ed.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Qn.basename(this.path):void 0}set basename(r){nd(r,"basename"),td(r,"basename"),this.path=Qn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Qn.dirname(this.path):void 0}set dirname(r){Yy(this.basename,"dirname"),this.path=Qn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Qn.extname(this.path):void 0}set extname(r){if(td(r,"extname"),Yy(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Yd(r)&&(r=iA(r)),nd(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Qn.basename(this.path,this.extname):void 0}set stem(r){nd(r,"stem"),td(r,"stem"),this.path=Qn.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const s=this.message(r,l,a);throw s.fatal=!0,s}info(r,l,a){const s=this.message(r,l,a);return s.fatal=void 0,s}message(r,l,a){const s=new Gt(r,l,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function td(e,r){if(e&&e.includes(Qn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Qn.sep+"`")}function nd(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Yy(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function oA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sA=(function(e){const a=this.constructor.prototype,s=a[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),uA={}.hasOwnProperty;class Th extends sA{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=ZN()}copy(){const r=new Th;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(Wf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(id("data",this.frozen),this.namespace[r]=l,this):uA.call(this.namespace,r)&&this.namespace[r]||void 0:r?(id("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=l.call(r,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=Cs(r),a=this.parser||this.Parser;return rd("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),rd("process",this.parser||this.Parser),ld("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(u,c){const f=Cs(r),h=a.parse(f);a.run(h,f,function(b,g,v){if(b||!g||!v)return p(b);const x=g,w=a.stringify(x,v);dA(w)?v.value=w:v.result=w,p(b,v)});function p(b,g){b||!g?c(b):u?u(g):l(void 0,g)}}}processSync(r){let l=!1,a;return this.freeze(),rd("processSync",this.parser||this.Parser),ld("processSync",this.compiler||this.Compiler),this.process(r,s),Zy("processSync","process",l),a;function s(u,c){l=!0,Vy(u),a=c}}run(r,l,a){Xy(r),this.freeze();const s=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?u(void 0,a):new Promise(u);function u(c,f){const h=Cs(l);s.run(r,h,p);function p(b,g,v){const x=g||r;b?f(b):c?c(x):a(void 0,x,v)}}}runSync(r,l){let a=!1,s;return this.run(r,l,u),Zy("runSync","run",a),s;function u(c,f){Vy(c),s=f,a=!0}}stringify(r,l){this.freeze();const a=Cs(l),s=this.compiler||this.Compiler;return ld("stringify",s),Xy(r),s(r,a)}use(r,...l){const a=this.attachers,s=this.namespace;if(id("use",this.frozen),r!=null)if(typeof r=="function")h(r,l);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...g]=p;h(b,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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");f(p.plugins),p.settings&&(s.settings=Wf(!0,s.settings,p.settings))}function f(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const g=p[b];u(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,b){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...b]);else if(b.length>0){let[x,...w]=b;const S=a[v][1];Gd(S)&&Gd(x)&&(x=Wf(!0,S,x)),a[v]=[p,x,...w]}}}}const cA=new Th().freeze();function rd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ld(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function id(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xy(e){if(!Gd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zy(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Cs(e){return fA(e)?e:new c0(e)}function fA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dA(e){return typeof e=="string"||hA(e)}function hA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qy=[],Ky={allowDangerousHtml:!0},mA=/^(https?|ircs?|mailto|xmpp)$/i,gA=[{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 jh(e){const r=bA(e),l=yA(e);return xA(r.runSync(r.parse(l),l),e)}function bA(e){const r=e.rehypePlugins||Qy,l=e.remarkPlugins||Qy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ky}:Ky;return cA().use(J4).use(l).use(GN,a).use(r)}function yA(e){const r=e.children||"",l=new c0;return typeof r=="string"&&(l.value=r),l}function xA(e,r){const l=r.allowedElements,a=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,h=r.urlTransform||vA;for(const b of gA)Object.hasOwn(r,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+pA+b.id,void 0);return Ah(e,p),MC(e,{Fragment:y.Fragment,components:s,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(b,g,v){if(b.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let x;for(x in Zf)if(Object.hasOwn(Zf,x)&&Object.hasOwn(b.properties,x)){const w=b.properties[x],S=Zf[x];(S===null||S.includes(b.tagName))&&(b.properties[x]=h(String(w||""),x,b))}}if(b.type==="element"){let x=l?!l.includes(b.tagName):u?u.includes(b.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(b,g,v)),x&&v&&typeof g=="number")return f&&b.children?v.children.splice(g,1,...b.children):v.children.splice(g,1),g}}}function vA(e){const r=e.indexOf(":"),l=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||l!==-1&&r>l||a!==-1&&r>a||mA.test(e.slice(0,r))?e:""}function Jy(e,r){const l=String(e);if(typeof r!="string")throw new TypeError("Expected character");let a=0,s=l.indexOf(r);for(;s!==-1;)a++,s=l.indexOf(r,s+r.length);return a}function wA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function SA(e,r,l){const s=gu((l||{}).ignore||[]),u=kA(r);let c=-1;for(;++c<u.length;)u0(e,"text",f);function f(p,b){let g=-1,v;for(;++g<b.length;){const x=b[g],w=v?v.children:void 0;if(s(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return h(p,b)}function h(p,b){const g=b[b.length-1],v=u[c][0],x=u[c][1];let w=0;const N=g.children.indexOf(p);let E=!1,C=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const B=j.index,q={index:j.index,input:j.input,stack:[...b,p]};let L=x(...j,q);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=B+1:(w!==B&&C.push({type:"text",value:p.value.slice(w,B)}),Array.isArray(L)?C.push(...L):L&&C.push(L),w=B+j[0].length,E=!0),!v.global)break;j=v.exec(p.value)}return E?(w<p.value.length&&C.push({type:"text",value:p.value.slice(w)}),g.children.splice(N,1,...C)):C=[p],N+C.length}}function kA(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<l.length;){const s=l[a];r.push([EA(s[0]),CA(s[1])])}return r}function EA(e){return typeof e=="string"?new RegExp(wA(e),"g"):e}function CA(e){return typeof e=="function"?e:function(){return e}}const ad="phrasing",od=["autolink","link","image","label"];function NA(){return{transforms:[DA],enter:{literalAutolink:TA,literalAutolinkEmail:sd,literalAutolinkHttp:sd,literalAutolinkWww:sd},exit:{literalAutolink:LA,literalAutolinkEmail:RA,literalAutolinkHttp:jA,literalAutolinkWww:_A}}}function AA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ad,notInConstruct:od},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ad,notInConstruct:od},{character:":",before:"[ps]",after:"\\/",inConstruct:ad,notInConstruct:od}]}}function TA(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sd(e){this.config.enter.autolinkProtocol.call(this,e)}function jA(e){this.config.exit.autolinkProtocol.call(this,e)}function _A(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function RA(e){this.config.exit.autolinkEmail.call(this,e)}function LA(e){this.exit(e)}function DA(e){SA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,OA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),MA]],{ignore:["link","linkReference"]})}function OA(e,r,l,a,s){let u="";if(!f0(s)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!zA(l)))return!1;const c=BA(l+a);if(!c[0])return!1;const f={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function MA(e,r,l,a){return!f0(a,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function zA(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function BA(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let l=r[0],a=l.indexOf(")");const s=Jy(e,"(");let u=Jy(e,")");for(;a!==-1&&s>u;)e+=l.slice(0,a+1),l=l.slice(a+1),a=l.indexOf(")"),u++;return[e,l]}function f0(e,r){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Ol(l)||hu(l))&&(!r||l!==47)}d0.peek=GA;function FA(){this.buffer()}function IA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function UA(){this.buffer()}function HA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qA(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Pn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function PA(e){this.exit(e)}function $A(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Pn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function VA(e){this.exit(e)}function GA(){return"["}function d0(e,r,l,a){const s=l.createTracker(a);let u=s.move("[^");const c=l.enter("footnoteReference"),f=l.enter("reference");return u+=s.move(l.safe(l.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function YA(){return{enter:{gfmFootnoteCallString:FA,gfmFootnoteCall:IA,gfmFootnoteDefinitionLabelString:UA,gfmFootnoteDefinition:HA},exit:{gfmFootnoteCallString:qA,gfmFootnoteCall:PA,gfmFootnoteDefinitionLabelString:$A,gfmFootnoteDefinition:VA}}}function XA(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:d0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(a,s,u,c){const f=u.createTracker(c);let h=f.move("[^");const p=u.enter("footnoteDefinition"),b=u.enter("label");return h+=f.move(u.safe(u.associationId(a),{before:h,after:"]"})),b(),h+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),h+=f.move((r?`
|
|
29
|
-
`:" ")+u.indentLines(u.containerFlow(a,f.current()),r?h0:ZA))),p(),h}}function ZA(e,r,l){return r===0?e:h0(e,r,l)}function h0(e,r,l){return(l?"":" ")+e}const QA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];p0.peek=tT;function KA(){return{canContainEols:["delete"],enter:{strikethrough:WA},exit:{strikethrough:eT}}}function JA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:QA}],handlers:{delete:p0}}}function WA(e){this.enter({type:"delete",children:[]},e)}function eT(e){this.exit(e)}function p0(e,r,l,a){const s=l.createTracker(a),u=l.enter("strikethrough");let c=s.move("~~");return c+=l.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function tT(){return"~"}function nT(e){return e.length}function rT(e,r){const l=r||{},a=(l.align||[]).concat(),s=l.stringLength||nT,u=[],c=[],f=[],h=[];let p=0,b=-1;for(;++b<e.length;){const S=[],N=[];let E=-1;for(e[b].length>p&&(p=e[b].length);++E<e[b].length;){const C=lT(e[b][E]);if(l.alignDelimiters!==!1){const j=s(C);N[E]=j,(h[E]===void 0||j>h[E])&&(h[E]=j)}S.push(C)}c[b]=S,f[b]=N}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)u[g]=Wy(a[g]);else{const S=Wy(a);for(;++g<p;)u[g]=S}g=-1;const v=[],x=[];for(;++g<p;){const S=u[g];let N="",E="";S===99?(N=":",E=":"):S===108?N=":":S===114&&(E=":");let C=l.alignDelimiters===!1?1:Math.max(1,h[g]-N.length-E.length);const j=N+"-".repeat(C)+E;l.alignDelimiters!==!1&&(C=N.length+C+E.length,C>h[g]&&(h[g]=C),x[g]=C),v[g]=j}c.splice(1,0,v),f.splice(1,0,x),b=-1;const w=[];for(;++b<c.length;){const S=c[b],N=f[b];g=-1;const E=[];for(;++g<p;){const C=S[g]||"";let j="",B="";if(l.alignDelimiters!==!1){const q=h[g]-(N[g]||0),L=u[g];L===114?j=" ".repeat(q):L===99?q%2?(j=" ".repeat(q/2+.5),B=" ".repeat(q/2-.5)):(j=" ".repeat(q/2),B=j):B=" ".repeat(q)}l.delimiterStart!==!1&&!g&&E.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&C==="")&&(l.delimiterStart!==!1||g)&&E.push(" "),l.alignDelimiters!==!1&&E.push(j),E.push(C),l.alignDelimiters!==!1&&E.push(B),l.padding!==!1&&E.push(" "),(l.delimiterEnd!==!1||g!==p-1)&&E.push("|")}w.push(l.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
|
|
30
|
-
`)}function lT(e){return e==null?"":String(e)}function Wy(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function iT(e,r,l,a){const s=l.enter("blockquote"),u=l.createTracker(a);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(e,u.current()),aT);return s(),c}function aT(e,r,l){return">"+(l?"":" ")+e}function oT(e,r){return ex(e,r.inConstruct,!0)&&!ex(e,r.notInConstruct,!1)}function ex(e,r,l){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return l;let a=-1;for(;++a<r.length;)if(e.includes(r[a]))return!0;return!1}function tx(e,r,l,a){let s=-1;for(;++s<l.unsafe.length;)if(l.unsafe[s].character===`
|
|
31
|
-
`&&oT(l.stack,l.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
32
|
-
`}function sT(e,r){const l=String(e);let a=l.indexOf(r),s=a,u=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+r.length,a=l.indexOf(r,s);return c}function uT(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function cT(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function fT(e,r,l,a){const s=cT(l),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(uT(e,l)){const g=l.enter("codeIndented"),v=l.indentLines(u,dT);return g(),v}const f=l.createTracker(a),h=s.repeat(Math.max(sT(u,s)+1,3)),p=l.enter("codeFenced");let b=f.move(h);if(e.lang){const g=l.enter(`codeFencedLang${c}`);b+=f.move(l.safe(e.lang,{before:b,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=l.enter(`codeFencedMeta${c}`);b+=f.move(" "),b+=f.move(l.safe(e.meta,{before:b,after:`
|
|
33
|
-
`,encode:["`"],...f.current()})),g()}return b+=f.move(`
|
|
34
|
-
`),u&&(b+=f.move(u+`
|
|
35
|
-
`)),b+=f.move(h),p(),b}function dT(e,r,l){return(l?"":" ")+e}function _h(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function hT(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("definition");let f=l.enter("label");const h=l.createTracker(a);let p=h.move("[");return p+=h.move(l.safe(l.associationId(e),{before:p,after:"]",...h.current()})),p+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(l.safe(e.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(f=l.enter("destinationRaw"),p+=h.move(l.safe(e.url,{before:p,after:e.title?" ":`
|
|
36
|
-
`,...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),p+=h.move(" "+s),p+=h.move(l.safe(e.title,{before:p,after:s,...h.current()})),p+=h.move(s),f()),c(),p}function pT(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Va(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ys(e,r,l){const a=Li(e),s=Li(r);return a===void 0?s===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}m0.peek=mT;function m0(e,r,l,a){const s=pT(l),u=l.enter("emphasis"),c=l.createTracker(a),f=c.move(s);let h=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=h.charCodeAt(0),b=Ys(a.before.charCodeAt(a.before.length-1),p,s);b.inside&&(h=Va(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=Ys(a.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Va(g));const x=c.move(s);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},f+h+x}function mT(e,r,l){return l.options.emphasis||"*"}function gT(e,r){let l=!1;return Ah(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return l=!0,$d}),!!((!e.depth||e.depth<3)&&vh(e)&&(r.options.setext||l))}function bT(e,r,l,a){const s=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(a);if(gT(e,l)){const b=l.enter("headingSetext"),g=l.enter("phrasing"),v=l.containerPhrasing(e,{...u.current(),before:`
|
|
37
|
-
`,after:`
|
|
38
|
-
`});return g(),b(),v+`
|
|
39
|
-
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
40
|
-
`))+1))}const c="#".repeat(s),f=l.enter("headingAtx"),h=l.enter("phrasing");u.move(c+" ");let p=l.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
-
`,...u.current()});return/^[\t ]/.test(p)&&(p=Va(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,l.options.closeAtx&&(p+=" "+c),h(),f(),p}g0.peek=yT;function g0(e){return e.value||""}function yT(){return"<"}b0.peek=xT;function b0(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("image");let f=l.enter("label");const h=l.createTracker(a);let p=h.move("![");return p+=h.move(l.safe(e.alt,{before:p,after:"]",...h.current()})),p+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(l.safe(e.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(f=l.enter("destinationRaw"),p+=h.move(l.safe(e.url,{before:p,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),p+=h.move(" "+s),p+=h.move(l.safe(e.title,{before:p,after:s,...h.current()})),p+=h.move(s),f()),p+=h.move(")"),c(),p}function xT(){return"!"}y0.peek=vT;function y0(e,r,l,a){const s=e.referenceType,u=l.enter("imageReference");let c=l.enter("label");const f=l.createTracker(a);let h=f.move("![");const p=l.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!p||p!==g?h+=f.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function vT(){return"!"}x0.peek=wT;function x0(e,r,l){let a=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<l.unsafe.length;){const c=l.unsafe[u],f=l.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(a);){let p=h.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(h.index+1)}}return s+a+s}function wT(){return"`"}function v0(e,r){const l=vh(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(l===e.url||"mailto:"+l===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}w0.peek=ST;function w0(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.createTracker(a);let f,h;if(v0(e,l)){const b=l.stack;l.stack=[],f=l.enter("autolink");let g=c.move("<");return g+=c.move(l.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),l.stack=b,g}f=l.enter("link"),h=l.enter("label");let p=c.move("[");return p+=c.move(l.containerPhrasing(e,{before:p,after:"](",...c.current()})),p+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=l.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(l.safe(e.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(h=l.enter("destinationRaw"),p+=c.move(l.safe(e.url,{before:p,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=l.enter(`title${u}`),p+=c.move(" "+s),p+=c.move(l.safe(e.title,{before:p,after:s,...c.current()})),p+=c.move(s),h()),p+=c.move(")"),f(),p}function ST(e,r,l){return v0(e,l)?"<":"["}S0.peek=kT;function S0(e,r,l,a){const s=e.referenceType,u=l.enter("linkReference");let c=l.enter("label");const f=l.createTracker(a);let h=f.move("[");const p=l.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!p||p!==g?h+=f.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function kT(){return"["}function Rh(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function ET(e){const r=Rh(e),l=e.options.bulletOther;if(!l)return r==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+l+"`) to be different");return l}function CT(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function k0(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function NT(e,r,l,a){const s=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?CT(l):Rh(l);const f=e.ordered?c==="."?")":".":ET(l);let h=r&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(h=!0),k0(l)===c&&b){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),l.bulletCurrent=c;const p=l.containerFlow(e,a);return l.bulletLastUsed=c,l.bulletCurrent=u,s(),p}function AT(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function TT(e,r,l,a){const s=AT(l);let u=l.bulletCurrent||Rh(l);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(l.options.incrementListMarker===!1?0:r.children.indexOf(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=l.createTracker(a);f.move(u+" ".repeat(c-u.length)),f.shift(c);const h=l.enter("listItem"),p=l.indentLines(l.containerFlow(e,f.current()),b);return h(),p;function b(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?u:u+" ".repeat(c-u.length))+g}}function jT(e,r,l,a){const s=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,a);return u(),s(),c}const _T=gu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function RT(e,r,l,a){return(e.children.some(function(c){return _T(c)})?l.containerPhrasing:l.containerFlow).call(l,e,a)}function LT(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}E0.peek=DT;function E0(e,r,l,a){const s=LT(l),u=l.enter("strong"),c=l.createTracker(a),f=c.move(s+s);let h=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=h.charCodeAt(0),b=Ys(a.before.charCodeAt(a.before.length-1),p,s);b.inside&&(h=Va(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=Ys(a.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Va(g));const x=c.move(s+s);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},f+h+x}function DT(e,r,l){return l.options.strong||"*"}function OT(e,r,l,a){return l.safe(e.value,a)}function MT(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function zT(e,r,l){const a=(k0(l)+(l.options.ruleSpaces?" ":"")).repeat(MT(l));return l.options.ruleSpaces?a.slice(0,-1):a}const C0={blockquote:iT,break:tx,code:fT,definition:hT,emphasis:m0,hardBreak:tx,heading:bT,html:g0,image:b0,imageReference:y0,inlineCode:x0,link:w0,linkReference:S0,list:NT,listItem:TT,paragraph:jT,root:RT,strong:E0,text:OT,thematicBreak:zT};function BT(){return{enter:{table:FT,tableData:nx,tableHeader:nx,tableRow:UT},exit:{codeText:HT,table:IT,tableData:ud,tableHeader:ud,tableRow:ud}}}function FT(e){const r=e._align;this.enter({type:"table",align:r.map(function(l){return l==="none"?null:l}),children:[]},e),this.data.inTable=!0}function IT(e){this.exit(e),this.data.inTable=void 0}function UT(e){this.enter({type:"tableRow",children:[]},e)}function ud(e){this.exit(e)}function nx(e){this.enter({type:"tableCell",children:[]},e)}function HT(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,qT));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(e)}function qT(e,r){return r==="|"?r:e}function PT(e){const r=e||{},l=r.tableCellPadding,a=r.tablePipeAlign,s=r.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(x,w,S,N){return p(b(x,S,N),x.align)}function f(x,w,S,N){const E=g(x,S,N),C=p([E]);return C.slice(0,C.indexOf(`
|
|
43
|
-
`))}function h(x,w,S,N){const E=S.enter("tableCell"),C=S.enter("phrasing"),j=S.containerPhrasing(x,{...N,before:u,after:u});return C(),E(),j}function p(x,w){return rT(x,{align:w,alignDelimiters:a,padding:l,stringLength:s})}function b(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("table");for(;++E<N.length;)C[E]=g(N[E],w,S);return j(),C}function g(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("tableRow");for(;++E<N.length;)C[E]=h(N[E],x,w,S);return j(),C}function v(x,w,S){let N=C0.inlineCode(x,w,S);return S.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function $T(){return{exit:{taskListCheckValueChecked:rx,taskListCheckValueUnchecked:rx,paragraph:GT}}}function VT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:YT}}}function rx(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function GT(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const a=l.children[0];if(a&&a.type==="text"){const s=r.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===l&&(a.value=a.value.slice(1),a.value.length===0?l.children.shift():l.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,l.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function YT(e,r,l,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(a);u&&f.move(c);let h=C0.listItem(e,r,l,{...a,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),h;function p(b){return b+c}}function XT(){return[NA(),YA(),KA(),BT(),$T()]}function ZT(e){return{extensions:[AA(),XA(e),JA(),PT(e),VT()]}}const QT={tokenize:n6,partial:!0},N0={tokenize:r6,partial:!0},A0={tokenize:l6,partial:!0},T0={tokenize:i6,partial:!0},KT={tokenize:a6,partial:!0},j0={name:"wwwAutolink",tokenize:e6,previous:R0},_0={name:"protocolAutolink",tokenize:t6,previous:L0},Nr={name:"emailAutolink",tokenize:WT,previous:D0},er={};function JT(){return{text:er}}let Tl=48;for(;Tl<123;)er[Tl]=Nr,Tl++,Tl===58?Tl=65:Tl===91&&(Tl=97);er[43]=Nr;er[45]=Nr;er[46]=Nr;er[95]=Nr;er[72]=[Nr,_0];er[104]=[Nr,_0];er[87]=[Nr,j0];er[119]=[Nr,j0];function WT(e,r,l){const a=this;let s,u;return c;function c(g){return!Xd(g)||!D0.call(a,a.previous)||Lh(a.events)?l(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return Xd(g)?(e.consume(g),f):g===64?(e.consume(g),h):l(g)}function h(g){return g===46?e.check(KT,b,p)(g):g===45||g===95||Vt(g)?(u=!0,e.consume(g),h):b(g)}function p(g){return e.consume(g),s=!0,h}function b(g){return u&&s&&Kt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(g)):l(g)}}function e6(e,r,l){const a=this;return s;function s(c){return c!==87&&c!==119||!R0.call(a,a.previous)||Lh(a.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QT,e.attempt(N0,e.attempt(A0,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function t6(e,r,l){const a=this;let s="",u=!1;return c;function c(g){return(g===72||g===104)&&L0.call(a,a.previous)&&!Lh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),f):l(g)}function f(g){if(Kt(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(g),h}return l(g)}function h(g){return g===47?(e.consume(g),u?p:(u=!0,h)):l(g)}function p(g){return g===null||$s(g)||st(g)||Ol(g)||hu(g)?l(g):e.attempt(N0,e.attempt(A0,b),l)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(g)}}function n6(e,r,l){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function r6(e,r,l){let a,s,u;return c;function c(p){return p===46||p===95?e.check(T0,h,f)(p):p===null||st(p)||Ol(p)||p!==45&&hu(p)?h(p):(u=!0,e.consume(p),c)}function f(p){return p===95?a=!0:(s=a,a=void 0),e.consume(p),c}function h(p){return s||a||!u?l(p):r(p)}}function l6(e,r){let l=0,a=0;return s;function s(c){return c===40?(l++,e.consume(c),s):c===41&&a<l?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(T0,r,u)(c):c===null||st(c)||Ol(c)?r(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function i6(e,r,l){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||st(f)||Ol(f)?r(f):l(f)}function s(f){return f===null||f===40||f===91||st(f)||Ol(f)?r(f):a(f)}function u(f){return Kt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),a):Kt(f)?(e.consume(f),c):l(f)}}function a6(e,r,l){return a;function a(u){return e.consume(u),s}function s(u){return Vt(u)?l(u):r(u)}}function R0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||st(e)}function L0(e){return!Kt(e)}function D0(e){return!(e===47||Xd(e))}function Xd(e){return e===43||e===45||e===46||e===95||Vt(e)}function Lh(e){let r=e.length,l=!1;for(;r--;){const a=e[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const o6={tokenize:m6,partial:!0};function s6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:d6,continuation:{tokenize:h6},exit:p6}},text:{91:{name:"gfmFootnoteCall",tokenize:f6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:u6,resolveTo:c6}}}}function u6(e,r,l){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return l(h);const p=Pn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?l(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),r(h))}}function c6(e,r){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[l+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",a,r],e[l+3],e[l+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",a,r]];return e.splice(l,e.length-l+1,...f),e}function f6(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?l(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(u>999||g===93&&!c||g===null||g===91||st(g))return l(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Pn(a.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(g)}return st(g)||(c=!0),u++,e.consume(g),g===92?b:p}function b(g){return g===91||g===92||g===93?(e.consume(g),u++,p):p(g)}}function d6(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):l(w)}function b(w){if(c>999||w===93&&!f||w===null||w===91||st(w))return l(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return u=Pn(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return st(w)||(f=!0),c++,e.consume(w),w===92?g:b}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,b):b(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,x,"gfmFootnoteDefinitionWhitespace")):l(w)}function x(w){return r(w)}}function h6(e,r,l){return e.check(Wa,r,e.attempt(o6,r,l))}function p6(e){e.exit("gfmFootnoteDefinition")}function m6(e,r,l){const a=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(u):l(u)}}function g6(e){let l=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return l==null&&(l=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let p=h;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[h][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",b,f],["enter",c[p][1],f],["exit",c[p][1],f],["enter",g,f]],x=f.parser.constructs.insideSpan.null;x&&kn(v,v.length,0,pu(x,c.slice(p+1,h),f)),kn(v,v.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",b,f]]),kn(c,p-1,h-p+3,v),h=p+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const p=this.previous,b=this.events;let g=0;return v;function v(w){return p===126&&b[b.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const S=Li(p);if(w===126)return g>1?h(w):(c.consume(w),g++,x);if(g<2&&!l)return h(w);const N=c.exit("strikethroughSequenceTemporary"),E=Li(w);return N._open=!E||E===2&&!!S,N._close=!S||S===2&&!!E,f(w)}}}class b6{constructor(){this.map=[]}add(r,l,a){y6(this,r,l,a)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const a=[];for(;l>0;)l-=1,a.push(r.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),r.length=this.map[l][0];a.push(r.slice()),r.length=0;let s=a.pop();for(;s;){for(const u of s)r.push(u);s=a.pop()}this.map.length=0}}function y6(e,r,l,a){let s=0;if(!(l===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===r){e.map[s][1]+=l,e.map[s][2].push(...a);return}s+=1}e.map.push([r,l,a])}}function x6(e,r){let l=!1;const a=[];for(;r<e.length;){const s=e[r];if(l){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(l=!0);r+=1}return a}function v6(){return{flow:{null:{name:"table",tokenize:w6,resolveAll:S6}}}}function w6(e,r,l){const a=this;let s=0,u=0,c;return f;function f(M){let V=a.events.length-1;for(;V>-1;){const U=a.events[V][1].type;if(U==="lineEnding"||U==="linePrefix")V--;else break}const Y=V>-1?a.events[V][1].type:null,J=Y==="tableHead"||Y==="tableRow"?L:h;return J===L&&a.parser.lazy[a.now().line]?l(M):J(M)}function h(M){return e.enter("tableHead"),e.enter("tableRow"),p(M)}function p(M){return M===124||(c=!0,u+=1),b(M)}function b(M){return M===null?l(M):Ae(M)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),x):l(M):Ie(M)?$e(e,b,"whitespace")(M):(u+=1,c&&(c=!1,s+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),g(M)))}function g(M){return M===null||M===124||st(M)?(e.exit("data"),b(M)):(e.consume(M),M===92?v:g)}function v(M){return M===92||M===124?(e.consume(M),g):g(M)}function x(M){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(M):(e.enter("tableDelimiterRow"),c=!1,Ie(M)?$e(e,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):w(M))}function w(M){return M===45||M===58?N(M):M===124?(c=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):q(M)}function S(M){return Ie(M)?$e(e,N,"whitespace")(M):N(M)}function N(M){return M===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),E):M===45?(u+=1,E(M)):M===null||Ae(M)?B(M):q(M)}function E(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):q(M)}function C(M){return M===45?(e.consume(M),C):M===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(M))}function j(M){return Ie(M)?$e(e,B,"whitespace")(M):B(M)}function B(M){return M===124?w(M):M===null||Ae(M)?!c||s!==u?q(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):q(M)}function q(M){return l(M)}function L(M){return e.enter("tableRow"),I(M)}function I(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),I):M===null||Ae(M)?(e.exit("tableRow"),r(M)):Ie(M)?$e(e,I,"whitespace")(M):(e.enter("data"),$(M))}function $(M){return M===null||M===124||st(M)?(e.exit("data"),I(M)):(e.consume(M),M===92?G:$)}function G(M){return M===92||M===124?(e.consume(M),$):$(M)}}function S6(e,r){let l=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,p,b,g;const v=new b6;for(;++l<e.length;){const x=e[l],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(lx(v,r,h,p,b),b=void 0,h=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",p,r]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",b,r]])),s=w.type==="tableDelimiterRow"?2:b?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Ns(v,r,u,s,void 0,g),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],g=Ns(v,r,u,s,void 0,g)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(f=!0,h=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=l,u[1]!==0?(c[0]=c[1],g=Ns(v,r,u,s,l,g)):c[1]!==0&&(g=Ns(v,r,c,s,l,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(h!==0&&lx(v,r,h,p,b),v.consume(r.events),l=-1;++l<r.events.length;){const x=r.events[l];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=x6(r.events,l))}return e}function Ns(e,r,l,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ci(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const h=Ci(r.events,l[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(l[1],0,[["enter",u,r]]),l[2]!==0){const p=Ci(r.events,l[2]),b=Ci(r.events,l[3]),g={type:f,start:Object.assign({},p),end:Object.assign({},b)};if(e.add(l[2],0,[["enter",g,r]]),a!==2){const v=r.events[l[2]],x=r.events[l[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",l[3]>l[2]+1){const w=l[2]+1,S=l[3]-l[2]-1;e.add(w,S,[])}}e.add(l[3]+1,0,[["exit",g,r]])}return s!==void 0&&(u.end=Object.assign({},Ci(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function lx(e,r,l,a,s){const u=[],c=Ci(r.events,l);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),a.end=Object.assign({},c),u.push(["exit",a,r]),e.add(l+1,0,u)}function Ci(e,r){const l=e[r],a=l[0]==="enter"?"start":"end";return l[1][a]}const k6={name:"tasklistCheck",tokenize:C6};function E6(){return{text:{91:k6}}}function C6(e,r,l){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return st(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):l(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(h)}function f(h){return Ae(h)?r(h):Ie(h)?e.check({tokenize:N6},r,l)(h):l(h)}}function N6(e,r,l){return $e(e,a,"whitespace");function a(s){return s===null?l(s):r(s)}}function A6(e){return $1([JT(),s6(),g6(e),v6(),E6()])}const T6={};function Dh(e){const r=this,l=e||T6,a=r.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(A6(l)),u.push(XT()),c.push(ZT(l))}function O0(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(l=O0(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function M0(){for(var e,r,l=0,a="",s=arguments.length;l<s;l++)(e=arguments[l])&&(r=O0(e))&&(a&&(a+=" "),a+=r);return a}var j6=Object.create,yu=Object.defineProperty,_6=Object.defineProperties,R6=Object.getOwnPropertyDescriptor,L6=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertyNames,Xs=Object.getOwnPropertySymbols,D6=Object.getPrototypeOf,Oh=Object.prototype.hasOwnProperty,B0=Object.prototype.propertyIsEnumerable,ix=(e,r,l)=>r in e?yu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,Jn=(e,r)=>{for(var l in r||(r={}))Oh.call(r,l)&&ix(e,l,r[l]);if(Xs)for(var l of Xs(r))B0.call(r,l)&&ix(e,l,r[l]);return e},xu=(e,r)=>_6(e,L6(r)),F0=(e,r)=>{var l={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&Xs)for(var a of Xs(e))r.indexOf(a)<0&&B0.call(e,a)&&(l[a]=e[a]);return l},O6=(e,r)=>function(){return r||(0,e[z0(e)[0]])((r={exports:{}}).exports,r),r.exports},M6=(e,r)=>{for(var l in r)yu(e,l,{get:r[l],enumerable:!0})},z6=(e,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of z0(r))!Oh.call(e,s)&&s!==l&&yu(e,s,{get:()=>r[s],enumerable:!(a=R6(r,s))||a.enumerable});return e},B6=(e,r,l)=>(l=e!=null?j6(D6(e)):{},z6(!e||!e.__esModule?yu(l,"default",{value:e,enumerable:!0}):l,e)),F6=O6({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,r){var l=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,u={},c={util:{encode:function w(S){return S instanceof f?new f(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(S,N){N=N||{};var E,C;switch(c.util.type(S)){case"Object":if(C=c.util.objId(S),N[C])return N[C];E={},N[C]=E;for(var j in S)S.hasOwnProperty(j)&&(E[j]=w(S[j],N));return E;case"Array":return C=c.util.objId(S),N[C]?N[C]:(E=[],N[C]=E,S.forEach(function(B,q){E[q]=w(B,N)}),E);default:return S}},getLanguage:function(w){for(;w;){var S=a.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(a,"gi"),""),w.classList.add("language-"+S)},isActive:function(w,S,N){for(var E="no-"+S;w;){var C=w.classList;if(C.contains(S))return!0;if(C.contains(E))return!1;w=w.parentElement}return!!N}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,S){var N=c.util.clone(c.languages[w]);for(var E in S)N[E]=S[E];return N},insertBefore:function(w,S,N,E){E=E||c.languages;var C=E[w],j={};for(var B in C)if(C.hasOwnProperty(B)){if(B==S)for(var q in N)N.hasOwnProperty(q)&&(j[q]=N[q]);N.hasOwnProperty(B)||(j[B]=C[B])}var L=E[w];return E[w]=j,c.languages.DFS(c.languages,function(I,$){$===L&&I!=w&&(this[I]=j)}),j},DFS:function w(S,N,E,C){C=C||{};var j=c.util.objId;for(var B in S)if(S.hasOwnProperty(B)){N.call(S,B,S[B],E||B);var q=S[B],L=c.util.type(q);L==="Object"&&!C[j(q)]?(C[j(q)]=!0,w(q,N,null,C)):L==="Array"&&!C[j(q)]&&(C[j(q)]=!0,w(q,N,B,C))}}},plugins:{},highlight:function(w,S,N){var E={code:w,grammar:S,language:N};if(c.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=c.tokenize(E.code,E.grammar),c.hooks.run("after-tokenize",E),f.stringify(c.util.encode(E.tokens),E.language)},tokenize:function(w,S){var N=S.rest;if(N){for(var E in N)S[E]=N[E];delete S.rest}var C=new b;return g(C,C.head,w),p(w,C,S,C.head,0),x(C)},hooks:{all:{},add:function(w,S){var N=c.hooks.all;N[w]=N[w]||[],N[w].push(S)},run:function(w,S){var N=c.hooks.all[w];if(!(!N||!N.length))for(var E=0,C;C=N[E++];)C(S)}},Token:f};function f(w,S,N,E){this.type=w,this.content=S,this.alias=N,this.length=(E||"").length|0}f.stringify=function w(S,N){if(typeof S=="string")return S;if(Array.isArray(S)){var E="";return S.forEach(function(L){E+=w(L,N)}),E}var C={type:S.type,content:w(S.content,N),tag:"span",classes:["token",S.type],attributes:{},language:N},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply(C.classes,j):C.classes.push(j)),c.hooks.run("wrap",C);var B="";for(var q in C.attributes)B+=" "+q+'="'+(C.attributes[q]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+B+">"+C.content+"</"+C.tag+">"};function h(w,S,N,E){w.lastIndex=S;var C=w.exec(N);if(C&&E&&C[1]){var j=C[1].length;C.index+=j,C[0]=C[0].slice(j)}return C}function p(w,S,N,E,C,j){for(var B in N)if(!(!N.hasOwnProperty(B)||!N[B])){var q=N[B];q=Array.isArray(q)?q:[q];for(var L=0;L<q.length;++L){if(j&&j.cause==B+","+L)return;var I=q[L],$=I.inside,G=!!I.lookbehind,M=!!I.greedy,V=I.alias;if(M&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var J=I.pattern||I,U=E.next,X=C;U!==S.tail&&!(j&&X>=j.reach);X+=U.value.length,U=U.next){var F=U.value;if(S.length>w.length)return;if(!(F instanceof f)){var O=1,z;if(M){if(z=h(J,X,w,G),!z||z.index>=w.length)break;var H=z.index,Q=z.index+z[0].length,_=X;for(_+=U.value.length;H>=_;)U=U.next,_+=U.value.length;if(_-=U.value.length,X=_,U.value instanceof f)continue;for(var D=U;D!==S.tail&&(_<Q||typeof D.value=="string");D=D.next)O++,_+=D.value.length;O--,F=w.slice(X,_),z.index-=X}else if(z=h(J,0,F,G),!z)continue;var H=z.index,A=z[0],te=F.slice(0,H),ue=F.slice(H+A.length),fe=X+F.length;j&&fe>j.reach&&(j.reach=fe);var pe=U.prev;te&&(pe=g(S,pe,te),X+=te.length),v(S,pe,O);var me=new f(B,$?c.tokenize(A,$):A,V,A);if(U=g(S,pe,me),ue&&g(S,U,ue),O>1){var de={cause:B+","+L,reach:fe};p(w,S,N,U.prev,X,de),j&&de.reach>j.reach&&(j.reach=de.reach)}}}}}}function b(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function g(w,S,N){var E=S.next,C={value:N,prev:S,next:E};return S.next=C,E.prev=C,w.length++,C}function v(w,S,N){for(var E=S.next,C=0;C<N&&E!==w.tail;C++)E=E.next;S.next=E,E.prev=S,w.length-=C}function x(w){for(var S=[],N=w.head.next;N!==w.tail;)S.push(N.value),N=N.next;return S}return c})();r.exports=l,l.default=l}}),se=B6(F6());se.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},se.languages.markup.tag.inside["attr-value"].inside.entity=se.languages.markup.entity,se.languages.markup.doctype.inside["internal-subset"].inside=se.languages.markup,se.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(se.languages.markup.tag,"addInlined",{value:function(e,a){var l={},l=(l["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:se.languages[a]},l.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}}),a=(l["language-"+a]={pattern:/[\s\S]+/,inside:se.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:l},se.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(se.languages.markup.tag,"addAttribute",{value:function(e,r){se.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:se.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),se.languages.html=se.languages.markup,se.languages.mathml=se.languages.markup,se.languages.svg=se.languages.markup,se.languages.xml=se.languages.extend("markup",{}),se.languages.ssml=se.languages.xml,se.languages.atom=se.languages.xml,se.languages.rss=se.languages.xml,(function(e){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+l.source+")",a=RegExp(a+"-"+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:l,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:l}},"special-escape":r,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:l,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":s}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(se),se.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},se.languages.javascript=se.languages.extend("clike",{"class-name":[se.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),se.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,se.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:se.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:se.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:se.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:se.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:se.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),se.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:se.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),se.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),se.languages.markup&&(se.languages.markup.tag.addInlined("script","javascript"),se.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),se.languages.js=se.languages.javascript,se.languages.actionscript=se.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),se.languages.actionscript["class-name"].alias="function",delete se.languages.actionscript.parameter,delete se.languages.actionscript["literal-property"],se.languages.markup&&se.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:se.languages.markup}}),(function(e){var r=/#(?!\{).+/,l={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:l}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:l}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:l}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(se),(function(e){var r=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(r,"addSupport",{value:function(l,a){(l=typeof l=="string"?[l]:l).forEach(function(s){var u=function(g){g.inside||(g.inside={}),g.inside.rest=a},c="doc-comment";if(f=e.languages[s]){var f,h=f[c];if((h=h||(f=e.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[c])instanceof RegExp&&(h=f[c]={pattern:h}),Array.isArray(h))for(var p=0,b=h.length;p<b;p++)h[p]instanceof RegExp&&(h[p]={pattern:h[p]}),u(h[p]);else u(h)}})}}),r.addSupport(["java","javascript","php"],r)})(se),(function(e){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(se),(function(e){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=r,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:l})})(se),(function(e){var r=/[*&][^\s[\]{},]+/,l=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+l.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+l.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(f,h){h=(h||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return f});return RegExp(p,h)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(u),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(se),(function(e){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function l(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,c=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:l(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:l(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:l(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:l(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(b){p!==b&&(e.languages.markdown[p].inside.content.inside[b]=e.languages.markdown[b])})}),e.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function b(g){if(g&&typeof g!="string")for(var v=0,x=g.length;v<x;v++){var w,S=g[v];S.type!=="code"?b(S.content):(w=S.content[1],S=S.content[3],w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,w]:S.alias.push(w):S.alias=[w]))}})(p.tokens)}),e.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var b="",g=0,v=p.classes.length;g<v;g++){var x=p.classes[g],x=/language-(.+)/.exec(x);if(x){b=x[1];break}}var w,S=e.languages[b];S?p.content=e.highlight((function(N){return N=N.replace(c,""),N=N.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,C){var j;return(C=C.toLowerCase())[0]==="#"?(j=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),h(j)):f[C]||E})})(p.content),S,b):b&&b!=="none"&&e.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,e.plugins.autoloader.loadLanguages(b,function(){var N=document.getElementById(w);N&&(N.innerHTML=e.highlight(N.textContent,e.languages[b],b))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),f={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(se),se.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:se.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},se.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var r=e.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),l=0;l<r.length;){var a=r[l++];if(a.type==="keyword"&&a.content==="mutation"){var s=[];if(g(["definition-mutation","punctuation"])&&b(1).content==="("){l+=2;var u=v(/^\($/,/^\)$/);if(u===-1)continue;for(;l<u;l++){var c=b(0);c.type==="variable"&&(x(c,"variable-input"),s.push(c.content))}l=u+1}if(g(["punctuation","property-query"])&&b(0).content==="{"&&(l++,x(b(0),"property-mutation"),0<s.length)){var f=v(/^\{$/,/^\}$/);if(f!==-1)for(var h=l;h<f;h++){var p=r[h];p.type==="variable"&&0<=s.indexOf(p.content)&&x(p,"variable-input")}}}}function b(w){return r[l+w]}function g(w,S){S=S||0;for(var N=0;N<w.length;N++){var E=b(N+S);if(!E||E.type!==w[N])return}return 1}function v(w,S){for(var N=1,E=l;E<r.length;E++){var C=r[E],j=C.content;if(C.type==="punctuation"&&typeof j=="string"){if(w.test(j))N++;else if(S.test(j)&&--N===0)return E}}return-1}function x(w,S){var N=w.alias;N?Array.isArray(N)||(w.alias=N=[N]):w.alias=N=[],N.push(S)}}),se.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var r=e.languages.javascript["template-string"],l=r.pattern.source,a=r.inside.interpolation,s=a.inside["interpolation-punctuation"],u=a.pattern.source;function c(g,v){if(e.languages[g])return{pattern:RegExp("((?:"+v+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function f(g,v,x){return g={code:g,grammar:v,language:x},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function h(g,v,x){var N=e.tokenize(g,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,S={},N=f(N.map(function(C){if(typeof C=="string")return C;for(var j,B,C=C.content;g.indexOf((B=w++,j="___"+x.toUpperCase()+"_"+B+"___"))!==-1;);return S[j]=C,j}).join(""),v,x),E=Object.keys(S);return w=0,(function C(j){for(var B=0;B<j.length;B++){if(w>=E.length)return;var q,L,I,$,G,M,V,Y=j[B];typeof Y=="string"||typeof Y.content=="string"?(q=E[w],(V=(M=typeof Y=="string"?Y:Y.content).indexOf(q))!==-1&&(++w,L=M.substring(0,V),G=S[q],I=void 0,($={})["interpolation-punctuation"]=s,($=e.tokenize(G,$)).length===3&&((I=[1,1]).push.apply(I,f($[1],e.languages.javascript,"javascript")),$.splice.apply($,I)),I=new e.Token("interpolation",$,a.alias,G),$=M.substring(V+q.length),G=[],L&&G.push(L),G.push(I),$&&(C(M=[$]),G.push.apply(G,M)),typeof Y=="string"?(j.splice.apply(j,[B,1].concat(G)),B+=G.length-1):Y.content=G)):(V=Y.content,Array.isArray(V)?C(V):C([V]))}})(N),new e.Token(x,N,"language-"+x,g)}e.languages.javascript["template-string"]=[c("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),c("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),c("svg",/\bsvg/.source),c("markdown",/\b(?:markdown|md)/.source),c("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),c("sql",/\bsql/.source),r].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function b(g){return typeof g=="string"?g:Array.isArray(g)?g.map(b).join(""):b(g.content)}e.hooks.add("after-tokenize",function(g){g.language in p&&(function v(x){for(var w=0,S=x.length;w<S;w++){var N,E,C,j=x[w];typeof j!="string"&&(N=j.content,Array.isArray(N)?j.type==="template-string"?(j=N[1],N.length===3&&typeof j!="string"&&j.type==="embedded-code"&&(E=b(j),j=j.alias,j=Array.isArray(j)?j[0]:j,C=e.languages[j])&&(N[1]=h(E,C,j))):v(N):typeof N!="string"&&v([N]))}})(g.tokens)})})(se),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var r=e.languages.extend("typescript",{});delete r["class-name"],e.languages.typescript["class-name"].inside=r,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),e.languages.ts=e.languages.typescript})(se),(function(e){var r=e.languages.javascript,l=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+l+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return l})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+l),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(se),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(se),se.languages.n4js=se.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),se.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),se.languages.n4jsd=se.languages.n4js,(function(e){function r(c,f){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var l=["function","function-variable","method","method-variable","property-access"],a=0;a<l.length;a++){var u=l[a],s=e.languages.javascript[u],u=(s=e.util.type(s)==="RegExp"?e.languages.javascript[u]={pattern:s}:s).inside||{};(s.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(se),(function(e){var r=e.util.clone(e.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,p){return h=h.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(h,p)}s=u(s).source,e.languages.jsx=e.languages.extend("markup",r),e.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=r.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function c(h){for(var p=[],b=0;b<h.length;b++){var g=h[b],v=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===f(g.content[0].content[1])&&p.pop():g.content[g.content.length-1].content!=="/>"&&p.push({tagName:f(g.content[0].content[1]),openedBraces:0}):0<p.length&&g.type==="punctuation"&&g.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?p[p.length-1].openedBraces--:v=!0),(v||typeof g=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(v=f(g),b<h.length-1&&(typeof h[b+1]=="string"||h[b+1].type==="plain-text")&&(v+=f(h[b+1]),h.splice(b+1,1)),0<b&&(typeof h[b-1]=="string"||h[b-1].type==="plain-text")&&(v=f(h[b-1])+v,h.splice(b-1,1),b--),h[b]=new e.Token("plain-text",v,null,v)),g.content&&typeof g.content!="string"&&c(g.content)}}var f=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(f).join(""):""};e.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||c(h.tokens)})})(se),(function(e){var r=e.util.clone(e.languages.typescript),r=(e.languages.tsx=e.languages.extend("jsx",r),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(se),se.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},se.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=se.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(se),se.languages.c=se.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),se.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),se.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},se.languages.c.string],char:se.languages.c.char,comment:se.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:se.languages.c}}}}),se.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete se.languages.c.boolean,se.languages.objectivec=se.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete se.languages.objectivec["class-name"],se.languages.objc=se.languages.objectivec,se.languages.reason=se.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),se.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete se.languages.reason.function,(function(e){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(se),se.languages.go=se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),se.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete se.languages.go["class-name"],(function(e){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,l=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return l})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(se),se.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},se.languages.python["string-interpolation"].inside.interpolation.inside.rest=se.languages.python,se.languages.py=se.languages.python,se.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},se.languages.webmanifest=se.languages.json;var wn={};M6(wn,{dracula:()=>U6,duotoneDark:()=>q6,duotoneLight:()=>$6,github:()=>G6,gruvboxMaterialDark:()=>w5,gruvboxMaterialLight:()=>k5,jettwaveDark:()=>h5,jettwaveLight:()=>m5,nightOwl:()=>X6,nightOwlLight:()=>Q6,oceanicNext:()=>J6,okaidia:()=>e5,oneDark:()=>b5,oneLight:()=>x5,palenight:()=>n5,shadesOfPurple:()=>l5,synthwave84:()=>a5,ultramin:()=>s5,vsDark:()=>I0,vsLight:()=>f5});var I6={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},U6=I6,H6={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},q6=H6,P6={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},$6=P6,V6={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},G6=V6,Y6={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},X6=Y6,Z6={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Q6=Z6,xn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},K6={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:xn.keyword}},{types:["attr-value"],style:{color:xn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:xn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:xn.primitive}},{types:["boolean"],style:{color:xn.boolean}},{types:["tag"],style:{color:xn.tag}},{types:["string"],style:{color:xn.string}},{types:["punctuation"],style:{color:xn.string}},{types:["selector","char","builtin","inserted"],style:{color:xn.char}},{types:["function"],style:{color:xn.function}},{types:["operator","entity","url","variable"],style:{color:xn.variable}},{types:["keyword"],style:{color:xn.keyword}},{types:["atrule","class-name"],style:{color:xn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},J6=K6,W6={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},e5=W6,t5={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},n5=t5,r5={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},l5=r5,i5={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},a5=i5,o5={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},s5=o5,u5={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},I0=u5,c5={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},f5=c5,d5={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},h5=d5,p5={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},m5=p5,g5={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},b5=g5,y5={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},x5=y5,v5={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},w5=v5,S5={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},k5=S5,E5=e=>T.useCallback(r=>{var l=r,{className:a,style:s,line:u}=l,c=F0(l,["className","style","line"]);const f=xu(Jn({},c),{className:M0("token-line",a)});return typeof e=="object"&&"plain"in e&&(f.style=e.plain),typeof s=="object"&&(f.style=Jn(Jn({},f.style||{}),s)),f},[e]),C5=e=>{const r=T.useCallback(({types:l,empty:a})=>{if(e!=null){{if(l.length===1&&l[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(l.length===1&&a!=null)return e[l[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...l.map(s=>e[s]))}},[e]);return T.useCallback(l=>{var a=l,{token:s,className:u,style:c}=a,f=F0(a,["token","className","style"]);const h=xu(Jn({},f),{className:M0("token",...s.types,u),children:s.content,style:r(s)});return c!=null&&(h.style=Jn(Jn({},h.style||{}),c)),h},[r])},N5=/\r\n|\r|\n/,ax=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
44
|
-
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
45
|
-
`,e[0].empty=!0)},ox=(e,r)=>{const l=e.length;return l>0&&e[l-1]===r?e:e.concat(r)},A5=e=>{const r=[[]],l=[e],a=[0],s=[e.length];let u=0,c=0,f=[];const h=[f];for(;c>-1;){for(;(u=a[c]++)<s[c];){let p,b=r[c];const v=l[c][u];if(typeof v=="string"?(b=c>0?b:["plain"],p=v):(b=ox(b,v.type),v.alias&&(b=ox(b,v.alias)),p=v.content),typeof p!="string"){c++,r.push(b),l.push(p),a.push(0),s.push(p.length);continue}const x=p.split(N5),w=x.length;f.push({types:b,content:x[0]});for(let S=1;S<w;S++)ax(f),h.push(f=[]),f.push({types:b,content:x[S]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return ax(f),h},sx=A5,T5=({prism:e,code:r,grammar:l,language:a})=>T.useMemo(()=>{if(l==null)return sx([r]);const s={code:r,grammar:l,language:a,tokens:[]};return e.hooks.run("before-tokenize",s),s.tokens=e.tokenize(r,l),e.hooks.run("after-tokenize",s),sx(s.tokens)},[r,l,a,e]),j5=(e,r)=>{const{plain:l}=e,a=e.styles.reduce((s,u)=>{const{languages:c,style:f}=u;return c&&!c.includes(r)||u.types.forEach(h=>{const p=Jn(Jn({},s[h]),f);s[h]=p}),s},{});return a.root=l,a.plain=xu(Jn({},l),{backgroundColor:void 0}),a},_5=j5,R5=({children:e,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=_5(a,u),f=E5(c),h=C5(c),p=s.languages[u],b=T5({prism:s,language:u,code:l,grammar:p});return e({tokens:b,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:f,getTokenProps:h})},L5=e=>T.createElement(R5,xu(Jn({},e),{prism:e.prism||se,theme:e.theme||I0,code:e.code,language:e.language}));const D5="modulepreload",O5=function(e){return"/"+e},ux={},qt=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=h(l.map(p=>{if(p=O5(p),p in ux)return;ux[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":D5,b||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((x,w)=>{v.addEventListener("load",x),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})},As={};function U0(e){if(!As[e]){const l={bash:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await qt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),qt(()=>import("./prism-php-BzFHnoKk.js").then(a=>a.p),[])),sql:()=>qt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>qt(()=>import("./prism-ruby-_Fv626ts.js").then(a=>a.p),[]),java:()=>qt(()=>import("./prism-java-DKu7Mdwl.js").then(a=>a.p),[]),scala:async()=>(await U0("java"),qt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>qt(()=>import("./prism-solidity-DNmqWy7k.js").then(a=>a.p),[]),vim:()=>qt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>qt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>qt(()=>import("./prism-csharp-CpJpO3Rp.js").then(a=>a.p),[]),protobuf:()=>qt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>qt(()=>import("./prism-hcl-D3OomFiZ.js").then(a=>a.p),[]),perl:()=>qt(()=>import("./prism-perl-BcSVuy7b.js").then(a=>a.p),[])}[e];if(!l)return console.warn(`No loader available for language: ${e}`),Promise.reject(new Error(`Unsupported language: ${e}`));As[e]=l().then(()=>{}).catch(a=>{throw delete As[e],console.warn(`Failed to load language: ${e}`,a),a})}return As[e]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const cx=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function M5(e,r){const[l,a]=T.useState(()=>cx.includes(r)||!!se.languages[r]);return T.useEffect(()=>{if(!l){if(cx.includes(r)){a(!0);return}U0(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const z5={js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"},B5={ts:"typescript",tsx:"tsx",mts:"typescript",cts:"typescript",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"},F5={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};function H0(e,r){if(e)return r[e.toLowerCase()]}function I5(e){return H0(Ka(e),z5)}function U5(e){const r=WE(e).toLowerCase(),l=F5[r];return l||H0(Ka(e),B5)||"text"}const fx=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],dx=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function H5(e){return{...e,styles:e.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function q5(e){let r;switch(e){case"github":r=wn.github;break;case"vsLight":r=wn.vsLight;break;case"oneLight":r=wn.oneLight;break;case"gruvboxMaterialLight":r=wn.gruvboxMaterialLight;break;case"nightOwlLight":r=wn.nightOwlLight;break;case"vsDark":r=wn.vsDark;break;case"oneDark":r=wn.oneDark;break;case"gruvboxMaterialDark":r=wn.gruvboxMaterialDark;break;case"nightOwl":r=wn.nightOwl;break;case"dracula":r=wn.dracula;break;case"okaidia":r=wn.okaidia;break;default:r=wn.vsDark}return H5(r)}const Mh=Jt.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:f,onMouseOut:h}){const p=l||(u?U5(u):"text"),{actualLang:b}=M5(r,p),g=q5(s),v=T.useCallback(({style:x,tokens:w,getLineProps:S,getTokenProps:N})=>y.jsx("span",{className:a,style:{...x,background:"transparent",backgroundColor:"transparent"},onMouseOver:f,onMouseOut:h,children:w.map((E,C)=>y.jsx("span",{...S({line:E}),children:E.map((j,B)=>c?c(j,B,N):y.jsx("span",{...N({token:j})},B))},C))}),[a,f,h,c]);return y.jsx(L5,{code:r,language:b,theme:g,prism:se,children:v})});class q0{diff(r,l,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const u=this.castInput(r,a),c=this.castInput(l,a),f=this.removeEmpty(this.tokenize(u,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,h,a,s)}diffWithOptionsObj(r,l,a,s){var u;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},f=l.length,h=r.length;let p=1,b=f+h;a.maxEditLength!=null&&(b=Math.min(b,a.maxEditLength));const g=(u=a.timeout)!==null&&u!==void 0?u:1/0,v=Date.now()+g,x=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(x[0],l,r,0,a);if(x[0].oldPos+1>=h&&w+1>=f)return c(this.buildValues(x[0].lastComponent,l,r));let S=-1/0,N=1/0;const E=()=>{for(let C=Math.max(S,-p);C<=Math.min(N,p);C+=2){let j;const B=x[C-1],q=x[C+1];B&&(x[C-1]=void 0);let L=!1;if(q){const $=q.oldPos-C;L=q&&0<=$&&$<f}const I=B&&B.oldPos+1<h;if(!L&&!I){x[C]=void 0;continue}if(!I||L&&B.oldPos<q.oldPos?j=this.addToPath(q,!0,!1,0,a):j=this.addToPath(B,!1,!0,1,a),w=this.extractCommon(j,l,r,C,a),j.oldPos+1>=h&&w+1>=f)return c(this.buildValues(j.lastComponent,l,r))||!0;x[C]=j,j.oldPos+1>=h&&(N=Math.min(N,C-1)),w+1>=f&&(S=Math.max(S,C+1))}p++};if(s)(function C(){setTimeout(function(){if(p>b||Date.now()>v)return s(void 0);E()||C()},0)})();else for(;p<=b&&Date.now()<=v;){const C=E();if(C)return C}}addToPath(r,l,a,s,u){const c=r.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===a?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:l,removed:a,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:l,removed:a,previousComponent:c}}}extractCommon(r,l,a,s,u){const c=l.length,f=a.length;let h=r.oldPos,p=h-s,b=0;for(;p+1<c&&h+1<f&&this.equals(a[h+1],l[p+1],u);)p++,h++,b++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(r.lastComponent={count:b,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=h,p}equals(r,l,a){return a.comparator?a.comparator(r,l):r===l||!!a.ignoreCase&&r.toLowerCase()===l.toLowerCase()}removeEmpty(r){const l=[];for(let a=0;a<r.length;a++)r[a]&&l.push(r[a]);return l}castInput(r,l){return r}tokenize(r,l){return Array.from(r)}join(r){return r.join("")}postProcess(r,l){return r}get useLongestToken(){return!1}buildValues(r,l,a){const s=[];let u;for(;r;)s.push(r),u=r.previousComponent,delete r.previousComponent,r=u;s.reverse();const c=s.length;let f=0,h=0,p=0;for(;f<c;f++){const b=s[f];if(b.removed)b.value=this.join(a.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let g=l.slice(h,h+b.count);g=g.map(function(v,x){const w=a[p+x];return w.length>v.length?w:v}),b.value=this.join(g)}else b.value=this.join(l.slice(h,h+b.count));h+=b.count,b.added||(p+=b.count)}}return s}}function hx(e,r){let l;for(l=0;l<e.length&&l<r.length;l++)if(e[l]!=r[l])return e.slice(0,l);return e.slice(0,l)}function px(e,r){let l;if(!e||!r||e[e.length-1]!=r[r.length-1])return"";for(l=0;l<e.length&&l<r.length;l++)if(e[e.length-(l+1)]!=r[r.length-(l+1)])return e.slice(-l);return e.slice(-l)}function Zd(e,r,l){if(e.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+e.slice(r.length)}function Qd(e,r,l){if(!r)return e+l;if(e.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return e.slice(0,-r.length)+l}function Da(e,r){return Zd(e,r,"")}function Ts(e,r){return Qd(e,r,"")}function mx(e,r){return r.slice(0,P5(e,r))}function P5(e,r){let l=0;e.length>r.length&&(l=e.length-r.length);let a=r.length;e.length<r.length&&(a=e.length);const s=Array(a);let u=0;s[0]=0;for(let c=1;c<a;c++){for(r[c]==r[u]?s[c]=s[u]:s[c]=u;u>0&&r[c]!=r[u];)u=s[u];r[c]==r[u]&&u++}u=0;for(let c=l;c<e.length;c++){for(;u>0&&e[c]!=r[u];)u=s[u];e[c]==r[u]&&u++}return u}function Oa(e){let r;for(r=e.length-1;r>=0&&e[r].match(/\s/);r--);return e.substring(r+1)}function el(e){const r=e.match(/^\s*/);return r?r[0]:""}const gx="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",$5=new RegExp(`[${gx}]+|\\s+|[^${gx}]`,"ug");class V5 extends q0{equals(r,l,a){return a.ignoreCase&&(r=r.toLowerCase(),l=l.toLowerCase()),r.trim()===l.trim()}tokenize(r,l={}){let a;if(l.intlSegmenter){const c=l.intlSegmenter;if(c.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');a=[];for(const f of Array.from(c.segment(r))){const h=f.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(h)?a[a.length-1]+=h:a.push(h)}}else a=r.match($5)||[];const s=[];let u=null;return a.forEach(c=>{/\s/.test(c)?u==null?s.push(c):s.push(s.pop()+c):u!=null&&/\s/.test(u)?s[s.length-1]==u?s.push(s.pop()+c):s.push(u+c):s.push(c),u=c}),s}join(r){return r.map((l,a)=>a==0?l:l.replace(/^\s+/,"")).join("")}postProcess(r,l){if(!r||l.oneChangePerToken)return r;let a=null,s=null,u=null;return r.forEach(c=>{c.added?s=c:c.removed?u=c:((s||u)&&bx(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&bx(a,u,s,null),r}}const G5=new V5;function P0(e,r,l){return G5.diff(e,r,l)}function bx(e,r,l,a){if(r&&l){const s=el(r.value),u=Oa(r.value),c=el(l.value),f=Oa(l.value);if(e){const h=hx(s,c);e.value=Qd(e.value,c,h),r.value=Da(r.value,h),l.value=Da(l.value,h)}if(a){const h=px(u,f);a.value=Zd(a.value,f,h),r.value=Ts(r.value,h),l.value=Ts(l.value,h)}}else if(l){if(e){const s=el(l.value);l.value=l.value.substring(s.length)}if(a){const s=el(a.value);a.value=a.value.substring(s.length)}}else if(e&&a){const s=el(a.value),u=el(r.value),c=Oa(r.value),f=hx(s,u);r.value=Da(r.value,f);const h=px(Da(s,f),c);r.value=Ts(r.value,h),a.value=Zd(a.value,s,h),e.value=Qd(e.value,s,s.slice(0,s.length-h.length))}else if(a){const s=el(a.value),u=Oa(r.value),c=mx(u,s);r.value=Ts(r.value,c)}else if(e){const s=Oa(e.value),u=el(r.value),c=mx(s,u);r.value=Da(r.value,c)}}class Y5 extends q0{constructor(){super(...arguments),this.tokenize=Q5}equals(r,l,a){return a.ignoreWhitespace?((!a.newlineIsToken||!r.includes(`
|
|
46
|
-
`))&&(r=r.trim()),(!a.newlineIsToken||!l.includes(`
|
|
47
|
-
`))&&(l=l.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(r.endsWith(`
|
|
48
|
-
`)&&(r=r.slice(0,-1)),l.endsWith(`
|
|
49
|
-
`)&&(l=l.slice(0,-1))),super.equals(r,l,a)}}const X5=new Y5;function Z5(e,r,l){return X5.diff(e,r,l)}function Q5(e,r){r.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
50
|
-
`));const l=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const u=a[s];s%2&&!r.newlineIsToken?l[l.length-1]+=u:l.push(u)}return l}function $0(e,r){const l=P0(e,r),a=[],s=[];for(const u of l)u.added?s.push({value:u.value,type:"added"}):u.removed?a.push({value:u.value,type:"removed"}):(a.push({value:u.value,type:"unchanged"}),s.push({value:u.value,type:"unchanged"}));return{oldSegments:a,newSegments:s}}function V0(e,r){if(!e.trim()||!r.trim()||e===r)return!1;const l=P0(e,r);let a=0,s=0;for(const c of l)s+=c.value.length,!c.added&&!c.removed&&(a+=c.value.length);return a/s>=.2}function G0({onSubmit:e,onCancel:r}){const[l,a]=T.useState(""),[s,u]=T.useState(!1),c=async p=>{if(p.preventDefault(),!!l.trim()){u(!0);try{await e(l.trim()),a("")}catch(b){console.error("Failed to submit comment:",b)}finally{u(!1)}}},f=p=>{p.key==="Enter"&&(p.metaKey||p.ctrlKey)?c(p):p.key==="Escape"&&r()},h=/Macintosh|Mac OS X/.test(navigator.userAgent)?"Cmd":"Ctrl";return y.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:c,"data-empty":!l.trim(),children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),y.jsxs("span",{className:"text-xs text-github-text-muted",children:[h,"+Enter to submit • Escape to cancel"]})]}),y.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:l,onChange:p=>a(p.target.value),onKeyDown:f,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:s}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsx("button",{type:"button",onClick:r,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:s,children:"Cancel"}),y.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!l.trim()||s,children:s?"Submitting...":"Submit"})]})]})}const Zs=Jt.memo(({onMouseDown:e,onMouseUp:r,title:l="Add a comment"})=>y.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:e,onMouseUp:r,title:l,children:y.jsx(Qx,{className:"w-4 h-4"})}));Zs.displayName="CommentButton";const K5=2,J5=100;function W5(e){return!(e.length<K5||e.length>J5)}function yx(e){return e.toLowerCase()}function xx(e){const r=e.trim();return r?r.match(/^\w+$/)!==null&&W5(r):!1}const e8=200,Y0=T.createContext(void 0);function t8({children:e}){const[r,l]=T.useState(null),a=T.useRef(null),s=T.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),u=T.useCallback(p=>{const b=p.target;if(!b.classList.contains("word-token"))return;s();const g=b.getAttribute("data-word");g&&(a.current=setTimeout(()=>{l(g)},e8))},[s]),c=T.useCallback(()=>{s(),l(null)},[s]),f=T.useCallback(p=>r?yx(p)===yx(r):!1,[r]);T.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const h={highlightedWord:r,handleMouseOver:u,handleMouseOut:c,isWordHighlighted:f};return y.jsx(Y0.Provider,{value:h,children:e})}function n8(){const e=T.useContext(Y0);if(!e)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return e}const Ga=Jt.memo(function(r){const{handleMouseOver:l,handleMouseOut:a,isWordHighlighted:s}=n8(),u=T.useCallback((c,f,h)=>{const p=h({token:c}),b=c.content.split(/( +)/);if(b.length===1&&b[0]&&!xx(b[0]))return y.jsx("span",{...p},f);const g=b.map((v,x)=>{if(!v)return null;if(xx(v)){const w=v.trim(),S=s(w);return y.jsx("span",{className:`word-token ${S?"word-highlight":""}`,"data-word":w,children:v},`${f}-${x}`)}return y.jsx("span",{children:v},`${f}-${x}`)});return y.jsx("span",{...p,children:g},f)},[s]);return y.jsx(Mh,{...r,renderToken:u,onMouseOver:l,onMouseOut:a})}),Qs=Jt.memo(({onClick:e,title:r="Open in editor",className:l})=>y.jsx("button",{className:`absolute -right-10 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10 ${l||""}`,"data-open-in-editor-button":"true",style:{backgroundColor:"var(--color-editor-btn-bg)",color:"var(--color-editor-btn-text)",border:"1px solid var(--color-editor-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-border)"},onMouseDown:a=>{a.stopPropagation()},onClick:a=>{a.stopPropagation(),e(a)},title:r,children:y.jsx(mS,{className:"w-4 h-4 opacity-80"})}));Qs.displayName="OpenInEditorButton";const Kd=Jt.memo(function({segments:r,className:l=""}){const a=T.useMemo(()=>r.map((s,u)=>{const c=s.type==="added"?"word-diff-added":s.type==="removed"?"word-diff-removed":"";return y.jsx("span",{className:c,children:s.value},u)}),[r]);return y.jsx("span",{className:l,children:a})}),r8=e=>{if("isExpanded"in e&&e.isExpanded)return"bg-github-bg-tertiary/80";switch(e.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},l8=e=>{switch(e.type){case"add":return"+";case"delete":return"-";default:return" "}},X0=Jt.memo(({line:e,index:r,lineId:l,isCurrentLine:a=!1,hoveredLineIndex:s,selectedLineStyle:u,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onCommentButtonMouseDown:p,onCommentButtonMouseUp:b,onOpenInEditor:g,syntaxTheme:v,onClick:x,filename:w,diffSegments:S})=>{const N=e.newLineNumber||e.oldLineNumber,E=s===r&&N,C=a?"keyboard-cursor":"";return y.jsxs("tr",{id:l,className:`group ${r8(e)} relative ${u} ${C} cursor-pointer`,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onClick:x,children:[y.jsx("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:e.oldLineNumber||""}),y.jsxs("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[y.jsx("span",{children:e.newLineNumber||""}),E&&y.jsxs(y.Fragment,{children:[g&&y.jsx(Qs,{onClick:g}),y.jsx(Zs,{onMouseDown:p,onMouseUp:b})]})]}),y.jsx("td",{className:"p-0 w-full relative align-top",children:y.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[y.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${e.type==="add"?"text-github-accent bg-diff-addition-bg":e.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:l8(e)}),S?y.jsx(Kd,{segments:S,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:e.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:v,filename:w})]})})]})});X0.displayName="DiffLineRow";const vx=e=>e!==void 0&&"isExpanded"in e&&e.isExpanded===!0,wx=(e,r)=>r?"bg-github-bg-tertiary/80":e?.type==="delete"?"bg-diff-deletion-bg":e?.type==="add"?"bg-diff-addition-bg":e?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function i8({chunk:e,chunkIndex:r,comments:l,onAddComment:a,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c,syntaxTheme:f,cursor:h=null,fileIndex:p=0,onLineClick:b,commentTrigger:g,onCommentTriggerHandled:v,filename:x,onOpenInEditor:w}){const[S,N]=T.useState(null),[E,C]=T.useState(null),[j,B]=T.useState(!1),[q,L]=T.useState(null),[I,$]=T.useState(null);T.useEffect(()=>{if(g?.lineIndex!==void 0){const O=e.lines[g.lineIndex];if(O&&O.type!=="delete"){const z=O.newLineNumber;z&&(L({side:"new",lineNumber:z}),v?.())}}},[g,e.lines,v]),T.useEffect(()=>{if(j){const O=()=>{B(!1),N(null),C(null)};return document.addEventListener("mouseup",O),()=>{document.removeEventListener("mouseup",O)}}},[j]);const G=T.useCallback((O,z)=>{q?.side===O&&q?.lineNumber===z?L(null):L({side:O,lineNumber:z})},[q]),M=T.useCallback(()=>{L(null)},[]),V=T.useCallback(async O=>{q!==null&&(await a(q.lineNumber,O,void 0,q.side),L(null))},[q,a]),Y=(O,z)=>l.filter(Q=>{const _=Array.isArray(Q.line)?Q.line[1]===O:Q.line===O,D=!Q.side||Q.side===z;return _&&D}),J=O=>O.oldLine?.type==="delete"&&O.newLine?.type==="add"?O.newLineNumber?"right":"left":O.oldLine?.type==="delete"?"left":O.newLine?.type==="add"?"right":"full",U=(O,z)=>{const Q=O==="old"?z.oldLineNumber:z.newLineNumber;if(!Q)return"";if(j&&S&&E&&S.side===O&&E.side===O){const _=Math.min(S.lineNumber,E.lineNumber),D=Math.max(S.lineNumber,E.lineNumber);if(Q>=_&&Q<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return Q===_&&(H+=" after:border-t-2"),Q===D&&(H+=" after:border-b-2"),H}}if(q&&q.side===O){const _=Array.isArray(q.lineNumber)?q.lineNumber:[q.lineNumber,q.lineNumber],D=_[0],H=_[1];if(D!==void 0&&H!==void 0&&Q>=D&&Q<=H)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},X=T.useCallback(O=>{const z=[];let Q=e.oldStart,_=e.newStart,D=0;for(;D<O.length;){const H=O[D];if(!H){D++;continue}if(H.type==="normal")z.push({oldLine:H,newLine:{...H},oldLineNumber:H.oldLineNumber??Q,newLineNumber:H.newLineNumber??_,oldLineOriginalIndex:D,newLineOriginalIndex:D}),Q++,_++,D++;else if(H.type==="delete"){let A=D+1;for(;A<O.length&&O[A]?.type==="delete";)A++;const te=O.slice(D,A),ue=D,fe=[],pe=A;for(;A<O.length&&O[A]?.type==="add";){const de=O[A];de&&fe.push(de),A++}const me=Math.max(te.length,fe.length);for(let de=0;de<me;de++){const ge=te[de],xe=fe[de];let be;ge&&xe&&V0(ge.content,xe.content)&&(be=$0(ge.content,xe.content)),z.push({oldLine:ge,newLine:xe,oldLineNumber:ge?ge.oldLineNumber??Q+de:void 0,newLineNumber:xe?xe.newLineNumber??_+de:void 0,oldLineOriginalIndex:ge?ue+de:void 0,newLineOriginalIndex:xe?pe+de:void 0,wordLevelDiff:be})}Q+=te.length,_+=fe.length,D=A}else H.type==="add"&&(z.push({newLine:H,newLineNumber:H.newLineNumber??_,newLineOriginalIndex:D}),_++,D++)}return z},[e.oldStart,e.newStart]),F=T.useMemo(()=>X(e.lines),[e.lines,X]);return y.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:F.map((O,z)=>{const Q=O.oldLineNumber?Y(O.oldLineNumber,"old"):[],_=O.newLineNumber?Y(O.newLineNumber,"new"):[],D=[...Q,..._],H=O.oldLineOriginalIndex??-1,A=O.newLineOriginalIndex??-1,te=h?h.side==="left"&&H>=0?h.chunkIndex===r&&h.lineIndex===H:h.side==="right"&&A>=0?h.chunkIndex===r&&h.lineIndex===A:!1:!1,ue=H>=0?`file-${p}-chunk-${r}-line-${H}-left`:void 0,fe=A>=0?`file-${p}-chunk-${r}-line-${A}-right`:void 0,pe=te&&h?.side==="left",me=te&&h?.side==="right",de="keyboard-cursor";return y.jsxs(Jt.Fragment,{children:[y.jsxs("tr",{className:"group cursor-pointer",onClick:ge=>{if(!j){const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&H>=0?b?.(p,r,H,"left"):ke&&A>=0&&b?.(p,r,A,"right")}},onMouseEnter:ge=>{const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&O.oldLineNumber?$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&$({side:"new",lineNumber:O.newLineNumber})},onMouseMove:ge=>{const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&O.oldLineNumber?(I?.side!=="old"||I?.lineNumber!==O.oldLineNumber)&&$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&(I?.side!=="new"||I?.lineNumber!==O.newLineNumber)&&$({side:"new",lineNumber:O.newLineNumber}),j&&S&&(S.side==="old"&&O.oldLineNumber?C({side:"old",lineNumber:O.oldLineNumber}):S.side==="new"&&O.newLineNumber&&C({side:"new",lineNumber:O.newLineNumber}))},onMouseLeave:()=>$(null),children:[y.jsxs("td",{id:ue,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${pe?de:""}`,children:[y.jsx("span",{children:O.oldLineNumber||""}),I?.side==="old"&&I?.lineNumber===O.oldLineNumber&&y.jsxs(y.Fragment,{children:[w&&O.oldLine?.type!=="delete"&&O.newLineNumber!==void 0&&y.jsx(Qs,{onClick:()=>{const ge=O.newLineNumber;!x||ge===void 0||w(x,ge)}}),y.jsx(Zs,{onMouseDown:ge=>{ge.stopPropagation(),O.oldLineNumber&&(N({side:"old",lineNumber:O.oldLineNumber}),C({side:"old",lineNumber:O.oldLineNumber}),B(!0))},onMouseUp:ge=>{if(ge.stopPropagation(),!O.oldLineNumber||!S){B(!1),N(null),C(null);return}const xe=E&&E.side==="old"?E.lineNumber:O.oldLineNumber;if(S.side!=="old"||S.lineNumber===xe)G("old",O.oldLineNumber);else{const be=Math.min(S.lineNumber,xe),ke=Math.max(S.lineNumber,xe);G("old",[be,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${wx(O.oldLine,vx(O.oldLine))} ${U("old",O)} ${pe?de:""}`,children:O.oldLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:O.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})}),y.jsxs("td",{id:fe,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${me?de:""}`,children:[y.jsx("span",{children:O.newLineNumber||""}),I?.side==="new"&&I?.lineNumber===O.newLineNumber&&y.jsxs(y.Fragment,{children:[w&&y.jsx(Qs,{onClick:()=>{const ge=O.newLineNumber;!x||ge===void 0||w(x,ge)}}),y.jsx(Zs,{onMouseDown:ge=>{ge.stopPropagation(),O.newLineNumber&&(N({side:"new",lineNumber:O.newLineNumber}),C({side:"new",lineNumber:O.newLineNumber}),B(!0))},onMouseUp:ge=>{if(ge.stopPropagation(),!O.newLineNumber||!S){B(!1),N(null),C(null);return}const xe=E&&E.side==="new"?E.lineNumber:O.newLineNumber;if(S.side!=="new"||S.lineNumber===xe)G("new",O.newLineNumber);else{const be=Math.min(S.lineNumber,xe),ke=Math.max(S.lineNumber,xe);G("new",[be,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top relative ${wx(O.newLine,vx(O.newLine))} ${U("new",O)} ${me?de:""}`,children:O.newLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:O.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})})]}),D.length>0&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:D.map(ge=>{const xe=ge.side||"new";let be;return xe==="old"&&O.oldLineNumber?be="left":xe==="new"&&O.newLineNumber?be="right":be=J(O),y.jsx("div",{className:`flex ${be==="left"?"justify-start":be==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${be==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:ge,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c})})},ge.id)})})}),q&&(q.side==="old"&&q.lineNumber===O.oldLineNumber||q.side==="new"&&q.lineNumber===O.newLineNumber||Array.isArray(q.lineNumber)&&(q.side==="new"&&q.lineNumber[1]===O.newLineNumber||q.side==="old"&&q.lineNumber[1]===O.oldLineNumber))&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0",children:y.jsx("div",{className:`flex ${q.side==="old"?"justify-start":q.side==="new"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:"w-1/2",children:y.jsx(G0,{onSubmit:V,onCancel:M})})})})})]},z)})})})})}const a8=T.memo(function({chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,mode:h=Xa,syntaxTheme:p,cursor:b=null,fileIndex:g=0,onLineClick:v,commentTrigger:x,onCommentTriggerHandled:w,filename:S,onOpenInEditor:N}){const[E,C]=T.useState(null),[j,B]=T.useState(null),[q,L]=T.useState(!1),[I,$]=T.useState(null),[G,M]=T.useState(null);T.useEffect(()=>{if(x?.lineIndex!==void 0){const z=r.lines[x.lineIndex];if(z){const Q=z.newLineNumber||z.oldLineNumber,_=z.type==="delete"?"old":"new";Q&&($({side:_,lineNumber:Q}),w?.())}}},[x,r.lines,w]),T.useEffect(()=>{if(q){const z=()=>{L(!1),C(null),B(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[q]);const V=T.useCallback((z,Q)=>{I?.side===z&&I?.lineNumber===Q?$(null):$({side:z,lineNumber:Q})},[I]),Y=T.useCallback(()=>{$(null)},[]),J=T.useCallback(async z=>{I!==null&&(await s(I.lineNumber,z,void 0,I.side),$(null))},[I,s]),U=(z,Q)=>a.filter(_=>{const D=Array.isArray(_.line)?_.line[1]===z:_.line===z,H=!_.side||_.side===Q;return D&&H}),X=z=>{if(h==="unified")return"full";switch(z.type){case"delete":return"left";case"add":return"right";default:return"full"}},F=(z,Q)=>{if(!z)return"";if(q&&E&&j){const _=Math.min(E,j),D=Math.max(E,j);if(z>=_&&z<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return z===_&&(H+=" after:border-t-2"),z===D&&(H+=" after:border-b-2"),H}}if(I&&I.side===Q){const _=Array.isArray(I.lineNumber)?I.lineNumber[0]:I.lineNumber,D=Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber;if(z>=_&&z<=D)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},O=T.useMemo(()=>{const z=new Map,Q=r.lines;let _=0;for(;_<Q.length;){const D=Q[_];if(!D){_++;continue}if(D.type==="delete"){let H=_+1;for(;H<Q.length&&Q[H]?.type==="delete";)H++;const A=Q.slice(_,H),te=_,ue=[];for(;H<Q.length&&Q[H]?.type==="add";){const pe=Q[H];pe&&ue.push({line:pe,index:H}),H++}const fe=Math.max(A.length,ue.length);for(let pe=0;pe<fe;pe++){const me=A[pe],de=ue[pe];if(me&&de&&V0(me.content,de.line.content)){const ge=$0(me.content,de.line.content);z.set(te+pe,ge.oldSegments),z.set(de.index,ge.newSegments)}}_=H}else _++}return z},[r.lines]);return h==="split"?y.jsx(i8,{chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,onOpenInEditor:N,syntaxTheme:p,cursor:b,fileIndex:g,onLineClick:v,filename:S,commentTrigger:x,onCommentTriggerHandled:w}):y.jsx("div",{className:"bg-github-bg-primary",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:r.lines.map((z,Q)=>{const _=z.newLineNumber||z.oldLineNumber||0,D=z.type==="delete"?"old":"new",H=I?Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber:null,A=z.type==="delete"?z.oldLineNumber:z.newLineNumber,te=z.type==="delete"?"old":"new",ue=A?U(A,te):[],fe=`file-${g}-chunk-${l}-line-${Q}`,pe=b&&b.chunkIndex===l&&b.lineIndex===Q;return y.jsxs(Jt.Fragment,{children:[y.jsx(X0,{line:z,index:Q,lineId:fe,isCurrentLine:pe||!1,hoveredLineIndex:G,selectedLineStyle:F(z.newLineNumber||z.oldLineNumber,z.type==="delete"?"old":"new"),onMouseEnter:()=>{M(Q)},onMouseLeave:()=>M(null),onMouseMove:()=>{if(q&&E){const me=z.newLineNumber||z.oldLineNumber;me&&B(me)}},onCommentButtonMouseDown:me=>{me.stopPropagation();const de=z.newLineNumber||z.oldLineNumber;de&&(C(de),B(de),L(!0))},onCommentButtonMouseUp:me=>{me.stopPropagation();const de=z.newLineNumber||z.oldLineNumber,ge=z.type==="delete"?"old":"new";if(!de||!E){L(!1),C(null),B(null);return}const xe=j||de;if(E===xe)V(ge,de);else{const be=Math.min(E,xe),ke=Math.max(E,xe);V(ge,[be,ke])}L(!1),C(null),B(null)},onOpenInEditor:N&&z.type!=="delete"&&(z.newLineNumber||z.oldLineNumber)?()=>{const me=z.newLineNumber||z.oldLineNumber;me&&S&&N(S,me)}:void 0,syntaxTheme:p,filename:S,diffSegments:O.get(Q),onClick:()=>{const me=z.type==="delete"?"left":"right";v?.(g,l,Q,me)}}),ue.map(me=>{const de=X(z);return y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:y.jsx("div",{className:`flex ${de==="left"?"justify-start":de==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${de==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:me,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f})})})})},me.id)}),I&&I.side===D&&H===_&&y.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:y.jsx("td",{colSpan:3,className:"p-0",children:y.jsx("div",{className:`flex ${X(z)==="left"?"justify-start":X(z)==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${X(z)==="full"?"w-full":"w-1/2"}`,children:y.jsx(G0,{onSubmit:J,onCancel:Y})})})})})]},Q)})})})})}),cd=20,fd=T.memo(function({direction:r,hiddenLines:l,onExpandUp:a,onExpandDown:s,onExpandAll:u,isLoading:c=!1}){if(l<=0)return null;const f=`${l} ${l===1?"line":"lines"}`,h=l<=cd,p="grid-cols-[var(--line-number-width)_1fr]",b="flex flex-1 w-full items-center justify-center py-1 text-github-text-primary hover:bg-github-bg-secondary hover:text-github-text-muted transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",g=[];return h?g.push({key:"all",onClick:u,ariaLabel:`Expand all ${l} hidden lines`,icon:y.jsx(QS,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&g.push({key:"up",onClick:a,ariaLabel:`Expand ${cd} hidden lines above`,icon:y.jsx(W2,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&g.push({key:"down",onClick:s,ariaLabel:`Expand ${cd} hidden lines below`,icon:y.jsx(K2,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),y.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${p}`,children:[y.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:c?y.jsx(LS,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):g.map(v=>y.jsx("button",{type:"button",onClick:v.onClick,disabled:c||!v.onClick,className:b,title:v.ariaLabel,"aria-label":v.ariaLabel,children:v.icon},v.key))}),y.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:f})]})});function Ks({file:e,comments:r,diffMode:l,syntaxTheme:a,cursor:s,fileIndex:u,mergedChunks:c,isExpandLoading:f,expandHiddenLines:h,expandAllBetweenChunks:p,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onLineClick:w,onOpenInEditor:S,commentTrigger:N,onCommentTriggerHandled:E}){const C=(j,B,q,L)=>j==="top"&&B.hiddenLinesBefore>0?y.jsx(fd,{direction:"down",hiddenLines:B.hiddenLinesBefore,onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="middle"&&B.hiddenLinesBefore>0?y.jsx(fd,{direction:"both",hiddenLines:B.hiddenLinesBefore,onExpandUp:()=>h(e,q-1,"down"),onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="bottom"&&B.hiddenLinesAfter>0?y.jsx(fd,{direction:"up",hiddenLines:B.hiddenLinesAfter,onExpandUp:()=>h(e,L,"down"),onExpandAll:()=>h(e,L,"down",B.hiddenLinesAfter),isLoading:f}):null;return y.jsx(y.Fragment,{children:c.map((j,B)=>{const q=B===0,L=B===c.length-1,I=j.originalIndices[0]??0,$=j.originalIndices[j.originalIndices.length-1]??0;return y.jsxs(Jt.Fragment,{children:[q&&C("top",j,I,$),!q&&C("middle",j,I,$),y.jsx("div",{id:`chunk-${e.path.replace(/[^a-zA-Z0-9]/g,"-")}-${B}`,children:y.jsx(a8,{chunk:j,chunkIndex:B,comments:r,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onOpenInEditor:S,mode:l,syntaxTheme:a,cursor:s&&s.chunkIndex===B?s:null,fileIndex:u,onLineClick:w,commentTrigger:N&&N.chunkIndex===B?N:null,onCommentTriggerHandled:E,filename:e.path})}),L&&C("bottom",j,I,$)]},B)})})}const o8=e=>!!(e&&e!=="stdin"),ki=["text-[26px] font-semibold","text-[22px] font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold uppercase tracking-wide","text-base font-semibold"],s8=e=>e.type==="delete"||e.type==="remove",u8=e=>e.type==="normal"||e.type==="context",Js=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),Jd=(e,r,l)=>{const a=e[e.length-1];if(a&&a.type===r){a.lines.push(l);return}e.push({type:r,lines:[l]})},dd=(e,r)=>{r.forEach(l=>Jd(e,"delete",l)),r.length=0},c8=e=>{const r=[],l=[];let a=!1;return e.forEach(s=>{s.lines.forEach(u=>{if(!(u.type==="header"||u.type==="hunk")){if(s8(u)){l.push(u.content);return}if(u.type==="add"){l.length>0&&(dd(r,l),a=!0),Jd(r,a?"change":"add",u.content);return}u8(u)&&(dd(r,l),a=!1,Jd(r,"context",u.content))}}),dd(r,l),a=!1}),r},f8=e=>Jt.isValidElement(e),d8=e=>Jt.isValidElement(e),Wd=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Wd).join(""):f8(e)?Wd(e.props.children):"",Z0=e=>({h1:({children:r})=>y.jsx("h1",{className:`${ki[0]} mt-6 mb-2 first:mt-0`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${ki[1]} mt-6 mb-2 first:mt-0`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${ki[2]} mt-6 mb-2 first:mt-0`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${ki[3]} mt-6 mb-2 first:mt-0`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${ki[4]} mt-6 mb-2 first:mt-0`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${ki[5]} mt-6 mb-2 first:mt-0`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-base leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-base space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-base space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Js(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!Js(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(d8),s=Wd(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary"})}):y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-sm font-mono",children:l})}),h8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},p8=e=>/^\s*\[[^\]]+\]:\s+\S+/.test(e),m8=e=>/^\s*\[\^[^\]]+\]:\s+/.test(e),g8=e=>/^\s*<!--.*-->\s*$/.test(e),b8=e=>e.trim()===""||p8(e)||m8(e)||g8(e),y8=e=>e.every(b8),x8=({blocks:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Z0(r),[r]);return y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const c=a.lines.join(`
|
|
51
|
-
`).trim();if(!c)return null;const f=y8(a.lines);return y.jsx("div",{className:`px-4 ${h8(a.type)}`,children:f?y.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):y.jsx(jh,{remarkPlugins:[Dh],urlTransform:h=>Js(h)?h:"",components:l,children:c})},`preview-block-${s}`)})})},v8=({content:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Z0(r),[r]);return y.jsx("div",{className:"space-y-4",children:y.jsx(jh,{remarkPlugins:[Dh],urlTransform:a=>Js(a)?a:"",components:l,children:e})})};function w8(e){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=e,[c,f]=T.useState("diff"),[h,p]=T.useState(null),[b,g]=T.useState(!1),[v,x]=T.useState(null),[w,S]=T.useState(null),N=T.useMemo(()=>c8(s),[s]),E=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.path,r.oldPath,r.status]),C=T.useMemo(()=>E?`${E.ref}:${E.path}`:null,[E]);T.useEffect(()=>{if(!E||!C||!o8(E.ref)){p(null),S(null),x(null),g(!1);return}let B=!1;return(C!==w||h===null)&&(async()=>{C!==w&&p(null),g(!0),x(null);try{const L=encodeURIComponent(E.path),I=await fetch(`/api/blob/${L}?ref=${encodeURIComponent(E.ref)}`);if(!I.ok)throw new Error(`Failed to fetch preview: ${I.statusText}`);const $=await I.text();B||(p($),S(C))}catch(L){B||(p(null),S(null),x(L instanceof Error?L.message:"Failed to load preview"))}finally{B||g(!1)}})(),()=>{B=!0}},[h,w,E,C]);const j=T.useMemo(()=>C===w&&h!==null,[h,w,C]);return T.useEffect(()=>{c==="full-preview"&&!j&&f("diff-preview")},[j,c]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>f("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(tu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>f("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ls,{size:14}),"Diff Preview"]}),j&&y.jsxs("button",{onClick:()=>f("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ls,{size:14}),"Full Preview"]})]})}),c==="diff"&&y.jsx(Ks,{...e}),c==="diff-preview"&&y.jsx("div",{className:"p-4",children:y.jsx(x8,{blocks:N,syntaxTheme:u})}),c==="full-preview"&&y.jsxs("div",{className:"p-4",children:[b&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),v&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:v}),!b&&!v&&h!==null&&y.jsx(v8,{content:h,syntaxTheme:u}),!b&&!v&&h===null&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const Ei=["text-2xl font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold","text-sm font-semibold uppercase tracking-wide","text-sm font-semibold"],Q0={markdown:"Markdown",code:"Code",raw:"Raw",unknown:"Cell"},S8=/"cell_type"\s*:\s*"([^"]+)"/,Sx=/"source"\s*:/,k8=/"execution_count"\s*:\s*(null|[0-9]+)/,E8=/"id"\s*:\s*"([^"]+)"/,C8=e=>e.type==="delete"||e.type==="remove",N8=e=>e.type==="normal"||e.type==="context",K0=e=>e.type==="add"?"add":C8(e)?"delete":N8(e)?"context":null,J0=e=>e==="markdown"||e==="code"||e==="raw"?e:"unknown",A8=e=>{const r=e.trim();if(!r.startsWith('"'))return null;let l=r;l.endsWith(",")&&(l=l.slice(0,-1));try{const a=JSON.parse(l);return typeof a=="string"?a:null}catch{return l.replace(/^"/,"").replace(/"$/,"").replace(/\\n/g,`
|
|
52
|
-
`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}},T8=e=>{const r=e.indexOf('"source"');if(r===-1)return null;const l=e.indexOf(":",r);if(l===-1)return null;let a=e.slice(l+1).trim();if(!a)return null;if(a.endsWith(",")&&(a=a.slice(0,-1).trim()),a.startsWith("[")){const s=a.lastIndexOf("]");if(s===-1)return null;const u=a.slice(0,s+1);try{const c=JSON.parse(u);if(Array.isArray(c))return c.filter(f=>typeof f=="string")}catch{return null}return[]}if(a.startsWith('"'))try{const s=JSON.parse(a);return typeof s=="string"?[s]:null}catch{return null}return null},j8=e=>{const r=_8(e);if(r)return r;const l=[];let a=null,s=!1,u=!1,c=!1;const f=()=>{a&&(a.status=s&&u?"change":s?"add":u?"delete":"context",l.push(a),a=null,s=!1,u=!1,c=!1)},h=p=>{f(),a={cellType:p,sourceLines:[],status:"context"}};return e.forEach(p=>{p.lines.forEach(b=>{const g=K0(b);if(!g)return;const v=b.content.match(S8);if(v?h(J0(v[1]??"")):!a&&Sx.test(b.content)&&h("unknown"),!a)return;if(g==="add"&&(s=!0),g==="delete"&&(u=!0),!a.id){const S=b.content.match(E8);S&&(a.id=S[1])}if(a.executionCount===void 0){const S=b.content.match(k8);S&&(a.executionCount=S[1]==="null"?null:S[1])}if(Sx.test(b.content)){const S=T8(b.content);if(S){S.forEach(N=>{a?.sourceLines.push({type:g,content:N})}),c=!1;return}c=!0;return}if(!c)return;if(b.content.trim().startsWith("]")){c=!1;return}const w=A8(b.content);w!==null&&a.sourceLines.push({type:g,content:w})})}),f(),{cells:l}},_8=e=>{const r=kx(e,["add","context"]),l=kx(e,["delete","context"]),a=Ua(r),s=Ua(l);if(!a&&!s||a&&a.cells.length===0&&!s)return null;const u=a?.language??s?.language;return{cells:W0(s?.cells??[],a?.cells??[]),language:u}},kx=(e,r)=>e.flatMap(l=>l.lines).map(l=>{const a=K0(l);return!a||!r.includes(a)?null:l.content}).filter(l=>l!==null).join(`
|
|
53
|
-
`),Ua=e=>{if(!e.trim())return null;try{const r=JSON.parse(e);if(!r||typeof r!="object"||!("cells"in r))return null;const l=r.cells;if(!Array.isArray(l))return null;const a=r.metadata,s=R8(a);return{cells:l.map(u=>L8(u)),language:s}}catch{return null}},R8=e=>{if(!e||typeof e!="object")return;const r=e,l=r.language_info;if(l&&typeof l=="object"){const s=l.name;if(typeof s=="string"&&s.trim())return s}const a=r.kernelspec;if(a&&typeof a=="object"){const s=a.language;if(typeof s=="string"&&s.trim())return s}},L8=e=>{const r=typeof e=="object"&&e?e:{},l=typeof r.cell_type=="string"?r.cell_type:"",a=J0(l),s=typeof r.id=="string"?r.id:void 0,u=r.execution_count,c=u===null?null:typeof u=="number"?String(u):typeof u=="string"?u:void 0,f=D8(r.source);return{cellType:a,sourceText:f,id:s,executionCount:c}},D8=e=>typeof e=="string"?e:Array.isArray(e)?e.filter(r=>typeof r=="string").join(""):"",W0=(e,r)=>{const l=[];if(e.some(u=>!!u.id)||r.some(u=>!!u.id)){const u=new Map;e.forEach((f,h)=>{f.id&&u.set(f.id,{cell:f,index:h})});const c=new Set;return r.forEach(f=>{const h=f.id?u.get(f.id):void 0;h&&c.add(h.index),l.push(hd(h?.cell??null,f))}),e.forEach((f,h)=>{c.has(h)||l.push(hd(f,null))}),l}const s=Math.max(e.length,r.length);for(let u=0;u<s;u+=1){const c=e[u]??null,f=r[u]??null;l.push(hd(c,f))}return l},hd=(e,r)=>{if(!r&&e)return{cellType:e.cellType,sourceLines:Ma(e.sourceText,"delete"),status:"delete",id:e.id,executionCount:e.executionCount};if(r&&!e)return{cellType:r.cellType,sourceLines:Ma(r.sourceText,"add"),status:"add",id:r.id,executionCount:r.executionCount};const l=e?.sourceText??"",a=r?.sourceText??"",s=r?.cellType??e?.cellType??"unknown",u=r?.id??e?.id,c=r?.executionCount??e?.executionCount;return l===a&&(e?.cellType??"")===(r?.cellType??"")?{cellType:s,sourceLines:Ma(a,"context"),status:"context",id:u,executionCount:c}:{cellType:s,sourceLines:[...Ma(l,"delete"),...Ma(a,"add")],status:"change",id:u,executionCount:c}},Ma=(e,r)=>e?[{type:r,content:e}]:[],pd=e=>!!(e&&e!=="stdin"),md=async(e,r)=>{const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);return a.ok?a.text():null},Di=(e,r)=>e.filter(l=>r.includes(l.type)).map(l=>l.content).join(""),gd=e=>{if(!e)return[];const r=e.split(`
|
|
54
|
-
`);return r.length>0&&r[r.length-1]===""&&r.pop(),r},ev=(e,r)=>!e&&!r?[]:e?r?Z5(e,r).flatMap(l=>{const a=l.added?"add":l.removed?"delete":"context";return gd(l.value).map(s=>({type:a,content:s}))}):gd(e).map(l=>({type:"delete",content:l})):gd(r).map(l=>({type:"add",content:l})),O8=e=>Jt.isValidElement(e),M8=e=>Jt.isValidElement(e),eh=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(eh).join(""):O8(e)?eh(e.props.children):"",z8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},Ex=e=>{switch(e){case"before":return"border-l-4 border-diff-deletion-border";case"after":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},B8=e=>{switch(e){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},F8=e=>{switch(e){case"add":return"+";case"delete":return"-";default:return" "}},I8=e=>{switch(e){case"add":return"text-github-accent";case"delete":return"text-github-danger";default:return"text-github-text-muted"}},th=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),U8=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Ei[0]} mb-2`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Ei[1]} mb-2`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Ei[2]} mb-2`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Ei[3]} mb-2`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Ei[4]} mb-2`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Ei[5]} mb-2`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-sm leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-sm space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-sm space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!th(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!th(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(M8),s=eh(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})}):y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-xs font-mono",children:l}),table:({children:r})=>y.jsx("div",{className:"overflow-x-auto",children:y.jsx("table",{className:"min-w-full border border-github-border",children:r})}),th:({children:r})=>y.jsx("th",{className:"border border-github-border px-2 py-1 bg-github-bg-tertiary text-sm",children:r}),td:({children:r})=>y.jsx("td",{className:"border border-github-border px-2 py-1 text-sm",children:r})}),H8=e=>{const r=Di(e.sourceLines,["context","delete"]),l=Di(e.sourceLines,["context","add"]),a=[];return e.status==="change"?(r.trim()&&a.push({label:"Before",content:r,tone:"before"}),l.trim()&&a.push({label:"After",content:l,tone:"after"}),a.length===0&&a.push({label:"After",content:l,tone:"after"}),a):e.status==="delete"?(a.push({label:"Before",content:r||l,tone:"before"}),a):(a.push({label:"After",content:l||r,tone:"after"}),a)},tv=(e,r,l,a)=>{if(!r.trim())return y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"});if(e==="markdown"){const s=U8(l);return y.jsx(jh,{remarkPlugins:[Dh],urlTransform:u=>th(u)?u:"",components:s,children:r})}return e==="raw"?y.jsx("pre",{className:"whitespace-pre-wrap break-words text-xs font-mono text-github-text-primary",children:r}):y.jsx("pre",{className:"overflow-x-auto text-xs",children:y.jsx(Ga,{code:r.replace(/\n$/,""),language:a||"python",syntaxTheme:l,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})})},q8=({lines:e,syntaxTheme:r,language:l})=>e.length===0?y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"}):y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"font-mono text-xs",children:e.map((a,s)=>y.jsxs("div",{className:`flex items-start min-h-[16px] ${B8(a.type)}`,children:[y.jsx("span",{className:`w-5 text-center flex-shrink-0 select-none ${I8(a.type)}`,children:F8(a.type)}),y.jsx(Ga,{code:a.content||" ",language:l||"python",syntaxTheme:r,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit"})]},`notebook-code-line-${s}`))})}),P8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=H8(a),c=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null,f=a.cellType==="code",h=f?ev(Di(a.sourceLines,["context","delete"]),Di(a.sourceLines,["context","add"])).filter(p=>p.type!=="context"):[];return f&&h.length===0?null:y.jsxs("div",{className:`rounded border border-github-border bg-github-bg-secondary/40 p-4 ${z8(a.status)}`,children:[y.jsx("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),c&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:c}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]})}),y.jsx("div",{className:"space-y-3",children:f?y.jsx("div",{className:`px-4 py-3 ${Ex(a.status==="delete"?"before":"after")}`,children:y.jsx(q8,{lines:h,syntaxTheme:r,language:l})}):u.map((p,b)=>y.jsx("div",{className:`px-4 py-3 ${Ex(p.tone)}`,children:y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,p.content,r,l)})},`notebook-cell-${s}-section-${b}`))})]},`notebook-cell-${s}`)})}),$8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null;return y.jsxs("div",{className:"rounded border border-github-border bg-github-bg-secondary/40 p-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),u&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:u}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]}),y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,a.sourceText,r,l)})]},`notebook-full-cell-${s}`)})});function V8(e){const{file:r,baseCommitish:l,targetCommitish:a}=e,[s,u]=T.useState("diff"),c=T.useMemo(()=>j8(e.mergedChunks),[e.mergedChunks]),[f,h]=T.useState({status:"idle",cells:c.cells,language:c.language}),p=T.useMemo(()=>f.cells.filter(L=>L.status==="context"?!1:L.cellType!=="code"?!0:ev(Di(L.sourceLines,["context","delete"]),Di(L.sourceLines,["context","add"])).filter($=>$.type!=="context").length>0),[f.cells]),[b,g]=T.useState(null),[v,x]=T.useState(c.language),[w,S]=T.useState(!1),[N,E]=T.useState(null),[C,j]=T.useState(null),B=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.oldPath,r.path,r.status]),q=T.useMemo(()=>B?`${B.ref}:${B.path}`:null,[B]);return T.useEffect(()=>{let L=!1;return(async()=>{const $=l||"HEAD~1",G=a||"HEAD",M=r.oldPath||r.path,V=r.status!=="added"&&pd($),Y=r.status!=="deleted"&&pd(G);if(!V&&!Y){h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be loaded, falling back to diff preview."});return}h(J=>({...J,status:"loading"}));try{const[J,U]=await Promise.all([V?md(M,$):Promise.resolve(null),Y?md(r.path,G):Promise.resolve(null)]),X=J?Ua(J):null,F=U?Ua(U):null;if(!X&&!F){L||h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be parsed, falling back to diff preview."});return}const O=F?.language??X?.language??c.language,z=W0(X?.cells??[],F?.cells??[]);L||h({status:"ready",cells:z,source:"blob",language:O})}catch(J){L||h({status:"error",cells:c.cells,language:c.language,source:"diff",message:J instanceof Error?J.message:"Failed to load notebook preview."})}})(),()=>{L=!0}},[l,r.oldPath,r.path,r.status,e.mergedChunks,a,c]),T.useEffect(()=>{if(s!=="full-preview")return;if(!B||!q||!pd(B.ref)){g(null),j(null),E(null),S(!1);return}let L=!1;return(q!==C||!b)&&(async()=>{q!==C&&g(null),S(!0),E(null);try{const $=await md(B.path,B.ref);if(!$)throw new Error("Failed to load preview.");const G=Ua($);if(!G)throw new Error("Notebook content could not be parsed.");L||(g(G.cells),x(G.language??c.language),j(q))}catch($){L||(g(null),j(null),E($ instanceof Error?$.message:"Failed to load preview"))}finally{L||S(!1)}})(),()=>{L=!0}},[c.language,b,C,s,B,q]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>u("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(tu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>u("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ls,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>u("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ls,{size:14}),"Full Preview"]})]})}),s==="diff"&&y.jsx(Ks,{...e}),s==="diff-preview"&&y.jsxs("div",{className:"p-4",children:[f.status==="loading"&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"Loading notebook preview…"}),f.message&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:f.message}),p.length===0?y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"No changed notebook cells were found. Showing raw diff instead."}),y.jsx(Ks,{...e})]}):y.jsx(P8,{cells:p,syntaxTheme:e.syntaxTheme,language:f.language})]}),s==="full-preview"&&y.jsxs("div",{className:"p-4",children:[w&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),N&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:N}),!w&&!N&&b&&y.jsx($8,{cells:b,syntaxTheme:e.syntaxTheme,language:v??c.language}),!w&&!N&&!b&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const bd=[{id:"image",match:e=>tC(e.path),Component:aC,canExpandHiddenLines:()=>!1},{id:"markdown",match:e=>rC(e.path),Component:w8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"notebook",match:e=>iC(e.path),Component:V8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"default",match:()=>!0,Component:Ks,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"}],G8=e=>{const r=bd[bd.length-1];if(!r)throw new Error("No diff viewers registered");return bd.find(l=>l.match(e))??r},Y8=e=>{switch(e){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},X8=({file:e,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,f]=T.useState(!1);return y.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx("button",{onClick:h=>{h.altKey?s(!r):a(e.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:r?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:r?y.jsx(Vx,{size:16}):y.jsx(_i,{size:16})}),Y8(e.status),y.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:e.path}),y.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${c?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(e.path).then(()=>{console.log("File path copied to clipboard:",e.path),f(!0),setTimeout(()=>f(!1),2e3)}).catch(h=>{console.error("Failed to copy file path:",h)})},title:"Copy file path",children:c?y.jsx(qa,{size:14}):y.jsx(Gx,{size:14})}),e.oldPath&&e.oldPath!==e.path&&y.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",e.oldPath,")"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",e.additions]}),y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",e.deletions]})]}),y.jsxs("button",{onClick:()=>u(e.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${l?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:l?"Mark as not reviewed":"Mark as reviewed",children:[l?y.jsx(qa,{size:14}):y.jsx(GS,{size:14}),"Viewed"]})]})]})},Z8=e=>{const r={old:[],new:[]};return e.forEach(l=>{const a=l.side??"new",[s,u]=Array.isArray(l.line)?[l.line[0],l.line[1]]:[l.line,l.line];s<=0||u<=0||r[a].push({start:Math.min(s,u),end:Math.max(s,u)})}),r},Q8=(e,r)=>e.chunks.map((l,a)=>{const s=r==="old"?l.oldStart:l.newStart,u=r==="old"?l.oldLines:l.newLines;return!s||u<=0?null:{start:s,end:s+u-1,index:a}}).filter(l=>!!l),K8=e=>{const r=[],l=e[0];if(!l)return r;l.start>1&&r.push({type:"before",start:1,end:l.start-1,nextChunkIndex:l.index});for(let s=1;s<e.length;s+=1){const u=e[s-1],c=e[s];!u||!c||c.start>u.end+1&&r.push({type:"between",start:u.end+1,end:c.start-1,prevChunkIndex:u.index,nextChunkIndex:c.index})}const a=e[e.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},J8=e=>{const r=new Map;return e.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},W8=e=>{const r=e[e.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},ej=T.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:f,onToggleAllCollapsed:h,onAddComment:p,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E=null,fileIndex:C=0,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q,mergedChunks:L,expandLines:I,expandAllBetweenChunks:$,prefetchFileContent:G,isExpandLoading:M}){const V=c.has(r.path),Y=T.useRef(null),[J,U]=T.useState(!1),X=G8(r),F=X.canExpandHiddenLines?.(r)??!1;T.useEffect(()=>{if(!F)return;const D=Y.current;if(!D)return;const H=new IntersectionObserver(([A])=>{A?.isIntersecting&&U(!0)},{rootMargin:"200px"});return H.observe(D),()=>H.disconnect()},[F]),T.useEffect(()=>{J&&!V&&F&&G(r)},[J,V,F,r,G]);const O=T.useCallback(async(D,H,A,te)=>{try{await p(r.path,D,H,A,te)}catch(ue){console.error("Failed to add comment:",ue)}},[r.path,p]);T.useEffect(()=>{if(V||M||!F||l.length===0||r.chunks.length===0||L.length===0)return;const D=Z8(l),H=J8(L),A=W8(L),te=L[L.length-1],ue=new Set,fe=(pe,me)=>{ue.has(pe)||(ue.add(pe),me())};["old","new"].forEach(pe=>{const me=D[pe];if(me.length===0)return;const de=Q8(r,pe);K8(de).forEach(xe=>{if(!me.some(Pe=>Pe.start<=xe.end&&Pe.end>=xe.start))return;if(xe.type==="after"&&te&&A!==null){te.hiddenLinesAfter>0&&fe(`after-${A}`,()=>{I(r,A,"down",te.hiddenLinesAfter)});return}const ke=xe.nextChunkIndex;if(ke===void 0)return;const Ne=H.get(ke);!Ne||Ne.hiddenLinesBefore<=0||(xe.type==="before"?fe(`before-${ke}`,()=>{I(r,ke,"up",Ne.hiddenLinesBefore)}):xe.type==="between"&&fe(`between-${ke}`,()=>{$(r,ke,Ne.hiddenLinesBefore)}))})})},[l,$,I,r,V,M,L,F]);const z="4em",Q=X.Component,_={file:r,comments:l,diffMode:a,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E,fileIndex:C,mergedChunks:L,isExpandLoading:M,expandHiddenLines:I,expandAllBetweenChunks:$,onAddComment:O,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q};return y.jsxs("div",{ref:Y,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[y.jsx(X8,{file:r,isCollapsed:V,isReviewed:s.has(r.path),onToggleCollapsed:f,onToggleAllCollapsed:h,onToggleReviewed:u}),!V&&y.jsx("div",{className:"overflow-y-auto",children:y.jsx(Q,{..._})})]})});function tj(e){const r={name:"",path:"",isDirectory:!0,children:[]};e.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const f=s[c];if(!f)continue;const h=c===s.length-1,p=s.slice(0,c+1).join("/");u.children||(u.children=[]);let b=u.children.find(g=>g.name===f);b||(b={name:f,path:p,isDirectory:!h,children:h?void 0:[],file:h?a:void 0},u.children.push(b)),u=b}});const l=a=>{if(!a.isDirectory||!a.children)return a;if(a.children=a.children.map(l),a.children.length===1&&a.children[0]?.isDirectory&&a.children[0]?.children){const s=a.children[0];if(s)return a.name?{...a,name:`${a.name}/${s.name}`,path:s.path,children:s.children}:a}return a};return l(r)}function nj({files:e,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=tj(e),f=T.useRef(null),h=T.useRef(new Map),p={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},b=$=>{if(!$.isDirectory||!$.children)return[];const G=[];return $.path&&G.push($.path),$.children.forEach(M=>{G.push(...b(M))}),G},[g,v]=T.useState(()=>new Set(b(c))),[x,w]=T.useState(""),S=$=>l.filter(G=>G.file===$).length,N=T.useMemo(()=>{const $=G=>{if(!x.trim())return G;if(G.isDirectory&&G.children){const M=G.children.map(V=>$(V)).filter(V=>V!==null);return M.length>0?{...G,children:M}:null}else if(G.file)return G.file.path.toLowerCase().includes(x.toLowerCase())?G:null;return null};return $(c)||{...c,children:[]}},[c,x]),E=$=>{switch($){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},C=$=>{v(G=>{const M=new Set(G);return M.has($)?M.delete($):M.add($),M})},j=b(c),B=g.size===j.length&&j.length>0,q=()=>{v(B?new Set:new Set(j))},L=($,G)=>{const M=f.current,V=$.currentTarget;if(!M){C(G);return}const Y=M.getBoundingClientRect(),J=V.getBoundingClientRect(),U=Number.parseFloat(getComputedStyle(V).top||"0");if(J.top-Y.top<=U+1){const z=h.current.get(G)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),Q=V.getBoundingClientRect().height||0,_=z??V,D=Number.parseInt(_.dataset.depth||V.dataset.depth||"0",10),H=Q*D,A=Math.max(0,_.offsetTop-H);if(Math.abs(M.scrollTop-A)<=1){C(G);return}M.scrollTo({top:A,behavior:"smooth"});return}C(G)},I=($,G=0)=>{if($.isDirectory&&$.children){const M=g.has($.path);return y.jsxs("div",{"data-dir-container":$.path||void 0,ref:V=>{$.path&&(V?h.current.set($.path,V):h.current.delete($.path))},children:[$.name&&y.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`,top:`calc(${G} * var(--dir-row-height))`,zIndex:1e3-G},onClick:V=>L(V,$.path),children:[M?y.jsx(_i,{size:16}):y.jsx(Vx,{size:16}),M?y.jsx(SS,{size:16,className:"text-github-text-secondary"}):y.jsx(ES,{size:16,className:"text-github-text-secondary"}),y.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:$.name,children:$.name})]}),(M||!$.name)&&$.children.map(V=>I(V,$.name?G+1:G))]},$.path)}else if($.file){const M=$.file,V=S(M.path),Y=a.has(M.path),J=e.findIndex(X=>X.path===M.path),U=u!==null&&u===J;return y.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Y?"opacity-70":""} ${U?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`},onClick:()=>r(M.path),children:[y.jsx(Jx,{checked:Y,onChange:()=>{s(M.path)},title:Y?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E($.file.status),y.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Y?"line-through text-github-text-muted":""}`,title:$.file.path,children:$.name}),V>0&&y.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[y.jsx(Qx,{size:14}),V]})]},M.path)}return null};return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",e.length,")"]}),y.jsx("button",{onClick:q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?y.jsx(aS,{size:16,className:"text-github-text-secondary"}):y.jsx(sS,{size:16,className:"text-github-text-secondary"})})]}),y.jsxs("div",{className:"relative",children:[y.jsx(PS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),y.jsx("input",{type:"text",placeholder:"Filter files...",value:x,onChange:$=>w($.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:p,ref:f,children:N.children?.map($=>I($))})]})}function rj({style:e}){return y.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:e,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function lj({isOpen:e,onClose:r}){const{enableScope:l,disableScope:a}=Ya();return lt("escape",()=>r(),{enabled:e},[r,e]),T.useEffect(()=>(e?a("navigation"):l("navigation"),()=>{l("navigation")}),[e,l,a]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:y.jsx(nu,{size:20})})]}),y.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),y.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),y.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),y.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),y.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),y.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:y.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function ij({style:e}){return y.jsxs("svg",{style:e,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function aj({shouldReload:e,isReloading:r,onReload:l,changeType:a,className:s="",compact:u=!1}){if(!e)return null;const c=()=>{switch(a){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return y.jsxs("button",{onClick:l,disabled:r,className:`
|
|
55
|
-
flex items-center gap-1.5 text-xs rounded-md border ${s} ${u?"px-2 py-2":"px-3 py-1.5"}
|
|
56
|
-
${r?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
|
|
57
|
-
`,title:`${c()} - Click to refresh`,"aria-label":u?"Refresh":void 0,children:[y.jsx(HS,{size:12,className:`${r?"animate-spin":""}`}),u?y.jsx("span",{className:"sr-only",children:"Refresh"}):"Refresh"]})}function Cx({label:e,value:r,resolvedValue:l,onChange:a,options:s,disabledValues:u=[]}){const[c,f]=T.useState(!1),{refs:h,floatingStyles:p,context:b}=Od({open:c,onOpenChange:f,middleware:[Ad(4),jd(),Td({padding:8})],whileElementsMounted:Nd}),g=_d(b,{handleClose:Bd()}),v=Ld(b),x=GE(b),w=Dd(b),S=zd(b),{getReferenceProps:N,getFloatingProps:E}=Md([g,v,x,w,S]),C=r==="working"&&u.includes("staged")||r==="staged"&&u.includes("working"),j=()=>{const G=s.specialOptions.find(Y=>Y.value===r);if(G)return G.label;const M=s.branches.find(Y=>Y.name===r);if(M)return`${M.name}${M.current?" (current)":""}`;const V=s.commits.find(Y=>Y.shortHash===r||Y.hash===r);return V?`${V.shortHash} - ${V.message}`:r||"Select..."},B=G=>{a(G),f(!1)},q=G=>u.includes(G),L=(G,M)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",G?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",G?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",M?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),I=(G,M)=>G===r||M===r?!0:l?G===l||M===l:!1,$=()=>{let G=0;const M=s.specialOptions.findIndex(V=>V.value===r);if(M!==-1)return M;if(G+=s.specialOptions.length,!C){const V=s.commits.findIndex(J=>J.shortHash===r);if(V!==-1)return G+V;G+=s.commits.length;const Y=s.branches.findIndex(J=>J.name===r);if(Y!==-1)return G+Y}return 0};return y.jsxs(y.Fragment,{children:[y.jsxs("button",{ref:h.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":c,...N(),children:[y.jsxs("span",{className:"text-xs text-github-text-secondary",children:[e,":"]}),y.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:j()}),y.jsx(_i,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),c&&y.jsx(Rd,{children:y.jsx(HE,{context:b,modal:!1,initialFocus:$(),children:y.jsxs("div",{ref:h.setFloating,style:p,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...E(),children:[s.specialOptions.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),s.specialOptions.map(G=>y.jsx("button",{onClick:()=>B(G.value),disabled:q(G.value),className:L(G.value===r,q(G.value)),children:G.label},G.value))]}),!C&&s.commits.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),s.commits.map(G=>y.jsx("button",{onClick:()=>B(G.shortHash),disabled:q(G.shortHash),className:L(I(G.shortHash,G.hash),q(G.shortHash)),children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:G.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:G.message})]})},G.hash))]}),!C&&s.branches.length>0&&y.jsxs("div",{children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),s.branches.map(G=>y.jsx("button",{onClick:()=>B(G.name),disabled:q(G.name),className:L(G.name===r,q(G.name)),children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-github-text-primary",children:G.name}),G.current&&y.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},G.name))]})]})})})]})}function oj({isOpen:e,onClose:r,options:l,baseRevision:a,targetRevision:s,resolvedBaseRevision:u,resolvedTargetRevision:c,onApply:f}){const[h,p]=T.useState(a),[b,g]=T.useState(s),{enableScope:v,disableScope:x}=Ya();T.useEffect(()=>(e?x("navigation"):v("navigation"),()=>{v("navigation")}),[e,v,x]);const w=T.useMemo(()=>{const E=c||b,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return b?[b]:[];const j=l.commits.slice(0,C+1).map(B=>B.shortHash);return b&&!j.includes(b)&&j.push(b),j.includes("working")||j.push("working"),j},[b,c,l.commits]),S=T.useMemo(()=>{const E=u||h,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return h?[h]:[];const j=l.commits.slice(C).map(B=>B.shortHash);return h&&!j.includes(h)&&j.push(h),j},[h,u,l.commits]);if(!e)return null;const N=()=>{f(h,b),r()};return y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-secondary border border-github-border rounded-lg shadow-lg w-full max-w-lg mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Detailed Diff"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1","aria-label":"Close detailed diff",children:y.jsx(nu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-center gap-3",children:[y.jsx(Cx,{label:"Base",value:h,resolvedValue:u,onChange:p,options:l,disabledValues:w}),y.jsx("span",{className:"text-github-text-muted",children:"..."}),y.jsx(Cx,{label:"Target",value:b,resolvedValue:c,onChange:g,options:l,disabledValues:S})]}),y.jsxs("div",{className:"flex justify-end gap-2",children:[y.jsx("button",{onClick:r,className:"px-3 py-1.5 text-xs font-medium rounded border border-github-border text-github-text-secondary hover:text-github-text-primary transition-colors",type:"button",children:"Cancel"}),y.jsx("button",{onClick:N,className:"px-3 py-1.5 text-xs font-medium rounded bg-github-accent text-white hover:bg-github-accent/90 transition-colors",type:"button",children:"Apply"})]})]})]})]})}const sj=[{id:"vscode",label:"VS Code",protocol:"vscode",cliCommand:"code",cliArgs:[],aliases:["vscode","code"]},{id:"cursor",label:"Cursor",protocol:"cursor",cliCommand:"cursor",cliArgs:[],aliases:["cursor"]},{id:"none",label:"Hide “Open in editor” button",protocol:null,cliCommand:null,cliArgs:[],aliases:["none","disabled","off"]}],nv="vscode",uj={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:nv},cj=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function fj({isOpen:e,onClose:r,settings:l,onSettingsChange:a}){const[s,u]=T.useState(l),{enableScope:c,disableScope:f}=Ya();T.useEffect(()=>{u(l)},[l]),T.useEffect(()=>{a(s)},[s,a]),T.useEffect(()=>(e?f("navigation"):c("navigation"),()=>{c("navigation")}),[e,c,f]);const h=()=>s.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s.theme,p=()=>h()==="light"?fx:dx,b=v=>{const x={...s,theme:v},S=(v==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":v)==="light"?fx:dx;if(!S.some(E=>E.id===s.syntaxTheme)&&S.length>0){const E=S[0];E&&(x.syntaxTheme=E.id)}u(x)},g=()=>{u(uj)};return e?y.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:y.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[y.jsx(Kx,{size:20}),"Appearance Settings"]}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:y.jsx(nu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-6",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:s.fontSize,onChange:v=>u({...s,fontSize:parseInt(v.target.value)}),className:"flex-1 accent-github-accent"}),y.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[s.fontSize,"px"]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),y.jsx("select",{value:s.fontFamily,onChange:v=>u({...s,fontFamily:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:cj.map(v=>y.jsx("option",{value:v.value,children:v.name},v.value))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),y.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(v=>y.jsx("button",{onClick:()=>b(v),className:`px-3 py-2 text-sm rounded border transition-colors ${s.theme===v?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),y.jsx("select",{value:s.syntaxTheme,onChange:v=>u({...s,syntaxTheme:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Open In Editor"}),y.jsx("select",{value:s.editor,onChange:v=>u({...s,editor:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:sj.map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[y.jsx("button",{onClick:g,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),y.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const Nx={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},dj=({isActive:e})=>e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"animate-sparkle-rise",style:{...Nx,left:"-12px",animationDelay:"0s"},children:"✨"}),y.jsx("div",{className:"animate-sparkle-rise",style:{...Nx,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Ax={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:nv},Tx="reviewit-appearance-settings";function hj(){const[e,r]=T.useState(()=>{try{const s=localStorage.getItem(Tx);if(s)return{...Ax,...JSON.parse(s)}}catch(s){console.warn("Failed to load appearance settings from localStorage:",s)}return Ax}),l=T.useCallback(s=>{const u=document.documentElement;u.setAttribute("data-theme",s),s==="light"?(u.style.setProperty("--color-github-bg-primary","#ffffff"),u.style.setProperty("--color-github-bg-secondary","#f6f8fa"),u.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),u.style.setProperty("--color-github-border","#d1d9e0"),u.style.setProperty("--color-github-text-primary","#24292f"),u.style.setProperty("--color-github-text-secondary","#656d76"),u.style.setProperty("--color-github-text-muted","#8c959f"),u.style.setProperty("--color-github-accent","#1f883d"),u.style.setProperty("--color-github-danger","#cf222e"),u.style.setProperty("--color-github-warning","#bf8700"),u.style.setProperty("--color-diff-addition-bg","#d1f4cd"),u.style.setProperty("--color-diff-addition-border","#1f883d"),u.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),u.style.setProperty("--color-diff-deletion-border","#cf222e"),u.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),u.style.setProperty("--color-comment-bg","#fff8e1"),u.style.setProperty("--color-comment-border","#ffd54f"),u.style.setProperty("--color-comment-text","#5d4037"),u.style.setProperty("--color-yellow-btn-bg","#fef3c7"),u.style.setProperty("--color-yellow-btn-border","#f59e0b"),u.style.setProperty("--color-yellow-btn-text","#92400e"),u.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","#fde68a"),u.style.setProperty("--color-yellow-path-text","#92400e"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(31, 41, 55, 0.35)"),u.style.setProperty("--color-editor-btn-text","#1f2937"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(31, 41, 55, 0.5)")):(u.style.setProperty("--color-github-bg-primary","#0d1117"),u.style.setProperty("--color-github-bg-secondary","#161b22"),u.style.setProperty("--color-github-bg-tertiary","#21262d"),u.style.setProperty("--color-github-border","#30363d"),u.style.setProperty("--color-github-text-primary","#f0f6fc"),u.style.setProperty("--color-github-text-secondary","#8b949e"),u.style.setProperty("--color-github-text-muted","#6e7681"),u.style.setProperty("--color-github-accent","#238636"),u.style.setProperty("--color-github-danger","#da3633"),u.style.setProperty("--color-github-warning","#d29922"),u.style.setProperty("--color-diff-addition-bg","#0d4429"),u.style.setProperty("--color-diff-addition-border","#1b7c3d"),u.style.setProperty("--color-diff-deletion-bg","#67060c"),u.style.setProperty("--color-diff-deletion-border","#da3633"),u.style.setProperty("--color-diff-neutral-bg","#21262d"),u.style.setProperty("--color-comment-bg","#1c2128"),u.style.setProperty("--color-comment-border","#373e47"),u.style.setProperty("--color-comment-text","#e6edf3"),u.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),u.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),u.style.setProperty("--color-yellow-btn-text","#fbbf24"),u.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-path-text","#fbbf24"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(248, 250, 252, 0.3)"),u.style.setProperty("--color-editor-btn-text","#f0f6fc"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(248, 250, 252, 0.45)")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return T.useEffect(()=>{const s=document.documentElement;if(s.style.setProperty("--app-font-size",`${e.fontSize}px`),s.style.setProperty("--app-font-family",e.fontFamily),e.theme==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const c=f=>{l(f.matches?"dark":"light")};return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}else{l(e.theme);return}},[e,l]),{settings:e,updateSettings:s=>{r(s);try{localStorage.setItem(Tx,JSON.stringify(s))}catch(u){console.warn("Failed to save appearance settings to localStorage:",u)}}}}function rv(e,r,l){const a=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${e||"<unknown file>"}:${a}
|
|
58
|
-
${l}`}function pj(e){return e.length===0?"":e.map(l=>rv(l.file,l.line,l.body)).join(`
|
|
59
|
-
=====
|
|
60
|
-
`)}const js="difit-storage-v1";class mj{generateStorageKey(r,l){const a=s=>s.replace(/[^a-zA-Z0-9-_]/g,u=>`_${u.charCodeAt(0).toString(16)}_`);return`${a(r)}-${a(l)}`}normalizeCommitish(r,l,a){if(r==="."||r==="working")return"WORKING";if(r==="staged")return"STAGED";if((r==="HEAD"||r==="@")&&l)return l;if(a?.has(r)){const s=a.get(r);if(s)return s}return(r.startsWith("@")||r.includes("^")||r.includes("~")||r.includes("HEAD"))&&console.warn(`[StorageService] Cannot normalize symbolic ref '${r}' - may cause key collision. currentCommitHash=${l}`),r}getStorageKey(r,l,a,s,u){let c,f;l==="."||l==="working"?(c=a||r,f="WORKING"):l==="staged"?(c=a||r,f="STAGED"):(c=this.normalizeCommitish(r,a,s),f=this.normalizeCommitish(l,a,s));const h=this.generateStorageKey(c,f);return u?`${js}/${u}/${h}`:`${js}/${h}`}getDiffContextData(r,l,a,s,u){try{const c=this.getStorageKey(r,l,a,s,u),f=localStorage.getItem(c);if(!f)return null;const h=JSON.parse(f);return h.version!==1?(console.warn(`Unknown storage version: ${h.version}`),null):h}catch(c){return console.error("Error reading diff context data:",c),null}}saveDiffContextData(r,l,a,s,u,c){try{const f=this.getStorageKey(r,l,s,u,c),h={...a,baseCommitish:r,targetCommitish:l,lastModifiedAt:new Date().toISOString()};localStorage.setItem(f,JSON.stringify(h))}catch(f){f instanceof DOMException&&f.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",f)}}getComments(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.comments||[]}saveComments(r,l,a,s,u,c){const h=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};h.comments=a,this.saveDiffContextData(r,l,h,s,u,c)}getViewedFiles(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.viewedFiles||[]}saveViewedFiles(r,l,a,s,u,c){const h=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};h.viewedFiles=a,this.saveDiffContextData(r,l,h,s,u,c)}cleanupOldData(r){const l=new Date;l.setDate(l.getDate()-r);const a=l.getTime(),s=[];for(let u=0;u<localStorage.length;u++){const c=localStorage.key(u);if(c?.startsWith(js))try{const f=localStorage.getItem(c);if(!f)continue;const h=JSON.parse(f);new Date(h.lastModifiedAt).getTime()<a&&s.push(c)}catch{}}s.forEach(u=>localStorage.removeItem(u))}getStorageSize(){let r=0;for(let l=0;l<localStorage.length;l++){const a=localStorage.key(l);if(!a?.startsWith(js))continue;const s=localStorage.getItem(a);s&&(r+=(a.length+s.length)*2)}return r}}const Ha=new mj;async function jx(e){try{const l=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",l);return Array.from(new Uint8Array(a)).map(u=>u.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),gj(e)}}function gj(e){let r=0;for(let l=0;l<e.length;l++){const a=e.charCodeAt(l);r=(r<<5)-r+a,r=r&r}return Math.abs(r).toString(16)}function _x(e){const r=e.chunks.map(l=>{const a=l.lines.filter(s=>s.type!=="hunk"&&s.type!=="header").map(s=>`${s.type}:${s.content}`).join(`
|
|
61
|
-
`);return`${l.header}
|
|
62
|
-
${a}`}).join(`
|
|
63
|
-
|
|
64
|
-
`);return`${e.path}
|
|
65
|
-
${e.status}
|
|
66
|
-
${r}`}function bj(e,r,l,a,s){const[u,c]=T.useState([]);T.useEffect(()=>{if(!e||!r)return;const w=Ha.getComments(e,r,l,a,s);c(w)},[e,r,l,a,s]);const f=T.useCallback(w=>{!e||!r||(Ha.saveComments(e,r,w,l,a,s),c(w))},[e,r,l,a,s]),h=T.useCallback(w=>{const S={id:crypto.randomUUID(),filePath:w.filePath,body:w.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),position:{side:w.side,line:w.line},codeSnapshot:w.codeSnapshot||{content:"",language:I5(w.filePath)}},N=[...u,S];return f(N),S},[u,f]),p=T.useCallback(w=>{const S=u.filter(N=>N.id!==w);f(S)},[u,f]),b=T.useCallback((w,S)=>{const N=u.map(E=>E.id===w?{...E,body:S,updatedAt:new Date().toISOString()}:E);f(N)},[u,f]),g=T.useCallback(()=>{f([])},[f]),v=T.useCallback(w=>{const S=u.find(E=>E.id===w);if(!S)return"";const N=typeof S.position.line=="number"?S.position.line:[S.position.line.start,S.position.line.end];return rv(S.filePath,N,S.body)},[u]),x=T.useCallback(()=>{const w=u.map(S=>({id:S.id,file:S.filePath,line:typeof S.position.line=="number"?S.position.line:[S.position.line.start,S.position.line.end],body:S.body,timestamp:S.createdAt}));return pj(w)},[u]);return{comments:u,addComment:h,removeComment:p,updateComment:b,clearAllComments:g,generatePrompt:v,generateAllCommentsPrompt:x}}const yj=20;async function Rx(e,r){const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);if(!a.ok)throw new Error(`Failed to fetch file content: ${a.statusText}`);const u=(await a.text()).split(`
|
|
67
|
-
`);return u.length>0&&u[u.length-1]===""&&u.pop(),{lines:u,totalLines:u.length}}async function xj(e,r,l,a){const s=encodeURIComponent(e),u=new URLSearchParams;r&&u.set("oldRef",r),l&&u.set("newRef",l),a&&a!==e&&u.set("oldPath",a);const c=await fetch(`/api/line-count/${s}?${u}`);if(!c.ok)throw new Error(`Failed to fetch line count: ${c.statusText}`);return c.json()}function vj({baseCommitish:e,targetCommitish:r}){const[l,a]=T.useState({}),[s,u]=T.useState(!1),[c,f]=T.useState(null),[h,p]=T.useState(0),b=T.useRef(new Map),g=T.useRef({});g.current=l;const v=T.useCallback(async L=>{const I=b.current.get(L.path);if(I)return I;const $=(async()=>{const G=g.current[L.path];if(G?.oldContent&&G?.newContent)return G;const M={...G,expandedRanges:G?.expandedRanges||[]};if(L.status!=="added"&&e){const V=L.oldPath||L.path;try{const{lines:Y,totalLines:J}=await Rx(V,e);M.oldContent=Y,M.oldTotalLines=J}catch(Y){console.error("Failed to fetch old file content:",Y),M.oldContent=[],M.oldTotalLines=0}}if(L.status!=="deleted"&&r)try{const{lines:V,totalLines:Y}=await Rx(L.path,r);M.newContent=V,M.newTotalLines=Y}catch(V){console.error("Failed to fetch new file content:",V),M.newContent=[],M.newTotalLines=0}return M})();b.current.set(L.path,$);try{return await $}finally{b.current.delete(L.path)}},[e,r]),x=T.useCallback(L=>{f(L),p(I=>I+1)},[]),w=T.useCallback(async(L,I,$,G=yj)=>{u(!0);try{const M=await v(L);a(V=>{const Y=V[L.path],J=Y?.expandedRanges||M.expandedRanges||[],U=J.findIndex(F=>F.chunkIndex===I&&F.direction===$),X=[...J];if(U>=0&&X[U]){const F=X[U];X[U]={chunkIndex:F.chunkIndex,direction:F.direction,count:F.count+G}}else X.push({chunkIndex:I,direction:$,count:G});return{...V,[L.path]:{oldContent:Y?.oldContent??M.oldContent,newContent:Y?.newContent??M.newContent,oldTotalLines:Y?.oldTotalLines??M.oldTotalLines,newTotalLines:Y?.newTotalLines??M.newTotalLines,expandedRanges:X}}}),x(L.path)}finally{u(!1)}},[v,x]),S=T.useCallback(async(L,I,$)=>{u(!0);try{const G=await v(L);a(M=>{const V=M[L.path],J=[...V?.expandedRanges||G.expandedRanges||[]],U=J.findIndex(D=>D.chunkIndex===I&&D.direction==="up"),X=J.findIndex(D=>D.chunkIndex===I-1&&D.direction==="down");let F=0,O=0;U>=0&&J[U]&&(F=J[U].count),X>=0&&J[X]&&(O=J[X].count);const z=F+O+$,Q=J.filter(D=>!(D.chunkIndex===I-1&&D.direction==="down")),_=Q.findIndex(D=>D.chunkIndex===I&&D.direction==="up");return _>=0&&Q[_]?Q[_]={chunkIndex:I,direction:"up",count:z}:Q.push({chunkIndex:I,direction:"up",count:z}),{...M,[L.path]:{oldContent:V?.oldContent??G.oldContent,newContent:V?.newContent??G.newContent,oldTotalLines:V?.oldTotalLines??G.oldTotalLines,newTotalLines:V?.newTotalLines??G.newTotalLines,expandedRanges:Q}}}),x(L.path)}finally{u(!1)}},[v,x]),N=T.useCallback(async L=>{const I=g.current[L.path];if(I?.oldTotalLines!==void 0||I?.newTotalLines!==void 0)return;const $=L.status!=="added"?e:void 0,G=L.status!=="deleted"?r:void 0;if(!(!$&&!G))try{const{oldLineCount:M,newLineCount:V}=await xj(L.path,$,G,L.oldPath);a(Y=>{const J=Y[L.path];return J?.oldTotalLines!==void 0||J?.newTotalLines!==void 0?Y:{...Y,[L.path]:{...J,expandedRanges:J?.expandedRanges||[],oldTotalLines:M,newTotalLines:V}}}),x(L.path)}catch(M){console.error("Failed to prefetch line count:",M)}},[e,r,x]),E=T.useCallback((L,I,$)=>{const G=l[L];return G&&G.expandedRanges.find(V=>V.chunkIndex===I&&V.direction===$)?.count||0},[l]),C=T.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=L.chunks[$-1];let M;if(!G)M=I.oldStart-1;else{const J=G.oldStart+G.oldLines;M=I.oldStart-J}const V=E(L.path,$,"up"),Y=$>0?E(L.path,$-1,"down"):0;return Math.max(0,M-V-Y)},[E]),j=T.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=l[L.path],M=G?.oldTotalLines||G?.newTotalLines;if(M===void 0)return L.chunks[$+1]?0:-1;if(L.chunks[$+1])return 0;const Y=I.oldStart+I.oldLines-1,J=M-Y,U=E(L.path,$,"down");return Math.max(0,J-U)},[l,E]),B=T.useCallback((L,I,$)=>{const G=l[L.path];if(!G)return I;const M=E(L.path,$,"up"),V=E(L.path,$,"down");if(M===0&&V===0)return I;const Y=G.oldContent||[],J=G.newContent||[],U=[];if(M>0){const O=L.chunks[$-1];let z;O?z=O.oldStart+O.oldLines-1:z=Math.max(0,I.oldStart-1-M);const Q=I.oldStart-1,_=I.newStart-1,D=Math.min(M,Q-z),H=Q-D,A=_-D;for(let te=0;te<D;te++){const ue=H+te+1,fe=A+te+1,pe=Y[ue-1]??J[fe-1]??"";U.push({type:"normal",content:pe,oldLineNumber:ue,newLineNumber:fe,isExpanded:!0})}}if(U.push(...I.lines),V>0){const O=I.oldStart+I.oldLines-1,z=I.newStart+I.newLines-1,Q=L.chunks[$+1],_=Q?Q.oldStart-1:G.oldTotalLines||O,D=Math.min(V,_-O);for(let H=0;H<D;H++){const A=O+H+1,te=z+H+1,ue=Y[A-1]??J[te-1]??"";U.push({type:"normal",content:ue,oldLineNumber:A,newLineNumber:te,isExpanded:!0})}}const X=U[0],F=U[U.length-1];return{...I,lines:U,oldStart:X?.oldLineNumber??I.oldStart,newStart:X?.newLineNumber??I.newStart,oldLines:(F?.oldLineNumber??I.oldStart+I.oldLines-1)-(X?.oldLineNumber??I.oldStart)+1,newLines:(F?.newLineNumber??I.newStart+I.newLines-1)-(X?.newLineNumber??I.newStart)+1}},[l,E]),q=T.useCallback(L=>{const I=[];for(let $=0;$<L.chunks.length;$++){const G=L.chunks[$];if(!G)continue;const M=B(L,G,$),V=C(L,G,$),Y=j(L,G,$),J=I[I.length-1];if(J&&V===0){J.lines=[...J.lines,...M.lines],J.originalIndices.push($),J.hiddenLinesAfter=Y;const U=J.lines[J.lines.length-1];J.oldLines=(U?.oldLineNumber??J.oldStart+J.oldLines-1)-J.oldStart+1,J.newLines=(U?.newLineNumber??J.newStart+J.newLines-1)-J.newStart+1}else I.push({...M,originalIndices:[$],hiddenLinesBefore:V,hiddenLinesAfter:Y})}return I},[B,C,j]);return{expandedState:l,isLoading:s,lastUpdatedFilePath:c,lastUpdatedAt:h,expandLines:w,expandAllBetweenChunks:S,prefetchFileContent:N,getMergedChunks:q,getHiddenLinesBefore:C,getHiddenLinesAfter:j}}var lv=(e=>(e.DEFAULT="default",e.WORKING="working",e.STAGED="staged",e.DOT="dot",e.SPECIFIC="specific",e))(lv||{});function wj(e){const r=T.useRef(null),l=T.useRef(null),a=T.useRef(0),s=5,u=3e3,[c,f]=T.useState({isWatchEnabled:!1,diffMode:lv.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[h,p]=T.useState(null),b=T.useCallback(()=>{if(!r.current)try{const x=new EventSource("/api/watch");r.current=x,x.onopen=()=>{console.log("Connected to file watch service"),f(w=>({...w,connectionStatus:"connected"})),a.current=0,p(null)},x.onmessage=w=>{try{const S=JSON.parse(w.data);switch(S.type){case"connected":f(N=>({...N,isWatchEnabled:!0,diffMode:S.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",S.changeType),f(N=>({...N,shouldReload:!0,lastChangeTime:new Date,lastChangeType:S.changeType}));break;case"error":console.error("File watch error:",S.message),p(S.message||"File watch error occurred");break}}catch(S){console.error("Error parsing watch event:",S)}},x.onerror=()=>{console.log("File watch connection lost"),f(w=>({...w,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),a.current<s?(f(w=>({...w,connectionStatus:"reconnecting"})),a.current+=1,l.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${a.current}/${s})...`),b()},u)):(console.error("Max reconnection attempts reached"),p("Lost connection to file watch service"))}}catch(x){console.error("Failed to connect to file watch service:",x),p("Failed to connect to file watch service")}},[s,u]),g=T.useCallback(async()=>{if(!c.isReloading){f(x=>({...x,isReloading:!0}));try{e&&await e(),f(x=>({...x,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(x){console.error("Reload failed:",x),p("Failed to reload diff data"),f(w=>({...w,isReloading:!1}))}}},[e,c.isReloading]),v=()=>{r.current&&(r.current.close(),r.current=null),l.current&&(clearTimeout(l.current),l.current=null)};return T.useEffect(()=>(b(),v),[b]),T.useEffect(()=>v,[]),{shouldReload:c.shouldReload,isConnected:c.connectionStatus==="connected",error:h,reload:g,watchState:c}}const nh={SCROLL_CONTAINER:"main.overflow-y-auto"};function tl(e,r){const l=`file-${e.fileIndex}-chunk-${e.chunkIndex}-line-${e.lineIndex}`;return r==="split"?`${l}-${e.side}`:l}function iv(e,r){return`${e}:${r}`}function Sj(e,r){const l=r[e.fileIndex]?.chunks[e.chunkIndex]?.lines[e.lineIndex];return l&&(l.type==="add"||l.type==="delete"||l.type==="normal")?l.type:null}function Sn(e,r){const l=Sj(e,r);return l?l==="normal"?!0:l==="delete"?e.side==="left":l==="add"?e.side==="right":!1:!1}function av(e,r){return Sn(e,r)?e:{...e,side:e.side==="left"?"right":"left"}}const Lx={VIEWPORT_OFFSET_RATIO:1/3};function kj(e,r,l,a){return{line:s=>{const u=e[s.fileIndex];return!u||a?.has(u.path)?!1:l==="unified"||Sn(s,e)},chunk:s=>{const u=e[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="normal")return!1;if(s.lineIndex===0)return!0;const f=u.chunks[s.chunkIndex]?.lines[s.lineIndex-1];return!f||f.type==="normal"},comment:s=>{const u=e[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="delete")return!1;const f=c.newLineNumber;if(!f)return!1;const h=iv(u.path,f);return r.has(h)},file:s=>s.chunkIndex===0&&s.lineIndex===0}}function Ej(){return e=>{const r=document.getElementById(e);if(!r)return;const l=document.querySelector(nh.SCROLL_CONTAINER);if(!l)throw new Error(`Scrollable container (${nh.SCROLL_CONTAINER}) not found`);const a=r.getBoundingClientRect(),s=l.getBoundingClientRect(),u=l.clientHeight,c=l.scrollTop,f=Math.max(s.top,0),h=Math.min(s.bottom,window.innerHeight);if(!(a.top>=f&&a.bottom<=h)){const S=Cj(r,l)-u*Lx.VIEWPORT_OFFSET_RATIO;l.scrollTop=Math.max(0,S);return}const b=a.bottom>Math.min(s.bottom,window.innerHeight),v=r.offsetTop-l.offsetTop-u*Lx.VIEWPORT_OFFSET_RATIO,x=v>c;b&&x&&(l.scrollTop=Math.max(0,v))}}function Cj(e,r){let l=e,a=0;for(;l&&l!==r&&l.offsetParent;)a+=l.offsetTop,l=l.offsetParent;return l&&l!==r&&(a+=l.offsetTop),a}function Nj(e){return e||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function Aj(e,r,l){return l&&e.fileIndex===r.fileIndex&&e.chunkIndex===r.chunkIndex&&e.lineIndex===r.lineIndex}function Tj(e,r,l){let{fileIndex:a,chunkIndex:s,lineIndex:u}=e;const c=l.length;let f=0;if(r==="next")for(u++;f<c;){if(l[a]?.chunks[s]?.lines[u])return{...e,fileIndex:a,chunkIndex:s,lineIndex:u};s++,u=0,l[a]?.chunks[s]||(a++,s=0,u=0,a>=c&&(a=0,f++))}else for(u--;f<c;){if(u<0)if(s--,s<0){a--,a<0&&(a=c-1,f++);const h=l[a];if(h&&h.chunks.length>0){s=h.chunks.length-1;const p=h.chunks[s];u=p&&p.lines.length>0?p.lines.length-1:-1}else s=-1,u=-1}else{const h=l[a]?.chunks[s];u=h&&h.lines.length>0?h.lines.length-1:-1}if(u>=0&&l[a]?.chunks[s]?.lines[u])return{...e,fileIndex:a,chunkIndex:s,lineIndex:u};u<0||u--}return null}function jj(e,r,l,a,s){let u=e,c=!1;for(;u;){const f=Tj(u,r,a);if(!f||(u=f,Aj(u,e,c)))break;if(c=!0,l(u,a)){const h=av(u,a);return{position:h,scrollTarget:tl(h,s)}}}return{position:null,scrollTarget:null}}function _j({files:e,comments:r,viewMode:l=Xa,reviewedFiles:a,onToggleReviewed:s,onCreateComment:u,onCopyAllComments:c,onDeleteAllComments:f,onShowCommentsList:h,onRefresh:p}){const[b,g]=T.useState(null),[v,x]=T.useState(!1),w=T.useMemo(()=>Ej(),[]),S=T.useMemo(()=>{const V=new Map;return r.forEach(Y=>{const J=Array.isArray(Y.line)?Y.line[0]:Y.line,U=iv(Y.file,J);V.has(U)||V.set(U,[]),V.get(U)?.push(Y)}),V},[r]),N=T.useMemo(()=>kj(e,S,l,a),[e,S,l,a]),E=T.useCallback((V,Y)=>{if(e.length===0)return{position:null,scrollTarget:null};const J=Nj(b);return jj(J,V,Y,e,l)},[b,e,l]),C=T.useCallback(V=>Y=>{const J=E(Y,V);J.position&&(g(J.position),J.scrollTarget&&w(J.scrollTarget))},[E,w]),j=T.useMemo(()=>C(N.line),[C,N.line]),B=T.useMemo(()=>C(N.chunk),[C,N.chunk]),q=T.useMemo(()=>C(N.file),[C,N.file]),L=T.useMemo(()=>C(N.comment),[C,N.comment]),I=T.useCallback(V=>{if(!b||l!=="split")return;let Y={...b,side:V};const J=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];if(J){if(V==="left"&&J.type==="add"&&b.lineIndex>0){if(e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex-1]?.type==="delete"){Y={...Y,lineIndex:b.lineIndex-1},g(Y),w(tl(Y,l));return}}else if(V==="right"&&J.type==="delete"&&e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex+1]?.type==="add"){Y={...Y,lineIndex:b.lineIndex+1},g(Y),w(tl(Y,l));return}}if(!Sn(Y,e)){const U=e[b.fileIndex];if(!U)return;const X=U.chunks[b.chunkIndex];if(X){for(let F=b.lineIndex+1;F<X.lines.length;F++){const O={...Y,lineIndex:F};if(Sn(O,e)){Y=O;break}}if(!Sn(Y,e))for(let F=b.lineIndex-1;F>=0;F--){const O={...Y,lineIndex:F};if(Sn(O,e)){Y=O;break}}}if(!Sn(Y,e)){for(let F=b.chunkIndex+1;F<U.chunks.length;F++){const O=U.chunks[F];if(O){for(let z=0;z<O.lines.length;z++){const Q={...Y,chunkIndex:F,lineIndex:z};if(Sn(Q,e)){Y=Q;break}}if(Sn(Y,e))break}}if(!Sn(Y,e))for(let F=b.chunkIndex-1;F>=0;F--){const O=U.chunks[F];if(O){for(let z=O.lines.length-1;z>=0;z--){const Q={...Y,chunkIndex:F,lineIndex:z};if(Sn(Q,e)){Y=Q;break}}if(Sn(Y,e))break}}}}g(Y),w(tl(Y,l))},[b,l,w,e]),$=T.useCallback(()=>{const V=document.querySelector(nh.SCROLL_CONTAINER);if(!V)return;const Y=V.getBoundingClientRect(),J=Y.top+Y.height/2;let U=1/0,X=null;e.forEach((F,O)=>{F.chunks.forEach((z,Q)=>{z.lines.forEach((_,D)=>{const H=l==="split"?["left","right"]:["right"];for(const A of H){const te={fileIndex:O,chunkIndex:Q,lineIndex:D,side:A};if(l==="split"&&!Sn(te,e))continue;const ue=tl(te,l),fe=document.getElementById(ue);if(fe){const pe=fe.getBoundingClientRect(),me=pe.top+pe.height/2,de=Math.abs(me-J);pe.top<Y.bottom&&pe.bottom>Y.top&&de<U&&(U=de,X=te)}}})})}),X&&g(X)},[e,l,g]),G=T.useCallback(V=>{if(!V){g(null);return}const Y=av(V,e);g(Y),w(tl(Y,l))},[e,l,w]),M={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return lt("j, down",()=>j("next"),M,[j]),lt("k, up",()=>j("prev"),M,[j]),lt("n",()=>B("next"),M,[B]),lt("p",()=>B("prev"),M,[B]),lt("shift+n",()=>L("next"),M,[L]),lt("shift+p",()=>L("prev"),M,[L]),lt("]",()=>q("next"),{...M,useKey:!0},[q]),lt("[",()=>q("prev"),{...M,useKey:!0},[q]),lt("{",()=>{e.length>0&&(g({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(tl({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))},{...M,useKey:!0},[e,l,w]),lt("}",()=>{if(e.length>0){const V=e.length-1,Y=e[V];Y&&Y.chunks.length>0&&(g({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(tl({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))}},{...M,useKey:!0},[e,l,w]),lt("h, left",()=>I("left"),{...M,enabled:l==="split"},[I,l]),lt("l, right",()=>I("right"),{...M,enabled:l==="split"},[I,l]),lt("v",()=>{if(b){const V=e[b.fileIndex];V&&s(V.path)}},M,[b,e,s]),lt("shift+r",()=>{p&&p()},M,[p]),lt("c",()=>{if(b&&u){const V=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];V&&V.type!=="delete"&&u()}},M,[b,e,u]),lt("?",()=>x(!v),{...M,useKey:!0},[v]),lt(".",V=>{V.ctrlKey||V.altKey||V.shiftKey||V.metaKey||($(),V.preventDefault())},{...M,useKey:!0,preventDefault:!1},[$]),lt("shift+c",()=>{c&&c()},{...M,scopes:["navigation","comments-list"]},[c]),lt("shift+d",()=>{f&&f()},{...M,scopes:["navigation","comments-list"]},[f]),lt("shift+l",()=>{h&&h()},M,[h]),{cursor:b,isHelpOpen:v,setIsHelpOpen:x,setCursorPosition:G}}function Rj(e,r,l,a,s,u){const[c,f]=T.useState([]),[h,p]=T.useState(new Map);T.useEffect(()=>{if(!e||!r)return;const E=Ha.getViewedFiles(e,r,l,a,u);(async()=>{if(s&&s.length>0){const j=[],B=new Set(E.map(q=>q.filePath));for(const q of s)if((q.isGenerated||q.status==="deleted")&&!B.has(q.path))try{const L=_x(q),I=await jx(L),$={filePath:q.path,viewedAt:new Date().toISOString(),diffContentHash:I};j.push($)}catch(L){console.error("Failed to generate hash for auto-collapsed file:",L)}if(j.length>0){const q=[...E,...j];Ha.saveViewedFiles(e,r,q,l,a,u),f(q);return}}f(E)})()},[e,r,l,a,u]);const b=T.useCallback(E=>{!e||!r||(Ha.saveViewedFiles(e,r,E,l,a,u),f(E))},[e,r,l,a,u]),g=T.useMemo(()=>new Set(c.map(E=>E.filePath)),[c]),v=T.useCallback(E=>c.find(C=>C.filePath===E),[c]),x=T.useCallback(async E=>{const C=h.get(E.path);if(C)return C;const j=_x(E),B=await jx(j);return p(q=>new Map(q).set(E.path,B)),B},[h]),w=T.useCallback(async(E,C)=>{const j=v(E);if(!j)return!1;const B=await x(C);return j.diffContentHash!==B},[v,x]),S=T.useCallback(async(E,C)=>{if(v(E)){const B=c.filter(q=>q.filePath!==E);b(B)}else{const B=await x(C),q={filePath:E,viewedAt:new Date().toISOString(),diffContentHash:B},L=[...c,q];b(L)}},[c,v,x,b]),N=T.useCallback(()=>{b([]),p(new Map)},[b]);return{viewedFiles:g,toggleFileViewed:S,isFileContentChanged:w,getViewedFileRecord:v,clearViewedFiles:N}}const Dx={mobileMax:767,desktopMin:1024},Ws={mobile:`(max-width: ${Dx.mobileMax}px)`,desktop:`(min-width: ${Dx.desktopMin}px)`},Lj=()=>typeof window>"u"?{isMobile:!1,isDesktop:!0}:{isMobile:window.matchMedia(Ws.mobile).matches,isDesktop:window.matchMedia(Ws.desktop).matches};function Dj(){const[e,r]=T.useState(()=>Lj());return T.useEffect(()=>{if(typeof window>"u")return;const l=window.matchMedia(Ws.mobile),a=window.matchMedia(Ws.desktop),s=()=>{r({isMobile:l.matches,isDesktop:a.matches})};return s(),l.addEventListener("change",s),a.addEventListener("change",s),()=>{l.removeEventListener("change",s),a.removeEventListener("change",s)}},[]),e}const yd=new Map;let Oj=0;function Ox(e){return yd.has(e)||yd.set(e,`file-${++Oj}`),yd.get(e)??""}function Mj(e,r,l){for(let a=0;a<e.chunks.length;a++){const s=e.chunks[a];if(s)for(let u=0;u<s.lines.length;u++){const c=s.lines[u];if(!c)continue;if((c.newLineNumber||c.oldLineNumber)===l)return{fileIndex:r,chunkIndex:a,lineIndex:u,side:c.newLineNumber?"right":"left"}}}return null}function zj(e,r){const l=r.findIndex(u=>u.path===e.file);if(l===-1)return null;const a=r[l];if(!a)return null;const s=Array.isArray(e.line)?e.line[1]:e.line;return Mj(a,l,s)}const Bj=[],Fj=[],ov="difit.sidebarWidth",sv=200,uv=600,xd=320,Ij=()=>{if(typeof window>"u")return xd;const e=window.localStorage.getItem(ov);if(!e)return xd;const r=Number.parseInt(e,10);return Number.isFinite(r)?Math.min(uv,Math.max(sv,r)):xd};function Uj(){const[e,r]=T.useState(null),[l,a]=T.useState(Xa),s=T.useRef(!1),[u,c]=T.useState(!0),[f,h]=T.useState(!0),[p,b]=T.useState(null),[g,v]=T.useState(!1),[x,w]=T.useState(Ij),[S,N]=T.useState(!1),[E,C]=T.useState(!0),[j,B]=T.useState(!1),[q,L]=T.useState(!1),[I,$]=T.useState(!1),[G,M]=T.useState(!1),[V,Y]=T.useState(!1),[J,U]=T.useState(new Set),X=T.useRef(!1),F=T.useRef(null),[O,z]=T.useState(null),[Q,_]=T.useState(""),[D,H]=T.useState(""),[A,te]=T.useState(""),[ue,fe]=T.useState(""),pe=T.useRef(!1),{settings:me,updateSettings:de}=hj(),{isMobile:ge,isDesktop:xe}=Dj(),{comments:be,addComment:ke,removeComment:Ne,updateComment:Pe,clearAllComments:Qe,generatePrompt:ze,generateAllCommentsPrompt:Bt}=bj(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.repositoryId),pt=T.useMemo(()=>be.map(ie=>({id:ie.id,file:ie.filePath,line:typeof ie.position.line=="number"?ie.position.line:[ie.position.line.start,ie.position.line.end],body:ie.body,timestamp:ie.createdAt,codeContent:ie.codeSnapshot?.content,side:ie.position.side})),[be]),gt=T.useMemo(()=>{const ie=new Map;return pt.forEach(ve=>{const _e=ie.get(ve.file);_e?_e.push(ve):ie.set(ve.file,[ve])}),ie},[pt]),Ft=ge&&be.length>0,{viewedFiles:it,toggleFileViewed:It,clearViewedFiles:at}=Rj(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.files,e?.repositoryId);T.useEffect(()=>{X.current=!1},[e?.repositoryId,e?.commit]),T.useEffect(()=>{X.current||(U(new Set(it)),X.current=!0)},[it]);const $n=T.useCallback(ie=>{const ve=F.current,_e=document.getElementById(Ox(ie));if(!ve||!_e)return;const Ee=ve.getBoundingClientRect(),Je=_e.getBoundingClientRect(),fn=ve.scrollTop+(Je.top-Ee.top);ve.scrollTo({top:Math.max(0,fn),behavior:"smooth"})},[]),ae=T.useCallback(async ie=>{if(!e)return;const ve=e.files.find(Ee=>Ee.path===ie);if(!ve)return;const _e=it.has(ie);await It(ie,ve),U(Ee=>{const Je=new Set(Ee);return _e?Je.delete(ie):Je.add(ie),Je}),_e||setTimeout(()=>{$n(ie)},100)},[e,$n,It,it]),ye=T.useCallback(ie=>{U(ve=>{const _e=new Set(ve);return _e.has(ie)?_e.delete(ie):_e.add(ie),_e})},[]),je=T.useCallback(ie=>{e&&U(ie?new Set(e.files.map(ve=>ve.path)):new Set)},[e]),Me=T.useCallback(ie=>{s.current=!0,a(ie)},[]),{isLoading:Ge,expandLines:Yt,expandAllBetweenChunks:Fn,prefetchFileContent:Lt,getMergedChunks:mt,lastUpdatedFilePath:jt,lastUpdatedAt:Ke}=vj({baseCommitish:e?.baseCommitish,targetCommitish:e?.targetCommitish}),En=T.useRef(mt);T.useEffect(()=>{En.current=mt},[mt]);const[Xt,zi]=T.useState(new Map);T.useEffect(()=>{if(!e){zi(new Map);return}const ie=new Map;e.files.forEach(ve=>{ie.set(ve.path,En.current(ve))}),zi(ie)},[e]),T.useEffect(()=>{if(!e||!jt)return;const ie=e.files.find(ve=>ve.path===jt);ie&&zi(ve=>{const _e=new Map(ve);return _e.set(ie.path,En.current(ie)),_e})},[e,jt,Ke]);const zl=T.useMemo(()=>e?e.files.map(ie=>({...ie,chunks:Xt.get(ie.path)||ie.chunks})):[],[e,Xt]),[ul,Ar]=T.useState(null),{shouldReload:tr,reload:cl,watchState:Tr}=wj(async()=>{await rr()}),{cursor:nr,isHelpOpen:to,setIsHelpOpen:Bl,setCursorPosition:Vn}=_j({files:zl,comments:pt,viewMode:l,reviewedFiles:it,onToggleReviewed:ae,onCreateComment:()=>{nr&&Ar({fileIndex:nr.fileIndex,chunkIndex:nr.chunkIndex,lineIndex:nr.lineIndex})},onCopyAllComments:()=>{be.length>0&&Cn()},onDeleteAllComments:()=>{be.length>0&&confirm("Delete all comments?")&&Qe()},onShowCommentsList:()=>{M(!0)},onRefresh:()=>{cl()}}),vu=T.useCallback((ie,ve,_e,Ee)=>{Vn({fileIndex:ie,chunkIndex:ve,lineIndex:_e,side:Ee})},[Vn]),no=T.useCallback(()=>{Ar(null)},[Ar]),ro=T.useCallback(ie=>ze(ie.id),[ze]),lo=ie=>{ie.preventDefault(),B(!0);const ve=ie.clientX,_e=x,Ee=fn=>{const In=Math.max(sv,Math.min(uv,_e+(fn.clientX-ve)));w(In)},Je=()=>{B(!1),document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",Je)};document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",Je)},rr=T.useCallback(async(ie,ve)=>{try{const _e=new URLSearchParams({ignoreWhitespace:String(u)});ie&&_e.set("base",ie),ve&&_e.set("target",ve);const Ee=await fetch(`/api/diff?${_e}`);if(!Ee.ok)throw new Error("Failed to fetch diff data");const Je=await Ee.json();if(r(Je),Je.baseCommitish&&te(Je.baseCommitish),Je.targetCommitish&&fe(Je.targetCommitish),!pe.current){const fn=Je.requestedBaseCommitish??Je.baseCommitish,In=Je.requestedTargetCommitish??Je.targetCommitish;fn&&_(fn),In&&H(In)}Je.mode&&!s.current&&a(JS(Je.mode))}catch(_e){b(_e instanceof Error?_e.message:"Unknown error")}finally{h(!1)}},[u]);T.useEffect(()=>{rr()},[rr]),T.useEffect(()=>{ge&&l!=="unified"&&a("unified")},[l,ge]),T.useEffect(()=>{try{window.localStorage.setItem(ov,String(x))}catch{}},[x]),T.useEffect(()=>{fetch("/api/revisions").then(ie=>ie.ok?ie.json():null).then(ie=>{z(ie),ie?.resolvedBase&&te(ve=>ve||ie.resolvedBase||""),ie?.resolvedTarget&&fe(ve=>ve||ie.resolvedTarget||"")}).catch(()=>z(null))},[]);const Fl=T.useCallback(async(ie,ve)=>{ie===Q&&ve===D||(pe.current=!0,_(ie),H(ve),h(!0),b(null),await rr(ie,ve))},[Q,D,rr]),Bi=T.useRef(!1);T.useEffect(()=>{e?.clearComments&&!Bi.current&&(Bi.current=!0,Qe(),at(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[e?.clearComments,Qe,at]),T.useEffect(()=>{e&&(it.size<e.files.length?$(!1):it.size===e.files.length&&!I&&(L(!0),$(!0),setTimeout(()=>{L(!1)},1e3)))},[it.size,e,I]),T.useEffect(()=>{if(be.length>0){const ve=be.map(Ee=>({id:Ee.id,file:Ee.filePath,line:typeof Ee.position.line=="number"?Ee.position.line:[Ee.position.line.start,Ee.position.line.end],body:Ee.body,timestamp:Ee.createdAt,side:Ee.position.side})),_e=JSON.stringify({comments:ve});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:_e}).catch(Ee=>{console.error("Failed to sync comments:",Ee)})}const ie=()=>{if(be.length>0){const ve=be.map(Ee=>({id:Ee.id,file:Ee.filePath,line:typeof Ee.position.line=="number"?Ee.position.line:[Ee.position.line.start,Ee.position.line.end],body:Ee.body,timestamp:Ee.createdAt,side:Ee.position.side})),_e=JSON.stringify({comments:ve});navigator.sendBeacon("/api/comments",_e)}};return window.addEventListener("beforeunload",ie),()=>{window.removeEventListener("beforeunload",ie)}},[be]),T.useEffect(()=>{const ie=new EventSource("/api/heartbeat");return ie.onopen=()=>{console.log("Connected to server heartbeat")},ie.onerror=()=>{console.log("Server connection lost"),ie.close()},()=>{ie.close()}},[]);const io=T.useCallback((ie,ve,_e,Ee,Je)=>(ke({filePath:ie,body:_e,side:Je||"new",line:typeof ve=="number"?ve:{start:ve[0],end:ve[1]},codeSnapshot:Ee?{content:Ee,language:void 0}:void 0}),Promise.resolve()),[ke]),Cn=async()=>{try{const ie=Bt();await navigator.clipboard.writeText(ie),v(!0),setTimeout(()=>v(!1),2e3)}catch(ie){console.error("Failed to copy all comments prompt:",ie)}},At=ie=>{if(!e)return;const ve=zj(ie,e.files);ve&&Vn(ve)},Ut=T.useCallback(async(ie,ve)=>{try{const _e=await fetch("/api/open-in-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:ie,line:ve,editor:me.editor})});if(!_e.ok){const Ee=await _e.json().catch(()=>null);let Je=_e.statusText;Ee&&typeof Ee=="object"&&"error"in Ee&&typeof Ee.error=="string"&&(Je=Ee.error),console.error("Failed to open file in editor:",Je)}}catch(_e){console.error("Failed to open file in editor:",_e)}},[me.editor]),jr=ie=>{Vn(null);const ve=ie.target,_e=ve.closest('[data-comment-button="true"]'),Ee=ve.closest('[data-open-in-editor-button="true"]');!_e&&!Ee&&Fi(ie)},Fi=ie=>{document.querySelectorAll('form[data-empty="true"]').forEach(_e=>{_e.contains(ie.target)||_e.querySelector('button[type="button"]')?.click()})};return f?y.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:y.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):p?y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:p})]}):e?y.jsx(t8,{children:y.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:jr,children:[y.jsxs("header",{className:`bg-github-bg-secondary border-b border-github-border flex ${ge?"flex-col":"flex-row items-center"}`,children:[y.jsxs("div",{className:`flex items-center justify-between w-full ${ge?"px-3 py-2 gap-3":"px-4 py-3 gap-4 w-auto"} ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:ge?"100%":E?`${x}px`:"auto",minWidth:ge?"0px":E?"200px":"auto",maxWidth:ge?"none":E?"600px":"none"},children:[y.jsx("h1",{children:y.jsx(ij,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("button",{onClick:()=>C(!E),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:E?"Collapse file tree":"Expand file tree","aria-expanded":E,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:E?y.jsx(MS,{size:18}):y.jsx(BS,{size:18})}),y.jsx("button",{onClick:()=>N(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:y.jsx(Kx,{size:18})})]})]}),!ge&&y.jsx("div",{className:`border-r border-github-border ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),y.jsxs("div",{className:`flex-1 flex flex-wrap items-center justify-between ${ge?"px-3 pb-2 gap-3":"px-4 py-3 gap-4"}`,children:[y.jsxs("div",{className:`flex flex-wrap items-center ${ge?"gap-2":"gap-3"}`,children:[!ge&&y.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[y.jsxs("button",{onClick:()=>Me("split"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="split"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(cS,{size:14}),"Split"]}),y.jsxs("button",{onClick:()=>Me("unified"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="unified"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(XS,{size:14}),"Unified"]})]}),y.jsx(Jx,{checked:u,onChange:c,label:"Ignore Whitespace",title:u?"Show whitespace changes":"Ignore whitespace changes"}),y.jsx(aj,{shouldReload:tr,isReloading:Tr.isReloading,onReload:cl,changeType:Tr.lastChangeType,compact:ge})]}),y.jsxs("div",{className:`flex flex-wrap items-center text-sm text-github-text-secondary ${ge?"gap-3":"gap-4"}`,children:[!ge&&be.length>0&&y.jsx(Bb,{commentsCount:be.length,isCopiedAll:g,onCopyAll:Cn,onDeleteAll:Qe,onViewAll:()=>M(!0)}),y.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[y.jsxs("div",{className:"text-xs relative",children:[it.size===e.files.length?"All diffs difit-ed!":`${it.size} / ${e.files.length} files viewed`,y.jsx(dj,{isActive:q})]}),y.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:y.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(e.files.length-it.size)/e.files.length*100}%`,backgroundColor:(()=>{const ie=(e.files.length-it.size)/e.files.length*100;return ie>50?"var(--color-github-accent)":ie>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),O?y.jsx(JE,{options:O,baseRevision:Q,targetRevision:D,resolvedBaseRevision:A,resolvedTargetRevision:ue,onSelectDiff:(ie,ve)=>{Fl(ie,ve)},onOpenAdvanced:()=>Y(!0),compact:!xe}):y.jsxs("span",{className:"text-xs",children:["Reviewing:"," ",y.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:e.commit.includes("...")?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"text-github-text-secondary font-medium",children:[e.commit.split("...")[0],"..."]}),y.jsx("span",{className:"font-medium",children:e.commit.split("...")[1]})]}):e.commit})]})]})]})]}),O&&y.jsx(oj,{isOpen:V,onClose:()=>Y(!1),options:O,baseRevision:Q,targetRevision:D,resolvedBaseRevision:A,resolvedTargetRevision:ue,onApply:(ie,ve)=>{Fl(ie,ve)}},V?`${Q}:${D}`:"closed"),ge&&E&&y.jsx("button",{type:"button","aria-label":"Close file tree",className:"fixed inset-0 bg-black/40 z-30",onClick:()=>C(!1)}),y.jsxs("div",{className:"flex flex-1 overflow-hidden relative",children:[y.jsx("div",{className:`relative overflow-hidden ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:ge?"0px":E?`${x}px`:"0px"},children:y.jsxs("aside",{id:"file-tree-panel",className:`bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col ${ge?"fixed inset-y-0 left-0 z-40 w-[min(85vw,360px)] transition-transform duration-300 ease-out":"relative"}`,style:{width:ge?"min(85vw, 360px)":`${x}px`,minWidth:ge?"0px":"200px",maxWidth:ge?"none":"600px",height:"100%",transform:ge?E?"translateX(0)":"translateX(-100%)":void 0},children:[y.jsx("div",{className:"flex-1 overflow-y-auto",children:y.jsx(nj,{files:e.files,onScrollToFile:$n,comments:be.map(ie=>({id:ie.id,file:ie.filePath,line:typeof ie.position.line=="number"?ie.position.line:[ie.position.line.start,ie.position.line.end],body:ie.body,timestamp:ie.createdAt,codeContent:ie.codeSnapshot?.content})),reviewedFiles:it,onToggleReviewed:ae,selectedFileIndex:nr?.fileIndex??null})}),!ge&&y.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[y.jsxs("button",{onClick:()=>Bl(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[y.jsx(TS,{size:16}),y.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),y.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[y.jsx("span",{className:"text-sm",children:"Star on GitHub"}),y.jsx(rj,{style:{height:"18px",width:"18px"}})]})]})]})}),!ge&&y.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px"},onMouseDown:lo,title:"Drag to resize file list"}),y.jsx("main",{ref:F,className:`flex-1 overflow-y-auto ${Ft?"pb-16":""}`,children:e.files.map((ie,ve)=>{const _e=gt.get(ie.path)??Bj,Ee=Xt.get(ie.path)??Fj;return y.jsx("div",{id:Ox(ie.path),className:"mb-6",children:y.jsx(ej,{file:ie,comments:_e,diffMode:l,reviewedFiles:it,onToggleReviewed:ae,collapsedFiles:J,onToggleCollapsed:ye,onToggleAllCollapsed:je,onAddComment:io,onGeneratePrompt:ro,onRemoveComment:Ne,onUpdateComment:Pe,onOpenInEditor:me.editor==="none"?void 0:Ut,syntaxTheme:me.syntaxTheme,baseCommitish:e.baseCommitish,targetCommitish:e.targetCommitish,cursor:nr?.fileIndex===ve?nr:null,fileIndex:ve,onLineClick:vu,commentTrigger:ul?.fileIndex===ve?ul:null,onCommentTriggerHandled:no,mergedChunks:Ee,expandLines:Yt,expandAllBetweenChunks:Fn,prefetchFileContent:Lt,isExpandLoading:Ge})},ie.path)})})]}),Ft&&y.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-20 bg-github-bg-secondary border-t border-github-border px-4 py-2 flex justify-end",children:y.jsx(Bb,{commentsCount:be.length,isCopiedAll:g,onCopyAll:Cn,onDeleteAll:Qe,onViewAll:()=>M(!0),direction:"up",compact:!0})}),y.jsx(fj,{isOpen:S,onClose:()=>N(!1),settings:me,onSettingsChange:de}),y.jsx(lj,{isOpen:to,onClose:()=>Bl(!1)}),y.jsx(WS,{isOpen:G,onClose:()=>M(!1),onNavigate:At,comments:be.map(ie=>({id:ie.id,file:ie.filePath,line:typeof ie.position.line=="number"?ie.position.line:[ie.position.line.start,ie.position.line.end],body:ie.body,timestamp:ie.createdAt,codeContent:ie.codeSnapshot?.content})),onRemoveComment:Ne,onGeneratePrompt:ie=>ze(ie.id),onUpdateComment:Pe})]})}):y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const cv=document.getElementById("root");if(!cv)throw new Error("Root element not found");_2.createRoot(cv).render(y.jsx(Jt.StrictMode,{children:y.jsx(q2,{initiallyActiveScopes:["navigation"],children:y.jsx(Uj,{})})}));export{eu as g};
|