diffprism 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +3 -3
- package/dist/{chunk-ZFVQBTBB.js → chunk-SPTIVYIP.js} +1 -1
- package/dist/{chunk-3BB3NNRU.js → chunk-U4OOQHMM.js} +2 -2
- package/dist/{demo-D6NYAZWR.js → demo-JKK62LFL.js} +2 -2
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/ui-dist/assets/index-BqlfEhqR.css +1 -0
- package/ui-dist/assets/index-jnLCdF9a.js +374 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-Cz4yBwvD.js +0 -350
- package/ui-dist/assets/index-DrWM7I5e.css +0 -1
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=r(o);fetch(o.href,f)}})();function C1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ec={exports:{}},Xr={};/**
|
|
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 vg;function k1(){if(vg)return Xr;vg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(s,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var p in o)p!=="key"&&(f[p]=o[p])}else f=o;return o=f.ref,{$$typeof:n,type:s,key:h,ref:o!==void 0?o:null,props:f}}return Xr.Fragment=l,Xr.jsx=r,Xr.jsxs=r,Xr}var xg;function _1(){return xg||(xg=1,Ec.exports=k1()),Ec.exports}var d=_1(),wc={exports:{}},Zr={},Nc={exports:{}},Ac={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.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 Sg;function j1(){return Sg||(Sg=1,(function(n){function l(D,U){var re=D.length;D.push(U);e:for(;0<re;){var ce=re-1>>>1,fe=D[ce];if(0<o(fe,U))D[ce]=U,D[re]=fe,re=ce;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var U=D[0],re=D.pop();if(re!==U){D[0]=re;e:for(var ce=0,fe=D.length,N=fe>>>1;ce<N;){var G=2*(ce+1)-1,te=D[G],ae=G+1,ne=D[ae];if(0>o(te,re))ae<fe&&0>o(ne,te)?(D[ce]=ne,D[ae]=re,ce=ae):(D[ce]=te,D[G]=re,ce=G);else if(ae<fe&&0>o(ne,re))D[ce]=ne,D[ae]=re,ce=ae;else break e}}return U}function o(D,U){var re=D.sortIndex-U.sortIndex;return re!==0?re:D.id-U.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();n.unstable_now=function(){return h.now()-p}}var m=[],g=[],b=1,v=null,S=3,E=!1,w=!1,A=!1,k=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function q(D){for(var U=r(g);U!==null;){if(U.callback===null)s(g);else if(U.startTime<=D)s(g),U.sortIndex=U.expirationTime,l(m,U);else break;U=r(g)}}function I(D){if(A=!1,q(D),!w)if(r(m)!==null)w=!0,V||(V=!0,ue());else{var U=r(g);U!==null&&K(I,U.startTime-D)}}var V=!1,O=-1,R=5,Z=-1;function se(){return k?!0:!(n.unstable_now()-Z<R)}function P(){if(k=!1,V){var D=n.unstable_now();Z=D;var U=!0;try{e:{w=!1,A&&(A=!1,L(O),O=-1),E=!0;var re=S;try{t:{for(q(D),v=r(m);v!==null&&!(v.expirationTime>D&&se());){var ce=v.callback;if(typeof ce=="function"){v.callback=null,S=v.priorityLevel;var fe=ce(v.expirationTime<=D);if(D=n.unstable_now(),typeof fe=="function"){v.callback=fe,q(D),U=!0;break t}v===r(m)&&s(m),q(D)}else s(m);v=r(m)}if(v!==null)U=!0;else{var N=r(g);N!==null&&K(I,N.startTime-D),U=!1}}break e}finally{v=null,S=re,E=!1}U=void 0}}finally{U?ue():V=!1}}}var ue;if(typeof j=="function")ue=function(){j(P)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,W=le.port2;le.port1.onmessage=P,ue=function(){W.postMessage(null)}}else ue=function(){z(P,0)};function K(D,U){O=z(function(){D(n.unstable_now())},U)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var U=3;break;default:U=S}var re=S;S=U;try{return D()}finally{S=re}},n.unstable_requestPaint=function(){k=!0},n.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=S;S=D;try{return U()}finally{S=re}},n.unstable_scheduleCallback=function(D,U,re){var ce=n.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ce+re:ce):re=ce,D){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=re+fe,D={id:b++,callback:U,priorityLevel:D,startTime:re,expirationTime:fe,sortIndex:-1},re>ce?(D.sortIndex=re,l(g,D),r(m)===null&&D===r(g)&&(A?(L(O),O=-1):A=!0,K(I,re-ce))):(D.sortIndex=fe,l(m,D),w||E||(w=!0,V||(V=!0,ue()))),D},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(D){var U=S;return function(){var re=S;S=U;try{return D.apply(this,arguments)}finally{S=re}}}})(Ac)),Ac}var Eg;function O1(){return Eg||(Eg=1,Nc.exports=j1()),Nc.exports}var Tc={exports:{}},we={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.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 wg;function R1(){if(wg)return we;wg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,k={};function z(N,G,te){this.props=N,this.context=G,this.refs=k,this.updater=te||w}z.prototype.isReactComponent={},z.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function L(){}L.prototype=z.prototype;function j(N,G,te){this.props=N,this.context=G,this.refs=k,this.updater=te||w}var q=j.prototype=new L;q.constructor=j,A(q,z.prototype),q.isPureReactComponent=!0;var I=Array.isArray;function V(){}var O={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function Z(N,G,te){var ae=te.ref;return{$$typeof:n,type:N,key:G,ref:ae!==void 0?ae:null,props:te}}function se(N,G){return Z(N.type,G,N.props)}function P(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ue(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return G[te]})}var le=/\/+/g;function W(N,G){return typeof N=="object"&&N!==null&&N.key!=null?ue(""+N.key):G.toString(36)}function K(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(V,V):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,G,te,ae,ne){var Y=typeof N;(Y==="undefined"||Y==="boolean")&&(N=null);var ee=!1;if(N===null)ee=!0;else switch(Y){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(N.$$typeof){case n:case l:ee=!0;break;case b:return ee=N._init,D(ee(N._payload),G,te,ae,ne)}}if(ee)return ne=ne(N),ee=ae===""?"."+W(N,0):ae,I(ne)?(te="",ee!=null&&(te=ee.replace(le,"$&/")+"/"),D(ne,G,te,"",function(he){return he})):ne!=null&&(P(ne)&&(ne=se(ne,te+(ne.key==null||N&&N.key===ne.key?"":(""+ne.key).replace(le,"$&/")+"/")+ee)),G.push(ne)),1;ee=0;var ye=ae===""?".":ae+":";if(I(N))for(var de=0;de<N.length;de++)ae=N[de],Y=ye+W(ae,de),ee+=D(ae,G,te,Y,ne);else if(de=E(N),typeof de=="function")for(N=de.call(N),de=0;!(ae=N.next()).done;)ae=ae.value,Y=ye+W(ae,de++),ee+=D(ae,G,te,Y,ne);else if(Y==="object"){if(typeof N.then=="function")return D(K(N),G,te,ae,ne);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ee}function U(N,G,te){if(N==null)return N;var ae=[],ne=0;return D(N,ae,"","",function(Y){return G.call(te,Y,ne++)}),ae}function re(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(te){(N._status===0||N._status===-1)&&(N._status=1,N._result=te)},function(te){(N._status===0||N._status===-1)&&(N._status=2,N._result=te)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var ce=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},fe={map:U,forEach:function(N,G,te){U(N,function(){G.apply(this,arguments)},te)},count:function(N){var G=0;return U(N,function(){G++}),G},toArray:function(N){return U(N,function(G){return G})||[]},only:function(N){if(!P(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return we.Activity=v,we.Children=fe,we.Component=z,we.Fragment=r,we.Profiler=o,we.PureComponent=j,we.StrictMode=s,we.Suspense=m,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,we.__COMPILER_RUNTIME={__proto__:null,c:function(N){return O.H.useMemoCache(N)}},we.cache=function(N){return function(){return N.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(N,G,te){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ae=A({},N.props),ne=N.key;if(G!=null)for(Y in G.key!==void 0&&(ne=""+G.key),G)!R.call(G,Y)||Y==="key"||Y==="__self"||Y==="__source"||Y==="ref"&&G.ref===void 0||(ae[Y]=G[Y]);var Y=arguments.length-2;if(Y===1)ae.children=te;else if(1<Y){for(var ee=Array(Y),ye=0;ye<Y;ye++)ee[ye]=arguments[ye+2];ae.children=ee}return Z(N.type,ne,ae)},we.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},we.createElement=function(N,G,te){var ae,ne={},Y=null;if(G!=null)for(ae in G.key!==void 0&&(Y=""+G.key),G)R.call(G,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ne[ae]=G[ae]);var ee=arguments.length-2;if(ee===1)ne.children=te;else if(1<ee){for(var ye=Array(ee),de=0;de<ee;de++)ye[de]=arguments[de+2];ne.children=ye}if(N&&N.defaultProps)for(ae in ee=N.defaultProps,ee)ne[ae]===void 0&&(ne[ae]=ee[ae]);return Z(N,Y,ne)},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:p,render:N}},we.isValidElement=P,we.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:re}},we.memo=function(N,G){return{$$typeof:g,type:N,compare:G===void 0?null:G}},we.startTransition=function(N){var G=O.T,te={};O.T=te;try{var ae=N(),ne=O.S;ne!==null&&ne(te,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(V,ce)}catch(Y){ce(Y)}finally{G!==null&&te.types!==null&&(G.types=te.types),O.T=G}},we.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},we.use=function(N){return O.H.use(N)},we.useActionState=function(N,G,te){return O.H.useActionState(N,G,te)},we.useCallback=function(N,G){return O.H.useCallback(N,G)},we.useContext=function(N){return O.H.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N,G){return O.H.useDeferredValue(N,G)},we.useEffect=function(N,G){return O.H.useEffect(N,G)},we.useEffectEvent=function(N){return O.H.useEffectEvent(N)},we.useId=function(){return O.H.useId()},we.useImperativeHandle=function(N,G,te){return O.H.useImperativeHandle(N,G,te)},we.useInsertionEffect=function(N,G){return O.H.useInsertionEffect(N,G)},we.useLayoutEffect=function(N,G){return O.H.useLayoutEffect(N,G)},we.useMemo=function(N,G){return O.H.useMemo(N,G)},we.useOptimistic=function(N,G){return O.H.useOptimistic(N,G)},we.useReducer=function(N,G,te){return O.H.useReducer(N,G,te)},we.useRef=function(N){return O.H.useRef(N)},we.useState=function(N){return O.H.useState(N)},we.useSyncExternalStore=function(N,G,te){return O.H.useSyncExternalStore(N,G,te)},we.useTransition=function(){return O.H.useTransition()},we.version="19.2.4",we}var Ng;function hf(){return Ng||(Ng=1,Tc.exports=R1()),Tc.exports}var Cc={exports:{}},Nt={};/**
|
|
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 Ag;function M1(){if(Ag)return Nt;Ag=1;var n=hf();function l(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,g,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:m,containerInfo:g,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Nt.createPortal=function(m,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return f(m,g,null,b)},Nt.flushSync=function(m){var g=h.T,b=s.p;try{if(h.T=null,s.p=2,m)return m()}finally{h.T=g,s.p=b,s.d.f()}},Nt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Nt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Nt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var b=g.as,v=p(b,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:E}):b==="script"&&s.d.X(m,{crossOrigin:v,integrity:S,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Nt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=p(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Nt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,v=p(b,g.crossOrigin);s.d.L(m,b,{crossOrigin:v,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})}},Nt.preloadModule=function(m,g){if(typeof m=="string")if(g){var b=p(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Nt.requestFormReset=function(m){s.d.r(m)},Nt.unstable_batchedUpdates=function(m,g){return m(g)},Nt.useFormState=function(m,g,b){return h.H.useFormState(m,g,b)},Nt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var Tg;function D1(){if(Tg)return Cc.exports;Tg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Cc.exports=M1(),Cc.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 Cg;function z1(){if(Cg)return Zr;Cg=1;var n=O1(),l=hf(),r=D1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){a=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return m(u),e;if(c===i)return m(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=u,i=c;else{for(var y=!1,x=u.child;x;){if(x===a){y=!0,a=u,i=c;break}if(x===i){y=!0,i=u,a=c;break}x=x.sibling}if(!y){for(x=c.child;x;){if(x===a){y=!0,a=c,i=u;break}if(x===i){y=!0,i=c,a=u;break}x=x.sibling}if(!y)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),j=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case z:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case V:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case j:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case O:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var K=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ce=[],fe=-1;function N(e){return{current:e}}function G(e){0>fe||(e.current=ce[fe],ce[fe]=null,fe--)}function te(e,t){fe++,ce[fe]=e.current,e.current=t}var ae=N(null),ne=N(null),Y=N(null),ee=N(null);function ye(e,t){switch(te(Y,t),te(ne,e),te(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yp(t),e=qp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ae),te(ae,e)}function de(){G(ae),G(ne),G(Y)}function he(e){e.memoizedState!==null&&te(ee,e);var t=ae.current,a=qp(t,e.type);t!==a&&(te(ne,e),te(ae,a))}function Ee(e){ne.current===e&&(G(ae),G(ne)),ee.current===e&&(G(ee),qr._currentValue=re)}var ke,Le;function Oe(e){if(ke===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",Le=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ke+e+Le}var Ce=!1;function ge(e,t){if(!e||Ce)return"";Ce=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(F){var $=F}Reflect.construct(e,[],J)}else{try{J.call()}catch(F){$=F}e.call(J.prototype)}}else{try{throw Error()}catch(F){$=F}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(F){if(F&&$&&typeof F.stack=="string")return[F.stack,$.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),y=c[0],x=c[1];if(y&&x){var T=y.split(`
|
|
44
|
+
`),H=x.split(`
|
|
45
|
+
`);for(u=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;if(i===T.length||u===H.length)for(i=T.length-1,u=H.length-1;1<=i&&0<=u&&T[i]!==H[u];)u--;for(;1<=i&&0<=u;i--,u--)if(T[i]!==H[u]){if(i!==1||u!==1)do if(i--,u--,0>u||T[i]!==H[u]){var X=`
|
|
46
|
+
`+T[i].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=i&&0<=u);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Oe(a):""}function $e(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return Oe("Activity");default:return""}}function et(e){try{var t="",a=null;do t+=$e(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var tt=Object.prototype.hasOwnProperty,gt=n.unstable_scheduleCallback,wt=n.unstable_cancelCallback,Kt=n.unstable_shouldYield,yt=n.unstable_requestPaint,Re=n.unstable_now,At=n.unstable_getCurrentPriorityLevel,pn=n.unstable_ImmediatePriority,Ea=n.unstable_UserBlockingPriority,di=n.unstable_NormalPriority,o0=n.unstable_LowPriority,Ed=n.unstable_IdlePriority,u0=n.log,c0=n.unstable_setDisableYieldValue,tr=null,zt=null;function Fn(e){if(typeof u0=="function"&&c0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(tr,e)}catch{}}var Lt=Math.clz32?Math.clz32:h0,f0=Math.log,d0=Math.LN2;function h0(e){return e>>>=0,e===0?32:31-(f0(e)/d0|0)|0}var hi=256,mi=262144,pi=4194304;function wa(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 gi(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var x=i&134217727;return x!==0?(i=x&~c,i!==0?u=wa(i):(y&=x,y!==0?u=wa(y):a||(a=x&~e,a!==0&&(u=wa(a))))):(x=i&~c,x!==0?u=wa(x):y!==0?u=wa(y):a||(a=i&~e,a!==0&&(u=wa(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function nr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function m0(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 wd(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function uo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ar(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function p0(e,t,a,i,u,c){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,T=e.expirationTimes,H=e.hiddenUpdates;for(a=y&~a;0<a;){var X=31-Lt(a),J=1<<X;x[X]=0,T[X]=-1;var $=H[X];if($!==null)for(H[X]=null,X=0;X<$.length;X++){var F=$[X];F!==null&&(F.lane&=-536870913)}a&=~J}i!==0&&Nd(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(y&~t))}function Nd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Ad(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Lt(a),u=1<<i;u&t|e[i]&t&&(e[i]|=t),a&=~u}}function Td(e,t){var a=t&-t;return a=(a&42)!==0?1:co(a),(a&(e.suspendedLanes|t))!==0?0:a}function co(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 fo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Cd(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:dg(e.type))}function kd(e,t){var a=U.p;try{return U.p=e,t()}finally{U.p=a}}var Vn=Math.random().toString(36).slice(2),bt="__reactFiber$"+Vn,Ct="__reactProps$"+Vn,Wa="__reactContainer$"+Vn,ho="__reactEvents$"+Vn,g0="__reactListeners$"+Vn,y0="__reactHandles$"+Vn,_d="__reactResources$"+Vn,lr="__reactMarker$"+Vn;function mo(e){delete e[bt],delete e[Ct],delete e[ho],delete e[g0],delete e[y0]}function Pa(e){var t=e[bt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wa]||a[bt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Qp(e);e!==null;){if(a=e[bt])return a;e=Qp(e)}return t}e=a,a=e.parentNode}return null}function el(e){if(e=e[bt]||e[Wa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function rr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function tl(e){var t=e[_d];return t||(t=e[_d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[lr]=!0}var jd=new Set,Od={};function Na(e,t){nl(e,t),nl(e+"Capture",t)}function nl(e,t){for(Od[e]=t,e=0;e<t.length;e++)jd.add(t[e])}var b0=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]*$"),Rd={},Md={};function v0(e){return tt.call(Md,e)?!0:tt.call(Rd,e)?!1:b0.test(e)?Md[e]=!0:(Rd[e]=!0,!1)}function yi(e,t,a){if(v0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function bi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function An(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){a=""+y,c.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function po(e){if(!e._valueTracker){var t=Dd(e)?"checked":"value";e._valueTracker=x0(e,t,""+e[t])}}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Dd(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function vi(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 S0=/[\n"\\]/g;function Jt(e){return e.replace(S0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function go(e,t,a,i,u,c,y,x){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?yo(e,y,Qt(t)):a!=null?yo(e,y,Qt(a)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Qt(x):e.removeAttribute("name")}function Ld(e,t,a,i,u,c,y,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){po(e);return}a=a!=null?""+Qt(a):"",t=t!=null?""+Qt(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=x?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),po(e)}function yo(e,t,a){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function al(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Qt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Ud(e,t,a){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Qt(a):""}function Bd(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(K(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Qt(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),po(e)}function ll(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var E0=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 Hd(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||E0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function $d(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&a[u]!==i&&Hd(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&Hd(e,c,t[c])}function bo(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 w0=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"]]),N0=/^[\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 xi(e){return N0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tn(){}var vo=null;function xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,il=null;function Gd(e){var t=el(e);if(t&&(e=t.stateNode)){var a=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(go(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var u=i[Ct]||null;if(!u)throw Error(s(90));go(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&zd(i)}break e;case"textarea":Ud(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&al(e,!!a.multiple,t,!1)}}}var So=!1;function Yd(e,t,a){if(So)return e(t,a);So=!0;try{var i=e(t);return i}finally{if(So=!1,(rl!==null||il!==null)&&(ss(),rl&&(t=rl,e=il,il=rl=null,Gd(t),e)))for(t=0;t<e.length;t++)Gd(e[t])}}function ir(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Ct]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=!1;if(Cn)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Eo=!1}var Xn=null,wo=null,Si=null;function qd(){if(Si)return Si;var e,t=wo,a=t.length,i,u="value"in Xn?Xn.value:Xn.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var y=a-e;for(i=1;i<=y&&t[a-i]===u[c-i];i++);return Si=u.slice(e,1<i?1-i:void 0)}function Ei(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 wi(){return!0}function Id(){return!1}function kt(e){function t(a,i,u,c,y){this._reactName=a,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?wi:Id,this.isPropagationStopped=Id,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=kt(Aa),or=v({},Aa,{view:0,detail:0}),A0=kt(or),No,Ao,ur,Ai=v({},or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Co,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!==ur&&(ur&&e.type==="mousemove"?(No=e.screenX-ur.screenX,Ao=e.screenY-ur.screenY):Ao=No=0,ur=e),No)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),Fd=kt(Ai),T0=v({},Ai,{dataTransfer:0}),C0=kt(T0),k0=v({},or,{relatedTarget:0}),To=kt(k0),_0=v({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),j0=kt(_0),O0=v({},Aa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R0=kt(O0),M0=v({},Aa,{data:0}),Vd=kt(M0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L0[e])?!!t[e]:!1}function Co(){return U0}var B0=v({},or,{key:function(e){if(e.key){var t=D0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Co,charCode:function(e){return e.type==="keypress"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=kt(B0),$0=v({},Ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xd=kt($0),G0=v({},or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Co}),Y0=kt(G0),q0=v({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),I0=kt(q0),F0=v({},Ai,{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}),V0=kt(F0),X0=v({},Aa,{newState:0,oldState:0}),Z0=kt(X0),K0=[9,13,27,32],ko=Cn&&"CompositionEvent"in window,cr=null;Cn&&"documentMode"in document&&(cr=document.documentMode);var Q0=Cn&&"TextEvent"in window&&!cr,Zd=Cn&&(!ko||cr&&8<cr&&11>=cr),Kd=" ",Qd=!1;function Jd(e,t){switch(e){case"keyup":return K0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function J0(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Qd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Qd?null:e;default:return null}}function W0(e,t){if(sl)return e==="compositionend"||!ko&&Jd(e,t)?(e=qd(),Si=wo=Xn=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zd&&t.locale!=="ko"?null:t.data;default:return null}}var P0={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 Pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P0[e.type]:t==="textarea"}function eh(e,t,a,i){rl?il?il.push(i):il=[i]:rl=i,t=ms(t,"onChange"),0<t.length&&(a=new Ni("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var fr=null,dr=null;function ev(e){Lp(e,0)}function Ti(e){var t=rr(e);if(zd(t))return e}function th(e,t){if(e==="change")return t}var nh=!1;if(Cn){var _o;if(Cn){var jo="oninput"in document;if(!jo){var ah=document.createElement("div");ah.setAttribute("oninput","return;"),jo=typeof ah.oninput=="function"}_o=jo}else _o=!1;nh=_o&&(!document.documentMode||9<document.documentMode)}function lh(){fr&&(fr.detachEvent("onpropertychange",rh),dr=fr=null)}function rh(e){if(e.propertyName==="value"&&Ti(dr)){var t=[];eh(t,dr,e,xo(e)),Yd(ev,t)}}function tv(e,t,a){e==="focusin"?(lh(),fr=t,dr=a,fr.attachEvent("onpropertychange",rh)):e==="focusout"&&lh()}function nv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ti(dr)}function av(e,t){if(e==="click")return Ti(t)}function lv(e,t){if(e==="input"||e==="change")return Ti(t)}function rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:rv;function hr(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var u=a[i];if(!tt.call(t,u)||!Ut(e[u],t[u]))return!1}return!0}function ih(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sh(e,t){var a=ih(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ih(a)}}function oh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=vi(e.document)}return t}function Oo(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 iv=Cn&&"documentMode"in document&&11>=document.documentMode,ol=null,Ro=null,mr=null,Mo=!1;function ch(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mo||ol==null||ol!==vi(i)||(i=ol,"selectionStart"in i&&Oo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),mr&&hr(mr,i)||(mr=i,i=ms(Ro,"onSelect"),0<i.length&&(t=new Ni("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ol)))}function Ta(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ul={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Do={},fh={};Cn&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete ul.animationend.animation,delete ul.animationiteration.animation,delete ul.animationstart.animation),"TransitionEvent"in window||delete ul.transitionend.transition);function Ca(e){if(Do[e])return Do[e];if(!ul[e])return e;var t=ul[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in fh)return Do[e]=t[a];return e}var dh=Ca("animationend"),hh=Ca("animationiteration"),mh=Ca("animationstart"),sv=Ca("transitionrun"),ov=Ca("transitionstart"),uv=Ca("transitioncancel"),ph=Ca("transitionend"),gh=new Map,zo="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(" ");zo.push("scrollEnd");function cn(e,t){gh.set(e,t),Na(t,[e])}var Ci=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)},Wt=[],cl=0,Lo=0;function ki(){for(var e=cl,t=Lo=cl=0;t<e;){var a=Wt[t];Wt[t++]=null;var i=Wt[t];Wt[t++]=null;var u=Wt[t];Wt[t++]=null;var c=Wt[t];if(Wt[t++]=null,i!==null&&u!==null){var y=i.pending;y===null?u.next=u:(u.next=y.next,y.next=u),i.pending=u}c!==0&&yh(a,u,c)}}function _i(e,t,a,i){Wt[cl++]=e,Wt[cl++]=t,Wt[cl++]=a,Wt[cl++]=i,Lo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Uo(e,t,a,i){return _i(e,t,a,i),ji(e)}function ka(e,t){return _i(e,null,null,t),ji(e)}function yh(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Lt(a),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=a|536870912),c):null}function ji(e){if(50<Lr)throw Lr=0,Vu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fl={};function cv(e,t,a,i){this.tag=e,this.key=a,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,a,i){return new cv(e,t,a,i)}function Bo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(e,t){var a=e.alternate;return a===null?(a=Bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function bh(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,a,i,u,c){var y=0;if(i=e,typeof e=="function")Bo(e)&&(y=1);else if(typeof e=="string")y=p1(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=Bt(31,a,t,u),e.elementType=Z,e.lanes=c,e;case A:return _a(a.children,u,c,t);case k:y=8,u|=24;break;case z:return e=Bt(12,a,t,u|2),e.elementType=z,e.lanes=c,e;case I:return e=Bt(13,a,t,u),e.elementType=I,e.lanes=c,e;case V:return e=Bt(19,a,t,u),e.elementType=V,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:y=10;break e;case L:y=9;break e;case q:y=11;break e;case O:y=14;break e;case R:y=16,i=null;break e}y=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=Bt(y,a,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function _a(e,t,a,i){return e=Bt(7,e,i,t),e.lanes=a,e}function Ho(e,t,a){return e=Bt(6,e,null,t),e.lanes=a,e}function vh(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function $o(e,t,a){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xh=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=xh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:et(t)},xh.set(e,t),t)}return{value:e,source:t,stack:et(t)}}var dl=[],hl=0,Ri=null,pr=0,en=[],tn=0,Zn=null,gn=1,yn="";function _n(e,t){dl[hl++]=pr,dl[hl++]=Ri,Ri=e,pr=t}function Sh(e,t,a){en[tn++]=gn,en[tn++]=yn,en[tn++]=Zn,Zn=e;var i=gn;e=yn;var u=32-Lt(i)-1;i&=~(1<<u),a+=1;var c=32-Lt(t)+u;if(30<c){var y=u-u%5;c=(i&(1<<y)-1).toString(32),i>>=y,u-=y,gn=1<<32-Lt(t)+u|a<<u|i,yn=c+e}else gn=1<<c|a<<u|i,yn=e}function Go(e){e.return!==null&&(_n(e,1),Sh(e,1,0))}function Yo(e){for(;e===Ri;)Ri=dl[--hl],dl[hl]=null,pr=dl[--hl],dl[hl]=null;for(;e===Zn;)Zn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Eh(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Zn,gn=t.id,yn=t.overflow,Zn=e}var vt=null,Qe=null,ze=!1,Kn=null,nn=!1,qo=Error(s(519));function Qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gr(Pt(t,e)),qo}function wh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[bt]=e,t[Ct]=i,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<Br.length;a++)je(Br[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Ld(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Bd(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||$p(t.textContent,a)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||Qn(e,!0)}function Nh(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:vt=vt.return}}function ml(e){if(e!==vt)return!1;if(!ze)return Nh(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||sc(e.type,e.memoizedProps)),a=!a),a&&Qe&&Qn(e),Nh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Kp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=Kp(e)}else t===27?(t=Qe,ca(e.type)?(e=dc,dc=null,Qe=e):Qe=t):Qe=vt?ln(e.stateNode.nextSibling):null;return!0}function ja(){Qe=vt=null,ze=!1}function Io(){var e=Kn;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),Kn=null),e}function gr(e){Kn===null?Kn=[e]:Kn.push(e)}var Fo=N(null),Oa=null,jn=null;function Jn(e,t,a){te(Fo,t._currentValue),t._currentValue=a}function On(e){e._currentValue=Fo.current,G(Fo)}function Vo(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Xo(e,t,a,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var y=u.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=u;for(var T=0;T<t.length;T++)if(x.context===t[T]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),Vo(c.return,a,e),i||(y=null);break e}c=x.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(s(341));y.lanes|=a,c=y.alternate,c!==null&&(c.lanes|=a),Vo(y,a,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function pl(e,t,a,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var x=u.type;Ut(u.pendingProps.value,y.value)||(e!==null?e.push(x):e=[x])}}else if(u===ee.current){if(y=u.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}u=u.return}e!==null&&Xo(t,e,a,i),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ra(e){Oa=e,jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Ah(Oa,e)}function Di(e,t){return Oa===null&&Ra(e),Ah(e,t)}function Ah(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},jn===null){if(e===null)throw Error(s(308));jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jn=jn.next=t;return a}var fv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},dv=n.unstable_scheduleCallback,hv=n.unstable_NormalPriority,it={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zo(){return{controller:new fv,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&dv(hv,function(){e.controller.abort()})}var br=null,Ko=0,gl=0,yl=null;function mv(e,t){if(br===null){var a=br=[];Ko=0,gl=Wu(),yl={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Ko++,t.then(Th,Th),t}function Th(){if(--Ko===0&&br!==null){yl!==null&&(yl.status="fulfilled");var e=br;br=null,gl=0,yl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function pv(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),i}var Ch=D.S;D.S=function(e,t){cp=Re(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&mv(e,t),Ch!==null&&Ch(e,t)};var Ma=N(null);function Qo(){var e=Ma.current;return e!==null?e:Ze.pooledCache}function zi(e,t){t===null?te(Ma,Ma.current):te(Ma,t.pool)}function kh(){var e=Qo();return e===null?null:{parent:it._currentValue,pool:e}}var bl=Error(s(460)),Jo=Error(s(474)),Li=Error(s(542)),Ui={then:function(){}};function _h(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Tn,Tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e;default:if(typeof t.status=="string")t.then(Tn,Tn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e}throw za=t,bl}}function Da(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(za=a,bl):a}}var za=null;function Oh(){if(za===null)throw Error(s(459));var e=za;return za=null,e}function Rh(e){if(e===bl||e===Li)throw Error(s(483))}var vl=null,vr=0;function Bi(e){var t=vr;return vr+=1,vl===null&&(vl=[]),jh(vl,e,t)}function xr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mh(e){function t(M,_){if(e){var B=M.deletions;B===null?(M.deletions=[_],M.flags|=16):B.push(_)}}function a(M,_){if(!e)return null;for(;_!==null;)t(M,_),_=_.sibling;return null}function i(M){for(var _=new Map;M!==null;)M.key!==null?_.set(M.key,M):_.set(M.index,M),M=M.sibling;return _}function u(M,_){return M=kn(M,_),M.index=0,M.sibling=null,M}function c(M,_,B){return M.index=B,e?(B=M.alternate,B!==null?(B=B.index,B<_?(M.flags|=67108866,_):B):(M.flags|=67108866,_)):(M.flags|=1048576,_)}function y(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,_,B,Q){return _===null||_.tag!==6?(_=Ho(B,M.mode,Q),_.return=M,_):(_=u(_,B),_.return=M,_)}function T(M,_,B,Q){var be=B.type;return be===A?X(M,_,B.props.children,Q,B.key):_!==null&&(_.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&Da(be)===_.type)?(_=u(_,B.props),xr(_,B),_.return=M,_):(_=Oi(B.type,B.key,B.props,null,M.mode,Q),xr(_,B),_.return=M,_)}function H(M,_,B,Q){return _===null||_.tag!==4||_.stateNode.containerInfo!==B.containerInfo||_.stateNode.implementation!==B.implementation?(_=$o(B,M.mode,Q),_.return=M,_):(_=u(_,B.children||[]),_.return=M,_)}function X(M,_,B,Q,be){return _===null||_.tag!==7?(_=_a(B,M.mode,Q,be),_.return=M,_):(_=u(_,B),_.return=M,_)}function J(M,_,B){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Ho(""+_,M.mode,B),_.return=M,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case E:return B=Oi(_.type,_.key,_.props,null,M.mode,B),xr(B,_),B.return=M,B;case w:return _=$o(_,M.mode,B),_.return=M,_;case R:return _=Da(_),J(M,_,B)}if(K(_)||ue(_))return _=_a(_,M.mode,B,null),_.return=M,_;if(typeof _.then=="function")return J(M,Bi(_),B);if(_.$$typeof===j)return J(M,Di(M,_),B);Hi(M,_)}return null}function $(M,_,B,Q){var be=_!==null?_.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:x(M,_,""+B,Q);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case E:return B.key===be?T(M,_,B,Q):null;case w:return B.key===be?H(M,_,B,Q):null;case R:return B=Da(B),$(M,_,B,Q)}if(K(B)||ue(B))return be!==null?null:X(M,_,B,Q,null);if(typeof B.then=="function")return $(M,_,Bi(B),Q);if(B.$$typeof===j)return $(M,_,Di(M,B),Q);Hi(M,B)}return null}function F(M,_,B,Q,be){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return M=M.get(B)||null,x(_,M,""+Q,be);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case E:return M=M.get(Q.key===null?B:Q.key)||null,T(_,M,Q,be);case w:return M=M.get(Q.key===null?B:Q.key)||null,H(_,M,Q,be);case R:return Q=Da(Q),F(M,_,B,Q,be)}if(K(Q)||ue(Q))return M=M.get(B)||null,X(_,M,Q,be,null);if(typeof Q.then=="function")return F(M,_,B,Bi(Q),be);if(Q.$$typeof===j)return F(M,_,B,Di(_,Q),be);Hi(_,Q)}return null}function me(M,_,B,Q){for(var be=null,Ue=null,pe=_,Te=_=0,De=null;pe!==null&&Te<B.length;Te++){pe.index>Te?(De=pe,pe=null):De=pe.sibling;var Be=$(M,pe,B[Te],Q);if(Be===null){pe===null&&(pe=De);break}e&&pe&&Be.alternate===null&&t(M,pe),_=c(Be,_,Te),Ue===null?be=Be:Ue.sibling=Be,Ue=Be,pe=De}if(Te===B.length)return a(M,pe),ze&&_n(M,Te),be;if(pe===null){for(;Te<B.length;Te++)pe=J(M,B[Te],Q),pe!==null&&(_=c(pe,_,Te),Ue===null?be=pe:Ue.sibling=pe,Ue=pe);return ze&&_n(M,Te),be}for(pe=i(pe);Te<B.length;Te++)De=F(pe,M,Te,B[Te],Q),De!==null&&(e&&De.alternate!==null&&pe.delete(De.key===null?Te:De.key),_=c(De,_,Te),Ue===null?be=De:Ue.sibling=De,Ue=De);return e&&pe.forEach(function(pa){return t(M,pa)}),ze&&_n(M,Te),be}function Se(M,_,B,Q){if(B==null)throw Error(s(151));for(var be=null,Ue=null,pe=_,Te=_=0,De=null,Be=B.next();pe!==null&&!Be.done;Te++,Be=B.next()){pe.index>Te?(De=pe,pe=null):De=pe.sibling;var pa=$(M,pe,Be.value,Q);if(pa===null){pe===null&&(pe=De);break}e&&pe&&pa.alternate===null&&t(M,pe),_=c(pa,_,Te),Ue===null?be=pa:Ue.sibling=pa,Ue=pa,pe=De}if(Be.done)return a(M,pe),ze&&_n(M,Te),be;if(pe===null){for(;!Be.done;Te++,Be=B.next())Be=J(M,Be.value,Q),Be!==null&&(_=c(Be,_,Te),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return ze&&_n(M,Te),be}for(pe=i(pe);!Be.done;Te++,Be=B.next())Be=F(pe,M,Te,Be.value,Q),Be!==null&&(e&&Be.alternate!==null&&pe.delete(Be.key===null?Te:Be.key),_=c(Be,_,Te),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return e&&pe.forEach(function(T1){return t(M,T1)}),ze&&_n(M,Te),be}function Ve(M,_,B,Q){if(typeof B=="object"&&B!==null&&B.type===A&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case E:e:{for(var be=B.key;_!==null;){if(_.key===be){if(be=B.type,be===A){if(_.tag===7){a(M,_.sibling),Q=u(_,B.props.children),Q.return=M,M=Q;break e}}else if(_.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&Da(be)===_.type){a(M,_.sibling),Q=u(_,B.props),xr(Q,B),Q.return=M,M=Q;break e}a(M,_);break}else t(M,_);_=_.sibling}B.type===A?(Q=_a(B.props.children,M.mode,Q,B.key),Q.return=M,M=Q):(Q=Oi(B.type,B.key,B.props,null,M.mode,Q),xr(Q,B),Q.return=M,M=Q)}return y(M);case w:e:{for(be=B.key;_!==null;){if(_.key===be)if(_.tag===4&&_.stateNode.containerInfo===B.containerInfo&&_.stateNode.implementation===B.implementation){a(M,_.sibling),Q=u(_,B.children||[]),Q.return=M,M=Q;break e}else{a(M,_);break}else t(M,_);_=_.sibling}Q=$o(B,M.mode,Q),Q.return=M,M=Q}return y(M);case R:return B=Da(B),Ve(M,_,B,Q)}if(K(B))return me(M,_,B,Q);if(ue(B)){if(be=ue(B),typeof be!="function")throw Error(s(150));return B=be.call(B),Se(M,_,B,Q)}if(typeof B.then=="function")return Ve(M,_,Bi(B),Q);if(B.$$typeof===j)return Ve(M,_,Di(M,B),Q);Hi(M,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,_!==null&&_.tag===6?(a(M,_.sibling),Q=u(_,B),Q.return=M,M=Q):(a(M,_),Q=Ho(B,M.mode,Q),Q.return=M,M=Q),y(M)):a(M,_)}return function(M,_,B,Q){try{vr=0;var be=Ve(M,_,B,Q);return vl=null,be}catch(pe){if(pe===bl||pe===Li)throw pe;var Ue=Bt(29,pe,null,M.mode);return Ue.lanes=Q,Ue.return=M,Ue}finally{}}}var La=Mh(!0),Dh=Mh(!1),Wn=!1;function Wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(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 Pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ea(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(He&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=ji(e),yh(e,null,a),t}return _i(e,i,t,a),ji(e)}function Sr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ad(e,a)}}function eu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=y:c=c.next=y,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var tu=!1;function Er(){if(tu){var e=yl;if(e!==null)throw e}}function wr(e,t,a,i){tu=!1;var u=e.updateQueue;Wn=!1;var c=u.firstBaseUpdate,y=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var T=x,H=T.next;T.next=null,y===null?c=H:y.next=H,y=T;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==y&&(x===null?X.firstBaseUpdate=H:x.next=H,X.lastBaseUpdate=T))}if(c!==null){var J=u.baseState;y=0,X=H=T=null,x=c;do{var $=x.lane&-536870913,F=$!==x.lane;if(F?(Me&$)===$:(i&$)===$){$!==0&&$===gl&&(tu=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var me=e,Se=x;$=t;var Ve=a;switch(Se.tag){case 1:if(me=Se.payload,typeof me=="function"){J=me.call(Ve,J,$);break e}J=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Se.payload,$=typeof me=="function"?me.call(Ve,J,$):me,$==null)break e;J=v({},J,$);break e;case 2:Wn=!0}}$=x.callback,$!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[$]:F.push($))}else F={lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},X===null?(H=X=F,T=J):X=X.next=F,y|=$;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;F=x,x=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);X===null&&(T=J),u.baseState=T,u.firstBaseUpdate=H,u.lastBaseUpdate=X,c===null&&(u.shared.lanes=0),ra|=y,e.lanes=y,e.memoizedState=J}}function zh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Lh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)zh(a[e],t)}var xl=N(null),$i=N(0);function Uh(e,t){e=$n,te($i,e),te(xl,t),$n=e|t.baseLanes}function nu(){te($i,$n),te(xl,xl.current)}function au(){$n=$i.current,G(xl),G($i)}var Ht=N(null),an=null;function ta(e){var t=e.alternate;te(lt,lt.current&1),te(Ht,e),an===null&&(t===null||xl.current!==null||t.memoizedState!==null)&&(an=e)}function lu(e){te(lt,lt.current),te(Ht,e),an===null&&(an=e)}function Bh(e){e.tag===22?(te(lt,lt.current),te(Ht,e),an===null&&(an=e)):na()}function na(){te(lt,lt.current),te(Ht,Ht.current)}function $t(e){G(Ht),an===e&&(an=null),G(lt)}var lt=N(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||cc(a)||fc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var Rn=0,Ne=null,Ie=null,st=null,Yi=!1,Sl=!1,Ua=!1,qi=0,Nr=0,El=null,gv=0;function nt(){throw Error(s(321))}function ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ut(e[a],t[a]))return!1;return!0}function iu(e,t,a,i,u,c){return Rn=c,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Sm:Su,Ua=!1,c=a(i,u),Ua=!1,Sl&&(c=$h(t,a,i,u)),Hh(e),c}function Hh(e){D.H=Cr;var t=Ie!==null&&Ie.next!==null;if(Rn=0,st=Ie=Ne=null,Yi=!1,Nr=0,El=null,t)throw Error(s(300));e===null||ot||(e=e.dependencies,e!==null&&Mi(e)&&(ot=!0))}function $h(e,t,a,i){Ne=e;var u=0;do{if(Sl&&(El=null),Nr=0,Sl=!1,25<=u)throw Error(s(301));if(u+=1,st=Ie=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Em,c=t(a,i)}while(Sl);return c}function yv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ar(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(Ne.flags|=1024),t}function su(){var e=qi!==0;return qi=0,e}function ou(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function uu(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}Rn=0,st=Ie=Ne=null,Sl=!1,Nr=qi=0,El=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ne.memoizedState=st=e:st=st.next=e,st}function rt(){if(Ie===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=st===null?Ne.memoizedState:st.next;if(t!==null)st=t,Ie=e;else{if(e===null)throw Ne.alternate===null?Error(s(467)):Error(s(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},st===null?Ne.memoizedState=st=e:st=st.next=e}return st}function Ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ar(e){var t=Nr;return Nr+=1,El===null&&(El=[]),e=jh(El,e,t),t=Ne,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Sm:Su),e}function Fi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ar(e);if(e.$$typeof===j)return xt(e)}throw Error(s(438,String(e)))}function cu(e){var t=null,a=Ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ii(),Ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=se;return t.index++,a}function Mn(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=rt();return fu(t,Ie,e)}function fu(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var y=u.next;u.next=c.next,c.next=y}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var x=y=null,T=null,H=t,X=!1;do{var J=H.lane&-536870913;if(J!==H.lane?(Me&J)===J:(Rn&J)===J){var $=H.revertLane;if($===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),J===gl&&(X=!0);else if((Rn&$)===$){H=H.next,$===gl&&(X=!0);continue}else J={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},T===null?(x=T=J,y=c):T=T.next=J,Ne.lanes|=$,ra|=$;J=H.action,Ua&&a(c,J),c=H.hasEagerState?H.eagerState:a(c,J)}else $={lane:J,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},T===null?(x=T=$,y=c):T=T.next=$,Ne.lanes|=J,ra|=J;H=H.next}while(H!==null&&H!==t);if(T===null?y=c:T.next=x,!Ut(c,e.memoizedState)&&(ot=!0,X&&(a=yl,a!==null)))throw a;e.memoizedState=c,e.baseState=y,e.baseQueue=T,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function du(e){var t=rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var y=u=u.next;do c=e(c,y.action),y=y.next;while(y!==u);Ut(c,t.memoizedState)||(ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Gh(e,t,a){var i=Ne,u=rt(),c=ze;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var y=!Ut((Ie||u).memoizedState,a);if(y&&(u.memoizedState=a,ot=!0),u=u.queue,pu(Ih.bind(null,i,u,e),[e]),u.getSnapshot!==t||y||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,wl(9,{destroy:void 0},qh.bind(null,i,u,a,t),null),Ze===null)throw Error(s(349));c||(Rn&127)!==0||Yh(i,t,a)}return a}function Yh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ne.updateQueue,t===null?(t=Ii(),Ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qh(e,t,a,i){t.value=a,t.getSnapshot=i,Fh(t)&&Vh(e)}function Ih(e,t,a){return a(function(){Fh(t)&&Vh(e)})}function Fh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ut(e,a)}catch{return!0}}function Vh(e){var t=ka(e,2);t!==null&&Mt(t,e,2)}function hu(e){var t=Tt();if(typeof e=="function"){var a=e;if(e=a(),Ua){Fn(!0);try{a()}finally{Fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function Xh(e,t,a,i){return e.baseState=a,fu(e,Ie,typeof i=="function"?i:Mn)}function bv(e,t,a,i,u){if(Ki(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};D.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Zh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Zh(e,t){var a=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=D.T,y={};D.T=y;try{var x=a(u,i),T=D.S;T!==null&&T(y,x),Kh(e,t,x)}catch(H){mu(e,t,H)}finally{c!==null&&y.types!==null&&(c.types=y.types),D.T=c}}else try{c=a(u,i),Kh(e,t,c)}catch(H){mu(e,t,H)}}function Kh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Qh(e,t,i)},function(i){return mu(e,t,i)}):Qh(e,t,a)}function Qh(e,t,a){t.status="fulfilled",t.value=a,Jh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zh(e,a)))}function mu(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Jh(t),t=t.next;while(t!==i)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wh(e,t){return t}function Ph(e,t){if(ze){var a=Ze.formState;if(a!==null){e:{var i=Ne;if(ze){if(Qe){t:{for(var u=Qe,c=nn;u.nodeType!==8;){if(!c){u=null;break t}if(u=ln(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Qe=ln(u.nextSibling),i=u.data==="F!";break e}}Qn(i)}i=!1}i&&(t=a[0])}}return a=Tt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:t},a.queue=i,a=bm.bind(null,Ne,i),i.dispatch=a,i=hu(!1),c=xu.bind(null,Ne,!1,i.queue),i=Tt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,a=bv.bind(null,Ne,u,c,a),u.dispatch=a,i.memoizedState=e,[t,a,!1]}function em(e){var t=rt();return tm(t,Ie,e)}function tm(e,t,a){if(t=fu(e,t,Wh)[0],e=Vi(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ar(t)}catch(y){throw y===bl?Li:y}else i=t;t=rt();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(Ne.flags|=2048,wl(9,{destroy:void 0},vv.bind(null,u,a),null)),[i,c,e]}function vv(e,t){e.action=t}function nm(e){var t=rt(),a=Ie;if(a!==null)return tm(t,a,e);rt(),t=t.memoizedState,a=rt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function wl(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ne.updateQueue,t===null&&(t=Ii(),Ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function am(){return rt().memoizedState}function Xi(e,t,a,i){var u=Tt();Ne.flags|=e,u.memoizedState=wl(1|t,{destroy:void 0},a,i===void 0?null:i)}function Zi(e,t,a,i){var u=rt();i=i===void 0?null:i;var c=u.memoizedState.inst;Ie!==null&&i!==null&&ru(i,Ie.memoizedState.deps)?u.memoizedState=wl(t,c,a,i):(Ne.flags|=e,u.memoizedState=wl(1|t,c,a,i))}function lm(e,t){Xi(8390656,8,e,t)}function pu(e,t){Zi(2048,8,e,t)}function xv(e){Ne.flags|=4;var t=Ne.updateQueue;if(t===null)t=Ii(),Ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function rm(e){var t=rt().memoizedState;return xv({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function im(e,t){return Zi(4,2,e,t)}function sm(e,t){return Zi(4,4,e,t)}function om(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function um(e,t,a){a=a!=null?a.concat([e]):null,Zi(4,4,om.bind(null,t,e),a)}function gu(){}function cm(e,t){var a=rt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&ru(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function fm(e,t){var a=rt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&ru(t,i[1]))return i[0];if(i=e(),Ua){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[i,t],i}function yu(e,t,a){return a===void 0||(Rn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dp(),Ne.lanes|=e,ra|=e,a)}function dm(e,t,a,i){return Ut(a,t)?a:xl.current!==null?(e=yu(e,a,i),Ut(e,t)||(ot=!0),e):(Rn&42)===0||(Rn&1073741824)!==0&&(Me&261930)===0?(ot=!0,e.memoizedState=a):(e=dp(),Ne.lanes|=e,ra|=e,t)}function hm(e,t,a,i,u){var c=U.p;U.p=c!==0&&8>c?c:8;var y=D.T,x={};D.T=x,xu(e,!1,t,a);try{var T=u(),H=D.S;if(H!==null&&H(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=pv(T,i);Tr(e,t,X,qt(e))}else Tr(e,t,i,qt(e))}catch(J){Tr(e,t,{then:function(){},status:"rejected",reason:J},qt())}finally{U.p=c,y!==null&&x.types!==null&&(y.types=x.types),D.T=y}}function Sv(){}function bu(e,t,a,i){if(e.tag!==5)throw Error(s(476));var u=mm(e).queue;hm(e,u,t,re,a===null?Sv:function(){return pm(e),a(i)})}function mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:re},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pm(e){var t=mm(e);t.next===null&&(t=e.alternate.memoizedState),Tr(e,t.next.queue,{},qt())}function vu(){return xt(qr)}function gm(){return rt().memoizedState}function ym(){return rt().memoizedState}function Ev(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=qt();e=Pn(a);var i=ea(t,e,a);i!==null&&(Mt(i,t,a),Sr(i,t,a)),t={cache:Zo()},e.payload=t;return}t=t.return}}function wv(e,t,a){var i=qt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?vm(t,a):(a=Uo(e,t,a,i),a!==null&&(Mt(a,e,i),xm(a,t,i)))}function bm(e,t,a){var i=qt();Tr(e,t,a,i)}function Tr(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))vm(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var y=t.lastRenderedState,x=c(y,a);if(u.hasEagerState=!0,u.eagerState=x,Ut(x,y))return _i(e,t,u,0),Ze===null&&ki(),!1}catch{}finally{}if(a=Uo(e,t,u,i),a!==null)return Mt(a,e,i),xm(a,t,i),!0}return!1}function xu(e,t,a,i){if(i={lane:2,revertLane:Wu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(s(479))}else t=Uo(e,a,i,2),t!==null&&Mt(t,e,2)}function Ki(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function vm(e,t){Sl=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xm(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ad(e,a)}}var Cr={readContext:xt,use:Fi,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Cr.useEffectEvent=nt;var Sm={readContext:xt,use:Fi,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:lm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Xi(4194308,4,om.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var a=Tt();t=t===void 0?null:t;var i=e();if(Ua){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Tt();if(a!==void 0){var u=a(t);if(Ua){Fn(!0);try{a(t)}finally{Fn(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=wv.bind(null,Ne,e),[i.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=hu(e);var t=e.queue,a=bm.bind(null,Ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:gu,useDeferredValue:function(e,t){var a=Tt();return yu(a,e,t)},useTransition:function(){var e=hu(!1);return e=hm.bind(null,Ne,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ne,u=Tt();if(ze){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ze===null)throw Error(s(349));(Me&127)!==0||Yh(i,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,lm(Ih.bind(null,i,c,e),[e]),i.flags|=2048,wl(9,{destroy:void 0},qh.bind(null,i,c,a,t),null),a},useId:function(){var e=Tt(),t=Ze.identifierPrefix;if(ze){var a=yn,i=gn;a=(i&~(1<<32-Lt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=gv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vu,useFormState:Ph,useActionState:Ph,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=xu.bind(null,Ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:cu,useCacheRefresh:function(){return Tt().memoizedState=Ev.bind(null,Ne)},useEffectEvent:function(e){var t=Tt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Su={readContext:xt,use:Fi,useCallback:cm,useContext:xt,useEffect:pu,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:sm,useMemo:fm,useReducer:Vi,useRef:am,useState:function(){return Vi(Mn)},useDebugValue:gu,useDeferredValue:function(e,t){var a=rt();return dm(a,Ie.memoizedState,e,t)},useTransition:function(){var e=Vi(Mn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Ar(e),t]},useSyncExternalStore:Gh,useId:gm,useHostTransitionStatus:vu,useFormState:em,useActionState:em,useOptimistic:function(e,t){var a=rt();return Xh(a,Ie,e,t)},useMemoCache:cu,useCacheRefresh:ym};Su.useEffectEvent=rm;var Em={readContext:xt,use:Fi,useCallback:cm,useContext:xt,useEffect:pu,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:sm,useMemo:fm,useReducer:du,useRef:am,useState:function(){return du(Mn)},useDebugValue:gu,useDeferredValue:function(e,t){var a=rt();return Ie===null?yu(a,e,t):dm(a,Ie.memoizedState,e,t)},useTransition:function(){var e=du(Mn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Ar(e),t]},useSyncExternalStore:Gh,useId:gm,useHostTransitionStatus:vu,useFormState:nm,useActionState:nm,useOptimistic:function(e,t){var a=rt();return Ie!==null?Xh(a,Ie,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:cu,useCacheRefresh:ym};Em.useEffectEvent=rm;function Eu(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wu={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=qt(),u=Pn(i);u.payload=t,a!=null&&(u.callback=a),t=ea(e,u,i),t!==null&&(Mt(t,e,i),Sr(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=qt(),u=Pn(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ea(e,u,i),t!==null&&(Mt(t,e,i),Sr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qt(),i=Pn(a);i.tag=2,t!=null&&(i.callback=t),t=ea(e,i,a),t!==null&&(Mt(t,e,a),Sr(t,e,a))}};function wm(e,t,a,i,u,c,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,y):t.prototype&&t.prototype.isPureReactComponent?!hr(a,i)||!hr(u,c):!0}function Nm(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&wu.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Am(e){Ci(e)}function Tm(e){console.error(e)}function Cm(e){Ci(e)}function Qi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function km(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Nu(e,t,a){return a=Pn(a),a.tag=3,a.payload={element:null},a.callback=function(){Qi(e,t)},a}function _m(e){return e=Pn(e),e.tag=3,e}function jm(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){km(t,a,i)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){km(t,a,i),typeof u!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function Nv(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&pl(t,a,u,!0),a=Ht.current,a!==null){switch(a.tag){case 31:case 13:return an===null?os():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===Ui?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ku(e,i,u)),!1;case 22:return a.flags|=65536,i===Ui?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ku(e,i,u)),!1}throw Error(s(435,a.tag))}return Ku(e,i,u),os(),!1}if(ze)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==qo&&(e=Error(s(422),{cause:i}),gr(Pt(e,a)))):(i!==qo&&(t=Error(s(423),{cause:i}),gr(Pt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=Pt(i,a),u=Nu(e.stateNode,i,u),eu(e,u),at!==4&&(at=2)),!1;var c=Error(s(520),{cause:i});if(c=Pt(c,a),zr===null?zr=[c]:zr.push(c),at!==4&&(at=2),t===null)return!0;i=Pt(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Nu(a.stateNode,i,e),eu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ia===null||!ia.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=_m(u),jm(u,e,a,i),eu(a,u),!1}a=a.return}while(a!==null);return!1}var Au=Error(s(461)),ot=!1;function St(e,t,a,i){t.child=e===null?Dh(t,null,a,i):La(t,e.child,a,i)}function Om(e,t,a,i,u){a=a.render;var c=t.ref;if("ref"in i){var y={};for(var x in i)x!=="ref"&&(y[x]=i[x])}else y=i;return Ra(t),i=iu(e,t,a,y,c,u),x=su(),e!==null&&!ot?(ou(e,t,u),Dn(e,t,u)):(ze&&x&&Go(t),t.flags|=1,St(e,t,i,u),t.child)}function Rm(e,t,a,i,u){if(e===null){var c=a.type;return typeof c=="function"&&!Bo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Mm(e,t,c,i,u)):(e=Oi(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Mu(e,u)){var y=c.memoizedProps;if(a=a.compare,a=a!==null?a:hr,a(y,i)&&e.ref===t.ref)return Dn(e,t,u)}return t.flags|=1,e=kn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Mm(e,t,a,i,u){if(e!==null){var c=e.memoizedProps;if(hr(c,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=c,Mu(e,u))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,Dn(e,t,u)}return Tu(e,t,a,i,u)}function Dm(e,t,a,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return zm(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,c!==null?c.cachePool:null),c!==null?Uh(t,c):nu(),Bh(t);else return i=t.lanes=536870912,zm(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(zi(t,c.cachePool),Uh(t,c),na(),t.memoizedState=null):(e!==null&&zi(t,null),nu(),na());return St(e,t,u,a),t.child}function kr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zm(e,t,a,i,u){var c=Qo();return c=c===null?null:{parent:it._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&zi(t,null),nu(),Bh(t),e!==null&&pl(e,t,i,!0),t.childLanes=u,null}function Ji(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lm(e,t,a){return La(t,e.child,null,a),e=Ji(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function Av(e,t,a){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(i.mode==="hidden")return e=Ji(t,i),t.lanes=536870912,kr(null,e);if(lu(t),(e=Qe)?(e=Zp(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=vh(e),a.return=t,t.child=a,vt=t,Qe=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return Ji(t,i)}var c=e.memoizedState;if(c!==null){var y=c.dehydrated;if(lu(t),u)if(t.flags&256)t.flags&=-257,t=Lm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ot||pl(e,t,a,!1),u=(a&e.childLanes)!==0,ot||u){if(i=Ze,i!==null&&(y=Td(i,a),y!==0&&y!==c.retryLane))throw c.retryLane=y,ka(e,y),Mt(i,e,y),Au;os(),t=Lm(e,t,a)}else e=c.treeContext,Qe=ln(y.nextSibling),vt=t,ze=!0,Kn=null,nn=!1,e!==null&&Eh(t,e),t=Ji(t,i),t.flags|=4096;return t}return e=kn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Tu(e,t,a,i,u){return Ra(t),a=iu(e,t,a,i,void 0,u),i=su(),e!==null&&!ot?(ou(e,t,u),Dn(e,t,u)):(ze&&i&&Go(t),t.flags|=1,St(e,t,a,u),t.child)}function Um(e,t,a,i,u,c){return Ra(t),t.updateQueue=null,a=$h(t,i,a,u),Hh(e),i=su(),e!==null&&!ot?(ou(e,t,c),Dn(e,t,c)):(ze&&i&&Go(t),t.flags|=1,St(e,t,a,c),t.child)}function Bm(e,t,a,i,u){if(Ra(t),t.stateNode===null){var c=fl,y=a.contextType;typeof y=="object"&&y!==null&&(c=xt(y)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=wu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Wo(t),y=a.contextType,c.context=typeof y=="object"&&y!==null?xt(y):fl,c.state=t.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Eu(t,a,y,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&wu.enqueueReplaceState(c,c.state,null),wr(t,i,c,u),Er(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,T=Ba(a,x);c.props=T;var H=c.context,X=a.contextType;y=fl,typeof X=="object"&&X!==null&&(y=xt(X));var J=a.getDerivedStateFromProps;X=typeof J=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||H!==y)&&Nm(t,c,i,y),Wn=!1;var $=t.memoizedState;c.state=$,wr(t,i,c,u),Er(),H=t.memoizedState,x||$!==H||Wn?(typeof J=="function"&&(Eu(t,a,J,i),H=t.memoizedState),(T=Wn||wm(t,a,T,i,$,H,y))?(X||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=y,i=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Po(e,t),y=t.memoizedProps,X=Ba(a,y),c.props=X,J=t.pendingProps,$=c.context,H=a.contextType,T=fl,typeof H=="object"&&H!==null&&(T=xt(H)),x=a.getDerivedStateFromProps,(H=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==J||$!==T)&&Nm(t,c,i,T),Wn=!1,$=t.memoizedState,c.state=$,wr(t,i,c,u),Er();var F=t.memoizedState;y!==J||$!==F||Wn||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof x=="function"&&(Eu(t,a,x,i),F=t.memoizedState),(X=Wn||wm(t,a,X,i,$,F,T)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,F,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,F,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=F),c.props=i,c.state=F,c.context=T,i=X):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Wi(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=La(t,e.child,null,u),t.child=La(t,null,a,u)):St(e,t,a,u),t.memoizedState=c.state,e=t.child):e=Dn(e,t,u),e}function Hm(e,t,a,i){return ja(),t.flags|=256,St(e,t,a,i),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ku(e){return{baseLanes:e,cachePool:kh()}}function _u(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Yt),e}function $m(e,t,a){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,y;if((y=c)||(y=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),y&&(u=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(u?ta(t):na(),(e=Qe)?(e=Zp(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=vh(e),a.return=t,t.child=a,vt=t,Qe=null)):e=null,e===null)throw Qn(t);return fc(e)?t.lanes=32:t.lanes=536870912,null}var x=i.children;return i=i.fallback,u?(na(),u=t.mode,x=Pi({mode:"hidden",children:x},u),i=_a(i,u,a,null),x.return=t,i.return=t,x.sibling=i,t.child=x,i=t.child,i.memoizedState=ku(a),i.childLanes=_u(e,y,a),t.memoizedState=Cu,kr(null,i)):(ta(t),ju(t,x))}var T=e.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(c)t.flags&256?(ta(t),t.flags&=-257,t=Ou(e,t,a)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,t=null):(na(),x=i.fallback,u=t.mode,i=Pi({mode:"visible",children:i.children},u),x=_a(x,u,a,null),x.flags|=2,i.return=t,x.return=t,i.sibling=x,t.child=i,La(t,e.child,null,a),i=t.child,i.memoizedState=ku(a),i.childLanes=_u(e,y,a),t.memoizedState=Cu,t=kr(null,i));else if(ta(t),fc(x)){if(y=x.nextSibling&&x.nextSibling.dataset,y)var H=y.dgst;y=H,i=Error(s(419)),i.stack="",i.digest=y,gr({value:i,source:null,stack:null}),t=Ou(e,t,a)}else if(ot||pl(e,t,a,!1),y=(a&e.childLanes)!==0,ot||y){if(y=Ze,y!==null&&(i=Td(y,a),i!==0&&i!==T.retryLane))throw T.retryLane=i,ka(e,i),Mt(y,e,i),Au;cc(x)||os(),t=Ou(e,t,a)}else cc(x)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=ln(x.nextSibling),vt=t,ze=!0,Kn=null,nn=!1,e!==null&&Eh(t,e),t=ju(t,i.children),t.flags|=4096);return t}return u?(na(),x=i.fallback,u=t.mode,T=e.child,H=T.sibling,i=kn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,H!==null?x=kn(H,x):(x=_a(x,u,a,null),x.flags|=2),x.return=t,i.return=t,i.sibling=x,t.child=i,kr(null,i),i=t.child,x=e.child.memoizedState,x===null?x=ku(a):(u=x.cachePool,u!==null?(T=it._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=kh(),x={baseLanes:x.baseLanes|a,cachePool:u}),i.memoizedState=x,i.childLanes=_u(e,y,a),t.memoizedState=Cu,kr(e.child,i)):(ta(t),a=e.child,e=a.sibling,a=kn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=a,t.memoizedState=null,a)}function ju(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Ou(e,t,a){return La(t,e.child,null,a),e=ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gm(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Vo(e.return,t,a)}function Ru(e,t,a,i,u,c){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u,treeForkCount:c}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=a,y.tailMode=u,y.treeForkCount=c)}function Ym(e,t,a){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var y=lt.current,x=(y&2)!==0;if(x?(y=y&1|2,t.flags|=128):y&=1,te(lt,y),St(e,t,i,a),i=ze?pr:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gm(e,a,t);else if(e.tag===19)Gm(e,a,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}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Gi(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Ru(t,!1,u,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Gi(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Ru(t,!0,a,null,c,i);break;case"together":Ru(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Dn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ra|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(pl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=kn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=kn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Mu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function Tv(e,t,a){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),Jn(t,it,e.memoizedState.cache),ja();break;case 27:case 5:he(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$m(e,t,a):(ta(t),e=Dn(e,t,a),e!==null?e.sibling:null);ta(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(pl(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return Ym(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(lt,lt.current),i)break;return null;case 22:return t.lanes=0,Dm(e,t,a,t.pendingProps);case 24:Jn(t,it,e.memoizedState.cache)}return Dn(e,t,a)}function qm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!Mu(e,a)&&(t.flags&128)===0)return ot=!1,Tv(e,t,a);ot=(e.flags&131072)!==0}else ot=!1,ze&&(t.flags&1048576)!==0&&Sh(t,pr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e=="function")Bo(e)?(i=Ba(e,i),t.tag=1,t=Bm(null,t,e,i,a)):(t.tag=0,t=Tu(null,t,e,i,a));else{if(e!=null){var u=e.$$typeof;if(u===q){t.tag=11,t=Om(null,t,e,i,a);break e}else if(u===O){t.tag=14,t=Rm(null,t,e,i,a);break e}}throw t=W(e)||e,Error(s(306,t,""))}}return t;case 0:return Tu(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Ba(i,t.pendingProps),Bm(e,t,i,u,a);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Po(e,t),wr(t,i,null,a);var y=t.memoizedState;if(i=y.cache,Jn(t,it,i),i!==c.cache&&Xo(t,[it],a,!0),Er(),i=y.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hm(e,t,i,a);break e}else if(i!==u){u=Pt(Error(s(424)),t),gr(u),t=Hm(e,t,i,a);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(Qe=ln(e.firstChild),vt=t,ze=!0,Kn=null,nn=!0,a=Dh(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ja(),i===u){t=Dn(e,t,a);break e}St(e,t,i,a)}t=t.child}return t;case 26:return Wi(e,t),e===null?(a=eg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,i=ps(Y.current).createElement(a),i[bt]=t,i[Ct]=e,Et(i,a,e),dt(i),t.stateNode=i):t.memoizedState=eg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&ze&&(i=t.stateNode=Jp(t.type,t.pendingProps,Y.current),vt=t,nn=!0,u=Qe,ca(t.type)?(dc=u,Qe=ln(i.firstChild)):Qe=u),St(e,t,t.pendingProps.children,a),Wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((u=i=Qe)&&(i=n1(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,vt=t,Qe=ln(i.firstChild),nn=!1,u=!0):u=!1),u||Qn(t)),he(t),u=t.type,c=t.pendingProps,y=e!==null?e.memoizedProps:null,i=c.children,sc(u,c)?i=null:y!==null&&sc(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=iu(e,t,yv,null,null,a),qr._currentValue=u),Wi(e,t),St(e,t,i,a),t.child;case 6:return e===null&&ze&&((e=a=Qe)&&(a=a1(a,t.pendingProps,nn),a!==null?(t.stateNode=a,vt=t,Qe=null,e=!0):e=!1),e||Qn(t)),null;case 13:return $m(e,t,a);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=La(t,null,i,a):St(e,t,i,a),t.child;case 11:return Om(e,t,t.type,t.pendingProps,a);case 7:return St(e,t,t.pendingProps,a),t.child;case 8:return St(e,t,t.pendingProps.children,a),t.child;case 12:return St(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Jn(t,t.type,i.value),St(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ra(t),u=xt(u),i=i(u),t.flags|=1,St(e,t,i,a),t.child;case 14:return Rm(e,t,t.type,t.pendingProps,a);case 15:return Mm(e,t,t.type,t.pendingProps,a);case 19:return Ym(e,t,a);case 31:return Av(e,t,a);case 22:return Dm(e,t,a,t.pendingProps);case 24:return Ra(t),i=xt(it),e===null?(u=Qo(),u===null&&(u=Ze,c=Zo(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:i,cache:u},Wo(t),Jn(t,it,u)):((e.lanes&a)!==0&&(Po(e,t),wr(t,null,null,a),Er()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Jn(t,it,i)):(i=c.cache,Jn(t,it,i),i!==u.cache&&Xo(t,[it],a,!0))),St(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function zn(e){e.flags|=4}function Du(e,t,a,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(gp())e.flags|=8192;else throw za=Ui,Jo}else e.flags&=-16777217}function Im(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rg(t))if(gp())e.flags|=8192;else throw za=Ui,Jo}function es(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wd():536870912,e.lanes|=t,Cl|=t)}function _r(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Cv(e,t,a){var i=t.pendingProps;switch(Yo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),On(it),de(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ml(t)?zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Io())),Je(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(zn(t),c!==null?(Je(t),Im(t,c)):(Je(t),Du(t,u,null,i,a))):c?c!==e.memoizedState?(zn(t),Je(t),Im(t,c)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&zn(t),Je(t),Du(t,u,e,i,a)),null;case 27:if(Ee(t),a=Y.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&zn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Je(t),null}e=ae.current,ml(t)?wh(t):(e=Jp(u,i,a),t.stateNode=e,zn(t))}return Je(t),null;case 5:if(Ee(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&zn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Je(t),null}if(c=ae.current,ml(t))wh(t);else{var y=ps(Y.current);switch(c){case 1:c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=y.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?y.createElement(u,{is:i.is}):y.createElement(u)}}c[bt]=t,c[Ct]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)c.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=c;e:switch(Et(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&zn(t)}}return Je(t),Du(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&zn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=Y.current,ml(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=vt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[bt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||$p(e.nodeValue,a)),e||Qn(t,!0)}else e=ps(e).createTextNode(i),e[bt]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=ml(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[bt]=t}else ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Je(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ml(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[bt]=t}else ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),u=!1}else u=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),es(t,t.updateQueue),Je(t),null);case 4:return de(),e===null&&nc(t.stateNode.containerInfo),Je(t),null;case 10:return On(t.type),Je(t),null;case 19:if(G(lt),i=t.memoizedState,i===null)return Je(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)_r(i,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Gi(e),c!==null){for(t.flags|=128,_r(i,!1),e=c.updateQueue,t.updateQueue=e,es(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)bh(a,e),a=a.sibling;return te(lt,lt.current&1|2),ze&&_n(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Re()>rs&&(t.flags|=128,u=!0,_r(i,!1),t.lanes=4194304)}else{if(!u)if(e=Gi(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,es(t,e),_r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ze)return Je(t),null}else 2*Re()-i.renderingStartTime>rs&&a!==536870912&&(t.flags|=128,u=!0,_r(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Re(),e.sibling=null,a=lt.current,te(lt,u?a&1|2:a&1),ze&&_n(t,i.treeForkCount),e):(Je(t),null);case 22:case 23:return $t(t),au(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&es(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&G(Ma),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),On(it),Je(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function kv(e,t){switch(Yo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(it),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(s(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(lt),null;case 4:return de(),null;case 10:return On(t.type),null;case 22:case 23:return $t(t),au(),e!==null&&G(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return On(it),null;case 25:return null;default:return null}}function Fm(e,t){switch(Yo(t),t.tag){case 3:On(it),de();break;case 26:case 27:case 5:Ee(t);break;case 4:de();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:G(lt);break;case 10:On(t.type);break;case 22:case 23:$t(t),au(),e!==null&&G(Ma);break;case 24:On(it)}}function jr(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var c=a.create,y=a.inst;i=c(),y.destroy=i}a=a.next}while(a!==u)}}catch(x){Ye(t,t.return,x)}}function aa(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var y=i.inst,x=y.destroy;if(x!==void 0){y.destroy=void 0,u=t;var T=a,H=x;try{H()}catch(X){Ye(u,T,X)}}}i=i.next}while(i!==c)}}catch(X){Ye(t,t.return,X)}}function Vm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Lh(t,a)}catch(i){Ye(e,e.return,i)}}}function Xm(e,t,a){a.props=Ba(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ye(e,t,i)}}function Or(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){Ye(e,t,u)}}function bn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Ye(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ye(e,t,u)}else a.current=null}function Zm(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){Ye(e,e.return,u)}}function zu(e,t,a){try{var i=e.stateNode;Qv(i,e.type,a,t),i[Ct]=t}catch(u){Ye(e,e.return,u)}}function Km(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Km(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&&ca(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 Uu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Tn));else if(i!==4&&(i===27&&ca(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function ts(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&ca(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ts(e,t,a),e=e.sibling;e!==null;)ts(e,t,a),e=e.sibling}function Qm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Et(t,i,a),t[bt]=e,t[Ct]=a}catch(c){Ye(e,e.return,c)}}var Ln=!1,ut=!1,Bu=!1,Jm=typeof WeakSet=="function"?WeakSet:Set,ht=null;function _v(e,t){if(e=e.containerInfo,rc=Es,e=uh(e),Oo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var y=0,x=-1,T=-1,H=0,X=0,J=e,$=null;t:for(;;){for(var F;J!==a||u!==0&&J.nodeType!==3||(x=y+u),J!==c||i!==0&&J.nodeType!==3||(T=y+i),J.nodeType===3&&(y+=J.nodeValue.length),(F=J.firstChild)!==null;)$=J,J=F;for(;;){if(J===e)break t;if($===a&&++H===u&&(x=y),$===c&&++X===i&&(T=y),(F=J.nextSibling)!==null)break;J=$,$=J.parentNode}J=F}a=x===-1||T===-1?null:{start:x,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(ic={focusedElem:e,selectionRange:a},Es=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var me=Ba(a.type,u);e=i.getSnapshotBeforeUpdate(me,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ye(a,a.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)uc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function Wm(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Bn(e,a),i&4&&jr(5,a);break;case 1:if(Bn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(y){Ye(a,a.return,y)}else{var u=Ba(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Ye(a,a.return,y)}}i&64&&Vm(a),i&512&&Or(a,a.return);break;case 3:if(Bn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Lh(e,t)}catch(y){Ye(a,a.return,y)}}break;case 27:t===null&&i&4&&Qm(a);case 26:case 5:Bn(e,a),t===null&&i&4&&Zm(a),i&512&&Or(a,a.return);break;case 12:Bn(e,a);break;case 31:Bn(e,a),i&4&&tp(e,a);break;case 13:Bn(e,a),i&4&&np(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Bv.bind(null,a),l1(e,a))));break;case 22:if(i=a.memoizedState!==null||Ln,!i){t=t!==null&&t.memoizedState!==null||ut,u=Ln;var c=ut;Ln=i,(ut=t)&&!c?Hn(e,a,(a.subtreeFlags&8772)!==0):Bn(e,a),Ln=u,ut=c}break;case 30:break;default:Bn(e,a)}}function Pm(e){var t=e.alternate;t!==null&&(e.alternate=null,Pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mo(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 Pe=null,_t=!1;function Un(e,t,a){for(a=a.child;a!==null;)ep(e,t,a),a=a.sibling}function ep(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(tr,a)}catch{}switch(a.tag){case 26:ut||bn(a,t),Un(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ut||bn(a,t);var i=Pe,u=_t;ca(a.type)&&(Pe=a.stateNode,_t=!1),Un(e,t,a),$r(a.stateNode),Pe=i,_t=u;break;case 5:ut||bn(a,t);case 6:if(i=Pe,u=_t,Pe=null,Un(e,t,a),Pe=i,_t=u,Pe!==null)if(_t)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(a.stateNode)}catch(c){Ye(a,t,c)}else try{Pe.removeChild(a.stateNode)}catch(c){Ye(a,t,c)}break;case 18:Pe!==null&&(_t?(e=Pe,Vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),zl(e)):Vp(Pe,a.stateNode));break;case 4:i=Pe,u=_t,Pe=a.stateNode.containerInfo,_t=!0,Un(e,t,a),Pe=i,_t=u;break;case 0:case 11:case 14:case 15:aa(2,a,t),ut||aa(4,a,t),Un(e,t,a);break;case 1:ut||(bn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Xm(a,t,i)),Un(e,t,a);break;case 21:Un(e,t,a);break;case 22:ut=(i=ut)||a.memoizedState!==null,Un(e,t,a),ut=i;break;default:Un(e,t,a)}}function tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zl(e)}catch(a){Ye(t,t.return,a)}}}function np(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zl(e)}catch(a){Ye(t,t.return,a)}}function jv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jm),t;default:throw Error(s(435,e.tag))}}function ns(e,t){var a=jv(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var u=Hv.bind(null,e,i);i.then(u,u)}})}function jt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],c=e,y=t,x=y;e:for(;x!==null;){switch(x.tag){case 27:if(ca(x.type)){Pe=x.stateNode,_t=!1;break e}break;case 5:Pe=x.stateNode,_t=!1;break e;case 3:case 4:Pe=x.stateNode.containerInfo,_t=!0;break e}x=x.return}if(Pe===null)throw Error(s(160));ep(c,y,u),Pe=null,_t=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ap(t,e),t=t.sibling}var fn=null;function ap(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Ot(e),i&4&&(aa(3,e,e.return),jr(3,e),aa(5,e,e.return));break;case 1:jt(t,e),Ot(e),i&512&&(ut||a===null||bn(a,a.return)),i&64&&Ln&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var u=fn;if(jt(t,e),Ot(e),i&512&&(ut||a===null||bn(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[lr]||c[bt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),Et(c,i,a),c[bt]=e,dt(c),i=c;break e;case"link":var y=ag("link","href",u).get(i+(a.href||""));if(y){for(var x=0;x<y.length;x++)if(c=y[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(x,1);break t}}c=u.createElement(i),Et(c,i,a),u.head.appendChild(c);break;case"meta":if(y=ag("meta","content",u).get(i+(a.content||""))){for(x=0;x<y.length;x++)if(c=y[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(x,1);break t}}c=u.createElement(i),Et(c,i,a),u.head.appendChild(c);break;default:throw Error(s(468,i))}c[bt]=e,dt(c),i=c}e.stateNode=i}else lg(u,e.type,e.stateNode);else e.stateNode=ng(u,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?lg(u,e.type,e.stateNode):ng(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&zu(e,e.memoizedProps,a.memoizedProps)}break;case 27:jt(t,e),Ot(e),i&512&&(ut||a===null||bn(a,a.return)),a!==null&&i&4&&zu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(jt(t,e),Ot(e),i&512&&(ut||a===null||bn(a,a.return)),e.flags&32){u=e.stateNode;try{ll(u,"")}catch(me){Ye(e,e.return,me)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,zu(e,u,a!==null?a.memoizedProps:u)),i&1024&&(Bu=!0);break;case 6:if(jt(t,e),Ot(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(me){Ye(e,e.return,me)}}break;case 3:if(bs=null,u=fn,fn=gs(t.containerInfo),jt(t,e),fn=u,Ot(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{zl(t.containerInfo)}catch(me){Ye(e,e.return,me)}Bu&&(Bu=!1,lp(e));break;case 4:i=fn,fn=gs(e.stateNode.containerInfo),jt(t,e),Ot(e),fn=i;break;case 12:jt(t,e),Ot(e);break;case 31:jt(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 13:jt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=Re()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 22:u=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,H=Ln,X=ut;if(Ln=H||u,ut=X||T,jt(t,e),ut=X,Ln=H,Ot(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||T||Ln||ut||Ha(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(c=T.stateNode,u)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=T.stateNode;var J=T.memoizedProps.style,$=J!=null&&J.hasOwnProperty("display")?J.display:null;x.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(me){Ye(T,T.return,me)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(me){Ye(T,T.return,me)}}}else if(t.tag===18){if(a===null){T=t;try{var F=T.stateNode;u?Xp(F,!0):Xp(T.stateNode,!1)}catch(me){Ye(T,T.return,me)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,ns(e,a))));break;case 19:jt(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 30:break;case 21:break;default:jt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Km(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=Lu(e);ts(e,c,u);break;case 5:var y=a.stateNode;a.flags&32&&(ll(y,""),a.flags&=-33);var x=Lu(e);ts(e,x,y);break;case 3:case 4:var T=a.stateNode.containerInfo,H=Lu(e);Uu(e,H,T);break;default:throw Error(s(161))}}catch(X){Ye(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wm(e,t.alternate,t),t=t.sibling}function Ha(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:aa(4,t,t.return),Ha(t);break;case 1:bn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xm(t,t.return,a),Ha(t);break;case 27:$r(t.stateNode);case 26:case 5:bn(t,t.return),Ha(t);break;case 22:t.memoizedState===null&&Ha(t);break;case 30:Ha(t);break;default:Ha(t)}e=e.sibling}}function Hn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,y=c.flags;switch(c.tag){case 0:case 11:case 15:Hn(u,c,a),jr(4,c);break;case 1:if(Hn(u,c,a),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){Ye(i,i.return,H)}if(i=c,u=i.updateQueue,u!==null){var x=i.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)zh(T[u],x)}catch(H){Ye(i,i.return,H)}}a&&y&64&&Vm(c),Or(c,c.return);break;case 27:Qm(c);case 26:case 5:Hn(u,c,a),a&&i===null&&y&4&&Zm(c),Or(c,c.return);break;case 12:Hn(u,c,a);break;case 31:Hn(u,c,a),a&&y&4&&tp(u,c);break;case 13:Hn(u,c,a),a&&y&4&&np(u,c);break;case 22:c.memoizedState===null&&Hn(u,c,a),Or(c,c.return);break;case 30:break;default:Hn(u,c,a)}t=t.sibling}}function Hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&yr(a))}function $u(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e))}function dn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rp(e,t,a,i),t=t.sibling}function rp(e,t,a,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,a,i),u&2048&&jr(9,t);break;case 1:dn(e,t,a,i);break;case 3:dn(e,t,a,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e)));break;case 12:if(u&2048){dn(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,y=c.id,x=c.onPostCommit;typeof x=="function"&&x(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ye(t,t.return,T)}}else dn(e,t,a,i);break;case 31:dn(e,t,a,i);break;case 13:dn(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,y=t.alternate,t.memoizedState!==null?c._visibility&2?dn(e,t,a,i):Rr(e,t):c._visibility&2?dn(e,t,a,i):(c._visibility|=2,Nl(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Hu(y,t);break;case 24:dn(e,t,a,i),u&2048&&$u(t.alternate,t);break;default:dn(e,t,a,i)}}function Nl(e,t,a,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,y=t,x=a,T=i,H=y.flags;switch(y.tag){case 0:case 11:case 15:Nl(c,y,x,T,u),jr(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?Nl(c,y,x,T,u):Rr(c,y):(X._visibility|=2,Nl(c,y,x,T,u)),u&&H&2048&&Hu(y.alternate,y);break;case 24:Nl(c,y,x,T,u),u&&H&2048&&$u(y.alternate,y);break;default:Nl(c,y,x,T,u)}t=t.sibling}}function Rr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,u=i.flags;switch(i.tag){case 22:Rr(a,i),u&2048&&Hu(i.alternate,i);break;case 24:Rr(a,i),u&2048&&$u(i.alternate,i);break;default:Rr(a,i)}t=t.sibling}}var Mr=8192;function Al(e,t,a){if(e.subtreeFlags&Mr)for(e=e.child;e!==null;)ip(e,t,a),e=e.sibling}function ip(e,t,a){switch(e.tag){case 26:Al(e,t,a),e.flags&Mr&&e.memoizedState!==null&&g1(a,fn,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,a);break;case 3:case 4:var i=fn;fn=gs(e.stateNode.containerInfo),Al(e,t,a),fn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Mr,Mr=16777216,Al(e,t,a),Mr=i):Al(e,t,a));break;default:Al(e,t,a)}}function sp(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 Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];ht=i,up(i,e)}sp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)op(e),e=e.sibling}function op(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&aa(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):Dr(e);break;default:Dr(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];ht=i,up(i,e)}sp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),as(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function up(e,t){for(;ht!==null;){var a=ht;switch(a.tag){case 0:case 11:case 15:aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:yr(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,ht=i;else e:for(a=e;ht!==null;){i=ht;var u=i.sibling,c=i.return;if(Pm(i),i===a){ht=null;break e}if(u!==null){u.return=c,ht=u;break e}ht=c}}}var Ov={getCacheForType:function(e){var t=xt(it),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return xt(it).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,He=0,Ze=null,_e=null,Me=0,Ge=0,Gt=null,la=!1,Tl=!1,Gu=!1,$n=0,at=0,ra=0,$a=0,Yu=0,Yt=0,Cl=0,zr=null,Rt=null,qu=!1,ls=0,cp=0,rs=1/0,is=null,ia=null,ft=0,sa=null,kl=null,Gn=0,Iu=0,Fu=null,fp=null,Lr=0,Vu=null;function qt(){return(He&2)!==0&&Me!==0?Me&-Me:D.T!==null?Wu():Cd()}function dp(){if(Yt===0)if((Me&536870912)===0||ze){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),Yt=e}else Yt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Yt}function Mt(e,t,a){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(_l(e,0),oa(e,Me,Yt,!1)),ar(e,a),((He&2)===0||e!==Ze)&&(e===Ze&&((He&2)===0&&($a|=a),at===4&&oa(e,Me,Yt,!1)),vn(e))}function hp(e,t,a){if((He&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nr(e,t),u=i?zv(e,t):Zu(e,t,!0),c=i;do{if(u===0){Tl&&!i&&oa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Mv(a)){u=Zu(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var x=e;u=zr;var T=x.current.memoizedState.isDehydrated;if(T&&(_l(x,y).flags|=256),y=Zu(x,y,!1),y!==2){if(Gu&&!T){x.errorRecoveryDisabledLanes|=c,$a|=c,u=4;break e}c=Rt,Rt=u,c!==null&&(Rt===null?Rt=c:Rt.push.apply(Rt,c))}u=y}if(c=!1,u!==2)continue}}if(u===1){_l(e,0),oa(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:oa(i,t,Yt,!la);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=ls+300-Re(),10<u)){if(oa(i,t,Yt,!la),gi(i,0,!0)!==0)break e;Gn=t,i.timeoutHandle=Ip(mp.bind(null,i,a,Rt,is,qu,t,Yt,$a,Cl,la,c,"Throttled",-0,0),u);break e}mp(i,a,Rt,is,qu,t,Yt,$a,Cl,la,c,null,-0,0)}}break}while(!0);vn(e)}function mp(e,t,a,i,u,c,y,x,T,H,X,J,$,F){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},ip(t,c,J);var me=(c&62914560)===c?ls-Re():(c&4194048)===c?cp-Re():0;if(me=y1(J,me),me!==null){Gn=c,e.cancelPendingCommit=me(Ep.bind(null,e,t,c,a,i,u,y,x,T,X,J,null,$,F)),oa(e,c,y,!H);return}}Ep(e,t,c,a,i,u,y,x,T)}function Mv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var u=a[i],c=u.getSnapshot;u=u.value;try{if(!Ut(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 oa(e,t,a,i){t&=~Yu,t&=~$a,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-Lt(u),y=1<<c;i[c]=-1,u&=~y}a!==0&&Nd(e,a,t)}function ss(){return(He&6)===0?(Ur(0),!1):!0}function Xu(){if(_e!==null){if(Ge===0)var e=_e.return;else e=_e,jn=Oa=null,uu(e),vl=null,vr=0,e=_e;for(;e!==null;)Fm(e.alternate,e),e=e.return;_e=null}}function _l(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Pv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Gn=0,Xu(),Ze=e,_e=a=kn(e.current,null),Me=t,Ge=0,Gt=null,la=!1,Tl=nr(e,t),Gu=!1,Cl=Yt=Yu=$a=ra=at=0,Rt=zr=null,qu=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-Lt(i),c=1<<u;t|=e[u],i&=~c}return $n=t,ki(),a}function pp(e,t){Ne=null,D.H=Cr,t===bl||t===Li?(t=Oh(),Ge=3):t===Jo?(t=Oh(),Ge=4):Ge=t===Au?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,_e===null&&(at=1,Qi(e,Pt(t,e.current)))}function gp(){var e=Ht.current;return e===null?!0:(Me&4194048)===Me?an===null:(Me&62914560)===Me||(Me&536870912)!==0?e===an:!1}function yp(){var e=D.H;return D.H=Cr,e===null?Cr:e}function bp(){var e=D.A;return D.A=Ov,e}function os(){at=4,la||(Me&4194048)!==Me&&Ht.current!==null||(Tl=!0),(ra&134217727)===0&&($a&134217727)===0||Ze===null||oa(Ze,Me,Yt,!1)}function Zu(e,t,a){var i=He;He|=2;var u=yp(),c=bp();(Ze!==e||Me!==t)&&(is=null,_l(e,t)),t=!1;var y=at;e:do try{if(Ge!==0&&_e!==null){var x=_e,T=Gt;switch(Ge){case 8:Xu(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var H=Ge;if(Ge=0,Gt=null,jl(e,x,T,H),a&&Tl){y=0;break e}break;default:H=Ge,Ge=0,Gt=null,jl(e,x,T,H)}}Dv(),y=at;break}catch(X){pp(e,X)}while(!0);return t&&e.shellSuspendCounter++,jn=Oa=null,He=i,D.H=u,D.A=c,_e===null&&(Ze=null,Me=0,ki()),y}function Dv(){for(;_e!==null;)vp(_e)}function zv(e,t){var a=He;He|=2;var i=yp(),u=bp();Ze!==e||Me!==t?(is=null,rs=Re()+500,_l(e,t)):Tl=nr(e,t);e:do try{if(Ge!==0&&_e!==null){t=_e;var c=Gt;t:switch(Ge){case 1:Ge=0,Gt=null,jl(e,t,c,1);break;case 2:case 9:if(_h(c)){Ge=0,Gt=null,xp(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),vn(e)},c.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:_h(c)?(Ge=0,Gt=null,xp(t)):(Ge=0,Gt=null,jl(e,t,c,7));break;case 5:var y=null;switch(_e.tag){case 26:y=_e.memoizedState;case 5:case 27:var x=_e;if(y?rg(y):x.stateNode.complete){Ge=0,Gt=null;var T=x.sibling;if(T!==null)_e=T;else{var H=x.return;H!==null?(_e=H,us(H)):_e=null}break t}}Ge=0,Gt=null,jl(e,t,c,5);break;case 6:Ge=0,Gt=null,jl(e,t,c,6);break;case 8:Xu(),at=6;break e;default:throw Error(s(462))}}Lv();break}catch(X){pp(e,X)}while(!0);return jn=Oa=null,D.H=i,D.A=u,He=a,_e!==null?0:(Ze=null,Me=0,ki(),at)}function Lv(){for(;_e!==null&&!Kt();)vp(_e)}function vp(e){var t=qm(e.alternate,e,$n);e.memoizedProps=e.pendingProps,t===null?us(e):_e=t}function xp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Um(a,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=Um(a,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:uu(t);default:Fm(a,t),t=_e=bh(t,$n),t=qm(a,t,$n)}e.memoizedProps=e.pendingProps,t===null?us(e):_e=t}function jl(e,t,a,i){jn=Oa=null,uu(t),vl=null,vr=0;var u=t.return;try{if(Nv(e,u,t,a,Me)){at=1,Qi(e,Pt(a,e.current)),_e=null;return}}catch(c){if(u!==null)throw _e=u,c;at=1,Qi(e,Pt(a,e.current)),_e=null;return}t.flags&32768?(ze||i===1?e=!0:Tl||(Me&536870912)!==0?e=!1:(la=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Sp(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){Sp(t,la);return}e=t.return;var a=Cv(t.alternate,t,$n);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);at===0&&(at=5)}function Sp(e,t){do{var a=kv(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);at=6,_e=null}function Ep(e,t,a,i,u,c,y,x,T){e.cancelPendingCommit=null;do cs();while(ft!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Lo,p0(e,a,c,y,x,T),e===Ze&&(_e=Ze=null,Me=0),kl=t,sa=e,Gn=a,Iu=c,Fu=u,fp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$v(di,function(){return Cp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,u=U.p,U.p=2,y=He,He|=4;try{_v(e,t,a)}finally{He=y,U.p=u,D.T=i}}ft=1,wp(),Np(),Ap()}}function wp(){if(ft===1){ft=0;var e=sa,t=kl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var i=U.p;U.p=2;var u=He;He|=4;try{ap(t,e);var c=ic,y=uh(e.containerInfo),x=c.focusedElem,T=c.selectionRange;if(y!==x&&x&&x.ownerDocument&&oh(x.ownerDocument.documentElement,x)){if(T!==null&&Oo(x)){var H=T.start,X=T.end;if(X===void 0&&(X=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(X,x.value.length);else{var J=x.ownerDocument||document,$=J&&J.defaultView||window;if($.getSelection){var F=$.getSelection(),me=x.textContent.length,Se=Math.min(T.start,me),Ve=T.end===void 0?Se:Math.min(T.end,me);!F.extend&&Se>Ve&&(y=Ve,Ve=Se,Se=y);var M=sh(x,Se),_=sh(x,Ve);if(M&&_&&(F.rangeCount!==1||F.anchorNode!==M.node||F.anchorOffset!==M.offset||F.focusNode!==_.node||F.focusOffset!==_.offset)){var B=J.createRange();B.setStart(M.node,M.offset),F.removeAllRanges(),Se>Ve?(F.addRange(B),F.extend(_.node,_.offset)):(B.setEnd(_.node,_.offset),F.addRange(B))}}}}for(J=[],F=x;F=F.parentNode;)F.nodeType===1&&J.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<J.length;x++){var Q=J[x];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Es=!!rc,ic=rc=null}finally{He=u,U.p=i,D.T=a}}e.current=t,ft=2}}function Np(){if(ft===2){ft=0;var e=sa,t=kl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var i=U.p;U.p=2;var u=He;He|=4;try{Wm(e,t.alternate,t)}finally{He=u,U.p=i,D.T=a}}ft=3}}function Ap(){if(ft===4||ft===3){ft=0,yt();var e=sa,t=kl,a=Gn,i=fp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,kl=sa=null,Tp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ia=null),fo(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(tr,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,u=U.p,U.p=2,D.T=null;try{for(var c=e.onRecoverableError,y=0;y<i.length;y++){var x=i[y];c(x.value,{componentStack:x.stack})}}finally{D.T=t,U.p=u}}(Gn&3)!==0&&cs(),vn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Vu?Lr++:(Lr=0,Vu=e):Lr=0,Ur(0)}}function Tp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yr(t)))}function cs(){return wp(),Np(),Ap(),Cp()}function Cp(){if(ft!==5)return!1;var e=sa,t=Iu;Iu=0;var a=fo(Gn),i=D.T,u=U.p;try{U.p=32>a?32:a,D.T=null,a=Fu,Fu=null;var c=sa,y=Gn;if(ft=0,kl=sa=null,Gn=0,(He&6)!==0)throw Error(s(331));var x=He;if(He|=4,op(c.current),rp(c,c.current,y,a),He=x,Ur(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(tr,c)}catch{}return!0}finally{U.p=u,D.T=i,Tp(e,t)}}function kp(e,t,a){t=Pt(a,t),t=Nu(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(ar(e,2),vn(e))}function Ye(e,t,a){if(e.tag===3)kp(e,e,a);else for(;t!==null;){if(t.tag===3){kp(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ia===null||!ia.has(i))){e=Pt(a,e),a=_m(2),i=ea(t,a,2),i!==null&&(jm(a,i,t,e),ar(i,2),vn(i));break}}t=t.return}}function Ku(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Rv;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(Gu=!0,u.add(a),e=Uv.bind(null,e,t,a),t.then(e,e))}function Uv(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(Me&a)===a&&(at===4||at===3&&(Me&62914560)===Me&&300>Re()-ls?(He&2)===0&&_l(e,0):Yu|=a,Cl===Me&&(Cl=0)),vn(e)}function _p(e,t){t===0&&(t=wd()),e=ka(e,t),e!==null&&(ar(e,t),vn(e))}function Bv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_p(e,a)}function Hv(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),_p(e,a)}function $v(e,t){return gt(e,t)}var fs=null,Ol=null,Qu=!1,ds=!1,Ju=!1,ua=0;function vn(e){e!==Ol&&e.next===null&&(Ol===null?fs=Ol=e:Ol=Ol.next=e),ds=!0,Qu||(Qu=!0,Yv())}function Ur(e,t){if(!Ju&&ds){Ju=!0;do for(var a=!1,i=fs;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var y=i.suspendedLanes,x=i.pingedLanes;c=(1<<31-Lt(42|e)+1)-1,c&=u&~(y&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Mp(i,c))}else c=Me,c=gi(i,i===Ze?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||nr(i,c)||(a=!0,Mp(i,c));i=i.next}while(a);Ju=!1}}function Gv(){jp()}function jp(){ds=Qu=!1;var e=0;ua!==0&&Wv()&&(e=ua);for(var t=Re(),a=null,i=fs;i!==null;){var u=i.next,c=Op(i,t);c===0?(i.next=null,a===null?fs=u:a.next=u,u===null&&(Ol=a)):(a=i,(e!==0||(c&3)!==0)&&(ds=!0)),i=u}ft!==0&&ft!==5||Ur(e),ua!==0&&(ua=0)}function Op(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var y=31-Lt(c),x=1<<y,T=u[y];T===-1?((x&a)===0||(x&i)!==0)&&(u[y]=m0(x,t)):T<=t&&(e.expiredLanes|=x),c&=~x}if(t=Ze,a=Me,a=gi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&wt(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&wt(i),fo(a)){case 2:case 8:a=Ea;break;case 32:a=di;break;case 268435456:a=Ed;break;default:a=di}return i=Rp.bind(null,e),a=gt(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&wt(i),e.callbackPriority=2,e.callbackNode=null,2}function Rp(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cs()&&e.callbackNode!==a)return null;var i=Me;return i=gi(e,e===Ze?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(hp(e,i,t),Op(e,Re()),e.callbackNode!=null&&e.callbackNode===a?Rp.bind(null,e):null)}function Mp(e,t){if(cs())return null;hp(e,t,!0)}function Yv(){e1(function(){(He&6)!==0?gt(pn,Gv):jp()})}function Wu(){if(ua===0){var e=gl;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),ua=e}return ua}function Dp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function zp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function qv(e,t,a,i,u){if(t==="submit"&&a&&a.stateNode===u){var c=Dp((u[Ct]||null).action),y=i.submitter;y&&(t=(t=y[Ct]||null)?Dp(t.formAction):y.getAttribute("formAction"),t!==null&&(c=t,y=null));var x=new Ni("action","action",null,i,u);e.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ua!==0){var T=y?zp(u,y):new FormData(u);bu(a,{pending:!0,data:T,method:u.method,action:c},null,T)}}else typeof c=="function"&&(x.preventDefault(),T=y?zp(u,y):new FormData(u),bu(a,{pending:!0,data:T,method:u.method,action:c},c,T))},currentTarget:u}]})}}for(var Pu=0;Pu<zo.length;Pu++){var ec=zo[Pu],Iv=ec.toLowerCase(),Fv=ec[0].toUpperCase()+ec.slice(1);cn(Iv,"on"+Fv)}cn(dh,"onAnimationEnd"),cn(hh,"onAnimationIteration"),cn(mh,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(sv,"onTransitionRun"),cn(ov,"onTransitionStart"),cn(uv,"onTransitionCancel"),cn(ph,"onTransitionEnd"),nl("onMouseEnter",["mouseout","mouseover"]),nl("onMouseLeave",["mouseout","mouseover"]),nl("onPointerEnter",["pointerout","pointerover"]),nl("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),Vv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Br));function Lp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var y=i.length-1;0<=y;y--){var x=i[y],T=x.instance,H=x.currentTarget;if(x=x.listener,T!==c&&u.isPropagationStopped())break e;c=x,u.currentTarget=H;try{c(u)}catch(X){Ci(X)}u.currentTarget=null,c=T}else for(y=0;y<i.length;y++){if(x=i[y],T=x.instance,H=x.currentTarget,x=x.listener,T!==c&&u.isPropagationStopped())break e;c=x,u.currentTarget=H;try{c(u)}catch(X){Ci(X)}u.currentTarget=null,c=T}}}}function je(e,t){var a=t[ho];a===void 0&&(a=t[ho]=new Set);var i=e+"__bubble";a.has(i)||(Up(t,e,2,!1),a.add(i))}function tc(e,t,a){var i=0;t&&(i|=4),Up(a,e,i,t)}var hs="_reactListening"+Math.random().toString(36).slice(2);function nc(e){if(!e[hs]){e[hs]=!0,jd.forEach(function(a){a!=="selectionchange"&&(Vv.has(a)||tc(a,!1,e),tc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,tc("selectionchange",!1,t))}}function Up(e,t,a,i){switch(dg(t)){case 2:var u=x1;break;case 8:u=S1;break;default:u=yc}a=u.bind(null,t,a,e),u=void 0,!Eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function ac(e,t,a,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var x=i.stateNode.containerInfo;if(x===u)break;if(y===4)for(y=i.return;y!==null;){var T=y.tag;if((T===3||T===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;x!==null;){if(y=Pa(x),y===null)return;if(T=y.tag,T===5||T===6||T===26||T===27){i=c=y;continue e}x=x.parentNode}}i=i.return}Yd(function(){var H=c,X=xo(a),J=[];e:{var $=gh.get(e);if($!==void 0){var F=Ni,me=e;switch(e){case"keypress":if(Ei(a)===0)break e;case"keydown":case"keyup":F=H0;break;case"focusin":me="focus",F=To;break;case"focusout":me="blur",F=To;break;case"beforeblur":case"afterblur":F=To;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=C0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Y0;break;case dh:case hh:case mh:F=j0;break;case ph:F=I0;break;case"scroll":case"scrollend":F=A0;break;case"wheel":F=V0;break;case"copy":case"cut":case"paste":F=R0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Xd;break;case"toggle":case"beforetoggle":F=Z0}var Se=(t&4)!==0,Ve=!Se&&(e==="scroll"||e==="scrollend"),M=Se?$!==null?$+"Capture":null:$;Se=[];for(var _=H,B;_!==null;){var Q=_;if(B=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||B===null||M===null||(Q=ir(_,M),Q!=null&&Se.push(Hr(_,Q,B))),Ve)break;_=_.return}0<Se.length&&($=new F($,me,null,a,X),J.push({event:$,listeners:Se}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",$&&a!==vo&&(me=a.relatedTarget||a.fromElement)&&(Pa(me)||me[Wa]))break e;if((F||$)&&($=X.window===X?X:($=X.ownerDocument)?$.defaultView||$.parentWindow:window,F?(me=a.relatedTarget||a.toElement,F=H,me=me?Pa(me):null,me!==null&&(Ve=f(me),Se=me.tag,me!==Ve||Se!==5&&Se!==27&&Se!==6)&&(me=null)):(F=null,me=H),F!==me)){if(Se=Fd,Q="onMouseLeave",M="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Xd,Q="onPointerLeave",M="onPointerEnter",_="pointer"),Ve=F==null?$:rr(F),B=me==null?$:rr(me),$=new Se(Q,_+"leave",F,a,X),$.target=Ve,$.relatedTarget=B,Q=null,Pa(X)===H&&(Se=new Se(M,_+"enter",me,a,X),Se.target=B,Se.relatedTarget=Ve,Q=Se),Ve=Q,F&&me)t:{for(Se=Xv,M=F,_=me,B=0,Q=M;Q;Q=Se(Q))B++;Q=0;for(var be=_;be;be=Se(be))Q++;for(;0<B-Q;)M=Se(M),B--;for(;0<Q-B;)_=Se(_),Q--;for(;B--;){if(M===_||_!==null&&M===_.alternate){Se=M;break t}M=Se(M),_=Se(_)}Se=null}else Se=null;F!==null&&Bp(J,$,F,Se,!1),me!==null&&Ve!==null&&Bp(J,Ve,me,Se,!0)}}e:{if($=H?rr(H):window,F=$.nodeName&&$.nodeName.toLowerCase(),F==="select"||F==="input"&&$.type==="file")var Ue=th;else if(Pd($))if(nh)Ue=lv;else{Ue=nv;var pe=tv}else F=$.nodeName,!F||F.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?H&&bo(H.elementType)&&(Ue=th):Ue=av;if(Ue&&(Ue=Ue(e,H))){eh(J,Ue,a,X);break e}pe&&pe(e,$,H),e==="focusout"&&H&&$.type==="number"&&H.memoizedProps.value!=null&&yo($,"number",$.value)}switch(pe=H?rr(H):window,e){case"focusin":(Pd(pe)||pe.contentEditable==="true")&&(ol=pe,Ro=H,mr=null);break;case"focusout":mr=Ro=ol=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,ch(J,a,X);break;case"selectionchange":if(iv)break;case"keydown":case"keyup":ch(J,a,X)}var Te;if(ko)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else sl?Jd(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(Zd&&a.locale!=="ko"&&(sl||De!=="onCompositionStart"?De==="onCompositionEnd"&&sl&&(Te=qd()):(Xn=X,wo="value"in Xn?Xn.value:Xn.textContent,sl=!0)),pe=ms(H,De),0<pe.length&&(De=new Vd(De,e,null,a,X),J.push({event:De,listeners:pe}),Te?De.data=Te:(Te=Wd(a),Te!==null&&(De.data=Te)))),(Te=Q0?J0(e,a):W0(e,a))&&(De=ms(H,"onBeforeInput"),0<De.length&&(pe=new Vd("onBeforeInput","beforeinput",null,a,X),J.push({event:pe,listeners:De}),pe.data=Te)),qv(J,e,H,a,X)}Lp(J,t)})}function Hr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ms(e,t){for(var a=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=ir(e,a),u!=null&&i.unshift(Hr(e,u,c)),u=ir(e,t),u!=null&&i.push(Hr(e,u,c))),e.tag===3)return i;e=e.return}return[]}function Xv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bp(e,t,a,i,u){for(var c=t._reactName,y=[];a!==null&&a!==i;){var x=a,T=x.alternate,H=x.stateNode;if(x=x.tag,T!==null&&T===i)break;x!==5&&x!==26&&x!==27||H===null||(T=H,u?(H=ir(a,c),H!=null&&y.unshift(Hr(a,H,T))):u||(H=ir(a,c),H!=null&&y.push(Hr(a,H,T)))),a=a.return}y.length!==0&&e.push({event:t,listeners:y})}var Zv=/\r\n?/g,Kv=/\u0000|\uFFFD/g;function Hp(e){return(typeof e=="string"?e:""+e).replace(Zv,`
|
|
49
|
+
`).replace(Kv,"")}function $p(e,t){return t=Hp(t),Hp(e)===t}function Fe(e,t,a,i,u,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ll(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ll(e,""+i);break;case"className":bi(e,"class",i);break;case"tabIndex":bi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":bi(e,a,i);break;case"style":$d(e,i,c);break;case"data":if(t!=="object"){bi(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=xi(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"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 c=="function"&&(a==="formAction"?(t!=="input"&&Fe(e,t,"name",u.name,u,null),Fe(e,t,"formEncType",u.formEncType,u,null),Fe(e,t,"formMethod",u.formMethod,u,null),Fe(e,t,"formTarget",u.formTarget,u,null)):(Fe(e,t,"encType",u.encType,u,null),Fe(e,t,"method",u.method,u,null),Fe(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=xi(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Tn);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=xi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":je("beforetoggle",e),je("toggle",e),yi(e,"popover",i);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":yi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=w0.get(a)||a,yi(e,a,i))}}function lc(e,t,a,i,u,c){switch(a){case"style":$d(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ll(e,i):(typeof i=="number"||typeof i=="bigint")&&ll(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Od.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[Ct]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,u);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):yi(e,a,i)}}}function Et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var i=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var y=a[c];if(y!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,c,y,a,null)}}u&&Fe(e,t,"srcSet",a.srcSet,a,null),i&&Fe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var x=c=y=u=null,T=null,H=null;for(i in a)if(a.hasOwnProperty(i)){var X=a[i];if(X!=null)switch(i){case"name":u=X;break;case"type":y=X;break;case"checked":T=X;break;case"defaultChecked":H=X;break;case"value":c=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:Fe(e,t,i,X,a,null)}}Ld(e,c,x,T,H,y,u,!1);return;case"select":je("invalid",e),i=y=c=null;for(u in a)if(a.hasOwnProperty(u)&&(x=a[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":y=x;break;case"multiple":i=x;default:Fe(e,t,u,x,a,null)}t=c,a=y,e.multiple=!!i,t!=null?al(e,!!i,t,!1):a!=null&&al(e,!!i,a,!0);return;case"textarea":je("invalid",e),c=u=i=null;for(y in a)if(a.hasOwnProperty(y)&&(x=a[y],x!=null))switch(y){case"value":i=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:Fe(e,t,y,x,a,null)}Bd(e,i,u,c);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(i=a[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Fe(e,t,T,i,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<Br.length;i++)je(Br[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(H in a)if(a.hasOwnProperty(H)&&(i=a[H],i!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,H,i,a,null)}return;default:if(bo(t)){for(X in a)a.hasOwnProperty(X)&&(i=a[X],i!==void 0&&lc(e,t,X,i,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(i=a[x],i!=null&&Fe(e,t,x,i,a,null))}function Qv(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,y=null,x=null,T=null,H=null,X=null;for(F in a){var J=a[F];if(a.hasOwnProperty(F)&&J!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":T=J;default:i.hasOwnProperty(F)||Fe(e,t,F,null,i,J)}}for(var $ in i){var F=i[$];if(J=a[$],i.hasOwnProperty($)&&(F!=null||J!=null))switch($){case"type":c=F;break;case"name":u=F;break;case"checked":H=F;break;case"defaultChecked":X=F;break;case"value":y=F;break;case"defaultValue":x=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==J&&Fe(e,t,$,F,i,J)}}go(e,y,x,T,H,X,c,u);return;case"select":F=y=x=$=null;for(c in a)if(T=a[c],a.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":F=T;default:i.hasOwnProperty(c)||Fe(e,t,c,null,i,T)}for(u in i)if(c=i[u],T=a[u],i.hasOwnProperty(u)&&(c!=null||T!=null))switch(u){case"value":$=c;break;case"defaultValue":x=c;break;case"multiple":y=c;default:c!==T&&Fe(e,t,u,c,i,T)}t=x,a=y,i=F,$!=null?al(e,!!a,$,!1):!!i!=!!a&&(t!=null?al(e,!!a,t,!0):al(e,!!a,a?[]:"",!1));return;case"textarea":F=$=null;for(x in a)if(u=a[x],a.hasOwnProperty(x)&&u!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Fe(e,t,x,null,i,u)}for(y in i)if(u=i[y],c=a[y],i.hasOwnProperty(y)&&(u!=null||c!=null))switch(y){case"value":$=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Fe(e,t,y,u,i,c)}Ud(e,$,F);return;case"option":for(var me in a)if($=a[me],a.hasOwnProperty(me)&&$!=null&&!i.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Fe(e,t,me,null,i,$)}for(T in i)if($=i[T],F=a[T],i.hasOwnProperty(T)&&$!==F&&($!=null||F!=null))switch(T){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Fe(e,t,T,$,i,F)}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 Se in a)$=a[Se],a.hasOwnProperty(Se)&&$!=null&&!i.hasOwnProperty(Se)&&Fe(e,t,Se,null,i,$);for(H in i)if($=i[H],F=a[H],i.hasOwnProperty(H)&&$!==F&&($!=null||F!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,t));break;default:Fe(e,t,H,$,i,F)}return;default:if(bo(t)){for(var Ve in a)$=a[Ve],a.hasOwnProperty(Ve)&&$!==void 0&&!i.hasOwnProperty(Ve)&&lc(e,t,Ve,void 0,i,$);for(X in i)$=i[X],F=a[X],!i.hasOwnProperty(X)||$===F||$===void 0&&F===void 0||lc(e,t,X,$,i,F);return}}for(var M in a)$=a[M],a.hasOwnProperty(M)&&$!=null&&!i.hasOwnProperty(M)&&Fe(e,t,M,null,i,$);for(J in i)$=i[J],F=a[J],!i.hasOwnProperty(J)||$===F||$==null&&F==null||Fe(e,t,J,$,i,F)}function Gp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var u=a[i],c=u.transferSize,y=u.initiatorType,x=u.duration;if(c&&x&&Gp(y)){for(y=0,x=u.responseEnd,i+=1;i<a.length;i++){var T=a[i],H=T.startTime;if(H>x)break;var X=T.transferSize,J=T.initiatorType;X&&Gp(J)&&(T=T.responseEnd,y+=X*(T<x?1:(x-H)/(T-H)))}if(--i,t+=8*(c+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var rc=null,ic=null;function ps(e){return e.nodeType===9?e:e.ownerDocument}function Yp(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 qp(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 sc(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 oc=null;function Wv(){var e=window.event;return e&&e.type==="popstate"?e===oc?!1:(oc=e,!0):(oc=null,!1)}var Ip=typeof setTimeout=="function"?setTimeout:void 0,Pv=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,e1=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(t1)}:Ip;function t1(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function Vp(e,t){var a=t,i=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(u),zl(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")$r(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$r(a);for(var c=a.firstChild;c;){var y=c.nextSibling,x=c.nodeName;c[lr]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=y}}else a==="body"&&$r(e.ownerDocument.body);a=u}while(a);zl(t)}function Xp(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function uc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":uc(a),mo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function n1(e,t,a,i){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[lr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ln(e.nextSibling),e===null)break}return null}function a1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ln(e.nextSibling),e===null))return null;return e}function Zp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(e.nextSibling),e===null))return null;return e}function cc(e){return e.data==="$?"||e.data==="$~"}function fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function l1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var dc=null;function Kp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ln(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Qp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Jp(e,t,a){switch(t=ps(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $r(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mo(e)}var rn=new Map,Wp=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yn=U.d;U.d={f:r1,r:i1,D:s1,C:o1,L:u1,m:c1,X:d1,S:f1,M:h1};function r1(){var e=Yn.f(),t=ss();return e||t}function i1(e){var t=el(e);t!==null&&t.tag===5&&t.type==="form"?pm(t):Yn.r(e)}var Rl=typeof document>"u"?null:document;function Pp(e,t,a){var i=Rl;if(i&&typeof t=="string"&&t){var u=Jt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Wp.has(u)||(Wp.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Et(t,"link",e),dt(t),i.head.appendChild(t)))}}function s1(e){Yn.D(e),Pp("dns-prefetch",e,null)}function o1(e,t){Yn.C(e,t),Pp("preconnect",e,t)}function u1(e,t,a){Yn.L(e,t,a);var i=Rl;if(i&&e&&t){var u='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Jt(a.imageSizes)+'"]')):u+='[href="'+Jt(e)+'"]';var c=u;switch(t){case"style":c=Ml(e);break;case"script":c=Dl(e)}rn.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),rn.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Gr(c))||t==="script"&&i.querySelector(Yr(c))||(t=i.createElement("link"),Et(t,"link",e),dt(t),i.head.appendChild(t)))}}function c1(e,t){Yn.m(e,t);var a=Rl;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Jt(i)+'"][href="'+Jt(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Dl(e)}if(!rn.has(c)&&(e=v({rel:"modulepreload",href:e},t),rn.set(c,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Yr(c)))return}i=a.createElement("link"),Et(i,"link",e),dt(i),a.head.appendChild(i)}}}function f1(e,t,a){Yn.S(e,t,a);var i=Rl;if(i&&e){var u=tl(i).hoistableStyles,c=Ml(e);t=t||"default";var y=u.get(c);if(!y){var x={loading:0,preload:null};if(y=i.querySelector(Gr(c)))x.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=rn.get(c))&&hc(e,a);var T=y=i.createElement("link");dt(T),Et(T,"link",e),T._p=new Promise(function(H,X){T.onload=H,T.onerror=X}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,ys(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:x},u.set(c,y)}}}function d1(e,t){Yn.X(e,t);var a=Rl;if(a&&e){var i=tl(a).hoistableScripts,u=Dl(e),c=i.get(u);c||(c=a.querySelector(Yr(u)),c||(e=v({src:e,async:!0},t),(t=rn.get(u))&&mc(e,t),c=a.createElement("script"),dt(c),Et(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function h1(e,t){Yn.M(e,t);var a=Rl;if(a&&e){var i=tl(a).hoistableScripts,u=Dl(e),c=i.get(u);c||(c=a.querySelector(Yr(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=rn.get(u))&&mc(e,t),c=a.createElement("script"),dt(c),Et(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function eg(e,t,a,i){var u=(u=Y.current)?gs(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ml(a.href),a=tl(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ml(a.href);var c=tl(u).hoistableStyles,y=c.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,y),(c=u.querySelector(Gr(e)))&&!c._p&&(y.instance=c,y.state.loading=5),rn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(e,a),c||m1(u,e,a,y.state))),t&&i===null)throw Error(s(528,""));return y}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Dl(a),a=tl(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ml(e){return'href="'+Jt(e)+'"'}function Gr(e){return'link[rel="stylesheet"]['+e+"]"}function tg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function m1(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Et(t,"link",a),dt(t),e.head.appendChild(t))}function Dl(e){return'[src="'+Jt(e)+'"]'}function Yr(e){return"script[async]"+e}function ng(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(i)return t.instance=i,dt(i),i;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),dt(i),Et(i,"style",u),ys(i,a.precedence,e),t.instance=i;case"stylesheet":u=Ml(a.href);var c=e.querySelector(Gr(u));if(c)return t.state.loading|=4,t.instance=c,dt(c),c;i=tg(a),(u=rn.get(u))&&hc(i,u),c=(e.ownerDocument||e).createElement("link"),dt(c);var y=c;return y._p=new Promise(function(x,T){y.onload=x,y.onerror=T}),Et(c,"link",i),t.state.loading|=4,ys(c,a.precedence,e),t.instance=c;case"script":return c=Dl(a.src),(u=e.querySelector(Yr(c)))?(t.instance=u,dt(u),u):(i=a,(u=rn.get(c))&&(i=v({},a),mc(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),dt(u),Et(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,ys(i,a.precedence,e));return t.instance}function ys(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,y=0;y<i.length;y++){var x=i[y];if(x.dataset.precedence===t)c=x;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bs=null;function ag(e,t,a){if(bs===null){var i=new Map,u=bs=new Map;u.set(a,i)}else u=bs,i=u.get(a),i||(i=new Map,u.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[lr]||c[bt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(t)||"";y=e+y;var x=i.get(y);x?x.push(c):i.set(y,[c])}}return i}function lg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function p1(e,t,a){if(a===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 rg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function g1(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ml(i.href),c=t.querySelector(Gr(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,dt(c);return}c=t.ownerDocument||t,i=tg(i),(u=rn.get(u))&&hc(i,u),c=c.createElement("link"),dt(c);var y=c;y._p=new Promise(function(x,T){y.onload=x,y.onerror=T}),Et(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=vs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var pc=0;function y1(e,t){return e.stylesheets&&e.count===0&&Ss(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Ss(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&pc===0&&(pc=62500*Jv());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ss(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>pc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ss(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function Ss(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach(b1,e),xs=null,vs.call(e))}function b1(e,t){if(!(t.state.loading&4)){var a=xs.get(e);if(a)var i=a.get(null);else{a=new Map,xs.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var y=u[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),i=y)}i&&a.set(null,i)}u=t.instance,y=u.getAttribute("data-precedence"),c=a.get(y)||i,c===i&&a.set(null,u),a.set(y,u),this.count++,i=vs.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var qr={$$typeof:j,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function v1(e,t,a,i,u,c,y,x,T){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=uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.hiddenUpdates=uo(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ig(e,t,a,i,u,c,y,x,T,H,X,J){return e=new v1(e,t,a,y,T,H,X,J,x),t=1,c===!0&&(t|=24),c=Bt(3,null,null,t),e.current=c,c.stateNode=e,t=Zo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Wo(c),e}function sg(e){return e?(e=fl,e):fl}function og(e,t,a,i,u,c){u=sg(u),i.context===null?i.context=u:i.pendingContext=u,i=Pn(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=ea(e,i,t),a!==null&&(Mt(a,e,t),Sr(a,e,t))}function ug(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function gc(e,t){ug(e,t),(e=e.alternate)&&ug(e,t)}function cg(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&Mt(t,e,67108864),gc(e,67108864)}}function fg(e){if(e.tag===13||e.tag===31){var t=qt();t=co(t);var a=ka(e,t);a!==null&&Mt(a,e,t),gc(e,t)}}var Es=!0;function x1(e,t,a,i){var u=D.T;D.T=null;var c=U.p;try{U.p=2,yc(e,t,a,i)}finally{U.p=c,D.T=u}}function S1(e,t,a,i){var u=D.T;D.T=null;var c=U.p;try{U.p=8,yc(e,t,a,i)}finally{U.p=c,D.T=u}}function yc(e,t,a,i){if(Es){var u=bc(i);if(u===null)ac(e,t,i,ws,a),hg(e,i);else if(w1(u,e,t,a,i))i.stopPropagation();else if(hg(e,i),t&4&&-1<E1.indexOf(e)){for(;u!==null;){var c=el(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=wa(c.pendingLanes);if(y!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;y;){var T=1<<31-Lt(y);x.entanglements[1]|=T,y&=~T}vn(c),(He&6)===0&&(rs=Re()+500,Ur(0))}}break;case 31:case 13:x=ka(c,2),x!==null&&Mt(x,c,2),ss(),gc(c,2)}if(c=bc(i),c===null&&ac(e,t,i,ws,a),c===u)break;u=c}u!==null&&i.stopPropagation()}else ac(e,t,i,null,a)}}function bc(e){return e=xo(e),vc(e)}var ws=null;function vc(e){if(ws=null,e=Pa(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ws=e,null}function dg(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(At()){case pn:return 2;case Ea:return 8;case di:case o0:return 32;case Ed:return 268435456;default:return 32}default:return 32}}var xc=!1,fa=null,da=null,ha=null,Ir=new Map,Fr=new Map,ma=[],E1="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 hg(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(t.pointerId)}}function Vr(e,t,a,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=el(t),t!==null&&cg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function w1(e,t,a,i,u){switch(t){case"focusin":return fa=Vr(fa,e,t,a,i,u),!0;case"dragenter":return da=Vr(da,e,t,a,i,u),!0;case"mouseover":return ha=Vr(ha,e,t,a,i,u),!0;case"pointerover":var c=u.pointerId;return Ir.set(c,Vr(Ir.get(c)||null,e,t,a,i,u)),!0;case"gotpointercapture":return c=u.pointerId,Fr.set(c,Vr(Fr.get(c)||null,e,t,a,i,u)),!0}return!1}function mg(e){var t=Pa(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,kd(e.priority,function(){fg(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,kd(e.priority,function(){fg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bc(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);vo=i,a.target.dispatchEvent(i),vo=null}else return t=el(a),t!==null&&cg(t),e.blockedOn=a,!1;t.shift()}return!0}function pg(e,t,a){Ns(e)&&a.delete(t)}function N1(){xc=!1,fa!==null&&Ns(fa)&&(fa=null),da!==null&&Ns(da)&&(da=null),ha!==null&&Ns(ha)&&(ha=null),Ir.forEach(pg),Fr.forEach(pg)}function As(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,N1)))}var Ts=null;function gg(e){Ts!==e&&(Ts=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ts===e&&(Ts=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(vc(i||a)===null)continue;break}var c=el(a);c!==null&&(e.splice(t,3),t-=3,bu(c,{pending:!0,data:u,method:a.method,action:i},i,u))}}))}function zl(e){function t(T){return As(T,e)}fa!==null&&As(fa,e),da!==null&&As(da,e),ha!==null&&As(ha,e),Ir.forEach(t),Fr.forEach(t);for(var a=0;a<ma.length;a++){var i=ma[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ma.length&&(a=ma[0],a.blockedOn===null);)mg(a),a.blockedOn===null&&ma.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],y=u[Ct]||null;if(typeof c=="function")y||gg(a);else if(y){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,y=c[Ct]||null)x=y.formAction;else if(vc(u)!==null)continue}else x=y.action;typeof x=="function"?a[i+1]=x:(a.splice(i,3),i-=3),gg(a)}}}function yg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Sc(e){this._internalRoot=e}Cs.prototype.render=Sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=qt();og(a,i,e,t,null,null)},Cs.prototype.unmount=Sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;og(e.current,2,null,e,null,null),ss(),t[Wa]=null}};function Cs(e){this._internalRoot=e}Cs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ma.length&&t!==0&&t<ma[a].priority;a++);ma.splice(a,0,e),a===0&&mg(e)}};var bg=l.version;if(bg!=="19.2.4")throw Error(s(527,bg,"19.2.4"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var A1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ks.isDisabled&&ks.supportsFiber)try{tr=ks.inject(A1),zt=ks}catch{}}return Zr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,i="",u=Am,c=Tm,y=Cm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ig(e,1,!1,null,null,a,i,null,u,c,y,yg),e[Wa]=t.current,nc(e),new Sc(t)},Zr.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var i=!1,u="",c=Am,y=Tm,x=Cm,T=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=ig(e,1,!0,t,a??null,i,u,T,c,y,x,yg),t.context=sg(null),a=t.current,i=qt(),i=co(i),u=Pn(i),u.callback=null,ea(a,u,i),a=i,t.current.lanes=a,ar(t,a),vn(t),e[Wa]=t.current,nc(e),new Cs(t)},Zr.version="19.2.4",Zr}var kg;function L1(){if(kg)return wc.exports;kg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),wc.exports=z1(),wc.exports}var U1=L1();function En(n){return Object.keys(n)}function kc(n){return n&&typeof n=="object"&&!Array.isArray(n)}function mf(n,l){const r={...n},s=l;return kc(n)&&kc(l)&&Object.keys(l).forEach(o=>{kc(s[o])&&o in n?r[o]=mf(r[o],s[o]):r[o]=s[o]}),r}function B1(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function H1(n){var l;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(l=n.match(/^calc\((.*?)\)$/))==null?void 0:l[1].split("*")[0].trim()}function $1(n){const l=H1(n);return typeof l=="number"?l:typeof l=="string"?l.includes("calc")||l.includes("var")?l:l.includes("px")?Number(l.replace("px","")):l.includes("rem")?Number(l.replace("rem",""))*16:l.includes("em")?Number(l.replace("em",""))*16:Number(l):NaN}function _g(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function Hy(n,{shouldScale:l=!1}={}){function r(s){if(s===0||s==="0")return`0${n}`;if(typeof s=="number"){const o=`${s/16}${n}`;return l?_g(o):o}if(typeof s=="string"){if(s===""||s.startsWith("calc(")||s.startsWith("clamp(")||s.includes("rgba("))return s;if(s.includes(","))return s.split(",").map(f=>r(f)).join(",");if(s.includes(" "))return s.split(" ").map(f=>r(f)).join(" ");const o=s.replace("px","");if(!Number.isNaN(Number(o))){const f=`${Number(o)/16}${n}`;return l?_g(f):f}}return s}return r}const oe=Hy("rem",{shouldScale:!0}),jg=Hy("em");function pf(n){return Object.keys(n).reduce((l,r)=>(n[r]!==void 0&&(l[r]=n[r]),l),{})}function G1(n){if(typeof n=="number")return!0;if(typeof n=="string"){if(n.startsWith("calc(")||n.startsWith("var(")||n.includes(" ")&&n.trim()!=="")return!0;const l=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return n.trim().split(/\s+/).every(r=>l.test(r))}return!1}var C=hf();const _s=C1(C);function Y1(n){const l=C.createContext(null);return[l,()=>{const s=C.use(l);if(s===null)throw new Error(n);return s}]}const $y=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Og(n,l){if(typeof n=="function")return n(l);typeof n=="object"&&n!==null&&"current"in n&&(n.current=l)}function q1(...n){const l=new Map;return r=>{if(n.forEach(s=>{const o=Og(s,r);o&&l.set(s,o)}),l.size>0)return()=>{n.forEach(s=>{const o=l.get(s);o&&typeof o=="function"?o():Og(s,null)}),l.clear()}}}function I1(...n){return C.useCallback(q1(...n),n)}function F1({value:n,defaultValue:l,finalValue:r,onChange:s=()=>{}}){const[o,f]=C.useState(l!==void 0?l:r),h=(p,...m)=>{f(p),s==null||s(p,...m)};return n!==void 0?[n,s,!0]:[o,h,!1]}const Gy=/^(-?[\d.]+)px$/,gf=/^(-?[\d.]+)rem$/,qc=/^(-?[\d.]+)%$/;function hn(n){return typeof n=="string"&&(Gy.test(n)||gf.test(n))}function xn(n){return typeof n=="number"?n:parseFloat(n)}function Rg(n){var l;return n.panels.some(r=>hn(r.defaultSize)||hn(r.min)||hn(r.max)||hn(r.collapseThreshold))||hn(n.step)||hn(n.shiftStep)||(((l=n.sizes)==null?void 0:l.some(hn))??!1)}function Mg(){if(typeof window>"u")return 16;const n=parseFloat(getComputedStyle(document.documentElement).fontSize);return Number.isFinite(n)&&n>0?n:16}function Sn(n,l,r,s){if(!l)return xn(n);if(typeof n=="number")return n/100*r;const o=qc.exec(n);if(o)return parseFloat(o[1])/100*r;const f=gf.exec(n);if(f)return parseFloat(f[1])*s;const h=Gy.exec(n);return h?parseFloat(h[1]):0}function Yy(n,l,r,s){if(!l)return 1;let o=0;return n.forEach(f=>{hn(f)&&(o+=Sn(f,!0,r,s))}),o>r&&o>0?r/o:1}function Ll(n,l,r,s){if(!l)return n.map(m=>xn(m));let o=0,f=0;n.forEach(m=>{hn(m)?o+=Sn(m,!0,r,s):f+=xn(m)});const h=Math.max(0,r-o),p=Yy(n,l,r,s);return n.map(m=>hn(m)?Sn(m,!0,r,s)*p:f>0?xn(m)/f*h:0)}function Ic(n,l,r,s,o,f=1){if(!r)return typeof l=="string"&&qc.test(l)?`${n}%`:n;if(typeof l=="number")return s>0?n/s*100:l;if(qc.test(l))return`${s>0?n/s*100:parseFloat(l)}%`;const h=f>0?n/f:n;return gf.test(l)?`${o>0?h/o:0}rem`:`${h}px`}function _c(n,l,r,s,o,f){const h=Yy(r,s,o,f);let p=0;n.forEach((b,v)=>{hn(r[v])&&(p+=b)});const m=h<1&&p<o-1e-6,g=m?1:h;return n.map((b,v)=>m||Math.abs(b-l[v])>1e-6?Ic(b,r[v],s,o,f,g):r[v])}function js(n,l,r,s){return{defaultSize:Sn(n.defaultSize,l,r,s),min:n.min!=null?Sn(n.min,l,r,s):0,max:n.max!=null?Sn(n.max,l,r,s):l?r:100,collapseThreshold:n.collapseThreshold!=null?Sn(n.collapseThreshold,l,r,s):void 0,collapsible:n.collapsible}}function V1(n,l,r,s){return Sn(n,l,r,s)}function X1(n,l,r){return Math.min(Math.max(n,l),r)}function mn(n){return n.min??0}function ba(n){return n.max??1/0}function Ys(n){return n.collapseThreshold??mn(n)}function Z1(){return{isDragging:!1,handleIndex:-1,startPointer:0,containerSize:0,rootFontSize:16,pixelMode:!1,startSizes:[],startRaw:[],preCollapseSizes:[]}}function K1(n,l,r,s){const o=r,f=r+1,h=l[o],p=l[f],m=n[o]+s,g=n[f]-s;if(h.collapsible&&m<Ys(h)&&m<n[o]){const b=[...n];return b[f]+=b[o],b[o]=0,b}if(p.collapsible&&g<Ys(p)&&g<n[f]){const b=[...n];return b[o]+=b[f],b[f]=0,b}return null}function qy(n,l,r,s){const o=[...n],f=r,h=r+1,p=o[f]+o[h],m=Math.min(ba(l[f]),p-mn(l[h])),g=Math.max(mn(l[f]),p-ba(l[h])),b=X1(o[f]+s,g,m);return o[f]=b,o[h]=p-b,o}function Q1(n,l,r,s){const o=[...n];if(s>0){const f=r,h=ba(l[f])-o[f],p=Math.min(s,h);let m=0;for(let g=r+1;g<o.length&&m<p;g+=1){const b=o[g]-mn(l[g]),v=Math.min(b,p-m);o[g]-=v,m+=v}o[f]+=m}else if(s<0){const f=r+1,h=ba(l[f])-o[f],p=Math.min(Math.abs(s),h);let m=0;for(let g=r;g>=0&&m<p;g-=1){const b=o[g]-mn(l[g]),v=Math.min(b,p-m);o[g]-=v,m+=v}o[f]+=m}return o}function J1(n,l,r,s){const o=[...n];if(s>0){const f=r,h=ba(l[f])-o[f],p=Math.min(s,h),m=[];for(let b=r+1;b<o.length;b+=1)o[b]>mn(l[b])&&m.push(b);let g=p;for(;g>.001&&m.length>0;){const b=g/m.length,v=[];for(let S=0;S<m.length;S+=1){const E=m[S],w=o[E]-mn(l[E]),A=Math.min(w,b);o[E]-=A,g-=A,w<=b+.001&&v.push(S)}for(let S=v.length-1;S>=0;S-=1)m.splice(v[S],1);if(v.length===0)break}o[f]+=p-g}else if(s<0){const f=r+1,h=ba(l[f])-o[f],p=Math.min(Math.abs(s),h),m=[];for(let b=r;b>=0;b-=1)o[b]>mn(l[b])&&m.push(b);let g=p;for(;g>.001&&m.length>0;){const b=g/m.length,v=[];for(let S=0;S<m.length;S+=1){const E=m[S],w=o[E]-mn(l[E]),A=Math.min(w,b);o[E]-=A,g-=A,w<=b+.001&&v.push(S)}for(let S=v.length-1;S>=0;S-=1)m.splice(v[S],1);if(v.length===0)break}o[f]+=p-g}return o}function Dg(n,l,r,s,o){if(typeof o=="function")return o({sizes:[...n],panels:l,handleIndex:r,delta:s});if(o==="nearest"||o==="equal"){const h=(o==="nearest"?Q1:J1)(n,l,r,s),p=r,m=r+1,g=l[p],b=l[m];if(g.collapsible&&h[p]<Ys(g)&&h[p]<n[p]){const v=h[p];h[m]+=v,h[p]=0}else if(b.collapsible&&h[m]<Ys(b)&&h[m]<n[m]){const v=h[m];h[p]+=v,h[m]=0}return h}const f=K1(n,l,r,s);return f||qy(n,l,r,s)}function W1(n){const{panels:l,orientation:r="horizontal",sizes:s,onSizeChange:o,onCollapseChange:f,redistribute:h,step:p=1,shiftStep:m=10,dir:g="ltr",resetOnDoubleClick:b=!0,enabled:v=!0}=n,S=Rg(n),E=l.map(Y=>Y.defaultSize),[w,A]=F1({value:s,defaultValue:E,finalValue:E,onChange:o}),[k,z]=C.useState(-1),[L,j]=C.useState(0),q=C.useRef(n);q.current=n;const I=C.useRef(Z1()),V=C.useRef(null),O=C.useRef(0),R=C.useRef(16),Z=C.useRef(null),se=C.useRef(0),P=C.useRef(w);P.current=w;const ue=C.useRef(E),le=w.map(Y=>xn(Y)===0),W=C.useCallback(()=>{const Y=V.current;if(!Y)return 0;const ee=Y.getBoundingClientRect();return(q.current.orientation??"horizontal")==="horizontal"?ee.width:ee.height},[]),K=C.useCallback(Y=>{P.current=Y,A(Y)},[A]),D=C.useCallback(Y=>{var Le;if(!((Le=l[Y])!=null&&Le.collapsible))return;const ee=P.current;if(xn(ee[Y])===0)return;const ye=S?O.current||W():0,de=R.current,he=Ll(ee,S,ye,de);ue.current=[...ee];const Ee=he[Y];he[Y]=0;const ke=Y===0?1:Y-1;he[ke]+=Ee,K(he.map((Oe,Ce)=>Ic(Oe,ee[Ce],S,ye,de))),f==null||f(Y,!0)},[l,S,W,K,f]),U=C.useCallback(Y=>{var $e;if(!(($e=l[Y])!=null&&$e.collapsible))return;const ee=P.current;if(xn(ee[Y])!==0)return;const ye=S?O.current||W():0,de=R.current,he=Ll(ee,S,ye,de),Ee=ue.current,ke=Sn(Ee[Y]!=null&&xn(Ee[Y])!==0?Ee[Y]:l[Y].defaultSize,S,ye,de),Le=Y===0?1:Y-1,Oe=l[Le].min!=null?Sn(l[Le].min,S,ye,de):0,Ce=Math.max(0,he[Le]-Oe),ge=Math.min(ke,Ce);ge<=0||(he[Y]=ge,he[Le]-=ge,K(he.map((et,tt)=>Ic(et,ee[tt],S,ye,de))),f==null||f(Y,!1))},[l,S,W,K,f]),re=C.useCallback(Y=>{xn(P.current[Y])===0?U(Y):D(Y)},[D,U]),ce=C.useCallback((Y,ee,ye,de)=>{const he=q.current.onCollapseChange;for(const Ee of ye){const ke=xn(Y[Ee])===0,Le=ee[Ee]===0;!ke&&Le?(ue.current=[...de],he==null||he(Ee,!0)):ke&&!Le&&(he==null||he(Ee,!1))}},[]),fe=C.useCallback(Y=>{const ee=P.current,ye=Y,de=Y+1;if(ye<0||de>=ee.length)return;const he=S?O.current||W():0,Ee=R.current,ke=Ll(ee,S,he,Ee),Le=q.current.panels.map(et=>js(et,S,he,Ee)),Oe=ke[ye]+ke[de],Ce=Le[ye].defaultSize,ge=Ce+Le[de].defaultSize,$e=qy(ke,Le,ye,(ge===0?Oe/2:Oe*(Ce/ge))-ke[ye]);ce(ee,$e,[ye,de],ee),K(_c($e,ke,ee,S,he,Ee))},[ce,K,S,W]),N=C.useCallback(Y=>{V.current=Y},[]);C.useEffect(()=>{if(!S||typeof ResizeObserver>"u")return;const Y=V.current;if(!Y)return;let ee=0;const ye=()=>{const he=Y.getBoundingClientRect(),Ee=(q.current.orientation??"horizontal")==="horizontal"?he.width:he.height;R.current=Mg(),O.current=Ee,j(ke=>ke!==Ee?Ee:ke)},de=new ResizeObserver(()=>{cancelAnimationFrame(ee),ee=requestAnimationFrame(ye)});return de.observe(Y),ye(),()=>{cancelAnimationFrame(ee),de.disconnect()}},[S,r]);const G=C.useRef(new Map),te=C.useRef(new Map),ae=C.useCallback(Y=>{if(G.current.has(Y))return G.current.get(Y);const ee=ye=>{const de=te.current.get(Y);if(de&&(de.abort(),te.current.delete(Y)),!ye)return;const he=new AbortController;te.current.set(Y,he);const Ee=Ce=>{var pn,Ea;if(q.current.enabled===!1||Ce.button!==0)return;const ge=V.current;if(!ge)return;const $e=q.current,et=($e.orientation??"horizontal")==="horizontal",tt=ge.getBoundingClientRect(),gt=et?tt.width:tt.height,wt=et?Ce.clientX:Ce.clientY,Kt=Rg($e),yt=Mg(),Re=I.current;Re.isDragging=!0,Re.handleIndex=Y,Re.startPointer=wt,Re.containerSize=gt,Re.rootFontSize=yt,Re.pixelMode=Kt,Re.startRaw=[...P.current],Re.startSizes=Ll(Re.startRaw,Kt,gt,yt),Re.preCollapseSizes=[...ue.current],z(Y),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor=et?"col-resize":"row-resize",(pn=$e.onResizeStart)==null||pn.call($e,Y),(Ea=Z.current)==null||Ea.abort(),Z.current=new AbortController;const At=Z.current.signal;document.addEventListener("pointermove",Le,{signal:At}),document.addEventListener("pointerup",Oe,{signal:At}),document.addEventListener("pointercancel",Oe,{signal:At})},ke=Ce=>{const ge=I.current;if(!ge.containerSize)return;const $e=q.current,et=($e.orientation??"horizontal")==="horizontal",tt=et&&$e.dir==="rtl",gt=et?Ce.clientX:Ce.clientY,wt=(tt?-1:1)*(gt-ge.startPointer),Kt=ge.pixelMode?wt:wt/ge.containerSize*100,yt=$e.panels.map(Ea=>js(Ea,ge.pixelMode,ge.containerSize,ge.rootFontSize)),Re=Dg(ge.startSizes,yt,ge.handleIndex,Kt,$e.redistribute),At=P.current;ce(At,Re,[ge.handleIndex,ge.handleIndex+1],ge.startRaw);const pn=_c(Re,ge.startSizes,ge.startRaw,ge.pixelMode,ge.containerSize,ge.rootFontSize);P.current=pn,A(pn)},Le=Ce=>{I.current.isDragging&&(cancelAnimationFrame(se.current),se.current=requestAnimationFrame(()=>{ke(Ce)}))},Oe=Ce=>{var et,tt,gt;const ge=I.current;if(!ge.isDragging)return;cancelAnimationFrame(se.current),ke(Ce),ge.isDragging=!1;const $e=ge.handleIndex;ge.handleIndex=-1,z(-1),document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="",(et=Z.current)==null||et.abort(),Z.current=null,(gt=(tt=q.current).onResizeEnd)==null||gt.call(tt,$e,[...P.current])};ye.addEventListener("pointerdown",Ee,{signal:he.signal})};return G.current.set(Y,ee),ee},[A]),ne=C.useCallback(Y=>{const{index:ee}=Y,ye=r,de=R.current,he=Ll(w,S,L,de),Ee=l.map(Oe=>js(Oe,S,L,de)),ke=he[ee]??0,Le=Ee[ee];return{ref:ae(ee),role:"separator","aria-orientation":ye,"aria-valuenow":Math.round(ke),"aria-valuemin":Math.round(mn(Le)),"aria-valuemax":Math.round(ba(Le)),tabIndex:0,onKeyDown:Oe=>{if(!v)return;const Ce=ye==="horizontal",ge=g==="rtl",$e=S?O.current||W():0,et=R.current,tt=Ll(w,S,$e,et),gt=l.map(At=>js(At,S,$e,et)),wt=gt[ee],Kt=gt[ee+1];let yt=0;const Re=V1(Oe.shiftKey?m:p,S,$e,et);switch(Oe.key){case"ArrowLeft":if(!Ce)return;yt=ge?Re:-Re;break;case"ArrowRight":if(!Ce)return;yt=ge?-Re:Re;break;case"ArrowUp":if(Ce)return;yt=-Re;break;case"ArrowDown":if(Ce)return;yt=Re;break;case"Home":yt=-(tt[ee]-mn(wt));break;case"End":yt=ba(wt)-tt[ee];break;case"Enter":{const At=wt==null?void 0:wt.collapsible,pn=Kt==null?void 0:Kt.collapsible;if(At&&tt[ee]<=tt[ee+1]){re(ee),Oe.preventDefault();return}if(pn){re(ee+1),Oe.preventDefault();return}if(At){re(ee),Oe.preventDefault();return}return}default:return}if(Oe.preventDefault(),yt!==0){const At=Dg(tt,gt,ee,yt,h);ce(w,At,[ee,ee+1],w),K(_c(At,tt,w,S,$e,et))}},onDoubleClick:()=>{!v||!b||fe(ee)},"data-active":k===ee||void 0,"data-orientation":ye}},[r,w,l,S,L,v,g,p,m,b,k,h,W,ae,re,K,ce,fe]);return C.useEffect(()=>()=>{var Y;(Y=Z.current)==null||Y.abort(),Z.current=null,te.current.forEach(ee=>ee.abort()),te.current.clear(),cancelAnimationFrame(se.current),I.current.isDragging&&(I.current.isDragging=!1,document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="")},[]),{ref:N,sizes:w,pixelMode:S,collapsed:le,activeHandle:k,getHandleProps:ne,setSizes:K,collapse:D,expand:U,toggleCollapse:re,reset:fe}}function Iy(n){var l,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(l=0;l<o;l++)n[l]&&(r=Iy(n[l]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function Zs(){for(var n,l,r=0,s="",o=arguments.length;r<o;r++)(n=arguments[r])&&(l=Iy(n))&&(s&&(s+=" "),s+=l);return s}const P1={};function ex(n){const l={};return n.forEach(r=>{Object.entries(r).forEach(([s,o])=>{l[s]?l[s]=Zs(l[s],o):l[s]=o})}),l}function qs({theme:n,classNames:l,props:r,stylesCtx:s}){return ex((Array.isArray(l)?l:[l]).map(o=>typeof o=="function"?o(n,r,s):o||P1))}function Fc({theme:n,styles:l,props:r,stylesCtx:s}){const o=Array.isArray(l)?l:[l],f={};for(const h of o)typeof h=="function"?Object.assign(f,h(n,r,s)):h&&Object.assign(f,h);return f}function zg(n){return n==="auto"||n==="dark"||n==="light"}function tx({key:n="mantine-color-scheme-value"}={}){let l;return{get:r=>{if(typeof window>"u")return r;try{const s=window.localStorage.getItem(n);return zg(s)?s:r}catch{return r}},set:r=>{try{window.localStorage.setItem(n,r)}catch(s){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",s)}},subscribe:r=>{l=s=>{s.storageArea===window.localStorage&&s.key===n&&zg(s.newValue)&&r(s.newValue)},window.addEventListener("storage",l)},unsubscribe:()=>{window.removeEventListener("storage",l)},clear:()=>{window.localStorage.removeItem(n)}}}function ei(n,l){return typeof n.primaryShade=="number"?n.primaryShade:l==="dark"?n.primaryShade.dark:n.primaryShade.light}function nx(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function ax(n){let l=n.replace("#","");if(l.length===3){const s=l.split("");l=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(l.length===8){const s=parseInt(l.slice(6,8),16)/255;return{r:parseInt(l.slice(0,2),16),g:parseInt(l.slice(2,4),16),b:parseInt(l.slice(4,6),16),a:s}}const r=parseInt(l,16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:1}}function lx(n){const[l,r,s,o]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:l,g:r,b:s,a:o===void 0?1:o}}function rx(n){const l=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!l)return{r:0,g:0,b:0,a:1};const r=parseInt(l[1],10),s=parseInt(l[2],10)/100,o=parseInt(l[3],10)/100,f=l[5]?parseFloat(l[5]):void 0,h=(1-Math.abs(2*o-1))*s,p=r/60,m=h*(1-Math.abs(p%2-1)),g=o-h/2;let b,v,S;return p>=0&&p<1?(b=h,v=m,S=0):p>=1&&p<2?(b=m,v=h,S=0):p>=2&&p<3?(b=0,v=h,S=m):p>=3&&p<4?(b=0,v=m,S=h):p>=4&&p<5?(b=m,v=0,S=h):(b=h,v=0,S=m),{r:Math.round((b+g)*255),g:Math.round((v+g)*255),b:Math.round((S+g)*255),a:f||1}}function yf(n){return nx(n)?ax(n):n.startsWith("rgb")?lx(n):n.startsWith("hsl")?rx(n):{r:0,g:0,b:0,a:1}}function jc(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function ix(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function sx(n){if(n.startsWith("oklch("))return(ix(n)||0)/100;const{r:l,g:r,b:s}=yf(n),o=l/255,f=r/255,h=s/255,p=jc(o),m=jc(f),g=jc(h);return .2126*p+.7152*m+.0722*g}function Kr(n,l=.179){return n.startsWith("var(")?!1:sx(n)>l}function ri({color:n,theme:l,colorScheme:r}){if(typeof n!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof n}`);if(n==="bright")return{color:n,value:r==="dark"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Kr(r==="dark"?l.white:l.black,l.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:r==="dark"?l.colors.dark[2]:l.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Kr(r==="dark"?l.colors.dark[2]:l.colors.gray[6],l.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Kr(n==="white"?l.white:l.black,l.luminanceThreshold),variable:`--mantine-color-${n}`};const[s,o]=n.split("."),f=o?Number(o):void 0,h=s in l.colors;if(h){const p=f!==void 0?l.colors[s][f]:l.colors[s][ei(l,r||"light")];return{color:s,value:p,shade:f,isThemeColor:h,isLight:Kr(p,l.luminanceThreshold),variable:o?`--mantine-color-${s}-${f}`:`--mantine-color-${s}-filled`}}return{color:n,value:n,isThemeColor:h,isLight:Kr(n,l.luminanceThreshold),shade:f,variable:void 0}}function Vc(n,l){const r=ri({color:n||l.primaryColor,theme:l});return r.variable?`var(${r.variable})`:n}function bf(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function Ia(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r,g:s,b:o,a:f}=yf(n),h=1-l,p=m=>Math.round(m*h);return`rgba(${p(r)}, ${p(s)}, ${p(o)}, ${f})`}function Lg(n,l){const r={from:(n==null?void 0:n.from)||l.defaultGradient.from,to:(n==null?void 0:n.to)||l.defaultGradient.to,deg:(n==null?void 0:n.deg)??l.defaultGradient.deg??0},s=Vc(r.from,l),o=Vc(r.to,l);return`linear-gradient(${r.deg}deg, ${s} 0%, ${o} 100%)`}function Ya(n,l){if(typeof n!="string"||l>1||l<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-l)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${l})`):n.replace(")",` / ${l})`);const{r,g:s,b:o}=yf(n);return`rgba(${r}, ${s}, ${o}, ${l})`}const Ug=Ya,ox=({color:n,theme:l,variant:r,gradient:s,autoContrast:o})=>{const f=ri({color:n,theme:l}),h=typeof o=="boolean"?o:l.autoContrast;if(r==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(r==="filled"){const p=f.isThemeColor&&f.shade===void 0&&bf(l.colors[f.color]),m=h?p?`var(--mantine-color-${f.color}-contrast)`:f.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)":"var(--mantine-color-white)";return f.isThemeColor?f.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:m,border:`${oe(1)} solid transparent`}:{background:`var(--mantine-color-${f.color}-${f.shade})`,hover:`var(--mantine-color-${f.color}-${f.shade===9?8:f.shade+1})`,color:m,border:`${oe(1)} solid transparent`}:{background:n,hover:Ia(n,.1),color:m,border:`${oe(1)} solid transparent`}}if(r==="light"){if(f.isThemeColor){if(f.shade===void 0)return{background:`var(--mantine-color-${n}-light)`,hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${oe(1)} solid transparent`};const p=l.colors[f.color][f.shade];return{background:p,hover:Ia(p,.1),color:`var(--mantine-color-${f.color}-light-color)`,border:`${oe(1)} solid transparent`}}return{background:Ya(n,.1),hover:Ya(n,.12),color:n,border:`${oe(1)} solid transparent`}}if(r==="outline")return f.isThemeColor?f.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${oe(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:Ya(l.colors[f.color][f.shade],.05),color:`var(--mantine-color-${f.color}-${f.shade})`,border:`${oe(1)} solid var(--mantine-color-${f.color}-${f.shade})`}:{background:"transparent",hover:Ya(n,.05),color:n,border:`${oe(1)} solid ${n}`};if(r==="subtle"){if(f.isThemeColor){if(f.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${oe(1)} solid transparent`};const p=l.colors[f.color][f.shade];return{background:"transparent",hover:Ya(p,.12),color:`var(--mantine-color-${f.color}-${Math.min(f.shade,6)})`,border:`${oe(1)} solid transparent`}}return{background:"transparent",hover:Ya(n,.12),color:n,border:`${oe(1)} solid transparent`}}return r==="transparent"?f.isThemeColor?f.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${oe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${f.color}-${Math.min(f.shade,6)})`,border:`${oe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${oe(1)} solid transparent`}:r==="white"?f.isThemeColor?f.shade===void 0?{background:"var(--mantine-color-white)",hover:Ia(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${oe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ia(l.white,.01),color:`var(--mantine-color-${f.color}-${f.shade})`,border:`${oe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ia(l.white,.01),color:n,border:`${oe(1)} solid transparent`}:r==="gradient"?{background:Lg(s,l),hover:Lg(s,l),color:"var(--mantine-color-white)",border:"none"}:r==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${oe(1)} solid var(--mantine-color-default-border)`}:{}};function Fy({color:n,theme:l,autoContrast:r,colorScheme:s}){return(typeof r=="boolean"?r:l.autoContrast)&&ri({color:n||l.primaryColor,theme:l,colorScheme:s}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Xc(n,l,r){return Fy({color:r==="dark"?n.dark:n.light,theme:l,colorScheme:r,autoContrast:!0})}function Bg(n,l){const r=n.colors[n.primaryColor];return bf(r)?n.autoContrast?Xc(r,n,l):"var(--mantine-color-white)":Fy({color:r[ei(n,l)],theme:n,autoContrast:null})}const Vy=C.createContext(null);function Sa(){const n=C.use(Vy);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function ux(){return Sa().cssVariablesResolver}function cx(){return Sa().classNamesPrefix}function vf(){return Sa().getStyleNonce}function fx(){return Sa().withStaticClasses}function dx(){return Sa().headless}function hx(){var n;return(n=Sa().stylesTransform)==null?void 0:n.sx}function mx(){var n;return(n=Sa().stylesTransform)==null?void 0:n.styles}function px(){return Sa().deduplicateInlineStyles}function Ul(n,l){var o,f;const r=typeof window<"u"&&"matchMedia"in window&&((o=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:o.matches),s=n!=="auto"?n:r?"dark":"light";(f=l())==null||f.setAttribute("data-mantine-color-scheme",s)}function gx({manager:n,defaultColorScheme:l,getRootElement:r,forceColorScheme:s}){const o=C.useRef(null),[f,h]=C.useState(()=>n.get(l)),p=s||f,m=C.useCallback(b=>{s||(Ul(b,r),h(b),n.set(b))},[n.set,p,s]),g=C.useCallback(()=>{h(l),Ul(l,r),n.clear()},[n.clear,l]);return C.useEffect(()=>(n.subscribe(m),n.unsubscribe),[n.subscribe,n.unsubscribe]),$y(()=>{Ul(n.get(l),r)},[]),C.useEffect(()=>{var v;if(s)return Ul(s,r),()=>{};s===void 0&&Ul(f,r),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const b=S=>{f==="auto"&&Ul(S.matches?"dark":"light",r)};return(v=o.current)==null||v.addEventListener("change",b),()=>{var S;return(S=o.current)==null?void 0:S.removeEventListener("change",b)}},[f,s]),{colorScheme:p,setColorScheme:m,clearColorScheme:g}}const yx={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Hg="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",xf={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:yx,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:ox,autoContrast:!1,luminanceThreshold:.3,fontFamily:Hg,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"md",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Hg,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:oe(34),lineHeight:"1.3"},h2:{fontSize:oe(26),lineHeight:"1.35"},h3:{fontSize:oe(22),lineHeight:"1.4"},h4:{fontSize:oe(18),lineHeight:"1.45"},h5:{fontSize:oe(16),lineHeight:"1.5"},h6:{fontSize:oe(14),lineHeight:"1.5"}}},fontSizes:{xs:oe(12),sm:oe(14),md:oe(16),lg:oe(18),xl:oe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},fontWeights:{regular:"400",medium:"600",bold:"700"},radius:{xs:oe(2),sm:oe(4),md:oe(8),lg:oe(16),xl:oe(32)},spacing:{xs:oe(10),sm:oe(12),md:oe(16),lg:oe(20),xl:oe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), 0 ${oe(1)} ${oe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(10)} ${oe(15)} ${oe(-5)}, rgba(0, 0, 0, 0.04) 0 ${oe(7)} ${oe(7)} ${oe(-5)}`,md:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(20)} ${oe(25)} ${oe(-5)}, rgba(0, 0, 0, 0.04) 0 ${oe(10)} ${oe(10)} ${oe(-5)}`,lg:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(28)} ${oe(23)} ${oe(-7)}, rgba(0, 0, 0, 0.04) 0 ${oe(12)} ${oe(12)} ${oe(-7)}`,xl:`0 ${oe(1)} ${oe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${oe(36)} ${oe(28)} ${oe(-7)}, rgba(0, 0, 0, 0.04) 0 ${oe(17)} ${oe(17)} ${oe(-7)}`},other:{},components:{}},bx="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",$g="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Oc(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function Gg(n){if(!(n.primaryColor in n.colors))throw new Error(bx);if(typeof n.primaryShade=="object"&&(!Oc(n.primaryShade.dark)||!Oc(n.primaryShade.light)))throw new Error($g);if(typeof n.primaryShade=="number"&&!Oc(n.primaryShade))throw new Error($g)}function vx(n,l){var s;if(!l)return Gg(n),n;const r=mf(n,l);return l.fontFamily&&!((s=l.headings)!=null&&s.fontFamily)&&(r.headings={...r.headings,fontFamily:l.fontFamily}),Gg(r),r}const Sf=C.createContext(null),xx=()=>C.use(Sf)||xf;function ii(){const n=C.use(Sf);if(!n)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return n}function Xy({theme:n,children:l,inherit:r=!0}){const s=xx(),o=C.useMemo(()=>vx(r?s:xf,n),[n,s,r]);return d.jsx(Sf,{value:o,children:l})}Xy.displayName="@mantine/core/MantineThemeProvider";function Rc(n){return Object.entries(n).map(([l,r])=>`${l}: ${r};`).join("")}function Zy(n,l){const r=l?[l]:[":root",":host"],s=Rc(n.variables),o=s?`${r.join(", ")}{${s}}`:"",f=Rc(n.dark),h=Rc(n.light),p=m=>r.map(g=>g===":host"?`${g}([data-mantine-color-scheme="${m}"])`:`${g}[data-mantine-color-scheme="${m}"]`).join(", ");return`${o}
|
|
50
|
+
|
|
51
|
+
${f?`${p("dark")}{${f}}`:""}
|
|
52
|
+
|
|
53
|
+
${h?`${p("light")}{${h}}`:""}`}function Os({theme:n,color:l,colorScheme:r,name:s=l,withColorValues:o=!0}){if(!n.colors[l])return{};if(r==="light"){const p=ei(n,"light"),m={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-filled)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${p})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${p===9?8:p+1})`,[`--mantine-color-${s}-light`]:`var(--mantine-color-${s}-1)`,[`--mantine-color-${s}-light-hover`]:`var(--mantine-color-${s}-2)`,[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-9)`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${p})`,[`--mantine-color-${s}-outline-hover`]:Ug(n.colors[l][p],.05)};return o?{[`--mantine-color-${s}-0`]:n.colors[l][0],[`--mantine-color-${s}-1`]:n.colors[l][1],[`--mantine-color-${s}-2`]:n.colors[l][2],[`--mantine-color-${s}-3`]:n.colors[l][3],[`--mantine-color-${s}-4`]:n.colors[l][4],[`--mantine-color-${s}-5`]:n.colors[l][5],[`--mantine-color-${s}-6`]:n.colors[l][6],[`--mantine-color-${s}-7`]:n.colors[l][7],[`--mantine-color-${s}-8`]:n.colors[l][8],[`--mantine-color-${s}-9`]:n.colors[l][9],...m}:m}const f=ei(n,"dark"),h={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-4)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${f})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${f===9?8:f+1})`,[`--mantine-color-${s}-light`]:Ia(n.colors[l][9],.5),[`--mantine-color-${s}-light-hover`]:Ia(n.colors[l][9],.3),[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-0)`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${Math.max(f-4,0)})`,[`--mantine-color-${s}-outline-hover`]:Ug(n.colors[l][Math.max(f-4,0)],.05)};return o?{[`--mantine-color-${s}-0`]:n.colors[l][0],[`--mantine-color-${s}-1`]:n.colors[l][1],[`--mantine-color-${s}-2`]:n.colors[l][2],[`--mantine-color-${s}-3`]:n.colors[l][3],[`--mantine-color-${s}-4`]:n.colors[l][4],[`--mantine-color-${s}-5`]:n.colors[l][5],[`--mantine-color-${s}-6`]:n.colors[l][6],[`--mantine-color-${s}-7`]:n.colors[l][7],[`--mantine-color-${s}-8`]:n.colors[l][8],[`--mantine-color-${s}-9`]:n.colors[l][9],...h}:h}function Ga(n,l,r){En(l).forEach(s=>Object.assign(n,{[`--mantine-${r}-${s}`]:l[s]}))}const Ky=n=>{const l=ei(n,"light"),r=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:oe(n.defaultRadius),s={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":n.scale.toString(),"--mantine-cursor-type":n.cursorType,"--mantine-webkit-font-smoothing":n.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":n.fontSmoothing?"grayscale":"unset","--mantine-color-white":n.white,"--mantine-color-black":n.black,"--mantine-line-height":n.lineHeights.md,"--mantine-font-family":n.fontFamily,"--mantine-font-family-monospace":n.fontFamilyMonospace,"--mantine-font-family-headings":n.headings.fontFamily,"--mantine-heading-font-weight":n.headings.fontWeight,"--mantine-heading-text-wrap":n.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${n.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${n.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${n.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${n.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${n.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Bg(n,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":n.black,"--mantine-color-body":n.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-${l})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Bg(n,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-success":"var(--mantine-color-teal-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Ga(s.variables,n.breakpoints,"breakpoint"),Ga(s.variables,n.spacing,"spacing"),Ga(s.variables,n.fontSizes,"font-size"),Ga(s.variables,n.lineHeights,"line-height"),Ga(s.variables,n.shadows,"shadow"),Ga(s.variables,n.radius,"radius"),Ga(s.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((f,h)=>{s.variables[`--mantine-primary-color-${h}`]=`var(--mantine-color-${n.primaryColor}-${h})`}),En(n.colors).forEach(f=>{const h=n.colors[f];if(bf(h)){Object.assign(s.light,Os({theme:n,name:h.name,color:h.light,colorScheme:"light",withColorValues:!0})),Object.assign(s.dark,Os({theme:n,name:h.name,color:h.dark,colorScheme:"dark",withColorValues:!0})),s.light[`--mantine-color-${h.name}-contrast`]=Xc(h,n,"light"),s.dark[`--mantine-color-${h.name}-contrast`]=Xc(h,n,"dark");return}h.forEach((p,m)=>{s.variables[`--mantine-color-${f}-${m}`]=p}),Object.assign(s.light,Os({theme:n,color:f,colorScheme:"light",withColorValues:!1})),Object.assign(s.dark,Os({theme:n,color:f,colorScheme:"dark",withColorValues:!1}))});const o=n.headings.sizes;return En(o).forEach(f=>{s.variables[`--mantine-${f}-font-size`]=o[f].fontSize,s.variables[`--mantine-${f}-line-height`]=o[f].lineHeight,s.variables[`--mantine-${f}-font-weight`]=o[f].fontWeight||n.headings.fontWeight}),s};function Sx(){const n=ii(),l=vf(),r=En(n.breakpoints).reduce((s,o)=>{const f=n.breakpoints[o].includes("px"),h=$1(n.breakpoints[o]);return`${s}@media (max-width: ${f?`${h-.1}px`:jg(h-.1)}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${f?`${h}px`:jg(h)}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return d.jsx("style",{"data-mantine-styles":"classes",nonce:l==null?void 0:l(),dangerouslySetInnerHTML:{__html:r}})}function Ex({theme:n,generator:l}){const r=Ky(n),s=l==null?void 0:l(n);return s?mf(r,s):r}const Mc=Ky(xf);function wx(n){const l={variables:{},light:{},dark:{}};return En(n.variables).forEach(r=>{Mc.variables[r]!==n.variables[r]&&(l.variables[r]=n.variables[r])}),En(n.light).forEach(r=>{Mc.light[r]!==n.light[r]&&(l.light[r]=n.light[r])}),En(n.dark).forEach(r=>{Mc.dark[r]!==n.dark[r]&&(l.dark[r]=n.dark[r])}),l}function Nx(n){return Zy({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function Qy({cssVariablesSelector:n,deduplicateCssVariables:l}){const r=ii(),s=vf(),o=ux(),f=Ex({theme:r,generator:o}),h=(n===void 0||n===":root"||n===":host")&&l,p=h?wx(f):f,m=Zy(p,n);return m?d.jsx("style",{"data-mantine-styles":!0,nonce:s==null?void 0:s(),dangerouslySetInnerHTML:{__html:`${m}${h?"":Nx(n)}`}}):null}Qy.displayName="@mantine/CssVariables";function Ax({respectReducedMotion:n,getRootElement:l}){$y(()=>{var r;n&&((r=l())==null||r.setAttribute("data-respect-reduced-motion","true"))},[n])}function Jy({theme:n,children:l,getStyleNonce:r,withStaticClasses:s=!0,withGlobalClasses:o=!0,deduplicateCssVariables:f=!0,withCssVariables:h=!0,cssVariablesSelector:p,classNamesPrefix:m="mantine",colorSchemeManager:g=tx(),defaultColorScheme:b="light",getRootElement:v=()=>document.documentElement,cssVariablesResolver:S,forceColorScheme:E,stylesTransform:w,env:A,deduplicateInlineStyles:k=!1}){const{colorScheme:z,setColorScheme:L,clearColorScheme:j}=gx({defaultColorScheme:b,forceColorScheme:E,manager:g,getRootElement:v});return Ax({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:v}),d.jsx(Vy,{value:{colorScheme:z,setColorScheme:L,clearColorScheme:j,getRootElement:v,classNamesPrefix:m,getStyleNonce:r,cssVariablesResolver:S,cssVariablesSelector:p??":root",withStaticClasses:s,stylesTransform:w,env:A,deduplicateInlineStyles:k},children:d.jsxs(Xy,{theme:n,children:[h&&d.jsx(Qy,{cssVariablesSelector:p,deduplicateCssVariables:f}),o&&d.jsx(Sx,{}),l]})})}Jy.displayName="@mantine/core/MantineProvider";function Wy(n,l,r){var h;const s=ii(),o=(Array.isArray(n)?n:[n]).filter(Boolean);let f={};for(const p of o){const m=(h=s.components[p])==null?void 0:h.defaultProps,g=typeof m=="function"?m(s):m;g&&(f={...f,...g})}return{...l,...f,...pf(r)}}const Tx={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Cx({theme:n,options:l,unstyled:r}){return Zs((l==null?void 0:l.focusable)&&!r&&(n.focusClassName||Tx[n.focusRing]),(l==null?void 0:l.active)&&!r&&n.activeClassName)}function kx({selector:n,stylesCtx:l,options:r,props:s,theme:o}){return qs({theme:o,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||s,stylesCtx:l})[n]}function _x({selector:n,stylesCtx:l,theme:r,classNames:s,props:o}){return qs({theme:r,classNames:s,props:o,stylesCtx:l})[n]}function jx({rootSelector:n,selector:l,className:r}){return n===l?r:void 0}function Ox({selector:n,classes:l,unstyled:r}){return r?void 0:l[n]}function Rx({themeName:n,classNamesPrefix:l,selector:r,withStaticClass:s}){return s===!1?[]:n.map(o=>`${l}-${o}-${r}`)}function Mx({options:n,classes:l,selector:r,unstyled:s}){return n!=null&&n.variant&&!s?l[`${r}--${n.variant}`]:void 0}function Dx({theme:n,options:l,themeName:r,selector:s,classNamesPrefix:o,resolvedClassNames:f,resolvedThemeClassNames:h,classes:p,unstyled:m,className:g,rootSelector:b,props:v,stylesCtx:S,withStaticClasses:E,headless:w,transformedStyles:A}){return Zs(Cx({theme:n,options:l,unstyled:m||w}),h.map(k=>k[s]),Mx({options:l,classes:p,selector:s,unstyled:m||w}),f[s],_x({selector:s,stylesCtx:S,theme:n,classNames:A,props:v}),kx({selector:s,stylesCtx:S,options:l,props:v,theme:n}),jx({rootSelector:b,selector:s,className:g}),Ox({selector:s,classes:p,unstyled:m||w}),E&&!w&&Rx({themeName:r,classNamesPrefix:o,selector:s,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function Ef({style:n,theme:l}){return Array.isArray(n)?n.reduce((r,s)=>({...r,...Ef({style:s,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function zx({theme:n,selector:l,options:r,props:s,stylesCtx:o,rootSelector:f,withStylesTransform:h,resolvedStyles:p,resolvedThemeStyles:m,resolvedVars:g,resolvedRootStyle:b}){return{...m[l],...p[l],...!h&&Fc({theme:n,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||s,stylesCtx:o})[l],...g[l],...f===l?b:null,...Ef({style:r==null?void 0:r.style,theme:n})}}function Lx(n){return n.reduce((l,r)=>(r&&Object.keys(r).forEach(s=>{l[s]={...l[s],...pf(r[s])}}),l),{})}function Ux({props:n,stylesCtx:l,themeName:r,theme:s}){var h;const o=(h=mx())==null?void 0:h();return{getTransformedStyles:p=>o?[...p.map(m=>o(m,{props:n,theme:s,ctx:l})),...r.map(m=>{var g;return o((g=s.components[m])==null?void 0:g.styles,{props:n,theme:s,ctx:l})})].filter(Boolean):[],withStylesTransform:!!o}}function Bx({name:n,classes:l,props:r,stylesCtx:s,className:o,style:f,rootSelector:h="root",unstyled:p,classNames:m,styles:g,vars:b,varsResolver:v,attributes:S}){var se;const E=ii(),w=cx(),A=fx(),k=dx(),z=(Array.isArray(n)?n:[n]).filter(P=>P),{withStylesTransform:L,getTransformedStyles:j}=Ux({props:r,stylesCtx:s,themeName:z,theme:E}),q=qs({theme:E,classNames:m,props:r,stylesCtx:s}),I=z.map(P=>{var ue;return qs({theme:E,classNames:(ue=E.components[P])==null?void 0:ue.classNames,props:r,stylesCtx:s})}),V=L?{}:Fc({theme:E,styles:g,props:r,stylesCtx:s}),O={};if(!L)for(const P of z){const ue=Fc({theme:E,styles:(se=E.components[P])==null?void 0:se.styles,props:r,stylesCtx:s});for(const le of Object.keys(ue))O[le]={...O[le],...ue[le]}}const R=Lx([k?{}:v==null?void 0:v(E,r,s),...z.map(P=>{var ue,le,W;return(W=(le=(ue=E.components)==null?void 0:ue[P])==null?void 0:le.vars)==null?void 0:W.call(le,E,r,s)}),b==null?void 0:b(E,r,s)]),Z=Ef({style:f,theme:E});return(P,ue)=>({...S==null?void 0:S[P],className:Dx({theme:E,options:ue,themeName:z,selector:P,classNamesPrefix:w,resolvedClassNames:q,resolvedThemeClassNames:I,classes:l,unstyled:p,className:o,rootSelector:h,props:r,stylesCtx:s,withStaticClasses:A,headless:k,transformedStyles:j([ue==null?void 0:ue.styles,g])}),style:zx({theme:E,selector:P,options:ue,props:r,stylesCtx:s,rootSelector:h,withStylesTransform:L,resolvedStyles:V,resolvedThemeStyles:O,resolvedVars:R,resolvedRootStyle:Z})})}function Wr(n){return En(n).reduce((l,r)=>n[r]!==void 0?`${l}${B1(r)}:${n[r]};`:l,"").trim()}function Hx({selector:n,styles:l,media:r,container:s}){const o=l?Wr(l):"",f=Array.isArray(r)?r.map(p=>`@media${p.query}{${n}{${Wr(p.styles)}}}`):[],h=Array.isArray(s)?s.map(p=>`@container ${p.query}{${n}{${Wr(p.styles)}}}`):[];return`${o?`${n}{${o}}`:""}${f.join("")}${h.join("")}`.trim()}function $x(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function Gx({deduplicate:n,...l}){const r=vf(),s=Hx(l);return n?d.jsx("style",{href:`mantine-${$x(s)}`,precedence:"mantine",nonce:r==null?void 0:r(),children:s}):d.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:s}})}function Yx(n){let l=5381;for(let r=0;r<n.length;r++)l=(l<<5)+l+n.charCodeAt(r)&4294967295;return(l>>>0).toString(36)}function qx(n,l){return`__mdi__-${Yx(`${n?Wr(n):""}|${Array.isArray(l)?l.map(r=>`${r.query}:${Wr(r.styles)}`).join("|"):""}`)}`}function Ix(n){const{m:l,mx:r,my:s,mt:o,mb:f,ml:h,mr:p,me:m,ms:g,mis:b,mie:v,p:S,px:E,py:w,pt:A,pb:k,pl:z,pr:L,pe:j,ps:q,pis:I,pie:V,bd:O,bdrs:R,bg:Z,c:se,opacity:P,ff:ue,fz:le,fw:W,lts:K,ta:D,lh:U,fs:re,tt:ce,td:fe,w:N,miw:G,maw:te,h:ae,mih:ne,mah:Y,bgsz:ee,bgp:ye,bgr:de,bga:he,pos:Ee,top:ke,left:Le,bottom:Oe,right:Ce,inset:ge,display:$e,flex:et,hiddenFrom:tt,visibleFrom:gt,lightHidden:wt,darkHidden:Kt,sx:yt,...Re}=n;return{styleProps:pf({m:l,mx:r,my:s,mt:o,mb:f,ml:h,mr:p,me:m,ms:g,mis:b,mie:v,p:S,px:E,py:w,pt:A,pb:k,pl:z,pr:L,pis:I,pie:V,pe:j,ps:q,bd:O,bg:Z,c:se,opacity:P,ff:ue,fz:le,fw:W,lts:K,ta:D,lh:U,fs:re,tt:ce,td:fe,w:N,miw:G,maw:te,h:ae,mih:ne,mah:Y,bgsz:ee,bgp:ye,bgr:de,bga:he,pos:Ee,top:ke,left:Le,bottom:Oe,right:Ce,inset:ge,display:$e,flex:et,bdrs:R,hiddenFrom:tt,visibleFrom:gt,lightHidden:wt,darkHidden:Kt,sx:yt}),rest:Re}}const Fx={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mis:{type:"spacing",property:"marginInlineStart"},mie:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},pis:{type:"spacing",property:"paddingInlineStart"},pie:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function wf(n,l){const r=ri({color:n,theme:l});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function Vx(n,l){const r=ri({color:n,theme:l});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:wf(n,l)}function Xx(n,l){if(typeof n=="number")return oe(n);if(typeof n=="string"){const[r,s,...o]=n.split(" ").filter(h=>h.trim()!=="");let f=`${oe(r)}`;return s&&(f+=` ${s}`),o.length>0&&(f+=` ${wf(o.join(" "),l)}`),f.trim()}return n}const Yg={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function Zx(n){return typeof n=="string"&&n in Yg?Yg[n]:n}const Kx=["h1","h2","h3","h4","h5","h6"];function Qx(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&Kx.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?oe(n):n}function Jx(n){return n}const Wx=["h1","h2","h3","h4","h5","h6"];function Px(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&Wx.includes(n)?`var(--mantine-${n}-line-height)`:n}function eS(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?oe(n):n}function tS(n){return typeof n=="number"?oe(n):n}function nS(n,l){if(typeof n=="number")return oe(n);if(typeof n=="string"){const r=n.replace("-","");if(!(r in l.spacing))return oe(n);const s=`--mantine-spacing-${r}`;return n.startsWith("-")?`calc(var(${s}) * -1)`:`var(${s})`}return n}const Dc={color:wf,textColor:Vx,fontSize:Qx,spacing:nS,radius:eS,identity:Jx,size:tS,lineHeight:Px,fontFamily:Zx,border:Xx};function qg(n){return n.replace("(min-width: ","").replace("em)","")}function aS({media:n,...l}){const r=Object.keys(n).sort((s,o)=>Number(qg(s))-Number(qg(o))).map(s=>({query:s,styles:n[s]}));return{...l,media:r}}function lS(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function rS(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function iS(n){return typeof n=="object"&&n!==null?En(n).filter(l=>l!=="base"):[]}function sS(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function oS({styleProps:n,data:l,theme:r}){return aS(En(n).reduce((s,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return s;const f=l[o],h=Array.isArray(f.property)?f.property:[f.property],p=rS(n[o]);if(!lS(n[o]))return h.forEach(g=>{s.inlineStyles[g]=Dc[f.type](p,r)}),s;s.hasResponsiveStyles=!0;const m=iS(n[o]);return h.forEach(g=>{p!=null&&(s.styles[g]=Dc[f.type](p,r)),m.forEach(b=>{const v=`(min-width: ${r.breakpoints[b]})`;s.media[v]={...s.media[v],[g]:Dc[f.type](sS(n[o],b),r)}})}),s},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function uS(){return`__m__-${C.useId().replace(/[:«»]/g,"")}`}function cS(n){return n}const fS=cS;function dS(n){return n}function Py(n){const l=n;return l.extend=dS,l.withProps=r=>{const s=o=>d.jsx(l,{...r,...o});return s.extend=l.extend,s.displayName=`WithProps(${l.displayName})`,s},l}function eb(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function hS(n){return Object.keys(n).reduce((l,r)=>{const s=n[r];return s===void 0||s===""||s===!1||s===null||(l[eb(r)]=n[r]),l},{})}function tb(n){return n?typeof n=="string"?{[eb(n)]:!0}:Array.isArray(n)?[...n].reduce((l,r)=>({...l,...tb(r)}),{}):hS(n):null}function Zc(n,l){return Array.isArray(n)?[...n].reduce((r,s)=>({...r,...Zc(s,l)}),{}):typeof n=="function"?n(l):n??{}}function mS({theme:n,style:l,vars:r,styleProps:s}){const o=Zc(l,n),f=Zc(r,n);return{...o,...f,...s}}function nb({component:n,style:l,__vars:r,className:s,variant:o,mod:f,size:h,hiddenFrom:p,visibleFrom:m,lightHidden:g,darkHidden:b,renderRoot:v,__size:S,ref:E,...w}){var Z,se;const A=ii(),k=n||"div",{styleProps:z,rest:L}=Ix(w),j=(se=(Z=hx())==null?void 0:Z())==null?void 0:se(z.sx),q=uS(),I=oS({styleProps:z,theme:A,data:Fx}),V=px(),O=V&&I.hasResponsiveStyles?qx(I.styles,I.media):q,R={ref:E,style:mS({theme:A,style:l,vars:r,styleProps:I.inlineStyles}),className:Zs(s,j,{[O]:I.hasResponsiveStyles,"mantine-light-hidden":g,"mantine-dark-hidden":b,[`mantine-hidden-from-${p}`]:p,[`mantine-visible-from-${m}`]:m}),"data-variant":o,"data-size":G1(h)?void 0:h||void 0,size:S,...tb(f),...L};return d.jsxs(d.Fragment,{children:[I.hasResponsiveStyles&&d.jsx(Gx,{selector:`.${O}`,styles:I.styles,media:I.media,deduplicate:V}),typeof v=="function"?v(R):d.jsx(k,{...R})]})}nb.displayName="@mantine/core/Box";const Kc=fS(nb),pS=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function gS(){return C.use(pS)}const[yS,bS]=Y1("Splitter component was not found in the tree");var Nf={root:"m_19e66008",pane:"m_19e5428e",handle:"m_27f81bce",thumb:"m_22feb770"};const Af=Py(n=>{const l=Wy("SplitterPane",null,n),{className:r,classNames:s,style:o,styles:f,vars:h,children:p,defaultSize:m,min:g,max:b,collapsible:v,collapseThreshold:S,__index:E,mod:w,...A}=l,k=bS(),z=k.collapsed[E],L=k.getPaneStyle(E);return d.jsx(Kc,{...k.getStyles("pane",{className:r,classNames:s,style:[L,o],styles:f,props:l}),mod:[{collapsed:z||void 0},w],...A,children:p})});Af.classes=Nf;Af.displayName="@mantine/core/SplitterPane";function vS(n){return d.jsxs("svg",{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",...n,children:[d.jsx("path",{d:"M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function xS(n){return d.jsxs("svg",{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",...n,children:[d.jsx("path",{d:"M4 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M4 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M11 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M11 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M18 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),d.jsx("path",{d:"M18 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}const SS=/^(-?[\d.]+)px$/,ES=/^(-?[\d.]+)rem$/;function wS(n){return typeof n=="string"&&(SS.test(n)||ES.test(n))}function NS(n,l){const r=typeof n=="number"?n:parseFloat(n);return l?wS(n)?{flexGrow:0,flexShrink:1,flexBasis:n}:{flexGrow:r,flexShrink:1,flexBasis:0}:{flexBasis:`${r}%`}}const AS={orientation:"horizontal",lineSize:2,withHandle:!0,resetOnDoubleClick:!0},ab=(n,{lineSize:l,handleColor:r})=>({root:{"--splitter-line-size":oe(l),"--splitter-handle-color":r?Vc(r,n):void 0}}),Ft=Py(n=>{const l=Wy("Splitter",AS,n),{orientation:r,sizes:s,onSizeChange:o,onResizeStart:f,onResizeEnd:h,onCollapseChange:p,redistribute:m,step:g,shiftStep:b,lineSize:v,handleColor:S,handleIcon:E,withHandle:w,resetOnDoubleClick:A,splitterRef:k,children:z,className:L,classNames:j,style:q,styles:I,unstyled:V,vars:O,mod:R,attributes:Z,ref:se,...P}=l,{dir:ue}=gS(),le=C.Children.toArray(z),W=le.map(N=>({defaultSize:N.props.defaultSize,min:N.props.min,max:N.props.max,collapsible:N.props.collapsible,collapseThreshold:N.props.collapseThreshold})),K=W1({panels:W,orientation:r,sizes:s,onSizeChange:o,onResizeStart:f,onResizeEnd:h,onCollapseChange:p,redistribute:m,step:g,shiftStep:b,dir:ue,resetOnDoubleClick:A});C.useImperativeHandle(k,()=>K,[K]);const D=N=>NS(K.sizes[N],K.pixelMode),U=I1(se,K.ref),re=Bx({name:"Splitter",classes:Nf,props:l,className:L,style:q,classNames:j,styles:I,unstyled:V,attributes:Z,vars:O,varsResolver:ab}),ce=E!==void 0?E:r==="vertical"?d.jsx(xS,{}):d.jsx(vS,{}),fe=[];return le.forEach((N,G)=>{if(G>0){const te=K.getHandleProps({index:G-1}),ae=K.activeHandle===G-1;fe.push(C.createElement(Kc,{...re("handle"),key:`handle-${G-1}`,...te},w&&d.jsx("div",{...re("thumb"),"data-orientation":r,"data-active":ae||void 0,children:ce})))}fe.push(C.cloneElement(N,{key:`pane-${G}`,__index:G}))}),d.jsx(yS,{value:{getStyles:re,sizes:K.sizes,collapsed:K.collapsed,orientation:r,getPaneStyle:D},children:d.jsx(Kc,{ref:U,...re("root"),mod:[{orientation:r},R],...P,children:fe})})});Ft.classes=Nf;Ft.varsResolver=ab;Ft.displayName="@mantine/core/Splitter";Ft.Pane=Af;const Ig=n=>{let l;const r=new Set,s=(g,b)=>{const v=typeof g=="function"?g(l):g;if(!Object.is(v,l)){const S=l;l=b??(typeof v!="object"||v===null)?v:Object.assign({},l,v),r.forEach(E=>E(l,S))}},o=()=>l,p={setState:s,getState:o,getInitialState:()=>m,subscribe:g=>(r.add(g),()=>r.delete(g))},m=l=n(s,o,p);return p},TS=(n=>n?Ig(n):Ig),CS=n=>n;function kS(n,l=CS){const r=_s.useSyncExternalStore(n.subscribe,_s.useCallback(()=>l(n.getState()),[n,l]),_s.useCallback(()=>l(n.getInitialState()),[n,l]));return _s.useDebugValue(r),r}const Fg=n=>{const l=TS(n),r=s=>kS(l,s);return Object.assign(r,l),r},_S=(n=>n?Fg(n):Fg);function Vt(n){return n.stage?`${n.stage}:${n.path}`:n.path}function Bl(n){return n.startsWith("staged:")?n.slice(7):n.startsWith("unstaged:")?n.slice(9):n}const zc=["unreviewed","reviewed","approved","needs_changes"],Lc={"review-sidebar":{size:"280px",collapsed:!1},"review-threads":{size:40,collapsed:!1},"dashboard-sessions":{size:"260px",collapsed:!1}},lb="diffprism-panes";function jS(){let n={};try{n=JSON.parse(localStorage.getItem(lb)??"{}")}catch{n={}}const l={...Lc};for(const r of Object.keys(Lc))l[r]={...Lc[r],...n[r]};return l}const Xe=_S((n,l)=>({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,connectionStatus:"connecting",viewMode:"unified",fileStatuses:{},comments:[],activeCommentKey:null,focusedAnnotationId:null,draftComment:null,theme:localStorage.getItem("diffprism-theme")??"dark",panes:jS(),isWatchMode:!1,watchSubmitted:!1,hasUnreviewedChanges:!0,focusedHunkIndex:null,hunkCount:0,compareRef:null,annotations:[],showHotkeyGuide:!1,showWorkflowTips:!1,isServerMode:!1,sessions:[],activeSessionId:null,initReview:r=>{const s=r.diffSet.files.length>0?Vt(r.diffSet.files[0]):null,o={};for(const f of r.diffSet.files)o[Vt(f)]="unreviewed";n({reviewId:r.reviewId,diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,metadata:r.metadata,selectedFile:s,fileStatuses:o,comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,isWatchMode:r.watchMode??!1,watchSubmitted:!1,hasUnreviewedChanges:!0,activeSessionId:r.reviewId})},selectFile:r=>{n({selectedFile:r,focusedHunkIndex:null,hunkCount:0})},setConnectionStatus:r=>{n({connectionStatus:r})},setViewMode:r=>{n({viewMode:r})},setFileStatus:(r,s)=>{n(o=>({fileStatuses:{...o.fileStatuses,[r]:s}}))},cycleFileStatus:r=>{const s=l().fileStatuses[r]??"unreviewed",f=(zc.indexOf(s)+1)%zc.length;n(h=>({fileStatuses:{...h.fileStatuses,[r]:zc[f]}}))},addComment:r=>{n(s=>({comments:[...s.comments,r]}))},updateComment:(r,s)=>{n(o=>({comments:o.comments.map((f,h)=>h===r?s:f)}))},deleteComment:r=>{n(s=>({comments:s.comments.filter((o,f)=>f!==r)}))},focusAnnotation:r=>{n({focusedAnnotationId:r})},setActiveCommentKey:r=>{n({activeCommentKey:r}),r===null&&n({draftComment:null})},setDraftComment:r=>{n({draftComment:r})},saveDraftComment:()=>{const{draftComment:r}=l();r&&r.body.trim()&&n(s=>({comments:[...s.comments,{file:r.file,line:r.line,side:r.side,body:r.body.trim(),type:r.type}],draftComment:null,activeCommentKey:null}))},toggleHotkeyGuide:()=>{n(r=>({showHotkeyGuide:!r.showHotkeyGuide}))},toggleWorkflowTips:()=>{n(r=>({showWorkflowTips:!r.showWorkflowTips}))},toggleTheme:()=>{const r=l().theme==="dark"?"light":"dark";localStorage.setItem("diffprism-theme",r),n({theme:r})},setPane:(r,s)=>{const o=l().panes[r];if(Object.keys(s).every(h=>s[h]===o[h]))return;const f={...l().panes,[r]:{...o,...s}};localStorage.setItem(lb,JSON.stringify(f)),n({panes:f})},updateDiff:r=>{const s=l(),{changedFiles:o}=r,f={};for(const p of r.diffSet.files){const m=Vt(p);o.includes(m)?f[m]="unreviewed":f[m]=s.fileStatuses[m]??"unreviewed"}let{selectedFile:h}=s;h&&!r.diffSet.files.some(p=>Vt(p)===h)&&(h=r.diffSet.files.length>0?Vt(r.diffSet.files[0]):null),n({diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,fileStatuses:f,selectedFile:h,focusedHunkIndex:null,hunkCount:0,hasUnreviewedChanges:!0})},updateContext:r=>{const s=l();s.metadata&&n({metadata:{...s.metadata,...r.reasoning!==void 0&&{reasoning:r.reasoning},...r.title!==void 0&&{title:r.title},...r.description!==void 0&&{description:r.description}}})},setWatchSubmitted:r=>{n({watchSubmitted:r,...r&&{hasUnreviewedChanges:!1}})},setServerMode:r=>{n({isServerMode:r})},setSessions:r=>{n({sessions:r})},addSession:r=>{n(s=>s.sessions.some(o=>o.id===r.id)?s:{sessions:[...s.sessions,r]})},updateSession:r=>{n(s=>{const o=s.sessions.findIndex(h=>h.id===r.id);if(o===-1)return s;const f=[...s.sessions];return f[o]=r,{sessions:f}})},removeSession:r=>{n(s=>{const o=s.sessions.filter(f=>f.id!==r);return s.activeSessionId===r?{sessions:o,reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0}:{sessions:o}})},navigateHunk:r=>{const{focusedHunkIndex:s,hunkCount:o}=l();o!==0&&n(s===null?{focusedHunkIndex:r==="next"?0:o-1}:r==="next"?{focusedHunkIndex:Math.min(s+1,o-1)}:{focusedHunkIndex:Math.max(s-1,0)})},setHunkCount:r=>{n({hunkCount:r,focusedHunkIndex:null})},setFocusedHunkIndex:r=>{n({focusedHunkIndex:r})},setCompareRef:r=>{n({compareRef:r})},addAnnotation:r=>{n(s=>({annotations:[...s.annotations,r]}))},updateAnnotation:r=>{n(s=>({annotations:s.annotations.map(o=>o.id===r.id?r:o)}))},applyAnnotationDismissed:r=>{n(s=>({annotations:s.annotations.map(o=>o.id===r?{...o,dismissed:!0}:o)}))},dismissAnnotation:r=>{l().applyAnnotationDismissed(r);const o=new URLSearchParams(window.location.search).get("httpPort"),f=l().reviewId;o&&f&&fetch(`http://localhost:${o}/api/reviews/${f}/annotations/${r}/dismiss`,{method:"POST"}).catch(()=>{})},selectSession:r=>{n({activeSessionId:r})},clearReview:()=>{n({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0})}})),OS=1e3;function RS(n){const l=C.useRef(null),r=C.useRef(n==null?void 0:n.onSessionAdded);r.current=n==null?void 0:n.onSessionAdded;const s=C.useRef(n==null?void 0:n.onSessionUpdated);s.current=n==null?void 0:n.onSessionUpdated;const o=C.useRef(n==null?void 0:n.onDiffUpdated);o.current=n==null?void 0:n.onDiffUpdated;const f=C.useRef(n==null?void 0:n.onAnnotationAdded);f.current=n==null?void 0:n.onAnnotationAdded;const{connectionStatus:h,setConnectionStatus:p,initReview:m,updateDiff:g,updateContext:b,setServerMode:v,setSessions:S,addSession:E,updateSession:w,removeSession:A,addAnnotation:k,applyAnnotationDismissed:z,updateAnnotation:L}=Xe();C.useEffect(()=>{const V=new URLSearchParams(window.location.search),O=V.get("wsPort"),R=V.get("serverMode")==="true",Z=V.get("sessionId");if(!O){console.warn("No wsPort query parameter found"),p("disconnected");return}R&&v(!0);const se=Z?`ws://localhost:${O}?sessionId=${Z}`:`ws://localhost:${O}`,P=ce=>{var fe,N,G,te;try{const ae=JSON.parse(ce.data);if(ae.type==="review:init")m(ae.payload);else if(ae.type==="diff:update"){g(ae.payload);const ne=ae.payload;(fe=o.current)==null||fe.call(o,ne.diffSet.files.length)}else ae.type==="diff:error"?console.error("Diff error:",ae.payload.error):ae.type==="context:update"?b(ae.payload):ae.type==="session:list"?S(ae.payload):ae.type==="session:added"?(E(ae.payload),window.focus(),(N=r.current)==null||N.call(r,ae.payload)):ae.type==="session:updated"?(w(ae.payload),(G=s.current)==null||G.call(s,ae.payload)):ae.type==="session:removed"?A(ae.payload.sessionId):ae.type==="annotation:added"?(k(ae.payload),(te=f.current)==null||te.call(f,ae.payload)):ae.type==="annotation:dismissed"?z(ae.payload.annotationId):ae.type==="annotation:updated"&&L(ae.payload)}catch(ae){console.error("Failed to parse WebSocket message:",ae)}},ue=V.get("httpPort");let le=!1,W=null,K=null,D=!1;const U=async()=>{if(!ue)return null;try{const ce=await fetch(`http://localhost:${ue}/api/status`);return ce.ok?(await ce.json()).pid:(console.warn(`DiffPrism server status returned ${ce.status}`),null)}catch(ce){return console.warn("Could not read DiffPrism server status:",ce),null}},re=()=>{const ce=new WebSocket(se);l.current=ce,ce.addEventListener("open",async()=>{p("connected");const fe=D;D=!0;const N=await U();if(fe&&K!==null&&N!==null&&N!==K){window.location.reload();return}if(N!==null&&(K=N),fe){const G=Xe.getState().activeSessionId;G&&ce.send(JSON.stringify({type:"session:select",payload:{sessionId:G}}))}}),ce.addEventListener("message",P),ce.addEventListener("close",()=>{p("disconnected"),le||(W=setTimeout(re,OS))}),ce.addEventListener("error",()=>{p("disconnected")})};return re(),()=>{var ce;le=!0,W&&clearTimeout(W),(ce=l.current)==null||ce.close(),l.current=null}},[p,m,g,b,v,S,E,w,A,k,z,L]);const j=C.useCallback(V=>{const O=l.current;if(!O||O.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"review:submit",payload:V};O.send(JSON.stringify(R))},[]),q=C.useCallback(V=>{const O=l.current;if(!O||O.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"session:select",payload:{sessionId:V}};O.send(JSON.stringify(R))},[]),I=C.useCallback(V=>{const O=l.current;if(!O||O.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const R={type:"session:close",payload:{sessionId:V}};O.send(JSON.stringify(R))},[]);return{sendResult:j,selectSession:q,closeSession:I,connectionStatus:h}}const rb="diffprism-notifications";function MS(){try{return localStorage.getItem(rb)!=="disabled"}catch{return!0}}function Vg(n){try{localStorage.setItem(rb,n?"enabled":"disabled")}catch{}}function DS(n){const l=C.useRef(n==null?void 0:n.onSessionSelect);C.useEffect(()=>{l.current=n==null?void 0:n.onSessionSelect},[n==null?void 0:n.onSessionSelect]);const r=typeof globalThis.Notification<"u",[s,o]=C.useState(()=>r?Notification.permission:"denied"),[f,h]=C.useState(MS),p=C.useCallback(async()=>{if(!r)return"denied";const A=await Notification.requestPermission();return o(A),A},[r]);C.useEffect(()=>{if(!r||!f||Notification.permission!=="default")return;const w=()=>{document.removeEventListener("click",w,!0),p()};return document.addEventListener("click",w,!0),()=>document.removeEventListener("click",w,!0)},[r,f,p]);const m=C.useCallback(async()=>{if(!r||s==="denied")return;if(s==="default"){await p()==="granted"&&(h(!0),Vg(!0));return}const w=!f;h(w),Vg(w)},[r,s,f,p]),g=C.useCallback(async(w,A,k,z)=>{if(!r||document.hasFocus()||!f)return;let L=s;if(L==="default"&&(L=await p()),L!=="granted")return;const j=new Notification(w,{body:A,icon:"/favicon.svg",tag:k});j.onclick=()=>{window.focus(),z==null||z(),j.close()}},[r,f,s,p]),b=C.useCallback(async w=>{const A=w.title||"New Review Ready",k=[];w.branch&&k.push(w.branch),k.push(`${w.fileCount} file${w.fileCount!==1?"s":""}, +${w.additions} -${w.deletions}`),await g(A,k.join(" · "),w.id,()=>{var z;(z=l.current)==null||z.call(l,w.id)})},[g]),v=C.useCallback(async w=>{w.status==="submitted"&&await g("Review Submitted",w.title||`${w.fileCount} files reviewed`,`submitted-${w.id}`,()=>{var A;(A=l.current)==null||A.call(l,w.id)})},[g]),S=C.useCallback(async w=>{await g("Diff Updated",`${w} file${w!==1?"s":""} changed`,"diff-update")},[g]),E=C.useCallback(async w=>{await g(`Annotation from ${w.source.agent}`,`${w.file}:${w.line} — ${w.body.slice(0,100)}`,`annotation-${w.id}`)},[g]);return{permission:s,enabled:f,toggle:m,notifyNewSession:b,notifySessionUpdated:v,notifyDiffUpdated:S,notifyAnnotationAdded:E}}function zS(){const n=Xe(o=>o.selectedFile),l=Xe(o=>o.activeSessionId),r=Xe(o=>o.reviewId),s=C.useRef(null);C.useEffect(()=>{const o=l??r;if(!o)return;const f=new URLSearchParams(window.location.search).get("httpPort");if(!f)return;const h=`${o}:${n}`;h!==s.current&&(s.current=h,fetch(`http://localhost:${f}/api/reviews/${o}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:n})}).catch(()=>{}))},[n,l,r])}/**
|
|
54
|
+
* @license lucide-react v0.469.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const LS=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ib=(...n)=>n.filter((l,r,s)=>!!l&&l.trim()!==""&&s.indexOf(l)===r).join(" ").trim();/**
|
|
59
|
+
* @license lucide-react v0.469.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var US={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"};/**
|
|
64
|
+
* @license lucide-react v0.469.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const BS=C.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:h,...p},m)=>C.createElement("svg",{ref:m,...US,width:l,height:l,stroke:n,strokeWidth:s?Number(r)*24/Number(l):r,className:ib("lucide",o),...p},[...h.map(([g,b])=>C.createElement(g,b)),...Array.isArray(f)?f:[f]]));/**
|
|
69
|
+
* @license lucide-react v0.469.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const xe=(n,l)=>{const r=C.forwardRef(({className:s,...o},f)=>C.createElement(BS,{ref:f,iconNode:l,className:ib(`lucide-${LS(n)}`,s),...o}));return r.displayName=`${n}`,r};/**
|
|
74
|
+
* @license lucide-react v0.469.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const HS=xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
79
|
+
* @license lucide-react v0.469.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const $S=xe("BellOff",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);/**
|
|
84
|
+
* @license lucide-react v0.469.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const GS=xe("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
89
|
+
* @license lucide-react v0.469.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const Tf=xe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
94
|
+
* @license lucide-react v0.469.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const YS=xe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
99
|
+
* @license lucide-react v0.469.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const Vl=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
104
|
+
* @license lucide-react v0.469.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Ks=xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
109
|
+
* @license lucide-react v0.469.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const qS=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
114
|
+
* @license lucide-react v0.469.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const Cf=xe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
119
|
+
* @license lucide-react v0.469.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const Xa=xe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
124
|
+
* @license lucide-react v0.469.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const IS=xe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
129
|
+
* @license lucide-react v0.469.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const kf=xe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
134
|
+
* @license lucide-react v0.469.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const sb=xe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
139
|
+
* @license lucide-react v0.469.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const FS=xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
144
|
+
* @license lucide-react v0.469.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const VS=xe("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
149
|
+
* @license lucide-react v0.469.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const XS=xe("Copy",[["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"}]]);/**
|
|
154
|
+
* @license lucide-react v0.469.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const ZS=xe("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
159
|
+
* @license lucide-react v0.469.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const _f=xe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
164
|
+
* @license lucide-react v0.469.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const KS=xe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
169
|
+
* @license lucide-react v0.469.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const jf=xe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
174
|
+
* @license lucide-react v0.469.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const Ql=xe("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
179
|
+
* @license lucide-react v0.469.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const QS=xe("FileMinus",[["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"}]]);/**
|
|
184
|
+
* @license lucide-react v0.469.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const JS=xe("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.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:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/**
|
|
189
|
+
* @license lucide-react v0.469.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const WS=xe("FilePlus",[["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"}]]);/**
|
|
194
|
+
* @license lucide-react v0.469.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const Xg=xe("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
|
|
199
|
+
* @license lucide-react v0.469.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Fa=xe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
204
|
+
* @license lucide-react v0.469.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const PS=xe("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
209
|
+
* @license lucide-react v0.469.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const Zg=xe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
214
|
+
* @license lucide-react v0.469.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const qn=xe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
219
|
+
* @license lucide-react v0.469.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const Kg=xe("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
|
|
224
|
+
* @license lucide-react v0.469.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const va=xe("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
|
|
229
|
+
* @license lucide-react v0.469.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const Of=xe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
234
|
+
* @license lucide-react v0.469.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const Qc=xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
239
|
+
* @license lucide-react v0.469.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const Xl=xe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
244
|
+
* @license lucide-react v0.469.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const e2=xe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
249
|
+
* @license lucide-react v0.469.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const Qg=xe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
254
|
+
* @license lucide-react v0.469.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const t2=xe("PanelBottomClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m15 8-3 3-3-3",key:"1oxy1z"}]]);/**
|
|
259
|
+
* @license lucide-react v0.469.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const n2=xe("PanelBottomOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"m9 10 3-3 3 3",key:"11gsxs"}]]);/**
|
|
264
|
+
* @license lucide-react v0.469.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const ob=xe("PanelLeftClose",[["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"}]]);/**
|
|
269
|
+
* @license lucide-react v0.469.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* This source code is licensed under the ISC license.
|
|
272
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
+
*/const ub=xe("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
|
|
274
|
+
* @license lucide-react v0.469.0 - ISC
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the ISC license.
|
|
277
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/const a2=xe("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
279
|
+
* @license lucide-react v0.469.0 - ISC
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the ISC license.
|
|
282
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/const cb=xe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
284
|
+
* @license lucide-react v0.469.0 - ISC
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the ISC license.
|
|
287
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/const l2=xe("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
289
|
+
* @license lucide-react v0.469.0 - ISC
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the ISC license.
|
|
292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/const r2=xe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
294
|
+
* @license lucide-react v0.469.0 - ISC
|
|
295
|
+
*
|
|
296
|
+
* This source code is licensed under the ISC license.
|
|
297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
+
*/const i2=xe("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
|
|
299
|
+
* @license lucide-react v0.469.0 - ISC
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the ISC license.
|
|
302
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/const Jg=xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
304
|
+
* @license lucide-react v0.469.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/const s2=xe("Settings",[["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"}]]);/**
|
|
309
|
+
* @license lucide-react v0.469.0 - ISC
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the ISC license.
|
|
312
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
+
*/const Rs=xe("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
314
|
+
* @license lucide-react v0.469.0 - ISC
|
|
315
|
+
*
|
|
316
|
+
* This source code is licensed under the ISC license.
|
|
317
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
+
*/const o2=xe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
319
|
+
* @license lucide-react v0.469.0 - ISC
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the ISC license.
|
|
322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/const u2=xe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
324
|
+
* @license lucide-react v0.469.0 - ISC
|
|
325
|
+
*
|
|
326
|
+
* This source code is licensed under the ISC license.
|
|
327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
+
*/const c2=xe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
329
|
+
* @license lucide-react v0.469.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/const Zl=xe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
334
|
+
* @license lucide-react v0.469.0 - ISC
|
|
335
|
+
*
|
|
336
|
+
* This source code is licensed under the ISC license.
|
|
337
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
+
*/const f2=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
339
|
+
* @license lucide-react v0.469.0 - ISC
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the ISC license.
|
|
342
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
+
*/const si=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Rf(){const n=C.useMemo(()=>new URLSearchParams(window.location.search).get("httpPort"),[]),l=n!==null,r=C.useCallback(async g=>{if(!n)return null;try{const b=await fetch(`http://localhost:${n}/api/reviews/${g}/refs`);return b.ok?await b.json():null}catch{return null}},[n]),s=C.useCallback(async(g,b)=>{if(!n)return{ok:!1,error:"Not connected to server"};try{const v=await fetch(`http://localhost:${n}/api/reviews/${g}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:b})});return v.ok?{ok:!0}:{ok:!1,error:(await v.json().catch(()=>({}))).error??"Comparison failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[n]),o=C.useCallback(async g=>{if(!n)return{ok:!1,error:"Not connected to server"};try{const b=await fetch(`http://localhost:${n}/api/reviews/${g}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reset:!0})});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>({}))).error??"Reset failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[n]),f=C.useCallback(async(g,b)=>{if(!n)return{ok:!1,error:"Not connected to server"};try{const v=await fetch(`http://localhost:${n}${g}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});return v.ok?{ok:!0}:{ok:!1,error:(await v.json().catch(()=>({}))).error??"Request failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[n]),h=C.useCallback((g,b)=>f(`/api/reviews/${g}/annotations`,{...b,type:"question",category:"other",author:"reviewer",source:{agent:"reviewer",tool:"dashboard"}}),[f]),p=C.useCallback((g,b,v)=>f(`/api/reviews/${g}/annotations/${b}/replies`,{author:"reviewer",body:v}),[f]),m=C.useCallback(async(g,b)=>{if(!n)return{ok:!1,error:"Not connected to server"};try{const v=await fetch(`http://localhost:${n}/api/reviews/${g}/github-review`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),S=await v.json().catch(()=>({}));return v.ok&&S.url?{ok:!0,url:S.url}:{ok:!1,error:S.error??`Server returned ${v.status}`}}catch{return{ok:!1,error:"Failed to connect to server"}}},[n]);return{isAvailable:l,fetchRefs:r,compareAgainst:s,resetCompare:o,startThread:h,replyToThread:p,submitPrReview:m}}function d2(){const[n,l]=C.useState(!1),[r,s]=C.useState(null),[o,f]=C.useState(!1),[h,p]=C.useState(!1),[m,g]=C.useState(null),[b,v]=C.useState(""),[S,E]=C.useState("branches"),w=C.useRef(null),A=C.useRef(null),{activeSessionId:k,compareRef:z,setCompareRef:L,metadata:j}=Xe(),{isAvailable:q,fetchRefs:I,compareAgainst:V,resetCompare:O}=Rf(),R=z??"working copy",Z=C.useCallback(async()=>{if(!k)return;l(!0),v(""),g(null),f(!0);const U=await I(k);s(U),f(!1)},[k,I]),se=C.useCallback(async U=>{if(!k)return;p(!0),g(null);const re=await V(k,U);re.ok?(L(U),l(!1)):g(re.error??"Comparison failed"),p(!1)},[k,V,L]),P=C.useCallback(async()=>{if(!k)return;p(!0),g(null);const U=await O(k);U.ok?(L(null),l(!1)):g(U.error??"Reset failed"),p(!1)},[k,O,L]);C.useEffect(()=>{if(!n)return;function U(re){w.current&&!w.current.contains(re.target)&&l(!1)}return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[n]),C.useEffect(()=>{if(!n)return;function U(re){re.key==="Escape"&&l(!1)}return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[n]),C.useEffect(()=>{n&&A.current&&A.current.focus()},[n]);const ue=!!(j!=null&&j.githubPr);if(!q||ue)return j!=null&&j.currentBranch?d.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono",children:[d.jsx(qn,{className:"w-3 h-3"}),j.currentBranch]}):null;const le=b.toLowerCase(),W=(r==null?void 0:r.branches.local.filter(U=>U.toLowerCase().includes(le)))??[],K=(r==null?void 0:r.branches.remote.filter(U=>U.toLowerCase().includes(le)))??[],D=(r==null?void 0:r.commits.filter(U=>U.shortHash.toLowerCase().includes(le)||U.subject.toLowerCase().includes(le)||U.author.toLowerCase().includes(le)))??[];return d.jsxs("div",{className:"relative",ref:w,children:[d.jsxs("button",{onClick:()=>n?l(!1):Z(),disabled:h,className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono hover:bg-neutral/25 transition-colors cursor-pointer disabled:opacity-50",title:"Compare against a different ref",children:[h?d.jsx(Qc,{className:"w-3 h-3 animate-spin"}):d.jsx(qn,{className:"w-3 h-3"}),d.jsx("span",{className:"max-w-[180px] truncate",children:R}),d.jsx(Ks,{className:"w-3 h-3"})]}),n&&d.jsxs("div",{className:"absolute top-full mt-1 right-0 z-50 w-80 bg-surface border border-border rounded-lg shadow-lg overflow-hidden",children:[d.jsx("div",{className:"p-2 border-b border-border",children:d.jsx("input",{ref:A,type:"text",value:b,onChange:U=>v(U.target.value),placeholder:"Filter branches or commits...",className:"w-full px-2 py-1.5 text-xs bg-background border border-border rounded text-text-primary placeholder:text-text-secondary focus:outline-none focus:border-accent"})}),d.jsxs("div",{className:"flex border-b border-border",children:[d.jsxs("button",{onClick:()=>E("branches"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="branches"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(qn,{className:"w-3 h-3 inline mr-1"}),"Branches"]}),d.jsxs("button",{onClick:()=>E("commits"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="commits"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(Kg,{className:"w-3 h-3 inline mr-1"}),"Commits"]})]}),m&&d.jsxs("div",{className:"px-3 py-2 flex items-center gap-2 bg-danger/10 border-b border-danger/20 text-danger text-xs",children:[d.jsx(Xa,{className:"w-3.5 h-3.5 flex-shrink-0"}),d.jsx("span",{children:m})]}),d.jsx("div",{className:"max-h-64 overflow-y-auto",children:o?d.jsxs("div",{className:"flex items-center justify-center py-6",children:[d.jsx(Qc,{className:"w-4 h-4 animate-spin text-text-secondary"}),d.jsx("span",{className:"ml-2 text-xs text-text-secondary",children:"Loading refs..."})]}):S==="branches"?d.jsxs("div",{children:[W.length>0&&d.jsxs("div",{children:[d.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Local"}),W.map(U=>d.jsxs("button",{onClick:()=>se(U),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${z===U?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(qn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),d.jsx("span",{className:"font-mono truncate",children:U}),U===(r==null?void 0:r.currentBranch)&&d.jsx("span",{className:"ml-auto text-[10px] text-text-secondary",children:"current"})]},U))]}),K.length>0&&d.jsxs("div",{children:[d.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Remote"}),K.map(U=>d.jsxs("button",{onClick:()=>se(U),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${z===U?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(qn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),d.jsx("span",{className:"font-mono truncate",children:U})]},U))]}),W.length===0&&K.length===0&&d.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No branches found"})]}):d.jsx("div",{children:D.length>0?D.map(U=>d.jsxs("button",{onClick:()=>se(U.hash),className:`w-full px-3 py-1.5 text-xs text-left flex items-start gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${z===U.hash?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(Kg,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-text-secondary"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-mono text-accent",children:U.shortHash}),d.jsx("span",{className:"truncate",children:U.subject})]}),d.jsxs("div",{className:"text-[10px] text-text-secondary mt-0.5",children:[U.author," · ",h2(U.date)]})]})]},U.hash)):d.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No commits found"})})}),z&&d.jsx("div",{className:"border-t border-border p-2",children:d.jsxs("button",{onClick:P,className:"w-full px-2 py-1.5 text-xs text-text-secondary hover:text-text-primary flex items-center justify-center gap-1.5 rounded hover:bg-text-primary/5 transition-colors cursor-pointer",children:[d.jsx(r2,{className:"w-3 h-3"}),"Reset to working copy"]})})]})]})}function h2(n){const l=new Date(n),s=new Date().getTime()-l.getTime(),o=Math.floor(s/1e3),f=Math.floor(o/60),h=Math.floor(f/60),p=Math.floor(h/24);return o<60?"just now":f<60?`${f}m ago`:h<24?`${h}h ago`:p<30?`${p}d ago`:l.toLocaleDateString()}const Wg={pending:"bg-warning/20 text-warning border border-warning/30",in_review:"bg-accent/20 text-accent border border-accent/30",changes_requested:"bg-danger/20 text-danger border border-danger/30",approved:"bg-success/20 text-success border border-success/30",approved_with_comments:"bg-success/20 text-success border border-success/30",dismissed:"bg-neutral/20 text-neutral border border-neutral/30",submitted:"bg-success/20 text-success border border-success/30"},m2={must_fix:"bg-danger/15 text-danger border-danger/30",suggestion:"bg-warning/15 text-warning border-warning/30",question:"bg-info/15 text-info border-info/30",nitpick:"bg-neutral/15 text-neutral border-neutral/30"},p2={added:"bg-success/15 text-success border-success/30",modified:"bg-warning/15 text-warning border-warning/30",deleted:"bg-danger/15 text-danger border-danger/30",renamed:"bg-accent/15 text-accent border-accent/30"},g2={added:"text-success",modified:"text-warning",deleted:"text-danger",renamed:"text-accent"},y2={reviewed:"text-info",approved:"text-success",needs_changes:"text-warning"},Is={security:"text-danger",performance:"text-perf",convention:"text-info",correctness:"text-warning",complexity:"text-accent","test-coverage":"text-info",documentation:"text-neutral",other:"text-neutral"},Pg={security:"bg-danger/15 text-danger border-danger/30",performance:"bg-perf/15 text-perf border-perf/30",convention:"bg-info/15 text-info border-info/30",correctness:"bg-warning/15 text-warning border-warning/30",complexity:"bg-accent/15 text-accent border-accent/30","test-coverage":"bg-info/15 text-info border-info/30",documentation:"bg-neutral/15 text-neutral border-neutral/30",other:"bg-neutral/15 text-neutral border-neutral/30"},ya={approve:"bg-success/15 text-success border border-success/30 hover:bg-success/25 hover:border-success/50",reject:"bg-danger/15 text-danger border border-danger/30 hover:bg-danger/25 hover:border-danger/50",comment:"bg-info/15 text-info border border-info/30 hover:bg-info/25 hover:border-info/50",dismiss:"bg-neutral/15 text-neutral border border-neutral/30 hover:bg-neutral/25 hover:border-neutral/50"},ga={security:"bg-danger/15 text-danger border border-danger/30",breaking:"bg-danger/15 text-danger border border-danger/30",modules:"bg-info/15 text-info border border-info/30",deps:"bg-warning/15 text-warning border border-warning/30",complexity:"bg-perf/15 text-perf border border-perf/30",coverage:"bg-warning/15 text-warning border border-warning/30",patterns:"bg-accent/15 text-accent border border-accent/30"},Hl={security:"text-danger",breaking:"text-danger",deps:"text-warning",complexity:"text-perf",coverage:"text-warning",patterns:"text-accent"},b2={staged:"bg-success/20 text-success border-success/30",unstaged:"bg-warning/20 text-warning border-warning/30"},v2={critical:"bg-danger/15 text-danger border border-danger/30",warning:"bg-warning/15 text-warning border border-warning/30"},x2={critical:"text-danger",warning:"text-warning"};function S2(){const[n,l]=C.useState(!1),{briefing:r,metadata:s,isServerMode:o,clearReview:f,sessions:h,activeSessionId:p}=Xe(),m=h.find(R=>R.id===p),g=m==null?void 0:m.branch,b=m!=null&&m.projectPath?m.projectPath.split("/").filter(Boolean).pop():void 0;if(!r)return null;const{impact:v,verification:S,complexity:E,testCoverage:w,patterns:A}=r,k=v.breakingChanges.length>0,z=v.newDependencies.length>0,L=v.affectedModules.length,j=(E==null?void 0:E.filter(R=>R.score>=5))??[],q=(w==null?void 0:w.filter(R=>R.testFile===null))??[],I=(A==null?void 0:A.filter(R=>R.severity))??[],V=(A==null?void 0:A.filter(R=>!R.severity))??[],O=V.length;return d.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[d.jsxs("div",{className:"flex items-center",children:[o&&d.jsx("button",{onClick:f,className:"px-3 py-2.5 text-text-secondary hover:text-text-primary transition-colors cursor-pointer border-r border-border",title:"Back to sessions",children:d.jsx(HS,{className:"w-4 h-4"})}),d.jsxs("button",{onClick:()=>l(!n),className:"flex-1 px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[d.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:r.summary}),d.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(g||b)&&d.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-text-primary/5 text-text-secondary max-w-[22rem]",title:m==null?void 0:m.projectPath,children:[d.jsx(qn,{className:"w-3 h-3 flex-shrink-0"}),b&&d.jsx("span",{className:"truncate",children:b}),b&&g&&d.jsx("span",{className:"opacity-40",children:"/"}),g&&d.jsx("span",{className:"truncate",children:g})]}),I.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${ga.security}`,children:[d.jsx(Rs,{className:"w-3 h-3"}),I.length," security flag",I.length!==1?"s":""]}),L>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.modules}`,children:[d.jsx(Fa,{className:"w-3 h-3"}),L," module",L!==1?"s":""]}),k&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.breaking}`,children:[d.jsx(Zl,{className:"w-3 h-3"}),"breaking"]}),z&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.deps}`,children:[d.jsx(Qg,{className:"w-3 h-3"}),v.newDependencies.length," new dep",v.newDependencies.length!==1?"s":""]}),j.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.complexity}`,children:[d.jsx(Zg,{className:"w-3 h-3"}),j.length," complex"]}),q.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.coverage}`,children:[d.jsx(Rs,{className:"w-3 h-3"}),q.length," untested"]}),O>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${ga.patterns}`,children:[d.jsx(Jg,{className:"w-3 h-3"}),O," pattern",O!==1?"s":""]}),n?d.jsx(Cf,{className:"w-4 h-4 text-text-secondary"}):d.jsx(Ks,{className:"w-4 h-4 text-text-secondary"})]})]}),d.jsx("div",{className:"px-3 py-2.5 border-l border-border flex-shrink-0",children:d.jsx(d2,{})})]}),(s==null?void 0:s.githubPr)&&d.jsxs("div",{className:"px-4 py-2 border-t border-border/50 flex items-center gap-3 text-xs",children:[d.jsx(va,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),d.jsxs("span",{className:"text-text-primary font-medium truncate",children:[s.githubPr.owner,"/",s.githubPr.repo,"#",s.githubPr.number]}),d.jsxs("span",{className:"text-text-secondary",children:["by ",s.githubPr.author]}),d.jsxs("span",{className:"text-text-secondary font-mono",children:[s.githubPr.baseBranch," ← ",s.githubPr.headBranch]}),d.jsxs("a",{href:s.githubPr.url,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1 text-accent hover:text-accent/80 transition-colors flex-shrink-0",children:["View on GitHub",d.jsx(_f,{className:"w-3 h-3"})]})]}),n&&d.jsxs("div",{className:"px-4 pb-3 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-border/50 pt-3",children:[I.length>0&&d.jsxs("div",{className:"col-span-2",children:[d.jsxs("h4",{className:`${Hl.security} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Rs,{className:"w-3.5 h-3.5"}),"Security Flags"]}),d.jsx("ul",{className:"space-y-0.5",children:I.map((R,Z)=>d.jsxs("li",{className:"text-xs",children:[d.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${v2[R.severity??"warning"]}`,children:R.pattern.replace("_"," ")}),d.jsx("span",{className:`text-[10px] font-medium uppercase mr-1.5 ${x2[R.severity??"warning"]}`,children:R.severity}),d.jsxs("span",{className:"font-mono text-text-secondary",children:[R.file,":",R.line]}),d.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",R.content]})]},`${R.file}:${R.line}:${Z}`))})]}),v.affectedModules.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(Fa,{className:"w-3.5 h-3.5"}),"Affected Modules"]}),d.jsx("ul",{className:"space-y-0.5",children:v.affectedModules.map(R=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:R},R))})]}),v.affectedTests.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(Xg,{className:"w-3.5 h-3.5"}),"Affected Tests"]}),d.jsx("ul",{className:"space-y-0.5",children:v.affectedTests.map(R=>d.jsx("li",{className:"text-text-primary text-xs font-mono truncate",children:R},R))})]}),k&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${Hl.breaking} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Zl,{className:"w-3.5 h-3.5"}),"Breaking Changes"]}),d.jsx("ul",{className:"space-y-0.5",children:v.breakingChanges.map(R=>d.jsx("li",{className:"text-danger text-xs",children:R},R))})]}),z&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${Hl.deps} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Qg,{className:"w-3.5 h-3.5"}),"New Dependencies"]}),d.jsx("ul",{className:"space-y-0.5",children:v.newDependencies.map(R=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:R},R))})]}),j.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${Hl.complexity} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Zg,{className:"w-3.5 h-3.5"}),"High Complexity"]}),d.jsx("ul",{className:"space-y-0.5",children:j.map(R=>d.jsxs("li",{className:"text-text-primary text-xs",children:[d.jsx("span",{className:"font-mono",children:R.path}),d.jsxs("span",{className:"text-perf ml-1",children:["(",R.score,"/10)"]}),R.factors.length>0&&d.jsxs("span",{className:"text-text-secondary ml-1",children:["— ",R.factors.join(", ")]})]},R.path))})]}),q.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${Hl.coverage} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Rs,{className:"w-3.5 h-3.5"}),"Missing Test Changes"]}),d.jsx("ul",{className:"space-y-0.5",children:q.map(R=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:R.sourceFile},R.sourceFile))})]}),V.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${Hl.patterns} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Jg,{className:"w-3.5 h-3.5"}),"Pattern Flags"]}),d.jsx("ul",{className:"space-y-0.5",children:V.map((R,Z)=>d.jsxs("li",{className:"text-xs",children:[d.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${ga.patterns}`,children:R.pattern}),d.jsxs("span",{className:"font-mono text-text-secondary",children:[R.file,R.line>0?`:${R.line}`:""]}),R.line>0&&d.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",R.content]})]},`${R.file}:${R.line}:${Z}`))})]}),d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(Xg,{className:"w-3.5 h-3.5"}),"Verification"]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Uc,{label:"Tests",value:S.testsPass}),d.jsx(Uc,{label:"Types",value:S.typeCheck}),d.jsx(Uc,{label:"Lint",value:S.lintClean})]})]})]})]})}function Uc({label:n,value:l}){return l===null?d.jsxs("span",{className:"text-text-secondary text-xs",children:[n,": ",d.jsx("span",{className:"font-mono",children:"—"})]}):d.jsxs("span",{className:`text-xs ${l?"text-success":"text-danger"}`,children:[n,": ",d.jsx("span",{className:"font-mono",children:l?"pass":"fail"})]})}function E2(){const[n,l]=C.useState(!1),{metadata:r}=Xe();return r!=null&&r.reasoning?d.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[d.jsxs("button",{onClick:()=>l(!n),className:"w-full px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[d.jsx(YS,{className:"w-4 h-4 text-accent flex-shrink-0"}),d.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:"Agent Reasoning"}),n?d.jsx(Cf,{className:"w-4 h-4 text-text-secondary"}):d.jsx(Ks,{className:"w-4 h-4 text-text-secondary"})]}),n&&d.jsx("div",{className:"px-4 pb-3 border-t border-border/50 pt-3",children:d.jsx("p",{className:"text-text-secondary text-sm whitespace-pre-wrap",children:r.reasoning})})]}):null}const w2={added:"A",modified:"M",deleted:"D",renamed:"R"};function N2(n){return{label:w2[n],className:p2[n]}}const A2={added:WS,deleted:QS,modified:JS,renamed:Ql};function T2(n){const l=A2[n]??Ql;return d.jsx(l,{className:`w-4 h-4 flex-shrink-0 ${g2[n]}`})}const C2={reviewed:jf,approved:IS,needs_changes:Xa};function k2(n){const l=C2[n];return l?d.jsx(l,{className:`w-3.5 h-3.5 flex-shrink-0 ${y2[n]}`}):null}function _2(n){const l=n.split("/");return l[l.length-1]}function j2(n){const l=n.split("/");return l.length<=1?"":l.slice(0,-1).join("/")}function O2({onSubmit:n}){const{diffSet:l,selectedFile:r,selectFile:s,fileStatuses:o,cycleFileStatus:f,toggleHotkeyGuide:h,comments:p,navigateHunk:m,setFileStatus:g,briefing:b}=Xe(),[v,S]=C.useState({}),[E,w]=C.useState(!1),A=C.useRef(null),k=C.useMemo(()=>l?l.files.some(W=>W.stage!==void 0):!1,[l]),{stagedFiles:z,unstagedFiles:L}=C.useMemo(()=>l?k?{stagedFiles:l.files.filter(W=>W.stage==="staged"),unstagedFiles:l.files.filter(W=>W.stage==="unstaged")}:{stagedFiles:[],unstagedFiles:[]}:{stagedFiles:[],unstagedFiles:[]},[l,k]),j=C.useMemo(()=>{if(!l||!(b!=null&&b.triage))return null;const{critical:W,notable:K,mechanical:D}=b.triage;if(!(W.length>0||D.length>0))return null;const re=new Set(W.map(te=>te.file)),ce=new Set(D.map(te=>te.file)),fe=[],N=[],G=[];for(const te of l.files)re.has(te.path)?fe.push(te):ce.has(te.path)?G.push(te):N.push(te);return{criticalFiles:fe,notableFiles:N,mechanicalFiles:G}},[l,b]),q=j!==null&&!k,I=C.useMemo(()=>{if(!l)return[];if(q&&j){const K=[];return v["triage-critical"]||K.push(...j.criticalFiles),v["triage-notable"]||K.push(...j.notableFiles),v["triage-mechanical"]||K.push(...j.mechanicalFiles),K}if(!k)return l.files;const W=[];return v.staged||W.push(...z),v.unstaged||W.push(...L),W},[l,k,z,L,v,q,j]),V=C.useCallback(W=>{if(I.length===0)return;const K=I.findIndex(U=>Vt(U)===r);let D;K===-1?D=0:W==="up"?D=K>0?K-1:K:D=K<I.length-1?K+1:K,s(Vt(I[D]))},[I,r,s]);C.useEffect(()=>{function W(K){const D=K.target.tagName;D==="INPUT"||D==="TEXTAREA"||(K.key==="ArrowUp"||K.key==="k"?(K.preventDefault(),V("up")):K.key==="ArrowDown"||K.key==="j"?(K.preventDefault(),V("down")):K.key==="s"?(K.preventDefault(),r&&f(r)):K.key==="?"?(K.preventDefault(),h()):K.key==="n"?(K.preventDefault(),m("next")):K.key==="p"?(K.preventDefault(),m("prev")):K.key==="c"&&(K.preventDefault(),document.dispatchEvent(new CustomEvent("diffprism:open-comment"))))}return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[V,r,f,h,m]),C.useEffect(()=>{if(!E)return;function W(K){A.current&&!A.current.contains(K.target)&&w(!1)}return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[E]);const O=C.useCallback(W=>{const K=Object.values(o).some(D=>D!=="unreviewed");n({decision:"approved",comments:p,fileStatuses:K?o:void 0,postReviewAction:W}),w(!1)},[o,p,n]),R=C.useCallback(()=>{if(j)for(const W of j.mechanicalFiles)g(Vt(W),"approved")},[j,g]);if(!l)return null;const Z=l.files.reduce((W,K)=>W+K.additions,0),se=l.files.reduce((W,K)=>W+K.deletions,0),P=W=>{S(K=>({...K,[W]:!K[W]}))},ue=W=>{const K=Vt(W),D=K===r,U=N2(W.status),re=j2(W.path);return d.jsxs("button",{onClick:()=>s(K),className:`
|
|
344
|
+
w-full text-left px-3 py-2 flex items-center gap-2
|
|
345
|
+
transition-colors duration-100 cursor-pointer group
|
|
346
|
+
${D?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-text-primary/5"}
|
|
347
|
+
`,children:[T2(W.status),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:`text-sm truncate ${D?"text-text-primary":"text-text-secondary"} group-hover:text-text-primary`,children:_2(W.path)}),re&&d.jsx("div",{className:"text-xs text-text-secondary truncate",children:re})]}),d.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(()=>{const ce=o[K]??"unreviewed",fe=k2(ce);return d.jsx("button",{onClick:N=>{N.stopPropagation(),f(K)},className:`p-0.5 rounded hover:bg-text-primary/10 transition-colors cursor-pointer ${fe?"":"opacity-0 group-hover:opacity-40"}`,title:fe?`Status: ${ce} (click to cycle)`:"Mark as reviewed (click to cycle)",children:fe??d.jsx(jf,{className:"w-3.5 h-3.5 text-text-secondary"})})})(),W.additions>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",W.additions]}),W.deletions>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",W.deletions]}),d.jsx("span",{className:`
|
|
348
|
+
text-[10px] font-bold px-1.5 py-0.5 rounded border
|
|
349
|
+
${U.className}
|
|
350
|
+
`,children:U.label})]})]},K)},le=(W,K,D)=>{const U=v[K]??!1,re=D.reduce((fe,N)=>fe+N.additions,0),ce=D.reduce((fe,N)=>fe+N.deletions,0);return d.jsxs("button",{onClick:()=>P(K),className:"w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-text-primary/5 cursor-pointer",children:[U?d.jsx(qS,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):d.jsx(Ks,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),d.jsxs("span",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wide",children:[W," (",D.length,")"]}),d.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[re>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",re]}),ce>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ce]})]})]},`section-${K}`)};return d.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-surface",children:[d.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Files"}),d.jsxs("div",{className:"relative",ref:A,children:[d.jsx("button",{onClick:()=>w(W=>!W),className:"p-1 rounded hover:bg-text-primary/10 transition-colors cursor-pointer text-text-secondary hover:text-text-primary",title:"Quick actions",children:d.jsx(ZS,{className:"w-4 h-4"})}),E&&d.jsxs("div",{className:"absolute right-0 top-full mt-1 w-52 bg-surface border border-border rounded-lg shadow-lg z-50 py-1",children:[d.jsxs("button",{onClick:()=>O("commit"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[d.jsx(Vl,{className:"w-4 h-4 text-success"}),"Approve & Commit"]}),d.jsxs("button",{onClick:()=>O("commit_and_pr"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[d.jsx(va,{className:"w-4 h-4 text-info"}),"Approve, Commit & PR"]})]})]})]}),d.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[d.jsxs("span",{className:"text-text-secondary text-xs",children:[l.files.length," file",l.files.length!==1?"s":""]}),Z>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",Z]}),se>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",se]})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:q&&j?d.jsxs(d.Fragment,{children:[j.criticalFiles.length>0&&d.jsxs(d.Fragment,{children:[le("Critical","triage-critical",j.criticalFiles),!v["triage-critical"]&&j.criticalFiles.map(ue)]}),j.notableFiles.length>0&&d.jsxs(d.Fragment,{children:[le("Notable","triage-notable",j.notableFiles),!v["triage-notable"]&&j.notableFiles.map(ue)]}),j.mechanicalFiles.length>0&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center",children:[d.jsx("div",{className:"flex-1",children:le("Mechanical","triage-mechanical",j.mechanicalFiles)}),d.jsx("button",{onClick:R,className:"mr-3 text-[10px] font-medium text-success hover:text-success/80 cursor-pointer px-1.5 py-0.5 rounded border border-success/30 hover:bg-success/10",children:"Approve all"})]}),!v["triage-mechanical"]&&j.mechanicalFiles.map(ue)]})]}):k?d.jsxs(d.Fragment,{children:[z.length>0&&d.jsxs(d.Fragment,{children:[le("Staged Changes","staged",z),!v.staged&&z.map(ue)]}),L.length>0&&d.jsxs(d.Fragment,{children:[le("Changes","unstaged",L),!v.unstaged&&L.map(ue)]})]}):l.files.map(ue)})]})}function ey(n,l){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.push.apply(r,s)}return r}function qe(n){for(var l=1;l<arguments.length;l++){var r=arguments[l]!=null?arguments[l]:{};l%2?ey(Object(r),!0).forEach((function(s){Jc(n,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach((function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))}))}return n}function Jc(n,l,r){return(l=(function(s){var o=(function(f,h){if(typeof f!="object"||f===null)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var m=p.call(f,h);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)})(s,"string");return typeof o=="symbol"?o:String(o)})(l))in n?Object.defineProperty(n,l,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[l]=r,n}function xa(n,l){if(n==null)return{};var r,s,o=(function(h,p){if(h==null)return{};var m,g,b={},v=Object.keys(h);for(g=0;g<v.length;g++)m=v[g],p.indexOf(m)>=0||(b[m]=h[m]);return b})(n,l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(s=0;s<f.length;s++)r=f[s],l.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}function pt(n,l){return fb(n)||(function(r,s){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var f,h,p,m,g=[],b=!0,v=!1;try{if(p=(o=o.call(r)).next,s===0){if(Object(o)!==o)return;b=!1}else for(;!(b=(f=p.call(o)).done)&&(g.push(f.value),g.length!==s);b=!0);}catch(S){v=!0,h=S}finally{try{if(!b&&o.return!=null&&(m=o.return(),Object(m)!==m))return}finally{if(v)throw h}}return g}})(n,l)||Qs(n,l)||hb()}function R2(n){return fb(n)||db(n)||Qs(n)||hb()}function Il(n){return(function(l){if(Array.isArray(l))return Wc(l)})(n)||db(n)||Qs(n)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
351
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function fb(n){if(Array.isArray(n))return n}function db(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Qs(n,l){if(n){if(typeof n=="string")return Wc(n,l);var r=Object.prototype.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wc(n,l):void 0}}function Wc(n,l){(l==null||l>n.length)&&(l=n.length);for(var r=0,s=new Array(l);r<l;r++)s[r]=n[r];return s}function hb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
352
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mf(n,l){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=Qs(n))||l){r&&(n=r);var s=0,o=function(){};return{s:o,n:function(){return s>=n.length?{done:!0}:{done:!1,value:n[s++]}},e:function(m){throw m},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,h=!0,p=!1;return{s:function(){r=r.call(n)},n:function(){var m=r.next();return h=m.done,m},e:function(m){p=!0,f=m},f:function(){try{h||r.return==null||r.return()}finally{if(p)throw f}}}}var Ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(n,l){return n(l={exports:{}},l.exports),l.exports}var Xt=oi((function(n){/*!
|
|
354
|
+
Copyright (c) 2018 Jed Watson.
|
|
355
|
+
Licensed under the MIT License (MIT), see
|
|
356
|
+
http://jedwatson.github.io/classnames
|
|
357
|
+
*/(function(){var l={}.hasOwnProperty;function r(){for(var s=[],o=0;o<arguments.length;o++){var f=arguments[o];if(f){var h=typeof f;if(h==="string"||h==="number")s.push(f);else if(Array.isArray(f)){if(f.length){var p=r.apply(null,f);p&&s.push(p)}}else if(h==="object"){if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]")){s.push(f.toString());continue}for(var m in f)l.call(f,m)&&f[m]&&s.push(m)}}}return s.join(" ")}n.exports?(r.default=r,n.exports=r):window.classNames=r})()})),Dt={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(n){var l=n.renderDefault;return(0,n.wrapInAnchor)(l())},codeEvents:{},gutterEvents:{}},mb=C.createContext(Dt),M2=mb.Provider,D2=function(){return C.useContext(mb)},z2=oi((function(n,l){(function(r){function s(f){var h=f.slice(11),p=null,m=null;switch(h.indexOf('"')){case-1:p=(v=h.split(" "))[0].slice(2),m=v[1].slice(2);break;case 0:var g=h.indexOf('"',2);p=h.slice(3,g);var b=h.indexOf('"',g+1);m=b<0?h.slice(g+4):h.slice(b+3,-1);break;default:var v;p=(v=h.split(" "))[0].slice(2),m=v[1].slice(3,-1)}return{oldPath:p,newPath:m}}var o={parse:function(f){for(var h,p,m,g,b,v=[],S=2,E=f.split(`
|
|
358
|
+
`),w=E.length,A=0;A<w;){var k=E[A];if(k.indexOf("diff --git")===0){h={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(b=s(k)).oldPath,newPath:b.newPath},v.push(h);var z,L=null;e:for(;z=E[++A];){var j=z.indexOf(" "),q=j>-1?z.slice(0,j):q;switch(q){case"diff":A--;break e;case"deleted":case"new":var I=z.slice(j+1);I.indexOf("file mode")===0&&(h[q==="new"?"newMode":"oldMode"]=I.slice(10));break;case"similarity":h.similarity=parseInt(z.split(" ")[2],10);break;case"index":var V=z.slice(j+1).split(" "),O=V[0].split("..");h.oldRevision=O[0],h.newRevision=O[1],V[1]&&(h.oldMode=h.newMode=V[1]);break;case"copy":case"rename":var R=z.slice(j+1);R.indexOf("from")===0?h.oldPath=R.slice(5):h.newPath=R.slice(3),L=q;break;case"---":var Z=z.slice(j+1),se=E[++A].slice(4);Z==="/dev/null"?(se=se.slice(2),L="add"):se==="/dev/null"?(Z=Z.slice(2),L="delete"):(L="modify",Z=Z.slice(2),se=se.slice(2)),Z&&(h.oldPath=Z),se&&(h.newPath=se),S=5;break e}}h.type=L||"modify"}else if(k.indexOf("Binary")===0)h.isBinary=!0,h.type=k.indexOf("/dev/null and")>=0?"add":k.indexOf("and /dev/null")>=0?"delete":"modify",S=2,h=null;else if(S===5)if(k.indexOf("@@")===0){var P=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(k);p={content:k,oldStart:P[1]-0,newStart:P[4]-0,oldLines:P[3]-0||1,newLines:P[6]-0||1,changes:[]},h.hunks.push(p),m=p.oldStart,g=p.newStart}else{var ue=k.slice(0,1),le={content:k.slice(1)};switch(ue){case"+":le.type="insert",le.isInsert=!0,le.lineNumber=g,g++;break;case"-":le.type="delete",le.isDelete=!0,le.lineNumber=m,m++;break;case" ":le.type="normal",le.isNormal=!0,le.oldLineNumber=m,le.newLineNumber=g,m++,g++;break;case"\\":var W=p.changes[p.changes.length-1];W.isDelete||(h.newEndingNewLine=!1),W.isInsert||(h.oldEndingNewLine=!1)}le.type&&p.changes.push(le)}A++}return v}};n.exports=o})()}));function Za(n){return n.type==="insert"}function sn(n){return n.type==="delete"}function Va(n){return n.type==="normal"}function L2(n,l){var r=l.nearbySequences==="zip"?(function(s){var o=s.reduce((function(f,h,p){var m=pt(f,3),g=m[0],b=m[1],v=m[2];return b?Za(h)&&v>=0?(g.splice(v+1,0,h),[g,h,v+2]):(g.push(h),[g,h,sn(h)&&sn(b)?v:p]):(g.push(h),[g,h,sn(h)?p:-1])}),[[],null,-1]);return pt(o,1)[0]})(n.changes):n.changes;return qe(qe({},n),{},{isPlain:!1,changes:r})}function U2(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(function(s){if(s.startsWith("diff --git"))return s;var o=s.indexOf(`
|
|
359
|
+
`),f=s.indexOf(`
|
|
360
|
+
`,o+1),h=s.slice(0,o),p=s.slice(o+1,f),m=h.split(" ").slice(1,-3).join(" "),g=p.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(m," b/").concat(g),"index 1111111..2222222 100644","--- a/".concat(m),"+++ b/".concat(g),s.slice(f+1)].join(`
|
|
361
|
+
`)})(n.trimStart());return z2.parse(r).map((function(s){return(function(o,f){var h=o.hunks.map((function(p){return L2(p,f)}));return qe(qe({},o),{},{hunks:h})})(s,l)}))}function B2(n){return n[0]}function H2(n){return n[n.length-1]}function Pc(n){return["".concat(n,"Start"),"".concat(n,"Lines")]}function ti(n){return n==="old"?function(l){return Za(l)?-1:Va(l)?l.oldLineNumber:l.lineNumber}:function(l){return sn(l)?-1:Va(l)?l.newLineNumber:l.lineNumber}}function pb(n,l){return function(r,s){var o=r[n],f=o+r[l];return s>=o&&s<f}}function $2(n,l){return function(r,s,o){var f=r[n]+r[l],h=s[n];return o>=f&&o<h}}function gb(n){var l=ti(n),r=(function(s){var o=pt(Pc(s),2),f=pb(o[0],o[1]);return function(h,p){return h.find((function(m){return f(m,p)}))}})(n);return function(s,o){var f=r(s,o);if(f)return f.changes.find((function(h){return l(h)===o}))}}function Df(n){var l=n==="old"?"new":"old",r=pt(Pc(n),2),s=r[0],o=r[1],f=pt(Pc(l),2),h=f[0],p=f[1],m=ti(n),g=ti(l),b=pb(s,o),v=$2(s,o);return function(S,E){var w=B2(S);if(E<w[s]){var A=w[s]-E;return w[h]-A}var k=H2(S);if(k[s]+k[o]<=E){var z=E-k[s]-k[o];return k[h]+k[p]+z}for(var L=0;L<S.length;L++){var j=S[L],q=S[L+1];if(b(j,E)){var I=j.changes.findIndex((function(P){return m(P)===E})),V=j.changes[I];if(Va(V))return g(V);var O=sn(V)?I+1:I-1,R=j.changes[O];if(!R)return-1;var Z=Za(V)?"delete":"insert";return R.type===Z?g(R):-1}if(v(j,q,E)){var se=E-j[s]-j[o];return j[h]+j[p]+se}}throw new Error("Unexpected line position ".concat(E))}}var G2=function(){this.__data__=[],this.size=0},yb=function(n,l){return n===l||n!=n&&l!=l},Js=function(n,l){for(var r=n.length;r--;)if(yb(n[r][0],l))return r;return-1},Y2=Array.prototype.splice,q2=function(n){var l=this.__data__,r=Js(l,n);return!(r<0)&&(r==l.length-1?l.pop():Y2.call(l,r,1),--this.size,!0)},I2=function(n){var l=this.__data__,r=Js(l,n);return r<0?void 0:l[r][1]},F2=function(n){return Js(this.__data__,n)>-1},V2=function(n,l){var r=this.__data__,s=Js(r,n);return s<0?(++this.size,r.push([n,l])):r[s][1]=l,this};function $l(n){var l=-1,r=n==null?0:n.length;for(this.clear();++l<r;){var s=n[l];this.set(s[0],s[1])}}$l.prototype.clear=G2,$l.prototype.delete=q2,$l.prototype.get=I2,$l.prototype.has=F2,$l.prototype.set=V2;var Ws=$l,X2=function(){this.__data__=new Ws,this.size=0},Z2=function(n){var l=this.__data__,r=l.delete(n);return this.size=l.size,r},K2=function(n){return this.__data__.get(n)},Q2=function(n){return this.__data__.has(n)},bb=typeof Ms=="object"&&Ms&&Ms.Object===Object&&Ms,J2=typeof self=="object"&&self&&self.Object===Object&&self,In=bb||J2||Function("return this")(),wn=In.Symbol,vb=Object.prototype,W2=vb.hasOwnProperty,P2=vb.toString,Qr=wn?wn.toStringTag:void 0,eE=function(n){var l=W2.call(n,Qr),r=n[Qr];try{n[Qr]=void 0;var s=!0}catch{}var o=P2.call(n);return s&&(l?n[Qr]=r:delete n[Qr]),o},tE=Object.prototype.toString,nE=function(n){return tE.call(n)},ty=wn?wn.toStringTag:void 0,Jl=function(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":ty&&ty in Object(n)?eE(n):nE(n)},zf=function(n){var l=typeof n;return n!=null&&(l=="object"||l=="function")},xb=function(n){if(!zf(n))return!1;var l=Jl(n);return l=="[object Function]"||l=="[object GeneratorFunction]"||l=="[object AsyncFunction]"||l=="[object Proxy]"},Bc=In["__core-js_shared__"],ny=(function(){var n=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),aE=function(n){return!!ny&&ny in n},lE=Function.prototype.toString,Ka=function(n){if(n!=null){try{return lE.call(n)}catch{}try{return n+""}catch{}}return""},rE=/^\[object .+?Constructor\]$/,iE=Function.prototype,sE=Object.prototype,oE=iE.toString,uE=sE.hasOwnProperty,cE=RegExp("^"+oE.call(uE).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fE=function(n){return!(!zf(n)||aE(n))&&(xb(n)?cE:rE).test(Ka(n))},dE=function(n,l){return n==null?void 0:n[l]},Qa=function(n,l){var r=dE(n,l);return fE(r)?r:void 0},ni=Qa(In,"Map"),ai=Qa(Object,"create"),hE=function(){this.__data__=ai?ai(null):{},this.size=0},mE=function(n){var l=this.has(n)&&delete this.__data__[n];return this.size-=l?1:0,l},pE=Object.prototype.hasOwnProperty,gE=function(n){var l=this.__data__;if(ai){var r=l[n];return r==="__lodash_hash_undefined__"?void 0:r}return pE.call(l,n)?l[n]:void 0},yE=Object.prototype.hasOwnProperty,bE=function(n){var l=this.__data__;return ai?l[n]!==void 0:yE.call(l,n)},vE=function(n,l){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=ai&&l===void 0?"__lodash_hash_undefined__":l,this};function Gl(n){var l=-1,r=n==null?0:n.length;for(this.clear();++l<r;){var s=n[l];this.set(s[0],s[1])}}Gl.prototype.clear=hE,Gl.prototype.delete=mE,Gl.prototype.get=gE,Gl.prototype.has=bE,Gl.prototype.set=vE;var ay=Gl,xE=function(){this.size=0,this.__data__={hash:new ay,map:new(ni||Ws),string:new ay}},SE=function(n){var l=typeof n;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?n!=="__proto__":n===null},Ps=function(n,l){var r=n.__data__;return SE(l)?r[typeof l=="string"?"string":"hash"]:r.map},EE=function(n){var l=Ps(this,n).delete(n);return this.size-=l?1:0,l},wE=function(n){return Ps(this,n).get(n)},NE=function(n){return Ps(this,n).has(n)},AE=function(n,l){var r=Ps(this,n),s=r.size;return r.set(n,l),this.size+=r.size==s?0:1,this};function Yl(n){var l=-1,r=n==null?0:n.length;for(this.clear();++l<r;){var s=n[l];this.set(s[0],s[1])}}Yl.prototype.clear=xE,Yl.prototype.delete=EE,Yl.prototype.get=wE,Yl.prototype.has=NE,Yl.prototype.set=AE;var eo=Yl,TE=function(n,l){var r=this.__data__;if(r instanceof Ws){var s=r.__data__;if(!ni||s.length<199)return s.push([n,l]),this.size=++r.size,this;r=this.__data__=new eo(s)}return r.set(n,l),this.size=r.size,this};function ql(n){var l=this.__data__=new Ws(n);this.size=l.size}ql.prototype.clear=X2,ql.prototype.delete=Z2,ql.prototype.get=K2,ql.prototype.has=Q2,ql.prototype.set=TE;var Hs=ql,CE=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},kE=function(n){return this.__data__.has(n)};function $s(n){var l=-1,r=n==null?0:n.length;for(this.__data__=new eo;++l<r;)this.add(n[l])}$s.prototype.add=$s.prototype.push=CE,$s.prototype.has=kE;var _E=$s,jE=function(n,l){for(var r=-1,s=n==null?0:n.length;++r<s;)if(l(n[r],r,n))return!0;return!1},OE=function(n,l){return n.has(l)},Sb=function(n,l,r,s,o,f){var h=1&r,p=n.length,m=l.length;if(p!=m&&!(h&&m>p))return!1;var g=f.get(n),b=f.get(l);if(g&&b)return g==l&&b==n;var v=-1,S=!0,E=2&r?new _E:void 0;for(f.set(n,l),f.set(l,n);++v<p;){var w=n[v],A=l[v];if(s)var k=h?s(A,w,v,l,n,f):s(w,A,v,n,l,f);if(k!==void 0){if(k)continue;S=!1;break}if(E){if(!jE(l,(function(z,L){if(!OE(E,L)&&(w===z||o(w,z,r,s,f)))return E.push(L)}))){S=!1;break}}else if(w!==A&&!o(w,A,r,s,f)){S=!1;break}}return f.delete(n),f.delete(l),S},ly=In.Uint8Array,RE=function(n){var l=-1,r=Array(n.size);return n.forEach((function(s,o){r[++l]=[o,s]})),r},ME=function(n){var l=-1,r=Array(n.size);return n.forEach((function(s){r[++l]=s})),r},ry=wn?wn.prototype:void 0,Hc=ry?ry.valueOf:void 0,DE=function(n,l,r,s,o,f,h){switch(r){case"[object DataView]":if(n.byteLength!=l.byteLength||n.byteOffset!=l.byteOffset)return!1;n=n.buffer,l=l.buffer;case"[object ArrayBuffer]":return!(n.byteLength!=l.byteLength||!f(new ly(n),new ly(l)));case"[object Boolean]":case"[object Date]":case"[object Number]":return yb(+n,+l);case"[object Error]":return n.name==l.name&&n.message==l.message;case"[object RegExp]":case"[object String]":return n==l+"";case"[object Map]":var p=RE;case"[object Set]":var m=1&s;if(p||(p=ME),n.size!=l.size&&!m)return!1;var g=h.get(n);if(g)return g==l;s|=2,h.set(n,l);var b=Sb(p(n),p(l),s,o,f,h);return h.delete(n),b;case"[object Symbol]":if(Hc)return Hc.call(n)==Hc.call(l)}return!1},Eb=function(n,l){for(var r=-1,s=l.length,o=n.length;++r<s;)n[o+r]=l[r];return n},on=Array.isArray,zE=function(n,l,r){var s=l(n);return on(n)?s:Eb(s,r(n))},LE=function(n,l){for(var r=-1,s=n==null?0:n.length,o=0,f=[];++r<s;){var h=n[r];l(h,r,n)&&(f[o++]=h)}return f},UE=function(){return[]},BE=Object.prototype.propertyIsEnumerable,iy=Object.getOwnPropertySymbols,HE=iy?function(n){return n==null?[]:(n=Object(n),LE(iy(n),(function(l){return BE.call(n,l)})))}:UE,$E=function(n,l){for(var r=-1,s=Array(n);++r<n;)s[r]=l(r);return s},Kl=function(n){return n!=null&&typeof n=="object"},sy=function(n){return Kl(n)&&Jl(n)=="[object Arguments]"},wb=Object.prototype,GE=wb.hasOwnProperty,YE=wb.propertyIsEnumerable,Lf=sy((function(){return arguments})())?sy:function(n){return Kl(n)&&GE.call(n,"callee")&&!YE.call(n,"callee")},qE=function(){return!1},ef=oi((function(n,l){var r=l&&!l.nodeType&&l,s=r&&n&&!n.nodeType&&n,o=s&&s.exports===r?In.Buffer:void 0,f=(o?o.isBuffer:void 0)||qE;n.exports=f})),IE=/^(?:0|[1-9]\d*)$/,Nb=function(n,l){var r=typeof n;return!!(l=l??9007199254740991)&&(r=="number"||r!="symbol"&&IE.test(n))&&n>-1&&n%1==0&&n<l},Uf=function(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=9007199254740991},We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var FE=function(n){return Kl(n)&&Uf(n.length)&&!!We[Jl(n)]},VE=function(n){return function(l){return n(l)}},oy=oi((function(n,l){var r=l&&!l.nodeType&&l,s=r&&n&&!n.nodeType&&n,o=s&&s.exports===r&&bb.process,f=(function(){try{var h=s&&s.require&&s.require("util").types;return h||o&&o.binding&&o.binding("util")}catch{}})();n.exports=f})),uy=oy&&oy.isTypedArray,Ab=uy?VE(uy):FE,XE=Object.prototype.hasOwnProperty,ZE=function(n,l){var r=on(n),s=!r&&Lf(n),o=!r&&!s&&ef(n),f=!r&&!s&&!o&&Ab(n),h=r||s||o||f,p=h?$E(n.length,String):[],m=p.length;for(var g in n)!XE.call(n,g)||h&&(g=="length"||o&&(g=="offset"||g=="parent")||f&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Nb(g,m))||p.push(g);return p},KE=Object.prototype,QE=function(n){var l=n&&n.constructor;return n===(typeof l=="function"&&l.prototype||KE)},JE=(function(n,l){return function(r){return n(l(r))}})(Object.keys,Object),WE=Object.prototype.hasOwnProperty,PE=function(n){if(!QE(n))return JE(n);var l=[];for(var r in Object(n))WE.call(n,r)&&r!="constructor"&&l.push(r);return l},Bf=function(n){return n!=null&&Uf(n.length)&&!xb(n)},Hf=function(n){return Bf(n)?ZE(n):PE(n)},cy=function(n){return zE(n,Hf,HE)},ew=Object.prototype.hasOwnProperty,tw=function(n,l,r,s,o,f){var h=1&r,p=cy(n),m=p.length;if(m!=cy(l).length&&!h)return!1;for(var g=m;g--;){var b=p[g];if(!(h?b in l:ew.call(l,b)))return!1}var v=f.get(n),S=f.get(l);if(v&&S)return v==l&&S==n;var E=!0;f.set(n,l),f.set(l,n);for(var w=h;++g<m;){var A=n[b=p[g]],k=l[b];if(s)var z=h?s(k,A,b,l,n,f):s(A,k,b,n,l,f);if(!(z===void 0?A===k||o(A,k,r,s,f):z)){E=!1;break}w||(w=b=="constructor")}if(E&&!w){var L=n.constructor,j=l.constructor;L==j||!("constructor"in n)||!("constructor"in l)||typeof L=="function"&&L instanceof L&&typeof j=="function"&&j instanceof j||(E=!1)}return f.delete(n),f.delete(l),E},tf=Qa(In,"DataView"),nf=Qa(In,"Promise"),af=Qa(In,"Set"),lf=Qa(In,"WeakMap"),nw=Ka(tf),aw=Ka(ni),lw=Ka(nf),rw=Ka(af),iw=Ka(lf),qa=Jl;(tf&&qa(new tf(new ArrayBuffer(1)))!="[object DataView]"||ni&&qa(new ni)!="[object Map]"||nf&&qa(nf.resolve())!="[object Promise]"||af&&qa(new af)!="[object Set]"||lf&&qa(new lf)!="[object WeakMap]")&&(qa=function(n){var l=Jl(n),r=l=="[object Object]"?n.constructor:void 0,s=r?Ka(r):"";if(s)switch(s){case nw:return"[object DataView]";case aw:return"[object Map]";case lw:return"[object Promise]";case rw:return"[object Set]";case iw:return"[object WeakMap]"}return l});var fy=qa,Ds="[object Object]",dy=Object.prototype.hasOwnProperty,sw=function(n,l,r,s,o,f){var h=on(n),p=on(l),m=h?"[object Array]":fy(n),g=p?"[object Array]":fy(l),b=(m=m=="[object Arguments]"?Ds:m)==Ds,v=(g=g=="[object Arguments]"?Ds:g)==Ds,S=m==g;if(S&&ef(n)){if(!ef(l))return!1;h=!0,b=!1}if(S&&!b)return f||(f=new Hs),h||Ab(n)?Sb(n,l,r,s,o,f):DE(n,l,m,r,s,o,f);if(!(1&r)){var E=b&&dy.call(n,"__wrapped__"),w=v&&dy.call(l,"__wrapped__");if(E||w){var A=E?n.value():n,k=w?l.value():l;return f||(f=new Hs),o(A,k,r,s,f)}}return!!S&&(f||(f=new Hs),tw(n,l,r,s,o,f))},to=function n(l,r,s,o,f){return l===r||(l==null||r==null||!Kl(l)&&!Kl(r)?l!=l&&r!=r:sw(l,r,s,o,n,f))},ow=function(n,l,r,s){var o=r.length,f=o;if(n==null)return!f;for(n=Object(n);o--;){var h=r[o];if(h[2]?h[1]!==n[h[0]]:!(h[0]in n))return!1}for(;++o<f;){var p=(h=r[o])[0],m=n[p],g=h[1];if(h[2]){if(m===void 0&&!(p in n))return!1}else{var b=new Hs,v;if(!(v===void 0?to(g,m,3,s,b):v))return!1}}return!0},Tb=function(n){return n==n&&!zf(n)},uw=function(n){for(var l=Hf(n),r=l.length;r--;){var s=l[r],o=n[s];l[r]=[s,o,Tb(o)]}return l},Cb=function(n,l){return function(r){return r!=null&&r[n]===l&&(l!==void 0||n in Object(r))}},cw=function(n){var l=uw(n);return l.length==1&&l[0][2]?Cb(l[0][0],l[0][1]):function(r){return r===n||ow(r,n,l)}},$f=function(n){return typeof n=="symbol"||Kl(n)&&Jl(n)=="[object Symbol]"},fw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dw=/^\w*$/,Gf=function(n,l){if(on(n))return!1;var r=typeof n;return!(r!="number"&&r!="symbol"&&r!="boolean"&&n!=null&&!$f(n))||dw.test(n)||!fw.test(n)||l!=null&&n in Object(l)};function Yf(n,l){if(typeof n!="function"||l!=null&&typeof l!="function")throw new TypeError("Expected a function");var r=function(){var s=arguments,o=l?l.apply(this,s):s[0],f=r.cache;if(f.has(o))return f.get(o);var h=n.apply(this,s);return r.cache=f.set(o,h)||f,h};return r.cache=new(Yf.Cache||eo),r}Yf.Cache=eo;var hw=Yf,mw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pw=/\\(\\)?/g,gw=(function(n){var l=hw(n,(function(s){return r.size===500&&r.clear(),s})),r=l.cache;return l})((function(n){var l=[];return n.charCodeAt(0)===46&&l.push(""),n.replace(mw,(function(r,s,o,f){l.push(o?f.replace(pw,"$1"):s||r)})),l})),kb=function(n,l){for(var r=-1,s=n==null?0:n.length,o=Array(s);++r<s;)o[r]=l(n[r],r,n);return o},hy=wn?wn.prototype:void 0,my=hy?hy.toString:void 0,yw=function n(l){if(typeof l=="string")return l;if(on(l))return kb(l,n)+"";if($f(l))return my?my.call(l):"";var r=l+"";return r=="0"&&1/l==-1/0?"-0":r},bw=function(n){return n==null?"":yw(n)},_b=function(n,l){return on(n)?n:Gf(n,l)?[n]:gw(bw(n))},no=function(n){if(typeof n=="string"||$f(n))return n;var l=n+"";return l=="0"&&1/n==-1/0?"-0":l},jb=function(n,l){for(var r=0,s=(l=_b(l,n)).length;n!=null&&r<s;)n=n[no(l[r++])];return r&&r==s?n:void 0},vw=function(n,l,r){var s=n==null?void 0:jb(n,l);return s===void 0?r:s},xw=function(n,l){return n!=null&&l in Object(n)},Sw=function(n,l,r){for(var s=-1,o=(l=_b(l,n)).length,f=!1;++s<o;){var h=no(l[s]);if(!(f=n!=null&&r(n,h)))break;n=n[h]}return f||++s!=o?f:!!(o=n==null?0:n.length)&&Uf(o)&&Nb(h,o)&&(on(n)||Lf(n))},Ew=function(n,l){return n!=null&&Sw(n,l,xw)},ww=function(n,l){return Gf(n)&&Tb(l)?Cb(no(n),l):function(r){var s=vw(r,n);return s===void 0&&s===l?Ew(r,n):to(l,s,3)}},Nw=function(n){return n},Aw=function(n){return function(l){return l==null?void 0:l[n]}},Tw=function(n){return function(l){return jb(l,n)}},Cw=function(n){return Gf(n)?Aw(no(n)):Tw(n)},qf=function(n){return typeof n=="function"?n:n==null?Nw:typeof n=="object"?on(n)?ww(n[0],n[1]):cw(n):Cw(n)};function Zt(n){if(!n)throw new Error("change is not provided");if(Va(n))return"N".concat(n.oldLineNumber);var l=Za(n)?"I":"D";return"".concat(l).concat(n.lineNumber)}Df("old");var ao=ti("old"),lo=ti("new");gb("old");gb("new");Df("new");Df("old");var py=(function(){try{var n=Qa(Object,"defineProperty");return n({},"",{}),n}catch{}})(),Ob=function(n,l,r){l=="__proto__"&&py?py(n,l,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[l]=r},kw=function(n){return function(l,r,s){for(var o=-1,f=Object(l),h=s(l),p=h.length;p--;){var m=h[++o];if(r(f[m],m,f)===!1)break}return l}},_w=kw(),Rb=function(n,l){return n&&_w(n,l,Hf)},Mb=function(n,l){var r={};return l=qf(l),Rb(n,(function(s,o,f){Ob(r,o,l(s,o,f))})),r},jw=["changeKey","text","tokens","renderToken"],gy=function n(l,r){var s=l.type,o=l.value,f=l.markType,h=l.properties,p=l.className,m=l.children,g=function(v){return d.jsx("span",{className:v,children:o||m&&m.map(n)},r)};switch(s){case"text":return o;case"mark":return g("diff-code-mark diff-code-mark-".concat(f));case"edit":return g("diff-code-edit");default:var b=h&&h.className;return g(Xt(p||b))}};function Ow(n){if(!Array.isArray(n))return!0;if(n.length>1)return!1;if(n.length===1){var l=pt(n,1)[0];return l.type==="text"&&!l.value}return!0}function Rw(n){var l=n.changeKey,r=n.text,s=n.tokens,o=n.renderToken,f=xa(n,jw),h=o?function(p,m){return o(p,gy,m)}:gy;return d.jsx("td",qe(qe({},f),{},{"data-change-key":l,children:s?Ow(s)?" ":s.map(h):r||" "}))}var Db=C.memo(Rw);function zb(n,l){return function(){var r=l==="old"?ao(n):lo(n);return r===-1?void 0:r}}function Lb(n,l){return function(r){return n&&r?d.jsx("a",{href:l?"#"+l:void 0,children:r}):r}}function Fs(n,l){return l?function(r){n(),l(r)}:n}function yy(n,l,r,s){return C.useMemo((function(){var o=Mb(n,(function(f){return function(h){return f&&f(l,h)}}));return o.onMouseEnter=Fs(r,o.onMouseEnter),o.onMouseLeave=Fs(s,o.onMouseLeave),o}),[n,r,s,l])}function by(n,l,r,s,o,f,h,p,m){var g={change:l,side:s,inHoverState:p,renderDefault:zb(l,s),wrapInAnchor:Lb(o,f)};return d.jsx("td",qe(qe({className:n},h),{},{"data-change-key":r,children:m(g)}))}function Mw(n){var l,r,s,o=n.change,f=n.selected,h=n.tokens,p=n.className,m=n.generateLineClassName,g=n.gutterClassName,b=n.codeClassName,v=n.gutterEvents,S=n.codeEvents,E=n.hideGutter,w=n.gutterAnchor,A=n.generateAnchorID,k=n.renderToken,z=n.renderGutter,L=o.type,j=o.content,q=Zt(o),I=(l=pt(C.useState(!1),2),r=l[0],s=l[1],[r,C.useCallback((function(){return s(!0)}),[]),C.useCallback((function(){return s(!1)}),[])]),V=pt(I,3),O=V[0],R=V[1],Z=V[2],se=C.useMemo((function(){return{change:o}}),[o]),P=yy(v,se,R,Z),ue=yy(S,se,R,Z),le=A(o),W=m({changes:[o],defaultGenerate:function(){return p}}),K=Xt("diff-gutter","diff-gutter-".concat(L),g,{"diff-gutter-selected":f}),D=Xt("diff-code","diff-code-".concat(L),b,{"diff-code-selected":f});return d.jsxs("tr",{id:le,className:Xt("diff-line",W),children:[!E&&by(K,o,q,"old",w,le,P,O,z),!E&&by(K,o,q,"new",w,le,P,O,z),d.jsx(Db,qe({className:D,changeKey:q,text:j,tokens:h,renderToken:k},ue))]})}var Dw=C.memo(Mw);function zw(n){var l=n.hideGutter,r=n.element;return d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:l?1:3,className:"diff-widget-content",children:r})})}var Lw=["hideGutter","selectedChanges","tokens","lineClassName"],Uw=["hunk","widgets","className"];function Bw(n){var l=n.hunk,r=n.widgets,s=n.className,o=xa(n,Uw),f=(function(h,p){return h.reduce((function(m,g){var b=Zt(g);m.push(["change",b,g]);var v=p[b];return v&&m.push(["widget",b,v]),m}),[])})(l.changes,r);return d.jsx("tbody",{className:Xt("diff-hunk",s),children:f.map((function(h){return(function(p,m){var g=pt(p,3),b=g[0],v=g[1],S=g[2],E=m.hideGutter,w=m.selectedChanges,A=m.tokens,k=m.lineClassName,z=xa(m,Lw);if(b==="change"){var L=sn(S)?"old":"new",j=sn(S)?ao(S):lo(S),q=A?A[L][j-1]:null;return d.jsx(Dw,qe({className:k,change:S,hideGutter:E,selected:w.includes(v),tokens:q},z),"change".concat(v))}return b==="widget"?d.jsx(zw,{hideGutter:E,element:S},"widget".concat(v)):null})(h,o)}))})}var Ub=0;function zs(n,l,r,s){var o=C.useCallback((function(){return l(n)}),[n,l]),f=C.useCallback((function(){return l("")}),[l]);return C.useMemo((function(){var h=Mb(s,(function(p){return function(m){return p&&p({side:n,change:r},m)}}));return h.onMouseEnter=Fs(o,h.onMouseEnter),h.onMouseLeave=Fs(f,h.onMouseLeave),h}),[r,s,o,n,f])}function $c(n){var l=n.change,r=n.side,s=n.selected,o=n.tokens,f=n.gutterClassName,h=n.codeClassName,p=n.gutterEvents,m=n.codeEvents,g=n.anchorID,b=n.gutterAnchor,v=n.gutterAnchorTarget,S=n.hideGutter,E=n.hover,w=n.renderToken,A=n.renderGutter;if(!l){var k=Xt("diff-gutter","diff-gutter-omit",f),z=Xt("diff-code","diff-code-omit",h);return[!S&&d.jsx("td",{className:k},"gutter"),d.jsx("td",{className:z},"code")]}var L=l.type,j=l.content,q=Zt(l),I=r===Ub?"old":"new",V=qe({id:g||void 0,className:Xt("diff-gutter","diff-gutter-".concat(L),Jc({"diff-gutter-selected":s},"diff-line-hover-"+I,E),f),children:A({change:l,side:I,inHoverState:E,renderDefault:zb(l,I),wrapInAnchor:Lb(b,v)})},p),O=Xt("diff-code","diff-code-".concat(L),Jc({"diff-code-selected":s},"diff-line-hover-"+I,E),h);return[!S&&d.jsx("td",qe(qe({},V),{},{"data-change-key":q}),"gutter"),d.jsx(Db,qe({className:O,changeKey:q,text:j,tokens:o,renderToken:w},m),"code")]}function Hw(n){var l=n.className,r=n.oldChange,s=n.newChange,o=n.oldSelected,f=n.newSelected,h=n.oldTokens,p=n.newTokens,m=n.monotonous,g=n.gutterClassName,b=n.codeClassName,v=n.gutterEvents,S=n.codeEvents,E=n.hideGutter,w=n.generateAnchorID,A=n.generateLineClassName,k=n.gutterAnchor,z=n.renderToken,L=n.renderGutter,j=pt(C.useState(""),2),q=j[0],I=j[1],V=zs("old",I,r,v),O=zs("new",I,s,v),R=zs("old",I,r,S),Z=zs("new",I,s,S),se=r&&w(r),P=s&&w(s),ue=A({changes:[r,s],defaultGenerate:function(){return l}}),le={monotonous:m,hideGutter:E,gutterClassName:g,codeClassName:b,gutterEvents:v,codeEvents:S,renderToken:z,renderGutter:L},W=qe(qe({},le),{},{change:r,side:Ub,selected:o,tokens:h,gutterEvents:V,codeEvents:R,anchorID:se,gutterAnchor:k,gutterAnchorTarget:se,hover:q==="old"}),K=qe(qe({},le),{},{change:s,side:1,selected:f,tokens:p,gutterEvents:O,codeEvents:Z,anchorID:r===s?null:P,gutterAnchor:k,gutterAnchorTarget:r===s?se:P,hover:q==="new"});if(m)return d.jsx("tr",{className:Xt("diff-line",ue),children:$c(r?W:K)});var D=(function(U,re){return U&&!re?"diff-line-old-only":!U&&re?"diff-line-new-only":U===re?"diff-line-normal":"diff-line-compare"})(r,s);return d.jsxs("tr",{className:Xt("diff-line",D,ue),children:[$c(W),$c(K)]})}var $w=C.memo(Hw);function Gw(n){var l=n.hideGutter,r=n.oldElement,s=n.newElement;return n.monotonous?d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:l?1:2,className:"diff-widget-content",children:r||s})}):r===s?d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:l?2:4,className:"diff-widget-content",children:r})}):d.jsxs("tr",{className:"diff-widget",children:[d.jsx("td",{colSpan:l?1:2,className:"diff-widget-content",children:r}),d.jsx("td",{colSpan:l?1:2,className:"diff-widget-content",children:s})]})}var Yw=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],qw=["hunk","widgets","className"];function Ls(n,l){return(n?Zt(n):"00")+(l?Zt(l):"00")}function Iw(n){var l=n.hunk,r=n.widgets,s=n.className,o=xa(n,qw),f=(function(h,p){for(var m=function(z){if(!z)return null;var L=Zt(z);return p[L]||null},g=[],b=0;b<h.length;b++){var v=h[b];if(Va(v))g.push(["change",Ls(v,v),v,v]);else if(sn(v)){var S=h[b+1];S&&Za(S)?(b+=1,g.push(["change",Ls(v,S),v,S])):g.push(["change",Ls(v,null),v,null])}else g.push(["change",Ls(null,v),null,v]);var E=g[g.length-1],w=m(E[2]),A=m(E[3]);if(w||A){var k=E[1];g.push(["widget",k,w,A])}}return g})(l.changes,r);return d.jsx("tbody",{className:Xt("diff-hunk",s),children:f.map((function(h){return(function(p,m){var g=pt(p,4),b=g[0],v=g[1],S=g[2],E=g[3],w=m.selectedChanges,A=m.monotonous,k=m.hideGutter,z=m.tokens,L=m.lineClassName,j=xa(m,Yw);if(b==="change"){var q=!!S&&w.includes(Zt(S)),I=!!E&&w.includes(Zt(E)),V=S&&z?z.old[ao(S)-1]:null,O=E&&z?z.new[lo(E)-1]:null;return d.jsx($w,qe({className:L,oldChange:S,newChange:E,monotonous:A,hideGutter:k,oldSelected:q,newSelected:I,oldTokens:V,newTokens:O},j),"change".concat(v))}return b==="widget"?d.jsx(Gw,{monotonous:A,hideGutter:k,oldElement:S,newElement:E},"widget".concat(v)):null})(h,o)}))})}var Fw=["gutterType","hunkClassName"];function Bb(n){var l=n.hunk,r=D2(),s=r.gutterType,o=r.hunkClassName,f=xa(r,Fw),h=s==="none",p=s==="anchor",m=f.viewType==="unified"?Bw:Iw;return d.jsx(m,qe(qe({},f),{},{hunk:l,hideGutter:h,gutterAnchor:p,className:o}))}function Vw(){}function vy(n,l){var r=l?"auto":"none";n instanceof HTMLElement&&n.style.userSelect!==r&&(n.style.userSelect=r)}function Xw(n){return n.map((function(l){return d.jsx(Bb,{hunk:l},(function(r){return"-".concat(r.oldStart,",").concat(r.oldLines," +").concat(r.newStart,",").concat(r.newLines)})(l))}))}function Zw(n){var l=n.diffType,r=n.hunks,s=n.optimizeSelection,o=n.className,f=n.hunkClassName,h=f===void 0?Dt.hunkClassName:f,p=n.lineClassName,m=p===void 0?Dt.lineClassName:p,g=n.generateLineClassName,b=g===void 0?Dt.generateLineClassName:g,v=n.gutterClassName,S=v===void 0?Dt.gutterClassName:v,E=n.codeClassName,w=E===void 0?Dt.codeClassName:E,A=n.gutterType,k=A===void 0?Dt.gutterType:A,z=n.viewType,L=z===void 0?Dt.viewType:z,j=n.gutterEvents,q=j===void 0?Dt.gutterEvents:j,I=n.codeEvents,V=I===void 0?Dt.codeEvents:I,O=n.generateAnchorID,R=O===void 0?Dt.generateAnchorID:O,Z=n.selectedChanges,se=Z===void 0?Dt.selectedChanges:Z,P=n.widgets,ue=P===void 0?Dt.widgets:P,le=n.renderGutter,W=le===void 0?Dt.renderGutter:le,K=n.tokens,D=n.renderToken,U=n.children,re=U===void 0?Xw:U,ce=C.useRef(null),fe=C.useCallback((function(Y){var ee=Y.target;if(Y.button===0){var ye=(function(Oe,Ce){for(var ge=Oe;ge&&ge!==document.documentElement&&!ge.classList.contains(Ce);)ge=ge.parentElement;return ge===document.documentElement?null:ge})(ee,"diff-code");if(ye&&ye.parentElement){var de=window.getSelection();de&&de.removeAllRanges();var he=Il(ye.parentElement.children).indexOf(ye);if(he===1||he===3){var Ee,ke=Mf(ce.current?ce.current.querySelectorAll(".diff-line"):[]);try{for(ke.s();!(Ee=ke.n()).done;){var Le=Ee.value.children;vy(Le[1],he===1),vy(Le[3],he===3)}}catch(Oe){ke.e(Oe)}finally{ke.f()}}}}}),[]),N=k==="none",G=l==="add"||l==="delete",te=L==="split"&&!G&&s?fe:Vw,ae=C.useMemo((function(){return d.jsxs("colgroup",L==="unified"?{children:[!N&&d.jsx("col",{className:"diff-gutter-col"}),!N&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]}:G?{children:[!N&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]}:{children:[!N&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{}),!N&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]})}),[L,G,N]),ne=C.useMemo((function(){return{hunkClassName:h,lineClassName:m,generateLineClassName:b,gutterClassName:S,codeClassName:w,monotonous:G,hideGutter:N,viewType:L,gutterType:k,codeEvents:V,gutterEvents:q,generateAnchorID:R,selectedChanges:se,widgets:ue,renderGutter:W,tokens:K,renderToken:D}}),[w,V,R,S,q,k,N,h,m,b,G,W,D,se,K,L,ue]);return d.jsx(M2,{value:ne,children:d.jsxs("table",{ref:ce,className:Xt("diff","diff-".concat(L),o),onMouseDown:te,children:[ae,re(r)]})})}var Kw=C.memo(Zw),Qw=function(n,l,r,s){for(var o=-1,f=n==null?0:n.length;++o<f;){var h=n[o];l(s,h,r(h),n)}return s},Jw=function(n,l){return function(r,s){if(r==null)return r;if(!Bf(r))return n(r,s);for(var o=r.length,f=-1,h=Object(r);++f<o&&s(h[f],f,h)!==!1;);return r}},Hb=Jw(Rb),Ww=function(n,l,r,s){return Hb(n,(function(o,f,h){l(s,o,r(o),h)})),s},Pw=function(n,l){return function(r,s){var o=on(r)?Qw:Ww,f=l?l():{};return o(r,n,qf(s),f)}},eN=Pw((function(n,l,r){Ob(n,r,l)})),xy=wn?wn.isConcatSpreadable:void 0,tN=function(n){return on(n)||Lf(n)||!!(xy&&n&&n[xy])},nN=function(l,r,s,o,f){var h=-1,p=l.length;for(s||(s=tN),f||(f=[]);++h<p;){var m=l[h];s(m)?Eb(f,m):f[f.length]=m}return f},aN=function(n,l){var r=-1,s=Bf(n)?Array(n.length):[];return Hb(n,(function(o,f,h){s[++r]=l(o,f,h)})),s},lN=function(n,l){return(on(n)?kb:aN)(n,qf(l))},rN=function(n,l){return nN(lN(n,l))};function iN(n,l){var r=l.newStart,s=l.changes.reduce((function(o,f){var h=pt(o,2),p=h[0],m=h[1];return sn(f)?(p.splice(m,1),[p,m]):(Za(f)&&p.splice(m,0,f.content),[p,m+1])}),[n,r-1]);return pt(s,1)[0]}function Sy(n,l,r){if(!n.length)return[];var s=l==="old"?ao:lo,o=eN(n,s),f=s(n[n.length-1]);return Array.from({length:f}).map((function(h,p){return r(o[p+1])}))}function sN(n){var l=(function(h){return rN(h,(function(p){return p.changes})).reduce((function(p,m){var g=pt(p,2),b=g[0],v=g[1];return Va(m)?(b.push(m),v.push(m)):sn(m)?b.push(m):v.push(m),[b,v]}),[[],[]])})(n),r=pt(l,2),s=r[0],o=r[1],f=function(h){return h?h.content:""};return[Sy(s,"old",f).join(`
|
|
362
|
+
`),Sy(o,"new",f).join(`
|
|
363
|
+
`)]}function Us(n){return{type:"root",children:n}}function oN(n,l){if(l.oldSource){var r=(function(m,g){return g.reduce(iN,m.split(`
|
|
364
|
+
`)).join(`
|
|
365
|
+
`)})(l.oldSource,n),s=l.highlight?function(m){return l.refractor.highlight(m,l.language)}:function(m){return[{type:"text",value:m}]};return[Us(s(l.oldSource)),Us(s(r))]}var o=pt(sN(n),2),f=o[0],h=o[1],p=l.highlight?function(m){return Us(l.refractor.highlight(m,l.language))}:function(m){return Us([{type:"text",value:m}])};return[p(f),p(h)]}function $b(n){return n.map((function(l){return qe({},l)}))}function uN(n,l){return[].concat(Il($b(n.slice(0,-1))),[l])}function cN(n){var l=n[n.length-1];if(l.type==="text")return l;throw new Error("Invalid token path with leaf of type ".concat(l.type))}var fN=["children"];function Gb(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.children){var s=n.children,o=xa(n,fN);r.push(o);var f,h=Mf(s);try{for(h.s();!(f=h.n()).done;)Gb(f.value,l,r)}catch(p){h.e(p)}finally{h.f()}r.pop()}else l.push($b([].concat(Il(r.slice(1)),[n])));return l}function dN(n){return n.reduce((function(l,r){var s=l[l.length-1],o=(function(m){var g=cN(m);return g.value.includes(`
|
|
366
|
+
`)?g.value.split(`
|
|
367
|
+
`).map((function(b){return uN(m,qe(qe({},g),{},{value:b}))})):[m]})(r),f=R2(o),h=f[0],p=f.slice(1);return[].concat(Il(l.slice(0,-1)),[[].concat(Il(s),[h])],Il(p.map((function(m){return[m]}))))}),[[]])}function Ey(n){return dN(Gb(n))}var hN=function(n,l,r){var s=(r=typeof r=="function"?r:void 0)?r(n,l):void 0;return s===void 0?to(n,l,void 0,r):!!s},mN=function(n,l){return to(n,l)},pN=function(n){var l=n==null?0:n.length;return l?n[l-1]:void 0};function gN(n,l){if(!n.children)throw new Error("parent node missing children property");var r,s,o=pN(n.children);return o&&(s=l,(r=o).type===s.type&&(r.type==="text"||r.children&&s.children&&hN(r,s,(function(f,h,p){return p==="chlidren"||mN(f,h)}))))?n.children[n.children.length-1]=(function(f,h){return"value"in f&&"value"in h?qe(qe({},f),{},{value:"".concat(f.value).concat(h.value)}):f})(o,l):n.children.push(l),n.children[n.children.length-1]}function wy(n){var l,r={type:"root",children:[]},s=Mf(n);try{var o=function(){var f=l.value;f.reduce((function(h,p,m){return gN(h,m===f.length-1?qe({},p):qe(qe({},p),{},{children:[]}))}),r)};for(s.s();!(l=s.n()).done;)o()}catch(f){s.e(f)}finally{s.f()}return r}var If=oi((function(n){var l=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};l.Diff=function(r,s){return[r,s]},l.prototype.diff_main=function(r,s,o,f){f===void 0&&(f=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var h=f;if(r==null||s==null)throw new Error("Null input. (diff_main)");if(r==s)return r?[new l.Diff(0,r)]:[];o===void 0&&(o=!0);var p=o,m=this.diff_commonPrefix(r,s),g=r.substring(0,m);r=r.substring(m),s=s.substring(m),m=this.diff_commonSuffix(r,s);var b=r.substring(r.length-m);r=r.substring(0,r.length-m),s=s.substring(0,s.length-m);var v=this.diff_compute_(r,s,p,h);return g&&v.unshift(new l.Diff(0,g)),b&&v.push(new l.Diff(0,b)),this.diff_cleanupMerge(v),v},l.prototype.diff_compute_=function(r,s,o,f){var h;if(!r)return[new l.Diff(1,s)];if(!s)return[new l.Diff(-1,r)];var p=r.length>s.length?r:s,m=r.length>s.length?s:r,g=p.indexOf(m);if(g!=-1)return h=[new l.Diff(1,p.substring(0,g)),new l.Diff(0,m),new l.Diff(1,p.substring(g+m.length))],r.length>s.length&&(h[0][0]=h[2][0]=-1),h;if(m.length==1)return[new l.Diff(-1,r),new l.Diff(1,s)];var b=this.diff_halfMatch_(r,s);if(b){var v=b[0],S=b[1],E=b[2],w=b[3],A=b[4],k=this.diff_main(v,E,o,f),z=this.diff_main(S,w,o,f);return k.concat([new l.Diff(0,A)],z)}return o&&r.length>100&&s.length>100?this.diff_lineMode_(r,s,f):this.diff_bisect_(r,s,f)},l.prototype.diff_lineMode_=function(r,s,o){var f=this.diff_linesToChars_(r,s);r=f.chars1,s=f.chars2;var h=f.lineArray,p=this.diff_main(r,s,!1,o);this.diff_charsToLines_(p,h),this.diff_cleanupSemantic(p),p.push(new l.Diff(0,""));for(var m=0,g=0,b=0,v="",S="";m<p.length;){switch(p[m][0]){case 1:b++,S+=p[m][1];break;case-1:g++,v+=p[m][1];break;case 0:if(g>=1&&b>=1){p.splice(m-g-b,g+b),m=m-g-b;for(var E=this.diff_main(v,S,!1,o),w=E.length-1;w>=0;w--)p.splice(m,0,E[w]);m+=E.length}b=0,g=0,v="",S=""}m++}return p.pop(),p},l.prototype.diff_bisect_=function(r,s,o){for(var f=r.length,h=s.length,p=Math.ceil((f+h)/2),m=p,g=2*p,b=new Array(g),v=new Array(g),S=0;S<g;S++)b[S]=-1,v[S]=-1;b[m+1]=0,v[m+1]=0;for(var E=f-h,w=E%2!=0,A=0,k=0,z=0,L=0,j=0;j<p&&!(new Date().getTime()>o);j++){for(var q=-j+A;q<=j-k;q+=2){for(var I=m+q,V=(P=q==-j||q!=j&&b[I-1]<b[I+1]?b[I+1]:b[I-1]+1)-q;P<f&&V<h&&r.charAt(P)==s.charAt(V);)P++,V++;if(b[I]=P,P>f)k+=2;else if(V>h)A+=2;else if(w&&(Z=m+E-q)>=0&&Z<g&&v[Z]!=-1&&P>=(R=f-v[Z]))return this.diff_bisectSplit_(r,s,P,V,o)}for(var O=-j+z;O<=j-L;O+=2){for(var R,Z=m+O,se=(R=O==-j||O!=j&&v[Z-1]<v[Z+1]?v[Z+1]:v[Z-1]+1)-O;R<f&&se<h&&r.charAt(f-R-1)==s.charAt(h-se-1);)R++,se++;if(v[Z]=R,R>f)L+=2;else if(se>h)z+=2;else if(!w&&(I=m+E-O)>=0&&I<g&&b[I]!=-1){var P;if(V=m+(P=b[I])-I,P>=(R=f-R))return this.diff_bisectSplit_(r,s,P,V,o)}}}return[new l.Diff(-1,r),new l.Diff(1,s)]},l.prototype.diff_bisectSplit_=function(r,s,o,f,h){var p=r.substring(0,o),m=s.substring(0,f),g=r.substring(o),b=s.substring(f),v=this.diff_main(p,m,!1,h),S=this.diff_main(g,b,!1,h);return v.concat(S)},l.prototype.diff_linesToChars_=function(r,s){var o=[],f={};function h(g){for(var b="",v=0,S=-1,E=o.length;S<g.length-1;){(S=g.indexOf(`
|
|
368
|
+
`,v))==-1&&(S=g.length-1);var w=g.substring(v,S+1);(f.hasOwnProperty?f.hasOwnProperty(w):f[w]!==void 0)?b+=String.fromCharCode(f[w]):(E==p&&(w=g.substring(v),S=g.length),b+=String.fromCharCode(E),f[w]=E,o[E++]=w),v=S+1}return b}o[0]="";var p=4e4,m=h(r);return p=65535,{chars1:m,chars2:h(s),lineArray:o}},l.prototype.diff_charsToLines_=function(r,s){for(var o=0;o<r.length;o++){for(var f=r[o][1],h=[],p=0;p<f.length;p++)h[p]=s[f.charCodeAt(p)];r[o][1]=h.join("")}},l.prototype.diff_commonPrefix=function(r,s){if(!r||!s||r.charAt(0)!=s.charAt(0))return 0;for(var o=0,f=Math.min(r.length,s.length),h=f,p=0;o<h;)r.substring(p,h)==s.substring(p,h)?p=o=h:f=h,h=Math.floor((f-o)/2+o);return h},l.prototype.diff_commonSuffix=function(r,s){if(!r||!s||r.charAt(r.length-1)!=s.charAt(s.length-1))return 0;for(var o=0,f=Math.min(r.length,s.length),h=f,p=0;o<h;)r.substring(r.length-h,r.length-p)==s.substring(s.length-h,s.length-p)?p=o=h:f=h,h=Math.floor((f-o)/2+o);return h},l.prototype.diff_commonOverlap_=function(r,s){var o=r.length,f=s.length;if(o==0||f==0)return 0;o>f?r=r.substring(o-f):o<f&&(s=s.substring(0,o));var h=Math.min(o,f);if(r==s)return h;for(var p=0,m=1;;){var g=r.substring(h-m),b=s.indexOf(g);if(b==-1)return p;m+=b,b!=0&&r.substring(h-m)!=s.substring(0,m)||(p=m,m++)}},l.prototype.diff_halfMatch_=function(r,s){if(this.Diff_Timeout<=0)return null;var o=r.length>s.length?r:s,f=r.length>s.length?s:r;if(o.length<4||2*f.length<o.length)return null;var h=this;function p(A,k,z){for(var L,j,q,I,V=A.substring(z,z+Math.floor(A.length/4)),O=-1,R="";(O=k.indexOf(V,O+1))!=-1;){var Z=h.diff_commonPrefix(A.substring(z),k.substring(O)),se=h.diff_commonSuffix(A.substring(0,z),k.substring(0,O));R.length<se+Z&&(R=k.substring(O-se,O)+k.substring(O,O+Z),L=A.substring(0,z-se),j=A.substring(z+Z),q=k.substring(0,O-se),I=k.substring(O+Z))}return 2*R.length>=A.length?[L,j,q,I,R]:null}var m,g,b,v,S,E=p(o,f,Math.ceil(o.length/4)),w=p(o,f,Math.ceil(o.length/2));return E||w?(m=w?E&&E[4].length>w[4].length?E:w:E,r.length>s.length?(g=m[0],b=m[1],v=m[2],S=m[3]):(v=m[0],S=m[1],g=m[2],b=m[3]),[g,b,v,S,m[4]]):null},l.prototype.diff_cleanupSemantic=function(r){for(var s=!1,o=[],f=0,h=null,p=0,m=0,g=0,b=0,v=0;p<r.length;)r[p][0]==0?(o[f++]=p,m=b,g=v,b=0,v=0,h=r[p][1]):(r[p][0]==1?b+=r[p][1].length:v+=r[p][1].length,h&&h.length<=Math.max(m,g)&&h.length<=Math.max(b,v)&&(r.splice(o[f-1],0,new l.Diff(-1,h)),r[o[f-1]+1][0]=1,f--,p=--f>0?o[f-1]:-1,m=0,g=0,b=0,v=0,h=null,s=!0)),p++;for(s&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),p=1;p<r.length;){if(r[p-1][0]==-1&&r[p][0]==1){var S=r[p-1][1],E=r[p][1],w=this.diff_commonOverlap_(S,E),A=this.diff_commonOverlap_(E,S);w>=A?(w>=S.length/2||w>=E.length/2)&&(r.splice(p,0,new l.Diff(0,E.substring(0,w))),r[p-1][1]=S.substring(0,S.length-w),r[p+1][1]=E.substring(w),p++):(A>=S.length/2||A>=E.length/2)&&(r.splice(p,0,new l.Diff(0,S.substring(0,A))),r[p-1][0]=1,r[p-1][1]=E.substring(0,E.length-A),r[p+1][0]=-1,r[p+1][1]=S.substring(A),p++),p++}p++}},l.prototype.diff_cleanupSemanticLossless=function(r){function s(A,k){if(!A||!k)return 6;var z=A.charAt(A.length-1),L=k.charAt(0),j=z.match(l.nonAlphaNumericRegex_),q=L.match(l.nonAlphaNumericRegex_),I=j&&z.match(l.whitespaceRegex_),V=q&&L.match(l.whitespaceRegex_),O=I&&z.match(l.linebreakRegex_),R=V&&L.match(l.linebreakRegex_),Z=O&&A.match(l.blanklineEndRegex_),se=R&&k.match(l.blanklineStartRegex_);return Z||se?5:O||R?4:j&&!I&&V?3:I||V?2:j||q?1:0}for(var o=1;o<r.length-1;){if(r[o-1][0]==0&&r[o+1][0]==0){var f=r[o-1][1],h=r[o][1],p=r[o+1][1],m=this.diff_commonSuffix(f,h);if(m){var g=h.substring(h.length-m);f=f.substring(0,f.length-m),h=g+h.substring(0,h.length-m),p=g+p}for(var b=f,v=h,S=p,E=s(f,h)+s(h,p);h.charAt(0)===p.charAt(0);){f+=h.charAt(0),h=h.substring(1)+p.charAt(0),p=p.substring(1);var w=s(f,h)+s(h,p);w>=E&&(E=w,b=f,v=h,S=p)}r[o-1][1]!=b&&(b?r[o-1][1]=b:(r.splice(o-1,1),o--),r[o][1]=v,S?r[o+1][1]=S:(r.splice(o+1,1),o--))}o++}},l.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,l.whitespaceRegex_=/\s/,l.linebreakRegex_=/[\r\n]/,l.blanklineEndRegex_=/\n\r?\n$/,l.blanklineStartRegex_=/^\r?\n\r?\n/,l.prototype.diff_cleanupEfficiency=function(r){for(var s=!1,o=[],f=0,h=null,p=0,m=!1,g=!1,b=!1,v=!1;p<r.length;)r[p][0]==0?(r[p][1].length<this.Diff_EditCost&&(b||v)?(o[f++]=p,m=b,g=v,h=r[p][1]):(f=0,h=null),b=v=!1):(r[p][0]==-1?v=!0:b=!0,h&&(m&&g&&b&&v||h.length<this.Diff_EditCost/2&&m+g+b+v==3)&&(r.splice(o[f-1],0,new l.Diff(-1,h)),r[o[f-1]+1][0]=1,f--,h=null,m&&g?(b=v=!0,f=0):(p=--f>0?o[f-1]:-1,b=v=!1),s=!0)),p++;s&&this.diff_cleanupMerge(r)},l.prototype.diff_cleanupMerge=function(r){r.push(new l.Diff(0,""));for(var s,o=0,f=0,h=0,p="",m="";o<r.length;)switch(r[o][0]){case 1:h++,m+=r[o][1],o++;break;case-1:f++,p+=r[o][1],o++;break;case 0:f+h>1?(f!==0&&h!==0&&((s=this.diff_commonPrefix(m,p))!==0&&(o-f-h>0&&r[o-f-h-1][0]==0?r[o-f-h-1][1]+=m.substring(0,s):(r.splice(0,0,new l.Diff(0,m.substring(0,s))),o++),m=m.substring(s),p=p.substring(s)),(s=this.diff_commonSuffix(m,p))!==0&&(r[o][1]=m.substring(m.length-s)+r[o][1],m=m.substring(0,m.length-s),p=p.substring(0,p.length-s))),o-=f+h,r.splice(o,f+h),p.length&&(r.splice(o,0,new l.Diff(-1,p)),o++),m.length&&(r.splice(o,0,new l.Diff(1,m)),o++),o++):o!==0&&r[o-1][0]==0?(r[o-1][1]+=r[o][1],r.splice(o,1)):o++,h=0,f=0,p="",m=""}r[r.length-1][1]===""&&r.pop();var g=!1;for(o=1;o<r.length-1;)r[o-1][0]==0&&r[o+1][0]==0&&(r[o][1].substring(r[o][1].length-r[o-1][1].length)==r[o-1][1]?(r[o][1]=r[o-1][1]+r[o][1].substring(0,r[o][1].length-r[o-1][1].length),r[o+1][1]=r[o-1][1]+r[o+1][1],r.splice(o-1,1),g=!0):r[o][1].substring(0,r[o+1][1].length)==r[o+1][1]&&(r[o-1][1]+=r[o+1][1],r[o][1]=r[o][1].substring(r[o+1][1].length)+r[o+1][1],r.splice(o+1,1),g=!0)),o++;g&&this.diff_cleanupMerge(r)},l.prototype.diff_xIndex=function(r,s){var o,f=0,h=0,p=0,m=0;for(o=0;o<r.length&&(r[o][0]!==1&&(f+=r[o][1].length),r[o][0]!==-1&&(h+=r[o][1].length),!(f>s));o++)p=f,m=h;return r.length!=o&&r[o][0]===-1?m:m+(s-p)},l.prototype.diff_prettyHtml=function(r){for(var s=[],o=/&/g,f=/</g,h=/>/g,p=/\n/g,m=0;m<r.length;m++){var g=r[m][0],b=r[m][1].replace(o,"&").replace(f,"<").replace(h,">").replace(p,"¶<br>");switch(g){case 1:s[m]='<ins style="background:#e6ffe6;">'+b+"</ins>";break;case-1:s[m]='<del style="background:#ffe6e6;">'+b+"</del>";break;case 0:s[m]="<span>"+b+"</span>"}}return s.join("")},l.prototype.diff_text1=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==1&&(s[o]=r[o][1]);return s.join("")},l.prototype.diff_text2=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==-1&&(s[o]=r[o][1]);return s.join("")},l.prototype.diff_levenshtein=function(r){for(var s=0,o=0,f=0,h=0;h<r.length;h++){var p=r[h][0],m=r[h][1];switch(p){case 1:o+=m.length;break;case-1:f+=m.length;break;case 0:s+=Math.max(o,f),o=0,f=0}}return s+=Math.max(o,f)},l.prototype.diff_toDelta=function(r){for(var s=[],o=0;o<r.length;o++)switch(r[o][0]){case 1:s[o]="+"+encodeURI(r[o][1]);break;case-1:s[o]="-"+r[o][1].length;break;case 0:s[o]="="+r[o][1].length}return s.join(" ").replace(/%20/g," ")},l.prototype.diff_fromDelta=function(r,s){for(var o=[],f=0,h=0,p=s.split(/\t/g),m=0;m<p.length;m++){var g=p[m].substring(1);switch(p[m].charAt(0)){case"+":try{o[f++]=new l.Diff(1,decodeURI(g))}catch{throw new Error("Illegal escape in diff_fromDelta: "+g)}break;case"-":case"=":var b=parseInt(g,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+g);var v=r.substring(h,h+=b);p[m].charAt(0)=="="?o[f++]=new l.Diff(0,v):o[f++]=new l.Diff(-1,v);break;default:if(p[m])throw new Error("Invalid diff operation in diff_fromDelta: "+p[m])}}if(h!=r.length)throw new Error("Delta length ("+h+") does not equal source text length ("+r.length+").");return o},l.prototype.match_main=function(r,s,o){if(r==null||s==null||o==null)throw new Error("Null input. (match_main)");return o=Math.max(0,Math.min(o,r.length)),r==s?0:r.length?r.substring(o,o+s.length)==s?o:this.match_bitap_(r,s,o):-1},l.prototype.match_bitap_=function(r,s,o){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var f=this.match_alphabet_(s),h=this;function p(V,O){var R=V/s.length,Z=Math.abs(o-O);return h.Match_Distance?R+Z/h.Match_Distance:Z?1:R}var m=this.Match_Threshold,g=r.indexOf(s,o);g!=-1&&(m=Math.min(p(0,g),m),(g=r.lastIndexOf(s,o+s.length))!=-1&&(m=Math.min(p(0,g),m)));var b,v,S=1<<s.length-1;g=-1;for(var E,w=s.length+r.length,A=0;A<s.length;A++){for(b=0,v=w;b<v;)p(A,o+v)<=m?b=v:w=v,v=Math.floor((w-b)/2+b);w=v;var k=Math.max(1,o-v+1),z=Math.min(o+v,r.length)+s.length,L=Array(z+2);L[z+1]=(1<<A)-1;for(var j=z;j>=k;j--){var q=f[r.charAt(j-1)];if(L[j]=A===0?(L[j+1]<<1|1)&q:(L[j+1]<<1|1)&q|(E[j+1]|E[j])<<1|1|E[j+1],L[j]&S){var I=p(A,j-1);if(I<=m){if(m=I,!((g=j-1)>o))break;k=Math.max(1,2*o-g)}}}if(p(A+1,o)>m)break;E=L}return g},l.prototype.match_alphabet_=function(r){for(var s={},o=0;o<r.length;o++)s[r.charAt(o)]=0;for(o=0;o<r.length;o++)s[r.charAt(o)]|=1<<r.length-o-1;return s},l.prototype.patch_addContext_=function(r,s){if(s.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var o=s.substring(r.start2,r.start2+r.length1),f=0;s.indexOf(o)!=s.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)f+=this.Patch_Margin,o=s.substring(r.start2-f,r.start2+r.length1+f);f+=this.Patch_Margin;var h=s.substring(r.start2-f,r.start2);h&&r.diffs.unshift(new l.Diff(0,h));var p=s.substring(r.start2+r.length1,r.start2+r.length1+f);p&&r.diffs.push(new l.Diff(0,p)),r.start1-=h.length,r.start2-=h.length,r.length1+=h.length+p.length,r.length2+=h.length+p.length}},l.prototype.patch_make=function(r,s,o){var f,h;if(typeof r=="string"&&typeof s=="string"&&o===void 0)f=r,(h=this.diff_main(f,s,!0)).length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(r&&typeof r=="object"&&s===void 0&&o===void 0)h=r,f=this.diff_text1(h);else if(typeof r=="string"&&s&&typeof s=="object"&&o===void 0)f=r,h=s;else{if(typeof r!="string"||typeof s!="string"||!o||typeof o!="object")throw new Error("Unknown call format to patch_make.");f=r,h=o}if(h.length===0)return[];for(var p=[],m=new l.patch_obj,g=0,b=0,v=0,S=f,E=f,w=0;w<h.length;w++){var A=h[w][0],k=h[w][1];switch(g||A===0||(m.start1=b,m.start2=v),A){case 1:m.diffs[g++]=h[w],m.length2+=k.length,E=E.substring(0,v)+k+E.substring(v);break;case-1:m.length1+=k.length,m.diffs[g++]=h[w],E=E.substring(0,v)+E.substring(v+k.length);break;case 0:k.length<=2*this.Patch_Margin&&g&&h.length!=w+1?(m.diffs[g++]=h[w],m.length1+=k.length,m.length2+=k.length):k.length>=2*this.Patch_Margin&&g&&(this.patch_addContext_(m,S),p.push(m),m=new l.patch_obj,g=0,S=E,b=v)}A!==1&&(b+=k.length),A!==-1&&(v+=k.length)}return g&&(this.patch_addContext_(m,S),p.push(m)),p},l.prototype.patch_deepCopy=function(r){for(var s=[],o=0;o<r.length;o++){var f=r[o],h=new l.patch_obj;h.diffs=[];for(var p=0;p<f.diffs.length;p++)h.diffs[p]=new l.Diff(f.diffs[p][0],f.diffs[p][1]);h.start1=f.start1,h.start2=f.start2,h.length1=f.length1,h.length2=f.length2,s[o]=h}return s},l.prototype.patch_apply=function(r,s){if(r.length==0)return[s,[]];r=this.patch_deepCopy(r);var o=this.patch_addPadding(r);s=o+s+o,this.patch_splitMax(r);for(var f=0,h=[],p=0;p<r.length;p++){var m,g,b=r[p].start2+f,v=this.diff_text1(r[p].diffs),S=-1;if(v.length>this.Match_MaxBits?(m=this.match_main(s,v.substring(0,this.Match_MaxBits),b))!=-1&&((S=this.match_main(s,v.substring(v.length-this.Match_MaxBits),b+v.length-this.Match_MaxBits))==-1||m>=S)&&(m=-1):m=this.match_main(s,v,b),m==-1)h[p]=!1,f-=r[p].length2-r[p].length1;else if(h[p]=!0,f=m-b,v==(g=S==-1?s.substring(m,m+v.length):s.substring(m,S+this.Match_MaxBits)))s=s.substring(0,m)+this.diff_text2(r[p].diffs)+s.substring(m+v.length);else{var E=this.diff_main(v,g,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(E)/v.length>this.Patch_DeleteThreshold)h[p]=!1;else{this.diff_cleanupSemanticLossless(E);for(var w,A=0,k=0;k<r[p].diffs.length;k++){var z=r[p].diffs[k];z[0]!==0&&(w=this.diff_xIndex(E,A)),z[0]===1?s=s.substring(0,m+w)+z[1]+s.substring(m+w):z[0]===-1&&(s=s.substring(0,m+w)+s.substring(m+this.diff_xIndex(E,A+z[1].length))),z[0]!==-1&&(A+=z[1].length)}}}}return[s=s.substring(o.length,s.length-o.length),h]},l.prototype.patch_addPadding=function(r){for(var s=this.Patch_Margin,o="",f=1;f<=s;f++)o+=String.fromCharCode(f);for(f=0;f<r.length;f++)r[f].start1+=s,r[f].start2+=s;var h=r[0],p=h.diffs;if(p.length==0||p[0][0]!=0)p.unshift(new l.Diff(0,o)),h.start1-=s,h.start2-=s,h.length1+=s,h.length2+=s;else if(s>p[0][1].length){var m=s-p[0][1].length;p[0][1]=o.substring(p[0][1].length)+p[0][1],h.start1-=m,h.start2-=m,h.length1+=m,h.length2+=m}return(p=(h=r[r.length-1]).diffs).length==0||p[p.length-1][0]!=0?(p.push(new l.Diff(0,o)),h.length1+=s,h.length2+=s):s>p[p.length-1][1].length&&(m=s-p[p.length-1][1].length,p[p.length-1][1]+=o.substring(0,m),h.length1+=m,h.length2+=m),o},l.prototype.patch_splitMax=function(r){for(var s=this.Match_MaxBits,o=0;o<r.length;o++)if(!(r[o].length1<=s)){var f=r[o];r.splice(o--,1);for(var h=f.start1,p=f.start2,m="";f.diffs.length!==0;){var g=new l.patch_obj,b=!0;for(g.start1=h-m.length,g.start2=p-m.length,m!==""&&(g.length1=g.length2=m.length,g.diffs.push(new l.Diff(0,m)));f.diffs.length!==0&&g.length1<s-this.Patch_Margin;){var v=f.diffs[0][0],S=f.diffs[0][1];v===1?(g.length2+=S.length,p+=S.length,g.diffs.push(f.diffs.shift()),b=!1):v===-1&&g.diffs.length==1&&g.diffs[0][0]==0&&S.length>2*s?(g.length1+=S.length,h+=S.length,b=!1,g.diffs.push(new l.Diff(v,S)),f.diffs.shift()):(S=S.substring(0,s-g.length1-this.Patch_Margin),g.length1+=S.length,h+=S.length,v===0?(g.length2+=S.length,p+=S.length):b=!1,g.diffs.push(new l.Diff(v,S)),S==f.diffs[0][1]?f.diffs.shift():f.diffs[0][1]=f.diffs[0][1].substring(S.length))}m=(m=this.diff_text2(g.diffs)).substring(m.length-this.Patch_Margin);var E=this.diff_text1(f.diffs).substring(0,this.Patch_Margin);E!==""&&(g.length1+=E.length,g.length2+=E.length,g.diffs.length!==0&&g.diffs[g.diffs.length-1][0]===0?g.diffs[g.diffs.length-1][1]+=E:g.diffs.push(new l.Diff(0,E))),b||r.splice(++o,0,g)}}},l.prototype.patch_toText=function(r){for(var s=[],o=0;o<r.length;o++)s[o]=r[o];return s.join("")},l.prototype.patch_fromText=function(r){var s=[];if(!r)return s;for(var o=r.split(`
|
|
369
|
+
`),f=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;f<o.length;){var p=o[f].match(h);if(!p)throw new Error("Invalid patch string: "+o[f]);var m=new l.patch_obj;for(s.push(m),m.start1=parseInt(p[1],10),p[2]===""?(m.start1--,m.length1=1):p[2]=="0"?m.length1=0:(m.start1--,m.length1=parseInt(p[2],10)),m.start2=parseInt(p[3],10),p[4]===""?(m.start2--,m.length2=1):p[4]=="0"?m.length2=0:(m.start2--,m.length2=parseInt(p[4],10)),f++;f<o.length;){var g=o[f].charAt(0);try{var b=decodeURI(o[f].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(g=="-")m.diffs.push(new l.Diff(-1,b));else if(g=="+")m.diffs.push(new l.Diff(1,b));else if(g==" ")m.diffs.push(new l.Diff(0,b));else{if(g=="@")break;if(g!=="")throw new Error('Invalid patch mode "'+g+'" in: '+b)}f++}}return s},(l.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var r,s=["@@ -"+(this.length1===0?this.start1+",0":this.length1==1?this.start1+1:this.start1+1+","+this.length1)+" +"+(this.length2===0?this.start2+",0":this.length2==1?this.start2+1:this.start2+1+","+this.length2)+` @@
|
|
370
|
+
`],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}s[o+1]=r+encodeURI(this.diffs[o][1])+`
|
|
371
|
+
`}return s.join("").replace(/%20/g," ")},n.exports=l,n.exports.diff_match_patch=l,n.exports.DIFF_DELETE=-1,n.exports.DIFF_INSERT=1,n.exports.DIFF_EQUAL=0}));If.DIFF_EQUAL;If.DIFF_DELETE;If.DIFF_INSERT;var yN=["enhancers"],bN=function(n){var l,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.enhancers,o=s===void 0?[]:s,f=pt(oN(n,xa(r,yN)),2),h=f[0],p=f[1],m=[Ey(h),Ey(p)],g=(l=[m[0],m[1]],o.reduce((function(A,k){return k(A)}),l)),b=pt(g,2),v=b[0],S=b[1],E=[v.map(wy),S.map(wy)],w=E[1];return{old:E[0].map((function(A){var k;return(k=A.children)!==null&&k!==void 0?k:[]})),new:w.map((function(A){var k;return(k=A.children)!==null&&k!==void 0?k:[]}))}};const vN=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function Vs({onSave:n,onAsk:l,onCancel:r,initialBody:s="",initialType:o="suggestion",location:f}){const[h,p]=C.useState(s),[m,g]=C.useState(o),[b,v]=C.useState(!1),[S,E]=C.useState(null),w=C.useRef(null),A=Xe(O=>O.setDraftComment);C.useEffect(()=>{var O;(O=w.current)==null||O.focus()},[]);const{file:k,line:z,side:L}=f??{};C.useEffect(()=>{k!==void 0&&z!==void 0&&L!==void 0&&(h.trim()?A({body:h,type:m,file:k,line:z,side:L}):A(null))},[h,m,k,z,L,A]);function j(){h.trim()&&(A(null),n(h.trim(),m))}async function q(){if(!l||!h.trim())return;v(!0),E(null);const O=await l(h.trim());v(!1),O.ok?(A(null),r()):E(O.error??"Could not ask the agent")}function I(){A(null),r()}function V(O){(O.metaKey||O.ctrlKey)&&O.key==="Enter"?(O.preventDefault(),j()):O.key==="Escape"&&(O.preventDefault(),I())}return d.jsxs("div",{className:"p-3 space-y-2",onKeyDown:V,children:[d.jsx("textarea",{ref:w,value:h,onChange:O=>p(O.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),S&&d.jsx("p",{role:"alert",className:"text-xs text-danger",children:S}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("select",{value:m,onChange:O=>g(O.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:vN.map(O=>d.jsx("option",{value:O.value,children:O.label},O.value))}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:I,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),l&&d.jsx("button",{onClick:q,disabled:!h.trim()||b,title:"Start a thread the agent answers while you review, instead of a comment sent with your decision",className:"px-3 py-1.5 text-xs font-medium rounded text-text-secondary border border-border hover:text-text-primary hover:border-accent/40 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:b?"Asking…":"Ask agent now"}),d.jsx("button",{onClick:j,disabled:!h.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const xN={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function SN({comments:n,isFormOpen:l,location:r,onAdd:s,onAsk:o,onUpdate:f,onDelete:h,onOpenForm:p,onCloseForm:m}){const[g,b]=C.useState(null);return d.jsxs("div",{className:"border-t border-border bg-surface",children:[n.map(({comment:v,index:S})=>g===S?d.jsx(Vs,{initialBody:v.body,initialType:v.type,location:r,onSave:(E,w)=>{f(S,E,w),b(null)},onCancel:()=>b(null)},S):d.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${m2[v.type]}`,children:xN[v.type]}),d.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r.file,":",r.line]}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:()=>b(S),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:d.jsx(a2,{className:"w-3 h-3"})}),d.jsx("button",{onClick:()=>h(S),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-danger transition-all cursor-pointer",title:"Delete comment",children:d.jsx(c2,{className:"w-3 h-3"})})]}),d.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:v.body})]},S)),l&&g===null&&d.jsx(Vs,{location:r,onSave:(v,S)=>{s(v,S),m()},onAsk:o,onCancel:m}),!l&&n.length>0&&g===null&&d.jsxs("button",{onClick:p,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[d.jsx(cb,{className:"w-3 h-3"}),"Add comment"]})]})}function EN(n){const l=n.replies??[];return l.length>0?l[l.length-1].author:n.author??"agent"}function Ff(n){return!n.dismissed&&EN(n)==="reviewer"}function Vf(n){const l=n.replies??[];return l.length>0?l[l.length-1].createdAt:n.createdAt}function Yb(n,l){return l!==void 0&&l>Vf(n)}const qb=5e3;function wN(n,l,r){return Yb(n,l)?"picked_up":r-Vf(n)<qb?"pending":"unheard"}function Ib(n,l){const[r,s]=C.useState(()=>Date.now());let o;for(const f of n){if(!Ff(f)||Yb(f,l))continue;const h=Vf(f)+qb;h>r&&(o===void 0||h<o)&&(o=h)}return C.useEffect(()=>{if(o===void 0)return;const f=setTimeout(()=>s(Date.now()),Math.max(0,o-Date.now()));return()=>clearTimeout(f)},[o]),f=>wN(f,l,r)}function rf({placeholder:n,submitLabel:l,onSubmit:r,onCancel:s}){const[o,f]=C.useState(""),[h,p]=C.useState(!1),[m,g]=C.useState(null),b=C.useRef(null);C.useEffect(()=>{var S;(S=b.current)==null||S.focus()},[]);async function v(){if(!o.trim()||h)return;p(!0),g(null);const S=await r(o.trim());p(!1),S.ok?f(""):g(S.error??"Couldn't send")}return d.jsxs("div",{className:"px-3 py-2 space-y-1.5",children:[d.jsx("textarea",{ref:b,value:o,onChange:S=>f(S.target.value),onKeyDown:S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?(S.preventDefault(),v()):S.key==="Escape"&&s&&(S.preventDefault(),s())},placeholder:n,rows:2,className:"w-full bg-background border border-border rounded px-2 py-1.5 text-text-primary text-sm focus:outline-none focus:border-accent resize-y"}),m&&d.jsx("p",{className:"text-danger text-xs",children:m}),d.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s&&d.jsx("button",{onClick:s,className:"px-2 py-1 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),d.jsx("button",{onClick:()=>void v(),disabled:!o.trim()||h,className:"px-2.5 py-1 text-xs rounded bg-accent/15 text-accent hover:bg-accent/25 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:h?"Sending…":l})]})]})}const NN={finding:Xa,suggestion:Of,question:kf,warning:Zl};function Fb({author:n,agent:l}){return n==="reviewer"?d.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-accent",children:[d.jsx(f2,{className:"w-3 h-3"}),"You"]}):d.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-text-secondary",children:[d.jsx(Tf,{className:"w-3 h-3"}),l??"agent"]})}function AN({reply:n}){return d.jsxs("div",{className:"pl-3 ml-1.5 border-l border-border/70 py-1",children:[d.jsx(Fb,{author:n.author,agent:n.agent}),d.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap mt-0.5",children:n.body})]})}function TN({sessionId:n}){const l=`Answer my DiffPrism comments${n?` on ${n}`:""}`,[r,s]=C.useState("idle");return d.jsxs("div",{className:"mt-1.5 text-[11px]",children:[d.jsx("p",{className:"text-warning",children:"No agent is listening, so nothing will answer this. Ask Claude Code:"}),d.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[d.jsx("code",{className:"select-all px-1.5 py-0.5 rounded border border-border bg-background text-text-primary",children:l}),d.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(l).then(()=>s("copied"),()=>s("failed"))},className:"inline-flex items-center gap-1 text-text-secondary hover:text-accent transition-colors cursor-pointer",title:"Copy prompt",children:[r==="copied"?d.jsx(Vl,{className:"w-3 h-3"}):d.jsx(XS,{className:"w-3 h-3"}),r==="copied"?"Copied":r==="failed"?"Copy failed — select the text instead":"Copy"]})]})]})}function CN({annotations:n,onDismiss:l,onReply:r,sessionId:s,agentReadAt:o}){const[f,h]=C.useState(null),p=Ib(n,o);if(n.length===0)return null;const m=n.some(g=>{var b;return(g.author??"agent")==="reviewer"||(((b=g.replies)==null?void 0:b.length)??0)>0});return d.jsxs("div",{className:"border-t border-border bg-surface",children:[d.jsxs("div",{className:"px-3 py-1.5 flex items-center gap-1.5 border-b border-border/50",children:[m?d.jsx(Xl,{className:"w-3 h-3 text-text-secondary"}):d.jsx(Tf,{className:"w-3 h-3 text-text-secondary"}),d.jsx("span",{className:"text-[10px] font-semibold text-text-secondary uppercase tracking-wide",children:m?`Discussion${n.length>1?` (${n.length})`:""}`:`Agent ${n.length===1?"Annotation":`Annotations (${n.length})`}`})]}),n.map(g=>{const b=g.author??"agent",v=NN[g.type]??Xa,S=Is[g.category]??Is.other,E=Pg[g.category]??Pg.other,w=g.replies??[];return d.jsxs("div",{"data-annotation-id":g.id,className:"px-3 py-2 border-b border-border/50 group/annotation",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[b==="agent"?d.jsxs(d.Fragment,{children:[d.jsx(v,{className:`w-3.5 h-3.5 flex-shrink-0 ${S}`}),d.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${E}`,children:g.category}),d.jsx("span",{className:"text-text-secondary text-[10px]",children:g.source.agent})]}):d.jsx(Fb,{author:"reviewer"}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:()=>l(g.id),className:"opacity-0 group-hover/annotation:opacity-100 p-0.5 rounded hover:bg-text-primary/10 text-text-secondary transition-all cursor-pointer flex-shrink-0",title:"Dismiss",children:d.jsx(si,{className:"w-3 h-3"})})]}),d.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:g.body}),w.length>0&&d.jsx("div",{className:"mt-1.5 space-y-0.5",children:w.map(A=>d.jsx(AN,{reply:A},A.id))}),Ff(g)&&(p(g)==="unheard"?d.jsx(TN,{sessionId:s}):d.jsx("p",{className:"mt-1.5 text-[11px] text-text-secondary italic",children:"Waiting for the agent to reply."})),r&&(f===g.id?d.jsx("div",{className:"-mx-3",children:d.jsx(rf,{placeholder:"Reply…",submitLabel:"Reply",onSubmit:async A=>{const k=await r(g.id,A);return k.ok&&h(null),k},onCancel:()=>h(null)})}):d.jsx("button",{onClick:()=>h(g.id),className:"mt-1 text-[11px] text-text-secondary hover:text-accent transition-colors cursor-pointer",children:"Reply"}))]},g.id)})]})}function kN(n){const l=Xe(s=>s.focusedAnnotationId),r=Xe(s=>s.focusAnnotation);C.useEffect(()=>{if(!l)return;const s=document.querySelector(`[data-annotation-id="${l}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),r(null))},[l,r,n])}Nn.displayName="clike";Nn.aliases=[];function Nn(n){n.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:/[{}[\];(),.:]/}}ui.displayName="c";ui.aliases=[];function ui(n){n.register(Nn),n.languages.c=n.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|[?:~]|[-+*/%&|^!=<>]=?/}),n.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),n.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},n.languages.c.string],char:n.languages.c.char,comment:n.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:n.languages.c}}}}),n.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 n.languages.c.boolean}ro.displayName="cpp";ro.aliases=[];function ro(n){n.register(ui),(function(l){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});l.languages.cpp=l.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),l.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 s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),l.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:l.languages.cpp}}}}),l.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),l.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:l.languages.extend("cpp",{})}}),l.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},l.languages.cpp["base-clause"])})(n)}Xf.displayName="arduino";Xf.aliases=["ino"];function Xf(n){n.register(ro),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}Zf.displayName="bash";Zf.aliases=["sh","shell"];function Zf(n){(function(l){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:s,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};l.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=l.languages.bash;for(var f=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],h=o.variable[1].inside,p=0;p<f.length;p++)h[f[p]]=l.languages.bash[f[p]];l.languages.sh=l.languages.bash,l.languages.shell=l.languages.bash})(n)}Kf.displayName="csharp";Kf.aliases=["cs","dotnet"];function Kf(n){n.register(Nn),(function(l){function r(fe,N){return fe.replace(/<<(\d+)>>/g,function(G,te){return"(?:"+N[+te]+")"})}function s(fe,N,G){return RegExp(r(fe,N),"")}function o(fe,N){for(var G=0;G<N;G++)fe=fe.replace(/<<self>>/g,function(){return"(?:"+fe+")"});return fe.replace(/<<self>>/g,"[^\\s\\S]")}var f={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function h(fe){return"\\b(?:"+fe.trim().replace(/ /g,"|")+")\\b"}var p=h(f.typeDeclaration),m=RegExp(h(f.type+" "+f.typeDeclaration+" "+f.contextual+" "+f.other)),g=h(f.typeDeclaration+" "+f.contextual+" "+f.other),b=h(f.type+" "+f.typeDeclaration+" "+f.other),v=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),S=o(/\((?:[^()]|<<self>>)*\)/.source,2),E=/@?\b[A-Za-z_]\w*\b/.source,w=r(/<<0>>(?:\s*<<1>>)?/.source,[E,v]),A=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[g,w]),k=/\[\s*(?:,\s*)*\]/.source,z=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[A,k]),L=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[v,S,k]),j=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[L]),q=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[j,A,k]),I={keyword:m,punctuation:/[<>()?,.:[\]]/},V=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,O=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;l.languages.csharp=l.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[A]),lookbehind:!0,inside:I},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[E,q]),lookbehind:!0,inside:I},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[E]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,w]),lookbehind:!0,inside:I},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[A]),lookbehind:!0,inside:I},{pattern:s(/(\bwhere\s+)<<0>>/.source,[E]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[z]),lookbehind:!0,inside:I},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[q,b,E]),inside:I}],keyword:m,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),l.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),l.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[E]),lookbehind:!0,alias:"punctuation"}}),l.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[E]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[S]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[q,A]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[q]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[E,v]),inside:{function:s(/^<<0>>/.source,[E]),generic:{pattern:RegExp(v),alias:"class-name",inside:I}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,w,E,q,m.source,S,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[w,S]),lookbehind:!0,greedy:!0,inside:l.languages.csharp},keyword:m,"class-name":{pattern:RegExp(q),greedy:!0,inside:I},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Z=O+"|"+V,se=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Z]),P=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[se]),2),ue=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,le=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[A,P]);l.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ue,le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[ue]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[P]),inside:l.languages.csharp},"class-name":{pattern:RegExp(A),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,K=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[se]),2),D=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,W]),U=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Z]),2),re=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,W]);function ce(fe,N){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[fe]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:l.languages.csharp}}},string:/[\s\S]+/}}l.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:ce(D,K)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:ce(re,U)}],char:{pattern:RegExp(V),greedy:!0}}),l.languages.dotnet=l.languages.cs=l.languages.csharp})(n)}ci.displayName="markup";ci.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function ci(n){n.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]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var f={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};f["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var h={};h[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},n.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}Wl.displayName="css";Wl.aliases=[];function Wl(n){(function(l){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var s=l.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(n)}Qf.displayName="diff";Qf.aliases=[];function Qf(n){(function(l){l.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(s){var o=r[s],f=[];/^\w+$/.test(s)||f.push(/\w+/.exec(s)[0]),s==="diff"&&f.push("bold"),l.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
372
|
+
?|
|
|
373
|
+
|(?![\\s\\S])))+`,"m"),alias:f,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(l.languages.diff,"PREFIXES",{value:r})})(n)}Jf.displayName="go";Jf.aliases=[];function Jf(n){n.register(Nn),n.languages.go=n.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/}),n.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete n.languages.go["class-name"]}Wf.displayName="ini";Wf.aliases=[];function Wf(n){n.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Pf.displayName="java";Pf.aliases=[];function Pf(n){n.register(Nn),(function(l){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};l.languages.java=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[l.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),l.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),l.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(n)}ed.displayName="regex";ed.aliases=[];function ed(n){(function(l){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?: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]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},f={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},h="(?:[^\\\\-]|"+s.source+")",p=RegExp(h+"-"+h),m={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};l.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:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":f,escape:s}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":m}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":m}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(n)}io.displayName="javascript";io.aliases=["js"];function io(n){n.register(Nn),n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.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:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript}td.displayName="json";td.aliases=["webmanifest"];function td(n){n.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"}},n.languages.webmanifest=n.languages.json}nd.displayName="kotlin";nd.aliases=["kt","kts"];function nd(n){n.register(Nn),(function(l){l.languages.kotlin=l.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 l.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:l.languages.kotlin}};l.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete l.languages.kotlin.string,l.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),l.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),l.languages.kt=l.languages.kotlin,l.languages.kts=l.languages.kotlin})(n)}ad.displayName="less";ad.aliases=[];function ad(n){n.register(Wl),n.languages.less=n.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),n.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}ld.displayName="lua";ld.aliases=[];function ld(n){n.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}rd.displayName="makefile";rd.aliases=[];function rd(n){n.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}id.displayName="yaml";id.aliases=["yml"];function id(n){(function(l){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",f=/(?:[^\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}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(m,g){g=(g||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return m});return RegExp(b,g)}l.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 o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\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:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(h),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},l.languages.yml=l.languages.yaml})(n)}sd.displayName="markdown";sd.aliases=["md"];function sd(n){n.register(ci),(function(l){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;l.languages.markdown=l.languages.extend("markup",{}),l.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:l.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+h+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+h+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:l.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:l.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:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<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:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(m){p!==m&&(l.languages.markdown[p].inside.content.inside[m]=l.languages.markdown[m])})}),l.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function m(g){if(!(!g||typeof g=="string"))for(var b=0,v=g.length;b<v;b++){var S=g[b];if(S.type!=="code"){m(S.content);continue}var E=S.content[1],w=S.content[3];if(E&&w&&E.type==="code-language"&&w.type==="code-block"&&typeof E.content=="string"){var A=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var k="language-"+A;w.alias?typeof w.alias=="string"?w.alias=[w.alias,k]:w.alias.push(k):w.alias=[k]}}}m(p.tokens)}),l.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var m="",g=0,b=p.classes.length;g<b;g++){var v=p.classes[g],S=/language-(.+)/.exec(v);if(S){m=S[1];break}}var E=l.languages[m];if(E)p.content=l.highlight(p.content.value,E,m);else if(m&&m!=="none"&&l.plugins.autoloader){var w="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=w,l.plugins.autoloader.loadLanguages(m,function(){var A=document.getElementById(w);A&&(A.innerHTML=l.highlight(A.textContent,l.languages[m],m))})}}}),RegExp(l.languages.markup.tag.pattern.source,"gi"),l.languages.md=l.languages.markdown})(n)}od.displayName="objectivec";od.aliases=["objc"];function od(n){n.register(ui),n.languages.objectivec=n.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 n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}ud.displayName="perl";ud.aliases=[];function ud(n){(function(l){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;l.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(n)}so.displayName="markup-templating";so.aliases=[];function so(n){n.register(ci),(function(l){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(l.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,f,h){if(s.language===o){var p=s.tokenStack=[];s.code=s.code.replace(f,function(m){if(typeof h=="function"&&!h(m))return m;for(var g=p.length,b;s.code.indexOf(b=r(o,g))!==-1;)++g;return p[g]=m,b}),s.grammar=l.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=l.languages[o];var f=0,h=Object.keys(s.tokenStack);function p(m){for(var g=0;g<m.length&&!(f>=h.length);g++){var b=m[g];if(typeof b=="string"||b.content&&typeof b.content=="string"){var v=h[f],S=s.tokenStack[v],E=typeof b=="string"?b:b.content,w=r(o,v),A=E.indexOf(w);if(A>-1){++f;var k=E.substring(0,A),z=new l.Token(o,l.tokenize(S,s.grammar),"language-"+o,S),L=E.substring(A+w.length),j=[];k&&j.push.apply(j,p([k])),j.push(z),L&&j.push.apply(j,p([L])),typeof b=="string"?m.splice.apply(m,[g,1].concat(j)):b.content=j}}else b.content&&p(b.content)}return m}p(s.tokens)}}})})(n)}cd.displayName="php";cd.aliases=[];function cd(n){n.register(so),(function(l){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,f=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,h=/[{}\[\](),:;]/;l.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:f,punctuation:h};var p={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:l.languages.php},m=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:p}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:p}}];l.languages.insertBefore("php","variable",{string:m,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:m,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:f,punctuation:h}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),l.hooks.add("before-tokenize",function(g){if(/<\?/.test(g.code)){var b=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;l.languages["markup-templating"].buildPlaceholders(g,"php",b)}}),l.hooks.add("after-tokenize",function(g){l.languages["markup-templating"].tokenizePlaceholders(g,"php")})})(n)}fd.displayName="python";fd.aliases=["py"];function fd(n){n.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},n.languages.python["string-interpolation"].inside.interpolation.inside.rest=n.languages.python,n.languages.py=n.languages.python}dd.displayName="r";dd.aliases=[];function dd(n){n.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}hd.displayName="ruby";hd.aliases=["rb"];function hd(n){n.register(Nn),(function(l){l.languages.ruby=l.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),l.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:l.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete l.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;l.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),l.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete l.languages.ruby.string,l.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),l.languages.rb=l.languages.ruby})(n)}md.displayName="rust";md.aliases=[];function md(n){(function(l){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),l.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},l.languages.rust["closure-params"].inside.rest=l.languages.rust,l.languages.rust.attribute.inside.string=l.languages.rust.string})(n)}pd.displayName="sass";pd.aliases=[];function pd(n){n.register(Wl),(function(l){l.languages.sass=l.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),l.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete l.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];l.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:l.languages.sass.important}}}),delete l.languages.sass.property,delete l.languages.sass.important,l.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(n)}gd.displayName="scss";gd.aliases=[];function gd(n){n.register(Wl),n.languages.scss=n.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),n.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),n.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),n.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),n.languages.scss.atrule.inside.rest=n.languages.scss}yd.displayName="sql";yd.aliases=[];function yd(n){n.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:/[;[\]()`,.]/}}bd.displayName="swift";bd.aliases=[];function bd(n){n.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:/[{}[\]();,.:\\]/},n.languages.swift["string-literal"].forEach(function(l){l.inside.interpolation.inside=n.languages.swift})}vd.displayName="typescript";vd.aliases=["ts"];function vd(n){n.register(io),(function(l){l.languages.typescript=l.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/}),l.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 l.languages.typescript.parameter,delete l.languages.typescript["literal-property"];var r=l.languages.extend("typescript",{});delete r["class-name"],l.languages.typescript["class-name"].inside=r,l.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),l.languages.ts=l.languages.typescript})(n)}oo.displayName="basic";oo.aliases=[];function oo(n){n.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}xd.displayName="vbnet";xd.aliases=[];function xd(n){n.register(oo),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class fi{constructor(l,r,s){this.property=l,this.normal=r,s&&(this.space=s)}}fi.prototype.property={};fi.prototype.normal={};fi.prototype.space=null;function Vb(n,l){const r={},s={};let o=-1;for(;++o<n.length;)Object.assign(r,n[o].property),Object.assign(s,n[o].normal);return new fi(r,s,l)}function li(n){return n.toLowerCase()}class un{constructor(l,r){this.property=l,this.attribute=r}}un.prototype.space=null;un.prototype.boolean=!1;un.prototype.booleanish=!1;un.prototype.overloadedBoolean=!1;un.prototype.number=!1;un.prototype.commaSeparated=!1;un.prototype.spaceSeparated=!1;un.prototype.commaOrSpaceSeparated=!1;un.prototype.mustUseProperty=!1;un.prototype.defined=!1;let _N=0;const Ae=Ja(),ct=Ja(),Xb=Ja(),ie=Ja(),Ke=Ja(),Fl=Ja(),It=Ja();function Ja(){return 2**++_N}const sf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ae,booleanish:ct,commaOrSpaceSeparated:It,commaSeparated:Fl,number:ie,overloadedBoolean:Xb,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Gc=Object.keys(sf);class Sd extends un{constructor(l,r,s,o){let f=-1;if(super(l,r),Ny(this,"space",o),typeof s=="number")for(;++f<Gc.length;){const h=Gc[f];Ny(this,Gc[f],(s&sf[h])===sf[h])}}}Sd.prototype.defined=!0;function Ny(n,l,r){r&&(n[l]=r)}const jN={}.hasOwnProperty;function Pl(n){const l={},r={};let s;for(s in n.properties)if(jN.call(n.properties,s)){const o=n.properties[s],f=new Sd(s,n.transform(n.attributes||{},s),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),l[s]=f,r[li(s)]=s,r[li(f.attribute)]=s}return new fi(l,r,n.space)}const Zb=Pl({space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Kb=Pl({space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Qb(n,l){return l in n?n[l]:l}function Jb(n,l){return Qb(n,l.toLowerCase())}const Wb=Pl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Jb,properties:{xmlns:null,xmlnsXLink:null}}),Pb=Pl({transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Ke,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ie,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Ke,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ct,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null}}),ON=Pl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Jb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fl,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Ae,allowPaymentRequest:Ae,allowUserMedia:Ae,alt:null,as:null,async:Ae,autoCapitalize:null,autoComplete:Ke,autoFocus:Ae,autoPlay:Ae,blocking:Ke,capture:null,charSet:null,checked:Ae,cite:null,className:Ke,cols:ie,colSpan:null,content:null,contentEditable:ct,controls:Ae,controlsList:Ke,coords:ie|Fl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ae,defer:Ae,dir:null,dirName:null,disabled:Ae,download:Xb,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ae,formTarget:null,headers:Ke,height:ie,hidden:Ae,high:ie,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Ae,inputMode:null,integrity:null,is:null,isMap:Ae,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Ae,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ae,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ae,muted:Ae,name:null,nonce:null,noModule:Ae,noValidate:Ae,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ae,optimum:ie,pattern:null,ping:Ke,placeholder:null,playsInline:Ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ae,referrerPolicy:null,rel:Ke,required:Ae,reversed:Ae,rows:ie,rowSpan:ie,sandbox:Ke,scope:null,scoped:Ae,seamless:Ae,selected:Ae,shadowRootClonable:Ae,shadowRootDelegatesFocus:Ae,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ae,useMap:null,value:ct,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ae,declare:Ae,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ae,noHref:Ae,noShade:Ae,noWrap:Ae,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ae,disableRemotePlayback:Ae,prefix:null,property:null,results:ie,security:null,unselectable:null}}),RN=Pl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Qb,properties:{about:It,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fl,g2:Fl,glyphName:Fl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),MN=/^data[-\w.:]+$/i,Ay=/-[a-z]/g,DN=/[A-Z]/g;function zN(n,l){const r=li(l);let s=l,o=un;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&MN.test(l)){if(l.charAt(4)==="-"){const f=l.slice(5).replace(Ay,UN);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=l.slice(4);if(!Ay.test(f)){let h=f.replace(DN,LN);h.charAt(0)!=="-"&&(h="-"+h),l="data"+h}}o=Sd}return new o(s,l)}function LN(n){return"-"+n.toLowerCase()}function UN(n){return n.charAt(1).toUpperCase()}const BN=Vb([Kb,Zb,Wb,Pb,ON],"html");Vb([Kb,Zb,Wb,Pb,RN],"svg");const Ty=/[#.]/g;function HN(n,l){const r=n||"",s={};let o=0,f,h;for(;o<r.length;){Ty.lastIndex=o;const p=Ty.exec(r),m=r.slice(o,p?p.index:r.length);m&&(f?f==="#"?s.id=m:Array.isArray(s.className)?s.className.push(m):s.className=[m]:h=m,o+=m.length),p&&(f=p[0],o++)}return{type:"element",tagName:h||l||"div",properties:s,children:[]}}function Cy(n){const l=String(n||"").trim();return l?l.split(/[ \t\n\r\f]+/g):[]}function ky(n){const l=[],r=String(n||"");let s=r.indexOf(","),o=0,f=!1;for(;!f;){s===-1&&(s=r.length,f=!0);const h=r.slice(o,s).trim();(h||!f)&&l.push(h),o=s+1,s=r.indexOf(",",o)}return l}const $N=new Set(["menu","submit","reset","button"]),e0={}.hasOwnProperty;function GN(n,l,r){return(function(o,f,...h){let p=-1,m;if(o==null)m={type:"root",children:[]},h.unshift(f);else if(m=HN(o,l),m.tagName=m.tagName.toLowerCase(),YN(f,m.tagName)){let g;for(g in f)e0.call(f,g)&&qN(n,m.properties,g,f[g])}else h.unshift(f);for(;++p<h.length;)of(m.children,h[p]);return m.type==="element"&&m.tagName==="template"&&(m.content={type:"root",children:m.children},m.children=[]),m})}function YN(n,l){return n==null||typeof n!="object"||Array.isArray(n)?!1:l==="input"||!n.type||typeof n.type!="string"?!0:"children"in n&&Array.isArray(n.children)?!1:l==="button"?$N.has(n.type.toLowerCase()):!("value"in n)}function qN(n,l,r,s){const o=zN(n,r);let f=-1,h;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;h=s}else typeof s=="boolean"?h=s:typeof s=="string"?o.spaceSeparated?h=Cy(s):o.commaSeparated?h=ky(s):o.commaOrSpaceSeparated?h=Cy(ky(s).join(" ")):h=_y(o,o.property,s):Array.isArray(s)?h=s.concat():h=o.property==="style"?IN(s):String(s);if(Array.isArray(h)){const p=[];for(;++f<h.length;)p[f]=_y(o,o.property,h[f]);h=p}o.property==="className"&&Array.isArray(l.className)&&(h=l.className.concat(h)),l[o.property]=h}}function of(n,l){let r=-1;if(l!=null)if(typeof l=="string"||typeof l=="number")n.push({type:"text",value:String(l)});else if(Array.isArray(l))for(;++r<l.length;)of(n,l[r]);else if(typeof l=="object"&&"type"in l)l.type==="root"?of(n,l.children):n.push(l);else throw new Error("Expected node, nodes, or string, got `"+l+"`")}function _y(n,l,r){if(typeof r=="string"){if(n.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((n.boolean||n.overloadedBoolean)&&(r===""||li(r)===li(l)))return!0}return r}function IN(n){const l=[];let r;for(r in n)e0.call(n,r)&&l.push([r,n[r]].join(": "));return l.join("; ")}const FN=GN(BN,"div"),VN=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],jy={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function t0(n){const l=typeof n=="string"?n.charCodeAt(0):n;return l>=48&&l<=57}function XN(n){const l=typeof n=="string"?n.charCodeAt(0):n;return l>=97&&l<=102||l>=65&&l<=70||l>=48&&l<=57}function ZN(n){const l=typeof n=="string"?n.charCodeAt(0):n;return l>=97&&l<=122||l>=65&&l<=90}function Oy(n){return ZN(n)||t0(n)}const Ry=document.createElement("i");function My(n){const l="&"+n+";";Ry.innerHTML=l;const r=Ry.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===l?!1:r}const KN=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function QN(n,l){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let f=0,h=-1,p="",m,g;r.position&&("start"in r.position||"indent"in r.position?(g=r.position.indent,m=r.position.start):m=r.position);let b=(m?m.line:0)||1,v=(m?m.column:0)||1,S=w(),E;for(f--;++f<=n.length;)if(E===10&&(v=(g?g[h]:0)||1),E=n.charCodeAt(f),E===38){const z=n.charCodeAt(f+1);if(z===9||z===10||z===12||z===32||z===38||z===60||Number.isNaN(z)||s&&z===s){p+=String.fromCharCode(E),v++;continue}const L=f+1;let j=L,q=L,I;if(z===35){q=++j;const le=n.charCodeAt(q);le===88||le===120?(I="hexadecimal",q=++j):I="decimal"}else I="named";let V="",O="",R="";const Z=I==="named"?Oy:I==="decimal"?t0:XN;for(q--;++q<=n.length;){const le=n.charCodeAt(q);if(!Z(le))break;R+=String.fromCharCode(le),I==="named"&&VN.includes(R)&&(V=R,O=My(R))}let se=n.charCodeAt(q)===59;if(se){q++;const le=I==="named"?My(R):!1;le&&(V=R,O=le)}let P=1+q-L,ue="";if(!(!se&&r.nonTerminated===!1))if(!R)I!=="named"&&A(4,P);else if(I==="named"){if(se&&!O)A(5,1);else if(V!==R&&(q=j+V.length,P=1+q-j,se=!1),!se){const le=V?1:3;if(r.attribute){const W=n.charCodeAt(q);W===61?(A(le,P),O=""):Oy(W)?O="":A(le,P)}else A(le,P)}ue=O}else{se||A(2,P);let le=Number.parseInt(R,I==="hexadecimal"?16:10);if(JN(le))A(7,P),ue="�";else if(le in jy)A(6,P),ue=jy[le];else{let W="";WN(le)&&A(6,P),le>65535&&(le-=65536,W+=String.fromCharCode(le>>>10|55296),le=56320|le&1023),ue=W+String.fromCharCode(le)}}if(ue){k(),S=w(),f=q-1,v+=q-L+1,o.push(ue);const le=w();le.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,ue,{start:S,end:le},n.slice(L-1,q)),S=le}else R=n.slice(L-1,q),p+=R,v+=R.length,f=q-1}else E===10&&(b++,h++,v=0),Number.isNaN(E)?k():(p+=String.fromCharCode(E),v++);return o.join("");function w(){return{line:b,column:v,offset:f+((m?m.offset:0)||0)}}function A(z,L){let j;r.warning&&(j=w(),j.column+=L,j.offset+=L,r.warning.call(r.warningContext||void 0,KN[z],j,z))}function k(){p&&(o.push(p),r.text&&r.text.call(r.textContext||void 0,p,{start:S,end:w()}),p="")}}function JN(n){return n>=55296&&n<=57343||n>1114111}function WN(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}var PN=0,Bs={},mt={util:{type:function(n){return Object.prototype.toString.call(n).slice(8,-1)},objId:function(n){return n.__id||Object.defineProperty(n,"__id",{value:++PN}),n.__id},clone:function n(l,r){r=r||{};var s,o;switch(mt.util.type(l)){case"Object":if(o=mt.util.objId(l),r[o])return r[o];s={},r[o]=s;for(var f in l)l.hasOwnProperty(f)&&(s[f]=n(l[f],r));return s;case"Array":return o=mt.util.objId(l),r[o]?r[o]:(s=[],r[o]=s,l.forEach(function(h,p){s[p]=n(h,r)}),s);default:return l}}},languages:{plain:Bs,plaintext:Bs,text:Bs,txt:Bs,extend:function(n,l){var r=mt.util.clone(mt.languages[n]);for(var s in l)r[s]=l[s];return r},insertBefore:function(n,l,r,s){s=s||mt.languages;var o=s[n],f={};for(var h in o)if(o.hasOwnProperty(h)){if(h==l)for(var p in r)r.hasOwnProperty(p)&&(f[p]=r[p]);r.hasOwnProperty(h)||(f[h]=o[h])}var m=s[n];return s[n]=f,mt.languages.DFS(mt.languages,function(g,b){b===m&&g!=n&&(this[g]=f)}),f},DFS:function n(l,r,s,o){o=o||{};var f=mt.util.objId;for(var h in l)if(l.hasOwnProperty(h)){r.call(l,h,l[h],s||h);var p=l[h],m=mt.util.type(p);m==="Object"&&!o[f(p)]?(o[f(p)]=!0,n(p,r,null,o)):m==="Array"&&!o[f(p)]&&(o[f(p)]=!0,n(p,r,h,o))}}},plugins:{},highlight:function(n,l,r){var s={code:n,grammar:l,language:r};if(mt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=mt.tokenize(s.code,s.grammar),mt.hooks.run("after-tokenize",s),Pr.stringify(mt.util.encode(s.tokens),s.language)},tokenize:function(n,l){var r=l.rest;if(r){for(var s in r)l[s]=r[s];delete l.rest}var o=new eA;return Gs(o,o.head,n),n0(n,o,l,o.head,0),nA(o)},hooks:{all:{},add:function(n,l){var r=mt.hooks.all;r[n]=r[n]||[],r[n].push(l)},run:function(n,l){var r=mt.hooks.all[n];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(l)}},Token:Pr};function Pr(n,l,r,s){this.type=n,this.content=l,this.alias=r,this.length=(s||"").length|0}function Dy(n,l,r,s){n.lastIndex=l;var o=n.exec(r);if(o&&s&&o[1]){var f=o[1].length;o.index+=f,o[0]=o[0].slice(f)}return o}function n0(n,l,r,s,o,f){for(var h in r)if(!(!r.hasOwnProperty(h)||!r[h])){var p=r[h];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(f&&f.cause==h+","+m)return;var g=p[m],b=g.inside,v=!!g.lookbehind,S=!!g.greedy,E=g.alias;if(S&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var A=g.pattern||g,k=s.next,z=o;k!==l.tail&&!(f&&z>=f.reach);z+=k.value.length,k=k.next){var L=k.value;if(l.length>n.length)return;if(!(L instanceof Pr)){var j=1,q;if(S){if(q=Dy(A,z,n,v),!q||q.index>=n.length)break;var R=q.index,I=q.index+q[0].length,V=z;for(V+=k.value.length;R>=V;)k=k.next,V+=k.value.length;if(V-=k.value.length,z=V,k.value instanceof Pr)continue;for(var O=k;O!==l.tail&&(V<I||typeof O.value=="string");O=O.next)j++,V+=O.value.length;j--,L=n.slice(z,V),q.index-=z}else if(q=Dy(A,0,L,v),!q)continue;var R=q.index,Z=q[0],se=L.slice(0,R),P=L.slice(R+Z.length),ue=z+L.length;f&&ue>f.reach&&(f.reach=ue);var le=k.prev;se&&(le=Gs(l,le,se),z+=se.length),tA(l,le,j);var W=new Pr(h,b?mt.tokenize(Z,b):Z,E,Z);if(k=Gs(l,le,W),P&&Gs(l,k,P),j>1){var K={cause:h+","+m,reach:ue};n0(n,l,r,k.prev,z,K),f&&K.reach>f.reach&&(f.reach=K.reach)}}}}}}function eA(){var n={value:null,prev:null,next:null},l={value:null,prev:n,next:null};n.next=l,this.head=n,this.tail=l,this.length=0}function Gs(n,l,r){var s=l.next,o={value:r,prev:l,next:s};return l.next=o,s.prev=o,n.length++,o}function tA(n,l,r){for(var s=l.next,o=0;o<r&&s!==n.tail;o++)s=s.next;l.next=s,s.prev=l,n.length-=o}function nA(n){for(var l=[],r=n.head.next;r!==n.tail;)l.push(r.value),r=r.next;return l}const a0=mt,er={}.hasOwnProperty;function l0(){}l0.prototype=a0;const ve=new l0;ve.highlight=aA;ve.register=lA;ve.alias=rA;ve.registered=iA;ve.listLanguages=sA;ve.util.encode=oA;ve.Token.stringify=uf;function aA(n,l){if(typeof n!="string")throw new TypeError("Expected `string` for `value`, got `"+n+"`");let r,s;if(l&&typeof l=="object")r=l;else{if(s=l,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(er.call(ve.languages,s))r=ve.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:a0.highlight.call(ve,n,r,s)}}function lA(n){if(typeof n!="function"||!n.displayName)throw new Error("Expected `function` for `syntax`, got `"+n+"`");er.call(ve.languages,n.displayName)||n(ve)}function rA(n,l){const r=ve.languages;let s={};typeof n=="string"?l&&(s[n]=l):s=n;let o;for(o in s)if(er.call(s,o)){const f=s[o],h=typeof f=="string"?[f]:f;let p=-1;for(;++p<h.length;)r[h[p]]=r[o]}}function iA(n){if(typeof n!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+n+"`");return er.call(ve.languages,n)}function sA(){const n=ve.languages,l=[];let r;for(r in n)er.call(n,r)&&typeof n[r]=="object"&&l.push(r);return l}function uf(n,l){if(typeof n=="string")return{type:"text",value:n};if(Array.isArray(n)){const s=[];let o=-1;for(;++o<n.length;)n[o]!==null&&n[o]!==void 0&&n[o]!==""&&s.push(uf(n[o],l));return s}const r={attributes:{},classes:["token",n.type],content:uf(n.content,l),language:l,tag:"span",type:n.type};return n.alias&&r.classes.push(...typeof n.alias=="string"?[n.alias]:n.alias),ve.hooks.run("wrap",r),FN(r.tag+"."+r.classes.join("."),uA(r.attributes),r.content)}function oA(n){return n}function uA(n){let l;for(l in n)er.call(n,l)&&(n[l]=QN(n[l]));return n}ve.register(Nn);ve.register(ui);ve.register(ro);ve.register(Xf);ve.register(Zf);ve.register(Kf);ve.register(ci);ve.register(Wl);ve.register(Qf);ve.register(Jf);ve.register(Wf);ve.register(Pf);ve.register(ed);ve.register(io);ve.register(td);ve.register(nd);ve.register(ad);ve.register(ld);ve.register(rd);ve.register(id);ve.register(sd);ve.register(od);ve.register(ud);ve.register(so);ve.register(cd);ve.register(fd);ve.register(dd);ve.register(hd);ve.register(md);ve.register(pd);ve.register(gd);ve.register(yd);ve.register(bd);ve.register(vd);ve.register(oo);ve.register(xd);const zy={highlight(n,l){return ve.highlight(n,l).children},registered(n){return ve.registered(n)}};function cA(n,l){const r={old:[],new:[]};for(const s of n){const o=bN([s],l);Ly(o.old,r.old,s.oldStart,s.oldLines),Ly(o.new,r.new,s.newStart,s.newLines)}return r}function Ly(n,l,r,s){for(let o=r;o<r+s;o++)l[o-1]=n[o-1]??[]}function fA(){const{theme:n,toggleTheme:l}=Xe();return d.jsx("button",{onClick:l,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${n==="dark"?"light":"dark"} mode`,children:n==="dark"?d.jsx(o2,{className:"w-4 h-4"}):d.jsx(e2,{className:"w-4 h-4"})})}function r0(){const n=Xe(r=>r.panes["review-sidebar"].collapsed),l=Xe(r=>r.setPane);return d.jsx("button",{onClick:()=>l("review-sidebar",{collapsed:!n}),className:"p-1 -ml-1 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer flex-shrink-0",title:n?"Show files":"Hide files",children:n?d.jsx(ub,{className:"w-4 h-4"}):d.jsx(ob,{className:"w-4 h-4"})})}function dA(n){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[n.toLowerCase()]??null}function cf(n){return Za(n)||sn(n)?n.lineNumber:Va(n)?n.newLineNumber:0}function ff(n){return sn(n)?"old":"new"}function Jr(n,l){return`${n}:${l}`}function hA(n,l){const r={};for(const s of n)for(const o of s.changes){const f=cf(o),h=`${l}:${Jr(ff(o),f)}`;r[h]||(r[h]=Zt(o))}return r}function mA(n,l,r=0){const s=/^diff --git /gm,o=[];let f;for(;(f=s.exec(n))!==null;)o.push(f.index);let h=0;for(let p=0;p<o.length;p++){const m=o[p],g=p+1<o.length?o[p+1]:n.length,b=n.slice(m,g);if(b.includes(`a/${l}`)||b.includes(`b/${l}`)){if(h===r)return b;h++}}return null}function pA(){const{diffSet:n,rawDiff:l,selectedFile:r,viewMode:s,setViewMode:o,comments:f,activeCommentKey:h,addComment:p,updateComment:m,deleteComment:g,setActiveCommentKey:b,toggleHotkeyGuide:v,toggleWorkflowTips:S,focusedHunkIndex:E,setHunkCount:w,annotations:A,dismissAnnotation:k,metadata:z,reviewId:L}=Xe(),j=!!(z!=null&&z.githubPr),{isAvailable:q,startThread:I,replyToThread:V}=Rf(),O=q&&!!L,R=Xe(ne=>{var Y;return(Y=ne.sessions.find(ee=>ee.id===ne.reviewId))==null?void 0:Y.agentReadAt}),Z=C.useMemo(()=>!n||!r?null:n.files.find(ne=>Vt(ne)===r)??null,[n,r]),se=C.useMemo(()=>{if(!l||!r||!n)return null;const ne=Bl(r);let Y=0;for(const ee of n.files){if(Vt(ee)===r)break;ee.path===ne&&Y++}return mA(l,ne,Y)},[l,r,n]),P=C.useMemo(()=>{if(!se)return[];try{return U2(se)}catch{return[]}},[se]),ue=C.useMemo(()=>{if(P.length===0||!Z)return;const ne=dA(Z.language);if(ne){try{if(!zy.registered(ne))return}catch{return}try{const Y={refractor:zy,highlight:!0,language:ne};return cA(P[0].hunks,Y)}catch{return}}},[P,Z,s]),le=C.useMemo(()=>P.length===0||!r?{}:hA(P[0].hunks,r),[P,r]),W=C.useMemo(()=>{if(P.length===0)return{};const ne={};for(const Y of P[0].hunks)for(const ee of Y.changes)ne[Zt(ee)]=cf(ee);return ne},[P]),K=C.useMemo(()=>{const ne={};if(P.length===0)return ne;for(const Y of P[0].hunks)for(const ee of Y.changes)ne[Zt(ee)]=ff(ee);return ne},[P]),D=C.useMemo(()=>r?f.map((ne,Y)=>({comment:ne,index:Y})).filter(ne=>ne.comment.file===r):[],[f,r]),U=C.useMemo(()=>{if(!r)return[];const ne=Bl(r);return A.filter(Y=>Y.file===ne&&!Y.dismissed)},[A,r]),re=C.useMemo(()=>{const ne=new Map;for(const Y of U){const ee=Jr(Y.side,Y.line);ne.has(ee)||ne.set(ee,[]),ne.get(ee).push(Y)}return ne},[U]),ce=C.useMemo(()=>j&&!O?{}:{onClick({change:ne}){if(!ne)return;const Y=Zt(ne);b(h===Y?null:Y)}},[h,b,j,O]),fe=C.useCallback(({change:ne,inHoverState:Y,renderDefault:ee})=>{const ye=Jr(ff(ne),cf(ne)),de=!j&&r&&D.some(Ee=>Jr(Ee.comment.side,Ee.comment.line)===ye),he=re.has(ye);return Y&&(!j||O)?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),ee()]}):de?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-comment-indicator"}),ee()]}):he?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-annotation-indicator"}),ee()]}):ee()},[r,D,re,j,O]),N=C.useMemo(()=>{if(!r)return{};const ne={},Y=new Map;if(!j)for(const de of D){const he=Jr(de.comment.side,de.comment.line);Y.has(he)||Y.set(he,[]),Y.get(he).push(de)}const ee=(de,he)=>!j&&O?Ee=>I(L,{file:Bl(r),line:de,side:K[he],body:Ee}):void 0,ye=new Set([...Y.keys(),...re.keys()]);for(const de of ye){const he=le[`${r}:${de}`];if(!he)continue;const Ee=W[he],ke={file:r,line:Ee,side:K[he]},Le=Y.get(de),Oe=re.get(de);ne[he]=d.jsxs(d.Fragment,{children:[Oe&&Oe.length>0&&d.jsx(CN,{annotations:Oe,onDismiss:k,onReply:O?(Ce,ge)=>V(L,Ce,ge):void 0,sessionId:L??void 0,agentReadAt:R}),j&&O&&h===he&&d.jsx("div",{className:"border-t border-border bg-surface",children:d.jsx(rf,{placeholder:"Start another conversation on this line…",submitLabel:"Comment",onSubmit:async Ce=>{const ge=await I(L,{file:Bl(r),line:Ee,side:K[he],body:Ce});return ge.ok&&b(null),ge},onCancel:()=>b(null)})}),!j&&Le&&Le.length>0&&d.jsx(SN,{comments:Le,isFormOpen:h===he,location:ke,onAdd:(Ce,ge)=>{p({...ke,body:Ce,type:ge})},onAsk:ee(Ee,he),onUpdate:(Ce,ge,$e)=>{m(Ce,{...ke,body:ge,type:$e})},onDelete:g,onOpenForm:()=>b(he),onCloseForm:()=>b(null)}),!j&&!(Le!=null&&Le.length)&&h===he&&d.jsx("div",{className:"border-t border-border bg-surface",children:d.jsx(Vs,{location:ke,onSave:(Ce,ge)=>{p({...ke,body:Ce,type:ge}),b(null)},onAsk:ee(Ee,he),onCancel:()=>b(null)})})]})}if(j&&O&&h&&!ne[h]){const de=W[h];de!==void 0&&(ne[h]=d.jsx("div",{className:"border-t border-border bg-surface",children:d.jsx(rf,{placeholder:"Ask the agent about this line…",submitLabel:"Comment",onSubmit:async he=>{const Ee=await I(L,{file:Bl(r),line:de,side:K[h],body:he});return Ee.ok&&b(null),Ee},onCancel:()=>b(null)})}))}if(!j&&h&&!ne[h]){const de=W[h];if(de!==void 0){const he={file:r,line:de,side:K[h]};ne[h]=d.jsx("div",{className:"border-t border-border bg-surface",children:d.jsx(Vs,{location:he,onSave:(Ee,ke)=>{p({...he,body:Ee,type:ke}),b(null)},onAsk:ee(de,h),onCancel:()=>b(null)})})}}return ne},[r,D,U,re,h,le,W,K,p,m,g,k,b,j,O,L,R,I,V]);kN(N);const G=C.useRef(null);if(C.useEffect(()=>{var ne;w(((ne=P[0])==null?void 0:ne.hunks.length)??0)},[P,w]),C.useEffect(()=>{const ne=G.current;if(!ne||E===null)return;const Y=ne.querySelectorAll("tbody.diff-hunk");Y.forEach(ee=>ee.classList.remove("diff-hunk-focused")),Y[E]&&(Y[E].scrollIntoView({behavior:"smooth",block:"center"}),Y[E].classList.add("diff-hunk-focused"))},[E]),C.useEffect(()=>{function ne(){if(E===null||P.length===0||!r)return;const Y=P[0].hunks[E];if(!Y||Y.changes.length===0)return;const ee=Y.changes[0],ye=Zt(ee);b(ye)}return document.addEventListener("diffprism:open-comment",ne),()=>document.removeEventListener("diffprism:open-comment",ne)},[E,P,r,b]),!r||!n)return d.jsxs("div",{className:"relative flex-1 flex items-center justify-center bg-background",children:[d.jsx("div",{className:"absolute top-2.5 left-4",children:d.jsx(r0,{})}),d.jsxs("div",{className:"text-center",children:[d.jsx(Ql,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})]});const te=Bl(r);if(Z!=null&&Z.binary)return d.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[d.jsx(Yc,{path:te,stage:Z==null?void 0:Z.stage}),d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(P.length===0)return d.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[d.jsx(Yc,{path:te,stage:Z==null?void 0:Z.stage}),d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const ae=P[0];return d.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[d.jsx(Yc,{path:te,stage:Z==null?void 0:Z.stage,additions:Z==null?void 0:Z.additions,deletions:Z==null?void 0:Z.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:v,onToggleWorkflowTips:S}),d.jsx("div",{ref:G,className:"flex-1 overflow-auto",children:d.jsx(Kw,{viewType:s,diffType:ae.type,hunks:ae.hunks,tokens:ue,widgets:N,gutterEvents:ce,renderGutter:fe,children:ne=>ne.map(Y=>d.jsx(Bb,{hunk:Y},Y.content))})})]})}function Yc({path:n,stage:l,additions:r,deletions:s,viewMode:o,onViewModeChange:f,onToggleHotkeyGuide:h,onToggleWorkflowTips:p}){return d.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[d.jsx(r0,{}),d.jsx(Ql,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),d.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:n}),l&&d.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${b2[l]}`,children:l==="staged"?"Staged":"Unstaged"}),d.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",s]}),o&&f&&d.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[d.jsx("button",{onClick:()=>f("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:d.jsx(i2,{className:"w-3.5 h-3.5"})}),d.jsx("button",{onClick:()=>f("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:d.jsx(VS,{className:"w-3.5 h-3.5"})})]}),p&&d.jsx("button",{onClick:p,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Workflow tips",children:d.jsx(Of,{className:"w-4 h-4"})}),h&&d.jsx("button",{onClick:h,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:d.jsx(kf,{className:"w-4 h-4"})}),d.jsx(fA,{})]})]})}function gA({onSubmit:n,onDismiss:l,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[f,h]=C.useState(""),[p,m]=C.useState(null),{diffSet:g,fileStatuses:b,comments:v,draftComment:S,saveDraftComment:E,setActiveCommentKey:w,setDraftComment:A}=Xe(),k=(g==null?void 0:g.files.reduce((R,Z)=>R+Z.additions,0))??0,z=(g==null?void 0:g.files.reduce((R,Z)=>R+Z.deletions,0))??0,L=(g==null?void 0:g.files.length)??0,j=!!(S&&S.body.trim());function q(R){const Z=Object.values(b).some(se=>se!=="unreviewed");n({decision:R,comments:Xe.getState().comments,fileStatuses:Z?b:void 0,summary:f.trim()||void 0})}function I(R){if(j){m(R);return}q(R)}function V(){p&&(E(),q(p),m(null))}function O(){p&&(A(null),w(null),q(p),m(null))}return r&&s&&!o?d.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Vl,{className:"w-4 h-4 text-success"}),d.jsx("span",{className:"text-sm text-success font-medium",children:"Review submitted"}),d.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-success opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-success"})]}),d.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):d.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&d.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[d.jsxs("span",{className:"relative flex h-2 w-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-info opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-info"})]}),"New changes detected"]}),d.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[d.jsxs("span",{className:"text-text-secondary text-xs",children:[L," file",L!==1?"s":""," changed"]}),k>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",k]}),z>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",z]}),v.length>0&&d.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[d.jsx(Xl,{className:"w-3 h-3"}),v.length," comment",v.length!==1?"s":""]})]}),d.jsx("textarea",{value:f,onChange:R=>h(R.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),p&&d.jsxs("div",{className:"flex items-center gap-3 mb-3 px-3 py-2.5 rounded-lg bg-warning/10 border border-warning/30",children:[d.jsx(Zl,{className:"w-4 h-4 text-warning flex-shrink-0"}),d.jsx("span",{className:"text-sm text-text-primary",children:"You have an unsaved comment. Save it before submitting?"}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:V,className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 transition-colors cursor-pointer",children:"Save & Submit"}),d.jsx("button",{onClick:O,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Discard & Submit"}),d.jsx("button",{onClick:()=>m(null),className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("button",{onClick:()=>I("approved"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ya.approve}`,children:[d.jsx(Vl,{className:"w-4 h-4"}),"Approve"]}),d.jsxs("button",{onClick:()=>I("changes_requested"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ya.reject}`,children:[d.jsx(si,{className:"w-4 h-4"}),"Request Changes"]}),d.jsxs("button",{onClick:()=>I("approved_with_comments"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ya.comment}`,children:[d.jsx(Xl,{className:"w-4 h-4"}),"Approve with Comments"]}),l&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px h-6 bg-border"}),d.jsxs("button",{onClick:l,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ya.dismiss}`,children:[d.jsx(sb,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}function yA({onDismiss:n}){const{annotations:l,reviewId:r,metadata:s}=Xe(),{submitPrReview:o}=Rf(),[f,h]=C.useState(""),[p,m]=C.useState(new Set),[g,b]=C.useState(null),[v,S]=C.useState(null),[E,w]=C.useState(null),A=s==null?void 0:s.githubPr,k=l.filter(V=>V.author==="reviewer"&&!V.dismissed),z=!f.trim();async function L(V){if(!r)return;b(V),S(null);const O=await o(r,{event:V,summary:f.trim()||void 0,threadIds:k.filter(R=>p.has(R.id)).map(R=>R.id)});b(null),O.ok?w(O.url):S(O.error)}function j(V){m(O=>{const R=new Set(O);return R.has(V)?R.delete(V):R.add(V),R})}if(E)return d.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0 flex items-center gap-3",children:[d.jsx(Vl,{className:"w-4 h-4 text-success"}),d.jsx("span",{className:"text-sm text-success font-medium",children:"Review posted to GitHub"}),d.jsxs("a",{href:E,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-xs text-accent hover:underline",children:["View on GitHub",d.jsx(_f,{className:"w-3 h-3"})]})]});const q=g!==null,I=(V,O,R,Z,se)=>d.jsxs("button",{onClick:()=>L(V),disabled:q||se,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed ${R}`,children:[d.jsx(Z,{className:"w-4 h-4"}),g===V?"Posting…":O]});return d.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[d.jsxs("div",{className:"text-xs text-text-secondary mb-2",children:["Submit your review to GitHub",A?` · ${A.owner}/${A.repo}#${A.number}`:""]}),d.jsx("textarea",{value:f,onChange:V=>h(V.target.value),placeholder:"Summary — optional to approve, required to request changes or comment",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),k.length>0&&d.jsxs("fieldset",{className:"mb-3",children:[d.jsx("legend",{className:"text-xs text-text-secondary mb-1",children:"Post your comments as inline review comments (your opening message only — agent replies stay here)"}),d.jsx("div",{className:"flex flex-col gap-1 max-h-28 overflow-y-auto",children:k.map(V=>d.jsxs("label",{className:"flex items-center gap-2 text-xs text-text-primary cursor-pointer select-none",children:[d.jsx("input",{type:"checkbox",checked:p.has(V.id),onChange:()=>j(V.id),className:"rounded border-border accent-accent"}),d.jsxs("span",{className:"font-mono text-text-secondary",children:[V.file,":",V.line]}),d.jsx("span",{className:"truncate",children:V.body})]},V.id))})]}),v&&d.jsxs("div",{role:"alert",className:"flex items-start gap-2 mb-3 px-3 py-2 rounded-lg bg-danger/10 border border-danger/30 text-sm text-text-primary whitespace-pre-line",children:[d.jsx(Zl,{className:"w-4 h-4 mt-0.5 text-danger flex-shrink-0"}),v]}),d.jsxs("div",{className:"flex items-center gap-3",children:[I("APPROVE","Approve",ya.approve,Vl,!1),I("REQUEST_CHANGES","Request changes",ya.reject,si,z),I("COMMENT","Comment",ya.comment,Xl,z),n&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px h-6 bg-border"}),d.jsxs("button",{onClick:n,disabled:q,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 ${ya.dismiss}`,children:[d.jsx(sb,{className:"w-4 h-4"}),"Close without posting"]})]})]})]})}const bA=navigator.platform.toUpperCase().includes("MAC"),vA=bA?"⌘":"Ctrl",xA=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:["n"],action:"Next hunk"},{keys:["p"],action:"Previous hunk"},{keys:["c"],action:"Comment on hunk"},{keys:[`${vA} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function SA(){const{showHotkeyGuide:n,toggleHotkeyGuide:l}=Xe();return C.useEffect(()=>{if(!n)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),l())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[n,l]),n?d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:l,children:d.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),d.jsx("div",{className:"space-y-2",children:xA.map(r=>d.jsxs("div",{className:"flex items-center justify-between gap-4",children:[d.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),d.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>d.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&d.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),d.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},r.action))})]})}):null}const EA={navigation:"Navigation",review:"Review Workflow",commenting:"Commenting",general:"General"},wA=["navigation","review","commenting","general"],NA=[{id:"nav-files",text:"Navigate between files in the sidebar",shortcut:"j / k",category:"navigation"},{id:"nav-hunks",text:"Jump between changed hunks within a file",shortcut:"n / p",category:"navigation"},{id:"nav-select",text:"Click any file in the sidebar to view its diff",category:"navigation"},{id:"review-status",text:"Cycle a file's review status (unreviewed → reviewed → approved → needs changes)",shortcut:"s",category:"review"},{id:"review-split",text:"Toggle between unified and split (side-by-side) diff views from the toolbar",category:"review"},{id:"review-briefing",text:"Check the briefing bar at the top for a summary of changes, risk indicators, and file stats",category:"review"},{id:"comment-gutter",text:"Click a line's gutter (the + icon on hover) to add an inline comment",category:"commenting"},{id:"comment-hunk",text:"Quickly comment on the focused hunk",shortcut:"c",category:"commenting"},{id:"comment-save",text:"Save a comment from the inline form",shortcut:"Cmd/Ctrl + Enter",category:"commenting"},{id:"general-hotkeys",text:"Open the full keyboard shortcuts reference anytime",shortcut:"?",category:"general"},{id:"general-theme",text:"Toggle between dark and light mode from the toolbar",category:"general"}],Uy="diffprism-tips-seen";function AA(){const{showWorkflowTips:n,toggleWorkflowTips:l}=Xe();if(C.useEffect(()=>{localStorage.getItem(Uy)||(localStorage.setItem(Uy,"1"),l())},[]),C.useEffect(()=>{if(!n)return;function s(o){o.key==="Escape"&&(o.preventDefault(),o.stopPropagation(),l())}return document.addEventListener("keydown",s,!0),()=>document.removeEventListener("keydown",s,!0)},[n,l]),!n)return null;const r=new Map;for(const s of NA)r.has(s.category)||r.set(s.category,[]),r.get(s.category).push(s);return d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:l,children:d.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-md w-full mx-4 max-h-[80vh] overflow-y-auto",onClick:s=>s.stopPropagation(),children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Workflow Tips"}),d.jsx("div",{className:"space-y-4",children:wA.map(s=>{const o=r.get(s);return!o||o.length===0?null:d.jsxs("div",{children:[d.jsx("h3",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wider mb-2",children:EA[s]}),d.jsx("div",{className:"space-y-1.5",children:o.map(f=>d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsx("span",{className:"text-text-secondary text-sm leading-snug",children:f.text}),f.shortcut&&d.jsx("kbd",{className:"flex-shrink-0 px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary whitespace-nowrap",children:f.shortcut})]},f.id))})]},s)})}),d.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[d.jsx("span",{className:"text-text-secondary/60 text-xs",children:"Reopen anytime from the toolbar"}),d.jsx("button",{onClick:l,className:"px-3 py-1.5 text-sm font-medium rounded bg-accent text-white hover:bg-accent/90 transition-colors cursor-pointer",children:"Got it"})]})]})})}const TA="Your comments",CA={finding:Xa,suggestion:Of,question:kf,warning:Zl};function i0(n){const l=n.some(s=>(s.author??"agent")==="reviewer"),r=n.filter(s=>!s.dismissed).length;return`${l?"Annotations & comments":"Agent Annotations"} (${r})`}function kA({body:n}){const[l,r]=C.useState(!1),s=n.length>120||n.includes(`
|
|
374
|
+
`),o=C.useCallback(f=>{f.stopPropagation(),r(h=>!h)},[]);return s?l?d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-text-primary whitespace-pre-wrap",children:n}),d.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show less"})]}):d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-text-primary truncate",children:n}),d.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show more"})]}):d.jsx("p",{className:"text-xs text-text-primary",children:n})}function _A({annotations:n,onDismiss:l,onNavigate:r,agentReadAt:s,onHide:o}){const[f,h]=C.useState(!1),p=Ib(n,s),m=C.useMemo(()=>{const b=f?n:n.filter(S=>!S.dismissed),v=new Map;for(const S of b){const E=(S.author??"agent")==="reviewer"?TA:S.source.agent;v.has(E)||v.set(E,[]),v.get(E).push(S)}return v},[n,f]),g=n.some(b=>(b.author??"agent")==="reviewer");return n.length===0?null:d.jsxs("div",{className:"h-full overflow-hidden flex flex-col",children:[d.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[g?d.jsx(Xl,{className:"w-4 h-4 text-text-secondary"}):d.jsx(Tf,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide",children:i0(n)})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[n.some(b=>b.dismissed)&&d.jsxs("button",{onClick:()=>h(!f),className:"flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary cursor-pointer",children:[f?d.jsx(KS,{className:"w-3 h-3"}):d.jsx(jf,{className:"w-3 h-3"}),f?"Hide dismissed":"Show dismissed"]}),o&&d.jsx("button",{onClick:o,className:"text-text-secondary hover:text-text-primary cursor-pointer",title:"Hide threads",children:d.jsx(t2,{className:"w-3.5 h-3.5"})})]})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:Array.from(m.entries()).map(([b,v])=>d.jsxs("div",{className:"border-t border-border/50",children:[d.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-accent",children:b}),d.jsxs("span",{className:"text-xs text-text-secondary",children:["(",v.length,")"]})]}),v.map(S=>{var A;const E=CA[S.type]??Xa,w=Is[S.category]??Is.other;return d.jsxs("div",{className:`px-4 py-2 flex items-start gap-2 hover:bg-text-primary/5 cursor-pointer group ${S.dismissed?"opacity-40":""}`,onClick:()=>r(S),children:[d.jsx(E,{className:`w-3.5 h-3.5 mt-0.5 flex-shrink-0 ${w}`}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[d.jsxs("span",{className:"text-xs text-text-secondary font-mono truncate",children:[S.file,":",S.line]}),(S.author??"agent")==="agent"&&d.jsx("span",{className:`text-[10px] font-semibold uppercase ${w}`,children:S.category})]}),d.jsx(kA,{body:S.body}),Ff(S)?p(S)==="unheard"?d.jsx("p",{className:"text-[10px] text-warning mt-0.5",children:"No agent listening"}):d.jsx("p",{className:"text-[10px] text-text-secondary italic mt-0.5",children:"Waiting for an agent"}):(((A=S.replies)==null?void 0:A.length)??0)>0?d.jsxs("p",{className:"text-[10px] text-text-secondary mt-0.5",children:[S.replies.length," ",S.replies.length===1?"reply":"replies"]}):null]}),!S.dismissed&&d.jsx("button",{onClick:k=>{k.stopPropagation(),l(S.id)},className:"p-0.5 rounded hover:bg-text-primary/10 text-text-secondary opacity-0 group-hover:opacity-100 cursor-pointer flex-shrink-0",title:"Dismiss",children:d.jsx(si,{className:"w-3 h-3"})})]},S.id)})]},b))})]})}function jA(n){return parseFloat(String(n))>0}function df(n,l,r=!0){const s=Xe(p=>p.panes[n]),o=Xe(p=>p.setPane),f=C.useRef(null),h=s.collapsed||!r;return C.useLayoutEffect(()=>{const p=f.current;!p||p.collapsed[l]===h||(h?p.collapse(l):p.expand(l))},[h,l]),{defaultSize:s.size,collapsed:s.collapsed,setCollapsed:p=>o(n,{collapsed:p}),splitterProps:{splitterRef:f,onResizeEnd:(p,m)=>{const g=m[l];r&&jA(g)&&o(n,{size:g})},onCollapseChange:(p,m)=>{p===l&&r&&o(n,{collapsed:m})}}}}function s0({onSubmit:n,onDismiss:l,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const{annotations:f,dismissAnnotation:h,selectFile:p,focusAnnotation:m,diffSet:g,metadata:b}=Xe(),v=Xe(L=>{var j;return(j=L.sessions.find(q=>q.id===L.reviewId))==null?void 0:j.agentReadAt}),S=!!(b!=null&&b.githubPr),E=df("review-sidebar",0),w=f.length>0,A=df("review-threads",1,w),k=parseFloat(String(A.defaultSize)),z=L=>{if(!g)return;if(g.files.find(I=>Vt(I)===L)){p(L);return}const q=g.files.find(I=>I.path===L);q&&p(Vt(q))};return d.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[d.jsx(S2,{}),d.jsx(E2,{}),d.jsxs(Ft,{className:"flex-1 min-h-0",withHandle:!1,lineSize:1,classNames:{handle:"bg-border"},...E.splitterProps,children:[d.jsxs(Ft.Pane,{defaultSize:E.defaultSize,min:"200px",max:"600px",collapsible:!0,className:"flex flex-col overflow-hidden",children:[d.jsxs(Ft,{orientation:"vertical",className:"flex-1 min-h-0",withHandle:!1,lineSize:1,classNames:{handle:w?"bg-border":"hidden"},...A.splitterProps,children:[d.jsx(Ft.Pane,{defaultSize:100-k,min:20,className:"overflow-hidden",children:d.jsx(O2,{onSubmit:n})}),d.jsx(Ft.Pane,{defaultSize:k,min:10,collapsible:!0,className:"overflow-hidden",children:d.jsx(_A,{annotations:f,onDismiss:h,agentReadAt:v,onNavigate:L=>{z(L.file),L.dismissed||m(L.id)},onHide:()=>A.setCollapsed(!0)})})]}),w&&A.collapsed&&d.jsxs("button",{onClick:()=>A.setCollapsed(!1),className:"flex items-center gap-2 px-4 py-2 border-t border-border text-xs font-semibold text-text-secondary uppercase tracking-wide hover:text-text-primary cursor-pointer",title:"Show threads",children:[d.jsx(n2,{className:"w-3.5 h-3.5"}),i0(f)]})]}),d.jsx(Ft.Pane,{defaultSize:1,className:"flex overflow-hidden",children:d.jsx(pA,{})})]}),S?d.jsx(yA,{onDismiss:l}):d.jsx(gA,{onSubmit:n,onDismiss:l,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),d.jsx(SA,{}),d.jsx(AA,{})]})}function OA(n){const r=Date.now()-n,s=Math.floor(r/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function RA(n){if(n.startsWith("github:"))return n.slice(7);const l=n.split("/");return l[l.length-1]||n}const By={pending:"Pending",in_review:"In Review",changes_requested:"Changes Req.",approved:"Approved",approved_with_comments:"Approved",dismissed:"Dismissed",submitted:"Submitted"};function MA(n){const{status:l,decision:r}=n,s=l==="submitted"?r??"submitted":l,o=Wg[s]??Wg.submitted,f=By[s]??By.submitted;return d.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded ${o}`,children:f})}function DA({sessions:n,activeSessionId:l,onSelect:r,onClose:s,onOpenProject:o,onReviewPr:f,onHide:h}){return d.jsxs("div",{className:"flex flex-col h-full bg-surface",children:[d.jsxs("div",{className:"px-3 py-3 border-b border-border flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-text-primary text-xs font-semibold uppercase tracking-wider",children:"Sessions"}),d.jsxs("span",{className:"text-text-secondary text-[10px]",children:[n.length," session",n.length!==1?"s":""]})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[f&&d.jsx("button",{onClick:f,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-accent transition-colors",title:"Review GitHub PR",children:d.jsx(va,{className:"w-3.5 h-3.5"})}),o&&d.jsx("button",{onClick:o,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Open project",children:d.jsx(cb,{className:"w-3.5 h-3.5"})}),h&&d.jsx("button",{onClick:h,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Hide sessions",children:d.jsx(ob,{className:"w-3.5 h-3.5"})})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:n.length===0?d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-4 text-center",children:d.jsx("p",{className:"text-text-secondary text-xs",children:"No sessions yet. Reviews will appear here automatically."})}):d.jsx("div",{className:"py-1",children:n.map(p=>{const m=p.id===l,g=p.source==="manual",b=p.projectPath.startsWith("github:");return d.jsxs("div",{className:`group relative px-3 py-2.5 cursor-pointer border-l-2 transition-colors ${m?"bg-accent/10 border-l-accent":p.needsAttention?"bg-warning/5 border-l-warning hover:bg-warning/10":"border-l-transparent hover:bg-border/20"}`,onClick:()=>r(p.id),role:"button",tabIndex:0,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&r(p.id)},children:[d.jsx("button",{onClick:v=>{v.stopPropagation(),s(p.id)},className:"absolute top-1.5 right-1.5 p-0.5 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors opacity-0 group-hover:opacity-100",style:{opacity:m?1:void 0},title:"Dismiss session",children:d.jsx(si,{className:"w-3 h-3"})}),d.jsxs("div",{className:"flex items-start justify-between gap-1.5 mb-1 pr-7",children:[d.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[p.needsAttention&&d.jsx(Xa,{className:"w-3.5 h-3.5 text-warning flex-shrink-0 animate-pulse"}),p.hasNewChanges&&d.jsx(l2,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse","aria-label":"New changes",children:d.jsx("title",{children:"New changes since you last looked"})}),b?d.jsx(va,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}):g?d.jsx(Fa,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):null,d.jsx("span",{className:"text-text-primary text-xs font-medium truncate",children:p.title||RA(p.projectPath)})]}),d.jsx("div",{className:"flex-shrink-0",children:MA(p)})]}),p.reasoning&&d.jsx("p",{className:"text-text-secondary text-[11px] leading-tight mb-1 line-clamp-2",children:p.reasoning}),d.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary",children:[p.branch&&d.jsxs("span",{className:"flex items-center gap-0.5 truncate",children:[d.jsx(qn,{className:"w-2.5 h-2.5"}),p.branch]}),d.jsxs("span",{className:"flex items-center gap-0.5 ml-auto flex-shrink-0",children:[d.jsx(FS,{className:"w-2.5 h-2.5"}),OA(p.createdAt)]})]}),d.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px]",children:[d.jsxs("span",{className:"text-text-secondary",children:[p.fileCount," file",p.fileCount!==1?"s":""]}),p.additions>0&&d.jsxs("span",{className:"text-success font-mono",children:["+",p.additions]}),p.deletions>0&&d.jsxs("span",{className:"text-danger font-mono",children:["-",p.deletions]})]})]},p.id)})})})]})}function zA({permission:n,enabled:l,onToggle:r}){const s=n==="denied",o=n==="granted"&&l,f=s?"Notifications blocked by browser":o?"Notifications on":"Enable notifications";return d.jsx("button",{onClick:r,disabled:s,className:`p-1.5 rounded transition-colors cursor-pointer ${s?"text-text-secondary/50 cursor-not-allowed":o?"text-accent hover:text-accent/80":"text-text-secondary hover:text-text-primary"}`,title:f,children:o?d.jsx(GS,{className:"w-4 h-4"}):d.jsx($S,{className:"w-4 h-4"})})}function LA(){const[n,l]=C.useState(null);return C.useEffect(()=>{const r=new URLSearchParams(window.location.search).get("httpPort");r&&fetch(`http://localhost:${r}/api/feedback?kind=feedback`).then(s=>s.ok?s.json():null).then(s=>{s!=null&&s.url&&l(s.url)}).catch(()=>{})},[]),n?d.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-[11px] text-text-secondary hover:text-text-primary transition-colors",title:"Opens a prefilled GitHub issue. Nothing is sent until you submit it.",children:[d.jsx(Xl,{className:"w-3 h-3"}),"Send feedback"]}):null}function UA(){return new URLSearchParams(window.location.search).get("httpPort")}function BA({onSuccess:n}){const[l,r]=C.useState(""),[s,o]=C.useState(!1),[f,h]=C.useState(null),p=C.useCallback(async()=>{const g=UA();if(!(!g||!l.trim())){o(!0),h(null);try{const b=await fetch(`http://localhost:${g}/api/pr/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:l.trim()})}),v=await b.json();b.ok?(r(""),n==null||n()):h(v.error??"Failed to open PR")}catch{h("Could not connect to server")}finally{o(!1)}}},[l,n]),m=C.useCallback(g=>{g.key==="Enter"&&!g.shiftKey&&l.trim()&&(g.preventDefault(),p())},[p,l]);return d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:"text",value:l,onChange:g=>{r(g.target.value),f&&h(null)},onKeyDown:m,placeholder:"https://github.com/owner/repo/pull/123",className:"w-full bg-background border border-border rounded-md px-3 py-2 pl-9 text-text-primary text-xs placeholder:text-text-secondary/50 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-colors",disabled:s,autoFocus:!0}),d.jsx(va,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-secondary"})]}),d.jsx("button",{onClick:p,disabled:s||!l.trim(),className:"w-full bg-accent/15 text-accent text-xs font-medium rounded-md px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:s?d.jsxs(d.Fragment,{children:[d.jsx(Qc,{className:"w-3.5 h-3.5 animate-spin"}),"Fetching PR..."]}):d.jsxs(d.Fragment,{children:[d.jsx(_f,{className:"w-3.5 h-3.5"}),"Review PR"]})}),f&&d.jsx("p",{className:"text-danger text-xs",children:f}),d.jsxs("p",{className:"text-text-secondary text-[10px]",children:["Also accepts ",d.jsx("code",{className:"text-accent/70",children:"owner/repo#123"})," format"]})]})}const HA=[{value:"working-copy",label:"Working Copy"},{value:"unstaged",label:"Unstaged"},{value:"staged",label:"Staged"}];function Xs(){return new URLSearchParams(window.location.search).get("httpPort")}function $A(n){const[l,r]=C.useState(null),[s,o]=C.useState(!1),f=C.useCallback(async h=>{const p=Xs();if(p){o(!0);try{const m=h?`?path=${encodeURIComponent(h)}`:"",g=await fetch(`http://localhost:${p}/api/fs/list${m}`);if(g.ok){const b=await g.json();r(b)}}catch{}finally{o(!1)}}},[]);return C.useEffect(()=>{f(n)},[f,n]),{listing:l,loadingDir:s,fetchDir:f}}function GA({onSuccess:n}){const[l,r]=C.useState(),[s,o]=C.useState(null),[f,h]=C.useState(!1),[p,m]=C.useState(null),{listing:g,loadingDir:b,fetchDir:v}=$A(l);C.useEffect(()=>{const E=Xs();E&&fetch(`http://localhost:${E}/api/status`).then(w=>w.json()).then(w=>{const A=w;if(A.cwd&&r(A.cwd),A.defaultDiffRef){const k=A.defaultDiffRef;o(z=>z??k)}}).catch(()=>{})},[]);const S=C.useCallback(async E=>{const w=Xs();if(w){h(!0),m(null);try{const A=await fetch(`http://localhost:${w}/api/projects/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s?{projectPath:E,diffRef:s}:{projectPath:E})}),k=await A.json();A.ok?n==null||n():m(k.error??"Failed to open project")}catch{m("Could not connect to server")}finally{h(!1)}}},[s,n]);return d.jsxs("div",{className:"space-y-3",children:[g&&d.jsxs("div",{className:"flex items-center gap-1 text-text-secondary text-[11px] font-mono truncate min-h-[20px]",children:[g.parentPath&&d.jsx("button",{onClick:()=>v(g.parentPath),className:"p-0.5 rounded hover:bg-border/50 hover:text-text-primary transition-colors flex-shrink-0",title:"Go up",children:d.jsx(Cf,{className:"w-3 h-3"})}),d.jsx("span",{className:"truncate",children:g.path}),g.isGitRepo&&d.jsx(qn,{className:"w-3 h-3 text-success flex-shrink-0 ml-1"})]}),(g==null?void 0:g.isGitRepo)&&d.jsxs("button",{onClick:()=>S(g.path),disabled:f,className:"w-full bg-accent/15 text-accent text-xs font-medium rounded px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:[d.jsx(Fa,{className:"w-3.5 h-3.5"}),f?"Opening...":`Open ${g.path.split("/").pop()}`]}),d.jsx("div",{className:"border border-border rounded max-h-[280px] overflow-y-auto",children:b?d.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"Loading..."}):(g==null?void 0:g.dirs.length)===0?d.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"No subdirectories"}):g==null?void 0:g.dirs.map(E=>d.jsxs("button",{onClick:()=>{m(null),E.isGitRepo,v(E.path)},onDoubleClick:()=>{E.isGitRepo&&S(E.path)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-border/30 transition-colors group",children:[d.jsx(PS,{className:`w-3.5 h-3.5 flex-shrink-0 ${E.isGitRepo?"text-accent":"text-text-secondary"}`}),d.jsx("span",{className:"text-text-primary text-xs truncate flex-1",children:E.name}),E.isGitRepo&&d.jsx(qn,{className:"w-3 h-3 text-success flex-shrink-0"})]},E.path))}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-text-secondary text-xs mb-1",children:"Diff scope"}),d.jsx("select",{value:s??"",disabled:s===null,onChange:E=>o(E.target.value),className:"w-full bg-background border border-border rounded px-3 py-1.5 text-text-primary text-xs focus:outline-none focus:border-accent",children:HA.map(E=>d.jsx("option",{value:E.value,children:E.label},E.value))})]}),p&&d.jsx("p",{className:"text-danger text-xs",children:p})]})}function YA({sessions:n,activeSessionId:l,hasDiffLoaded:r,onSelectSession:s,onCloseSession:o,onSubmit:f,onDismiss:h,notificationPermission:p,notificationsEnabled:m,onToggleNotifications:g}){const[b,v]=C.useState("none"),S=df("dashboard-sessions",0);return d.jsxs("div",{className:"h-screen flex bg-background",children:[S.collapsed&&d.jsx("div",{className:"w-9 flex-shrink-0 flex flex-col items-center py-3 bg-surface",children:d.jsx("button",{onClick:()=>S.setCollapsed(!1),className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Show sessions",children:d.jsx(ub,{className:"w-3.5 h-3.5"})})}),d.jsxs(Ft,{className:"flex-1 min-w-0",withHandle:!1,lineSize:1,classNames:{handle:"bg-border"},...S.splitterProps,children:[d.jsxs(Ft.Pane,{defaultSize:S.defaultSize,min:"200px",max:"480px",collapsible:!0,className:"flex flex-col overflow-hidden",children:[d.jsx(DA,{sessions:n,activeSessionId:l,onSelect:s,onClose:o,onOpenProject:()=>v("open-project"),onReviewPr:()=>v("review-pr"),onHide:()=>S.setCollapsed(!0)}),d.jsxs("div",{className:"px-3 py-2 border-t border-border bg-surface space-y-1.5",children:[g&&p&&d.jsx(zA,{permission:p,enabled:m??!1,onToggle:g}),d.jsx(LA,{})]})]}),d.jsx(Ft.Pane,{defaultSize:1,className:"min-w-0 overflow-hidden",children:r?d.jsx(s0,{onSubmit:f,onDismiss:h,isWatchMode:!0,watchSubmitted:!1,hasUnreviewedChanges:!0}):b==="open-project"?d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:d.jsxs("div",{className:"max-w-sm w-full",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[d.jsx(Fa,{className:"w-5 h-5 text-accent"}),d.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Open Project"})]}),d.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:d.jsx(GA,{onSuccess:()=>v("none")})}),d.jsx("button",{onClick:()=>v("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):b==="review-pr"?d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:d.jsxs("div",{className:"max-w-sm w-full",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[d.jsx(va,{className:"w-5 h-5 text-accent"}),d.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Review PR"})]}),d.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:d.jsx(BA,{onSuccess:()=>v("none")})}),d.jsx("button",{onClick:()=>v("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):d.jsx(qA,{hasAnySessions:n.length>0,onOpenProject:()=>v("open-project"),onReviewPr:()=>v("review-pr")})})]})]})}function qA({hasAnySessions:n,onOpenProject:l,onReviewPr:r}){return n?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-8",children:[d.jsx("div",{className:"w-14 h-14 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:d.jsx(Ql,{className:"w-7 h-7 text-text-secondary"})}),d.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"Select a session"}),d.jsx("p",{className:"text-text-secondary text-sm max-w-sm mb-4",children:"Click a session in the sidebar to view its diff, annotations, and submit your review."}),d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-accent text-xs font-medium hover:text-accent/80 transition-colors",children:[d.jsx(va,{className:"w-3.5 h-3.5"}),"Review PR"]}),d.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-text-secondary text-xs font-medium hover:text-text-primary transition-colors",children:[d.jsx(Fa,{className:"w-3.5 h-3.5"}),"Open Project"]})]})]}):d.jsx(IA,{onOpenProject:l,onReviewPr:r})}function IA({onOpenProject:n,onReviewPr:l}){const[r,s]=C.useState(null);C.useEffect(()=>{const f=Xs();f&&fetch(`http://localhost:${f}/api/status`).then(h=>h.json()).then(h=>{s(h)}).catch(()=>{})},[]);const o=f=>{if(f<60)return`${Math.floor(f)}s`;if(f<3600)return`${Math.floor(f/60)}m ${Math.floor(f%60)}s`;const h=Math.floor(f/3600),p=Math.floor(f%3600/60);return`${h}h ${p}m`};return d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:d.jsxs("div",{className:"max-w-md w-full",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-text-primary text-2xl font-bold mb-1",children:"DiffPrism"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Code review for AI-generated changes"})]}),d.jsxs("div",{className:"flex gap-3 mb-4",children:[d.jsxs("button",{onClick:l,className:"flex-1 flex items-center justify-center gap-2 bg-accent/15 text-accent text-sm font-medium rounded-lg px-4 py-3 hover:bg-accent/25 transition-colors",children:[d.jsx(va,{className:"w-4 h-4"}),"Review PR"]}),d.jsxs("button",{onClick:n,className:"flex-1 flex items-center justify-center gap-2 bg-surface border border-border text-text-primary text-sm font-medium rounded-lg px-4 py-3 hover:bg-border/30 transition-colors",children:[d.jsx(Fa,{className:"w-4 h-4"}),"Open Project"]})]}),d.jsxs("div",{className:"bg-surface border border-border rounded-lg p-6",children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Getting Started"}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(u2,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From the terminal"})]}),d.jsxs("div",{className:"space-y-1.5 pl-6",children:[d.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review"}),d.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review --staged"})]})]}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(Ql,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From Claude Code"})]}),d.jsxs("p",{className:"text-text-secondary text-xs pl-6",children:["Type ",d.jsx("code",{className:"text-accent",children:"/review"})," or use the"," ",d.jsx("code",{className:"text-accent",children:"open_review"})," MCP tool"]})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(s2,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"First time?"})]}),d.jsxs("div",{className:"pl-6",children:[d.jsx("code",{className:"block text-accent text-xs mb-1",children:"$ diffprism setup"}),d.jsx("p",{className:"text-text-secondary text-xs",children:"Configures Claude Code integration in one command"})]})]})]}),r&&d.jsxs("p",{className:"text-text-secondary text-xs text-center mt-4",children:["Server running · PID ",r.pid," · up ",o(r.uptime)]})]})})}function FA(){const{permission:n,enabled:l,toggle:r,notifyNewSession:s,notifySessionUpdated:o,notifyDiffUpdated:f,notifyAnnotationAdded:h}=DS({onSessionSelect:W}),{sendResult:p,selectSession:m,closeSession:g,connectionStatus:b}=RS({onSessionAdded:s,onSessionUpdated:o,onDiffUpdated:f,onAnnotationAdded:h}),{diffSet:v,metadata:S,theme:E,isWatchMode:w,watchSubmitted:A,hasUnreviewedChanges:k,setWatchSubmitted:z,isServerMode:L,sessions:j,activeSessionId:q,selectSession:I,removeSession:V,clearReview:O}=Xe(),[R,Z]=C.useState(!1),[se,P]=C.useState(3);zS(),C.useEffect(()=>{const U=document.documentElement;E==="dark"?U.classList.add("dark"):U.classList.remove("dark")},[E]);function ue(U){p(U),L?O():w?z(!0):Z(!0)}function le(){p({decision:"dismissed",comments:[]}),L&&q?(V(q),g(q)):w?z(!0):Z(!0)}function W(U){I(U),m(U)}function K(U){V(U),g(U)}const D=C.useCallback(()=>{window.close()},[]);return C.useEffect(()=>{if(!R||w||L)return;if(se<=0){D();return}const U=setTimeout(()=>{P(re=>re-1)},1e3);return()=>clearTimeout(U)},[R,se,D,w,L]),R?d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"w-16 h-16 rounded-full bg-success/15 border border-success/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-8 h-8 text-success",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),d.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),d.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",se,"s..."]})]})}):L?b==="disconnected"?d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):d.jsx(YA,{sessions:j,activeSessionId:q,hasDiffLoaded:!!v,onSelectSession:W,onCloseSession:K,onSubmit:ue,onDismiss:le,notificationPermission:n,notificationsEnabled:l,onToggleNotifications:r}):v?d.jsx(s0,{onSubmit:ue,onDismiss:le,isWatchMode:w||L,watchSubmitted:A,hasUnreviewedChanges:k}):d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsx("div",{className:"text-center",children:b==="disconnected"?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mb-4 flex justify-center",children:d.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:b==="connecting"?"Connecting...":"Waiting for review data..."}),d.jsx("p",{className:"text-text-secondary text-sm",children:(S==null?void 0:S.title)??"Loading review..."})]})})})}function VA(){const n=Xe(l=>l.theme);return d.jsx(Jy,{forceColorScheme:n,children:d.jsx(FA,{})})}U1.createRoot(document.getElementById("root")).render(d.jsx(VA,{}));
|