difit 2.0.11 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.ja.md +17 -2
  2. package/README.ko.md +17 -2
  3. package/README.md +17 -2
  4. package/README.zh.md +17 -2
  5. package/dist/cli/index.js +50 -0
  6. package/dist/cli/index.test.js +141 -12
  7. package/dist/cli/utils.js +2 -2
  8. package/dist/cli/utils.test.js +10 -1
  9. package/dist/client/assets/index-BtavrLIu.css +1 -0
  10. package/dist/client/assets/index-Bx2n4Aep.js +210 -0
  11. package/dist/client/assets/{prism-csharp-Dc46Fjt0.js → prism-csharp-BTkEzOdP.js} +1 -1
  12. package/dist/client/assets/{prism-java-CqBdPW_L.js → prism-java-B6gV82l4.js} +1 -1
  13. package/dist/client/assets/{prism-php-BLhwjsTl.js → prism-php-gnpy0VQF.js} +1 -1
  14. package/dist/client/assets/prism-protobuf-DiQ_z8B5.js +1 -0
  15. package/dist/client/assets/{prism-ruby-ExhPumJe.js → prism-ruby-CMkpRodx.js} +1 -1
  16. package/dist/client/assets/{prism-solidity-BCgmGzF-.js → prism-solidity-BDXCWkss.js} +1 -1
  17. package/dist/client/index.html +2 -2
  18. package/dist/server/file-watcher.d.ts +23 -0
  19. package/dist/server/file-watcher.js +236 -0
  20. package/dist/server/file-watcher.test.d.ts +1 -0
  21. package/dist/server/file-watcher.test.js +225 -0
  22. package/dist/server/git-diff.d.ts +2 -0
  23. package/dist/server/git-diff.js +47 -4
  24. package/dist/server/git-diff.test.js +209 -0
  25. package/dist/server/server.d.ts +5 -2
  26. package/dist/server/server.js +66 -16
  27. package/dist/server/server.test.js +3 -3
  28. package/dist/types/watch.d.ts +30 -0
  29. package/dist/types/watch.js +8 -0
  30. package/package.json +3 -1
  31. package/dist/client/assets/index-B6vRltPu.css +0 -1
  32. package/dist/client/assets/index-CjocZrF8.js +0 -200
@@ -1,200 +0,0 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))c(y);new MutationObserver(y=>{for(const b of y)if(b.type==="childList")for(const T of b.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&c(T)}).observe(document,{childList:!0,subtree:!0});function d(y){const b={};return y.integrity&&(b.integrity=y.integrity),y.referrerPolicy&&(b.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?b.credentials="include":y.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function c(y){if(y.ep)return;y.ep=!0;const b=d(y);fetch(y.href,b)}})();function Xd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var gs={exports:{}},kn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Sd;function Mh(){if(Sd)return kn;Sd=1;var r=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(c,y,b){var T=null;if(b!==void 0&&(T=""+b),y.key!==void 0&&(T=""+y.key),"key"in y){b={};for(var _ in y)_!=="key"&&(b[_]=y[_])}else b=y;return y=b.ref,{$$typeof:r,type:c,key:T,ref:y!==void 0?y:null,props:b}}return kn.Fragment=f,kn.jsx=d,kn.jsxs=d,kn}var Ed;function Lh(){return Ed||(Ed=1,gs.exports=Mh()),gs.exports}var s=Lh(),ps={exports:{}},ye={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Nd;function Uh(){if(Nd)return ye;Nd=1;var r=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),j=Symbol.iterator;function Y(p){return p===null||typeof p!="object"?null:(p=j&&p[j]||p["@@iterator"],typeof p=="function"?p:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,N={};function z(p,U,$){this.props=p,this.context=U,this.refs=N,this.updater=$||Z}z.prototype.isReactComponent={},z.prototype.setState=function(p,U){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,U,"setState")},z.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function E(){}E.prototype=z.prototype;function O(p,U,$){this.props=p,this.context=U,this.refs=N,this.updater=$||Z}var L=O.prototype=new E;L.constructor=O,x(L,z.prototype),L.isPureReactComponent=!0;var J=Array.isArray,Q={H:null,A:null,T:null,S:null,V:null},ue=Object.prototype.hasOwnProperty;function ie(p,U,$,K,le,de){return $=de.ref,{$$typeof:r,type:p,key:U,ref:$!==void 0?$:null,props:de}}function W(p,U){return ie(p.type,U,void 0,void 0,void 0,p.props)}function P(p){return typeof p=="object"&&p!==null&&p.$$typeof===r}function ge(p){var U={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function($){return U[$]})}var be=/\/+/g;function se(p,U){return typeof p=="object"&&p!==null&&p.key!=null?ge(""+p.key):U.toString(36)}function Ee(){}function F(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Ee,Ee):(p.status="pending",p.then(function(U){p.status==="pending"&&(p.status="fulfilled",p.value=U)},function(U){p.status==="pending"&&(p.status="rejected",p.reason=U)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function M(p,U,$,K,le){var de=typeof p;(de==="undefined"||de==="boolean")&&(p=null);var te=!1;if(p===null)te=!0;else switch(de){case"bigint":case"string":case"number":te=!0;break;case"object":switch(p.$$typeof){case r:case f:te=!0;break;case m:return te=p._init,M(te(p._payload),U,$,K,le)}}if(te)return le=le(p),te=K===""?"."+se(p,0):K,J(le)?($="",te!=null&&($=te.replace(be,"$&/")+"/"),M(le,U,$,"",function(Te){return Te})):le!=null&&(P(le)&&(le=W(le,$+(le.key==null||p&&p.key===le.key?"":(""+le.key).replace(be,"$&/")+"/")+te)),U.push(le)),1;te=0;var ne=K===""?".":K+":";if(J(p))for(var pe=0;pe<p.length;pe++)K=p[pe],de=ne+se(K,pe),te+=M(K,U,$,de,le);else if(pe=Y(p),typeof pe=="function")for(p=pe.call(p),pe=0;!(K=p.next()).done;)K=K.value,de=ne+se(K,pe++),te+=M(K,U,$,de,le);else if(de==="object"){if(typeof p.then=="function")return M(F(p),U,$,K,le);throw U=String(p),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return te}function w(p,U,$){if(p==null)return p;var K=[],le=0;return M(p,K,"","",function(de){return U.call($,de,le++)}),K}function X(p){if(p._status===-1){var U=p._result;U=U(),U.then(function($){(p._status===0||p._status===-1)&&(p._status=1,p._result=$)},function($){(p._status===0||p._status===-1)&&(p._status=2,p._result=$)}),p._status===-1&&(p._status=0,p._result=U)}if(p._status===1)return p._result.default;throw p._result}var I=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)};function ee(){}return ye.Children={map:w,forEach:function(p,U,$){w(p,function(){U.apply(this,arguments)},$)},count:function(p){var U=0;return w(p,function(){U++}),U},toArray:function(p){return w(p,function(U){return U})||[]},only:function(p){if(!P(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},ye.Component=z,ye.Fragment=d,ye.Profiler=y,ye.PureComponent=O,ye.StrictMode=c,ye.Suspense=S,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,ye.__COMPILER_RUNTIME={__proto__:null,c:function(p){return Q.H.useMemoCache(p)}},ye.cache=function(p){return function(){return p.apply(null,arguments)}},ye.cloneElement=function(p,U,$){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var K=x({},p.props),le=p.key,de=void 0;if(U!=null)for(te in U.ref!==void 0&&(de=void 0),U.key!==void 0&&(le=""+U.key),U)!ue.call(U,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&U.ref===void 0||(K[te]=U[te]);var te=arguments.length-2;if(te===1)K.children=$;else if(1<te){for(var ne=Array(te),pe=0;pe<te;pe++)ne[pe]=arguments[pe+2];K.children=ne}return ie(p.type,le,void 0,void 0,de,K)},ye.createContext=function(p){return p={$$typeof:T,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:b,_context:p},p},ye.createElement=function(p,U,$){var K,le={},de=null;if(U!=null)for(K in U.key!==void 0&&(de=""+U.key),U)ue.call(U,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(le[K]=U[K]);var te=arguments.length-2;if(te===1)le.children=$;else if(1<te){for(var ne=Array(te),pe=0;pe<te;pe++)ne[pe]=arguments[pe+2];le.children=ne}if(p&&p.defaultProps)for(K in te=p.defaultProps,te)le[K]===void 0&&(le[K]=te[K]);return ie(p,de,void 0,void 0,null,le)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(p){return{$$typeof:_,render:p}},ye.isValidElement=P,ye.lazy=function(p){return{$$typeof:m,_payload:{_status:-1,_result:p},_init:X}},ye.memo=function(p,U){return{$$typeof:g,type:p,compare:U===void 0?null:U}},ye.startTransition=function(p){var U=Q.T,$={};Q.T=$;try{var K=p(),le=Q.S;le!==null&&le($,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ee,I)}catch(de){I(de)}finally{Q.T=U}},ye.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},ye.use=function(p){return Q.H.use(p)},ye.useActionState=function(p,U,$){return Q.H.useActionState(p,U,$)},ye.useCallback=function(p,U){return Q.H.useCallback(p,U)},ye.useContext=function(p){return Q.H.useContext(p)},ye.useDebugValue=function(){},ye.useDeferredValue=function(p,U){return Q.H.useDeferredValue(p,U)},ye.useEffect=function(p,U,$){var K=Q.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(p,U)},ye.useId=function(){return Q.H.useId()},ye.useImperativeHandle=function(p,U,$){return Q.H.useImperativeHandle(p,U,$)},ye.useInsertionEffect=function(p,U){return Q.H.useInsertionEffect(p,U)},ye.useLayoutEffect=function(p,U){return Q.H.useLayoutEffect(p,U)},ye.useMemo=function(p,U){return Q.H.useMemo(p,U)},ye.useOptimistic=function(p,U){return Q.H.useOptimistic(p,U)},ye.useReducer=function(p,U,$){return Q.H.useReducer(p,U,$)},ye.useRef=function(p){return Q.H.useRef(p)},ye.useState=function(p){return Q.H.useState(p)},ye.useSyncExternalStore=function(p,U,$){return Q.H.useSyncExternalStore(p,U,$)},ye.useTransition=function(){return Q.H.useTransition()},ye.version="19.1.0",ye}var Ad;function Ns(){return Ad||(Ad=1,ps.exports=Uh()),ps.exports}var V=Ns();const Mn=Xd(V);var hs={exports:{}},zn={},bs={exports:{}},ys={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var _d;function Bh(){return _d||(_d=1,function(r){function f(w,X){var I=w.length;w.push(X);e:for(;0<I;){var ee=I-1>>>1,p=w[ee];if(0<y(p,X))w[ee]=X,w[I]=p,I=ee;else break e}}function d(w){return w.length===0?null:w[0]}function c(w){if(w.length===0)return null;var X=w[0],I=w.pop();if(I!==X){w[0]=I;e:for(var ee=0,p=w.length,U=p>>>1;ee<U;){var $=2*(ee+1)-1,K=w[$],le=$+1,de=w[le];if(0>y(K,I))le<p&&0>y(de,K)?(w[ee]=de,w[le]=I,ee=le):(w[ee]=K,w[$]=I,ee=$);else if(le<p&&0>y(de,I))w[ee]=de,w[le]=I,ee=le;else break e}}return X}function y(w,X){var I=w.sortIndex-X.sortIndex;return I!==0?I:w.id-X.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;r.unstable_now=function(){return b.now()}}else{var T=Date,_=T.now();r.unstable_now=function(){return T.now()-_}}var S=[],g=[],m=1,j=null,Y=3,Z=!1,x=!1,N=!1,z=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function J(w){for(var X=d(g);X!==null;){if(X.callback===null)c(g);else if(X.startTime<=w)c(g),X.sortIndex=X.expirationTime,f(S,X);else break;X=d(g)}}function Q(w){if(N=!1,J(w),!x)if(d(S)!==null)x=!0,ue||(ue=!0,se());else{var X=d(g);X!==null&&M(Q,X.startTime-w)}}var ue=!1,ie=-1,W=5,P=-1;function ge(){return z?!0:!(r.unstable_now()-P<W)}function be(){if(z=!1,ue){var w=r.unstable_now();P=w;var X=!0;try{e:{x=!1,N&&(N=!1,O(ie),ie=-1),Z=!0;var I=Y;try{t:{for(J(w),j=d(S);j!==null&&!(j.expirationTime>w&&ge());){var ee=j.callback;if(typeof ee=="function"){j.callback=null,Y=j.priorityLevel;var p=ee(j.expirationTime<=w);if(w=r.unstable_now(),typeof p=="function"){j.callback=p,J(w),X=!0;break t}j===d(S)&&c(S),J(w)}else c(S);j=d(S)}if(j!==null)X=!0;else{var U=d(g);U!==null&&M(Q,U.startTime-w),X=!1}}break e}finally{j=null,Y=I,Z=!1}X=void 0}}finally{X?se():ue=!1}}}var se;if(typeof L=="function")se=function(){L(be)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,F=Ee.port2;Ee.port1.onmessage=be,se=function(){F.postMessage(null)}}else se=function(){E(be,0)};function M(w,X){ie=E(function(){w(r.unstable_now())},X)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(w){w.callback=null},r.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<w?Math.floor(1e3/w):5},r.unstable_getCurrentPriorityLevel=function(){return Y},r.unstable_next=function(w){switch(Y){case 1:case 2:case 3:var X=3;break;default:X=Y}var I=Y;Y=X;try{return w()}finally{Y=I}},r.unstable_requestPaint=function(){z=!0},r.unstable_runWithPriority=function(w,X){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var I=Y;Y=w;try{return X()}finally{Y=I}},r.unstable_scheduleCallback=function(w,X,I){var ee=r.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ee+I:ee):I=ee,w){case 1:var p=-1;break;case 2:p=250;break;case 5:p=1073741823;break;case 4:p=1e4;break;default:p=5e3}return p=I+p,w={id:m++,callback:X,priorityLevel:w,startTime:I,expirationTime:p,sortIndex:-1},I>ee?(w.sortIndex=I,f(g,w),d(S)===null&&w===d(g)&&(N?(O(ie),ie=-1):N=!0,M(Q,I-ee))):(w.sortIndex=p,f(S,w),x||Z||(x=!0,ue||(ue=!0,se()))),w},r.unstable_shouldYield=ge,r.unstable_wrapCallback=function(w){var X=Y;return function(){var I=Y;Y=X;try{return w.apply(this,arguments)}finally{Y=I}}}}(ys)),ys}var Td;function Hh(){return Td||(Td=1,bs.exports=Bh()),bs.exports}var ms={exports:{}},lt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var wd;function qh(){if(wd)return lt;wd=1;var r=Ns();function f(S){var g="https://react.dev/errors/"+S;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)g+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+S+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(f(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},y=Symbol.for("react.portal");function b(S,g,m){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:j==null?null:""+j,children:S,containerInfo:g,implementation:m}}var T=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(S,g){if(S==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,lt.createPortal=function(S,g){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(f(299));return b(S,g,null,m)},lt.flushSync=function(S){var g=T.T,m=c.p;try{if(T.T=null,c.p=2,S)return S()}finally{T.T=g,c.p=m,c.d.f()}},lt.preconnect=function(S,g){typeof S=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(S,g))},lt.prefetchDNS=function(S){typeof S=="string"&&c.d.D(S)},lt.preinit=function(S,g){if(typeof S=="string"&&g&&typeof g.as=="string"){var m=g.as,j=_(m,g.crossOrigin),Y=typeof g.integrity=="string"?g.integrity:void 0,Z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;m==="style"?c.d.S(S,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:j,integrity:Y,fetchPriority:Z}):m==="script"&&c.d.X(S,{crossOrigin:j,integrity:Y,fetchPriority:Z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},lt.preinitModule=function(S,g){if(typeof S=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var m=_(g.as,g.crossOrigin);c.d.M(S,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&c.d.M(S)},lt.preload=function(S,g){if(typeof S=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var m=g.as,j=_(m,g.crossOrigin);c.d.L(S,m,{crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},lt.preloadModule=function(S,g){if(typeof S=="string")if(g){var m=_(g.as,g.crossOrigin);c.d.m(S,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else c.d.m(S)},lt.requestFormReset=function(S){c.d.r(S)},lt.unstable_batchedUpdates=function(S,g){return S(g)},lt.useFormState=function(S,g,m){return T.H.useFormState(S,g,m)},lt.useFormStatus=function(){return T.H.useHostTransitionStatus()},lt.version="19.1.0",lt}var jd;function Gh(){if(jd)return ms.exports;jd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(f){console.error(f)}}return r(),ms.exports=qh(),ms.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Cd;function Yh(){if(Cd)return zn;Cd=1;var r=Hh(),f=Ns(),d=Gh();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function b(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function T(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _(e){if(b(e)!==e)throw Error(c(188))}function S(e){var t=e.alternate;if(!t){if(t=b(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return _(n),e;if(i===a)return _(n),t;i=i.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,o=n.child;o;){if(o===l){u=!0,l=n,a=i;break}if(o===a){u=!0,a=n,l=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===l){u=!0,l=i,a=n;break}if(o===a){u=!0,a=i,l=n;break}o=o.sibling}if(!u)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,j=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),L=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Symbol.for("react.client.reference");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case z:return"Profiler";case N:return"StrictMode";case Q:return"Suspense";case ue:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case L:return(e.displayName||"Context")+".Provider";case O:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}var M=Array.isArray,w=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],p=-1;function U(e){return{current:e}}function $(e){0>p||(e.current=ee[p],ee[p]=null,p--)}function K(e,t){p++,ee[p]=e.current,e.current=t}var le=U(null),de=U(null),te=U(null),ne=U(null);function pe(e,t){switch(K(te,t),K(de,e),K(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kf(t),e=Jf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(le),K(le,e)}function Te(){$(le),$(de),$(te)}function za(e){e.memoizedState!==null&&K(ne,e);var t=le.current,l=Jf(t,e.type);t!==l&&(K(de,e),K(le,l))}function jl(e){de.current===e&&($(le),$(de)),ne.current===e&&($(ne),wn._currentValue=I)}var he=Object.prototype.hasOwnProperty,Re=r.unstable_scheduleCallback,qe=r.unstable_cancelCallback,at=r.unstable_shouldYield,Yt=r.unstable_requestPaint,it=r.unstable_now,tr=r.unstable_getCurrentPriorityLevel,ws=r.unstable_ImmediatePriority,js=r.unstable_UserBlockingPriority,Ln=r.unstable_NormalPriority,bg=r.unstable_LowPriority,Cs=r.unstable_IdlePriority,yg=r.log,mg=r.unstable_setDisableYieldValue,Ra=null,ft=null;function nl(e){if(typeof yg=="function"&&mg(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Ra,e)}catch{}}var dt=Math.clz32?Math.clz32:Sg,vg=Math.log,xg=Math.LN2;function Sg(e){return e>>>=0,e===0?32:31-(vg(e)/xg|0)|0}var Un=256,Bn=4194304;function Cl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=Cl(a):(u&=o,u!==0?n=Cl(u):l||(l=o&~e,l!==0&&(n=Cl(l))))):(o=a&~i,o!==0?n=Cl(o):u!==0?n=Cl(u):l||(l=a&~e,l!==0&&(n=Cl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Ma(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Eg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Os(){var e=Un;return Un<<=1,(Un&4194048)===0&&(Un=256),e}function Ds(){var e=Bn;return Bn<<=1,(Bn&62914560)===0&&(Bn=4194304),e}function lr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function La(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ng(e,t,l,a,n,i){var u=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,h=e.expirationTimes,D=e.hiddenUpdates;for(l=u&~l;0<l;){var B=31-dt(l),G=1<<B;o[B]=0,h[B]=-1;var k=D[B];if(k!==null)for(D[B]=null,B=0;B<k.length;B++){var R=k[B];R!==null&&(R.lane&=-536870913)}l&=~G}a!==0&&ks(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function ks(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function zs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ar(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rs(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:hd(e.type))}function Ag(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var il=Math.random().toString(36).slice(2),et="__reactFiber$"+il,rt="__reactProps$"+il,Fl="__reactContainer$"+il,ir="__reactEvents$"+il,_g="__reactListeners$"+il,Tg="__reactHandles$"+il,Ms="__reactResources$"+il,Ua="__reactMarker$"+il;function rr(e){delete e[et],delete e[rt],delete e[ir],delete e[_g],delete e[Tg]}function $l(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Fl]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ed(e);e!==null;){if(l=e[et])return l;e=ed(e)}return t}e=l,l=e.parentNode}return null}function Kl(e){if(e=e[et]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Jl(e){var t=e[Ms];return t||(t=e[Ms]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Ua]=!0}var Ls=new Set,Us={};function Ol(e,t){Il(e,t),Il(e+"Capture",t)}function Il(e,t){for(Us[e]=t,e=0;e<t.length;e++)Ls.add(t[e])}var wg=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]*$"),Bs={},Hs={};function jg(e){return he.call(Hs,e)?!0:he.call(Bs,e)?!1:wg.test(e)?Hs[e]=!0:(Bs[e]=!0,!1)}function qn(e,t,l){if(jg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Gn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var ur,qs;function Wl(e){if(ur===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ur=t&&t[1]||"",qs=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ur+e+qs}var sr=!1;function cr(e,t){if(!e||sr)return"";sr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(R){var k=R}Reflect.construct(e,[],G)}else{try{G.call()}catch(R){k=R}e.call(G.prototype)}}else{try{throw Error()}catch(R){k=R}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(R){if(R&&k&&typeof R.stack=="string")return[R.stack,k.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var h=u.split(`
44
- `),D=o.split(`
45
- `);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<D.length&&!D[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===D.length)for(a=h.length-1,n=D.length-1;1<=a&&0<=n&&h[a]!==D[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==D[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==D[n]){var B=`
46
- `+h[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=n);break}}}finally{sr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Wl(l):""}function Cg(e){switch(e.tag){case 26:case 27:case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 15:return cr(e.type,!1);case 11:return cr(e.type.render,!1);case 1:return cr(e.type,!0);case 31:return Wl("Activity");default:return""}}function Gs(e){try{var t="";do t+=Cg(e),e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ys(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Og(e){var t=Ys(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){a=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(u){a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yn(e){e._valueTracker||(e._valueTracker=Og(e))}function Zs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ys(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Zn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Dg=/[\n"\\]/g;function _t(e){return e.replace(Dg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function or(e,t,l,a,n,i,u,o){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?fr(e,u,At(t)):l!=null?fr(e,u,At(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+At(o):e.removeAttribute("name")}function Xs(e,t,l,a,n,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+At(l):"",t=t!=null?""+At(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u)}function fr(e,t,l){t==="number"&&Zn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Pl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+At(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Vs(e,t,l){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+At(l):""}function Qs(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(M(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=At(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var kg=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 Fs(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||kg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function $s(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Fs(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Fs(e,i,t[i])}function dr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zg=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"]]),Rg=/^[\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 Xn(e){return Rg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var gr=null;function pr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,la=null;function Ks(e){var t=Kl(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(or(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(c(90));or(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Zs(a)}break e;case"textarea":Vs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Pl(e,!!l.multiple,t,!1)}}}var hr=!1;function Js(e,t,l){if(hr)return e(t,l);hr=!0;try{var a=e(t);return a}finally{if(hr=!1,(ta!==null||la!==null)&&(Ci(),ta&&(t=ta,e=la,la=ta=null,Ks(t),e)))for(t=0;t<e.length;t++)Ks(e[t])}}function Ha(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(Xt)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){br=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{br=!1}var rl=null,yr=null,Vn=null;function Is(){if(Vn)return Vn;var e,t=yr,l=t.length,a,n="value"in rl?rl.value:rl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[i-a];a++);return Vn=n.slice(e,1<a?1-a:void 0)}function Qn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fn(){return!0}function Ws(){return!1}function ut(e){function t(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Fn:Ws,this.isPropagationStopped=Ws,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$n=ut(Dl),Ga=m({},Dl,{view:0,detail:0}),Mg=ut(Ga),mr,vr,Ya,Kn=m({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ya&&(Ya&&e.type==="mousemove"?(mr=e.screenX-Ya.screenX,vr=e.screenY-Ya.screenY):vr=mr=0,Ya=e),mr)},movementY:function(e){return"movementY"in e?e.movementY:vr}}),Ps=ut(Kn),Lg=m({},Kn,{dataTransfer:0}),Ug=ut(Lg),Bg=m({},Ga,{relatedTarget:0}),xr=ut(Bg),Hg=m({},Dl,{animationName:0,elapsedTime:0,pseudoElement:0}),qg=ut(Hg),Gg=m({},Dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yg=ut(Gg),Zg=m({},Dl,{data:0}),ec=ut(Zg),Xg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qg[e])?!!t[e]:!1}function Sr(){return Fg}var $g=m({},Ga,{key:function(e){if(e.key){var t=Xg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return e.type==="keypress"?Qn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kg=ut($g),Jg=m({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tc=ut(Jg),Ig=m({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr}),Wg=ut(Ig),Pg=m({},Dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ep=ut(Pg),tp=m({},Kn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lp=ut(tp),ap=m({},Dl,{newState:0,oldState:0}),np=ut(ap),ip=[9,13,27,32],Er=Xt&&"CompositionEvent"in window,Za=null;Xt&&"documentMode"in document&&(Za=document.documentMode);var rp=Xt&&"TextEvent"in window&&!Za,lc=Xt&&(!Er||Za&&8<Za&&11>=Za),ac=" ",nc=!1;function ic(e,t){switch(e){case"keyup":return ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function up(e,t){switch(e){case"compositionend":return rc(t);case"keypress":return t.which!==32?null:(nc=!0,ac);case"textInput":return e=t.data,e===ac&&nc?null:e;default:return null}}function sp(e,t){if(aa)return e==="compositionend"||!Er&&ic(e,t)?(e=Is(),Vn=yr=rl=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return lc&&t.locale!=="ko"?null:t.data;default:return null}}var cp={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 uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cp[e.type]:t==="textarea"}function sc(e,t,l,a){ta?la?la.push(a):la=[a]:ta=a,t=Mi(t,"onChange"),0<t.length&&(l=new $n("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Xa=null,Va=null;function op(e){Xf(e,0)}function Jn(e){var t=Ba(e);if(Zs(t))return e}function cc(e,t){if(e==="change")return t}var oc=!1;if(Xt){var Nr;if(Xt){var Ar="oninput"in document;if(!Ar){var fc=document.createElement("div");fc.setAttribute("oninput","return;"),Ar=typeof fc.oninput=="function"}Nr=Ar}else Nr=!1;oc=Nr&&(!document.documentMode||9<document.documentMode)}function dc(){Xa&&(Xa.detachEvent("onpropertychange",gc),Va=Xa=null)}function gc(e){if(e.propertyName==="value"&&Jn(Va)){var t=[];sc(t,Va,e,pr(e)),Js(op,t)}}function fp(e,t,l){e==="focusin"?(dc(),Xa=t,Va=l,Xa.attachEvent("onpropertychange",gc)):e==="focusout"&&dc()}function dp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jn(Va)}function gp(e,t){if(e==="click")return Jn(t)}function pp(e,t){if(e==="input"||e==="change")return Jn(t)}function hp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:hp;function Qa(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!he.call(t,n)||!gt(e[n],t[n]))return!1}return!0}function pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hc(e,t){var l=pc(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pc(l)}}function bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Zn(e.document)}return t}function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var bp=Xt&&"documentMode"in document&&11>=document.documentMode,na=null,Tr=null,Fa=null,wr=!1;function mc(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wr||na==null||na!==Zn(a)||(a=na,"selectionStart"in a&&_r(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fa&&Qa(Fa,a)||(Fa=a,a=Mi(Tr,"onSelect"),0<a.length&&(t=new $n("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=na)))}function kl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ia={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionrun:kl("Transition","TransitionRun"),transitionstart:kl("Transition","TransitionStart"),transitioncancel:kl("Transition","TransitionCancel"),transitionend:kl("Transition","TransitionEnd")},jr={},vc={};Xt&&(vc=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function zl(e){if(jr[e])return jr[e];if(!ia[e])return e;var t=ia[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in vc)return jr[e]=t[l];return e}var xc=zl("animationend"),Sc=zl("animationiteration"),Ec=zl("animationstart"),yp=zl("transitionrun"),mp=zl("transitionstart"),vp=zl("transitioncancel"),Nc=zl("transitionend"),Ac=new Map,Cr="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(" ");Cr.push("scrollEnd");function zt(e,t){Ac.set(e,t),Ol(t,[e])}var _c=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=_c.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Gs(t)},_c.set(e,t),t)}return{value:e,source:t,stack:Gs(t)}}var wt=[],ra=0,Or=0;function In(){for(var e=ra,t=Or=ra=0;t<e;){var l=wt[t];wt[t++]=null;var a=wt[t];wt[t++]=null;var n=wt[t];wt[t++]=null;var i=wt[t];if(wt[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Tc(l,n,i)}}function Wn(e,t,l,a){wt[ra++]=e,wt[ra++]=t,wt[ra++]=l,wt[ra++]=a,Or|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Dr(e,t,l,a){return Wn(e,t,l,a),Pn(e)}function ua(e,t){return Wn(e,null,null,t),Pn(e)}function Tc(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-dt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Pn(e){if(50<vn)throw vn=0,Uu=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sa={};function xp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,l,a){return new xp(e,t,l,a)}function kr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vt(e,t){var l=e.alternate;return l===null?(l=pt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function wc(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ei(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")kr(e)&&(u=1);else if(typeof e=="string")u=Eh(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=pt(31,l,t,n),e.elementType=P,e.lanes=i,e;case x:return Rl(l.children,n,i,t);case N:u=8,n|=24;break;case z:return e=pt(12,l,t,n|2),e.elementType=z,e.lanes=i,e;case Q:return e=pt(13,l,t,n),e.elementType=Q,e.lanes=i,e;case ue:return e=pt(19,l,t,n),e.elementType=ue,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case L:u=10;break e;case O:u=9;break e;case J:u=11;break e;case ie:u=14;break e;case W:u=16,a=null;break e}u=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=pt(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Rl(e,t,l,a){return e=pt(7,e,a,t),e.lanes=l,e}function zr(e,t,l){return e=pt(6,e,null,t),e.lanes=l,e}function Rr(e,t,l){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ca=[],oa=0,ti=null,li=0,jt=[],Ct=0,Ml=null,Qt=1,Ft="";function Ll(e,t){ca[oa++]=li,ca[oa++]=ti,ti=e,li=t}function jc(e,t,l){jt[Ct++]=Qt,jt[Ct++]=Ft,jt[Ct++]=Ml,Ml=e;var a=Qt;e=Ft;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var i=32-dt(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,Qt=1<<32-dt(t)+n|l<<n|a,Ft=i+e}else Qt=1<<i|l<<n|a,Ft=e}function Mr(e){e.return!==null&&(Ll(e,1),jc(e,1,0))}function Lr(e){for(;e===ti;)ti=ca[--oa],ca[oa]=null,li=ca[--oa],ca[oa]=null;for(;e===Ml;)Ml=jt[--Ct],jt[Ct]=null,Ft=jt[--Ct],jt[Ct]=null,Qt=jt[--Ct],jt[Ct]=null}var nt=null,Ue=null,_e=!1,Ul=null,Lt=!1,Ur=Error(c(519));function Bl(e){var t=Error(c(418,""));throw Ja(Tt(t,e)),Ur}function Cc(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[rt]=a,l){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(l=0;l<Sn.length;l++)Se(Sn[l],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),Xs(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Yn(t);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),Qs(t,a.value,a.defaultValue,a.children),Yn(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||$f(t.textContent,l)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=Li),t=!0):t=!1,t||Bl(e)}function Oc(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:nt=nt.return}}function $a(e){if(e!==nt)return!1;if(!_e)return Oc(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Pu(e.type,e.memoizedProps)),l=!l),l&&Ue&&Bl(e),Oc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ue=Mt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,El(e.type)?(e=as,as=null,Ue=e):Ue=t):Ue=nt?Mt(e.stateNode.nextSibling):null;return!0}function Ka(){Ue=nt=null,_e=!1}function Dc(){var e=Ul;return e!==null&&(ot===null?ot=e:ot.push.apply(ot,e),Ul=null),e}function Ja(e){Ul===null?Ul=[e]:Ul.push(e)}var Br=U(null),Hl=null,$t=null;function ul(e,t,l){K(Br,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=Br.current,$(Br)}function Hr(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function qr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=n;for(var h=0;h<t.length;h++)if(o.context===t[h]){i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),Hr(i.return,l,e),a||(u=null);break e}i=o.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(c(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),Hr(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function Ia(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(c(387));if(u=u.memoizedProps,u!==null){var o=n.type;gt(n.pendingProps.value,u.value)||(e!==null?e.push(o):e=[o])}}else if(n===ne.current){if(u=n.alternate,u===null)throw Error(c(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(wn):e=[wn])}n=n.return}e!==null&&qr(t,e,l,a),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ql(e){Hl=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return kc(Hl,e)}function ni(e,t){return Hl===null&&ql(e),kc(e,t)}function kc(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(c(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var Sp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ep=r.unstable_scheduleCallback,Np=r.unstable_NormalPriority,Ve={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gr(){return{controller:new Sp,data:new Map,refCount:0}}function Wa(e){e.refCount--,e.refCount===0&&Ep(Np,function(){e.controller.abort()})}var Pa=null,Yr=0,fa=0,da=null;function Ap(e,t){if(Pa===null){var l=Pa=[];Yr=0,fa=Xu(),da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Yr++,t.then(zc,zc),t}function zc(){if(--Yr===0&&Pa!==null){da!==null&&(da.status="fulfilled");var e=Pa;Pa=null,fa=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _p(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Rc=w.S;w.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ap(e,t),Rc!==null&&Rc(e,t)};var Gl=U(null);function Zr(){var e=Gl.current;return e!==null?e:ze.pooledCache}function ii(e,t){t===null?K(Gl,Gl.current):K(Gl,t.pool)}function Mc(){var e=Zr();return e===null?null:{parent:Ve._currentValue,pool:e}}var en=Error(c(460)),Lc=Error(c(474)),ri=Error(c(542)),Xr={then:function(){}};function Uc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ui(){}function Bc(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ui,ui),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qc(e),e;default:if(typeof t.status=="string")t.then(ui,ui);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qc(e),e}throw tn=t,en}}var tn=null;function Hc(){if(tn===null)throw Error(c(459));var e=tn;return tn=null,e}function qc(e){if(e===en||e===ri)throw Error(c(483))}var sl=!1;function Vr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ol(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(we&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Pn(e),Tc(e,null,l),t}return Wn(e,a,t,l),Pn(e)}function ln(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zs(e,l)}}function Fr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var $r=!1;function an(){if($r){var e=da;if(e!==null)throw e}}function nn(e,t,l,a){$r=!1;var n=e.updateQueue;sl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var h=o,D=h.next;h.next=null,u===null?i=D:u.next=D,u=h;var B=e.alternate;B!==null&&(B=B.updateQueue,o=B.lastBaseUpdate,o!==u&&(o===null?B.firstBaseUpdate=D:o.next=D,B.lastBaseUpdate=h))}if(i!==null){var G=n.baseState;u=0,B=D=h=null,o=i;do{var k=o.lane&-536870913,R=k!==o.lane;if(R?(Ne&k)===k:(a&k)===k){k!==0&&k===fa&&($r=!0),B!==null&&(B=B.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var fe=e,ce=o;k=t;var De=l;switch(ce.tag){case 1:if(fe=ce.payload,typeof fe=="function"){G=fe.call(De,G,k);break e}G=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ce.payload,k=typeof fe=="function"?fe.call(De,G,k):fe,k==null)break e;G=m({},G,k);break e;case 2:sl=!0}}k=o.callback,k!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[k]:R.push(k))}else R={lane:k,tag:o.tag,payload:o.payload,callback:o.callback,next:null},B===null?(D=B=R,h=G):B=B.next=R,u|=k;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;R=o,o=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);B===null&&(h=G),n.baseState=h,n.firstBaseUpdate=D,n.lastBaseUpdate=B,i===null&&(n.shared.lanes=0),ml|=u,e.lanes=u,e.memoizedState=G}}function Gc(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Yc(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Gc(l[e],t)}var ga=U(null),si=U(0);function Zc(e,t){e=ll,K(si,e),K(ga,t),ll=e|t.baseLanes}function Kr(){K(si,ll),K(ga,ga.current)}function Jr(){ll=si.current,$(ga),$(si)}var fl=0,me=null,Ce=null,Ze=null,ci=!1,pa=!1,Yl=!1,oi=0,rn=0,ha=null,Tp=0;function Ge(){throw Error(c(321))}function Ir(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!gt(e[l],t[l]))return!1;return!0}function Wr(e,t,l,a,n,i){return fl=i,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?wo:jo,Yl=!1,i=l(a,n),Yl=!1,pa&&(i=Vc(t,l,a,n)),Xc(e),i}function Xc(e){w.H=bi;var t=Ce!==null&&Ce.next!==null;if(fl=0,Ze=Ce=me=null,ci=!1,rn=0,ha=null,t)throw Error(c(300));e===null||$e||(e=e.dependencies,e!==null&&ai(e)&&($e=!0))}function Vc(e,t,l,a){me=e;var n=0;do{if(pa&&(ha=null),rn=0,pa=!1,25<=n)throw Error(c(301));if(n+=1,Ze=Ce=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}w.H=zp,i=t(l,a)}while(pa);return i}function wp(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?un(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(me.flags|=1024),t}function Pr(){var e=oi!==0;return oi=0,e}function eu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function tu(e){if(ci){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ci=!1}fl=0,Ze=Ce=me=null,pa=!1,rn=oi=0,ha=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?me.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ce===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ze===null?me.memoizedState:Ze.next;if(t!==null)Ze=t,Ce=e;else{if(e===null)throw me.alternate===null?Error(c(467)):Error(c(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ze===null?me.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function un(e){var t=rn;return rn+=1,ha===null&&(ha=[]),e=Bc(ha,e,t),t=me,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?wo:jo),e}function fi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return un(e);if(e.$$typeof===L)return tt(e)}throw Error(c(438,String(e)))}function au(e){var t=null,l=me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=me.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=lu(),me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ge;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function di(e){var t=Xe();return nu(t,Ce,e)}function nu(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var o=u=null,h=null,D=t,B=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Ne&G)===G:(fl&G)===G){var k=D.revertLane;if(k===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===fa&&(B=!0);else if((fl&k)===k){D=D.next,k===fa&&(B=!0);continue}else G={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},h===null?(o=h=G,u=i):h=h.next=G,me.lanes|=k,ml|=k;G=D.action,Yl&&l(i,G),i=D.hasEagerState?D.eagerState:l(i,G)}else k={lane:G,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},h===null?(o=h=k,u=i):h=h.next=k,me.lanes|=G,ml|=G;D=D.next}while(D!==null&&D!==t);if(h===null?u=i:h.next=o,!gt(i,e.memoizedState)&&($e=!0,B&&(l=da,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=h,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function iu(e){var t=Xe(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);gt(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Qc(e,t,l){var a=me,n=Xe(),i=_e;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=t();var u=!gt((Ce||n).memoizedState,l);u&&(n.memoizedState=l,$e=!0),n=n.queue;var o=Kc.bind(null,a,n,e);if(sn(2048,8,o,[e]),n.getSnapshot!==t||u||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,ba(9,gi(),$c.bind(null,a,n,l,t),null),ze===null)throw Error(c(349));i||(fl&124)!==0||Fc(a,t,l)}return l}function Fc(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=me.updateQueue,t===null?(t=lu(),me.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function $c(e,t,l,a){t.value=l,t.getSnapshot=a,Jc(t)&&Ic(e)}function Kc(e,t,l){return l(function(){Jc(t)&&Ic(e)})}function Jc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!gt(e,l)}catch{return!0}}function Ic(e){var t=ua(e,2);t!==null&&vt(t,e,2)}function ru(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),Yl){nl(!0);try{l()}finally{nl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function Wc(e,t,l,a){return e.baseState=l,nu(e,Ce,typeof a=="function"?a:Jt)}function jp(e,t,l,a,n){if(hi(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};w.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Pc(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Pc(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=w.T,u={};w.T=u;try{var o=l(n,a),h=w.S;h!==null&&h(u,o),eo(e,t,o)}catch(D){uu(e,t,D)}finally{w.T=i}}else try{i=l(n,a),eo(e,t,i)}catch(D){uu(e,t,D)}}function eo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){to(e,t,a)},function(a){return uu(e,t,a)}):to(e,t,l)}function to(e,t,l){t.status="fulfilled",t.value=l,lo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Pc(e,l)))}function uu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,lo(t),t=t.next;while(t!==a)}e.action=null}function lo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ao(e,t){return t}function no(e,t){if(_e){var l=ze.formState;if(l!==null){e:{var a=me;if(_e){if(Ue){t:{for(var n=Ue,i=Lt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Mt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ue=Mt(n.nextSibling),a=n.data==="F!";break e}}Bl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:t},l.queue=a,l=Ao.bind(null,me,a),a.dispatch=l,a=ru(!1),i=du.bind(null,me,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=jp.bind(null,me,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function io(e){var t=Xe();return ro(t,Ce,e)}function ro(e,t,l){if(t=nu(e,t,ao)[0],e=di(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=un(t)}catch(u){throw u===en?ri:u}else a=t;t=Xe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(me.flags|=2048,ba(9,gi(),Cp.bind(null,n,l),null)),[a,i,e]}function Cp(e,t){e.action=t}function uo(e){var t=Xe(),l=Ce;if(l!==null)return ro(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ba(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=me.updateQueue,t===null&&(t=lu(),me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function gi(){return{destroy:void 0,resource:void 0}}function so(){return Xe().memoizedState}function pi(e,t,l,a){var n=st();a=a===void 0?null:a,me.flags|=e,n.memoizedState=ba(1|t,gi(),l,a)}function sn(e,t,l,a){var n=Xe();a=a===void 0?null:a;var i=n.memoizedState.inst;Ce!==null&&a!==null&&Ir(a,Ce.memoizedState.deps)?n.memoizedState=ba(t,i,l,a):(me.flags|=e,n.memoizedState=ba(1|t,i,l,a))}function co(e,t){pi(8390656,8,e,t)}function oo(e,t){sn(2048,8,e,t)}function fo(e,t){return sn(4,2,e,t)}function go(e,t){return sn(4,4,e,t)}function po(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ho(e,t,l){l=l!=null?l.concat([e]):null,sn(4,4,po.bind(null,t,e),l)}function su(){}function bo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ir(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function yo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ir(t,a[1]))return a[0];if(a=e(),Yl){nl(!0);try{e()}finally{nl(!1)}}return l.memoizedState=[a,t],a}function cu(e,t,l){return l===void 0||(fl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Sf(),me.lanes|=e,ml|=e,l)}function mo(e,t,l,a){return gt(l,t)?l:ga.current!==null?(e=cu(e,l,a),gt(e,t)||($e=!0),e):(fl&42)===0?($e=!0,e.memoizedState=l):(e=Sf(),me.lanes|=e,ml|=e,t)}function vo(e,t,l,a,n){var i=X.p;X.p=i!==0&&8>i?i:8;var u=w.T,o={};w.T=o,du(e,!1,t,l);try{var h=n(),D=w.S;if(D!==null&&D(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var B=_p(h,a);cn(e,t,B,mt(e))}else cn(e,t,a,mt(e))}catch(G){cn(e,t,{then:function(){},status:"rejected",reason:G},mt())}finally{X.p=i,w.T=u}}function Op(){}function ou(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=xo(e).queue;vo(e,n,t,I,l===null?Op:function(){return So(e),l(a)})}function xo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function So(e){var t=xo(e).next.queue;cn(e,t,{},mt())}function fu(){return tt(wn)}function Eo(){return Xe().memoizedState}function No(){return Xe().memoizedState}function Dp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=cl(l);var a=ol(t,e,l);a!==null&&(vt(a,t,l),ln(a,t,l)),t={cache:Gr()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=mt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},hi(e)?_o(t,l):(l=Dr(e,t,l,a),l!==null&&(vt(l,e,a),To(l,t,a)))}function Ao(e,t,l){var a=mt();cn(e,t,l,a)}function cn(e,t,l,a){var n={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(hi(e))_o(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,o=i(u,l);if(n.hasEagerState=!0,n.eagerState=o,gt(o,u))return Wn(e,t,n,0),ze===null&&In(),!1}catch{}finally{}if(l=Dr(e,t,n,a),l!==null)return vt(l,e,a),To(l,t,a),!0}return!1}function du(e,t,l,a){if(a={lane:2,revertLane:Xu(),action:a,hasEagerState:!1,eagerState:null,next:null},hi(e)){if(t)throw Error(c(479))}else t=Dr(e,l,a,2),t!==null&&vt(t,e,2)}function hi(e){var t=e.alternate;return e===me||t!==null&&t===me}function _o(e,t){pa=ci=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function To(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zs(e,l)}}var bi={readContext:tt,use:fi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge},wo={readContext:tt,use:fi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:co,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,pi(4194308,4,po.bind(null,t,e),l)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){pi(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(Yl){nl(!0);try{e()}finally{nl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(Yl){nl(!0);try{l(t)}finally{nl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,me,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=ru(e);var t=e.queue,l=Ao.bind(null,me,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:su,useDeferredValue:function(e,t){var l=st();return cu(l,e,t)},useTransition:function(){var e=ru(!1);return e=vo.bind(null,me,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=me,n=st();if(_e){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),ze===null)throw Error(c(349));(Ne&124)!==0||Fc(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,co(Kc.bind(null,a,i,e),[e]),a.flags|=2048,ba(9,gi(),$c.bind(null,a,i,l,t),null),l},useId:function(){var e=st(),t=ze.identifierPrefix;if(_e){var l=Ft,a=Qt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=oi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Tp++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:fu,useFormState:no,useActionState:no,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=du.bind(null,me,!0,l),l.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return st().memoizedState=Dp.bind(null,me)}},jo={readContext:tt,use:fi,useCallback:bo,useContext:tt,useEffect:oo,useImperativeHandle:ho,useInsertionEffect:fo,useLayoutEffect:go,useMemo:yo,useReducer:di,useRef:so,useState:function(){return di(Jt)},useDebugValue:su,useDeferredValue:function(e,t){var l=Xe();return mo(l,Ce.memoizedState,e,t)},useTransition:function(){var e=di(Jt)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:un(e),t]},useSyncExternalStore:Qc,useId:Eo,useHostTransitionStatus:fu,useFormState:io,useActionState:io,useOptimistic:function(e,t){var l=Xe();return Wc(l,Ce,e,t)},useMemoCache:au,useCacheRefresh:No},zp={readContext:tt,use:fi,useCallback:bo,useContext:tt,useEffect:oo,useImperativeHandle:ho,useInsertionEffect:fo,useLayoutEffect:go,useMemo:yo,useReducer:iu,useRef:so,useState:function(){return iu(Jt)},useDebugValue:su,useDeferredValue:function(e,t){var l=Xe();return Ce===null?cu(l,e,t):mo(l,Ce.memoizedState,e,t)},useTransition:function(){var e=iu(Jt)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:un(e),t]},useSyncExternalStore:Qc,useId:Eo,useHostTransitionStatus:fu,useFormState:uo,useActionState:uo,useOptimistic:function(e,t){var l=Xe();return Ce!==null?Wc(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:au,useCacheRefresh:No},ya=null,on=0;function yi(e){var t=on;return on+=1,ya===null&&(ya=[]),Bc(ya,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mi(e,t){throw t.$$typeof===j?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Co(e){var t=e._init;return t(e._payload)}function Oo(e){function t(A,v){if(e){var C=A.deletions;C===null?(A.deletions=[v],A.flags|=16):C.push(v)}}function l(A,v){if(!e)return null;for(;v!==null;)t(A,v),v=v.sibling;return null}function a(A){for(var v=new Map;A!==null;)A.key!==null?v.set(A.key,A):v.set(A.index,A),A=A.sibling;return v}function n(A,v){return A=Vt(A,v),A.index=0,A.sibling=null,A}function i(A,v,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<v?(A.flags|=67108866,v):C):(A.flags|=67108866,v)):(A.flags|=1048576,v)}function u(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function o(A,v,C,q){return v===null||v.tag!==6?(v=zr(C,A.mode,q),v.return=A,v):(v=n(v,C),v.return=A,v)}function h(A,v,C,q){var ae=C.type;return ae===x?B(A,v,C.props.children,q,C.key):v!==null&&(v.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===W&&Co(ae)===v.type)?(v=n(v,C.props),fn(v,C),v.return=A,v):(v=ei(C.type,C.key,C.props,null,A.mode,q),fn(v,C),v.return=A,v)}function D(A,v,C,q){return v===null||v.tag!==4||v.stateNode.containerInfo!==C.containerInfo||v.stateNode.implementation!==C.implementation?(v=Rr(C,A.mode,q),v.return=A,v):(v=n(v,C.children||[]),v.return=A,v)}function B(A,v,C,q,ae){return v===null||v.tag!==7?(v=Rl(C,A.mode,q,ae),v.return=A,v):(v=n(v,C),v.return=A,v)}function G(A,v,C){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=zr(""+v,A.mode,C),v.return=A,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Y:return C=ei(v.type,v.key,v.props,null,A.mode,C),fn(C,v),C.return=A,C;case Z:return v=Rr(v,A.mode,C),v.return=A,v;case W:var q=v._init;return v=q(v._payload),G(A,v,C)}if(M(v)||se(v))return v=Rl(v,A.mode,C,null),v.return=A,v;if(typeof v.then=="function")return G(A,yi(v),C);if(v.$$typeof===L)return G(A,ni(A,v),C);mi(A,v)}return null}function k(A,v,C,q){var ae=v!==null?v.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ae!==null?null:o(A,v,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Y:return C.key===ae?h(A,v,C,q):null;case Z:return C.key===ae?D(A,v,C,q):null;case W:return ae=C._init,C=ae(C._payload),k(A,v,C,q)}if(M(C)||se(C))return ae!==null?null:B(A,v,C,q,null);if(typeof C.then=="function")return k(A,v,yi(C),q);if(C.$$typeof===L)return k(A,v,ni(A,C),q);mi(A,C)}return null}function R(A,v,C,q,ae){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(C)||null,o(v,A,""+q,ae);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:return A=A.get(q.key===null?C:q.key)||null,h(v,A,q,ae);case Z:return A=A.get(q.key===null?C:q.key)||null,D(v,A,q,ae);case W:var ve=q._init;return q=ve(q._payload),R(A,v,C,q,ae)}if(M(q)||se(q))return A=A.get(C)||null,B(v,A,q,ae,null);if(typeof q.then=="function")return R(A,v,C,yi(q),ae);if(q.$$typeof===L)return R(A,v,C,ni(v,q),ae);mi(v,q)}return null}function fe(A,v,C,q){for(var ae=null,ve=null,re=v,oe=v=0,Je=null;re!==null&&oe<C.length;oe++){re.index>oe?(Je=re,re=null):Je=re.sibling;var Ae=k(A,re,C[oe],q);if(Ae===null){re===null&&(re=Je);break}e&&re&&Ae.alternate===null&&t(A,re),v=i(Ae,v,oe),ve===null?ae=Ae:ve.sibling=Ae,ve=Ae,re=Je}if(oe===C.length)return l(A,re),_e&&Ll(A,oe),ae;if(re===null){for(;oe<C.length;oe++)re=G(A,C[oe],q),re!==null&&(v=i(re,v,oe),ve===null?ae=re:ve.sibling=re,ve=re);return _e&&Ll(A,oe),ae}for(re=a(re);oe<C.length;oe++)Je=R(re,A,oe,C[oe],q),Je!==null&&(e&&Je.alternate!==null&&re.delete(Je.key===null?oe:Je.key),v=i(Je,v,oe),ve===null?ae=Je:ve.sibling=Je,ve=Je);return e&&re.forEach(function(wl){return t(A,wl)}),_e&&Ll(A,oe),ae}function ce(A,v,C,q){if(C==null)throw Error(c(151));for(var ae=null,ve=null,re=v,oe=v=0,Je=null,Ae=C.next();re!==null&&!Ae.done;oe++,Ae=C.next()){re.index>oe?(Je=re,re=null):Je=re.sibling;var wl=k(A,re,Ae.value,q);if(wl===null){re===null&&(re=Je);break}e&&re&&wl.alternate===null&&t(A,re),v=i(wl,v,oe),ve===null?ae=wl:ve.sibling=wl,ve=wl,re=Je}if(Ae.done)return l(A,re),_e&&Ll(A,oe),ae;if(re===null){for(;!Ae.done;oe++,Ae=C.next())Ae=G(A,Ae.value,q),Ae!==null&&(v=i(Ae,v,oe),ve===null?ae=Ae:ve.sibling=Ae,ve=Ae);return _e&&Ll(A,oe),ae}for(re=a(re);!Ae.done;oe++,Ae=C.next())Ae=R(re,A,oe,Ae.value,q),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?oe:Ae.key),v=i(Ae,v,oe),ve===null?ae=Ae:ve.sibling=Ae,ve=Ae);return e&&re.forEach(function(Rh){return t(A,Rh)}),_e&&Ll(A,oe),ae}function De(A,v,C,q){if(typeof C=="object"&&C!==null&&C.type===x&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Y:e:{for(var ae=C.key;v!==null;){if(v.key===ae){if(ae=C.type,ae===x){if(v.tag===7){l(A,v.sibling),q=n(v,C.props.children),q.return=A,A=q;break e}}else if(v.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===W&&Co(ae)===v.type){l(A,v.sibling),q=n(v,C.props),fn(q,C),q.return=A,A=q;break e}l(A,v);break}else t(A,v);v=v.sibling}C.type===x?(q=Rl(C.props.children,A.mode,q,C.key),q.return=A,A=q):(q=ei(C.type,C.key,C.props,null,A.mode,q),fn(q,C),q.return=A,A=q)}return u(A);case Z:e:{for(ae=C.key;v!==null;){if(v.key===ae)if(v.tag===4&&v.stateNode.containerInfo===C.containerInfo&&v.stateNode.implementation===C.implementation){l(A,v.sibling),q=n(v,C.children||[]),q.return=A,A=q;break e}else{l(A,v);break}else t(A,v);v=v.sibling}q=Rr(C,A.mode,q),q.return=A,A=q}return u(A);case W:return ae=C._init,C=ae(C._payload),De(A,v,C,q)}if(M(C))return fe(A,v,C,q);if(se(C)){if(ae=se(C),typeof ae!="function")throw Error(c(150));return C=ae.call(C),ce(A,v,C,q)}if(typeof C.then=="function")return De(A,v,yi(C),q);if(C.$$typeof===L)return De(A,v,ni(A,C),q);mi(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,v!==null&&v.tag===6?(l(A,v.sibling),q=n(v,C),q.return=A,A=q):(l(A,v),q=zr(C,A.mode,q),q.return=A,A=q),u(A)):l(A,v)}return function(A,v,C,q){try{on=0;var ae=De(A,v,C,q);return ya=null,ae}catch(re){if(re===en||re===ri)throw re;var ve=pt(29,re,null,A.mode);return ve.lanes=q,ve.return=A,ve}finally{}}}var ma=Oo(!0),Do=Oo(!1),Ot=U(null),Ut=null;function dl(e){var t=e.alternate;K(Qe,Qe.current&1),K(Ot,e),Ut===null&&(t===null||ga.current!==null||t.memoizedState!==null)&&(Ut=e)}function ko(e){if(e.tag===22){if(K(Qe,Qe.current),K(Ot,e),Ut===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ut=e)}}else gl()}function gl(){K(Qe,Qe.current),K(Ot,Ot.current)}function It(e){$(Ot),Ut===e&&(Ut=null),$(Qe)}var Qe=U(0);function vi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||ls(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function gu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:m({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var pu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=cl(a);n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(vt(t,e,a),ln(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=cl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(vt(t,e,a),ln(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=cl(l);a.tag=2,t!=null&&(a.callback=t),t=ol(e,a,l),t!==null&&(vt(t,e,l),ln(t,e,l))}};function zo(e,t,l,a,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!Qa(l,a)||!Qa(n,i):!0}function Ro(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&pu.enqueueReplaceState(t,t.state,null)}function Zl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=m({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}var xi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Mo(e){xi(e)}function Lo(e){console.error(e)}function Uo(e){xi(e)}function Si(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Bo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function hu(e,t,l){return l=cl(l),l.tag=3,l.payload={element:null},l.callback=function(){Si(e,t)},l}function Ho(e){return e=cl(e),e.tag=3,e}function qo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Bo(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Bo(t,l,a),typeof n!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Rp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ia(t,l,n,!0),l=Ot.current,l!==null){switch(l.tag){case 13:return Ut===null?Hu():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Xr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Gu(e,a,n)),!1;case 22:return l.flags|=65536,a===Xr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Gu(e,a,n)),!1}throw Error(c(435,l.tag))}return Gu(e,a,n),Hu(),!1}if(_e)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Ur&&(e=Error(c(422),{cause:a}),Ja(Tt(e,l)))):(a!==Ur&&(t=Error(c(423),{cause:a}),Ja(Tt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tt(a,l),n=hu(e.stateNode,a,n),Fr(e,n),Be!==4&&(Be=2)),!1;var i=Error(c(520),{cause:a});if(i=Tt(i,l),mn===null?mn=[i]:mn.push(i),Be!==4&&(Be=2),t===null)return!0;a=Tt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=hu(l.stateNode,a,e),Fr(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(vl===null||!vl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ho(n),qo(n,e,l,a),Fr(l,n),!1}l=l.return}while(l!==null);return!1}var Go=Error(c(461)),$e=!1;function Ie(e,t,l,a){t.child=e===null?Do(t,null,l,a):ma(t,e.child,l,a)}function Yo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}else u=a;return ql(t),a=Wr(e,t,l,u,i,n),o=Pr(),e!==null&&!$e?(eu(e,t,n),Wt(e,t,n)):(_e&&o&&Mr(t),t.flags|=1,Ie(e,t,a,n),t.child)}function Zo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!kr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Xo(e,t,i,a,n)):(e=ei(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Nu(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Qa,l(u,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Vt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Xo(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Qa(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,Nu(e,n))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return bu(e,t,l,a,n)}function Vo(e,t,l){var a=t.pendingProps,n=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return Qo(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ii(t,i!==null?i.cachePool:null),i!==null?Zc(t,i):Kr(),ko(t);else return t.lanes=t.childLanes=536870912,Qo(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(ii(t,i.cachePool),Zc(t,i),gl(),t.memoizedState=null):(e!==null&&ii(t,null),Kr(),gl());return Ie(e,t,n,l),t.child}function Qo(e,t,l,a){var n=Zr();return n=n===null?null:{parent:Ve._currentValue,pool:n},t.memoizedState={baseLanes:l,cachePool:n},e!==null&&ii(t,null),Kr(),ko(t),e!==null&&Ia(e,t,a,!0),null}function Ei(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bu(e,t,l,a,n){return ql(t),l=Wr(e,t,l,a,void 0,n),a=Pr(),e!==null&&!$e?(eu(e,t,n),Wt(e,t,n)):(_e&&a&&Mr(t),t.flags|=1,Ie(e,t,l,n),t.child)}function Fo(e,t,l,a,n,i){return ql(t),t.updateQueue=null,l=Vc(t,a,l,n),Xc(e),a=Pr(),e!==null&&!$e?(eu(e,t,i),Wt(e,t,i)):(_e&&a&&Mr(t),t.flags|=1,Ie(e,t,l,i),t.child)}function $o(e,t,l,a,n){if(ql(t),t.stateNode===null){var i=sa,u=l.contextType;typeof u=="object"&&u!==null&&(i=tt(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=pu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Vr(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?tt(u):sa,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(gu(t,l,u,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&pu.enqueueReplaceState(i,i.state,null),nn(t,a,i,n),an(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,h=Zl(l,o);i.props=h;var D=i.context,B=l.contextType;u=sa,typeof B=="object"&&B!==null&&(u=tt(B));var G=l.getDerivedStateFromProps;B=typeof G=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,B||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||D!==u)&&Ro(t,i,a,u),sl=!1;var k=t.memoizedState;i.state=k,nn(t,a,i,n),an(),D=t.memoizedState,o||k!==D||sl?(typeof G=="function"&&(gu(t,l,G,a),D=t.memoizedState),(h=sl||zo(t,l,h,a,k,D,u))?(B||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=u,a=h):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Qr(e,t),u=t.memoizedProps,B=Zl(l,u),i.props=B,G=t.pendingProps,k=i.context,D=l.contextType,h=sa,typeof D=="object"&&D!==null&&(h=tt(D)),o=l.getDerivedStateFromProps,(D=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==G||k!==h)&&Ro(t,i,a,h),sl=!1,k=t.memoizedState,i.state=k,nn(t,a,i,n),an();var R=t.memoizedState;u!==G||k!==R||sl||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof o=="function"&&(gu(t,l,o,a),R=t.memoizedState),(B=sl||zo(t,l,B,a,k,R,h)||e!==null&&e.dependencies!==null&&ai(e.dependencies))?(D||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,R,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,R,h)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),i.props=a,i.state=R,i.context=h,a=B):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Ei(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ma(t,e.child,null,n),t.child=ma(t,null,l,n)):Ie(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Wt(e,t,n),e}function Ko(e,t,l,a){return Ka(),t.flags|=256,Ie(e,t,l,a),t.child}var yu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mu(e){return{baseLanes:e,cachePool:Mc()}}function vu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Dt),e}function Jo(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(n?dl(t):gl(),_e){var o=Ue,h;if(h=o){e:{for(h=o,o=Lt;h.nodeType!==8;){if(!o){o=null;break e}if(h=Mt(h.nextSibling),h===null){o=null;break e}}o=h}o!==null?(t.memoizedState={dehydrated:o,treeContext:Ml!==null?{id:Qt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},h=pt(18,null,null,0),h.stateNode=o,h.return=t,t.child=h,nt=t,Ue=null,h=!0):h=!1}h||Bl(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return ls(o)?t.lanes=32:t.lanes=536870912,null;It(t)}return o=a.children,a=a.fallback,n?(gl(),n=t.mode,o=Ni({mode:"hidden",children:o},n),a=Rl(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,n=t.child,n.memoizedState=mu(l),n.childLanes=vu(e,u,l),t.memoizedState=yu,a):(dl(t),xu(t,o))}if(h=e.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(i)t.flags&256?(dl(t),t.flags&=-257,t=Su(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),n=a.fallback,o=t.mode,a=Ni({mode:"visible",children:a.children},o),n=Rl(n,o,l,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,ma(t,e.child,null,l),a=t.child,a.memoizedState=mu(l),a.childLanes=vu(e,u,l),t.memoizedState=yu,t=n);else if(dl(t),ls(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var D=u.dgst;u=D,a=Error(c(419)),a.stack="",a.digest=u,Ja({value:a,source:null,stack:null}),t=Su(e,t,l)}else if($e||Ia(e,t,l,!1),u=(l&e.childLanes)!==0,$e||u){if(u=ze,u!==null&&(a=l&-l,a=(a&42)!==0?1:ar(a),a=(a&(u.suspendedLanes|l))!==0?0:a,a!==0&&a!==h.retryLane))throw h.retryLane=a,ua(e,a),vt(u,e,a),Go;o.data==="$?"||Hu(),t=Su(e,t,l)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=h.treeContext,Ue=Mt(o.nextSibling),nt=t,_e=!0,Ul=null,Lt=!1,e!==null&&(jt[Ct++]=Qt,jt[Ct++]=Ft,jt[Ct++]=Ml,Qt=e.id,Ft=e.overflow,Ml=t),t=xu(t,a.children),t.flags|=4096);return t}return n?(gl(),n=a.fallback,o=t.mode,h=e.child,D=h.sibling,a=Vt(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,D!==null?n=Vt(D,n):(n=Rl(n,o,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,o=e.child.memoizedState,o===null?o=mu(l):(h=o.cachePool,h!==null?(D=Ve._currentValue,h=h.parent!==D?{parent:D,pool:D}:h):h=Mc(),o={baseLanes:o.baseLanes|l,cachePool:h}),n.memoizedState=o,n.childLanes=vu(e,u,l),t.memoizedState=yu,a):(dl(t),l=e.child,e=l.sibling,l=Vt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function xu(e,t){return t=Ni({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ni(e,t){return e=pt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Su(e,t,l){return ma(t,e.child,null,l),e=xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Io(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Hr(e.return,t,l)}function Eu(e,t,l,a,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n)}function Wo(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;if(Ie(e,t,a.children,l),a=Qe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Io(e,l,t);else if(e.tag===19)Io(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(Qe,a),n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&vi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Eu(t,!1,n,l,i);break;case"backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&vi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Eu(t,!0,l,null,i);break;case"together":Eu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ml|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ia(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=Vt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Vt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Nu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function Mp(e,t,l){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),ul(t,Ve,e.memoizedState.cache),Ka();break;case 27:case 5:za(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:ul(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Jo(e,t,l):(dl(t),e=Wt(e,t,l),e!==null?e.sibling:null);dl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ia(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Wo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Qe,Qe.current),a)break;return null;case 22:case 23:return t.lanes=0,Vo(e,t,l);case 24:ul(t,Ve,e.memoizedState.cache)}return Wt(e,t,l)}function Po(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Nu(e,l)&&(t.flags&128)===0)return $e=!1,Mp(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,_e&&(t.flags&1048576)!==0&&jc(t,li,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,n=a._init;if(a=n(a._payload),t.type=a,typeof a=="function")kr(a)?(e=Zl(a,e),t.tag=1,t=$o(null,t,a,e,l)):(t.tag=0,t=bu(null,t,a,e,l));else{if(a!=null){if(n=a.$$typeof,n===J){t.tag=11,t=Yo(null,t,a,e,l);break e}else if(n===ie){t.tag=14,t=Zo(null,t,a,e,l);break e}}throw t=F(a)||a,Error(c(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Zl(a,t.pendingProps),$o(e,t,a,n,l);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Qr(e,t),nn(t,a,null,l);var u=t.memoizedState;if(a=u.cache,ul(t,Ve,a),a!==i.cache&&qr(t,[Ve],l,!0),an(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Ko(e,t,a,l);break e}else if(a!==n){n=Tt(Error(c(424)),t),Ja(n),t=Ko(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=Mt(e.firstChild),nt=t,_e=!0,Ul=null,Lt=!0,l=Do(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ka(),a===n){t=Wt(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return Ei(e,t),e===null?(l=nd(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,a=Ui(te.current).createElement(l),a[et]=t,a[rt]=e,Pe(a,l,e),Fe(a),t.stateNode=a):t.memoizedState=nd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return za(t),e===null&&_e&&(a=t.stateNode=td(t.type,t.pendingProps,te.current),nt=t,Lt=!0,n=Ue,El(t.type)?(as=n,Ue=Mt(a.firstChild)):Ue=n),Ie(e,t,t.pendingProps.children,l),Ei(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((n=a=Ue)&&(a=ch(a,t.type,t.pendingProps,Lt),a!==null?(t.stateNode=a,nt=t,Ue=Mt(a.firstChild),Lt=!1,n=!0):n=!1),n||Bl(t)),za(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,Pu(n,i)?a=null:u!==null&&Pu(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=Wr(e,t,wp,null,null,l),wn._currentValue=n),Ei(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&_e&&((e=l=Ue)&&(l=oh(l,t.pendingProps,Lt),l!==null?(t.stateNode=l,nt=t,Ue=null,e=!0):e=!1),e||Bl(t)),null;case 13:return Jo(e,t,l);case 4:return pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ma(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return Yo(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ul(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,ql(t),n=tt(n),a=a(n),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return Zo(e,t,t.type,t.pendingProps,l);case 15:return Xo(e,t,t.type,t.pendingProps,l);case 19:return Wo(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Ni(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Vt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return Vo(e,t,l);case 24:return ql(t),a=tt(Ve),e===null?(n=Zr(),n===null&&(n=ze,i=Gr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Vr(t),ul(t,Ve,n)):((e.lanes&l)!==0&&(Qr(e,t),nn(t,null,null,l),an()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ul(t,Ve,a)):(a=i.cache,ul(t,Ve,a),a!==n.cache&&qr(t,[Ve],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Pt(e){e.flags|=4}function ef(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cd(t)){if(t=Ot.current,t!==null&&((Ne&4194048)===Ne?Ut!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Ut))throw tn=Xr,Lc;e.flags|=8192}}function Ai(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ds():536870912,e.lanes|=t,Ea|=t)}function dn(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Lp(e,t,l){var a=t.pendingProps;switch(Lr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(Ve),Te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&($a(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dc())),Le(t),null;case 26:return l=t.memoizedState,e===null?(Pt(t),l!==null?(Le(t),ef(t,l)):(Le(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Pt(t),Le(t),ef(t,l)):(Le(t),t.flags&=-16777217):(e.memoizedProps!==a&&Pt(t),Le(t),t.flags&=-16777217),null;case 27:jl(t),l=te.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Le(t),null}e=le.current,$a(t)?Cc(t):(e=td(n,a,l),t.stateNode=e,Pt(t))}return Le(t),null;case 5:if(jl(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Le(t),null}if(e=le.current,$a(t))Cc(t);else{switch(n=Ui(te.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?n.createElement(l,{is:a.is}):n.createElement(l)}}e[et]=t,e[rt]=a;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(Pe(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Pt(t)}}return Le(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=te.current,$a(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=nt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||$f(e.nodeValue,l)),e||Bl(t)}else e=Ui(e).createTextNode(a),e[et]=t,t.stateNode=e}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else Ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(It(t),t):(It(t),null)}if(It(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Ai(t,t.updateQueue),Le(t),null;case 4:return Te(),e===null&&$u(t.stateNode.containerInfo),Le(t),null;case 10:return Kt(t.type),Le(t),null;case 19:if($(Qe),n=t.memoizedState,n===null)return Le(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)dn(n,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=vi(e),i!==null){for(t.flags|=128,dn(n,!1),e=i.updateQueue,t.updateQueue=e,Ai(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wc(l,e),l=l.sibling;return K(Qe,Qe.current&1|2),t.child}e=e.sibling}n.tail!==null&&it()>wi&&(t.flags|=128,a=!0,dn(n,!1),t.lanes=4194304)}else{if(!a)if(e=vi(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ai(t,e),dn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!_e)return Le(t),null}else 2*it()-n.renderingStartTime>wi&&l!==536870912&&(t.flags|=128,a=!0,dn(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=it(),t.sibling=null,e=Qe.current,K(Qe,a?e&1|2:e&1),t):(Le(t),null);case 22:case 23:return It(t),Jr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Ai(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&$(Gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(Ve),Le(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Up(e,t){switch(Lr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(Ve),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jl(t),null;case 13:if(It(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Qe),null;case 4:return Te(),null;case 10:return Kt(t.type),null;case 22:case 23:return It(t),Jr(),e!==null&&$(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(Ve),null;case 25:return null;default:return null}}function tf(e,t){switch(Lr(t),t.tag){case 3:Kt(Ve),Te();break;case 26:case 27:case 5:jl(t);break;case 4:Te();break;case 13:It(t);break;case 19:$(Qe);break;case 10:Kt(t.type);break;case 22:case 23:It(t),Jr(),e!==null&&$(Gl);break;case 24:Kt(Ve)}}function gn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(o){ke(t,t.return,o)}}function pl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var u=a.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,n=t;var h=l,D=o;try{D()}catch(B){ke(n,h,B)}}}a=a.next}while(a!==i)}}catch(B){ke(t,t.return,B)}}function lf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Yc(t,l)}catch(a){ke(e,e.return,a)}}}function af(e,t,l){l.props=Zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ke(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ke(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ke(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ke(e,t,n)}else l.current=null}function nf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ke(e,e.return,n)}}function Au(e,t,l){try{var a=e.stateNode;nh(a,e.type,l,t),a[rt]=t}catch(n){ke(e,e.return,n)}}function rf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&El(e.type)||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&El(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Li));else if(a!==4&&(a===27&&El(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Tu(e,t,l),e=e.sibling;e!==null;)Tu(e,t,l),e=e.sibling}function _i(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&El(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(_i(e,t,l),e=e.sibling;e!==null;)_i(e,t,l),e=e.sibling}function uf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[et]=e,t[rt]=l}catch(i){ke(e,e.return,i)}}var el=!1,Ye=!1,wu=!1,sf=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Bp(e,t){if(e=e.containerInfo,Iu=Zi,e=yc(e),_r(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,o=-1,h=-1,D=0,B=0,G=e,k=null;t:for(;;){for(var R;G!==l||n!==0&&G.nodeType!==3||(o=u+n),G!==i||a!==0&&G.nodeType!==3||(h=u+a),G.nodeType===3&&(u+=G.nodeValue.length),(R=G.firstChild)!==null;)k=G,G=R;for(;;){if(G===e)break t;if(k===l&&++D===n&&(o=u),k===i&&++B===a&&(h=u),(R=G.nextSibling)!==null)break;G=k,k=G.parentNode}G=R}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wu={focusedElem:e,selectionRange:l},Zi=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var fe=Zl(l.type,n,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(fe,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ce){ke(l,l.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ts(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ts(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function cf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:hl(e,l),a&4&&gn(5,l);break;case 1:if(hl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){ke(l,l.return,u)}else{var n=Zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){ke(l,l.return,u)}}a&64&&lf(l),a&512&&pn(l,l.return);break;case 3:if(hl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Yc(e,t)}catch(u){ke(l,l.return,u)}}break;case 27:t===null&&a&4&&uf(l);case 26:case 5:hl(e,l),t===null&&a&4&&nf(l),a&512&&pn(l,l.return);break;case 12:hl(e,l);break;case 13:hl(e,l),a&4&&df(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fp.bind(null,l),fh(e,l))));break;case 22:if(a=l.memoizedState!==null||el,!a){t=t!==null&&t.memoizedState!==null||Ye,n=el;var i=Ye;el=a,(Ye=t)&&!i?bl(e,l,(l.subtreeFlags&8772)!==0):hl(e,l),el=n,Ye=i}break;case 30:break;default:hl(e,l)}}function of(e){var t=e.alternate;t!==null&&(e.alternate=null,of(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&rr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,ct=!1;function tl(e,t,l){for(l=l.child;l!==null;)ff(e,t,l),l=l.sibling}function ff(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ra,l)}catch{}switch(l.tag){case 26:Ye||Bt(l,t),tl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ye||Bt(l,t);var a=Me,n=ct;El(l.type)&&(Me=l.stateNode,ct=!1),tl(e,t,l),Nn(l.stateNode),Me=a,ct=n;break;case 5:Ye||Bt(l,t);case 6:if(a=Me,n=ct,Me=null,tl(e,t,l),Me=a,ct=n,Me!==null)if(ct)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(l.stateNode)}catch(i){ke(l,t,i)}else try{Me.removeChild(l.stateNode)}catch(i){ke(l,t,i)}break;case 18:Me!==null&&(ct?(e=Me,Pf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Dn(e)):Pf(Me,l.stateNode));break;case 4:a=Me,n=ct,Me=l.stateNode.containerInfo,ct=!0,tl(e,t,l),Me=a,ct=n;break;case 0:case 11:case 14:case 15:Ye||pl(2,l,t),Ye||pl(4,l,t),tl(e,t,l);break;case 1:Ye||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&af(l,t,a)),tl(e,t,l);break;case 21:tl(e,t,l);break;case 22:Ye=(a=Ye)||l.memoizedState!==null,tl(e,t,l),Ye=a;break;default:tl(e,t,l)}}function df(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dn(e)}catch(l){ke(t,t.return,l)}}function Hp(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sf),t;default:throw Error(c(435,e.tag))}}function ju(e,t){var l=Hp(e);t.forEach(function(a){var n=$p.bind(null,e,a);l.has(a)||(l.add(a),a.then(n,n))})}function ht(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,u=t,o=u;e:for(;o!==null;){switch(o.tag){case 27:if(El(o.type)){Me=o.stateNode,ct=!1;break e}break;case 5:Me=o.stateNode,ct=!1;break e;case 3:case 4:Me=o.stateNode.containerInfo,ct=!0;break e}o=o.return}if(Me===null)throw Error(c(160));ff(i,u,n),Me=null,ct=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)gf(t,e),t=t.sibling}var Rt=null;function gf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),bt(e),a&4&&(pl(3,e,e.return),gn(3,e),pl(5,e,e.return));break;case 1:ht(t,e),bt(e),a&512&&(Ye||l===null||Bt(l,l.return)),a&64&&el&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Rt;if(ht(t,e),bt(e),a&512&&(Ye||l===null||Bt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ua]||i[et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Pe(i,a,l),i[et]=e,Fe(i),a=i;break e;case"link":var u=ud("link","href",n).get(a+(l.href||""));if(u){for(var o=0;o<u.length;o++)if(i=u[o],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;case"meta":if(u=ud("meta","content",n).get(a+(l.content||""))){for(o=0;o<u.length;o++)if(i=u[o],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;default:throw Error(c(468,a))}i[et]=e,Fe(i),a=i}e.stateNode=a}else sd(n,e.type,e.stateNode);else e.stateNode=rd(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?sd(n,e.type,e.stateNode):rd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Au(e,e.memoizedProps,l.memoizedProps)}break;case 27:ht(t,e),bt(e),a&512&&(Ye||l===null||Bt(l,l.return)),l!==null&&a&4&&Au(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ht(t,e),bt(e),a&512&&(Ye||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ea(n,"")}catch(R){ke(e,e.return,R)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Au(e,n,l!==null?l.memoizedProps:n)),a&1024&&(wu=!0);break;case 6:if(ht(t,e),bt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(R){ke(e,e.return,R)}}break;case 3:if(qi=null,n=Rt,Rt=Bi(t.containerInfo),ht(t,e),Rt=n,bt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Dn(t.containerInfo)}catch(R){ke(e,e.return,R)}wu&&(wu=!1,pf(e));break;case 4:a=Rt,Rt=Bi(e.stateNode.containerInfo),ht(t,e),bt(e),Rt=a;break;case 12:ht(t,e),bt(e);break;case 13:ht(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ru=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ju(e,a)));break;case 22:n=e.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,D=el,B=Ye;if(el=D||n,Ye=B||h,ht(t,e),Ye=B,el=D,bt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||h||el||Ye||Xl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){h=l=t;try{if(i=h.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=h.stateNode;var G=h.memoizedProps.style,k=G!=null&&G.hasOwnProperty("display")?G.display:null;o.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(R){ke(h,h.return,R)}}}else if(t.tag===6){if(l===null){h=t;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(R){ke(h,h.return,R)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ju(e,l))));break;case 19:ht(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ju(e,a)));break;case 30:break;case 21:break;default:ht(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(rf(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,i=_u(e);_i(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(ea(u,""),l.flags&=-33);var o=_u(e);_i(e,o,u);break;case 3:case 4:var h=l.stateNode.containerInfo,D=_u(e);Tu(e,D,h);break;default:throw Error(c(161))}}catch(B){ke(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cf(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pl(4,t,t.return),Xl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&af(t,t.return,l),Xl(t);break;case 27:Nn(t.stateNode);case 26:case 5:Bt(t,t.return),Xl(t);break;case 22:t.memoizedState===null&&Xl(t);break;case 30:Xl(t);break;default:Xl(t)}e=e.sibling}}function bl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:bl(n,i,l),gn(4,i);break;case 1:if(bl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(D){ke(a,a.return,D)}if(a=i,n=a.updateQueue,n!==null){var o=a.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)Gc(h[n],o)}catch(D){ke(a,a.return,D)}}l&&u&64&&lf(i),pn(i,i.return);break;case 27:uf(i);case 26:case 5:bl(n,i,l),l&&a===null&&u&4&&nf(i),pn(i,i.return);break;case 12:bl(n,i,l);break;case 13:bl(n,i,l),l&&u&4&&df(n,i);break;case 22:i.memoizedState===null&&bl(n,i,l),pn(i,i.return);break;case 30:break;default:bl(n,i,l)}t=t.sibling}}function Cu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Wa(l))}function Ou(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wa(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hf(e,t,l,a),t=t.sibling}function hf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),n&2048&&gn(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wa(e)));break;case 12:if(n&2048){Ht(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,o=i.onPostCommit;typeof o=="function"&&o(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){ke(t,t.return,h)}}else Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Ht(e,t,l,a):hn(e,t):i._visibility&2?Ht(e,t,l,a):(i._visibility|=2,va(e,t,l,a,(t.subtreeFlags&10256)!==0)),n&2048&&Cu(u,t);break;case 24:Ht(e,t,l,a),n&2048&&Ou(t.alternate,t);break;default:Ht(e,t,l,a)}}function va(e,t,l,a,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,u=t,o=l,h=a,D=u.flags;switch(u.tag){case 0:case 11:case 15:va(i,u,o,h,n),gn(8,u);break;case 23:break;case 22:var B=u.stateNode;u.memoizedState!==null?B._visibility&2?va(i,u,o,h,n):hn(i,u):(B._visibility|=2,va(i,u,o,h,n)),n&&D&2048&&Cu(u.alternate,u);break;case 24:va(i,u,o,h,n),n&&D&2048&&Ou(u.alternate,u);break;default:va(i,u,o,h,n)}t=t.sibling}}function hn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:hn(l,a),n&2048&&Cu(a.alternate,a);break;case 24:hn(l,a),n&2048&&Ou(a.alternate,a);break;default:hn(l,a)}t=t.sibling}}var bn=8192;function xa(e){if(e.subtreeFlags&bn)for(e=e.child;e!==null;)bf(e),e=e.sibling}function bf(e){switch(e.tag){case 26:xa(e),e.flags&bn&&e.memoizedState!==null&&Ah(Rt,e.memoizedState,e.memoizedProps);break;case 5:xa(e);break;case 3:case 4:var t=Rt;Rt=Bi(e.stateNode.containerInfo),xa(e),Rt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=bn,bn=16777216,xa(e),bn=t):xa(e));break;default:xa(e)}}function yf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,vf(a,e)}yf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mf(e),e=e.sibling}function mf(e){switch(e.tag){case 0:case 11:case 15:yn(e),e.flags&2048&&pl(9,e,e.return);break;case 3:yn(e);break;case 12:yn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ti(e)):yn(e);break;default:yn(e)}}function Ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,vf(a,e)}yf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pl(8,t,t.return),Ti(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ti(t));break;default:Ti(t)}e=e.sibling}}function vf(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:pl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Wa(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,i=a.return;if(of(a),a===l){Ke=null;break e}if(n!==null){n.return=i,Ke=n;break e}Ke=i}}}var qp={getCacheForType:function(e){var t=tt(Ve),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Gp=typeof WeakMap=="function"?WeakMap:Map,we=0,ze=null,xe=null,Ne=0,je=0,yt=null,yl=!1,Sa=!1,Du=!1,ll=0,Be=0,ml=0,Vl=0,ku=0,Dt=0,Ea=0,mn=null,ot=null,zu=!1,Ru=0,wi=1/0,ji=null,vl=null,We=0,xl=null,Na=null,Aa=0,Mu=0,Lu=null,xf=null,vn=0,Uu=null;function mt(){if((we&2)!==0&&Ne!==0)return Ne&-Ne;if(w.T!==null){var e=fa;return e!==0?e:Xu()}return Rs()}function Sf(){Dt===0&&(Dt=(Ne&536870912)===0||_e?Os():536870912);var e=Ot.current;return e!==null&&(e.flags|=32),Dt}function vt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(_a(e,0),Sl(e,Ne,Dt,!1)),La(e,l),((we&2)===0||e!==ze)&&(e===ze&&((we&2)===0&&(Vl|=l),Be===4&&Sl(e,Ne,Dt,!1)),qt(e))}function Ef(e,t,l){if((we&6)!==0)throw Error(c(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ma(e,t),n=a?Xp(e,t):qu(e,t,!0),i=a;do{if(n===0){Sa&&!a&&Sl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Yp(l)){n=qu(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var o=e;n=mn;var h=o.current.memoizedState.isDehydrated;if(h&&(_a(o,u).flags|=256),u=qu(o,u,!1),u!==2){if(Du&&!h){o.errorRecoveryDisabledLanes|=i,Vl|=i,n=4;break e}i=ot,ot=n,i!==null&&(ot===null?ot=i:ot.push.apply(ot,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){_a(e,0),Sl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Sl(a,t,Dt,!yl);break e;case 2:ot=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=Ru+300-it(),10<n)){if(Sl(a,t,Dt,!yl),Hn(a,0,!0)!==0)break e;a.timeoutHandle=If(Nf.bind(null,a,l,ot,ji,zu,t,Dt,Vl,Ea,yl,i,2,-0,0),n);break e}Nf(a,l,ot,ji,zu,t,Dt,Vl,Ea,yl,i,0,-0,0)}}break}while(!0);qt(e)}function Nf(e,t,l,a,n,i,u,o,h,D,B,G,k,R){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(Tn={stylesheets:null,count:0,unsuspend:Nh},bf(t),G=_h(),G!==null)){e.cancelPendingCommit=G(Of.bind(null,e,t,i,l,a,n,u,o,h,B,1,k,R)),Sl(e,i,u,!D);return}Of(e,t,i,l,a,n,u,o,h)}function Yp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!gt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t,l,a){t&=~ku,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-dt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&ks(e,l,t)}function Ci(){return(we&6)===0?(xn(0),!1):!0}function Bu(){if(xe!==null){if(je===0)var e=xe.return;else e=xe,$t=Hl=null,tu(e),ya=null,on=0,e=xe;for(;e!==null;)tf(e.alternate,e),e=e.return;xe=null}}function _a(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,rh(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Bu(),ze=e,xe=l=Vt(e.current,null),Ne=t,je=0,yt=null,yl=!1,Sa=Ma(e,t),Du=!1,Ea=Dt=ku=Vl=ml=Be=0,ot=mn=null,zu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-dt(a),i=1<<n;t|=e[n],a&=~i}return ll=t,In(),l}function Af(e,t){me=null,w.H=bi,t===en||t===ri?(t=Hc(),je=3):t===Lc?(t=Hc(),je=4):je=t===Go?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,xe===null&&(Be=1,Si(e,Tt(t,e.current)))}function _f(){var e=w.H;return w.H=bi,e===null?bi:e}function Tf(){var e=w.A;return w.A=qp,e}function Hu(){Be=4,yl||(Ne&4194048)!==Ne&&Ot.current!==null||(Sa=!0),(ml&134217727)===0&&(Vl&134217727)===0||ze===null||Sl(ze,Ne,Dt,!1)}function qu(e,t,l){var a=we;we|=2;var n=_f(),i=Tf();(ze!==e||Ne!==t)&&(ji=null,_a(e,t)),t=!1;var u=Be;e:do try{if(je!==0&&xe!==null){var o=xe,h=yt;switch(je){case 8:Bu(),u=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var D=je;if(je=0,yt=null,Ta(e,o,h,D),l&&Sa){u=0;break e}break;default:D=je,je=0,yt=null,Ta(e,o,h,D)}}Zp(),u=Be;break}catch(B){Af(e,B)}while(!0);return t&&e.shellSuspendCounter++,$t=Hl=null,we=a,w.H=n,w.A=i,xe===null&&(ze=null,Ne=0,In()),u}function Zp(){for(;xe!==null;)wf(xe)}function Xp(e,t){var l=we;we|=2;var a=_f(),n=Tf();ze!==e||Ne!==t?(ji=null,wi=it()+500,_a(e,t)):Sa=Ma(e,t);e:do try{if(je!==0&&xe!==null){t=xe;var i=yt;t:switch(je){case 1:je=0,yt=null,Ta(e,t,i,1);break;case 2:case 9:if(Uc(i)){je=0,yt=null,jf(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),qt(e)},i.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Uc(i)?(je=0,yt=null,jf(t)):(je=0,yt=null,Ta(e,t,i,7));break;case 5:var u=null;switch(xe.tag){case 26:u=xe.memoizedState;case 5:case 27:var o=xe;if(!u||cd(u)){je=0,yt=null;var h=o.sibling;if(h!==null)xe=h;else{var D=o.return;D!==null?(xe=D,Oi(D)):xe=null}break t}}je=0,yt=null,Ta(e,t,i,5);break;case 6:je=0,yt=null,Ta(e,t,i,6);break;case 8:Bu(),Be=6;break e;default:throw Error(c(462))}}Vp();break}catch(B){Af(e,B)}while(!0);return $t=Hl=null,w.H=a,w.A=n,we=l,xe!==null?0:(ze=null,Ne=0,In(),Be)}function Vp(){for(;xe!==null&&!at();)wf(xe)}function wf(e){var t=Po(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Oi(e):xe=t}function jf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Fo(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Fo(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:tu(t);default:tf(l,t),t=xe=wc(t,ll),t=Po(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Oi(e):xe=t}function Ta(e,t,l,a){$t=Hl=null,tu(t),ya=null,on=0;var n=t.return;try{if(Rp(e,n,t,l,Ne)){Be=1,Si(e,Tt(l,e.current)),xe=null;return}}catch(i){if(n!==null)throw xe=n,i;Be=1,Si(e,Tt(l,e.current)),xe=null;return}t.flags&32768?(_e||a===1?e=!0:Sa||(Ne&536870912)!==0?e=!1:(yl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Cf(t,e)):Oi(t)}function Oi(e){var t=e;do{if((t.flags&32768)!==0){Cf(t,yl);return}e=t.return;var l=Lp(t.alternate,t,ll);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Be===0&&(Be=5)}function Cf(e,t){do{var l=Up(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);Be=6,xe=null}function Of(e,t,l,a,n,i,u,o,h){e.cancelPendingCommit=null;do Di();while(We!==0);if((we&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(i=t.lanes|t.childLanes,i|=Or,Ng(e,l,i,u,o,h),e===ze&&(xe=ze=null,Ne=0),Na=t,xl=e,Aa=l,Mu=i,Lu=n,xf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Kp(Ln,function(){return Mf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,n=X.p,X.p=2,u=we,we|=4;try{Bp(e,t,l)}finally{we=u,X.p=n,w.T=a}}We=1,Df(),kf(),zf()}}function Df(){if(We===1){We=0;var e=xl,t=Na,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var a=X.p;X.p=2;var n=we;we|=4;try{gf(t,e);var i=Wu,u=yc(e.containerInfo),o=i.focusedElem,h=i.selectionRange;if(u!==o&&o&&o.ownerDocument&&bc(o.ownerDocument.documentElement,o)){if(h!==null&&_r(o)){var D=h.start,B=h.end;if(B===void 0&&(B=D),"selectionStart"in o)o.selectionStart=D,o.selectionEnd=Math.min(B,o.value.length);else{var G=o.ownerDocument||document,k=G&&G.defaultView||window;if(k.getSelection){var R=k.getSelection(),fe=o.textContent.length,ce=Math.min(h.start,fe),De=h.end===void 0?ce:Math.min(h.end,fe);!R.extend&&ce>De&&(u=De,De=ce,ce=u);var A=hc(o,ce),v=hc(o,De);if(A&&v&&(R.rangeCount!==1||R.anchorNode!==A.node||R.anchorOffset!==A.offset||R.focusNode!==v.node||R.focusOffset!==v.offset)){var C=G.createRange();C.setStart(A.node,A.offset),R.removeAllRanges(),ce>De?(R.addRange(C),R.extend(v.node,v.offset)):(C.setEnd(v.node,v.offset),R.addRange(C))}}}}for(G=[],R=o;R=R.parentNode;)R.nodeType===1&&G.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<G.length;o++){var q=G[o];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Zi=!!Iu,Wu=Iu=null}finally{we=n,X.p=a,w.T=l}}e.current=t,We=2}}function kf(){if(We===2){We=0;var e=xl,t=Na,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var a=X.p;X.p=2;var n=we;we|=4;try{cf(e,t.alternate,t)}finally{we=n,X.p=a,w.T=l}}We=3}}function zf(){if(We===4||We===3){We=0,Yt();var e=xl,t=Na,l=Aa,a=xf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,Na=xl=null,Rf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(vl=null),nr(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Ra,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=w.T,n=X.p,X.p=2,w.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var o=a[u];i(o.value,{componentStack:o.stack})}}finally{w.T=t,X.p=n}}(Aa&3)!==0&&Di(),qt(e),n=e.pendingLanes,(l&4194090)!==0&&(n&42)!==0?e===Uu?vn++:(vn=0,Uu=e):vn=0,xn(0)}}function Rf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wa(t)))}function Di(e){return Df(),kf(),zf(),Mf()}function Mf(){if(We!==5)return!1;var e=xl,t=Mu;Mu=0;var l=nr(Aa),a=w.T,n=X.p;try{X.p=32>l?32:l,w.T=null,l=Lu,Lu=null;var i=xl,u=Aa;if(We=0,Na=xl=null,Aa=0,(we&6)!==0)throw Error(c(331));var o=we;if(we|=4,mf(i.current),hf(i,i.current,u,l),we=o,xn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Ra,i)}catch{}return!0}finally{X.p=n,w.T=a,Rf(e,t)}}function Lf(e,t,l){t=Tt(l,t),t=hu(e.stateNode,t,2),e=ol(e,t,2),e!==null&&(La(e,2),qt(e))}function ke(e,t,l){if(e.tag===3)Lf(e,e,l);else for(;t!==null;){if(t.tag===3){Lf(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){e=Tt(l,e),l=Ho(2),a=ol(t,l,2),a!==null&&(qo(l,a,t,e),La(a,2),qt(a));break}}t=t.return}}function Gu(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Gp;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Du=!0,n.add(l),e=Qp.bind(null,e,t,l),t.then(e,e))}function Qp(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(Ne&l)===l&&(Be===4||Be===3&&(Ne&62914560)===Ne&&300>it()-Ru?(we&2)===0&&_a(e,0):ku|=l,Ea===Ne&&(Ea=0)),qt(e)}function Uf(e,t){t===0&&(t=Ds()),e=ua(e,t),e!==null&&(La(e,t),qt(e))}function Fp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Uf(e,l)}function $p(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Uf(e,l)}function Kp(e,t){return Re(e,t)}var ki=null,wa=null,Yu=!1,zi=!1,Zu=!1,Ql=0;function qt(e){e!==wa&&e.next===null&&(wa===null?ki=wa=e:wa=wa.next=e),zi=!0,Yu||(Yu=!0,Ip())}function xn(e,t){if(!Zu&&zi){Zu=!0;do for(var l=!1,a=ki;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-dt(42|e)+1)-1,i&=n&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Gf(a,i))}else i=Ne,i=Hn(a,a===ze?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ma(a,i)||(l=!0,Gf(a,i));a=a.next}while(l);Zu=!1}}function Jp(){Bf()}function Bf(){zi=Yu=!1;var e=0;Ql!==0&&(ih()&&(e=Ql),Ql=0);for(var t=it(),l=null,a=ki;a!==null;){var n=a.next,i=Hf(a,t);i===0?(a.next=null,l===null?ki=n:l.next=n,n===null&&(wa=l)):(l=a,(e!==0||(i&3)!==0)&&(zi=!0)),a=n}xn(e)}function Hf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-dt(i),o=1<<u,h=n[u];h===-1?((o&l)===0||(o&a)!==0)&&(n[u]=Eg(o,t)):h<=t&&(e.expiredLanes|=o),i&=~o}if(t=ze,l=Ne,l=Hn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&qe(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ma(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&qe(a),nr(l)){case 2:case 8:l=js;break;case 32:l=Ln;break;case 268435456:l=Cs;break;default:l=Ln}return a=qf.bind(null,e),l=Re(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&qe(a),e.callbackPriority=2,e.callbackNode=null,2}function qf(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Di()&&e.callbackNode!==l)return null;var a=Ne;return a=Hn(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Ef(e,a,t),Hf(e,it()),e.callbackNode!=null&&e.callbackNode===l?qf.bind(null,e):null)}function Gf(e,t){if(Di())return null;Ef(e,t,!0)}function Ip(){uh(function(){(we&6)!==0?Re(ws,Jp):Bf()})}function Xu(){return Ql===0&&(Ql=Os()),Ql}function Yf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xn(""+e)}function Zf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Wp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Yf((n[rt]||null).action),u=a.submitter;u&&(t=(t=u[rt]||null)?Yf(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var o=new $n("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ql!==0){var h=u?Zf(n,u):new FormData(n);ou(l,{pending:!0,data:h,method:n.method,action:i},null,h)}}else typeof i=="function"&&(o.preventDefault(),h=u?Zf(n,u):new FormData(n),ou(l,{pending:!0,data:h,method:n.method,action:i},i,h))},currentTarget:n}]})}}for(var Vu=0;Vu<Cr.length;Vu++){var Qu=Cr[Vu],Pp=Qu.toLowerCase(),eh=Qu[0].toUpperCase()+Qu.slice(1);zt(Pp,"on"+eh)}zt(xc,"onAnimationEnd"),zt(Sc,"onAnimationIteration"),zt(Ec,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(yp,"onTransitionRun"),zt(mp,"onTransitionStart"),zt(vp,"onTransitionCancel"),zt(Nc,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sn="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(" "),th=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sn));function Xf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var o=a[u],h=o.instance,D=o.currentTarget;if(o=o.listener,h!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=D;try{i(n)}catch(B){xi(B)}n.currentTarget=null,i=h}else for(u=0;u<a.length;u++){if(o=a[u],h=o.instance,D=o.currentTarget,o=o.listener,h!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=D;try{i(n)}catch(B){xi(B)}n.currentTarget=null,i=h}}}}function Se(e,t){var l=t[ir];l===void 0&&(l=t[ir]=new Set);var a=e+"__bubble";l.has(a)||(Vf(t,e,2,!1),l.add(a))}function Fu(e,t,l){var a=0;t&&(a|=4),Vf(l,e,a,t)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function $u(e){if(!e[Ri]){e[Ri]=!0,Ls.forEach(function(l){l!=="selectionchange"&&(th.has(l)||Fu(l,!1,e),Fu(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ri]||(t[Ri]=!0,Fu("selectionchange",!1,t))}}function Vf(e,t,l,a){switch(hd(t)){case 2:var n=jh;break;case 8:n=Ch;break;default:n=ss}l=n.bind(null,t,l,e),n=void 0,!br||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Ku(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var o=a.stateNode.containerInfo;if(o===n)break;if(u===4)for(u=a.return;u!==null;){var h=u.tag;if((h===3||h===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;o!==null;){if(u=$l(o),u===null)return;if(h=u.tag,h===5||h===6||h===26||h===27){a=i=u;continue e}o=o.parentNode}}a=a.return}Js(function(){var D=i,B=pr(l),G=[];e:{var k=Ac.get(e);if(k!==void 0){var R=$n,fe=e;switch(e){case"keypress":if(Qn(l)===0)break e;case"keydown":case"keyup":R=Kg;break;case"focusin":fe="focus",R=xr;break;case"focusout":fe="blur",R=xr;break;case"beforeblur":case"afterblur":R=xr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Ps;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Ug;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Wg;break;case xc:case Sc:case Ec:R=qg;break;case Nc:R=ep;break;case"scroll":case"scrollend":R=Mg;break;case"wheel":R=lp;break;case"copy":case"cut":case"paste":R=Yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=tc;break;case"toggle":case"beforetoggle":R=np}var ce=(t&4)!==0,De=!ce&&(e==="scroll"||e==="scrollend"),A=ce?k!==null?k+"Capture":null:k;ce=[];for(var v=D,C;v!==null;){var q=v;if(C=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||C===null||A===null||(q=Ha(v,A),q!=null&&ce.push(En(v,q,C))),De)break;v=v.return}0<ce.length&&(k=new R(k,fe,null,l,B),G.push({event:k,listeners:ce}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",k&&l!==gr&&(fe=l.relatedTarget||l.fromElement)&&($l(fe)||fe[Fl]))break e;if((R||k)&&(k=B.window===B?B:(k=B.ownerDocument)?k.defaultView||k.parentWindow:window,R?(fe=l.relatedTarget||l.toElement,R=D,fe=fe?$l(fe):null,fe!==null&&(De=b(fe),ce=fe.tag,fe!==De||ce!==5&&ce!==27&&ce!==6)&&(fe=null)):(R=null,fe=D),R!==fe)){if(ce=Ps,q="onMouseLeave",A="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ce=tc,q="onPointerLeave",A="onPointerEnter",v="pointer"),De=R==null?k:Ba(R),C=fe==null?k:Ba(fe),k=new ce(q,v+"leave",R,l,B),k.target=De,k.relatedTarget=C,q=null,$l(B)===D&&(ce=new ce(A,v+"enter",fe,l,B),ce.target=C,ce.relatedTarget=De,q=ce),De=q,R&&fe)t:{for(ce=R,A=fe,v=0,C=ce;C;C=ja(C))v++;for(C=0,q=A;q;q=ja(q))C++;for(;0<v-C;)ce=ja(ce),v--;for(;0<C-v;)A=ja(A),C--;for(;v--;){if(ce===A||A!==null&&ce===A.alternate)break t;ce=ja(ce),A=ja(A)}ce=null}else ce=null;R!==null&&Qf(G,k,R,ce,!1),fe!==null&&De!==null&&Qf(G,De,fe,ce,!0)}}e:{if(k=D?Ba(D):window,R=k.nodeName&&k.nodeName.toLowerCase(),R==="select"||R==="input"&&k.type==="file")var ae=cc;else if(uc(k))if(oc)ae=pp;else{ae=dp;var ve=fp}else R=k.nodeName,!R||R.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&dr(D.elementType)&&(ae=cc):ae=gp;if(ae&&(ae=ae(e,D))){sc(G,ae,l,B);break e}ve&&ve(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&fr(k,"number",k.value)}switch(ve=D?Ba(D):window,e){case"focusin":(uc(ve)||ve.contentEditable==="true")&&(na=ve,Tr=D,Fa=null);break;case"focusout":Fa=Tr=na=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,mc(G,l,B);break;case"selectionchange":if(bp)break;case"keydown":case"keyup":mc(G,l,B)}var re;if(Er)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else aa?ic(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(lc&&l.locale!=="ko"&&(aa||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&aa&&(re=Is()):(rl=B,yr="value"in rl?rl.value:rl.textContent,aa=!0)),ve=Mi(D,oe),0<ve.length&&(oe=new ec(oe,e,null,l,B),G.push({event:oe,listeners:ve}),re?oe.data=re:(re=rc(l),re!==null&&(oe.data=re)))),(re=rp?up(e,l):sp(e,l))&&(oe=Mi(D,"onBeforeInput"),0<oe.length&&(ve=new ec("onBeforeInput","beforeinput",null,l,B),G.push({event:ve,listeners:oe}),ve.data=re)),Wp(G,e,D,l,B)}Xf(G,t)})}function En(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Mi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ha(e,l),n!=null&&a.unshift(En(e,n,i)),n=Ha(e,t),n!=null&&a.push(En(e,n,i))),e.tag===3)return a;e=e.return}return[]}function ja(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qf(e,t,l,a,n){for(var i=t._reactName,u=[];l!==null&&l!==a;){var o=l,h=o.alternate,D=o.stateNode;if(o=o.tag,h!==null&&h===a)break;o!==5&&o!==26&&o!==27||D===null||(h=D,n?(D=Ha(l,i),D!=null&&u.unshift(En(l,D,h))):n||(D=Ha(l,i),D!=null&&u.push(En(l,D,h)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var lh=/\r\n?/g,ah=/\u0000|\uFFFD/g;function Ff(e){return(typeof e=="string"?e:""+e).replace(lh,`
49
- `).replace(ah,"")}function $f(e,t){return t=Ff(t),Ff(e)===t}function Li(){}function Oe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(e,""+a);break;case"className":Gn(e,"class",a);break;case"tabIndex":Gn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Gn(e,l,a);break;case"style":$s(e,a,i);break;case"data":if(t!=="object"){Gn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Xn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Xn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Li);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Xn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Se("beforetoggle",e),Se("toggle",e),qn(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=zg.get(l)||l,qn(e,l,a))}}function Ju(e,t,l,a,n,i){switch(l){case"style":$s(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ea(e,a):(typeof a=="number"||typeof a=="bigint")&&ea(e,""+a);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Li);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Us.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[rt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):qn(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Oe(e,t,i,u,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":Se("invalid",e);var o=i=u=n=null,h=null,D=null;for(a in l)if(l.hasOwnProperty(a)){var B=l[a];if(B!=null)switch(a){case"name":n=B;break;case"type":u=B;break;case"checked":h=B;break;case"defaultChecked":D=B;break;case"value":i=B;break;case"defaultValue":o=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:Oe(e,t,a,B,l,null)}}Xs(e,i,o,h,D,u,n,!1),Yn(e);return;case"select":Se("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":a=o;default:Oe(e,t,n,o,l,null)}t=i,l=u,e.multiple=!!a,t!=null?Pl(e,!!a,t,!1):l!=null&&Pl(e,!!a,l,!0);return;case"textarea":Se("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(o=l[u],o!=null))switch(u){case"value":a=o;break;case"defaultValue":n=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(c(91));break;default:Oe(e,t,u,o,l,null)}Qs(e,a,n,i),Yn(e);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,h,a,l,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<Sn.length;a++)Se(Sn[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in l)if(l.hasOwnProperty(D)&&(a=l[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Oe(e,t,D,a,l,null)}return;default:if(dr(t)){for(B in l)l.hasOwnProperty(B)&&(a=l[B],a!==void 0&&Ju(e,t,B,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Oe(e,t,o,a,l,null))}function nh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,o=null,h=null,D=null,B=null;for(R in l){var G=l[R];if(l.hasOwnProperty(R)&&G!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":h=G;default:a.hasOwnProperty(R)||Oe(e,t,R,null,a,G)}}for(var k in a){var R=a[k];if(G=l[k],a.hasOwnProperty(k)&&(R!=null||G!=null))switch(k){case"type":i=R;break;case"name":n=R;break;case"checked":D=R;break;case"defaultChecked":B=R;break;case"value":u=R;break;case"defaultValue":o=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,t));break;default:R!==G&&Oe(e,t,k,R,a,G)}}or(e,u,o,h,D,B,i,n);return;case"select":R=u=o=k=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":R=h;default:a.hasOwnProperty(i)||Oe(e,t,i,null,a,h)}for(n in a)if(i=a[n],h=l[n],a.hasOwnProperty(n)&&(i!=null||h!=null))switch(n){case"value":k=i;break;case"defaultValue":o=i;break;case"multiple":u=i;default:i!==h&&Oe(e,t,n,i,a,h)}t=o,l=u,a=R,k!=null?Pl(e,!!l,k,!1):!!a!=!!l&&(t!=null?Pl(e,!!l,t,!0):Pl(e,!!l,l?[]:"",!1));return;case"textarea":R=k=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Oe(e,t,o,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":k=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==i&&Oe(e,t,u,n,a,i)}Vs(e,k,R);return;case"option":for(var fe in l)if(k=l[fe],l.hasOwnProperty(fe)&&k!=null&&!a.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Oe(e,t,fe,null,a,k)}for(h in a)if(k=a[h],R=l[h],a.hasOwnProperty(h)&&k!==R&&(k!=null||R!=null))switch(h){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Oe(e,t,h,k,a,R)}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 ce in l)k=l[ce],l.hasOwnProperty(ce)&&k!=null&&!a.hasOwnProperty(ce)&&Oe(e,t,ce,null,a,k);for(D in a)if(k=a[D],R=l[D],a.hasOwnProperty(D)&&k!==R&&(k!=null||R!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(c(137,t));break;default:Oe(e,t,D,k,a,R)}return;default:if(dr(t)){for(var De in l)k=l[De],l.hasOwnProperty(De)&&k!==void 0&&!a.hasOwnProperty(De)&&Ju(e,t,De,void 0,a,k);for(B in a)k=a[B],R=l[B],!a.hasOwnProperty(B)||k===R||k===void 0&&R===void 0||Ju(e,t,B,k,a,R);return}}for(var A in l)k=l[A],l.hasOwnProperty(A)&&k!=null&&!a.hasOwnProperty(A)&&Oe(e,t,A,null,a,k);for(G in a)k=a[G],R=l[G],!a.hasOwnProperty(G)||k===R||k==null&&R==null||Oe(e,t,G,k,a,R)}var Iu=null,Wu=null;function Ui(e){return e.nodeType===9?e:e.ownerDocument}function Kf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jf(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Pu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var es=null;function ih(){var e=window.event;return e&&e.type==="popstate"?e===es?!1:(es=e,!0):(es=null,!1)}var If=typeof setTimeout=="function"?setTimeout:void 0,rh=typeof clearTimeout=="function"?clearTimeout:void 0,Wf=typeof Promise=="function"?Promise:void 0,uh=typeof queueMicrotask=="function"?queueMicrotask:typeof Wf<"u"?function(e){return Wf.resolve(null).then(e).catch(sh)}:If;function sh(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function Pf(e,t){var l=t,a=0,n=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<a&&8>a){l=a;var u=e.ownerDocument;if(l&1&&Nn(u.documentElement),l&2&&Nn(u.body),l&4)for(l=u.head,Nn(l),u=l.firstChild;u;){var o=u.nextSibling,h=u.nodeName;u[Ua]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=o}}if(n===0){e.removeChild(i),Dn(t);return}n--}else l==="$"||l==="$?"||l==="$!"?n++:a=l.charCodeAt(0)-48;else a=0;l=i}while(l);Dn(t)}function ts(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ts(l),rr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ch(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ua])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Mt(e.nextSibling),e===null)break}return null}function oh(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Mt(e.nextSibling),e===null))return null;return e}function ls(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function fh(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Mt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var as=null;function ed(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function td(e,t,l){switch(t=Ui(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Nn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rr(e)}var kt=new Map,ld=new Set;function Bi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=X.d;X.d={f:dh,r:gh,D:ph,C:hh,L:bh,m:yh,X:vh,S:mh,M:xh};function dh(){var e=al.f(),t=Ci();return e||t}function gh(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?So(t):al.r(e)}var Ca=typeof document>"u"?null:document;function ad(e,t,l){var a=Ca;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),ld.has(n)||(ld.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),Fe(t),a.head.appendChild(t)))}}function ph(e){al.D(e),ad("dns-prefetch",e,null)}function hh(e,t){al.C(e,t),ad("preconnect",e,t)}function bh(e,t,l){al.L(e,t,l);var a=Ca;if(a&&e&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+_t(l.imageSizes)+'"]')):n+='[href="'+_t(e)+'"]';var i=n;switch(t){case"style":i=Oa(e);break;case"script":i=Da(e)}kt.has(i)||(e=m({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),kt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(An(i))||t==="script"&&a.querySelector(_n(i))||(t=a.createElement("link"),Pe(t,"link",e),Fe(t),a.head.appendChild(t)))}}function yh(e,t){al.m(e,t);var l=Ca;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Da(e)}if(!kt.has(i)&&(e=m({rel:"modulepreload",href:e},t),kt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_n(i)))return}a=l.createElement("link"),Pe(a,"link",e),Fe(a),l.head.appendChild(a)}}}function mh(e,t,l){al.S(e,t,l);var a=Ca;if(a&&e){var n=Jl(a).hoistableStyles,i=Oa(e);t=t||"default";var u=n.get(i);if(!u){var o={loading:0,preload:null};if(u=a.querySelector(An(i)))o.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":t},l),(l=kt.get(i))&&ns(e,l);var h=u=a.createElement("link");Fe(h),Pe(h,"link",e),h._p=new Promise(function(D,B){h.onload=D,h.onerror=B}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Hi(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:o},n.set(i,u)}}}function vh(e,t){al.X(e,t);var l=Ca;if(l&&e){var a=Jl(l).hoistableScripts,n=Da(e),i=a.get(n);i||(i=l.querySelector(_n(n)),i||(e=m({src:e,async:!0},t),(t=kt.get(n))&&is(e,t),i=l.createElement("script"),Fe(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function xh(e,t){al.M(e,t);var l=Ca;if(l&&e){var a=Jl(l).hoistableScripts,n=Da(e),i=a.get(n);i||(i=l.querySelector(_n(n)),i||(e=m({src:e,async:!0,type:"module"},t),(t=kt.get(n))&&is(e,t),i=l.createElement("script"),Fe(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function nd(e,t,l,a){var n=(n=te.current)?Bi(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Oa(l.href),l=Jl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Oa(l.href);var i=Jl(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(An(e)))&&!i._p&&(u.instance=i,u.state.loading=5),kt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kt.set(e,l),i||Sh(n,e,l,u.state))),t&&a===null)throw Error(c(528,""));return u}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Da(l),l=Jl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Oa(e){return'href="'+_t(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function id(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Sh(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),Fe(t),e.head.appendChild(t))}function Da(e){return'[src="'+_t(e)+'"]'}function _n(e){return"script[async]"+e}function rd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Fe(a),a;var n=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),Pe(a,"style",n),Hi(a,l.precedence,e),t.instance=a;case"stylesheet":n=Oa(l.href);var i=e.querySelector(An(n));if(i)return t.state.loading|=4,t.instance=i,Fe(i),i;a=id(l),(n=kt.get(n))&&ns(a,n),i=(e.ownerDocument||e).createElement("link"),Fe(i);var u=i;return u._p=new Promise(function(o,h){u.onload=o,u.onerror=h}),Pe(i,"link",a),t.state.loading|=4,Hi(i,l.precedence,e),t.instance=i;case"script":return i=Da(l.src),(n=e.querySelector(_n(i)))?(t.instance=n,Fe(n),n):(a=l,(n=kt.get(i))&&(a=m({},l),is(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Hi(a,l.precedence,e));return t.instance}function Hi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var o=a[u];if(o.dataset.precedence===t)i=o;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function ud(e,t,l){if(qi===null){var a=new Map,n=qi=new Map;n.set(l,a)}else n=qi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Ua]||i[et]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var o=a.get(u);o?o.push(i):a.set(u,[i])}}return a}function sd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Eh(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Tn=null;function Nh(){}function Ah(e,t,l){if(Tn===null)throw Error(c(475));var a=Tn;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=Oa(l.href),i=e.querySelector(An(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Gi.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,Fe(i);return}i=e.ownerDocument||e,l=id(l),(n=kt.get(n))&&ns(l,n),i=i.createElement("link"),Fe(i);var u=i;u._p=new Promise(function(o,h){u.onload=o,u.onerror=h}),Pe(i,"link",l),t.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Gi.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function _h(){if(Tn===null)throw Error(c(475));var e=Tn;return e.stylesheets&&e.count===0&&rs(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Gi(){if(this.count--,this.count===0){if(this.stylesheets)rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yi=null;function rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yi=new Map,t.forEach(Th,e),Yi=null,Gi.call(e))}function Th(e,t){if(!(t.state.loading&4)){var l=Yi.get(e);if(l)var a=l.get(null);else{l=new Map,Yi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=Gi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var wn={$$typeof:L,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function wh(e,t,l,a,n,i,u,o){this.tag=1,this.containerInfo=e,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=lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.hiddenUpdates=lr(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function od(e,t,l,a,n,i,u,o,h,D,B,G){return e=new wh(e,t,l,u,o,h,D,G),t=1,i===!0&&(t|=24),i=pt(3,null,null,t),e.current=i,i.stateNode=e,t=Gr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Vr(i),e}function fd(e){return e?(e=sa,e):sa}function dd(e,t,l,a,n,i){n=fd(n),a.context===null?a.context=n:a.pendingContext=n,a=cl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ol(e,a,t),l!==null&&(vt(l,e,t),ln(l,e,t))}function gd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function us(e,t){gd(e,t),(e=e.alternate)&&gd(e,t)}function pd(e){if(e.tag===13){var t=ua(e,67108864);t!==null&&vt(t,e,67108864),us(e,67108864)}}var Zi=!0;function jh(e,t,l,a){var n=w.T;w.T=null;var i=X.p;try{X.p=2,ss(e,t,l,a)}finally{X.p=i,w.T=n}}function Ch(e,t,l,a){var n=w.T;w.T=null;var i=X.p;try{X.p=8,ss(e,t,l,a)}finally{X.p=i,w.T=n}}function ss(e,t,l,a){if(Zi){var n=cs(a);if(n===null)Ku(e,t,a,Xi,l),bd(e,a);else if(Dh(n,e,t,l,a))a.stopPropagation();else if(bd(e,a),t&4&&-1<Oh.indexOf(e)){for(;n!==null;){var i=Kl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Cl(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var h=1<<31-dt(u);o.entanglements[1]|=h,u&=~h}qt(i),(we&6)===0&&(wi=it()+500,xn(0))}}break;case 13:o=ua(i,2),o!==null&&vt(o,i,2),Ci(),us(i,2)}if(i=cs(a),i===null&&Ku(e,t,a,Xi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Ku(e,t,a,null,l)}}function cs(e){return e=pr(e),os(e)}var Xi=null;function os(e){if(Xi=null,e=$l(e),e!==null){var t=b(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=T(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xi=e,null}function hd(e){switch(e){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(tr()){case ws:return 2;case js:return 8;case Ln:case bg:return 32;case Cs:return 268435456;default:return 32}default:return 32}}var fs=!1,Nl=null,Al=null,_l=null,jn=new Map,Cn=new Map,Tl=[],Oh="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 bd(e,t){switch(e){case"focusin":case"focusout":Nl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cn.delete(t.pointerId)}}function On(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Kl(t),t!==null&&pd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Dh(e,t,l,a,n){switch(t){case"focusin":return Nl=On(Nl,e,t,l,a,n),!0;case"dragenter":return Al=On(Al,e,t,l,a,n),!0;case"mouseover":return _l=On(_l,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return jn.set(i,On(jn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Cn.set(i,On(Cn.get(i)||null,e,t,l,a,n)),!0}return!1}function yd(e){var t=$l(e.target);if(t!==null){var l=b(t);if(l!==null){if(t=l.tag,t===13){if(t=T(l),t!==null){e.blockedOn=t,Ag(e.priority,function(){if(l.tag===13){var a=mt();a=ar(a);var n=ua(l,a);n!==null&&vt(n,l,a),us(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=cs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);gr=a,l.target.dispatchEvent(a),gr=null}else return t=Kl(l),t!==null&&pd(t),e.blockedOn=l,!1;t.shift()}return!0}function md(e,t,l){Vi(e)&&l.delete(t)}function kh(){fs=!1,Nl!==null&&Vi(Nl)&&(Nl=null),Al!==null&&Vi(Al)&&(Al=null),_l!==null&&Vi(_l)&&(_l=null),jn.forEach(md),Cn.forEach(md)}function Qi(e,t){e.blockedOn===t&&(e.blockedOn=null,fs||(fs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,kh)))}var Fi=null;function vd(e){Fi!==e&&(Fi=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Fi===e&&(Fi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(os(a||l)===null)continue;break}var i=Kl(l);i!==null&&(e.splice(t,3),t-=3,ou(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Dn(e){function t(h){return Qi(h,e)}Nl!==null&&Qi(Nl,e),Al!==null&&Qi(Al,e),_l!==null&&Qi(_l,e),jn.forEach(t),Cn.forEach(t);for(var l=0;l<Tl.length;l++){var a=Tl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Tl.length&&(l=Tl[0],l.blockedOn===null);)yd(l),l.blockedOn===null&&Tl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[rt]||null;if(typeof i=="function")u||vd(l);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[rt]||null)o=u.formAction;else if(os(n)!==null)continue}else o=u.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),vd(l)}}}function ds(e){this._internalRoot=e}$i.prototype.render=ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=mt();dd(l,a,e,t,null,null)},$i.prototype.unmount=ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dd(e.current,2,null,e,null,null),Ci(),t[Fl]=null}};function $i(e){this._internalRoot=e}$i.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Tl.length&&t!==0&&t<Tl[l].priority;l++);Tl.splice(l,0,e),l===0&&yd(e)}};var xd=f.version;if(xd!=="19.1.0")throw Error(c(527,xd,"19.1.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=S(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var zh={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ki.isDisabled&&Ki.supportsFiber)try{Ra=Ki.inject(zh),ft=Ki}catch{}}return zn.createRoot=function(e,t){if(!y(e))throw Error(c(299));var l=!1,a="",n=Mo,i=Lo,u=Uo,o=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=od(e,1,!1,null,null,l,a,n,i,u,o,null),e[Fl]=t.current,$u(e),new ds(t)},zn.hydrateRoot=function(e,t,l){if(!y(e))throw Error(c(299));var a=!1,n="",i=Mo,u=Lo,o=Uo,h=null,D=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(h=l.unstable_transitionCallbacks),l.formState!==void 0&&(D=l.formState)),t=od(e,1,!0,t,l??null,a,n,i,u,o,h,D),t.context=fd(null),l=t.current,a=mt(),a=ar(a),n=cl(a),n.callback=null,ol(l,n,a),l=a,t.current.lanes=l,La(t,l),qt(t),e[Fl]=t.current,$u(e),new $i(t)},zn.version="19.1.0",zn}var Od;function Zh(){if(Od)return hs.exports;Od=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(f){console.error(f)}}return r(),hs.exports=Yh(),hs.exports}var Xh=Zh();const Vh=Xd(Xh);/**
50
- * @license lucide-react v0.525.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const Qh=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fh=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,d,c)=>c?c.toUpperCase():d.toLowerCase()),Dd=r=>{const f=Fh(r);return f.charAt(0).toUpperCase()+f.slice(1)},Vd=(...r)=>r.filter((f,d,c)=>!!f&&f.trim()!==""&&c.indexOf(f)===d).join(" ").trim(),$h=r=>{for(const f in r)if(f.startsWith("aria-")||f==="role"||f==="title")return!0};/**
55
- * @license lucide-react v0.525.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var Kh={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"};/**
60
- * @license lucide-react v0.525.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const Jh=V.forwardRef(({color:r="currentColor",size:f=24,strokeWidth:d=2,absoluteStrokeWidth:c,className:y="",children:b,iconNode:T,..._},S)=>V.createElement("svg",{ref:S,...Kh,width:f,height:f,stroke:r,strokeWidth:c?Number(d)*24/Number(f):d,className:Vd("lucide",y),...!b&&!$h(_)&&{"aria-hidden":"true"},..._},[...T.map(([g,m])=>V.createElement(g,m)),...Array.isArray(b)?b:[b]]));/**
65
- * @license lucide-react v0.525.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const He=(r,f)=>{const d=V.forwardRef(({className:c,...y},b)=>V.createElement(Jh,{ref:b,iconNode:f,className:Vd(`lucide-${Qh(Dd(r))}`,`lucide-${r}`,c),...y}));return d.displayName=Dd(r),d};/**
70
- * @license lucide-react v0.525.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const Ih=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Wh=He("align-left",Ih);/**
75
- * @license lucide-react v0.525.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const Ph=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Rn=He("check",Ph);/**
80
- * @license lucide-react v0.525.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const eb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],As=He("chevron-down",eb);/**
85
- * @license lucide-react v0.525.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const tb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Qd=He("chevron-right",tb);/**
90
- * @license lucide-react v0.525.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const lb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],ab=He("columns-2",lb);/**
95
- * @license lucide-react v0.525.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const nb=[["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"}]],Fd=He("copy",nb);/**
100
- * @license lucide-react v0.525.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const ib=[["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"}]],rb=He("eraser",ib);/**
105
- * @license lucide-react v0.525.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const ub=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],$d=He("file-diff",ub);/**
110
- * @license lucide-react v0.525.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const sb=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],Kd=He("file-pen",sb);/**
115
- * @license lucide-react v0.525.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const cb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Jd=He("file-plus",cb);/**
120
- * @license lucide-react v0.525.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const ob=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Id=He("file-x",ob);/**
125
- * @license lucide-react v0.525.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const fb=[["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"}]],db=He("folder-open",fb);/**
130
- * @license lucide-react v0.525.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const gb=[["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"}]],pb=He("folder",gb);/**
135
- * @license lucide-react v0.525.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const hb=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Wd=He("message-square",hb);/**
140
- * @license lucide-react v0.525.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const bb=[["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"}]],yb=He("panel-left-close",bb);/**
145
- * @license lucide-react v0.525.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const mb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],vb=He("panel-left",mb);/**
150
- * @license lucide-react v0.525.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const xb=[["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"}]],Sb=He("pen",xb);/**
155
- * @license lucide-react v0.525.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const Eb=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Nb=He("save",Eb);/**
160
- * @license lucide-react v0.525.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const Ab=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_b=He("search",Ab);/**
165
- * @license lucide-react v0.525.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const Tb=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Pd=He("settings",Tb);/**
170
- * @license lucide-react v0.525.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const wb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],jb=He("square",wb);/**
175
- * @license lucide-react v0.525.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const Cb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_s=He("x",Cb);function eg({checked:r,onChange:f,label:d,className:c="",title:y}){const b=_=>{_.stopPropagation(),f(!r)},T=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),_.stopPropagation(),f(!r))};return s.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${c}`,title:y,onClick:b,onKeyDown:T,role:"checkbox","aria-checked":r,tabIndex:0,children:[s.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${r?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:r&&s.jsx(Rn,{size:10,className:"text-white"})}),d&&s.jsx("span",{className:"select-none",children:d})]})}function Ob({commentsCount:r,isCopiedAll:f,onCopyAll:d,onDeleteAll:c}){const[y,b]=V.useState(!1),T=V.useRef(null);V.useEffect(()=>{const g=m=>{T.current&&!T.current.contains(m.target)&&b(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const _=()=>{d(),b(!1)},S=()=>{c(),b(!1)};return s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("div",{className:"flex",children:[s.jsxs("button",{onClick:_,className:"text-xs px-3 py-1.5 pr-2 rounded-l transition-all whitespace-nowrap flex items-center gap-1.5",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${r} comments to AI coding agent`,children:[f?s.jsx(Rn,{size:12}):s.jsx(Fd,{size:12}),f?"Copied All!":`Copy All Prompt (${r})`]}),s.jsx("button",{onClick:()=>b(!y),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:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:s.jsx(As,{size:12,className:`transition-transform duration-200 ${y?"rotate-180":""}`})})]}),y&&s.jsx("div",{className:"absolute left-0 right-0 bg-github-bg-primary border border-github-border rounded-b z-50 pb-px",style:{borderTop:"none"},children:s.jsxs("button",{onClick:S,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:[s.jsx(rb,{size:12}),"Cleanup All Prompt"]})})]})}function tg(r){return r&&r.split(".").pop()?.toLowerCase()||null}function Db(r){return r&&r.split("/").pop()||""}const kb=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function zb(r){if(!r)return!1;const f=tg(r);return f?kb.includes(f):!1}function lg({onSubmit:r,onCancel:f}){const[d,c]=V.useState(""),[y,b]=V.useState(!1),T=async S=>{if(S.preventDefault(),!!d.trim()){b(!0);try{await r(d.trim()),c("")}catch(g){console.error("Failed to submit comment:",g)}finally{b(!1)}}},_=S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?T(S):S.key==="Escape"&&f()};return s.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-github-border rounded-md",onSubmit:T,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium text-github-text-primary",children:"Add a comment"}),s.jsx("span",{className:"text-xs text-github-text-muted",children:"Cmd+Enter to submit • Escape to cancel"})]}),s.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:d,onChange:S=>c(S.target.value),onKeyDown:_,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:y}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:f,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:y,children:"Cancel"}),s.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 bg-blue-600 text-white rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:!d.trim()||y,children:y?"Adding...":"Add Comment"})]})]})}const Ii=Mn.memo(({onMouseDown:r,onMouseUp:f,title:d="Add a comment"})=>s.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",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:c=>{c.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",c.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",c.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:r,onMouseUp:f,title:d,children:s.jsx(Wd,{className:"w-4 h-4"})}));Ii.displayName="CommentButton";function ag(r){var f,d,c="";if(typeof r=="string"||typeof r=="number")c+=r;else if(typeof r=="object")if(Array.isArray(r)){var y=r.length;for(f=0;f<y;f++)r[f]&&(d=ag(r[f]))&&(c&&(c+=" "),c+=d)}else for(d in r)r[d]&&(c&&(c+=" "),c+=d);return c}function ng(){for(var r,f,d=0,c="",y=arguments.length;d<y;d++)(r=arguments[d])&&(f=ag(r))&&(c&&(c+=" "),c+=f);return c}var Rb=Object.create,Pi=Object.defineProperty,Mb=Object.defineProperties,Lb=Object.getOwnPropertyDescriptor,Ub=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertyNames,Wi=Object.getOwnPropertySymbols,Bb=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable,kd=(r,f,d)=>f in r?Pi(r,f,{enumerable:!0,configurable:!0,writable:!0,value:d}):r[f]=d,Gt=(r,f)=>{for(var d in f||(f={}))Ts.call(f,d)&&kd(r,d,f[d]);if(Wi)for(var d of Wi(f))rg.call(f,d)&&kd(r,d,f[d]);return r},er=(r,f)=>Mb(r,Ub(f)),ug=(r,f)=>{var d={};for(var c in r)Ts.call(r,c)&&f.indexOf(c)<0&&(d[c]=r[c]);if(r!=null&&Wi)for(var c of Wi(r))f.indexOf(c)<0&&rg.call(r,c)&&(d[c]=r[c]);return d},Hb=(r,f)=>function(){return f||(0,r[ig(r)[0]])((f={exports:{}}).exports,f),f.exports},qb=(r,f)=>{for(var d in f)Pi(r,d,{get:f[d],enumerable:!0})},Gb=(r,f,d,c)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of ig(f))!Ts.call(r,y)&&y!==d&&Pi(r,y,{get:()=>f[y],enumerable:!(c=Lb(f,y))||c.enumerable});return r},Yb=(r,f,d)=>(d=r!=null?Rb(Bb(r)):{},Gb(!r||!r.__esModule?Pi(d,"default",{value:r,enumerable:!0}):d,r)),Zb=Hb({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(r,f){var d=function(){var c=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,b={},T={util:{encode:function x(N){return N instanceof _?new _(N.type,x(N.content),N.alias):Array.isArray(N)?N.map(x):N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++y}),x.__id},clone:function x(N,z){z=z||{};var E,O;switch(T.util.type(N)){case"Object":if(O=T.util.objId(N),z[O])return z[O];E={},z[O]=E;for(var L in N)N.hasOwnProperty(L)&&(E[L]=x(N[L],z));return E;case"Array":return O=T.util.objId(N),z[O]?z[O]:(E=[],z[O]=E,N.forEach(function(J,Q){E[Q]=x(J,z)}),E);default:return N}},getLanguage:function(x){for(;x;){var N=c.exec(x.className);if(N)return N[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,N){x.className=x.className.replace(RegExp(c,"gi"),""),x.classList.add("language-"+N)},isActive:function(x,N,z){for(var E="no-"+N;x;){var O=x.classList;if(O.contains(N))return!0;if(O.contains(E))return!1;x=x.parentElement}return!!z}},languages:{plain:b,plaintext:b,text:b,txt:b,extend:function(x,N){var z=T.util.clone(T.languages[x]);for(var E in N)z[E]=N[E];return z},insertBefore:function(x,N,z,E){E=E||T.languages;var O=E[x],L={};for(var J in O)if(O.hasOwnProperty(J)){if(J==N)for(var Q in z)z.hasOwnProperty(Q)&&(L[Q]=z[Q]);z.hasOwnProperty(J)||(L[J]=O[J])}var ue=E[x];return E[x]=L,T.languages.DFS(T.languages,function(ie,W){W===ue&&ie!=x&&(this[ie]=L)}),L},DFS:function x(N,z,E,O){O=O||{};var L=T.util.objId;for(var J in N)if(N.hasOwnProperty(J)){z.call(N,J,N[J],E||J);var Q=N[J],ue=T.util.type(Q);ue==="Object"&&!O[L(Q)]?(O[L(Q)]=!0,x(Q,z,null,O)):ue==="Array"&&!O[L(Q)]&&(O[L(Q)]=!0,x(Q,z,J,O))}}},plugins:{},highlight:function(x,N,z){var E={code:x,grammar:N,language:z};if(T.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=T.tokenize(E.code,E.grammar),T.hooks.run("after-tokenize",E),_.stringify(T.util.encode(E.tokens),E.language)},tokenize:function(x,N){var z=N.rest;if(z){for(var E in z)N[E]=z[E];delete N.rest}var O=new m;return j(O,O.head,x),g(x,O,N,O.head,0),Z(O)},hooks:{all:{},add:function(x,N){var z=T.hooks.all;z[x]=z[x]||[],z[x].push(N)},run:function(x,N){var z=T.hooks.all[x];if(!(!z||!z.length))for(var E=0,O;O=z[E++];)O(N)}},Token:_};function _(x,N,z,E){this.type=x,this.content=N,this.alias=z,this.length=(E||"").length|0}_.stringify=function x(N,z){if(typeof N=="string")return N;if(Array.isArray(N)){var E="";return N.forEach(function(ue){E+=x(ue,z)}),E}var O={type:N.type,content:x(N.content,z),tag:"span",classes:["token",N.type],attributes:{},language:z},L=N.alias;L&&(Array.isArray(L)?Array.prototype.push.apply(O.classes,L):O.classes.push(L)),T.hooks.run("wrap",O);var J="";for(var Q in O.attributes)J+=" "+Q+'="'+(O.attributes[Q]||"").replace(/"/g,"&quot;")+'"';return"<"+O.tag+' class="'+O.classes.join(" ")+'"'+J+">"+O.content+"</"+O.tag+">"};function S(x,N,z,E){x.lastIndex=N;var O=x.exec(z);if(O&&E&&O[1]){var L=O[1].length;O.index+=L,O[0]=O[0].slice(L)}return O}function g(x,N,z,E,O,L){for(var J in z)if(!(!z.hasOwnProperty(J)||!z[J])){var Q=z[J];Q=Array.isArray(Q)?Q:[Q];for(var ue=0;ue<Q.length;++ue){if(L&&L.cause==J+","+ue)return;var ie=Q[ue],W=ie.inside,P=!!ie.lookbehind,ge=!!ie.greedy,be=ie.alias;if(ge&&!ie.pattern.global){var se=ie.pattern.toString().match(/[imsuy]*$/)[0];ie.pattern=RegExp(ie.pattern.source,se+"g")}for(var Ee=ie.pattern||ie,F=E.next,M=O;F!==N.tail&&!(L&&M>=L.reach);M+=F.value.length,F=F.next){var w=F.value;if(N.length>x.length)return;if(!(w instanceof _)){var X=1,I;if(ge){if(I=S(Ee,M,x,P),!I||I.index>=x.length)break;var $=I.index,ee=I.index+I[0].length,p=M;for(p+=F.value.length;$>=p;)F=F.next,p+=F.value.length;if(p-=F.value.length,M=p,F.value instanceof _)continue;for(var U=F;U!==N.tail&&(p<ee||typeof U.value=="string");U=U.next)X++,p+=U.value.length;X--,w=x.slice(M,p),I.index-=M}else if(I=S(Ee,0,w,P),!I)continue;var $=I.index,K=I[0],le=w.slice(0,$),de=w.slice($+K.length),te=M+w.length;L&&te>L.reach&&(L.reach=te);var ne=F.prev;le&&(ne=j(N,ne,le),M+=le.length),Y(N,ne,X);var pe=new _(J,W?T.tokenize(K,W):K,be,K);if(F=j(N,ne,pe),de&&j(N,F,de),X>1){var Te={cause:J+","+ue,reach:te};g(x,N,z,F.prev,M,Te),L&&Te.reach>L.reach&&(L.reach=Te.reach)}}}}}}function m(){var x={value:null,prev:null,next:null},N={value:null,prev:x,next:null};x.next=N,this.head=x,this.tail=N,this.length=0}function j(x,N,z){var E=N.next,O={value:z,prev:N,next:E};return N.next=O,E.prev=O,x.length++,O}function Y(x,N,z){for(var E=N.next,O=0;O<z&&E!==x.tail;O++)E=E.next;N.next=E,E.prev=N,x.length-=O}function Z(x){for(var N=[],z=x.head.next;z!==x.tail;)N.push(z.value),z=z.next;return N}return T}();f.exports=d,d.default=d}}),H=Yb(Zb());H.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]},H.languages.markup.tag.inside["attr-value"].inside.entity=H.languages.markup.entity,H.languages.markup.doctype.inside["internal-subset"].inside=H.languages.markup,H.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(H.languages.markup.tag,"addInlined",{value:function(r,c){var d={},d=(d["language-"+c]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:H.languages[c]},d.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:d}}),c=(d["language-"+c]={pattern:/[\s\S]+/,inside:H.languages[c]},{});c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:d},H.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(H.languages.markup.tag,"addAttribute",{value:function(r,f){H.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[f,"language-"+f],inside:H.languages[f]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),H.languages.html=H.languages.markup,H.languages.mathml=H.languages.markup,H.languages.svg=H.languages.markup,H.languages.xml=H.languages.extend("markup",{}),H.languages.ssml=H.languages.xml,H.languages.atom=H.languages.xml,H.languages.rss=H.languages.xml,function(r){var f={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},d=/\\(?: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]|.)/,c="(?:[^\\\\-]|"+d.source+")",c=RegExp(c+"-"+c),y={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.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:c,inside:{escape:d,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":f,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:d}},"special-escape":f,"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":y}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:d,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":y}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(H),H.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:/[{}[\];(),.:]/},H.languages.javascript=H.languages.extend("clike",{"class-name":[H.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}|\?\?=?|\?\.?|[~:]/}),H.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,H.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:H.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:H.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:H.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:H.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:H.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),H.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:H.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"}}),H.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),H.languages.markup&&(H.languages.markup.tag.addInlined("script","javascript"),H.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")),H.languages.js=H.languages.javascript,H.languages.actionscript=H.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),H.languages.actionscript["class-name"].alias="function",delete H.languages.actionscript.parameter,delete H.languages.actionscript["literal-property"],H.languages.markup&&H.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:H.languages.markup}}),function(r){var f=/#(?!\{).+/,d={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:f,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:d}}],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"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:f,interpolation:d}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:d}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript}(H),function(r){var f=r.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(f,"addSupport",{value:function(d,c){(d=typeof d=="string"?[d]:d).forEach(function(y){var b=function(j){j.inside||(j.inside={}),j.inside.rest=c},T="doc-comment";if(_=r.languages[y]){var _,S=_[T];if((S=S||(_=r.languages.insertBefore(y,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[T])instanceof RegExp&&(S=_[T]={pattern:S}),Array.isArray(S))for(var g=0,m=S.length;g<m;g++)S[g]instanceof RegExp&&(S[g]={pattern:S[g]}),b(S[g]);else b(S)}})}}),f.addSupport(["java","javascript","php"],f)}(H),function(r){var f=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,f=(r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+f.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\\((?:"+f.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+f.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+f.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:f,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup);f&&(f.tag.addInlined("style","css"),f.tag.addAttribute("style","css"))}(H),function(r){var f=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,f=(r.languages.css.selector={pattern:r.languages.css.selector.pattern,lookbehind:!0,inside:f={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+f.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":[f,{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:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=f,r.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}),d={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.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:f,number:d,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:f,number:d})}(H),function(r){var f=/[*&][^\s[\]{},]+/,d=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,c="(?:"+d.source+"(?:[ ]+"+f.source+")?|"+f.source+"(?:[ ]+"+d.source+")?)",y=/(?:[^\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}),b=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function T(_,S){S=(S||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return c}).replace(/<<value>>/g,function(){return _});return RegExp(g,S)}r.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 c})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return c}).replace(/<<key>>/g,function(){return"(?:"+y+"|"+b+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:T(/\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:T(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:T(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:T(b),lookbehind:!0,greedy:!0},number:{pattern:T(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:d,important:f,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml}(H),function(r){var f=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function d(g){return g=g.replace(/<inner>/g,function(){return f}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var c=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,y=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return c}),b=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,T=(r.languages.markdown=r.languages.extend("markup",{}),r.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:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+y+b+"(?:"+y+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+y+b+")(?:"+y+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(c),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+y+")"+b+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+y+"$"),inside:{"table-header":{pattern:RegExp(c),alias:"important",inside:r.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:d(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:d(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:d(/(~~?)(?:(?!~)<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:d(/!?\[(?:(?!\])<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(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(r.languages.markdown[g].inside.content.inside[m]=r.languages.markdown[m])})}),r.hooks.add("after-tokenize",function(g){g.language!=="markdown"&&g.language!=="md"||function m(j){if(j&&typeof j!="string")for(var Y=0,Z=j.length;Y<Z;Y++){var x,N=j[Y];N.type!=="code"?m(N.content):(x=N.content[1],N=N.content[3],x&&N&&x.type==="code-language"&&N.type==="code-block"&&typeof x.content=="string"&&(x=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),x="language-"+(x=(/[a-z][\w-]*/i.exec(x)||[""])[0].toLowerCase()),N.alias?typeof N.alias=="string"?N.alias=[N.alias,x]:N.alias.push(x):N.alias=[x]))}}(g.tokens)}),r.hooks.add("wrap",function(g){if(g.type==="code-block"){for(var m="",j=0,Y=g.classes.length;j<Y;j++){var Z=g.classes[j],Z=/language-(.+)/.exec(Z);if(Z){m=Z[1];break}}var x,N=r.languages[m];N?g.content=r.highlight(function(z){return z=z.replace(T,""),z=z.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,O){var L;return(O=O.toLowerCase())[0]==="#"?(L=O[1]==="x"?parseInt(O.slice(2),16):Number(O.slice(1)),S(L)):_[O]||E})}(g.content),N,m):m&&m!=="none"&&r.plugins.autoloader&&(x="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),g.attributes.id=x,r.plugins.autoloader.loadLanguages(m,function(){var z=document.getElementById(x);z&&(z.innerHTML=r.highlight(z.textContent,r.languages[m],m))}))}}),RegExp(r.languages.markup.tag.pattern.source,"gi")),_={amp:"&",lt:"<",gt:">",quot:'"'},S=String.fromCodePoint||String.fromCharCode;r.languages.md=r.languages.markdown}(H),H.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:H.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+/},H.hooks.add("after-tokenize",function(r){if(r.language==="graphql")for(var f=r.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),d=0;d<f.length;){var c=f[d++];if(c.type==="keyword"&&c.content==="mutation"){var y=[];if(j(["definition-mutation","punctuation"])&&m(1).content==="("){d+=2;var b=Y(/^\($/,/^\)$/);if(b===-1)continue;for(;d<b;d++){var T=m(0);T.type==="variable"&&(Z(T,"variable-input"),y.push(T.content))}d=b+1}if(j(["punctuation","property-query"])&&m(0).content==="{"&&(d++,Z(m(0),"property-mutation"),0<y.length)){var _=Y(/^\{$/,/^\}$/);if(_!==-1)for(var S=d;S<_;S++){var g=f[S];g.type==="variable"&&0<=y.indexOf(g.content)&&Z(g,"variable-input")}}}}function m(x){return f[d+x]}function j(x,N){N=N||0;for(var z=0;z<x.length;z++){var E=m(z+N);if(!E||E.type!==x[z])return}return 1}function Y(x,N){for(var z=1,E=d;E<f.length;E++){var O=f[E],L=O.content;if(O.type==="punctuation"&&typeof L=="string"){if(x.test(L))z++;else if(N.test(L)&&--z===0)return E}}return-1}function Z(x,N){var z=x.alias;z?Array.isArray(z)||(x.alias=z=[z]):x.alias=z=[],z.push(N)}}),H.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(r){var f=r.languages.javascript["template-string"],d=f.pattern.source,c=f.inside.interpolation,y=c.inside["interpolation-punctuation"],b=c.pattern.source;function T(j,Y){if(r.languages[j])return{pattern:RegExp("((?:"+Y+")\\s*)"+d),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:j}}}}function _(j,Y,Z){return j={code:j,grammar:Y,language:Z},r.hooks.run("before-tokenize",j),j.tokens=r.tokenize(j.code,j.grammar),r.hooks.run("after-tokenize",j),j.tokens}function S(j,Y,Z){var z=r.tokenize(j,{interpolation:{pattern:RegExp(b),lookbehind:!0}}),x=0,N={},z=_(z.map(function(O){if(typeof O=="string")return O;for(var L,J,O=O.content;j.indexOf((J=x++,L="___"+Z.toUpperCase()+"_"+J+"___"))!==-1;);return N[L]=O,L}).join(""),Y,Z),E=Object.keys(N);return x=0,function O(L){for(var J=0;J<L.length;J++){if(x>=E.length)return;var Q,ue,ie,W,P,ge,be,se=L[J];typeof se=="string"||typeof se.content=="string"?(Q=E[x],(be=(ge=typeof se=="string"?se:se.content).indexOf(Q))!==-1&&(++x,ue=ge.substring(0,be),P=N[Q],ie=void 0,(W={})["interpolation-punctuation"]=y,(W=r.tokenize(P,W)).length===3&&((ie=[1,1]).push.apply(ie,_(W[1],r.languages.javascript,"javascript")),W.splice.apply(W,ie)),ie=new r.Token("interpolation",W,c.alias,P),W=ge.substring(be+Q.length),P=[],ue&&P.push(ue),P.push(ie),W&&(O(ge=[W]),P.push.apply(P,ge)),typeof se=="string"?(L.splice.apply(L,[J,1].concat(P)),J+=P.length-1):se.content=P)):(be=se.content,Array.isArray(be)?O(be):O([be]))}}(z),new r.Token(Z,z,"language-"+Z,j)}r.languages.javascript["template-string"]=[T("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),T("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),T("svg",/\bsvg/.source),T("markdown",/\b(?:markdown|md)/.source),T("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),T("sql",/\bsql/.source),f].filter(Boolean);var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function m(j){return typeof j=="string"?j:Array.isArray(j)?j.map(m).join(""):m(j.content)}r.hooks.add("after-tokenize",function(j){j.language in g&&function Y(Z){for(var x=0,N=Z.length;x<N;x++){var z,E,O,L=Z[x];typeof L!="string"&&(z=L.content,Array.isArray(z)?L.type==="template-string"?(L=z[1],z.length===3&&typeof L!="string"&&L.type==="embedded-code"&&(E=m(L),L=L.alias,L=Array.isArray(L)?L[0]:L,O=r.languages[L])&&(z[1]=S(E,O,L))):Y(z):typeof z!="string"&&Y([z]))}}(j.tokens)})}(H),function(r){r.languages.typescript=r.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/}),r.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 r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var f=r.languages.extend("typescript",{});delete f["class-name"],r.languages.typescript["class-name"].inside=f,r.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:f}}}}),r.languages.ts=r.languages.typescript}(H),function(r){var f=r.languages.javascript,d=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,c="(@(?:arg|argument|param|property)\\s+(?:"+d+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(c+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(c+/\[(?:(?!\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:f,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 d})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+d),lookbehind:!0,inside:{string:f.string,number:f.number,boolean:f.boolean,keyword:r.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:f,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)}(H),function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),r.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 r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.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})}(H),H.languages.n4js=H.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/}),H.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),H.languages.n4jsd=H.languages.n4js,function(r){function f(T,_){return RegExp(T.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),_)}r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.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"}]}),r.languages.insertBefore("javascript","keyword",{imports:{pattern:f(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:f(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.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"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:f(/(\.\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 d=["function","function-variable","method","method-variable","property-access"],c=0;c<d.length;c++){var b=d[c],y=r.languages.javascript[b],b=(y=r.util.type(y)==="RegExp"?r.languages.javascript[b]={pattern:y}:y).inside||{};(y.inside=b)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(H),function(r){var f=r.util.clone(r.languages.javascript),d=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,c=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,y=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function b(S,g){return S=S.replace(/<S>/g,function(){return d}).replace(/<BRACES>/g,function(){return c}).replace(/<SPREAD>/g,function(){return y}),RegExp(S,g)}y=b(y).source,r.languages.jsx=r.languages.extend("markup",f),r.languages.jsx.tag.pattern=b(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=f.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:b(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:b(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);function T(S){for(var g=[],m=0;m<S.length;m++){var j=S[m],Y=!1;typeof j!="string"&&(j.type==="tag"&&j.content[0]&&j.content[0].type==="tag"?j.content[0].content[0].content==="</"?0<g.length&&g[g.length-1].tagName===_(j.content[0].content[1])&&g.pop():j.content[j.content.length-1].content!=="/>"&&g.push({tagName:_(j.content[0].content[1]),openedBraces:0}):0<g.length&&j.type==="punctuation"&&j.content==="{"?g[g.length-1].openedBraces++:0<g.length&&0<g[g.length-1].openedBraces&&j.type==="punctuation"&&j.content==="}"?g[g.length-1].openedBraces--:Y=!0),(Y||typeof j=="string")&&0<g.length&&g[g.length-1].openedBraces===0&&(Y=_(j),m<S.length-1&&(typeof S[m+1]=="string"||S[m+1].type==="plain-text")&&(Y+=_(S[m+1]),S.splice(m+1,1)),0<m&&(typeof S[m-1]=="string"||S[m-1].type==="plain-text")&&(Y=_(S[m-1])+Y,S.splice(m-1,1),m--),S[m]=new r.Token("plain-text",Y,null,Y)),j.content&&typeof j.content!="string"&&T(j.content)}}var _=function(S){return S?typeof S=="string"?S:typeof S.content=="string"?S.content:S.content.map(_).join(""):""};r.hooks.add("after-tokenize",function(S){S.language!=="jsx"&&S.language!=="tsx"||T(S.tokens)})}(H),function(r){var f=r.util.clone(r.languages.typescript),f=(r.languages.tsx=r.languages.extend("jsx",f),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"],r.languages.tsx.tag);f.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+f.pattern.source+")",f.pattern.flags),f.lookbehind=!0}(H),H.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:/[{}[\]();,.:\\]/},H.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=H.languages.swift}),function(r){r.languages.kotlin=r.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 r.languages.kotlin["class-name"];var f={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:f},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:f},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin}(H),H.languages.c=H.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|[?:~]|[-+*/%&|^!=<>]=?/}),H.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),H.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},H.languages.c.string],char:H.languages.c.char,comment:H.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:H.languages.c}}}}),H.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 H.languages.c.boolean,H.languages.objectivec=H.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 H.languages.objectivec["class-name"],H.languages.objc=H.languages.objectivec,H.languages.reason=H.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/}),H.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 H.languages.reason.function,function(r){for(var f=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,d=0;d<2;d++)f=f.replace(/<self>/g,function(){return f});f=f.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+f),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string}(H),H.languages.go=H.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/}),H.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete H.languages.go["class-name"],function(r){var f=/\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/,d=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return f.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return f.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:f,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/}),r.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 d})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.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:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(H),H.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},H.languages.python["string-interpolation"].inside.interpolation.inside.rest=H.languages.python,H.languages.py=H.languages.python,H.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"}},H.languages.webmanifest=H.languages.json;var Et={};qb(Et,{dracula:()=>Vb,duotoneDark:()=>Fb,duotoneLight:()=>Kb,github:()=>Ib,gruvboxMaterialDark:()=>Ty,gruvboxMaterialLight:()=>jy,jettwaveDark:()=>my,jettwaveLight:()=>xy,nightOwl:()=>Pb,nightOwlLight:()=>ty,oceanicNext:()=>ay,okaidia:()=>iy,oneDark:()=>Ey,oneLight:()=>Ay,palenight:()=>uy,shadesOfPurple:()=>cy,synthwave84:()=>fy,ultramin:()=>gy,vsDark:()=>sg,vsLight:()=>by});var Xb={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)"}}]},Vb=Xb,Qb={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"}}]},Fb=Qb,$b={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"}}]},Kb=$b,Jb={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"}}]},Ib=Jb,Wb={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)"}}]},Pb=Wb,ey={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)"}}]},ty=ey,xt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},ly={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:xt.keyword}},{types:["attr-value"],style:{color:xt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:xt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:xt.primitive}},{types:["boolean"],style:{color:xt.boolean}},{types:["tag"],style:{color:xt.tag}},{types:["string"],style:{color:xt.string}},{types:["punctuation"],style:{color:xt.string}},{types:["selector","char","builtin","inserted"],style:{color:xt.char}},{types:["function"],style:{color:xt.function}},{types:["operator","entity","url","variable"],style:{color:xt.variable}},{types:["keyword"],style:{color:xt.keyword}},{types:["atrule","class-name"],style:{color:xt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},ay=ly,ny={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"}}]},iy=ny,ry={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)"}}]},uy=ry,sy={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)"}}]},cy=sy,oy={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"}}]},fy=oy,dy={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)"}}]},gy=dy,py={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)"}}]},sg=py,hy={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)"}}]},by=hy,yy={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"}}]},my=yy,vy={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"}}]},xy=vy,Sy={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%)"}}]},Ey=Sy,Ny={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%)"}}]},Ay=Ny,_y={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"}}]},Ty=_y,wy={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"}}]},jy=wy,Cy=r=>V.useCallback(f=>{var d=f,{className:c,style:y,line:b}=d,T=ug(d,["className","style","line"]);const _=er(Gt({},T),{className:ng("token-line",c)});return typeof r=="object"&&"plain"in r&&(_.style=r.plain),typeof y=="object"&&(_.style=Gt(Gt({},_.style||{}),y)),_},[r]),Oy=r=>{const f=V.useCallback(({types:d,empty:c})=>{if(r!=null){{if(d.length===1&&d[0]==="plain")return c!=null?{display:"inline-block"}:void 0;if(d.length===1&&c!=null)return r[d[0]]}return Object.assign(c!=null?{display:"inline-block"}:{},...d.map(y=>r[y]))}},[r]);return V.useCallback(d=>{var c=d,{token:y,className:b,style:T}=c,_=ug(c,["token","className","style"]);const S=er(Gt({},_),{className:ng("token",...y.types,b),children:y.content,style:f(y)});return T!=null&&(S.style=Gt(Gt({},S.style||{}),T)),S},[f])},Dy=/\r\n|\r|\n/,zd=r=>{r.length===0?r.push({types:["plain"],content:`
180
- `,empty:!0}):r.length===1&&r[0].content===""&&(r[0].content=`
181
- `,r[0].empty=!0)},Rd=(r,f)=>{const d=r.length;return d>0&&r[d-1]===f?r:r.concat(f)},ky=r=>{const f=[[]],d=[r],c=[0],y=[r.length];let b=0,T=0,_=[];const S=[_];for(;T>-1;){for(;(b=c[T]++)<y[T];){let g,m=f[T];const Y=d[T][b];if(typeof Y=="string"?(m=T>0?m:["plain"],g=Y):(m=Rd(m,Y.type),Y.alias&&(m=Rd(m,Y.alias)),g=Y.content),typeof g!="string"){T++,f.push(m),d.push(g),c.push(0),y.push(g.length);continue}const Z=g.split(Dy),x=Z.length;_.push({types:m,content:Z[0]});for(let N=1;N<x;N++)zd(_),S.push(_=[]),_.push({types:m,content:Z[N]})}T--,f.pop(),d.pop(),c.pop(),y.pop()}return zd(_),S},Md=ky,zy=({prism:r,code:f,grammar:d,language:c})=>V.useMemo(()=>{if(d==null)return Md([f]);const y={code:f,grammar:d,language:c,tokens:[]};return r.hooks.run("before-tokenize",y),y.tokens=r.tokenize(f,d),r.hooks.run("after-tokenize",y),Md(y.tokens)},[f,d,c,r]),Ry=(r,f)=>{const{plain:d}=r,c=r.styles.reduce((y,b)=>{const{languages:T,style:_}=b;return T&&!T.includes(f)||b.types.forEach(S=>{const g=Gt(Gt({},y[S]),_);y[S]=g}),y},{});return c.root=d,c.plain=er(Gt({},d),{backgroundColor:void 0}),c},My=Ry,Ly=({children:r,language:f,code:d,theme:c,prism:y})=>{const b=f.toLowerCase(),T=My(c,b),_=Cy(T),S=Oy(T),g=y.languages[b],m=zy({prism:y,language:b,code:d,grammar:g});return r({tokens:m,className:`prism-code language-${b}`,style:T!=null?T.root:{},getLineProps:_,getTokenProps:S})},Uy=r=>V.createElement(Ly,er(Gt({},r),{prism:r.prism||H,theme:r.theme||sg,code:r.code,language:r.language}));/*! Bundled license information:
182
-
183
- prismjs/prism.js:
184
- (**
185
- * Prism: Lightweight, robust, elegant syntax highlighting
186
- *
187
- * @license MIT <https://opensource.org/licenses/MIT>
188
- * @author Lea Verou <https://lea.verou.me>
189
- * @namespace
190
- * @public
191
- *)
192
- */const By="modulepreload",Hy=function(r){return"/"+r},Ld={},St=function(f,d,c){let y=Promise.resolve();if(d&&d.length>0){let S=function(g){return Promise.all(g.map(m=>Promise.resolve(m).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};document.getElementsByTagName("link");const T=document.querySelector("meta[property=csp-nonce]"),_=T?.nonce||T?.getAttribute("nonce");y=S(d.map(g=>{if(g=Hy(g),g in Ld)return;Ld[g]=!0;const m=g.endsWith(".css"),j=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${j}`))return;const Y=document.createElement("link");if(Y.rel=m?"stylesheet":By,m||(Y.as="script"),Y.crossOrigin="",Y.href=g,_&&Y.setAttribute("nonce",_),document.head.appendChild(Y),m)return new Promise((Z,x)=>{Y.addEventListener("load",Z),Y.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${g}`)))})}))}function b(T){const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=T,window.dispatchEvent(_),!_.defaultPrevented)throw T}return y.then(T=>{for(const _ of T||[])_.status==="rejected"&&b(_.reason);return f().catch(b)})},Ji={};function cg(r){if(!Ji[r]){const d={bash:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await St(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),St(()=>import("./prism-php-BLhwjsTl.js").then(c=>c.p),[])),sql:()=>St(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>St(()=>import("./prism-ruby-ExhPumJe.js").then(c=>c.p),[]),java:()=>St(()=>import("./prism-java-CqBdPW_L.js").then(c=>c.p),[]),scala:async()=>(await cg("java"),St(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>St(()=>import("./prism-solidity-BCgmGzF-.js").then(c=>c.p),[]),vim:()=>St(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>St(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>St(()=>import("./prism-csharp-Dc46Fjt0.js").then(c=>c.p),[])}[r];if(!d)return console.warn(`No loader available for language: ${r}`),Promise.reject(new Error(`Unsupported language: ${r}`));Ji[r]=d().then(()=>{}).catch(c=>{throw delete Ji[r],console.warn(`Failed to load language: ${r}`,c),c})}return Ji[r]}typeof global<"u"?global.Prism=H:typeof window<"u"&&(window.Prism=H);const Ud=["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 qy(r,f){const[d,c]=V.useState(()=>Ud.includes(f)||!!H.languages[f]);return V.useEffect(()=>{if(!d){if(Ud.includes(f)){c(!0);return}cg(f).then(()=>{c(!0)}).catch(()=>{c(!1)})}},[f,d]),{ready:d,actualLang:d?f:"text"}}const Bd=[{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"}],Hd=[{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 Gy(r){return{...r,styles:r.styles.map(f=>({...f,style:{...f.style,background:void 0,backgroundColor:void 0}}))}}function Yy(r){let f;switch(r){case"github":f=Et.github;break;case"vsLight":f=Et.vsLight;break;case"oneLight":f=Et.oneLight;break;case"gruvboxMaterialLight":f=Et.gruvboxMaterialLight;break;case"nightOwlLight":f=Et.nightOwlLight;break;case"vsDark":f=Et.vsDark;break;case"oneDark":f=Et.oneDark;break;case"gruvboxMaterialDark":f=Et.gruvboxMaterialDark;break;case"nightOwl":f=Et.nightOwl;break;case"dracula":f=Et.dracula;break;case"okaidia":f=Et.okaidia;break;default:f=Et.vsDark}return Gy(f)}function Zy(r){const f=Db(r).toLowerCase(),d=tg(r),c={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return c[f]?c[f]:{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",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",r:"r",lua:"lua",perl:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp"}[d||""]||"text"}let og="";function Xy(r){og=r}function Ss({code:r,language:f,className:d,syntaxTheme:c="vsDark"}){const y=f||Zy(og),{actualLang:b}=qy(r,y),T=Yy(c);return s.jsx(Uy,{code:r,language:b,theme:T,prism:H,children:({style:_,tokens:S,getLineProps:g,getTokenProps:m})=>s.jsx("span",{className:d,style:{..._,background:"transparent",backgroundColor:"transparent"},children:S.map((j,Y)=>s.jsx("span",{...g({line:j}),children:j.map((Z,x)=>s.jsx("span",{...m({token:Z})},x))},Y))})})}const Vy=r=>{switch(r.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},Qy=r=>{switch(r.type){case"add":return"+";case"delete":return"-";default:return" "}},fg=Mn.memo(({line:r,lineId:f,isCurrentLine:d=!1,hoveredLine:c,selectedLineStyle:y,onMouseEnter:b,onMouseLeave:T,onMouseMove:_,onCommentButtonMouseDown:S,onCommentButtonMouseUp:g,syntaxTheme:m,onClick:j})=>{const Y=r.newLineNumber||r.oldLineNumber,Z=c===Y&&Y,x=d?"keyboard-cursor":"";return s.jsxs("tr",{id:f,className:`group ${Vy(r)} relative ${y} ${x} cursor-pointer`,onMouseEnter:b,onMouseLeave:T,onMouseMove:_,onClick:j,children:[s.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:r.oldLineNumber||""}),s.jsxs("td",{className:"w-[50px] 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:[s.jsx("span",{className:"pr-5",children:r.newLineNumber||""}),Z&&s.jsx(Ii,{onMouseDown:S,onMouseUp:g})]}),s.jsx("td",{className:"p-0 w-full relative align-top",children:s.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[s.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${r.type==="add"?"text-github-accent bg-diff-addition-bg":r.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:Qy(r)}),s.jsx(Ss,{code:r.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:m})]})})]})});fg.displayName="DiffLineRow";function dg({comment:r,onGeneratePrompt:f,onRemoveComment:d,onUpdateComment:c}){const[y,b]=V.useState(!1),[T,_]=V.useState(!1),[S,g]=V.useState(r.body),m=async()=>{try{const x=f(r);await navigator.clipboard.writeText(x),b(!0),setTimeout(()=>b(!1),2e3)}catch(x){console.error("Failed to copy prompt:",x)}},j=()=>{_(!0),g(r.body)},Y=()=>{_(!1),g(r.body)},Z=()=>{S.trim()!==r.body&&c(r.id,S.trim()),_(!1)};return s.jsxs("div",{className:"m-2 mx-4 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:s.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:[r.file,":",Array.isArray(r.line)?`${r.line[0]}-${r.line[1]}`:r.line]})}),s.jsxs("div",{className:"flex items-center gap-2",children:[!T&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:m,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:x=>{x.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",x.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",x.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:y?"Copied!":"Copy Prompt"}),s.jsx("button",{onClick:j,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:s.jsx(Sb,{size:12})}),s.jsx("button",{onClick:()=>d(r.id),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:s.jsx(Rn,{size:12})})]}),T&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:Z,className:"text-xs p-1.5 bg-github-accent text-white border border-github-accent rounded hover:opacity-80 transition-all",title:"Save changes",children:s.jsx(Nb,{size:12})}),s.jsx("button",{onClick:Y,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:"Cancel editing",children:s.jsx(_s,{size:12})})]})]})]}),T?s.jsx("textarea",{value:S,onChange:x=>g(x.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,S.split(`
193
- `).length),placeholder:"Edit your comment...",autoFocus:!0}):s.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:r.body})]})}function Fy({chunk:r,chunkIndex:f,comments:d,onAddComment:c,onGeneratePrompt:y,onRemoveComment:b,onUpdateComment:T,syntaxTheme:_,cursor:S=null,fileIndex:g=0,onLineClick:m,commentTrigger:j,onCommentTriggerHandled:Y}){const[Z,x]=V.useState(null),[N,z]=V.useState(null),[E,O]=V.useState(!1),[L,J]=V.useState(null),[Q,ue]=V.useState(null);V.useEffect(()=>{if(j&&j.lineIndex!==void 0){const M=r.lines[j.lineIndex];if(M&&M.type!=="delete"){const w=M.newLineNumber;w&&(J({side:"new",lineNumber:w}),Y?.())}}},[j,r.lines,Y]),V.useEffect(()=>{if(E){const M=()=>{O(!1),x(null),z(null)};return document.addEventListener("mouseup",M),()=>{document.removeEventListener("mouseup",M)}}},[E]);const ie=V.useCallback((M,w)=>{L?.side===M&&L?.lineNumber===w?J(null):J({side:M,lineNumber:w})},[L]),W=V.useCallback(()=>{J(null)},[]),P=V.useCallback(async M=>{L!==null&&(await c(L.lineNumber,M),J(null))},[L,c]),ge=M=>d.filter(w=>Array.isArray(w.line)?w.line[1]===M:w.line===M),be=M=>M.oldLine?.type==="delete"&&M.newLine?.type==="add"?M.newLineNumber?"right":"left":M.oldLine?.type==="delete"?"left":M.newLine?.type==="add"?"right":"full",se=(M,w)=>{const X=M==="old"?w.oldLineNumber:w.newLineNumber;if(!X)return"";if(E&&Z&&N&&Z.side===M&&N.side===M){const I=Math.min(Z.lineNumber,N.lineNumber),ee=Math.max(Z.lineNumber,N.lineNumber);if(X>=I&&X<=ee){let p="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 X===I&&(p+=" after:border-t-2"),X===ee&&(p+=" after:border-b-2"),p}}if(L&&L.side===M){const I=Array.isArray(L.lineNumber)?L.lineNumber:[L.lineNumber,L.lineNumber],ee=I[0],p=I[1];if(ee!==void 0&&p!==void 0&&X>=ee&&X<=p)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""},F=(M=>{const w=[];let X=r.oldStart,I=r.newStart,ee=0;for(;ee<M.length;){const p=M[ee];if(!p){ee++;continue}if(p.type==="normal")w.push({oldLine:p,newLine:{...p},oldLineNumber:p.oldLineNumber??X,newLineNumber:p.newLineNumber??I,oldLineOriginalIndex:ee,newLineOriginalIndex:ee}),X++,I++,ee++;else if(p.type==="delete"){let U=ee+1;for(;U<M.length&&M[U]?.type==="delete";)U++;const $=M.slice(ee,U),K=ee,le=[],de=U;for(;U<M.length&&M[U]?.type==="add";){const ne=M[U];ne&&le.push(ne),U++}const te=Math.max($.length,le.length);for(let ne=0;ne<te;ne++){const pe=$[ne],Te=le[ne];w.push({oldLine:pe,newLine:Te,oldLineNumber:pe?pe.oldLineNumber??X+ne:void 0,newLineNumber:Te?Te.newLineNumber??I+ne:void 0,oldLineOriginalIndex:pe?K+ne:void 0,newLineOriginalIndex:Te?de+ne:void 0})}X+=$.length,I+=le.length,ee=U}else p.type==="add"&&(w.push({newLine:p,newLineNumber:p.newLineNumber??I,newLineOriginalIndex:ee}),I++,ee++)}return w})(r.lines);return s.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:F.map((M,w)=>{const X=M.newLineNumber?ge(M.newLineNumber):M.oldLineNumber?ge(M.oldLineNumber):[],I=M.oldLineOriginalIndex??-1,ee=M.newLineOriginalIndex??-1,p=S?S.side==="left"&&I>=0?S.chunkIndex===f&&S.lineIndex===I:S.side==="right"&&ee>=0?S.chunkIndex===f&&S.lineIndex===ee:!1:!1,U=I>=0?`file-${g}-chunk-${f}-line-${I}-left`:void 0,$=ee>=0?`file-${g}-chunk-${f}-line-${ee}-right`:void 0,K=p&&S?.side==="left",le=p&&S?.side==="right",de="keyboard-cursor";return s.jsxs(Mn.Fragment,{children:[s.jsxs("tr",{className:"group cursor-pointer",onClick:te=>{if(m&&!E){const ne=te.target,pe=ne.closest("td:nth-child(1)")||ne.closest("td:nth-child(2)"),Te=ne.closest("td:nth-child(3)")||ne.closest("td:nth-child(4)");pe&&I>=0?m(g,f,I,"left"):Te&&ee>=0&&m(g,f,ee,"right")}},onMouseEnter:te=>{const ne=te.target,pe=ne.closest("td:nth-child(1)")||ne.closest("td:nth-child(2)"),Te=ne.closest("td:nth-child(3)")||ne.closest("td:nth-child(4)");pe&&M.oldLineNumber?ue({side:"old",lineNumber:M.oldLineNumber}):Te&&M.newLineNumber&&ue({side:"new",lineNumber:M.newLineNumber})},onMouseMove:te=>{const ne=te.target,pe=ne.closest("td:nth-child(1)")||ne.closest("td:nth-child(2)"),Te=ne.closest("td:nth-child(3)")||ne.closest("td:nth-child(4)");pe&&M.oldLineNumber?(Q?.side!=="old"||Q?.lineNumber!==M.oldLineNumber)&&ue({side:"old",lineNumber:M.oldLineNumber}):Te&&M.newLineNumber&&(Q?.side!=="new"||Q?.lineNumber!==M.newLineNumber)&&ue({side:"new",lineNumber:M.newLineNumber}),E&&Z&&(Z.side==="old"&&M.oldLineNumber?z({side:"old",lineNumber:M.oldLineNumber}):Z.side==="new"&&M.newLineNumber&&z({side:"new",lineNumber:M.newLineNumber}))},onMouseLeave:()=>ue(null),children:[s.jsxs("td",{id:U,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${K?de:""}`,children:[s.jsx("span",{className:"pr-5",children:M.oldLineNumber||""}),Q?.side==="old"&&Q?.lineNumber===M.oldLineNumber&&s.jsx(Ii,{onMouseDown:te=>{te.stopPropagation(),M.oldLineNumber&&(x({side:"old",lineNumber:M.oldLineNumber}),z({side:"old",lineNumber:M.oldLineNumber}),O(!0))},onMouseUp:te=>{if(te.stopPropagation(),!M.oldLineNumber||!Z){O(!1),x(null),z(null);return}const ne=N&&N.side==="old"?N.lineNumber:M.oldLineNumber;if(Z.side!=="old"||Z.lineNumber===ne)ie("old",M.oldLineNumber);else{const pe=Math.min(Z.lineNumber,ne),Te=Math.max(Z.lineNumber,ne);ie("old",[pe,Te])}O(!1),x(null),z(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${M.oldLine?.type==="delete"?"bg-diff-deletion-bg":M.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${se("old",M)} ${K?de:""}`,children:M.oldLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Ss,{code:M.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:_})})}),s.jsxs("td",{id:$,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${le?de:""}`,children:[s.jsx("span",{className:"pr-5",children:M.newLineNumber||""}),Q?.side==="new"&&Q?.lineNumber===M.newLineNumber&&s.jsx(Ii,{onMouseDown:te=>{te.stopPropagation(),M.newLineNumber&&(x({side:"new",lineNumber:M.newLineNumber}),z({side:"new",lineNumber:M.newLineNumber}),O(!0))},onMouseUp:te=>{if(te.stopPropagation(),!M.newLineNumber||!Z){O(!1),x(null),z(null);return}const ne=N&&N.side==="new"?N.lineNumber:M.newLineNumber;if(Z.side!=="new"||Z.lineNumber===ne)ie("new",M.newLineNumber);else{const pe=Math.min(Z.lineNumber,ne),Te=Math.max(Z.lineNumber,ne);ie("new",[pe,Te])}O(!1),x(null),z(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top relative ${M.newLine?.type==="add"?"bg-diff-addition-bg":M.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${se("new",M)} ${le?de:""}`,children:M.newLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Ss,{code:M.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:_})})})]}),X.length>0&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:X.map(te=>{const ne=be(M);return s.jsx("div",{className:`flex ${ne==="left"?"justify-start":ne==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${ne==="full"?"w-full":"w-1/2"}`,children:s.jsx(dg,{comment:te,onGeneratePrompt:y,onRemoveComment:b,onUpdateComment:T})})},te.id)})})}),L&&(L.side==="old"&&L.lineNumber===M.oldLineNumber||L.side==="new"&&L.lineNumber===M.newLineNumber||Array.isArray(L.lineNumber)&&(L.side==="new"&&L.lineNumber[1]===M.newLineNumber||L.side==="old"&&L.lineNumber[1]===M.oldLineNumber))&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${be(M)==="left"?"justify-start":be(M)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${be(M)==="full"?"w-full":"w-1/2"}`,children:s.jsx(lg,{onSubmit:P,onCancel:W})})})})})]},w)})})})})}function $y({chunk:r,chunkIndex:f,comments:d,onAddComment:c,onGeneratePrompt:y,onRemoveComment:b,onUpdateComment:T,mode:_="inline",syntaxTheme:S,cursor:g=null,fileIndex:m=0,onLineClick:j,commentTrigger:Y,onCommentTriggerHandled:Z}){const[x,N]=V.useState(null),[z,E]=V.useState(null),[O,L]=V.useState(!1),[J,Q]=V.useState(null),[ue,ie]=V.useState(null);V.useEffect(()=>{if(Y&&Y.lineIndex!==void 0){const F=r.lines[Y.lineIndex];if(F){const M=F.newLineNumber||F.oldLineNumber;M&&(Q(M),Z?.())}}},[Y,r.lines,Z]),V.useEffect(()=>{if(O){const F=()=>{L(!1),N(null),E(null)};return document.addEventListener("mouseup",F),()=>{document.removeEventListener("mouseup",F)}}},[O]);const W=V.useCallback(F=>{Q(J===F?null:F)},[J]),P=V.useCallback(()=>{Q(null)},[]),ge=V.useCallback(async F=>{J!==null&&(await c(J,F),Q(null))},[J,c]),be=F=>d.filter(M=>Array.isArray(M.line)?M.line[1]===F:M.line===F),se=F=>{if(_==="inline")return"full";switch(F.type){case"delete":return"left";case"add":return"right";default:return"full"}},Ee=F=>{if(!F)return"";if(O&&x&&z){const M=Math.min(x,z),w=Math.max(x,z);if(F>=M&&F<=w){let X="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 F===M&&(X+=" after:border-t-2"),F===w&&(X+=" after:border-b-2"),X}}if(J){const M=Array.isArray(J)?J[0]:J,w=Array.isArray(J)?J[1]:J;if(F>=M&&F<=w)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""};return _==="side-by-side"?s.jsx(Fy,{chunk:r,chunkIndex:f,comments:d,onAddComment:c,onGeneratePrompt:y,onRemoveComment:b,onUpdateComment:T,syntaxTheme:S,cursor:g,fileIndex:m,onLineClick:j,commentTrigger:Y,onCommentTriggerHandled:Z}):s.jsx("div",{className:"bg-github-bg-primary",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:r.lines.map((F,M)=>{const w=be(F.newLineNumber||F.oldLineNumber||0),X=`file-${m}-chunk-${f}-line-${M}`,I=g&&g.chunkIndex===f&&g.lineIndex===M;return s.jsxs(Mn.Fragment,{children:[s.jsx(fg,{line:F,index:M,lineId:X,isCurrentLine:I||!1,hoveredLine:ue,selectedLineStyle:Ee(F.newLineNumber||F.oldLineNumber),onMouseEnter:()=>{const ee=F.newLineNumber||F.oldLineNumber;ee&&ie(ee)},onMouseLeave:()=>ie(null),onMouseMove:()=>{if(O&&x){const ee=F.newLineNumber||F.oldLineNumber;ee&&E(ee)}},onCommentButtonMouseDown:ee=>{ee.stopPropagation();const p=F.newLineNumber||F.oldLineNumber;p&&(N(p),E(p),L(!0))},onCommentButtonMouseUp:ee=>{ee.stopPropagation();const p=F.newLineNumber||F.oldLineNumber;if(!p||!x){L(!1),N(null),E(null);return}const U=z||p;if(x===U)W(p);else{const $=Math.min(x,U),K=Math.max(x,U);W([$,K])}L(!1),N(null),E(null)},syntaxTheme:S,onClick:()=>{if(j){const ee=F.type==="delete"?"left":"right";j(m,f,M,ee)}}}),w.map(ee=>{const p=se(F);return s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${p==="left"?"justify-start":p==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${p==="full"?"w-full":"w-1/2"}`,children:s.jsx(dg,{comment:ee,onGeneratePrompt:y,onRemoveComment:b,onUpdateComment:T})})})})},ee.id)}),J&&(J===(F.newLineNumber||F.oldLineNumber)||Array.isArray(J)&&J[1]===(F.newLineNumber||F.oldLineNumber))&&s.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-[var(--border-muted)]",children:s.jsx("div",{className:`flex ${se(F)==="left"?"justify-start":se(F)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${se(F)==="full"?"w-full":"w-1/2"}`,children:s.jsx(lg,{onSubmit:ge,onCancel:P})})})})})]},M)})})})})}function Ky({file:r,mode:f="inline",baseCommitish:d,targetCommitish:c}){const y=r.status==="deleted",b=r.status==="added",T=r.status==="modified"||r.status==="renamed",_=d||"HEAD~1",S=c||"HEAD",[g,m]=V.useState({}),[j,Y]=V.useState({}),Z=async(E,O)=>{try{const L=E.naturalWidth,J=E.naturalHeight,ie=(await(await fetch(E.src)).blob()).size;O({width:L,height:J,size:ie})}catch(L){console.error("Failed to get image info:",L)}},x=E=>E?E<1024?`${E} B`:E<1024*1024?`${(E/1024).toFixed(1)} KB`:`${(E/(1024*1024)).toFixed(1)} MB`:"",N=E=>!E.width||!E.height?"":`W: ${E.width}px | H: ${E.height}px`,z={backgroundImage:`
194
- linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
195
- linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
196
- `,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return y?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${_}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,m),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&x(g.size)&&" | ",x(g.size)]})]})]})}):b?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`New image ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,Y),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(j.width||j.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(j),N(j)&&x(j.size)&&" | ",x(j.size)]})]})]})}):T?f==="side-by-side"?s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${_}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,m),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&x(g.size)&&" | ",x(g.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,Y),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(j.width||j.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(j),N(j)&&x(j.size)&&" | ",x(j.size)]})]})})]})]}):s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${_}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,m),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&x(g.size)&&" | ",x(g.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:z,onLoad:E=>Z(E.currentTarget,Y),onError:E=>{const O=E.target;O.style.display="none",O.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(j.width||j.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(j),N(j)&&x(j.size)&&" | ",x(j.size)]})]})})]})]}):null}function Jy({file:r,comments:f,diffMode:d,reviewedFiles:c,onToggleReviewed:y,onAddComment:b,onGeneratePrompt:T,onRemoveComment:_,onUpdateComment:S,syntaxTheme:g,baseCommitish:m,targetCommitish:j,cursor:Y=null,fileIndex:Z=0,onLineClick:x,commentTrigger:N,onCommentTriggerHandled:z}){const E=c.has(r.path),[O,L]=V.useState(!1);Xy(r.path);const J=ue=>{switch(ue){case"added":return s.jsx(Jd,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Id,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(Kd,{size:16,className:"text-github-warning"});default:return s.jsx($d,{size:16,className:"text-github-text-secondary"})}},Q=async(ue,ie,W)=>{try{await b(r.path,ue,ie,W)}catch(P){console.error("Failed to add comment:",P)}};return s.jsxs("div",{className:"bg-github-bg-primary",children:[s.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:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>y(r.path),className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:E?"Expand file":"Collapse file",children:E?s.jsx(Qd,{size:16}):s.jsx(As,{size:16})}),J(r.status),s.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.path}),s.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${O?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(r.path).then(()=>{console.log("File path copied to clipboard:",r.path),L(!0),setTimeout(()=>L(!1),2e3)}).catch(ue=>{console.error("Failed to copy file path:",ue)})},title:"Copy file path",children:O?s.jsx(Rn,{size:14}):s.jsx(Fd,{size:14})}),r.oldPath&&r.oldPath!==r.path&&s.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.oldPath,")"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",r.additions]}),s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),s.jsxs("button",{onClick:()=>y(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${c.has(r.path)?"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:c.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[c.has(r.path)?s.jsx(Rn,{size:14}):s.jsx(jb,{size:14}),"Viewed"]})]})]}),!E&&s.jsx("div",{className:"overflow-y-auto",children:zb(r.path)?s.jsx(Ky,{file:r,mode:d,baseCommitish:m,targetCommitish:j}):r.chunks.map((ue,ie)=>s.jsxs("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${ie}`,className:"border-b border-github-border",children:[s.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:s.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:ue.header})}),s.jsx($y,{chunk:ue,chunkIndex:ie,comments:f,onAddComment:Q,onGeneratePrompt:T,onRemoveComment:_,onUpdateComment:S,mode:d,syntaxTheme:g,cursor:Y,fileIndex:Z,onLineClick:x,commentTrigger:N?.chunkIndex===ie?N:null,onCommentTriggerHandled:z})]},ie))})]})}function Iy(r){const f={name:"",path:"",isDirectory:!0,children:[]};r.forEach(c=>{const y=c.path.split("/");let b=f;for(let T=0;T<y.length;T++){const _=y[T];if(!_)continue;const S=T===y.length-1,g=y.slice(0,T+1).join("/");b.children||(b.children=[]);let m=b.children.find(j=>j.name===_);m||(m={name:_,path:g,isDirectory:!S,children:S?void 0:[],file:S?c:void 0},b.children.push(m)),b=m}});const d=c=>{if(!c.isDirectory||!c.children)return c;if(c.children=c.children.map(d),c.children.length===1&&c.children[0]?.isDirectory&&c.children[0]?.children){const y=c.children[0];if(y)return c.name?{...c,name:`${c.name}/${y.name}`,path:y.path,children:y.children}:c}return c};return d(f)}function Wy({files:r,onScrollToFile:f,comments:d,reviewedFiles:c,onToggleReviewed:y}){const b=Iy(r),T=E=>{if(!E.isDirectory||!E.children)return[];const O=[];return E.path&&O.push(E.path),E.children.forEach(L=>{O.push(...T(L))}),O},[_,S]=V.useState(()=>new Set(T(b))),[g,m]=V.useState(""),j=E=>d.filter(O=>O.file===E).length,Y=E=>{if(!g.trim())return E;if(E.isDirectory&&E.children){const O=E.children.map(L=>Y(L)).filter(L=>L!==null);return O.length>0?{...E,children:O}:null}else if(E.file)return E.file.path.toLowerCase().includes(g.toLowerCase())?E:null;return null},Z=Y(b)||{...b,children:[]},x=E=>{switch(E){case"added":return s.jsx(Jd,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Id,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(Kd,{size:16,className:"text-github-warning"});default:return s.jsx($d,{size:16,className:"text-github-text-secondary"})}},N=E=>{S(O=>{const L=new Set(O);return L.has(E)?L.delete(E):L.add(E),L})},z=(E,O=0)=>{if(E.isDirectory&&E.children){const L=_.has(E.path);return s.jsxs("div",{children:[E.name&&s.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${O*16+16}px`},onClick:()=>N(E.path),children:[L?s.jsx(As,{size:16}):s.jsx(Qd,{size:16}),L?s.jsx(db,{size:16,className:"text-github-text-secondary"}):s.jsx(pb,{size:16,className:"text-github-text-secondary"}),s.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:E.name,children:E.name})]}),(L||!E.name)&&E.children.map(J=>z(J,O+1))]},E.path)}else if(E.file){const L=E.file,J=j(L.path),Q=c.has(L.path);return s.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Q?"opacity-70":""}`,style:{paddingLeft:`${O*16+16}px`},onClick:()=>f(L.path),children:[s.jsx(eg,{checked:Q,onChange:()=>{y(L.path)},title:Q?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),x(E.file.status),s.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Q?"line-through text-github-text-muted":""}`,title:E.file.path,children:E.name}),J>0&&s.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[s.jsx(Wd,{size:14}),J]})]},L.path)}return null};return s.jsxs("div",{className:"h-full flex flex-col",children:[s.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[s.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0 mb-3",children:["Files changed (",r.length,")"]}),s.jsxs("div",{className:"relative",children:[s.jsx(_b,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),s.jsx("input",{type:"text",placeholder:"Filter files...",value:g,onChange:E=>m(E.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"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto",children:Z.children?.map(E=>z(E))})]})}function Py({style:r}){return s.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:r,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:s.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 em({isOpen:r,onClose:f}){return V.useEffect(()=>{if(!r)return;const d=c=>{c.key==="Escape"&&f()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[r,f]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:f}),s.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:[s.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:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),s.jsx("button",{onClick:f,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:s.jsx(_s,{size:20})})]}),s.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"r"}),s.jsx("span",{className:"text-github-text-secondary",children:"Toggle review state of current file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),s.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),s.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),s.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),s.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:s.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function tm({style:r}){return s.jsxs("svg",{style:r,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[s.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"}),s.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"})]})}const lm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},am=[{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 nm({isOpen:r,onClose:f,settings:d,onSettingsChange:c}){const[y,b]=V.useState(d);V.useEffect(()=>{b(d)},[d]),V.useEffect(()=>{c(y)},[y,c]);const T=()=>y.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":y.theme,_=()=>T()==="light"?Bd:Hd,S=m=>{const j={...y,theme:m},Z=(m==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":m)==="light"?Bd:Hd;if(!Z.some(N=>N.id===y.syntaxTheme)&&Z.length>0){const N=Z[0];N&&(j.syntaxTheme=N.id)}b(j)},g=()=>{b(lm)};return r?s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:s.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[s.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[s.jsx(Pd,{size:20}),"Appearance Settings"]}),s.jsx("button",{onClick:f,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:s.jsx(_s,{size:18})})]}),s.jsxs("div",{className:"p-4 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:y.fontSize,onChange:m=>b({...y,fontSize:parseInt(m.target.value)}),className:"flex-1 accent-github-accent"}),s.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[y.fontSize,"px"]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),s.jsx("select",{value:y.fontFamily,onChange:m=>b({...y,fontFamily:m.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:am.map(m=>s.jsx("option",{value:m.value,children:m.name},m.value))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),s.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(m=>s.jsx("button",{onClick:()=>S(m),className:`px-3 py-2 text-sm rounded border transition-colors ${y.theme===m?"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:m.charAt(0).toUpperCase()+m.slice(1)},m))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),s.jsx("select",{value:y.syntaxTheme,onChange:m=>b({...y,syntaxTheme:m.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:_().map(m=>s.jsx("option",{value:m.id,children:m.label},m.id))})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[s.jsx("button",{onClick:g,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),s.jsx("button",{onClick:f,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const qd={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},im=({isActive:r})=>r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"animate-sparkle-rise",style:{...qd,left:"-12px",animationDelay:"0s"},children:"✨"}),s.jsx("div",{className:"animate-sparkle-rise",style:{...qd,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Gd={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Yd="reviewit-appearance-settings";function rm(){const[r,f]=V.useState(Gd);V.useEffect(()=>{try{const y=localStorage.getItem(Yd);if(y){const b=JSON.parse(y);f({...Gd,...b})}}catch(y){console.warn("Failed to load appearance settings from localStorage:",y)}},[]),V.useEffect(()=>{const y=document.documentElement;if(y.style.setProperty("--app-font-size",`${r.fontSize}px`),y.style.setProperty("--app-font-family",r.fontFamily),r.theme==="auto"){const b=window.matchMedia("(prefers-color-scheme: dark)");d(b.matches?"dark":"light");const T=_=>{d(_.matches?"dark":"light")};return b.addEventListener("change",T),()=>b.removeEventListener("change",T)}else{d(r.theme);return}},[r]);const d=y=>{const b=document.documentElement;y==="light"?(b.style.setProperty("--color-github-bg-primary","#ffffff"),b.style.setProperty("--color-github-bg-secondary","#f6f8fa"),b.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),b.style.setProperty("--color-github-border","#d1d9e0"),b.style.setProperty("--color-github-text-primary","#24292f"),b.style.setProperty("--color-github-text-secondary","#656d76"),b.style.setProperty("--color-github-text-muted","#8c959f"),b.style.setProperty("--color-github-accent","#1f883d"),b.style.setProperty("--color-github-danger","#cf222e"),b.style.setProperty("--color-github-warning","#bf8700"),b.style.setProperty("--color-diff-addition-bg","#d1f4cd"),b.style.setProperty("--color-diff-addition-border","#1f883d"),b.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),b.style.setProperty("--color-diff-deletion-border","#cf222e"),b.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),b.style.setProperty("--color-comment-bg","#fff8e1"),b.style.setProperty("--color-comment-border","#ffd54f"),b.style.setProperty("--color-comment-text","#5d4037"),b.style.setProperty("--color-yellow-btn-bg","#fef3c7"),b.style.setProperty("--color-yellow-btn-border","#f59e0b"),b.style.setProperty("--color-yellow-btn-text","#92400e"),b.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),b.style.setProperty("--color-yellow-btn-hover-border","#d97706"),b.style.setProperty("--color-yellow-path-bg","#fde68a"),b.style.setProperty("--color-yellow-path-text","#92400e")):(b.style.setProperty("--color-github-bg-primary","#0d1117"),b.style.setProperty("--color-github-bg-secondary","#161b22"),b.style.setProperty("--color-github-bg-tertiary","#21262d"),b.style.setProperty("--color-github-border","#30363d"),b.style.setProperty("--color-github-text-primary","#f0f6fc"),b.style.setProperty("--color-github-text-secondary","#8b949e"),b.style.setProperty("--color-github-text-muted","#6e7681"),b.style.setProperty("--color-github-accent","#238636"),b.style.setProperty("--color-github-danger","#da3633"),b.style.setProperty("--color-github-warning","#d29922"),b.style.setProperty("--color-diff-addition-bg","#0d4429"),b.style.setProperty("--color-diff-addition-border","#1b7c3d"),b.style.setProperty("--color-diff-deletion-bg","#67060c"),b.style.setProperty("--color-diff-deletion-border","#da3633"),b.style.setProperty("--color-diff-neutral-bg","#21262d"),b.style.setProperty("--color-comment-bg","#1c2128"),b.style.setProperty("--color-comment-border","#373e47"),b.style.setProperty("--color-comment-text","#e6edf3"),b.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),b.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),b.style.setProperty("--color-yellow-btn-text","#fbbf24"),b.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),b.style.setProperty("--color-yellow-btn-hover-border","#d97706"),b.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),b.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"};return{settings:r,updateSettings:y=>{f(y);try{localStorage.setItem(Yd,JSON.stringify(y))}catch(b){console.warn("Failed to save appearance settings to localStorage:",b)}}}}const Es={SCROLL_CONTAINER:"main.overflow-y-auto"},Zd={VIEWPORT_OFFSET_RATIO:1/3};function ka(r,f){const d=`file-${r.fileIndex}-chunk-${r.chunkIndex}-line-${r.lineIndex}`;return f==="side-by-side"?`${d}-${r.side}`:d}function um(r,f){const d=f[r.fileIndex]?.chunks[r.chunkIndex]?.lines[r.lineIndex];return d&&(d.type==="add"||d.type==="delete"||d.type==="normal")?d.type:null}function Nt(r,f){const d=um(r,f);return d?d==="normal"?!0:d==="delete"?r.side==="left":d==="add"?r.side==="right":!1:!1}function gg(r,f){return Nt(r,f)?r:{...r,side:r.side==="left"?"right":"left"}}function pg(r,f){return`${r}:${f}`}function sm(r,f,d,c){return{line:y=>{const b=r[y.fileIndex];return!b||c?.has(b.path)?!1:d==="inline"||Nt(y,r)},chunk:y=>{const b=r[y.fileIndex];if(!b||c?.has(b.path))return!1;const T=b.chunks[y.chunkIndex]?.lines[y.lineIndex];if(!T||T.type==="normal")return!1;if(y.lineIndex===0)return!0;const _=b.chunks[y.chunkIndex]?.lines[y.lineIndex-1];return!_||_.type==="normal"},comment:y=>{const b=r[y.fileIndex];if(!b||c?.has(b.path))return!1;const T=b.chunks[y.chunkIndex]?.lines[y.lineIndex];if(!T||T.type==="delete")return!1;const _=T.newLineNumber;if(!_)return!1;const S=pg(b.path,_);return f.has(S)},file:y=>y.chunkIndex===0&&y.lineIndex===0}}function cm(){return r=>{const f=document.getElementById(r);if(!f)return;const d=document.querySelector(Es.SCROLL_CONTAINER);if(!d)throw new Error(`Scrollable container (${Es.SCROLL_CONTAINER}) not found`);const c=f.getBoundingClientRect(),y=d.getBoundingClientRect(),b=d.clientHeight,T=d.scrollTop,_=Math.max(y.top,0),S=Math.min(y.bottom,window.innerHeight);if(!(c.top>=_&&c.bottom<=S)){const N=om(f,d)-b*Zd.VIEWPORT_OFFSET_RATIO;d.scrollTop=Math.max(0,N);return}const m=c.bottom>Math.min(y.bottom,window.innerHeight),Y=f.offsetTop-d.offsetTop-b*Zd.VIEWPORT_OFFSET_RATIO,Z=Y>T;m&&Z&&(d.scrollTop=Math.max(0,Y))}}function om(r,f){let d=r,c=0;for(;d&&d!==f&&d.offsetParent;)c+=d.offsetTop,d=d.offsetParent;return d&&d!==f&&(c+=d.offsetTop),c}function fm(r){return r||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function dm(r,f,d){return d&&r.fileIndex===f.fileIndex&&r.chunkIndex===f.chunkIndex&&r.lineIndex===f.lineIndex}function gm(r,f,d){let{fileIndex:c,chunkIndex:y,lineIndex:b}=r;if(f==="next")b++,d[c]?.chunks[y]?.lines[b]||(y++,b=0,d[c]?.chunks[y]||(c++,y=0,d[c]||(c=0)));else if(b--,b<0){if(y--,y<0){c--,c<0&&(c=d.length-1);const _=d[c];_&&(y=_.chunks.length-1)}const T=d[c]?.chunks[y];T&&(b=T.lines.length-1)}return d[c]?.chunks[y]?.lines[b]?{...r,fileIndex:c,chunkIndex:y,lineIndex:b}:null}function pm(r,f,d,c,y){let b=r,T=!1;for(;b;){const _=gm(b,f,c);if(!_||(b=_,dm(b,r,T)))break;if(T=!0,d(b,c)){const S=gg(b,c);return{position:S,scrollTarget:ka(S,y)}}}return{position:null,scrollTarget:null}}function hm({files:r,comments:f,viewMode:d="inline",reviewedFiles:c,onToggleReviewed:y,onCreateComment:b,onCopyAllComments:T}){const[_,S]=V.useState(null),[g,m]=V.useState(!1),j=V.useMemo(()=>cm(),[]),Y=V.useMemo(()=>{const W=new Map;return f.forEach(P=>{const ge=Array.isArray(P.line)?P.line[0]:P.line,be=pg(P.file,ge);W.has(be)||W.set(be,[]),W.get(be)?.push(P)}),W},[f]),Z=V.useMemo(()=>sm(r,Y,d,c),[r,Y,d,c]),x=V.useCallback((W,P)=>{if(r.length===0)return{position:null,scrollTarget:null};const ge=fm(_);return pm(ge,W,P,r,d)},[_,r,d]),N=V.useCallback(W=>P=>{const ge=x(P,W);ge.position&&(S(ge.position),ge.scrollTarget&&j(ge.scrollTarget))},[x,j]),z=V.useMemo(()=>N(Z.line),[N,Z.line]),E=V.useMemo(()=>N(Z.chunk),[N,Z.chunk]),O=V.useMemo(()=>N(Z.file),[N,Z.file]),L=V.useMemo(()=>N(Z.comment),[N,Z.comment]),J=V.useCallback(W=>{if(!_||d!=="side-by-side")return;let P={..._,side:W};const ge=r[_.fileIndex]?.chunks[_.chunkIndex]?.lines[_.lineIndex];if(ge){if(W==="left"&&ge.type==="add"&&_.lineIndex>0){if(r[_.fileIndex]?.chunks[_.chunkIndex]?.lines[_.lineIndex-1]?.type==="delete"){P={...P,lineIndex:_.lineIndex-1},S(P),j(ka(P,d));return}}else if(W==="right"&&ge.type==="delete"&&r[_.fileIndex]?.chunks[_.chunkIndex]?.lines[_.lineIndex+1]?.type==="add"){P={...P,lineIndex:_.lineIndex+1},S(P),j(ka(P,d));return}}if(!Nt(P,r)){const be=r[_.fileIndex];if(!be)return;const se=be.chunks[_.chunkIndex];if(se){for(let Ee=_.lineIndex+1;Ee<se.lines.length;Ee++){const F={...P,lineIndex:Ee};if(Nt(F,r)){P=F;break}}if(!Nt(P,r))for(let Ee=_.lineIndex-1;Ee>=0;Ee--){const F={...P,lineIndex:Ee};if(Nt(F,r)){P=F;break}}}if(!Nt(P,r)){for(let Ee=_.chunkIndex+1;Ee<be.chunks.length;Ee++){const F=be.chunks[Ee];if(F){for(let M=0;M<F.lines.length;M++){const w={...P,chunkIndex:Ee,lineIndex:M};if(Nt(w,r)){P=w;break}}if(Nt(P,r))break}}if(!Nt(P,r))for(let Ee=_.chunkIndex-1;Ee>=0;Ee--){const F=be.chunks[Ee];if(F){for(let M=F.lines.length-1;M>=0;M--){const w={...P,chunkIndex:Ee,lineIndex:M};if(Nt(w,r)){P=w;break}}if(Nt(P,r))break}}}}S(P),j(ka(P,d))},[_,d,j,r]),Q=V.useCallback(()=>{const W=document.querySelector(Es.SCROLL_CONTAINER);if(!W)return;const P=W.getBoundingClientRect(),ge=P.top+P.height/2;let be=1/0,se=null;r.forEach((Ee,F)=>{Ee.chunks.forEach((M,w)=>{M.lines.forEach((X,I)=>{const ee=d==="side-by-side"?["left","right"]:["right"];for(const p of ee){const U={fileIndex:F,chunkIndex:w,lineIndex:I,side:p};if(d==="side-by-side"&&!Nt(U,r))continue;const $=ka(U,d),K=document.getElementById($);if(K){const le=K.getBoundingClientRect(),de=le.top+le.height/2,te=Math.abs(de-ge);le.top<P.bottom&&le.bottom>P.top&&te<be&&(be=te,se=U)}}})})}),se&&S(se)},[r,d,S]),ue=V.useCallback(W=>{const P=gg(W,r);S(P),j(ka(P,d))},[r,d,j]),ie=V.useCallback(W=>{const P=W.target;if(!(P.tagName==="INPUT"||P.tagName==="TEXTAREA"||P.isContentEditable)&&!(W.ctrlKey||W.metaKey||W.altKey))switch(W.key){case"j":W.preventDefault(),z("next");break;case"ArrowDown":W.preventDefault(),z("next");break;case"k":W.preventDefault(),z("prev");break;case"ArrowUp":W.preventDefault(),z("prev");break;case"n":W.preventDefault(),E("next");break;case"p":W.preventDefault(),E("prev");break;case"N":W.shiftKey&&(W.preventDefault(),L("next"));break;case"P":W.shiftKey&&(W.preventDefault(),L("prev"));break;case"]":W.preventDefault(),O("next");break;case"[":W.preventDefault(),O("prev");break;case"h":d==="side-by-side"&&(W.preventDefault(),J("left"));break;case"ArrowLeft":d==="side-by-side"&&(W.preventDefault(),J("left"));break;case"l":d==="side-by-side"&&(W.preventDefault(),J("right"));break;case"ArrowRight":d==="side-by-side"&&(W.preventDefault(),J("right"));break;case"r":if(W.preventDefault(),_){const ge=r[_.fileIndex];ge&&y(ge.path)}break;case"c":if(W.preventDefault(),_&&b){const ge=r[_.fileIndex]?.chunks[_.chunkIndex]?.lines[_.lineIndex];ge&&ge.type!=="delete"&&b()}break;case"?":W.preventDefault(),m(!g);break;case".":W.preventDefault(),Q();break;case"C":W.shiftKey&&T&&(W.preventDefault(),T());break}},[z,E,L,O,J,d,_,r,y,b,T,g,Q]);return V.useEffect(()=>(window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)),[ie]),{cursor:_,isHelpOpen:g,setIsHelpOpen:m,setCursorPosition:ue}}function bm(r){const[f,d]=V.useState([]),c=r?`difit-comments-${r}`:"difit-comments";V.useEffect(()=>{const m=localStorage.getItem(c);if(m)try{d(JSON.parse(m))}catch(j){console.error("Failed to parse saved comments:",j)}},[c]),V.useEffect(()=>{localStorage.setItem(c,JSON.stringify(f))},[f,c]);const y=(m,j,Y,Z)=>{console.log("Adding comment with codeContent:",Z);const x={id:`${m}:${Array.isArray(j)?`${j[0]}-${j[1]}`:j}:${Date.now()}`,file:m,line:j,body:Y,timestamp:new Date().toISOString(),codeContent:Z};return d(N=>[...N,x]),x},b=m=>{d(j=>j.filter(Y=>Y.id!==m))},T=(m,j)=>{d(Y=>Y.map(Z=>Z.id===m?{...Z,body:j}:Z))},_=()=>{d([]),localStorage.removeItem(c)},S=m=>Array.isArray(m.line)?`${m.file}:L${m.line[0]}-L${m.line[1]}
197
- ${m.body}`:`${m.file}:L${m.line}
198
- ${m.body}`;return{comments:f,addComment:y,removeComment:b,updateComment:T,clearAllComments:_,generatePrompt:S,generateAllCommentsPrompt:()=>f.length===0?"No comments available.":f.map(S).join(`
199
- =====
200
- `)}}const vs=new Map;let ym=0;function xs(r){return vs.has(r)||vs.set(r,`file-${++ym}`),vs.get(r)??""}function mm(){const[r,f]=V.useState(null),[d,c]=V.useState(new Set),[y,b]=V.useState("side-by-side"),[T,_]=V.useState(!0),[S,g]=V.useState(!0),[m,j]=V.useState(null),[Y,Z]=V.useState(!1),[x,N]=V.useState(320),[z,E]=V.useState(!1),[O,L]=V.useState(!0),[J,Q]=V.useState(!1),[ue,ie]=V.useState(!1),[W,P]=V.useState(!1),{settings:ge,updateSettings:be}=rm(),{comments:se,addComment:Ee,removeComment:F,updateComment:M,clearAllComments:w,generatePrompt:X,generateAllCommentsPrompt:I}=bm(r?.commit),ee=he=>{c(Re=>{const qe=new Set(Re);return qe.has(he)?qe.delete(he):(qe.add(he),setTimeout(()=>{const Yt=document.getElementById(xs(he));Yt&&Yt.scrollIntoView({behavior:"instant",block:"start"})},100)),qe})},[p,U]=V.useState(null),{cursor:$,isHelpOpen:K,setIsHelpOpen:le,setCursorPosition:de}=hm({files:r?.files||[],comments:se,viewMode:y,reviewedFiles:d,onToggleReviewed:ee,onCreateComment:()=>{$&&U({fileIndex:$.fileIndex,chunkIndex:$.chunkIndex,lineIndex:$.lineIndex})},onCopyAllComments:()=>{se.length>0&&jl()}}),te=he=>{he.preventDefault(),Q(!0);const Re=he.clientX,qe=x,at=it=>{const tr=Math.max(200,Math.min(600,qe+(it.clientX-Re)));N(tr)},Yt=()=>{Q(!1),document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",Yt)};document.addEventListener("mousemove",at),document.addEventListener("mouseup",Yt)},ne=he=>{const Re=["pnpm-lock.yaml","package-lock.json","yarn.lock","Cargo.lock","Gemfile.lock","composer.lock","Pipfile.lock","poetry.lock","go.sum","mix.lock"],qe=he.split("/").pop()||"";return Re.includes(qe)},pe=V.useCallback(async()=>{try{const he=await fetch(`/api/diff?ignoreWhitespace=${T}`);if(!he.ok)throw new Error("Failed to fetch diff data");const Re=await he.json();f(Re),Re.mode&&b(Re.mode);const qe=Re.files.filter(at=>ne(at.path)).map(at=>at.path);qe.length>0&&c(at=>new Set([...at,...qe]))}catch(he){j(he instanceof Error?he.message:"Unknown error")}finally{g(!1)}},[T]);V.useEffect(()=>{pe()},[pe]);const Te=V.useRef(!1);V.useEffect(()=>{r?.clearComments&&!Te.current&&(Te.current=!0,w(),console.log("✅ All existing comments cleared as requested via --clean flag"))},[r?.clearComments,w]),V.useEffect(()=>{r&&(d.size<r.files.length?P(!1):d.size===r.files.length&&!W&&(ie(!0),P(!0),setTimeout(()=>{ie(!1)},1e3)))},[d.size,r,W]),V.useEffect(()=>{const he=()=>{if(se.length>0){const Re=JSON.stringify({comments:se});navigator.sendBeacon("/api/comments",Re)}};return window.addEventListener("beforeunload",he),()=>{window.removeEventListener("beforeunload",he),he()}},[se]),V.useEffect(()=>{const he=new EventSource("/api/heartbeat");return he.onopen=()=>{console.log("Connected to server heartbeat")},he.onerror=()=>{console.log("Server connection lost"),he.close()},()=>{he.close()}},[]);const za=(he,Re,qe,at)=>(Ee(he,Re,qe,at),Promise.resolve()),jl=async()=>{try{const he=I();await navigator.clipboard.writeText(he),Z(!0),setTimeout(()=>Z(!1),2e3)}catch(he){console.error("Failed to copy all comments prompt:",he)}};return S?s.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:s.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):m?s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:m})]}):r?s.jsxs("div",{className:"h-screen flex flex-col",children:[s.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[s.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${J?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:O?`${x}px`:"auto",minWidth:O?"200px":"auto",maxWidth:O?"600px":"auto"},children:[s.jsx("h1",{children:s.jsx(tm,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>L(!O),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:O?"Collapse file tree":"Expand file tree","aria-expanded":O,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:O?s.jsx(yb,{size:18}):s.jsx(vb,{size:18})}),s.jsx("button",{onClick:()=>E(!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:s.jsx(Pd,{size:18})})]})]}),s.jsx("div",{className:`border-r border-github-border ${J?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:O?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),s.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[s.jsxs("button",{onClick:()=>b("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${y==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(ab,{size:14}),"Side by Side"]}),s.jsxs("button",{onClick:()=>b("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${y==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Wh,{size:14}),"Inline"]})]}),s.jsx(eg,{checked:T,onChange:_,label:"Ignore Whitespace",title:T?"Show whitespace changes":"Ignore whitespace changes"})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[se.length>0&&s.jsx(Ob,{commentsCount:se.length,isCopiedAll:Y,onCopyAll:jl,onDeleteAll:w}),s.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[s.jsxs("div",{className:"text-xs relative",children:[d.size===r.files.length?"All diffs difit-ed!":`${d.size} / ${r.files.length} files viewed`,s.jsx(im,{isActive:ue})]}),s.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:s.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(r.files.length-d.size)/r.files.length*100}%`,backgroundColor:(()=>{const he=(r.files.length-d.size)/r.files.length*100;return he>50?"var(--color-github-accent)":he>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),s.jsxs("span",{children:["Reviewing:"," ",s.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:r.commit.includes("...")?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-github-text-secondary font-medium",children:[r.commit.split("...")[0],"..."]}),s.jsx("span",{className:"font-medium",children:r.commit.split("...")[1]})]}):r.commit})]}),s.jsxs("span",{children:[r.files.length," file",r.files.length!==1?"s":""," changed"]})]})]})]}),s.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[s.jsx("div",{className:`relative overflow-hidden ${J?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:O?`${x}px`:"0px"},children:s.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${x}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsx(Wy,{files:r.files,onScrollToFile:he=>{const Re=document.getElementById(xs(he));Re&&Re.scrollIntoView({behavior:"smooth",block:"start"})},comments:se,reviewedFiles:d,onToggleReviewed:ee})}),s.jsx("div",{className:"p-4 border-t border-github-border flex justify-end",children:s.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:[s.jsx("span",{className:"text-sm",children:"Star on GitHub"}),s.jsx(Py,{style:{height:"18px",width:"18px"}})]})})]})}),s.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${J?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:O?"4px":"0px"},onMouseDown:te,title:"Drag to resize file list"}),s.jsx("main",{className:"flex-1 overflow-y-auto",children:r.files.map((he,Re)=>s.jsx("div",{id:xs(he.path),className:"mb-6",children:s.jsx(Jy,{file:he,comments:se.filter(qe=>qe.file===he.path),diffMode:y,reviewedFiles:d,onToggleReviewed:ee,onAddComment:za,onGeneratePrompt:X,onRemoveComment:F,onUpdateComment:M,syntaxTheme:ge.syntaxTheme,baseCommitish:r.baseCommitish,targetCommitish:r.targetCommitish,cursor:$?.fileIndex===Re?$:null,fileIndex:Re,onLineClick:(qe,at,Yt,it)=>{de({fileIndex:qe,chunkIndex:at,lineIndex:Yt,side:it})},commentTrigger:p?.fileIndex===Re?p:null,onCommentTriggerHandled:()=>U(null)})},he.path))})]}),s.jsx(nm,{isOpen:z,onClose:()=>E(!1),settings:ge,onSettingsChange:be}),s.jsx(em,{isOpen:K,onClose:()=>le(!1)})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const hg=document.getElementById("root");if(!hg)throw new Error("Root element not found");Vh.createRoot(hg).render(s.jsx(Mn.StrictMode,{children:s.jsx(mm,{})}));export{Xd as g};