@fullstackhouse/cerber 0.36.1 → 0.38.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.
@@ -0,0 +1,248 @@
1
+ var NE=Object.defineProperty;var wE=(l,a,r)=>a in l?NE(l,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[a]=r;var xt=(l,a,r)=>wE(l,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Rb(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var vu={exports:{}},ks={};/**
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 Bm;function TE(){if(Bm)return ks;Bm=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,d){var p=null;if(d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:l,type:s,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=a,ks.jsx=r,ks.jsxs=r,ks}var Im;function xE(){return Im||(Im=1,vu.exports=TE()),vu.exports}var f=xE(),Eu={exports:{}},Fe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hm;function AE(){if(Hm)return Fe;Hm=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function w(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,x={};function A(_,z,B){this.props=_,this.context=z,this.refs=x,this.updater=B||T}A.prototype.isReactComponent={},A.prototype.setState=function(_,z){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,z,"setState")},A.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function I(){}I.prototype=A.prototype;function D(_,z,B){this.props=_,this.context=z,this.refs=x,this.updater=B||T}var W=D.prototype=new I;W.constructor=D,C(W,A.prototype),W.isPureReactComponent=!0;var q=Array.isArray;function Z(){}var ie={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function F(_,z,B){var se=B.ref;return{$$typeof:l,type:_,key:z,ref:se!==void 0?se:null,props:B}}function te(_,z){return F(_.type,z,_.props)}function X(_){return typeof _=="object"&&_!==null&&_.$$typeof===l}function me(_){var z={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(B){return z[B]})}var oe=/\/+/g;function Ee(_,z){return typeof _=="object"&&_!==null&&_.key!=null?me(""+_.key):z.toString(36)}function pe(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(Z,Z):(_.status="pending",_.then(function(z){_.status==="pending"&&(_.status="fulfilled",_.value=z)},function(z){_.status==="pending"&&(_.status="rejected",_.reason=z)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function k(_,z,B,se,P){var fe=typeof _;(fe==="undefined"||fe==="boolean")&&(_=null);var ge=!1;if(_===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(_.$$typeof){case l:case a:ge=!0;break;case b:return ge=_._init,k(ge(_._payload),z,B,se,P)}}if(ge)return P=P(_),ge=se===""?"."+Ee(_,0):se,q(P)?(B="",ge!=null&&(B=ge.replace(oe,"$&/")+"/"),k(P,z,B,"",function(Ye){return Ye})):P!=null&&(X(P)&&(P=te(P,B+(P.key==null||_&&_.key===P.key?"":(""+P.key).replace(oe,"$&/")+"/")+ge)),z.push(P)),1;ge=0;var Oe=se===""?".":se+":";if(q(_))for(var Ce=0;Ce<_.length;Ce++)se=_[Ce],fe=Oe+Ee(se,Ce),ge+=k(se,z,B,fe,P);else if(Ce=w(_),typeof Ce=="function")for(_=Ce.call(_),Ce=0;!(se=_.next()).done;)se=se.value,fe=Oe+Ee(se,Ce++),ge+=k(se,z,B,fe,P);else if(fe==="object"){if(typeof _.then=="function")return k(pe(_),z,B,se,P);throw z=String(_),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return ge}function J(_,z,B){if(_==null)return _;var se=[],P=0;return k(_,se,"","",function(fe){return z.call(B,fe,P++)}),se}function he(_){if(_._status===-1){var z=_._result;z=z(),z.then(function(B){(_._status===0||_._status===-1)&&(_._status=1,_._result=B)},function(B){(_._status===0||_._status===-1)&&(_._status=2,_._result=B)}),_._status===-1&&(_._status=0,_._result=z)}if(_._status===1)return _._result.default;throw _._result}var Se=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},De={map:J,forEach:function(_,z,B){J(_,function(){z.apply(this,arguments)},B)},count:function(_){var z=0;return J(_,function(){z++}),z},toArray:function(_){return J(_,function(z){return z})||[]},only:function(_){if(!X(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Fe.Activity=v,Fe.Children=De,Fe.Component=A,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=D,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(_){return ie.H.useMemoCache(_)}},Fe.cache=function(_){return function(){return _.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(_,z,B){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var se=C({},_.props),P=_.key;if(z!=null)for(fe in z.key!==void 0&&(P=""+z.key),z)!M.call(z,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&z.ref===void 0||(se[fe]=z[fe]);var fe=arguments.length-2;if(fe===1)se.children=B;else if(1<fe){for(var ge=Array(fe),Oe=0;Oe<fe;Oe++)ge[Oe]=arguments[Oe+2];se.children=ge}return F(_.type,P,se)},Fe.createContext=function(_){return _={$$typeof:p,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},Fe.createElement=function(_,z,B){var se,P={},fe=null;if(z!=null)for(se in z.key!==void 0&&(fe=""+z.key),z)M.call(z,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(P[se]=z[se]);var ge=arguments.length-2;if(ge===1)P.children=B;else if(1<ge){for(var Oe=Array(ge),Ce=0;Ce<ge;Ce++)Oe[Ce]=arguments[Ce+2];P.children=Oe}if(_&&_.defaultProps)for(se in ge=_.defaultProps,ge)P[se]===void 0&&(P[se]=ge[se]);return F(_,fe,P)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(_){return{$$typeof:y,render:_}},Fe.isValidElement=X,Fe.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:he}},Fe.memo=function(_,z){return{$$typeof:m,type:_,compare:z===void 0?null:z}},Fe.startTransition=function(_){var z=ie.T,B={};ie.T=B;try{var se=_(),P=ie.S;P!==null&&P(B,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(Z,Se)}catch(fe){Se(fe)}finally{z!==null&&B.types!==null&&(z.types=B.types),ie.T=z}},Fe.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},Fe.use=function(_){return ie.H.use(_)},Fe.useActionState=function(_,z,B){return ie.H.useActionState(_,z,B)},Fe.useCallback=function(_,z){return ie.H.useCallback(_,z)},Fe.useContext=function(_){return ie.H.useContext(_)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(_,z){return ie.H.useDeferredValue(_,z)},Fe.useEffect=function(_,z){return ie.H.useEffect(_,z)},Fe.useEffectEvent=function(_){return ie.H.useEffectEvent(_)},Fe.useId=function(){return ie.H.useId()},Fe.useImperativeHandle=function(_,z,B){return ie.H.useImperativeHandle(_,z,B)},Fe.useInsertionEffect=function(_,z){return ie.H.useInsertionEffect(_,z)},Fe.useLayoutEffect=function(_,z){return ie.H.useLayoutEffect(_,z)},Fe.useMemo=function(_,z){return ie.H.useMemo(_,z)},Fe.useOptimistic=function(_,z){return ie.H.useOptimistic(_,z)},Fe.useReducer=function(_,z,B){return ie.H.useReducer(_,z,B)},Fe.useRef=function(_){return ie.H.useRef(_)},Fe.useState=function(_){return ie.H.useState(_)},Fe.useSyncExternalStore=function(_,z,B){return ie.H.useSyncExternalStore(_,z,B)},Fe.useTransition=function(){return ie.H.useTransition()},Fe.version="19.2.8",Fe}var qm;function Gf(){return qm||(qm=1,Eu.exports=AE()),Eu.exports}var Y=Gf();const RE=Rb(Y);var _u={exports:{}},Cs={},Su={exports:{}},Nu={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Gm;function OE(){return Gm||(Gm=1,(function(l){function a(k,J){var he=k.length;k.push(J);e:for(;0<he;){var Se=he-1>>>1,De=k[Se];if(0<u(De,J))k[Se]=J,k[he]=De,he=Se;else break e}}function r(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var J=k[0],he=k.pop();if(he!==J){k[0]=he;e:for(var Se=0,De=k.length,_=De>>>1;Se<_;){var z=2*(Se+1)-1,B=k[z],se=z+1,P=k[se];if(0>u(B,he))se<De&&0>u(P,B)?(k[Se]=P,k[se]=he,Se=se):(k[Se]=B,k[z]=he,Se=z);else if(se<De&&0>u(P,he))k[Se]=P,k[se]=he,Se=se;else break e}}return J}function u(k,J){var he=k.sortIndex-J.sortIndex;return he!==0?he:k.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,S=3,w=!1,T=!1,C=!1,x=!1,A=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function W(k){for(var J=r(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=k)s(m),J.sortIndex=J.expirationTime,a(g,J);else break;J=r(m)}}function q(k){if(C=!1,W(k),!T)if(r(g)!==null)T=!0,Z||(Z=!0,me());else{var J=r(m);J!==null&&pe(q,J.startTime-k)}}var Z=!1,ie=-1,M=5,F=-1;function te(){return x?!0:!(l.unstable_now()-F<M)}function X(){if(x=!1,Z){var k=l.unstable_now();F=k;var J=!0;try{e:{T=!1,C&&(C=!1,I(ie),ie=-1),w=!0;var he=S;try{t:{for(W(k),v=r(g);v!==null&&!(v.expirationTime>k&&te());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,S=v.priorityLevel;var De=Se(v.expirationTime<=k);if(k=l.unstable_now(),typeof De=="function"){v.callback=De,W(k),J=!0;break t}v===r(g)&&s(g),W(k)}else s(g);v=r(g)}if(v!==null)J=!0;else{var _=r(m);_!==null&&pe(q,_.startTime-k),J=!1}}break e}finally{v=null,S=he,w=!1}J=void 0}}finally{J?me():Z=!1}}}var me;if(typeof D=="function")me=function(){D(X)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,Ee=oe.port2;oe.port1.onmessage=X,me=function(){Ee.postMessage(null)}}else me=function(){A(X,0)};function pe(k,J){ie=A(function(){k(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(k){switch(S){case 1:case 2:case 3:var J=3;break;default:J=S}var he=S;S=J;try{return k()}finally{S=he}},l.unstable_requestPaint=function(){x=!0},l.unstable_runWithPriority=function(k,J){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var he=S;S=k;try{return J()}finally{S=he}},l.unstable_scheduleCallback=function(k,J,he){var Se=l.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?Se+he:Se):he=Se,k){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=he+De,k={id:b++,callback:J,priorityLevel:k,startTime:he,expirationTime:De,sortIndex:-1},he>Se?(k.sortIndex=he,a(m,k),r(g)===null&&k===r(m)&&(C?(I(ie),ie=-1):C=!0,pe(q,he-Se))):(k.sortIndex=De,a(g,k),T||w||(T=!0,Z||(Z=!0,me()))),k},l.unstable_shouldYield=te,l.unstable_wrapCallback=function(k){var J=S;return function(){var he=S;S=J;try{return k.apply(this,arguments)}finally{S=he}}}})(Nu)),Nu}var $m;function kE(){return $m||($m=1,Su.exports=OE()),Su.exports}var wu={exports:{}},Ln={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ym;function CE(){if(Ym)return Ln;Ym=1;var l=Gf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" 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(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ln.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return d(g,m,null,b)},Ln.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.d.f()}},Ln.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Ln.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Ln.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:w}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:S,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ln.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Ln.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ln.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Ln.requestFormReset=function(g){s.d.r(g)},Ln.unstable_batchedUpdates=function(g,m){return g(m)},Ln.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Ln.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ln.version="19.2.8",Ln}var Fm;function Ob(){if(Fm)return wu.exports;Fm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),wu.exports=CE(),wu.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 Pm;function ME(){if(Pm)return Cs;Pm=1;var l=kE(),a=Gf(),r=Ob();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 y(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 g(e){if(d(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?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"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),D=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function Ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case x:return"StrictMode";case q:return"Suspense";case Z:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case D:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}var pe=Array.isArray,k=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Se=[],De=-1;function _(e){return{current:e}}function z(e){0>De||(e.current=Se[De],Se[De]=null,De--)}function B(e,t){De++,Se[De]=e.current,e.current=t}var se=_(null),P=_(null),fe=_(null),ge=_(null);function Oe(e,t){switch(B(fe,t),B(P,e),B(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(se),B(se,e)}function Ce(){z(se),z(P),z(fe)}function Ye(e){e.memoizedState!==null&&B(ge,e);var t=se.current,n=om(t,e.type);t!==n&&(B(P,e),B(se,n))}function qe(e){P.current===e&&(z(se),z(P)),ge.current===e&&(z(ge),xs._currentValue=he)}var Me,Ct;function Pe(e){if(Me===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||"",Ct=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Me+e+Ct}var In=!1;function Je(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(V){var K=V}Reflect.construct(e,[],re)}else{try{re.call()}catch(V){K=V}e.call(re.prototype)}}else{try{throw Error()}catch(V){K=V}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(V){if(V&&K&&typeof V.stack=="string")return[V.stack,K.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var O=h.split(`
44
+ `),$=E.split(`
45
+ `);for(o=i=0;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;for(;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;if(i===O.length||o===$.length)for(i=O.length-1,o=$.length-1;1<=i&&0<=o&&O[i]!==$[o];)o--;for(;1<=i&&0<=o;i--,o--)if(O[i]!==$[o]){if(i!==1||o!==1)do if(i--,o--,0>o||O[i]!==$[o]){var ae=`
46
+ `+O[i].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=i&&0<=o);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function St(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Pe("Activity");default:return""}}function On(e){try{var t="",n=null;do t+=St(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Mt=Object.prototype.hasOwnProperty,It=l.unstable_scheduleCallback,ct=l.unstable_cancelCallback,Hn=l.unstable_shouldYield,Zn=l.unstable_requestPaint,$e=l.unstable_now,Jt=l.unstable_getCurrentPriorityLevel,vt=l.unstable_ImmediatePriority,yn=l.unstable_UserBlockingPriority,vn=l.unstable_NormalPriority,kn=l.unstable_LowPriority,En=l.unstable_IdlePriority,Xn=l.log,ra=l.unstable_setDisableYieldValue,Cn=null,Ut=null;function qt(e){if(typeof Xn=="function"&&ra(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(Cn,e)}catch{}}var Dt=Math.clz32?Math.clz32:Mn,ya=Math.log,_n=Math.LN2;function Mn(e){return e>>>=0,e===0?32:31-(ya(e)/_n|0)|0}var Ie=256,Gt=262144,dn=4194304;function Kt(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 R(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~c,i!==0?o=Kt(i):(h&=E,h!==0?o=Kt(h):n||(n=E&~e,n!==0&&(o=Kt(n))))):(E=i&~c,E!==0?o=Kt(E):h!==0?o=Kt(h):n||(n=i&~e,n!==0&&(o=Kt(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ye(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 ze(){var e=dn;return dn<<=1,(dn&62914560)===0&&(dn=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function we(e,t,n,i,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,$=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Dt(n),re=1<<ae;E[ae]=0,O[ae]=-1;var K=$[ae];if(K!==null)for($[ae]=null,ae=0;ae<K.length;ae++){var V=K[ae];V!==null&&(V.lane&=-536870913)}n&=~re}i!==0&&_e(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Dt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Dt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vn(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function Qn(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var Zt=Math.random().toString(36).slice(2),Ot="__reactFiber$"+Zt,en="__reactProps$"+Zt,ut="__reactContainer$"+Zt,qn="__reactEvents$"+Zt,ai="__reactListeners$"+Zt,oa="__reactHandles$"+Zt,va="__reactResources$"+Zt,Wn="__reactMarker$"+Zt;function Ea(e){delete e[Ot],delete e[en],delete e[qn],delete e[ai],delete e[oa]}function tn(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[Ot])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function H(e){if(e=e[Ot]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function de(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function xe(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function be(e){e[Wn]=!0}var Qe=new Set,Ht={};function $t(e,t){ue(e,t),ue(e+"Capture",t)}function ue(e,t){for(Ht[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var Ne=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]*$"),Ge={},dt={};function kt(e){return Mt.call(dt,e)?!0:Mt.call(Ge,e)?!1:Ne.test(e)?dt[e]=!0:(Ge[e]=!0,!1)}function nn(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function pn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){if(!e._valueTracker){var t=jt(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=jt(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function ja(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 al=/[\n"\\]/g;function Dn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,n,i,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ri(e,h,ht(t)):n!=null?ri(e,h,ht(n)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ht(E):e.removeAttribute("name")}function Ba(e,t,n,i,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ii(e);return}n=n!=null?""+ht(n):"",t=t!=null?""+ht(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ii(e)}function ri(e,t,n){t==="number"&&ja(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function an(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ia(e,t,n){if(t!=null&&(t=""+ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ht(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(pe(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ht(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ii(e)}function Q(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N=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 U(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ee(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&U(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&U(e,c,t[c])}function Te(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 Re=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"]]),He=/^[\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 tt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ce(){}var ve=null;function Le(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function ca(e){var t=H(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Dn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[en]||null;if(!o)throw Error(s(90));si(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&li(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var i=e(t);return i}finally{if(Gl=!1,(Ve!==null||We!==null)&&(Mr(),Ve&&(t=Ve,e=We,We=Ve=null,ca(t),e)))for(t=0;t<e.length;t++)ca(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[en]||null;if(i===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){vo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{vo=!1}var oi=null,Eo=null,Ps=null;function od(){if(Ps)return Ps;var e,t=Eo,n=t.length,i,o="value"in oi?oi.value:oi.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return Ps=o.slice(e,1<i?1-i:void 0)}function Ks(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 Zs(){return!0}function cd(){return!1}function Gn(e){function t(n,i,o,c,h){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zs:cd,this.isPropagationStopped=cd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Gn(Ui),Fl=v({},Ui,{view:0,detail:0}),_y=Gn(Fl),_o,So,Pl,Vs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wo,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!==Pl&&(Pl&&e.type==="mousemove"?(_o=e.screenX-Pl.screenX,So=e.screenY-Pl.screenY):So=_o=0,Pl=e),_o)},movementY:function(e){return"movementY"in e?e.movementY:So}}),ud=Gn(Vs),Sy=v({},Vs,{dataTransfer:0}),Ny=Gn(Sy),wy=v({},Fl,{relatedTarget:0}),No=Gn(wy),Ty=v({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),xy=Gn(Ty),Ay=v({},Ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ry=Gn(Ay),Oy=v({},Ui,{data:0}),fd=Gn(Oy),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cy={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"},My={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=My[e])?!!t[e]:!1}function wo(){return Dy}var Ly=v({},Fl,{key:function(e){if(e.key){var t=ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wo,charCode:function(e){return e.type==="keypress"?Ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zy=Gn(Ly),Uy=v({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=Gn(Uy),jy=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wo}),By=Gn(jy),Iy=v({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hy=Gn(Iy),qy=v({},Vs,{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}),Gy=Gn(qy),$y=v({},Ui,{newState:0,oldState:0}),Yy=Gn($y),Fy=[9,13,27,32],To=Ha&&"CompositionEvent"in window,Kl=null;Ha&&"documentMode"in document&&(Kl=document.documentMode);var Py=Ha&&"TextEvent"in window&&!Kl,hd=Ha&&(!To||Kl&&8<Kl&&11>=Kl),pd=" ",md=!1;function gd(e,t){switch(e){case"keyup":return Fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Ky(e,t){switch(e){case"compositionend":return bd(t);case"keypress":return t.which!==32?null:(md=!0,pd);case"textInput":return e=t.data,e===pd&&md?null:e;default:return null}}function Zy(e,t){if(il)return e==="compositionend"||!To&&gd(e,t)?(e=od(),Ps=Eo=oi=null,il=!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 hd&&t.locale!=="ko"?null:t.data;default:return null}}var Xy={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 yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xy[e.type]:t==="textarea"}function vd(e,t,n,i){Ve?We?We.push(i):We=[i]:Ve=i,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Vy(e){tm(e,0)}function Qs(e){var t=de(e);if(li(t))return e}function Ed(e,t){if(e==="change")return t}var _d=!1;if(Ha){var xo;if(Ha){var Ao="oninput"in document;if(!Ao){var Sd=document.createElement("div");Sd.setAttribute("oninput","return;"),Ao=typeof Sd.oninput=="function"}xo=Ao}else xo=!1;_d=xo&&(!document.documentMode||9<document.documentMode)}function Nd(){Zl&&(Zl.detachEvent("onpropertychange",wd),Xl=Zl=null)}function wd(e){if(e.propertyName==="value"&&Qs(Xl)){var t=[];vd(t,Xl,e,Le(e)),Fs(Vy,t)}}function Qy(e,t,n){e==="focusin"?(Nd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",wd)):e==="focusout"&&Nd()}function Wy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Xl)}function Jy(e,t){if(e==="click")return Qs(t)}function ev(e,t){if(e==="input"||e==="change")return Qs(t)}function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:tv;function Vl(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Mt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xd(e,t){var n=Td(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Td(n)}}function Ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ja(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function Ro(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 nv=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Oo=null,Ql=null,ko=!1;function Od(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ko||ll==null||ll!==ja(i)||(i=ll,"selectionStart"in i&&Ro(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}),Ql&&Vl(Ql,i)||(Ql=i,i=Ir(Oo,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},Co={},kd={};Ha&&(kd=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Bi(e){if(Co[e])return Co[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kd)return Co[e]=t[n];return e}var Cd=Bi("animationend"),Md=Bi("animationiteration"),Dd=Bi("animationstart"),av=Bi("transitionrun"),iv=Bi("transitionstart"),lv=Bi("transitioncancel"),Ld=Bi("transitionend"),zd=new Map,Mo="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(" ");Mo.push("scrollEnd");function _a(e,t){zd.set(e,t),$t(t,[e])}var Ws=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)},ua=[],rl=0,Do=0;function Js(){for(var e=rl,t=Do=rl=0;t<e;){var n=ua[t];ua[t++]=null;var i=ua[t];ua[t++]=null;var o=ua[t];ua[t++]=null;var c=ua[t];if(ua[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&Ud(n,o,c)}}function er(e,t,n,i){ua[rl++]=e,ua[rl++]=t,ua[rl++]=n,ua[rl++]=i,Do|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Lo(e,t,n,i){return er(e,t,n,i),tr(e)}function Ii(e,t){return er(e,null,null,t),tr(e)}function Ud(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Dt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,$c=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function sv(e,t,n,i){this.tag=e,this.key=n,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 ea(e,t,n,i){return new sv(e,t,n,i)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=ea(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function jd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")zo(e)&&(h=1);else if(typeof e=="string")h=fE(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=ea(31,n,t,o),e.elementType=F,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case A:return e=ea(12,n,t,o|2),e.elementType=A,e.lanes=c,e;case q:return e=ea(13,n,t,o),e.elementType=q,e.lanes=c,e;case Z:return e=ea(19,n,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:h=10;break e;case I:h=9;break e;case W:h=11;break e;case ie:h=14;break e;case M:h=16,i=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ea(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=ea(7,e,i,t),e.lanes=n,e}function Uo(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function Bd(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function jo(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Id=new WeakMap;function fa(e,t){if(typeof e=="object"&&e!==null){var n=Id.get(e);return n!==void 0?n:(t={value:e,source:t,stack:On(t)},Id.set(e,t),t)}return{value:e,source:t,stack:On(t)}}var cl=[],ul=0,ar=null,Wl=0,da=[],ha=0,ci=null,Ra=1,Oa="";function Ga(e,t){cl[ul++]=Wl,cl[ul++]=ar,ar=e,Wl=t}function Hd(e,t,n){da[ha++]=Ra,da[ha++]=Oa,da[ha++]=ci,ci=e;var i=Ra;e=Oa;var o=32-Dt(i)-1;i&=~(1<<o),n+=1;var c=32-Dt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Dt(t)+o|n<<o|i,Oa=c+e}else Ra=1<<c|n<<o|i,Oa=e}function Bo(e){e.return!==null&&(Ga(e,1),Hd(e,1,0))}function Io(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Wl=cl[--ul],cl[ul]=null;for(;e===ci;)ci=da[--ha],da[ha]=null,Oa=da[--ha],da[ha]=null,Ra=da[--ha],da[ha]=null}function qd(e,t){da[ha++]=Ra,da[ha++]=Oa,da[ha++]=ci,Ra=t.id,Oa=t.overflow,ci=e}var Nn=null,Lt=null,ot=!1,ui=null,pa=!1,Ho=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(fa(t,e)),Ho}function Gd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Ot]=e,t[en]=i,n){case"dialog":at("cancel",t),at("close",t);break;case"iframe":case"object":case"embed":at("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)at(_s[n],t);break;case"source":at("error",t);break;case"img":case"image":case"link":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"input":at("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":at("invalid",t);break;case"textarea":at("invalid",t),Aa(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||lm(t.textContent,n)?(i.popover!=null&&(at("beforetoggle",t),at("toggle",t)),i.onScroll!=null&&at("scroll",t),i.onScrollEnd!=null&&at("scrollend",t),i.onClick!=null&&(t.onclick=ce),t=!0):t=!1,t||fi(e,!0)}function $d(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:pa=!1;return;case 27:case 3:pa=!0;return;default:Nn=Nn.return}}function fl(e){if(e!==Nn)return!1;if(!ot)return $d(e),ot=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||iu(e.type,e.memoizedProps)),n=!n),n&&Lt&&fi(e),$d(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Lt=pm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Lt=pm(e)}else t===27?(t=Lt,Ti(e.type)?(e=cu,cu=null,Lt=e):Lt=t):Lt=Nn?ga(e.stateNode.nextSibling):null;return!0}function qi(){Lt=Nn=null,ot=!1}function qo(){var e=ui;return e!==null&&(Pn===null?Pn=e:Pn.push.apply(Pn,e),ui=null),e}function Jl(e){ui===null?ui=[e]:ui.push(e)}var Go=_(null),Gi=null,$a=null;function di(e,t,n){B(Go,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=Go.current,z(Go)}function $o(e,t,n){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===n)break;e=e.return}}function Yo(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var O=0;O<t.length;O++)if(E.context===t[O]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),$o(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),$o(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var E=o.type;Jn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Yo(t,e,n,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wn(e){return Yd(Gi,e)}function lr(e,t){return Gi===null&&$i(e),Yd(e,t)}function Yd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(s(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var rv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ov=l.unstable_scheduleCallback,cv=l.unstable_NormalPriority,ln={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new rv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&ov(cv,function(){e.controller.abort()})}var ts=null,Po=0,hl=0,pl=null;function uv(e,t){if(ts===null){var n=ts=[];Po=0,hl=Xc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Po++,t.then(Fd,Fd),t}function Fd(){if(--Po===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Pd=k.S;k.S=function(e,t){Op=$e(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uv(e,t),Pd!==null&&Pd(e,t)};var Yi=_(null);function Ko(){var e=Yi.current;return e!==null?e:At.pooledCache}function sr(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function Kd(){var e=Ko();return e===null?null:{parent:ln._currentValue,pool:e}}var ml=Error(s(460)),Zo=Error(s(474)),rr=Error(s(542)),or={then:function(){}};function Zd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ce,ce),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e;default:if(typeof t.status=="string")t.then(ce,ce);else{if(e=At,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e}throw Pi=t,ml}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,ml):n}}var Pi=null;function Vd(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function Qd(e){if(e===ml||e===rr)throw Error(s(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Xd(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(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 Wd(e){function t(j,L){if(e){var G=j.deletions;G===null?(j.deletions=[L],j.flags|=16):G.push(L)}}function n(j,L){if(!e)return null;for(;L!==null;)t(j,L),L=L.sibling;return null}function i(j){for(var L=new Map;j!==null;)j.key!==null?L.set(j.key,j):L.set(j.index,j),j=j.sibling;return L}function o(j,L){return j=qa(j,L),j.index=0,j.sibling=null,j}function c(j,L,G){return j.index=G,e?(G=j.alternate,G!==null?(G=G.index,G<L?(j.flags|=67108866,L):G):(j.flags|=67108866,L)):(j.flags|=1048576,L)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function E(j,L,G,le){return L===null||L.tag!==6?(L=Uo(G,j.mode,le),L.return=j,L):(L=o(L,G),L.return=j,L)}function O(j,L,G,le){var Ue=G.type;return Ue===C?ae(j,L,G.props.children,le,G.key):L!==null&&(L.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===M&&Fi(Ue)===L.type)?(L=o(L,G.props),as(L,G),L.return=j,L):(L=nr(G.type,G.key,G.props,null,j.mode,le),as(L,G),L.return=j,L)}function $(j,L,G,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==G.containerInfo||L.stateNode.implementation!==G.implementation?(L=jo(G,j.mode,le),L.return=j,L):(L=o(L,G.children||[]),L.return=j,L)}function ae(j,L,G,le,Ue){return L===null||L.tag!==7?(L=Hi(G,j.mode,le,Ue),L.return=j,L):(L=o(L,G),L.return=j,L)}function re(j,L,G){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Uo(""+L,j.mode,G),L.return=j,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return G=nr(L.type,L.key,L.props,null,j.mode,G),as(G,L),G.return=j,G;case T:return L=jo(L,j.mode,G),L.return=j,L;case M:return L=Fi(L),re(j,L,G)}if(pe(L)||me(L))return L=Hi(L,j.mode,G,null),L.return=j,L;if(typeof L.then=="function")return re(j,cr(L),G);if(L.$$typeof===D)return re(j,lr(j,L),G);ur(j,L)}return null}function K(j,L,G,le){var Ue=L!==null?L.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ue!==null?null:E(j,L,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===Ue?O(j,L,G,le):null;case T:return G.key===Ue?$(j,L,G,le):null;case M:return G=Fi(G),K(j,L,G,le)}if(pe(G)||me(G))return Ue!==null?null:ae(j,L,G,le,null);if(typeof G.then=="function")return K(j,L,cr(G),le);if(G.$$typeof===D)return K(j,L,lr(j,G),le);ur(j,G)}return null}function V(j,L,G,le,Ue){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return j=j.get(G)||null,E(L,j,""+le,Ue);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case w:return j=j.get(le.key===null?G:le.key)||null,O(L,j,le,Ue);case T:return j=j.get(le.key===null?G:le.key)||null,$(L,j,le,Ue);case M:return le=Fi(le),V(j,L,G,le,Ue)}if(pe(le)||me(le))return j=j.get(G)||null,ae(L,j,le,Ue,null);if(typeof le.then=="function")return V(j,L,G,cr(le),Ue);if(le.$$typeof===D)return V(j,L,G,lr(L,le),Ue);ur(L,le)}return null}function Ae(j,L,G,le){for(var Ue=null,pt=null,ke=L,Xe=L=0,rt=null;ke!==null&&Xe<G.length;Xe++){ke.index>Xe?(rt=ke,ke=null):rt=ke.sibling;var mt=K(j,ke,G[Xe],le);if(mt===null){ke===null&&(ke=rt);break}e&&ke&&mt.alternate===null&&t(j,ke),L=c(mt,L,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt,ke=rt}if(Xe===G.length)return n(j,ke),ot&&Ga(j,Xe),Ue;if(ke===null){for(;Xe<G.length;Xe++)ke=re(j,G[Xe],le),ke!==null&&(L=c(ke,L,Xe),pt===null?Ue=ke:pt.sibling=ke,pt=ke);return ot&&Ga(j,Xe),Ue}for(ke=i(ke);Xe<G.length;Xe++)rt=V(ke,j,Xe,G[Xe],le),rt!==null&&(e&&rt.alternate!==null&&ke.delete(rt.key===null?Xe:rt.key),L=c(rt,L,Xe),pt===null?Ue=rt:pt.sibling=rt,pt=rt);return e&&ke.forEach(function(ki){return t(j,ki)}),ot&&Ga(j,Xe),Ue}function Be(j,L,G,le){if(G==null)throw Error(s(151));for(var Ue=null,pt=null,ke=L,Xe=L=0,rt=null,mt=G.next();ke!==null&&!mt.done;Xe++,mt=G.next()){ke.index>Xe?(rt=ke,ke=null):rt=ke.sibling;var ki=K(j,ke,mt.value,le);if(ki===null){ke===null&&(ke=rt);break}e&&ke&&ki.alternate===null&&t(j,ke),L=c(ki,L,Xe),pt===null?Ue=ki:pt.sibling=ki,pt=ki,ke=rt}if(mt.done)return n(j,ke),ot&&Ga(j,Xe),Ue;if(ke===null){for(;!mt.done;Xe++,mt=G.next())mt=re(j,mt.value,le),mt!==null&&(L=c(mt,L,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt);return ot&&Ga(j,Xe),Ue}for(ke=i(ke);!mt.done;Xe++,mt=G.next())mt=V(ke,j,Xe,mt.value,le),mt!==null&&(e&&mt.alternate!==null&&ke.delete(mt.key===null?Xe:mt.key),L=c(mt,L,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt);return e&&ke.forEach(function(SE){return t(j,SE)}),ot&&Ga(j,Xe),Ue}function Tt(j,L,G,le){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var Ue=G.key;L!==null;){if(L.key===Ue){if(Ue=G.type,Ue===C){if(L.tag===7){n(j,L.sibling),le=o(L,G.props.children),le.return=j,j=le;break e}}else if(L.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===M&&Fi(Ue)===L.type){n(j,L.sibling),le=o(L,G.props),as(le,G),le.return=j,j=le;break e}n(j,L);break}else t(j,L);L=L.sibling}G.type===C?(le=Hi(G.props.children,j.mode,le,G.key),le.return=j,j=le):(le=nr(G.type,G.key,G.props,null,j.mode,le),as(le,G),le.return=j,j=le)}return h(j);case T:e:{for(Ue=G.key;L!==null;){if(L.key===Ue)if(L.tag===4&&L.stateNode.containerInfo===G.containerInfo&&L.stateNode.implementation===G.implementation){n(j,L.sibling),le=o(L,G.children||[]),le.return=j,j=le;break e}else{n(j,L);break}else t(j,L);L=L.sibling}le=jo(G,j.mode,le),le.return=j,j=le}return h(j);case M:return G=Fi(G),Tt(j,L,G,le)}if(pe(G))return Ae(j,L,G,le);if(me(G)){if(Ue=me(G),typeof Ue!="function")throw Error(s(150));return G=Ue.call(G),Be(j,L,G,le)}if(typeof G.then=="function")return Tt(j,L,cr(G),le);if(G.$$typeof===D)return Tt(j,L,lr(j,G),le);ur(j,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,L!==null&&L.tag===6?(n(j,L.sibling),le=o(L,G),le.return=j,j=le):(n(j,L),le=Uo(G,j.mode,le),le.return=j,j=le),h(j)):n(j,L)}return function(j,L,G,le){try{ns=0;var Ue=Tt(j,L,G,le);return gl=null,Ue}catch(ke){if(ke===ml||ke===rr)throw ke;var pt=ea(29,ke,null,j.mode);return pt.lanes=le,pt.return=j,pt}finally{}}}var Ki=Wd(!0),Jd=Wd(!1),hi=!1;function Xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vo(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 pi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(bt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=tr(e),Ud(e,null,n),t}return er(e,i,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,je(e,n)}}function Qo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Wo=!1;function ls(){if(Wo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Wo=!1;var o=e.updateQueue;hi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,$=O.next;O.next=null,h===null?c=$:h.next=$,h=O;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,E=ae.lastBaseUpdate,E!==h&&(E===null?ae.firstBaseUpdate=$:E.next=$,ae.lastBaseUpdate=O))}if(c!==null){var re=o.baseState;h=0,ae=$=O=null,E=c;do{var K=E.lane&-536870913,V=K!==E.lane;if(V?(st&K)===K:(i&K)===K){K!==0&&K===hl&&(Wo=!0),ae!==null&&(ae=ae.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ae=e,Be=E;K=t;var Tt=n;switch(Be.tag){case 1:if(Ae=Be.payload,typeof Ae=="function"){re=Ae.call(Tt,re,K);break e}re=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Be.payload,K=typeof Ae=="function"?Ae.call(Tt,re,K):Ae,K==null)break e;re=v({},re,K);break e;case 2:hi=!0}}K=E.callback,K!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[K]:V.push(K))}else V={lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ae===null?($=ae=V,O=re):ae=ae.next=V,h|=K;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;V=E,E=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);ae===null&&(O=re),o.baseState=O,o.firstBaseUpdate=$,o.lastBaseUpdate=ae,c===null&&(o.shared.lanes=0),Ei|=h,e.lanes=h,e.memoizedState=re}}function eh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function th(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eh(n[e],t)}var bl=_(null),fr=_(0);function nh(e,t){e=Ja,B(fr,e),B(bl,t),Ja=e|t.baseLanes}function Jo(){B(fr,Ja),B(bl,bl.current)}function ec(){Ja=fr.current,z(bl),z(fr)}var ta=_(null),ma=null;function gi(e){var t=e.alternate;B(Vt,Vt.current&1),B(ta,e),ma===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(ma=e)}function tc(e){B(Vt,Vt.current),B(ta,e),ma===null&&(ma=e)}function ah(e){e.tag===22?(B(Vt,Vt.current),B(ta,e),ma===null&&(ma=e)):bi()}function bi(){B(Vt,Vt.current),B(ta,ta.current)}function na(e){z(ta),ma===e&&(ma=null),z(Vt)}var Vt=_(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ru(n)||ou(n)))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 Fa=0,Ke=null,Nt=null,sn=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,dv=0;function Yt(){throw Error(s(321))}function nc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ac(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Hh:yc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=lh(t,n,i,o)),ih(e),c}function ih(e){k.H=us;var t=Nt!==null&&Nt.next!==null;if(Fa=0,sn=Nt=Ke=null,hr=!1,rs=0,vl=null,t)throw Error(s(300));e===null||rn||(e=e.dependencies,e!==null&&ir(e)&&(rn=!0))}function lh(e,t,n,i){Ke=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(s(301));if(o+=1,sn=Nt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=qh,c=t(n,i)}while(yl);return c}function hv(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function ic(){var e=pr!==0;return pr=0,e}function lc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sc(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Fa=0,sn=Nt=Ke=null,yl=!1,rs=pr=0,vl=null}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sn===null?Ke.memoizedState=sn=e:sn=sn.next=e,sn}function Qt(){if(Nt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=sn===null?Ke.memoizedState:sn.next;if(t!==null)sn=t,Nt=e;else{if(e===null)throw Ke.alternate===null?Error(s(467)):Error(s(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},sn===null?Ke.memoizedState=sn=e:sn=sn.next=e}return sn}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Xd(vl,e,t),t=Ke,(sn===null?t.memoizedState:sn.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Hh:yc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===D)return wn(e)}throw Error(s(438,String(e)))}function rc(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ke.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),Ke.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=te;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Qt();return oc(t,Nt,e)}function oc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,O=null,$=t,ae=!1;do{var re=$.lane&-536870913;if(re!==$.lane?(st&re)===re:(Fa&re)===re){var K=$.revertLane;if(K===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),re===hl&&(ae=!0);else if((Fa&K)===K){$=$.next,K===hl&&(ae=!0);continue}else re={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(E=O=re,h=c):O=O.next=re,Ke.lanes|=K,Ei|=K;re=$.action,Zi&&n(c,re),c=$.hasEagerState?$.eagerState:n(c,re)}else K={lane:re,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(E=O=K,h=c):O=O.next=K,Ke.lanes|=re,Ei|=re;$=$.next}while($!==null&&$!==t);if(O===null?h=c:O.next=E,!Jn(c,e.memoizedState)&&(rn=!0,ae&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=O,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function cc(e){var t=Qt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Jn(c,t.memoizedState)||(rn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function sh(e,t,n){var i=Ke,o=Qt(),c=ot;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Jn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,rn=!0),o=o.queue,dc(ch.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||sn!==null&&sn.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},oh.bind(null,i,o,n,t),null),At===null)throw Error(s(349));c||(Fa&127)!==0||rh(i,t,n)}return n}function rh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=mr(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function oh(e,t,n,i){t.value=n,t.getSnapshot=i,uh(t)&&fh(e)}function ch(e,t,n){return n(function(){uh(t)&&fh(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function fh(e){var t=Ii(e,2);t!==null&&Kn(t,e,2)}function uc(e){var t=jn();if(typeof e=="function"){var n=e;if(e=n(),Zi){qt(!0);try{n()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function dh(e,t,n,i){return e.baseState=n,oc(e,Nt,typeof i=="function"?i:Pa)}function pv(e,t,n,i,o){if(Er(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};k.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,hh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function hh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=k.T,h={};k.T=h;try{var E=n(o,i),O=k.S;O!==null&&O(h,E),ph(e,t,E)}catch($){fc(e,t,$)}finally{c!==null&&h.types!==null&&(c.types=h.types),k.T=c}}else try{c=n(o,i),ph(e,t,c)}catch($){fc(e,t,$)}}function ph(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){mh(e,t,i)},function(i){return fc(e,t,i)}):mh(e,t,n)}function mh(e,t,n){t.status="fulfilled",t.value=n,gh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,hh(e,n)))}function fc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,gh(t),t=t.next;while(t!==i)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bh(e,t){return t}function yh(e,t){if(ot){var n=At.formState;if(n!==null){e:{var i=Ke;if(ot){if(Lt){t:{for(var o=Lt,c=pa;o.nodeType!==8;){if(!c){o=null;break t}if(o=ga(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Lt=ga(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=jn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},n.queue=i,n=jh.bind(null,Ke,i),i.dispatch=n,i=uc(!1),c=bc.bind(null,Ke,!1,i.queue),i=jn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=pv.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function vh(e){var t=Qt();return Eh(t,Nt,e)}function Eh(e,t,n){if(t=oc(e,t,bh)[0],e=br(Pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=os(t)}catch(h){throw h===ml?rr:h}else i=t;t=Qt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,El(9,{destroy:void 0},mv.bind(null,o,n),null)),[i,c,e]}function mv(e,t){e.action=t}function _h(e){var t=Qt(),n=Nt;if(n!==null)return Eh(t,n,e);Qt(),t=t.memoizedState,n=Qt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function El(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=mr(),Ke.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Sh(){return Qt().memoizedState}function yr(e,t,n,i){var o=jn();Ke.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,i===void 0?null:i)}function vr(e,t,n,i){var o=Qt();i=i===void 0?null:i;var c=o.memoizedState.inst;Nt!==null&&i!==null&&nc(i,Nt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ke.flags|=e,o.memoizedState=El(1|t,c,n,i))}function Nh(e,t){yr(8390656,8,e,t)}function dc(e,t){vr(2048,8,e,t)}function gv(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=mr(),Ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wh(e){var t=Qt().memoizedState;return gv({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Th(e,t){return vr(4,2,e,t)}function xh(e,t){return vr(4,4,e,t)}function Ah(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rh(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,Ah.bind(null,t,e),n)}function hc(){}function Oh(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&nc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function kh(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&nc(t,i[1]))return i[0];if(i=e(),Zi){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[i,t],i}function pc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Cp(),Ke.lanes|=e,Ei|=e,n)}function Ch(e,t,n,i){return Jn(n,t)?n:bl.current!==null?(e=pc(e,n,i),Jn(e,t)||(rn=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(st&261930)===0?(rn=!0,e.memoizedState=n):(e=Cp(),Ke.lanes|=e,Ei|=e,t)}function Mh(e,t,n,i,o){var c=J.p;J.p=c!==0&&8>c?c:8;var h=k.T,E={};k.T=E,bc(e,!1,t,n);try{var O=o(),$=k.S;if($!==null&&$(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ae=fv(O,i);cs(e,t,ae,la(e))}else cs(e,t,i,la(e))}catch(re){cs(e,t,{then:function(){},status:"rejected",reason:re},la())}finally{J.p=c,h!==null&&E.types!==null&&(h.types=E.types),k.T=h}}function bv(){}function mc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var o=Dh(e).queue;Mh(e,o,t,he,n===null?bv:function(){return Lh(e),n(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:he},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lh(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},la())}function gc(){return wn(xs)}function zh(){return Qt().memoizedState}function Uh(){return Qt().memoizedState}function yv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=pi(n);var i=mi(t,e,n);i!==null&&(Kn(i,t,n),is(i,t,n)),t={cache:Fo()},e.payload=t;return}t=t.return}}function vv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?Bh(t,n):(n=Lo(e,t,n,i),n!==null&&(Kn(n,e,i),Ih(n,t,i)))}function jh(e,t,n){var i=la();cs(e,t,n,i)}function cs(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Bh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Jn(E,h))return er(e,t,o,0),At===null&&Js(),!1}catch{}finally{}if(n=Lo(e,t,o,i),n!==null)return Kn(n,e,i),Ih(n,t,i),!0}return!1}function bc(e,t,n,i){if(i={lane:2,revertLane:Xc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(s(479))}else t=Lo(e,n,i,2),t!==null&&Kn(t,e,2)}function Er(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function Bh(e,t){yl=hr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ih(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,je(e,n)}}var us={readContext:wn,use:gr,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};us.useEffectEvent=Yt;var Hh={readContext:wn,use:gr,useCallback:function(e,t){return jn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:Nh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Ah.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=jn();t=t===void 0?null:t;var i=e();if(Zi){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=jn();if(n!==void 0){var o=n(t);if(Zi){qt(!0);try{n(t)}finally{qt(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=vv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=jn();return e={current:e},t.memoizedState=e},useState:function(e){e=uc(e);var t=e.queue,n=jh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hc,useDeferredValue:function(e,t){var n=jn();return pc(n,e,t)},useTransition:function(){var e=uc(!1);return e=Mh.bind(null,Ke,e.queue,!0,!1),jn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=jn();if(ot){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),At===null)throw Error(s(349));(st&127)!==0||rh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Nh(ch.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},oh.bind(null,i,c,n,t),null),n},useId:function(){var e=jn(),t=At.identifierPrefix;if(ot){var n=Oa,i=Ra;n=(i&~(1<<32-Dt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=dv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gc,useFormState:yh,useActionState:yh,useOptimistic:function(e){var t=jn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=bc.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:rc,useCacheRefresh:function(){return jn().memoizedState=yv.bind(null,Ke)},useEffectEvent:function(e){var t=jn(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},yc={readContext:wn,use:gr,useCallback:Oh,useContext:wn,useEffect:dc,useImperativeHandle:Rh,useInsertionEffect:Th,useLayoutEffect:xh,useMemo:kh,useReducer:br,useRef:Sh,useState:function(){return br(Pa)},useDebugValue:hc,useDeferredValue:function(e,t){var n=Qt();return Ch(n,Nt.memoizedState,e,t)},useTransition:function(){var e=br(Pa)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:sh,useId:zh,useHostTransitionStatus:gc,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var n=Qt();return dh(n,Nt,e,t)},useMemoCache:rc,useCacheRefresh:Uh};yc.useEffectEvent=wh;var qh={readContext:wn,use:gr,useCallback:Oh,useContext:wn,useEffect:dc,useImperativeHandle:Rh,useInsertionEffect:Th,useLayoutEffect:xh,useMemo:kh,useReducer:cc,useRef:Sh,useState:function(){return cc(Pa)},useDebugValue:hc,useDeferredValue:function(e,t){var n=Qt();return Nt===null?pc(n,e,t):Ch(n,Nt.memoizedState,e,t)},useTransition:function(){var e=cc(Pa)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:sh,useId:zh,useHostTransitionStatus:gc,useFormState:_h,useActionState:_h,useOptimistic:function(e,t){var n=Qt();return Nt!==null?dh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:rc,useCacheRefresh:Uh};qh.useEffectEvent=wh;function vc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=pi(i);o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Kn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=pi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Kn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=pi(n);i.tag=2,t!=null&&(i.callback=t),t=mi(e,i,n),t!==null&&(Kn(t,e,n),is(t,e,n))}};function Gh(e,t,n,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Vl(n,i)||!Vl(o,c):!0}function $h(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Yh(e){Ws(e)}function Fh(e){console.error(e)}function Ph(e){Ws(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Kh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _c(e,t,n){return n=pi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Zh(e){return e=pi(e),e.tag=3,e}function Xh(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Kh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Kh(t,n,i),typeof o!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function Ev(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return ma===null?Dr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Pc(e,i,o)),!1;case 22:return n.flags|=65536,i===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Pc(e,i,o)),!1}throw Error(s(435,n.tag))}return Pc(e,i,o),Dr(),!1}if(ot)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Ho&&(e=Error(s(422),{cause:i}),Jl(fa(e,n)))):(i!==Ho&&(t=Error(s(423),{cause:i}),Jl(fa(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=fa(i,n),o=_c(e.stateNode,i,o),Qo(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:i});if(c=fa(c,n),ys===null?ys=[c]:ys.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=fa(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=_c(n.stateNode,i,e),Qo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(_i===null||!_i.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Zh(o),Xh(o,e,n,i),Qo(n,o),!1}n=n.return}while(n!==null);return!1}var Sc=Error(s(461)),rn=!1;function Tn(e,t,n,i){t.child=e===null?Jd(t,null,n,i):Ki(t,e.child,n,i)}function Vh(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=ac(e,t,n,h,c,o),E=ic(),e!==null&&!rn?(lc(e,t,o),Ka(e,t,o)):(ot&&E&&Bo(t),t.flags|=1,Tn(e,t,i,o),t.child)}function Qh(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!zo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Wh(e,t,c,i,o)):(e=nr(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!kc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Vl,n(h,i)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function Wh(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Vl(c,i)&&e.ref===t.ref)if(rn=!1,t.pendingProps=i=c,kc(e,o))(e.flags&131072)!==0&&(rn=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Nc(e,t,n,i,o)}function Jh(e,t,n,i){var o=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|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return ep(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?nh(t,c):Jo(),ah(t);else return i=t.lanes=536870912,ep(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),nh(t,c),bi(),t.memoizedState=null):(e!==null&&sr(t,null),Jo(),bi());return Tn(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ep(e,t,n,i,o){var c=Ko();return c=c===null?null:{parent:ln._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Jo(),ah(t),e!==null&&dl(e,t,i,!0),t.childLanes=o,null}function Sr(e,t){return t=wr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tp(e,t,n){return Ki(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,na(t),t.memoizedState=null,e}function _v(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,fs(null,e);if(tc(t),(e=Lt)?(e=hm(e,pa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Bd(e),n.return=t,t.child=n,Nn=t,Lt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Sr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(tc(t),o)if(t.flags&256)t.flags&=-257,t=tp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(rn||dl(e,t,n,!1),o=(n&e.childLanes)!==0,rn||o){if(i=At,i!==null&&(h=Rt(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Kn(i,e,h),Sc;Dr(),t=tp(e,t,n)}else e=c.treeContext,Lt=ga(h.nextSibling),Nn=t,ot=!0,ui=null,pa=!1,e!==null&&qd(t,e),t=Sr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nc(e,t,n,i,o){return $i(t),n=ac(e,t,n,i,void 0,o),i=ic(),e!==null&&!rn?(lc(e,t,o),Ka(e,t,o)):(ot&&i&&Bo(t),t.flags|=1,Tn(e,t,n,o),t.child)}function np(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=lh(t,i,n,o),ih(e),i=ic(),e!==null&&!rn?(lc(e,t,c),Ka(e,t,c)):(ot&&i&&Bo(t),t.flags|=1,Tn(e,t,n,c),t.child)}function ap(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=wn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ec,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Xo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?wn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(vc(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Ec.enqueueReplaceState(c,c.state,null),ss(t,i,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Xi(n,E);c.props=O;var $=c.context,ae=n.contextType;h=ol,typeof ae=="object"&&ae!==null&&(h=wn(ae));var re=n.getDerivedStateFromProps;ae=typeof re=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||$!==h)&&$h(t,c,i,h),hi=!1;var K=t.memoizedState;c.state=K,ss(t,i,c,o),ls(),$=t.memoizedState,E||K!==$||hi?(typeof re=="function"&&(vc(t,n,re,i),$=t.memoizedState),(O=hi||Gh(t,n,O,i,K,$,h))?(ae||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=$),c.props=i,c.state=$,c.context=h,i=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Vo(e,t),h=t.memoizedProps,ae=Xi(n,h),c.props=ae,re=t.pendingProps,K=c.context,$=n.contextType,O=ol,typeof $=="object"&&$!==null&&(O=wn($)),E=n.getDerivedStateFromProps,($=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==re||K!==O)&&$h(t,c,i,O),hi=!1,K=t.memoizedState,c.state=K,ss(t,i,c,o),ls();var V=t.memoizedState;h!==re||K!==V||hi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(vc(t,n,E,i),V=t.memoizedState),(ae=hi||Gh(t,n,ae,i,K,V,O)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?($||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,V,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,V,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=O,i=ae):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Nr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Tn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ka(e,t,o),e}function ip(e,t,n,i){return qi(),t.flags|=256,Tn(e,t,n,i),t.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Kd()}}function xc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function lp(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Vt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?gi(t):bi(),(e=Lt)?(e=hm(e,pa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=Bd(e),n.return=t,t.child=n,Nn=t,Lt=null)):e=null,e===null)throw fi(t);return ou(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(bi(),o=t.mode,E=wr({mode:"hidden",children:E},o),i=Hi(i,o,n,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=Tc(n),i.childLanes=xc(e,h,n),t.memoizedState=wc,fs(null,i)):(gi(t),Ac(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(gi(t),t.flags&=-257,t=Rc(e,t,n)):t.memoizedState!==null?(bi(),t.child=e.child,t.flags|=128,t=null):(bi(),E=i.fallback,o=t.mode,i=wr({mode:"visible",children:i.children},o),E=Hi(E,o,n,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Ki(t,e.child,null,n),i=t.child,i.memoizedState=Tc(n),i.childLanes=xc(e,h,n),t.memoizedState=wc,t=fs(null,i));else if(gi(t),ou(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var $=h.dgst;h=$,i=Error(s(419)),i.stack="",i.digest=h,Jl({value:i,source:null,stack:null}),t=Rc(e,t,n)}else if(rn||dl(e,t,n,!1),h=(n&e.childLanes)!==0,rn||h){if(h=At,h!==null&&(i=Rt(h,n),i!==0&&i!==O.retryLane))throw O.retryLane=i,Ii(e,i),Kn(h,e,i),Sc;ru(E)||Dr(),t=Rc(e,t,n)}else ru(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Lt=ga(E.nextSibling),Nn=t,ot=!0,ui=null,pa=!1,e!==null&&qd(t,e),t=Ac(t,i.children),t.flags|=4096);return t}return o?(bi(),E=i.fallback,o=t.mode,O=e.child,$=O.sibling,i=qa(O,{mode:"hidden",children:i.children}),i.subtreeFlags=O.subtreeFlags&65011712,$!==null?E=qa($,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,fs(null,i),i=t.child,E=e.child.memoizedState,E===null?E=Tc(n):(o=E.cachePool,o!==null?(O=ln._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=Kd(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=xc(e,h,n),t.memoizedState=wc,fs(e.child,i)):(gi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Ac(e,t){return t=wr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function Rc(e,t,n){return Ki(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),$o(e.return,t,n)}function Oc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function rp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Vt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Vt,h),Tn(e,t,i,n),i=ot?Wl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sp(e,n,t);else if(e.tag===19)sp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Oc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Oc(t,!0,n,null,c,i);break;case"together":Oc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&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,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Sv(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),di(t,ln,e.memoizedState.cache),qi();break;case 27:case 5:Ye(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:di(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(gi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?lp(e,t,n):(gi(t),e=Ka(e,t,n),e!==null?e.sibling:null);gi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(dl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return rp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Vt,Vt.current),i)break;return null;case 22:return t.lanes=0,Jh(e,t,n,t.pendingProps);case 24:di(t,ln,e.memoizedState.cache)}return Ka(e,t,n)}function op(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rn=!0;else{if(!kc(e,n)&&(t.flags&128)===0)return rn=!1,Sv(e,t,n);rn=(e.flags&131072)!==0}else rn=!1,ot&&(t.flags&1048576)!==0&&Hd(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")zo(e)?(i=Xi(e,i),t.tag=1,t=ap(null,t,e,i,n)):(t.tag=0,t=Nc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===W){t.tag=11,t=Vh(null,t,e,i,n);break e}else if(o===ie){t.tag=14,t=Qh(null,t,e,i,n);break e}}throw t=Ee(e)||e,Error(s(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),ap(e,t,i,o,n);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Vo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,di(t,ln,i),i!==c.cache&&Yo(t,[ln],n,!0),ls(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ip(e,t,i,n);break e}else if(i!==o){o=fa(Error(s(424)),t),Jl(o),t=ip(e,t,i,n);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(Lt=ga(e.firstChild),Nn=t,ot=!0,ui=null,pa=!0,n=Jd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Ka(e,t,n);break e}Tn(e,t,i,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=vm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,i=Hr(fe.current).createElement(n),i[Ot]=t,i[en]=e,xn(i,n,e),be(i),t.stateNode=i):t.memoizedState=vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&ot&&(i=t.stateNode=gm(t.type,t.pendingProps,fe.current),Nn=t,pa=!0,o=Lt,Ti(t.type)?(cu=o,Lt=ga(i.firstChild)):Lt=o),Tn(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=i=Lt)&&(i=Wv(i,t.type,t.pendingProps,pa),i!==null?(t.stateNode=i,Nn=t,Lt=ga(i.firstChild),pa=!1,o=!0):o=!1),o||fi(t)),Ye(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,iu(o,c)?i=null:h!==null&&iu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ac(e,t,hv,null,null,n),xs._currentValue=o),Nr(e,t),Tn(e,t,i,n),t.child;case 6:return e===null&&ot&&((e=n=Lt)&&(n=Jv(n,t.pendingProps,pa),n!==null?(t.stateNode=n,Nn=t,Lt=null,e=!0):e=!1),e||fi(t)),null;case 13:return lp(e,t,n);case 4:return Oe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ki(t,null,i,n):Tn(e,t,i,n),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,di(t,t.type,i.value),Tn(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=wn(o),i=i(o),t.flags|=1,Tn(e,t,i,n),t.child;case 14:return Qh(e,t,t.type,t.pendingProps,n);case 15:return Wh(e,t,t.type,t.pendingProps,n);case 19:return rp(e,t,n);case 31:return _v(e,t,n);case 22:return Jh(e,t,n,t.pendingProps);case 24:return $i(t),i=wn(ln),e===null?(o=Ko(),o===null&&(o=At,c=Fo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Xo(t),di(t,ln,o)):((e.lanes&n)!==0&&(Vo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),di(t,ln,i)):(i=c.cache,di(t,ln,i),i!==o.cache&&Yo(t,[ln],n,!0))),Tn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Za(e){e.flags|=4}function Cc(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zp())e.flags|=8192;else throw Pi=or,Zo}else e.flags&=-16777217}function cp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wm(t))if(zp())e.flags|=8192;else throw Pi=or,Zo}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,wl|=t)}function ds(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function zt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Nv(e,t,n){var i=t.pendingProps;switch(Io(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(t),null;case 1:return zt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(ln),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qo())),zt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(zt(t),cp(t,c)):(zt(t),Cc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),zt(t),cp(t,c)):(zt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),zt(t),Cc(t,o,e,i,n)),null;case 27:if(qe(t),n=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return zt(t),null}e=se.current,fl(t)?Gd(t):(e=gm(o,i,n),t.stateNode=e,Za(t))}return zt(t),null;case 5:if(qe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return zt(t),null}if(c=se.current,fl(t))Gd(t);else{var h=Hr(fe.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Ot]=t,c[en]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(xn(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Za(t)}}return zt(t),Cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Nn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Ot]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||lm(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[Ot]=t,t.stateNode=e}return zt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=fl(t),n!==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[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),e=!1}else n=qo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(na(t),t):(na(t),null);if((t.flags&128)!==0)throw Error(s(558))}return zt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),o=!1}else o=qo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(na(t),t):(na(t),null)}return na(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tr(t,t.updateQueue),zt(t),null);case 4:return Ce(),e===null&&Jc(t.stateNode.containerInfo),zt(t),null;case 10:return Ya(t.type),zt(t),null;case 19:if(z(Vt),i=t.memoizedState,i===null)return zt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ds(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(i,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)jd(n,e),n=n.sibling;return B(Vt,Vt.current&1|2),ot&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&$e()>kr&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304)}else{if(!o)if(e=dr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ot)return zt(t),null}else 2*$e()-i.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(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=$e(),e.sibling=null,n=Vt.current,B(Vt,o?n&1|2:n&1),ot&&Ga(t,i.treeForkCount),e):(zt(t),null);case 22:case 23:return na(t),ec(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(t),n=t.updateQueue,n!==null&&Tr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(ln),zt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function wv(e,t){switch(Io(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(ln),Ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qe(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Vt),null;case 4:return Ce(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),ec(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(ln),null;case 25:return null;default:return null}}function up(e,t){switch(Io(t),t.tag){case 3:Ya(ln),Ce();break;case 26:case 27:case 5:qe(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:z(Vt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),ec(),e!==null&&z(Yi);break;case 24:Ya(ln)}}function hs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function yi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var O=n,$=E;try{$()}catch(ae){_t(o,O,ae)}}}i=i.next}while(i!==c)}}catch(ae){_t(t,t.return,ae)}}function fp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{th(t,n)}catch(i){_t(e,e.return,i)}}}function dp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ps(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function ka(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function hp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Mc(e,t,n){try{var i=e.stateNode;Pv(i,e.type,n,t),i[en]=t}catch(o){_t(e,e.return,o)}}function pp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pp(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&&Ti(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 Lc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ce));else if(i!==4&&(i===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}function xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Ti(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function mp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xn(t,i,n),t[Ot]=e,t[en]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,on=!1,zc=!1,gp=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Tv(e,t){if(e=e.containerInfo,nu=Kr,e=Rd(e),Ro(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,O=-1,$=0,ae=0,re=e,K=null;t:for(;;){for(var V;re!==n||o!==0&&re.nodeType!==3||(E=h+o),re!==c||i!==0&&re.nodeType!==3||(O=h+i),re.nodeType===3&&(h+=re.nodeValue.length),(V=re.firstChild)!==null;)K=re,re=V;for(;;){if(re===e)break t;if(K===n&&++$===o&&(E=h),K===c&&++ae===i&&(O=h),(V=re.nextSibling)!==null)break;re=K,K=re.parentNode}re=V}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(au={focusedElem:e,selectionRange:n},Kr=!1,mn=t;mn!==null;)if(t=mn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mn=e;else for(;mn!==null;){switch(t=mn,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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var Ae=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(Ae,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Be){_t(n,n.return,Be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)su(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":su(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,mn=e;break}mn=t.return}}function bp(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Qa(e,n),i&4&&hs(5,n);break;case 1:if(Qa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_t(n,n.return,h)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_t(n,n.return,h)}}i&64&&fp(n),i&512&&ps(n,n.return);break;case 3:if(Qa(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{th(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&mp(n);case 26:case 5:Qa(e,n),t===null&&i&4&&hp(n),i&512&&ps(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&Ep(e,n);break;case 13:Qa(e,n),i&4&&_p(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Lv.bind(null,n),eE(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||on,o=Xa;var c=on;Xa=i,(on=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,on=c}break;case 30:break;default:Qa(e,n)}}function yp(e){var t=e.alternate;t!==null&&(e.alternate=null,yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(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 Bt=null,$n=!1;function Va(e,t,n){for(n=n.child;n!==null;)vp(e,t,n),n=n.sibling}function vp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Cn,n)}catch{}switch(n.tag){case 26:on||ka(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:on||ka(n,t);var i=Bt,o=$n;Ti(n.type)&&(Bt=n.stateNode,$n=!1),Va(e,t,n),Ns(n.stateNode),Bt=i,$n=o;break;case 5:on||ka(n,t);case 6:if(i=Bt,o=$n,Bt=null,Va(e,t,n),Bt=i,$n=o,Bt!==null)if($n)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{Bt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:Bt!==null&&($n?(e=Bt,fm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):fm(Bt,n.stateNode));break;case 4:i=Bt,o=$n,Bt=n.stateNode.containerInfo,$n=!0,Va(e,t,n),Bt=i,$n=o;break;case 0:case 11:case 14:case 15:yi(2,n,t),on||yi(4,n,t),Va(e,t,n);break;case 1:on||(ka(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&dp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:on=(i=on)||n.memoizedState!==null,Va(e,t,n),on=i;break;default:Va(e,t,n)}}function Ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){_t(t,t.return,n)}}}function _p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){_t(t,t.return,n)}}function xv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gp),t;default:throw Error(s(435,e.tag))}}function Ar(e,t){var n=xv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=zv.bind(null,e,i);i.then(o,o)}})}function Yn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ti(E.type)){Bt=E.stateNode,$n=!1;break e}break;case 5:Bt=E.stateNode,$n=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,$n=!0;break e}E=E.return}if(Bt===null)throw Error(s(160));vp(c,h,o),Bt=null,$n=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sp(t,e),t=t.sibling}var Sa=null;function Sp(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yn(t,e),Fn(e),i&4&&(yi(3,e,e.return),hs(3,e),yi(5,e,e.return));break;case 1:Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Sa;if(Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Wn]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),xn(c,i,n),c[Ot]=e,be(c),i=c;break e;case"link":var h=Sm("link","href",o).get(i+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(i),xn(c,i,n),o.head.appendChild(c);break;case"meta":if(h=Sm("meta","content",o).get(i+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(i),xn(c,i,n),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[Ot]=e,be(c),i=c}e.stateNode=i}else Nm(o,e.type,e.stateNode);else e.stateNode=_m(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Nm(o,e.type,e.stateNode):_m(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Mc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),n!==null&&i&4&&Mc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),e.flags&32){o=e.stateNode;try{Q(o,"")}catch(Ae){_t(e,e.return,Ae)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Mc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(zc=!0);break;case 6:if(Yn(t,e),Fn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(Ae){_t(e,e.return,Ae)}}break;case 3:if($r=null,o=Sa,Sa=qr(t.containerInfo),Yn(t,e),Sa=o,Fn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(Ae){_t(e,e.return,Ae)}zc&&(zc=!1,Np(e));break;case 4:i=Sa,Sa=qr(e.stateNode.containerInfo),Yn(t,e),Fn(e),Sa=i;break;case 12:Yn(t,e),Fn(e);break;case 31:Yn(t,e),Fn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Yn(t,e),Fn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=$e()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,$=Xa,ae=on;if(Xa=$||o,on=ae||O,Yn(t,e),on=ae,Xa=$,Fn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Xa||on||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(c=O.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=O.stateNode;var re=O.memoizedProps.style,K=re!=null&&re.hasOwnProperty("display")?re.display:null;E.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Ae){_t(O,O.return,Ae)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Ae){_t(O,O.return,Ae)}}}else if(t.tag===18){if(n===null){O=t;try{var V=O.stateNode;o?dm(V,!0):dm(O.stateNode,!1)}catch(Ae){_t(O,O.return,Ae)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ar(e,n))));break;case 19:Yn(t,e),Fn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Yn(t,e),Fn(e)}}function Fn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(pp(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Dc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(Q(h,""),n.flags&=-33);var E=Dc(e);xr(e,E,h);break;case 3:case 4:var O=n.stateNode.containerInfo,$=Dc(e);Lc(e,$,O);break;default:throw Error(s(161))}}catch(ae){_t(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Np(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Np(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bp(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yi(4,t,t.return),Vi(t);break;case 1:ka(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dp(t,t.return,n),Vi(t);break;case 27:Ns(t.stateNode);case 26:case 5:ka(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Wa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wa(o,c,n),hs(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch($){_t(i,i.return,$)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)eh(O[o],E)}catch($){_t(i,i.return,$)}}n&&h&64&&fp(c),ps(c,c.return);break;case 27:mp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&hp(c),ps(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&Ep(o,c);break;case 13:Wa(o,c,n),n&&h&4&&_p(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ps(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function Uc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function Na(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wp(e,t,n,i),t=t.sibling}function wp(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Na(e,t,n,i),o&2048&&hs(9,t);break;case 1:Na(e,t,n,i);break;case 3:Na(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Na(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){_t(t,t.return,O)}}else Na(e,t,n,i);break;case 31:Na(e,t,n,i);break;case 13:Na(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Na(e,t,n,i):ms(e,t):c._visibility&2?Na(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Uc(h,t);break;case 24:Na(e,t,n,i),o&2048&&jc(t.alternate,t);break;default:Na(e,t,n,i)}}function _l(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,O=i,$=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,O,o),hs(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?_l(c,h,E,O,o):ms(c,h):(ae._visibility|=2,_l(c,h,E,O,o)),o&&$&2048&&Uc(h.alternate,h);break;case 24:_l(c,h,E,O,o),o&&$&2048&&jc(h.alternate,h);break;default:_l(c,h,E,O,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ms(n,i),o&2048&&Uc(i.alternate,i);break;case 24:ms(n,i),o&2048&&jc(i.alternate,i);break;default:ms(n,i)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)Tp(e,t,n),e=e.sibling}function Tp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&dE(n,Sa,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var i=Sa;Sa=qr(e.stateNode.containerInfo),Sl(e,t,n),Sa=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=gs,gs=16777216,Sl(e,t,n),gs=i):Sl(e,t,n));break;default:Sl(e,t,n)}}function xp(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 bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Rp(i,e)}xp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ap(e),e=e.sibling}function Ap(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&yi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Rp(i,e)}xp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function Rp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:yi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,mn=i;else e:for(n=e;mn!==null;){i=mn;var o=i.sibling,c=i.return;if(yp(i),i===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var Av={getCacheForType:function(e){var t=wn(ln),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wn(ln).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,bt=0,At=null,nt=null,st=0,Et=0,aa=null,vi=!1,Nl=!1,Bc=!1,Ja=0,Ft=0,Ei=0,Qi=0,Ic=0,ia=0,wl=0,ys=null,Pn=null,Hc=!1,Or=0,Op=0,kr=1/0,Cr=null,_i=null,hn=0,Si=null,Tl=null,ei=0,qc=0,Gc=null,kp=null,vs=0,$c=null;function la(){return(bt&2)!==0&&st!==0?st&-st:k.T!==null?Xc():Vn()}function Cp(){if(ia===0)if((st&536870912)===0||ot){var e=Gt;Gt<<=1,(Gt&3932160)===0&&(Gt=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Kn(e,t,n){(e===At&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,st,ia,!1)),lt(e,n),((bt&2)===0||e!==At)&&(e===At&&((bt&2)===0&&(Qi|=n),Ft===4&&Ni(e,st,ia,!1)),Ca(e))}function Mp(e,t,n){if((bt&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=i?Cv(e,t):Fc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Ov(n)){o=Fc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var O=E.current.memoizedState.isDehydrated;if(O&&(xl(E,h).flags|=256),h=Fc(E,h,!1),h!==2){if(Bc&&!O){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Pn,Pn=o,c!==null&&(Pn===null?Pn=c:Pn.push.apply(Pn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!vi);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Or+300-$e(),10<o)){if(Ni(i,t,ia,!vi),R(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=cm(Dp.bind(null,i,n,Pn,Cr,Hc,t,ia,Qi,wl,vi,c,"Throttled",-0,0),o);break e}Dp(i,n,Pn,Cr,Hc,t,ia,Qi,wl,vi,c,null,-0,0)}}break}while(!0);Ca(e)}function Dp(e,t,n,i,o,c,h,E,O,$,ae,re,K,V){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ce},Tp(t,c,re);var Ae=(c&62914560)===c?Or-$e():(c&4194048)===c?Op-$e():0;if(Ae=hE(re,Ae),Ae!==null){ei=c,e.cancelPendingCommit=Ae(qp.bind(null,e,t,c,n,i,o,h,E,O,ae,re,null,K,V)),Ni(e,c,h,!$);return}}qp(e,t,c,n,i,o,h,E,O)}function Ov(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Jn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ni(e,t,n,i){t&=~Ic,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Dt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Mr(){return(bt&6)===0?(Es(0),!1):!0}function Yc(){if(nt!==null){if(Et===0)var e=nt.return;else e=nt,$a=Gi=null,sc(e),gl=null,ns=0,e=nt;for(;e!==null;)up(e.alternate,e),e=e.return;nt=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,Yc(),At=e,nt=n=qa(e.current,null),st=t,Et=0,aa=null,vi=!1,Nl=ne(e,t),Bc=!1,wl=ia=Ic=Qi=Ei=Ft=0,Pn=ys=null,Hc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Dt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,Js(),n}function Lp(e,t){Ke=null,k.H=us,t===ml||t===rr?(t=Vd(),Et=3):t===Zo?(t=Vd(),Et=4):Et=t===Sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,nt===null&&(Ft=1,_r(e,fa(t,e.current)))}function zp(){var e=ta.current;return e===null?!0:(st&4194048)===st?ma===null:(st&62914560)===st||(st&536870912)!==0?e===ma:!1}function Up(){var e=k.H;return k.H=us,e===null?us:e}function jp(){var e=k.A;return k.A=Av,e}function Dr(){Ft=4,vi||(st&4194048)!==st&&ta.current!==null||(Nl=!0),(Ei&134217727)===0&&(Qi&134217727)===0||At===null||Ni(At,st,ia,!1)}function Fc(e,t,n){var i=bt;bt|=2;var o=Up(),c=jp();(At!==e||st!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&nt!==null){var E=nt,O=aa;switch(Et){case 8:Yc(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var $=Et;if(Et=0,aa=null,Al(e,E,O,$),n&&Nl){h=0;break e}break;default:$=Et,Et=0,aa=null,Al(e,E,O,$)}}kv(),h=Ft;break}catch(ae){Lp(e,ae)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,bt=i,k.H=o,k.A=c,nt===null&&(At=null,st=0,Js()),h}function kv(){for(;nt!==null;)Bp(nt)}function Cv(e,t){var n=bt;bt|=2;var i=Up(),o=jp();At!==e||st!==t?(Cr=null,kr=$e()+500,xl(e,t)):Nl=ne(e,t);e:do try{if(Et!==0&&nt!==null){t=nt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Al(e,t,c,1);break;case 2:case 9:if(Zd(c)){Et=0,aa=null,Ip(t);break}t=function(){Et!==2&&Et!==9||At!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:Zd(c)?(Et=0,aa=null,Ip(t)):(Et=0,aa=null,Al(e,t,c,7));break;case 5:var h=null;switch(nt.tag){case 26:h=nt.memoizedState;case 5:case 27:var E=nt;if(h?wm(h):E.stateNode.complete){Et=0,aa=null;var O=E.sibling;if(O!==null)nt=O;else{var $=E.return;$!==null?(nt=$,Lr($)):nt=null}break t}}Et=0,aa=null,Al(e,t,c,5);break;case 6:Et=0,aa=null,Al(e,t,c,6);break;case 8:Yc(),Ft=6;break e;default:throw Error(s(462))}}Mv();break}catch(ae){Lp(e,ae)}while(!0);return $a=Gi=null,k.H=i,k.A=o,bt=n,nt!==null?0:(At=null,st=0,Js(),Ft)}function Mv(){for(;nt!==null&&!Hn();)Bp(nt)}function Bp(e){var t=op(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?Lr(e):nt=t}function Ip(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=np(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=np(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:sc(t);default:up(n,t),t=nt=jd(t,Ja),t=op(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?Lr(e):nt=t}function Al(e,t,n,i){$a=Gi=null,sc(t),gl=null,ns=0;var o=t.return;try{if(Ev(e,o,t,n,st)){Ft=1,_r(e,fa(n,e.current)),nt=null;return}}catch(c){if(o!==null)throw nt=o,c;Ft=1,_r(e,fa(n,e.current)),nt=null;return}t.flags&32768?(ot||i===1?e=!0:Nl||(st&536870912)!==0?e=!1:(vi=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),Hp(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Hp(t,vi);return}e=t.return;var n=Nv(t.alternate,t,Ja);if(n!==null){nt=n;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);Ft===0&&(Ft=5)}function Hp(e,t){do{var n=wv(e.alternate,e);if(n!==null){n.flags&=32767,nt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=n}while(e!==null);Ft=6,nt=null}function qp(e,t,n,i,o,c,h,E,O){e.cancelPendingCommit=null;do zr();while(hn!==0);if((bt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Do,we(e,n,c,h,E,O),e===At&&(nt=At=null,st=0),Tl=t,Si=e,ei=n,qc=c,Gc=o,kp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uv(vn,function(){return Pp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null,o=J.p,J.p=2,h=bt,bt|=4;try{Tv(e,t,n)}finally{bt=h,J.p=o,k.T=i}}hn=1,Gp(),$p(),Yp()}}function Gp(){if(hn===1){hn=0;var e=Si,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var i=J.p;J.p=2;var o=bt;bt|=4;try{Sp(t,e);var c=au,h=Rd(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Ad(E.ownerDocument.documentElement,E)){if(O!==null&&Ro(E)){var $=O.start,ae=O.end;if(ae===void 0&&(ae=$),"selectionStart"in E)E.selectionStart=$,E.selectionEnd=Math.min(ae,E.value.length);else{var re=E.ownerDocument||document,K=re&&re.defaultView||window;if(K.getSelection){var V=K.getSelection(),Ae=E.textContent.length,Be=Math.min(O.start,Ae),Tt=O.end===void 0?Be:Math.min(O.end,Ae);!V.extend&&Be>Tt&&(h=Tt,Tt=Be,Be=h);var j=xd(E,Be),L=xd(E,Tt);if(j&&L&&(V.rangeCount!==1||V.anchorNode!==j.node||V.anchorOffset!==j.offset||V.focusNode!==L.node||V.focusOffset!==L.offset)){var G=re.createRange();G.setStart(j.node,j.offset),V.removeAllRanges(),Be>Tt?(V.addRange(G),V.extend(L.node,L.offset)):(G.setEnd(L.node,L.offset),V.addRange(G))}}}}for(re=[],V=E;V=V.parentNode;)V.nodeType===1&&re.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<re.length;E++){var le=re[E];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Kr=!!nu,au=nu=null}finally{bt=o,J.p=i,k.T=n}}e.current=t,hn=2}}function $p(){if(hn===2){hn=0;var e=Si,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var i=J.p;J.p=2;var o=bt;bt|=4;try{bp(e,t.alternate,t)}finally{bt=o,J.p=i,k.T=n}}hn=3}}function Yp(){if(hn===4||hn===3){hn=0,Zn();var e=Si,t=Tl,n=ei,i=kp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?hn=5:(hn=0,Tl=Si=null,Fp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(_i=null),Sn(n),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Cn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=k.T,o=J.p,J.p=2,k.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var E=i[h];c(E.value,{componentStack:E.stack})}}finally{k.T=t,J.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===$c?vs++:(vs=0,$c=e):vs=0,Es(0)}}function Fp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Gp(),$p(),Yp(),Pp()}function Pp(){if(hn!==5)return!1;var e=Si,t=qc;qc=0;var n=Sn(ei),i=k.T,o=J.p;try{J.p=32>n?32:n,k.T=null,n=Gc,Gc=null;var c=Si,h=ei;if(hn=0,Tl=Si=null,ei=0,(bt&6)!==0)throw Error(s(331));var E=bt;if(bt|=4,Ap(c.current),wp(c,c.current,h,n),bt=E,Es(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(Cn,c)}catch{}return!0}finally{J.p=o,k.T=i,Fp(e,t)}}function Kp(e,t,n){t=fa(n,t),t=_c(e.stateNode,t,2),e=mi(e,t,2),e!==null&&(lt(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Kp(e,e,n);else for(;t!==null;){if(t.tag===3){Kp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(_i===null||!_i.has(i))){e=fa(n,e),n=Zh(2),i=mi(t,n,2),i!==null&&(Xh(n,i,t,e),lt(i,2),Ca(i));break}}t=t.return}}function Pc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Rv;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(Bc=!0,o.add(n),e=Dv.bind(null,e,t,n),t.then(e,e))}function Dv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,At===e&&(st&n)===n&&(Ft===4||Ft===3&&(st&62914560)===st&&300>$e()-Or?(bt&2)===0&&xl(e,0):Ic|=n,wl===st&&(wl=0)),Ca(e)}function Zp(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(lt(e,t),Ca(e))}function Lv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zp(e,n)}function zv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.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),Zp(e,n)}function Uv(e,t){return It(e,t)}var Ur=null,Rl=null,Kc=!1,jr=!1,Zc=!1,wi=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),jr=!0,Kc||(Kc=!0,Bv())}function Es(e,t){if(!Zc&&jr){Zc=!0;do for(var n=!1,i=Ur;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,E=i.pingedLanes;c=(1<<31-Dt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Wp(i,c))}else c=st,c=R(i,i===At?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ne(i,c)||(n=!0,Wp(i,c));i=i.next}while(n);Zc=!1}}function jv(){Xp()}function Xp(){jr=Kc=!1;var e=0;wi!==0&&Zv()&&(e=wi);for(var t=$e(),n=null,i=Ur;i!==null;){var o=i.next,c=Vp(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(jr=!0)),i=o}hn!==0&&hn!==5||Es(e),wi!==0&&(wi=0)}function Vp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Dt(c),E=1<<h,O=o[h];O===-1?((E&n)===0||(E&i)!==0)&&(o[h]=ye(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=At,n=st,n=R(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ct(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ct(i),Sn(n)){case 2:case 8:n=yn;break;case 32:n=vn;break;case 268435456:n=En;break;default:n=vn}return i=Qp.bind(null,e),n=It(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ct(i),e.callbackPriority=2,e.callbackNode=null,2}function Qp(e,t){if(hn!==0&&hn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=st;return i=R(e,e===At?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Mp(e,i,t),Vp(e,$e()),e.callbackNode!=null&&e.callbackNode===n?Qp.bind(null,e):null)}function Wp(e,t){if(zr())return null;Mp(e,t,!0)}function Bv(){Vv(function(){(bt&6)!==0?It(vt,jv):Xp()})}function Xc(){if(wi===0){var e=hl;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),wi=e}return wi}function Jp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tt(""+e)}function em(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Iv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=Jp((o[en]||null).action),h=i.submitter;h&&(t=(t=h[en]||null)?Jp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(wi!==0){var O=h?em(o,h):new FormData(o);mc(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=h?em(o,h):new FormData(o),mc(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var Vc=0;Vc<Mo.length;Vc++){var Qc=Mo[Vc],Hv=Qc.toLowerCase(),qv=Qc[0].toUpperCase()+Qc.slice(1);_a(Hv,"on"+qv)}_a(Cd,"onAnimationEnd"),_a(Md,"onAnimationIteration"),_a(Dd,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(av,"onTransitionRun"),_a(iv,"onTransitionStart"),_a(lv,"onTransitionCancel"),_a(Ld,"onTransitionEnd"),ue("onMouseEnter",["mouseout","mouseover"]),ue("onMouseLeave",["mouseout","mouseover"]),ue("onPointerEnter",["pointerout","pointerover"]),ue("onPointerLeave",["pointerout","pointerover"]),$t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$t("onBeforeInput",["compositionend","keypress","textInput","paste"]),$t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),Gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],O=E.instance,$=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=O}else for(h=0;h<i.length;h++){if(E=i[h],O=E.instance,$=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=$;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=O}}}}function at(e,t){var n=t[qn];n===void 0&&(n=t[qn]=new Set);var i=e+"__bubble";n.has(i)||(nm(t,e,2,!1),n.add(i))}function Wc(e,t,n){var i=0;t&&(i|=4),nm(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Br]){e[Br]=!0,Qe.forEach(function(n){n!=="selectionchange"&&(Gv.has(n)||Wc(n,!1,e),Wc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Wc("selectionchange",!1,t))}}function nm(e,t,n,i){switch(Cm(t)){case 2:var o=gE;break;case 8:o=bE;break;default:o=pu}n=o.bind(null,t,n,e),o=void 0,!vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function eu(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=tn(E),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var $=c,ae=Le(n),re=[];e:{var K=zd.get(e);if(K!==void 0){var V=Xs,Ae=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":V=zy;break;case"focusin":Ae="focus",V=No;break;case"focusout":Ae="blur",V=No;break;case"beforeblur":case"afterblur":V=No;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=By;break;case Cd:case Md:case Dd:V=xy;break;case Ld:V=Hy;break;case"scroll":case"scrollend":V=_y;break;case"wheel":V=Gy;break;case"copy":case"cut":case"paste":V=Ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=dd;break;case"toggle":case"beforetoggle":V=Yy}var Be=(t&4)!==0,Tt=!Be&&(e==="scroll"||e==="scrollend"),j=Be?K!==null?K+"Capture":null:K;Be=[];for(var L=$,G;L!==null;){var le=L;if(G=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||G===null||j===null||(le=$l(L,j),le!=null&&Be.push(Ss(L,le,G))),Tt)break;L=L.return}0<Be.length&&(K=new V(K,Ae,null,n,ae),re.push({event:K,listeners:Be}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",K&&n!==ve&&(Ae=n.relatedTarget||n.fromElement)&&(tn(Ae)||Ae[ut]))break e;if((V||K)&&(K=ae.window===ae?ae:(K=ae.ownerDocument)?K.defaultView||K.parentWindow:window,V?(Ae=n.relatedTarget||n.toElement,V=$,Ae=Ae?tn(Ae):null,Ae!==null&&(Tt=d(Ae),Be=Ae.tag,Ae!==Tt||Be!==5&&Be!==27&&Be!==6)&&(Ae=null)):(V=null,Ae=$),V!==Ae)){if(Be=ud,le="onMouseLeave",j="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Be=dd,le="onPointerLeave",j="onPointerEnter",L="pointer"),Tt=V==null?K:de(V),G=Ae==null?K:de(Ae),K=new Be(le,L+"leave",V,n,ae),K.target=Tt,K.relatedTarget=G,le=null,tn(ae)===$&&(Be=new Be(j,L+"enter",Ae,n,ae),Be.target=G,Be.relatedTarget=Tt,le=Be),Tt=le,V&&Ae)t:{for(Be=$v,j=V,L=Ae,G=0,le=j;le;le=Be(le))G++;le=0;for(var Ue=L;Ue;Ue=Be(Ue))le++;for(;0<G-le;)j=Be(j),G--;for(;0<le-G;)L=Be(L),le--;for(;G--;){if(j===L||L!==null&&j===L.alternate){Be=j;break t}j=Be(j),L=Be(L)}Be=null}else Be=null;V!==null&&am(re,K,V,Be,!1),Ae!==null&&Tt!==null&&am(re,Tt,Ae,Be,!0)}}e:{if(K=$?de($):window,V=K.nodeName&&K.nodeName.toLowerCase(),V==="select"||V==="input"&&K.type==="file")var pt=Ed;else if(yd(K))if(_d)pt=ev;else{pt=Wy;var ke=Qy}else V=K.nodeName,!V||V.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?$&&Te($.elementType)&&(pt=Ed):pt=Jy;if(pt&&(pt=pt(e,$))){vd(re,pt,n,ae);break e}ke&&ke(e,K,$),e==="focusout"&&$&&K.type==="number"&&$.memoizedProps.value!=null&&ri(K,"number",K.value)}switch(ke=$?de($):window,e){case"focusin":(yd(ke)||ke.contentEditable==="true")&&(ll=ke,Oo=$,Ql=null);break;case"focusout":Ql=Oo=ll=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,Od(re,n,ae);break;case"selectionchange":if(nv)break;case"keydown":case"keyup":Od(re,n,ae)}var Xe;if(To)e:{switch(e){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else il?gd(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(hd&&n.locale!=="ko"&&(il||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&il&&(Xe=od()):(oi=ae,Eo="value"in oi?oi.value:oi.textContent,il=!0)),ke=Ir($,rt),0<ke.length&&(rt=new fd(rt,e,null,n,ae),re.push({event:rt,listeners:ke}),Xe?rt.data=Xe:(Xe=bd(n),Xe!==null&&(rt.data=Xe)))),(Xe=Py?Ky(e,n):Zy(e,n))&&(rt=Ir($,"onBeforeInput"),0<rt.length&&(ke=new fd("onBeforeInput","beforeinput",null,n,ae),re.push({event:ke,listeners:rt}),ke.data=Xe)),Iv(re,e,$,n,ae)}tm(re,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$l(e,n),o!=null&&i.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&i.push(Ss(e,o,c))),e.tag===3)return i;e=e.return}return[]}function $v(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,O=E.alternate,$=E.stateNode;if(E=E.tag,O!==null&&O===i)break;E!==5&&E!==26&&E!==27||$===null||(O=$,o?($=$l(n,c),$!=null&&h.unshift(Ss(n,$,O))):o||($=$l(n,c),$!=null&&h.push(Ss(n,$,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Yv=/\r\n?/g,Fv=/\u0000|\uFFFD/g;function im(e){return(typeof e=="string"?e:""+e).replace(Yv,`
49
+ `).replace(Fv,"")}function lm(e,t){return t=im(t),im(e)===t}function wt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Q(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Q(e,""+i);break;case"className":pn(e,"class",i);break;case"tabIndex":pn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pn(e,n,i);break;case"style":ee(e,i,c);break;case"data":if(t!=="object"){pn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=tt(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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"&&(n==="formAction"?(t!=="input"&&wt(e,t,"name",o.name,o,null),wt(e,t,"formEncType",o.formEncType,o,null),wt(e,t,"formMethod",o.formMethod,o,null),wt(e,t,"formTarget",o.formTarget,o,null)):(wt(e,t,"encType",o.encType,o,null),wt(e,t,"method",o.method,o,null),wt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=tt(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ce);break;case"onScroll":i!=null&&at("scroll",e);break;case"onScrollEnd":i!=null&&at("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}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}n=tt(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+i):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":at("beforetoggle",e),at("toggle",e),nn(e,"popover",i);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":nn(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Re.get(n)||n,nn(e,n,i))}}function tu(e,t,n,i,o,c){switch(n){case"style":ee(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Q(e,i):(typeof i=="number"||typeof i=="bigint")&&Q(e,""+i);break;case"onScroll":i!=null&&at("scroll",e);break;case"onScrollEnd":i!=null&&at("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ce);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ht.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[en]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):nn(e,n,i)}}}function xn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:wt(e,t,c,h,n,null)}}o&&wt(e,t,"srcSet",n.srcSet,n,null),i&&wt(e,t,"src",n.src,n,null);return;case"input":at("invalid",e);var E=c=h=o=null,O=null,$=null;for(i in n)if(n.hasOwnProperty(i)){var ae=n[i];if(ae!=null)switch(i){case"name":o=ae;break;case"type":h=ae;break;case"checked":O=ae;break;case"defaultChecked":$=ae;break;case"value":c=ae;break;case"defaultValue":E=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:wt(e,t,i,ae,n,null)}}Ba(e,c,E,O,$,h,o,!1);return;case"select":at("invalid",e),i=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":i=E;default:wt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?an(e,!!i,t,!1):n!=null&&an(e,!!i,n,!0);return;case"textarea":at("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:wt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(i=n[O],i!=null))switch(O){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:wt(e,t,O,i,n,null)}return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)at(_s[i],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("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($ in n)if(n.hasOwnProperty($)&&(i=n[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:wt(e,t,$,i,n,null)}return;default:if(Te(t)){for(ae in n)n.hasOwnProperty(ae)&&(i=n[ae],i!==void 0&&tu(e,t,ae,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&wt(e,t,E,i,n,null))}function Pv(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,O=null,$=null,ae=null;for(V in n){var re=n[V];if(n.hasOwnProperty(V)&&re!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=re;default:i.hasOwnProperty(V)||wt(e,t,V,null,i,re)}}for(var K in i){var V=i[K];if(re=n[K],i.hasOwnProperty(K)&&(V!=null||re!=null))switch(K){case"type":c=V;break;case"name":o=V;break;case"checked":$=V;break;case"defaultChecked":ae=V;break;case"value":h=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==re&&wt(e,t,K,V,i,re)}}si(e,h,E,O,$,ae,c,o);return;case"select":V=h=E=K=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":V=O;default:i.hasOwnProperty(c)||wt(e,t,c,null,i,O)}for(o in i)if(c=i[o],O=n[o],i.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":K=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==O&&wt(e,t,o,c,i,O)}t=E,n=h,i=V,K!=null?an(e,!!n,K,!1):!!i!=!!n&&(t!=null?an(e,!!n,t,!0):an(e,!!n,n?[]:"",!1));return;case"textarea":V=K=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:wt(e,t,E,null,i,o)}for(h in i)if(o=i[h],c=n[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":K=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&wt(e,t,h,o,i,c)}Ia(e,K,V);return;case"option":for(var Ae in n)if(K=n[Ae],n.hasOwnProperty(Ae)&&K!=null&&!i.hasOwnProperty(Ae))switch(Ae){case"selected":e.selected=!1;break;default:wt(e,t,Ae,null,i,K)}for(O in i)if(K=i[O],V=n[O],i.hasOwnProperty(O)&&K!==V&&(K!=null||V!=null))switch(O){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:wt(e,t,O,K,i,V)}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 Be in n)K=n[Be],n.hasOwnProperty(Be)&&K!=null&&!i.hasOwnProperty(Be)&&wt(e,t,Be,null,i,K);for($ in i)if(K=i[$],V=n[$],i.hasOwnProperty($)&&K!==V&&(K!=null||V!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,t));break;default:wt(e,t,$,K,i,V)}return;default:if(Te(t)){for(var Tt in n)K=n[Tt],n.hasOwnProperty(Tt)&&K!==void 0&&!i.hasOwnProperty(Tt)&&tu(e,t,Tt,void 0,i,K);for(ae in i)K=i[ae],V=n[ae],!i.hasOwnProperty(ae)||K===V||K===void 0&&V===void 0||tu(e,t,ae,K,i,V);return}}for(var j in n)K=n[j],n.hasOwnProperty(j)&&K!=null&&!i.hasOwnProperty(j)&&wt(e,t,j,null,i,K);for(re in i)K=i[re],V=n[re],!i.hasOwnProperty(re)||K===V||K==null&&V==null||wt(e,t,re,K,i,V)}function sm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&sm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var O=n[i],$=O.startTime;if($>E)break;var ae=O.transferSize,re=O.initiatorType;ae&&sm(re)&&(O=O.responseEnd,h+=ae*(O<E?1:(E-$)/(O-$)))}if(--i,t+=8*(c+h)/(o.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 nu=null,au=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function rm(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 om(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 iu(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 lu=null;function Zv(){var e=window.event;return e&&e.type==="popstate"?e===lu?!1:(lu=e,!0):(lu=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,Vv=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(Qv)}:cm;function Qv(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function fm(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[Wn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ns(e.ownerDocument.body);n=o}while(n);Ml(t)}function dm(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function su(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":su(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Wv(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Wn])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ga(e.nextSibling),e===null)break}return null}function Jv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ga(e.nextSibling),e===null))return null;return e}function hm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ga(e.nextSibling),e===null))return null;return e}function ru(e){return e.data==="$?"||e.data==="$~"}function ou(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function eE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ga(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 cu=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ga(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gm(e,t,n){switch(t=Hr(n),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 Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ba=new Map,bm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=J.d;J.d={f:tE,r:nE,D:aE,C:iE,L:lE,m:sE,X:oE,S:rE,M:cE};function tE(){var e=ti.f(),t=Mr();return e||t}function nE(e){var t=H(e);t!==null&&t.tag===5&&t.type==="form"?Lh(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function ym(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=Dn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),bm.has(o)||(bm.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),xn(t,"link",e),be(t),i.head.appendChild(t)))}}function aE(e){ti.D(e),ym("dns-prefetch",e,null)}function iE(e,t){ti.C(e,t),ym("preconnect",e,t)}function lE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+Dn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Dn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Dn(n.imageSizes)+'"]')):o+='[href="'+Dn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Cl(e)}ba.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ba.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ws(c))||t==="script"&&i.querySelector(Ts(c))||(t=i.createElement("link"),xn(t,"link",e),be(t),i.head.appendChild(t)))}}function sE(e,t){ti.m(e,t);var n=Ol;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Dn(i)+'"][href="'+Dn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ba.has(c)&&(e=v({rel:"modulepreload",href:e},t),ba.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ts(c)))return}i=n.createElement("link"),xn(i,"link",e),be(i),n.head.appendChild(i)}}}function rE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=xe(i).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(ws(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ba.get(c))&&uu(e,n);var O=h=i.createElement("link");be(O),xn(O,"link",e),O._p=new Promise(function($,ae){O.onload=$,O.onerror=ae}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function oE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=xe(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0},t),(t=ba.get(o))&&fu(e,t),c=n.createElement("script"),be(c),xn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function cE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=xe(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ba.get(o))&&fu(e,t),c=n.createElement("script"),be(c),xn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function vm(e,t,n,i){var o=(o=fe.current)?qr(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=xe(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=xe(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ba.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ba.set(e,n),c||uE(o,e,n,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=xe(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function kl(e){return'href="'+Dn(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function Em(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function uE(e,t,n,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}),xn(t,"link",n),be(t),e.head.appendChild(t))}function Cl(e){return'[src="'+Dn(e)+'"]'}function Ts(e){return"script[async]"+e}function _m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Dn(n.href)+'"]');if(i)return t.instance=i,be(i),i;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),be(i),xn(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=kl(n.href);var c=e.querySelector(ws(o));if(c)return t.state.loading|=4,t.instance=c,be(c),c;i=Em(n),(o=ba.get(o))&&uu(i,o),c=(e.ownerDocument||e).createElement("link"),be(c);var h=c;return h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),xn(c,"link",i),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Cl(n.src),(o=e.querySelector(Ts(c)))?(t.instance=o,be(o),o):(i=n,(o=ba.get(c))&&(i=v({},n),fu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),be(o),xn(o,"link",i),e.head.appendChild(o),t.instance=o);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,Gr(i,n.precedence,e));return t.instance}function Gr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Sm(e,t,n){if($r===null){var i=new Map,o=$r=new Map;o.set(n,i)}else o=$r,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Wn]||c[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function Nm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function fE(e,t,n){if(n===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 wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(i.href),c=t.querySelector(ws(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,be(c);return}c=t.ownerDocument||t,i=Em(i),(o=ba.get(o))&&uu(i,o),c=c.createElement("link"),be(c);var h=c;h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),xn(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var du=0;function hE(e,t){return e.stylesheets&&e.count===0&&Pr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&du===0&&(du=62500*Kv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>du?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Pr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(pE,e),Fr=null,Yr.call(e))}function pE(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var i=n.get(null);else{n=new Map,Fr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,o),n.set(h,o),this.count++,i=Yr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:D,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function mE(e,t,n,i,o,c,h,E,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Tm(e,t,n,i,o,c,h,E,O,$,ae,re){return e=new mE(e,t,n,h,O,$,ae,re,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Fo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Xo(c),e}function xm(e){return e?(e=ol,e):ol}function Am(e,t,n,i,o,c){o=xm(o),i.context===null?i.context=o:i.pendingContext=o,i=pi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=mi(e,i,t),n!==null&&(Kn(n,e,t),is(n,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hu(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function Om(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Kn(t,e,67108864),hu(e,67108864)}}function km(e){if(e.tag===13||e.tag===31){var t=la();t=gt(t);var n=Ii(e,t);n!==null&&Kn(n,e,t),hu(e,t)}}var Kr=!0;function gE(e,t,n,i){var o=k.T;k.T=null;var c=J.p;try{J.p=2,pu(e,t,n,i)}finally{J.p=c,k.T=o}}function bE(e,t,n,i){var o=k.T;k.T=null;var c=J.p;try{J.p=8,pu(e,t,n,i)}finally{J.p=c,k.T=o}}function pu(e,t,n,i){if(Kr){var o=mu(i);if(o===null)eu(e,t,i,Zr,n),Mm(e,i);else if(vE(o,e,t,n,i))i.stopPropagation();else if(Mm(e,i),t&4&&-1<yE.indexOf(e)){for(;o!==null;){var c=H(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Kt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var O=1<<31-Dt(h);E.entanglements[1]|=O,h&=~O}Ca(c),(bt&6)===0&&(kr=$e()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Kn(E,c,2),Mr(),hu(c,2)}if(c=mu(i),c===null&&eu(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else eu(e,t,i,null,n)}}function mu(e){return e=Le(e),gu(e)}var Zr=null;function gu(e){if(Zr=null,e=tn(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function Cm(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(Jt()){case vt:return 2;case yn:return 8;case vn:case kn:return 32;case En:return 268435456;default:return 32}default:return 32}}var bu=!1,xi=null,Ai=null,Ri=null,As=new Map,Rs=new Map,Oi=[],yE="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 Mm(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=H(t),t!==null&&Om(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function vE(e,t,n,i,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,i,o),!0;case"dragenter":return Ai=Os(Ai,e,t,n,i,o),!0;case"mouseover":return Ri=Os(Ri,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function Dm(e){var t=tn(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Qn(e.priority,function(){km(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Qn(e.priority,function(){km(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ve=i,n.target.dispatchEvent(i),ve=null}else return t=H(n),t!==null&&Om(t),e.blockedOn=n,!1;t.shift()}return!0}function Lm(e,t,n){Xr(e)&&n.delete(t)}function EE(){bu=!1,xi!==null&&Xr(xi)&&(xi=null),Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),As.forEach(Lm),Rs.forEach(Lm)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,bu||(bu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,EE)))}var Qr=null;function zm(e){Qr!==e&&(Qr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qr===e&&(Qr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(gu(i||n)===null)continue;break}var c=H(n);c!==null&&(e.splice(t,3),t-=3,mc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(O){return Vr(O,e)}xi!==null&&Vr(xi,e),Ai!==null&&Vr(Ai,e),Ri!==null&&Vr(Ri,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Dm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=o[en]||null;if(typeof c=="function")h||zm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[en]||null)E=h.formAction;else if(gu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),zm(n)}}}function Um(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){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,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function yu(e){this._internalRoot=e}Wr.prototype.render=yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=la();Am(n,i,e,t,null,null)},Wr.prototype.unmount=yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Am(e.current,2,null,e,null,null),Mr(),t[ut]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&Dm(e)}};var jm=a.version;if(jm!=="19.2.8")throw Error(s(527,jm,"19.2.8"));J.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=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var _E={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{Cn=Jr.inject(_E),Ut=Jr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,i="",o=Yh,c=Fh,h=Ph;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Tm(e,1,!1,null,null,n,i,null,o,c,h,Um),e[ut]=t.current,Jc(e),new yu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var i=!1,o="",c=Yh,h=Fh,E=Ph,O=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=Tm(e,1,!0,t,n??null,i,o,O,c,h,E,Um),t.context=xm(null),n=t.current,i=la(),i=gt(i),o=pi(i),o.callback=null,mi(n,o,i),n=i,t.current.lanes=n,lt(t,n),Ca(t),e[ut]=t.current,Jc(e),new Wr(t)},Cs.version="19.2.8",Cs}var Km;function DE(){if(Km)return _u.exports;Km=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),_u.exports=ME(),_u.exports}var LE=DE(),cn;(function(l){l.INSERT="insert",l.DELETE="delete",l.CONTEXT="context"})(cn||(cn={}));const zE={LINE_BY_LINE:"line-by-line"},UE={NONE:"none"},jE={WORD:"word"};var Bl;(function(l){l.AUTO="auto",l.DARK="dark",l.LIGHT="light"})(Bl||(Bl={}));const BE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],IE=RegExp("["+BE.join("\\")+"]","g");function HE(l){return l.replace(IE,"\\$&")}function Zm(l){return l&&l.replace(/\\/g,"/")}function qE(l){let a,r,s,u=0;for(a=0,s=l.length;a<s;a++)r=l.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function kb(l){const a=l.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,l[s]);return r}function Xm(l,a){const r=l.split(".");return r.length>1?r[r.length-1]:a}function Vm(l,a){return a.reduce((r,s)=>r||l.startsWith(s),!1)}const Qm=["a/","b/","i/","w/","c/","o/"];function Di(l,a,r){const s=r!==void 0?[...Qm,r]:Qm,u=a?new RegExp(`^${HE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(l)||[],p=s.find(g=>d.indexOf(g)===0);return(p?d.slice(p.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function GE(l,a){return Di(l,"---",a)}function $E(l,a){return Di(l,"+++",a)}function YE(l,a={}){const r=[];let s=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",S="@@",w=/^old mode (\d{6})/,T=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,A=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,D=/^rename from "?(.+)"?/,W=/^rename to "?(.+)"?/,q=/^similarity index (\d+)%/,Z=/^dissimilarity index (\d+)%/,ie=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,M=/^Binary files (.*) and (.*) differ/,F=/^GIT binary patch/,te=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,X=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,oe=/^deleted file mode (\d{6}),(\d{6})/,Ee=l.replace(/\/g,"").replace(/\r\n?/g,`
50
+ `).split(`
51
+ `);function pe(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function k(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function J(){pe(),k(),s={blocks:[],deletedLines:0,addedLines:0}}function he(_){pe();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(_))?(s.isCombined=!1,d=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(_))?(s.isCombined=!0,d=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(_.startsWith(S)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:_}}function Se(_){if(s===null||u===null||d===null||y===null)return;const z={content:_},B=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];Vm(_,B)?(s.addedLines++,z.type=cn.INSERT,z.oldNumber=void 0,z.newNumber=y++):Vm(_,se)?(s.deletedLines++,z.type=cn.DELETE,z.oldNumber=d++,z.newNumber=void 0):(z.type=cn.CONTEXT,z.oldNumber=d++,z.newNumber=y++),u.lines.push(z)}function De(_,z){let B=z;for(;B<Ee.length-3;){if(_.startsWith("diff"))return!1;if(Ee[B].startsWith(b)&&Ee[B+1].startsWith(v)&&Ee[B+2].startsWith(S))return!0;B++}return!1}return Ee.forEach((_,z)=>{if(!_||_.startsWith("*"))return;let B;const se=Ee[z-1],P=Ee[z+1],fe=Ee[z+2];if(_.startsWith("diff --git")||_.startsWith("diff --combined")){if(J(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(_))&&(g=Di(B[1],void 0,a.dstPrefix),m=Di(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(_.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(J(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(_))&&(g=Di(B[1],void 0,a.dstPrefix),m=Di(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&_.startsWith(b)&&P.startsWith(v)&&fe.startsWith(S))&&J(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&_.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const Oe=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";he(Oe);return}if(_.startsWith(b)&&P.startsWith(v)||_.startsWith(v)&&se.startsWith(b)){if(s&&!s.oldName&&_.startsWith("--- ")&&(B=GE(_,a.srcPrefix))){s.oldName=B,s.language=Xm(s.oldName,s.language);return}if(s&&!s.newName&&_.startsWith("+++ ")&&(B=$E(_,a.dstPrefix))){s.newName=B,s.language=Xm(s.newName,s.language);return}}if(s&&(_.startsWith(S)||s.isGitDiff&&s.oldName&&s.newName&&!u)){he(_);return}if(u&&(_.startsWith("+")||_.startsWith("-")||_.startsWith(" "))){Se(_);return}const ge=!De(_,z);if(s===null)throw new Error("Where is my file !!!");(B=w.exec(_))?s.oldMode=B[1]:(B=T.exec(_))?s.newMode=B[1]:(B=C.exec(_))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=x.exec(_))?(s.newFileMode=B[1],s.isNew=!0):(B=A.exec(_))?(ge&&(s.oldName=B[1]),s.isCopy=!0):(B=I.exec(_))?(ge&&(s.newName=B[1]),s.isCopy=!0):(B=D.exec(_))?(ge&&(s.oldName=B[1]),s.isRename=!0):(B=W.exec(_))?(ge&&(s.newName=B[1]),s.isRename=!0):(B=M.exec(_))?(s.isBinary=!0,s.oldName=Di(B[1],void 0,a.srcPrefix),s.newName=Di(B[2],void 0,a.dstPrefix),he("Binary file")):F.test(_)?(s.isBinary=!0,he(_)):(B=q.exec(_))?s.unchangedPercentage=parseInt(B[1],10):(B=Z.exec(_))?s.changedPercentage=parseInt(B[1],10):(B=ie.exec(_))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=te.exec(_))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=X.exec(_))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=me.exec(_))?(s.newFileMode=B[1],s.isNew=!0):(B=oe.exec(_))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),pe(),k(),r}class Cb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const d=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(d,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var d;const p=I=>{if(I=this.postProcess(I,s),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(d=s.timeout)!==null&&d!==void 0?d:1/0,S=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let T=this.extractCommon(w[0],r,a,0,s);if(w[0].oldPos+1>=g&&T+1>=y)return p(this.buildValues(w[0].lastComponent,r,a));let C=-1/0,x=1/0;const A=()=>{for(let I=Math.max(C,-m);I<=Math.min(x,m);I+=2){let D;const W=w[I-1],q=w[I+1];W&&(w[I-1]=void 0);let Z=!1;if(q){const M=q.oldPos-I;Z=q&&0<=M&&M<y}const ie=W&&W.oldPos+1<g;if(!Z&&!ie){w[I]=void 0;continue}if(!ie||Z&&W.oldPos<q.oldPos?D=this.addToPath(q,!0,!1,0,s):D=this.addToPath(W,!1,!0,1,s),T=this.extractCommon(D,r,a,I,s),D.oldPos+1>=g&&T+1>=y)return p(this.buildValues(D.lastComponent,r,a))||!0;w[I]=D,D.oldPos+1>=g&&(x=Math.min(x,I-1)),T+1>=y&&(C=Math.max(C,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>S)return u(void 0);A()||I()},0)})();else for(;m<=b&&Date.now()<=S;){const I=A();if(I)return I}}addToPath(a,r,s,u,d){const p=a.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,d){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,s){const u=[];let d;for(;a;)u.push(a),d=a.previousComponent,delete a.previousComponent,a=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(s.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(S,w){const T=s[m+w];return T.length>S.length?T:S}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class FE extends Cb{}const PE=new FE;function KE(l,a,r){return PE.diff(l,a,r)}const Wm="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class ZE extends Cb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${Wm}]+|[^\\S\\n\\r]+|[^${Wm}]`,"ug");return a.match(r)||[]}}const XE=new ZE;function VE(l,a,r){return XE.diff(l,a,r)}function QE(l,a){if(l.length===0)return a.length;if(a.length===0)return l.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=l.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=l.length;u++)a.charAt(s-1)===l.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][l.length]}function $f(l){return(a,r)=>{const s=l(a).trim(),u=l(r).trim();return QE(s,u)/(s.length+u.length)}}function Yf(l){function a(s,u,d=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=l(s[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,d=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],S=y.indexA+1,w=y.indexB+1,T=s.slice(S),C=u.slice(w),x=r(g,m,d+1,p),A=r(b,v,d+1,p),I=r(T,C,d+1,p);let D=A;return(y.indexA>0||y.indexB>0)&&(D=x.concat(D)),(s.length>S||u.length>w)&&(D=D.concat(I)),D}return r}const Bn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},go={matching:UE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:jE.WORD,colorScheme:Bl.LIGHT},Ma="/",Mb=$f(l=>l.value),WE=Yf(Mb);function Tu(l){return l.indexOf("dev/null")!==-1}function JE(l){return l.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function e_(l){return l.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(l){switch(l){case cn.CONTEXT:return Bn.CONTEXT;case cn.INSERT:return Bn.INSERTS;case cn.DELETE:return Bn.DELETES}}function Ff(l){switch(l){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function t_(l){return l?2:1}function Il(l){return l.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(l,a,r=!0){const s=t_(a);return{prefix:l.substring(0,s),content:r?Il(l.substring(s)):l.substring(s)}}function bo(l){const a=Zm(l.oldName),r=Zm(l.newName);if(a!==r&&!Tu(a)&&!Tu(r)){const s=[],u=[],d=a.split(Ma),p=r.split(Ma),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const S=s.join(Ma),w=u.join(Ma),T=d.slice(m,b+1).join(Ma),C=p.slice(m,v+1).join(Ma);return S.length&&w.length?S+Ma+"{"+T+" → "+C+"}"+Ma+w:S.length?S+Ma+"{"+T+" → "+C+"}":w.length?"{"+T+" → "+C+"}"+Ma+w:a+" → "+r}else return Tu(r)?a:r}function Pf(l){return`d2h-${qE(bo(l)).toString().slice(-6)}`}function Kf(l){let a="file-changed";return l.isRename||l.isCopy?a="file-renamed":l.isNew?a="file-added":l.isDeleted?a="file-deleted":l.newName!==l.oldName&&(a="file-renamed"),a}function Db(l,a,r,s={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},go),s),g=La(l,r,!1),m=La(a,r,!1);if(g.content.length>d||m.content.length>d)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?KE(g.content,m.content):VE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const w=b.filter(x=>x.removed),T=b.filter(x=>x.added);WE(T,w).forEach(x=>{x[0].length===1&&x[1].length===1&&Mb(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const S=b.reduce((w,T)=>{const C=T.added?"ins":T.removed?"del":null,x=v.indexOf(T)>-1?' class="d2h-change"':"",A=Il(T.value);return C!==null?`${w}<${C}${x}>${A}</${C}>`:`${w}${A}`},"");return{oldLine:{prefix:g.prefix,content:JE(S)},newLine:{prefix:m.prefix,content:e_(S)}}}const Jm="file-summary",n_="icon",a_={colorScheme:go.colorScheme};class i_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},a_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(Jm,"line",{fileHtmlId:Pf(s),oldName:s.oldName,newName:s.newName,fileName:bo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(n_,Kf(s))})).join(`
52
+ `);return this.hoganUtils.render(Jm,"wrapper",{colorScheme:Ff(this.config.colorScheme),filesNumber:a.length,files:r})}}const Lb=Object.assign(Object.assign({},go),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",eg="line-by-line",l_="icon",s_="tag";class r_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Lb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
53
+ `);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Ff(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(eg,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),d=this.hoganUtils.template(l_,"file"),p=this.hoganUtils.template(s_,Kf(a));return s.render({file:a,fileHtmlId:Pf(a),diffs:r,filePath:u.render({fileDiffName:bo(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=Yf($f(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?s.header:Il(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:Bn.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).join(`
54
+ `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==cn.INSERT&&u.length||p.type===cn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===cn.CONTEXT?r.push([[p],[],[]]):p.type===cn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===cn.INSERT&&s.length>0?u.push(p):p.type===cn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,d=kb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const d={right:"",left:""},p=Math.max(s.length,u.length);for(let y=0;y<p;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Db(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:oo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,S=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:oo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:w,right:T}=this.generateLineHtml(a,v,S);d.left+=w,d.right+=T}return d}generateLineHtml(a,r,s){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,s)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const s=this.hoganUtils.render(eg,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const zb=Object.assign(Object.assign({},go),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",o_="side-by-side",c_="icon",u_="tag";class f_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},zb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
55
+ `);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Ff(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(o_,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(c_,"file"),p=this.hoganUtils.template(u_,Kf(a));return s.render({file:a,fileHtmlId:Pf(a),diffs:r,filePath:u.render({fileDiffName:bo(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=Yf($f(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:S}=this.generateLineHtml({type:Bn.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:Bn.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=S});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==cn.INSERT&&u.length||p.type===cn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===cn.CONTEXT?r.push([[p],[],[]]):p.type===cn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===cn.INSERT&&s.length>0?u.push(p):p.type===cn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,d=kb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:Il(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},d=Math.max(r.length,s.length);for(let p=0;p<d;p++){const y=r[p],g=s[p],m=y!==void 0&&g!==void 0?Db(y.content,g.content,a,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:oo(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:oo(g.type)})),{number:g.newNumber}):void 0,{left:S,right:w}=this.generateLineHtml(b,v);u.left+=S,u.right+=w}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(a==null?void 0:a.type)||`${Bn.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var xu={},tg;function d_(){return tg||(tg=1,(function(l){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(F,te){var X=F.length,me=0,oe=1,Ee=2,pe=me,k=null,J=null,he="",Se=[],De=!1,_=0,z=0,B="{{",se="}}";function P(){he.length>0&&(Se.push({tag:"_t",text:new String(he)}),he="")}function fe(){for(var Ce=!0,Ye=z;Ye<Se.length;Ye++)if(Ce=a.tags[Se[Ye].tag]<a.tags._v||Se[Ye].tag=="_t"&&Se[Ye].text.match(r)===null,!Ce)return!1;return Ce}function ge(Ce,Ye){if(P(),Ce&&fe())for(var qe=z,Me;qe<Se.length;qe++)Se[qe].text&&((Me=Se[qe+1])&&Me.tag==">"&&(Me.indent=Se[qe].text.toString()),Se.splice(qe,1));else Ye||Se.push({tag:`
56
+ `});De=!1,z=Se.length}function Oe(Ce,Ye){var qe="="+se,Me=Ce.indexOf(qe,Ye),Ct=b(Ce.substring(Ce.indexOf("=",Ye)+1,Me)).split(" ");return B=Ct[0],se=Ct[Ct.length-1],Me+qe.length-1}for(te&&(te=te.split(" "),B=te[0],se=te[1]),_=0;_<X;_++)pe==me?v(B,F,_)?(--_,P(),pe=oe):F.charAt(_)==`
57
+ `?ge(De):he+=F.charAt(_):pe==oe?(_+=B.length-1,J=a.tags[F.charAt(_+1)],k=J?F.charAt(_+1):"_v",k=="="?(_=Oe(F,_),pe=me):(J&&_++,pe=Ee),De=_):v(se,F,_)?(Se.push({tag:k,n:b(he),otag:B,ctag:se,i:k=="/"?De-B.length:_+se.length}),he="",_+=se.length-1,pe=me,k=="{"&&(se=="}}"?_++:m(Se[Se.length-1]))):he+=F.charAt(_);return ge(De,!0),Se};function m(M){M.n.substr(M.n.length-1)==="}"&&(M.n=M.n.substring(0,M.n.length-1))}function b(M){return M.trim?M.trim():M.replace(/^\s*|\s*$/g,"")}function v(M,F,te){if(F.charAt(te)!=M.charAt(0))return!1;for(var X=1,me=M.length;X<me;X++)if(F.charAt(te+X)!=M.charAt(X))return!1;return!0}var S={_t:!0,"\n":!0,$:!0,"/":!0};function w(M,F,te,X){var me=[],oe=null,Ee=null,pe=null;for(Ee=te[te.length-1];M.length>0;){if(pe=M.shift(),Ee&&Ee.tag=="<"&&!(pe.tag in S))throw new Error("Illegal content in < super tag.");if(a.tags[pe.tag]<=a.tags.$||T(pe,X))te.push(pe),pe.nodes=w(M,pe.tag,te,X);else if(pe.tag=="/"){if(te.length===0)throw new Error("Closing tag without opener: /"+pe.n);if(oe=te.pop(),pe.n!=oe.n&&!C(pe.n,oe.n,X))throw new Error("Nesting error: "+oe.n+" vs. "+pe.n);return oe.end=pe.i,me}else pe.tag==`
58
+ `&&(pe.last=M.length==0||M[0].tag==`
59
+ `);me.push(pe)}if(te.length>0)throw new Error("missing closing tag: "+te.pop().n);return me}function T(M,F){for(var te=0,X=F.length;te<X;te++)if(F[te].o==M.n)return M.tag="#",!0}function C(M,F,te){for(var X=0,me=te.length;X<me;X++)if(te[X].c==M&&te[X].o==F)return!0}function x(M){var F=[];for(var te in M)F.push('"'+D(te)+'": function(c,p,t,i) {'+M[te]+"}");return"{ "+F.join(",")+" }"}function A(M){var F=[];for(var te in M.partials)F.push('"'+D(te)+'":{name:"'+D(M.partials[te].name)+'", '+A(M.partials[te])+"}");return"partials: {"+F.join(",")+"}, subs: "+x(M.subs)}a.stringify=function(M,F,te){return"{code: function (c,p,i) { "+a.wrapMain(M.code)+" },"+A(M)+"}"};var I=0;a.generate=function(M,F,te){I=0;var X={code:"",subs:{},partials:{}};return a.walk(M,X),te.asString?this.stringify(X,F,te):this.makeTemplate(X,F,te)},a.wrapMain=function(M){return'var t=this;t.b(i=i||"");'+M+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(M,F,te){var X=this.makePartials(M);return X.code=new Function("c","p","i",this.wrapMain(M.code)),new this.template(X,F,this,te)},a.makePartials=function(M){var F,te={subs:{},partials:M.partials,name:M.name};for(F in te.partials)te.partials[F]=this.makePartials(te.partials[F]);for(F in M.subs)te.subs[F]=new Function("c","p","t","i",M.subs[F]);return te};function D(M){return M.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function W(M){return~M.indexOf(".")?"d":"f"}function q(M,F){var te="<"+(F.prefix||""),X=te+M.n+I++;return F.partials[X]={name:M.n,partials:{}},F.code+='t.b(t.rp("'+D(X)+'",c,p,"'+(M.indent||"")+'"));',X}a.codegen={"#":function(M,F){F.code+="if(t.s(t."+W(M.n)+'("'+D(M.n)+'",c,p,1),c,p,0,'+M.i+","+M.end+',"'+M.otag+" "+M.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(M.nodes,F),F.code+="});c.pop();}"},"^":function(M,F){F.code+="if(!t.s(t."+W(M.n)+'("'+D(M.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(M.nodes,F),F.code+="};"},">":q,"<":function(M,F){var te={partials:{},code:"",subs:{},inPartial:!0};a.walk(M.nodes,te);var X=F.partials[q(M,F)];X.subs=te.subs,X.partials=te.partials},$:function(M,F){var te={subs:{},code:"",partials:F.partials,prefix:M.n};a.walk(M.nodes,te),F.subs[M.n]=te.code,F.inPartial||(F.code+='t.sub("'+D(M.n)+'",c,p,i);')},"\n":function(M,F){F.code+=ie('"\\n"'+(M.last?"":" + i"))},_v:function(M,F){F.code+="t.b(t.v(t."+W(M.n)+'("'+D(M.n)+'",c,p,0)));'},_t:function(M,F){F.code+=ie('"'+D(M.text)+'"')},"{":Z,"&":Z};function Z(M,F){F.code+="t.b(t.t(t."+W(M.n)+'("'+D(M.n)+'",c,p,0)));'}function ie(M){return"t.b("+M+");"}a.walk=function(M,F){for(var te,X=0,me=M.length;X<me;X++)te=a.codegen[M[X].tag],te&&te(M[X],F);return F},a.parse=function(M,F,te){return te=te||{},w(M,"",[],te.sectionTags||[])},a.cache={},a.cacheKey=function(M,F){return[M,!!F.asString,!!F.disableLambda,F.delimiters,!!F.modelGet].join("||")},a.compile=function(M,F){F=F||{};var te=a.cacheKey(M,F),X=this.cache[te];if(X){var me=X.partials;for(var oe in me)delete me[oe].instance;return X}return X=this.generate(this.parse(this.scan(M,F.delimiters),M,F),M,F),this.cache[te]=X}})(l)})(xu)),xu}var Au={},ng;function h_(){return ng||(ng=1,(function(l){(function(a){a.Template=function(w,T,C,x){w=w||{},this.r=w.code||this.r,this.c=C,this.options=x||{},this.text=T||"",this.partials=w.partials||{},this.subs=w.subs||{},this.buf=""},a.Template.prototype={r:function(w,T,C){return""},v,t:b,render:function(T,C,x){return this.ri([T],C||{},x)},ri:function(w,T,C){return this.r(w,T,C)},ep:function(w,T){var C=this.partials[w],x=T[C.name];if(C.instance&&C.base==x)return C.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[w].base=x,C.subs){T.stackText||(T.stackText={});for(key in C.subs)T.stackText[key]||(T.stackText[key]=this.activeSub!==void 0&&T.stackText[this.activeSub]?T.stackText[this.activeSub]:this.text);x=s(x,C.subs,C.partials,this.stackSubs,this.stackPartials,T.stackText)}return this.partials[w].instance=x,x},rp:function(w,T,C,x){var A=this.ep(w,C);return A?A.ri(T,C,x):""},rs:function(w,T,C){var x=w[w.length-1];if(!S(x)){C(w,T,this);return}for(var A=0;A<x.length;A++)w.push(x[A]),C(w,T,this),w.pop()},s:function(w,T,C,x,A,I,D){var W;return S(w)&&w.length===0?!1:(typeof w=="function"&&(w=this.ms(w,T,C,x,A,I,D)),W=!!w,!x&&W&&T&&T.push(typeof w=="object"?w:T[T.length-1]),W)},d:function(w,T,C,x){var A,I=w.split("."),D=this.f(I[0],T,C,x),W=this.options.modelGet,q=null;if(w==="."&&S(T[T.length-2]))D=T[T.length-1];else for(var Z=1;Z<I.length;Z++)A=r(I[Z],D,W),A!==void 0?(q=D,D=A):D="";return x&&!D?!1:(!x&&typeof D=="function"&&(T.push(q),D=this.mv(D,T,C),T.pop()),D)},f:function(w,T,C,x){for(var A=!1,I=null,D=!1,W=this.options.modelGet,q=T.length-1;q>=0;q--)if(I=T[q],A=r(w,I,W),A!==void 0){D=!0;break}return D?(!x&&typeof A=="function"&&(A=this.mv(A,T,C)),A):x?!1:""},ls:function(w,T,C,x,A,I){var D=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(b(w.call(T,A,C)),T,x)),this.options.delimiters=D,!1},ct:function(w,T,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(w,this.options).render(T,C)},b:function(w){this.buf+=w},fl:function(){var w=this.buf;return this.buf="",w},ms:function(w,T,C,x,A,I,D){var W,q=T[T.length-1],Z=w.call(q);return typeof Z=="function"?x?!0:(W=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(Z,q,T,C,W.substring(A,I),D)):Z},mv:function(w,T,C){var x=T[T.length-1],A=w.call(x);return typeof A=="function"?this.ct(b(A.call(x)),x,C):A},sub:function(w,T,C,x){var A=this.subs[w];A&&(this.activeSub=w,A(T,C,this,x),this.activeSub=!1)}};function r(w,T,C){var x;return T&&typeof T=="object"&&(T[w]!==void 0?x=T[w]:C&&T.get&&typeof T.get=="function"&&(x=T.get(w))),x}function s(w,T,C,x,A,I){function D(){}D.prototype=w;function W(){}W.prototype=w.subs;var q,Z=new D;Z.subs=new W,Z.subsText={},Z.buf="",x=x||{},Z.stackSubs=x,Z.subsText=I;for(q in T)x[q]||(x[q]=T[q]);for(q in x)Z.subs[q]=x[q];A=A||{},Z.stackPartials=A;for(q in C)A[q]||(A[q]=C[q]);for(q in A)Z.partials[q]=A[q];return Z}var u=/&/g,d=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(w){return String(w??"")}function v(w){return w=b(w),m.test(w)?w.replace(u,"&amp;").replace(d,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):w}var S=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"}})(l)})(Au)),Au}var Ru,ag;function p_(){if(ag)return Ru;ag=1;var l=d_();return l.Template=h_().Template,l.template=l.Template,Ru=l,Ru}var Wt=p_();const fn={};fn["file-summary-line"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
60
+ `+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
61
+ `+r),s.b(s.rp("<fileIcon0",l,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",l,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",l,a,0))),s.b("</a>"),s.b(`
62
+ `+r),s.b(' <span class="d2h-file-stats">'),s.b(`
63
+ `+r),s.b(' <span class="d2h-lines-added">'),s.b(s.v(s.f("addedLines",l,a,0))),s.b("</span>"),s.b(`
64
+ `+r),s.b(' <span class="d2h-lines-deleted">'),s.b(s.v(s.f("deletedLines",l,a,0))),s.b("</span>"),s.b(`
65
+ `+r),s.b(" </span>"),s.b(`
66
+ `+r),s.b(" </span>"),s.b(`
67
+ `+r),s.b("</li>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});fn["file-summary-wrapper"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-file-list-wrapper '),s.b(s.v(s.f("colorScheme",l,a,0))),s.b('">'),s.b(`
68
+ `+r),s.b(' <div class="d2h-file-list-header">'),s.b(`
69
+ `+r),s.b(' <span class="d2h-file-list-title">Files changed ('),s.b(s.v(s.f("filesNumber",l,a,0))),s.b(")</span>"),s.b(`
70
+ `+r),s.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),s.b(`
71
+ `+r),s.b(' <a class="d2h-file-switch d2h-show">show</a>'),s.b(`
72
+ `+r),s.b(" </div>"),s.b(`
73
+ `+r),s.b(' <ol class="d2h-file-list">'),s.b(`
74
+ `+r),s.b(" "),s.b(s.t(s.f("files",l,a,0))),s.b(`
75
+ `+r),s.b(" </ol>"),s.b(`
76
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});fn["generic-block-header"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
77
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",l,a,0))),s.b(" "),s.b(s.v(s.d("CSSLineClass.INFO",l,a,0))),s.b('"></td>'),s.b(`
78
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",l,a,0))),s.b('">'),s.b(`
79
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",l,a,0))),s.b('">'),s.s(s.f("blockHeader",l,a,1),l,a,0,156,173,"{{ }}")&&(s.rs(l,a,function(u,d,p){p.b(p.t(p.f("blockHeader",u,d,0)))}),l.pop()),s.s(s.f("blockHeader",l,a,1),l,a,1,0,0,"")||s.b("&nbsp;"),s.b("</div>"),s.b(`
80
+ `+r),s.b(" </td>"),s.b(`
81
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});fn["generic-empty-diff"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
82
+ `+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",l,a,0))),s.b('">'),s.b(`
83
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",l,a,0))),s.b('">'),s.b(`
84
+ `+r),s.b(" File without changes"),s.b(`
85
+ `+r),s.b(" </div>"),s.b(`
86
+ `+r),s.b(" </td>"),s.b(`
87
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});fn["generic-file-path"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-file-name-wrapper">'),s.b(`
88
+ `+r),s.b(s.rp("<fileIcon0",l,a," ")),s.b(' <span class="d2h-file-name">'),s.b(s.v(s.f("fileDiffName",l,a,0))),s.b("</span>"),s.b(`
89
+ `+r),s.b(s.rp("<fileTag1",l,a," ")),s.b("</span>"),s.b(`
90
+ `+r),s.b('<label class="d2h-file-collapse">'),s.b(`
91
+ `+r),s.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),s.b(`
92
+ `+r),s.b(" Viewed"),s.b(`
93
+ `+r),s.b("</label>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});fn["generic-line"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
94
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",l,a,0))),s.b(" "),s.b(s.v(s.f("type",l,a,0))),s.b('">'),s.b(`
95
+ `+r),s.b(" "),s.b(s.t(s.f("lineNumber",l,a,0))),s.b(`
96
+ `+r),s.b(" </td>"),s.b(`
97
+ `+r),s.b(' <td class="'),s.b(s.v(s.f("type",l,a,0))),s.b('">'),s.b(`
98
+ `+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",l,a,0))),s.b('">'),s.b(`
99
+ `+r),s.s(s.f("prefix",l,a,1),l,a,0,162,238,"{{ }}")&&(s.rs(l,a,function(u,d,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,d,0))),p.b("</span>"),p.b(`
100
+ `+r)}),l.pop()),s.s(s.f("prefix",l,a,1),l,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),s.b(`
101
+ `+r)),s.s(s.f("content",l,a,1),l,a,0,371,445,"{{ }}")&&(s.rs(l,a,function(u,d,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,d,0))),p.b("</span>"),p.b(`
102
+ `+r)}),l.pop()),s.s(s.f("content",l,a,1),l,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-ctn"><br></span>'),s.b(`
103
+ `+r)),s.b(" </div>"),s.b(`
104
+ `+r),s.b(" </td>"),s.b(`
105
+ `+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});fn["generic-wrapper"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-wrapper '),s.b(s.v(s.f("colorScheme",l,a,0))),s.b('">'),s.b(`
106
+ `+r),s.b(" "),s.b(s.t(s.f("content",l,a,0))),s.b(`
107
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});fn["icon-file-added"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),s.b(`
108
+ `+r),s.b(' width="14">'),s.b(`
109
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),s.b(`
110
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});fn["icon-file-changed"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),s.b(`
111
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
112
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),s.b(`
113
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});fn["icon-file-deleted"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),s.b(`
114
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
115
+ `+r),s.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),s.b(`
116
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});fn["icon-file-renamed"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),s.b(`
117
+ `+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
118
+ `+r),s.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),s.b(`
119
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});fn["icon-file"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),s.b(`
120
+ `+r),s.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),s.b(`
121
+ `+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});fn["line-by-line-file-diff"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",l,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",l,a,0))),s.b('">'),s.b(`
122
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
123
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",l,a,0))),s.b(`
124
+ `+r),s.b(" </div>"),s.b(`
125
+ `+r),s.b(' <div class="d2h-file-diff">'),s.b(`
126
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
127
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
128
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
129
+ `+r),s.b(" "),s.b(s.t(s.f("diffs",l,a,0))),s.b(`
130
+ `+r),s.b(" </tbody>"),s.b(`
131
+ `+r),s.b(" </table>"),s.b(`
132
+ `+r),s.b(" </div>"),s.b(`
133
+ `+r),s.b(" </div>"),s.b(`
134
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});fn["line-by-line-numbers"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<div class="line-num1">'),s.b(s.v(s.f("oldNumber",l,a,0))),s.b("</div>"),s.b(`
135
+ `+r),s.b('<div class="line-num2">'),s.b(s.v(s.f("newNumber",l,a,0))),s.b("</div>"),s.fl()},partials:{},subs:{}});fn["side-by-side-file-diff"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",l,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",l,a,0))),s.b('">'),s.b(`
136
+ `+r),s.b(' <div class="d2h-file-header">'),s.b(`
137
+ `+r),s.b(" "),s.b(s.t(s.f("filePath",l,a,0))),s.b(`
138
+ `+r),s.b(" </div>"),s.b(`
139
+ `+r),s.b(' <div class="d2h-files-diff">'),s.b(`
140
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
141
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
142
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
143
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
144
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.left",l,a,0))),s.b(`
145
+ `+r),s.b(" </tbody>"),s.b(`
146
+ `+r),s.b(" </table>"),s.b(`
147
+ `+r),s.b(" </div>"),s.b(`
148
+ `+r),s.b(" </div>"),s.b(`
149
+ `+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
150
+ `+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
151
+ `+r),s.b(' <table class="d2h-diff-table">'),s.b(`
152
+ `+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
153
+ `+r),s.b(" "),s.b(s.t(s.d("diffs.right",l,a,0))),s.b(`
154
+ `+r),s.b(" </tbody>"),s.b(`
155
+ `+r),s.b(" </table>"),s.b(`
156
+ `+r),s.b(" </div>"),s.b(`
157
+ `+r),s.b(" </div>"),s.b(`
158
+ `+r),s.b(" </div>"),s.b(`
159
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});fn["tag-file-added"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});fn["tag-file-changed"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});fn["tag-file-deleted"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});fn["tag-file-renamed"]=new Wt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class m_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[d,p])=>{const y=Wt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},fn),a),s)}static compile(a){return Wt.compile(a,{asString:!1})}render(a,r,s,u,d){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,d)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const g_=Object.assign(Object.assign(Object.assign({},Lb),zb),{outputFormat:zE.LINE_BY_LINE,drawFileList:!0});function b_(l,a={}){const r=Object.assign(Object.assign({},g_),a),s=typeof l=="string"?YE(l,r):l,u=new m_(r),{colorScheme:d}=r,p={colorScheme:d},y=r.drawFileList?new i_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new f_(u,r).render(s):new r_(u,r).render(s);return y+g}var Ou=Ob();function Ua(l){const a=[],r=l.split(`
160
+ `);let s=null,u=null;const d=()=>{s&&u&&a.push({path:u,patch:s.join(`
161
+ `)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),a}function y_(l,a){const r=new Set(a);return Ua(l).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
+ `)}function v_(l){return E_(l)}function E_(l,a){const s=new Map;for(const{path:u,patch:d}of Ua(l)){const p=new Map;let y=0,g=!1;const m=d.split(`
163
+ `);for(let b=0;b<m.length;b++){const v=m[b],S=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(S){y=Number(S[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}s.set(u,p)}return s}function __(l){const a=new Map;for(const[r,s]of v_(l))a.set(r,new Set(s.keys()));return a}function S_(l,a){const r=new Set(a.flatMap(s=>s.files));return Ua(l).map(s=>s.path).filter(s=>!r.has(s))}function N_(l){return new Map(Ua(l).map(a=>[a.path,a.patch.split(`
164
+ `).length]))}function w_(l){const a=l.split(`
165
+ `),r=a.findIndex(p=>p.startsWith("@@")),s=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(s.length>0?s:a).join(`
166
+ `);let d=2166136261;for(let p=0;p<u.length;p++)d^=u.charCodeAt(p),d=Math.imul(d,16777619);return(d>>>0).toString(16).padStart(8,"0")}const Ub={blocker:"🚨",minor:"⚠️",nit:"🎨"};function ig(l,a){return a?`${Ub[a]} **${a}** — ${l}`:l}const T_=["inbox","awaiting","drafted"],Af=["requests","settled","sent","archived"],ku={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function lg(l){return l.status==="awaiting"||l.status==="running"?"awaiting":l.status==="sent"?"sent":"drafted"}const Hs=l=>!!l.pr.state&&l.pr.state!=="OPEN",sg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function jl(l){return[...l].sort((a,r)=>sg.indexOf(a.status)-sg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const jb=["sent","reviewed","skipped"];function qs(l){return jl(l.filter(a=>!Hs(a)&&!jb.includes(a.status)))}function x_(l,a,r){return qs(l).filter(s=>s.key===a||!r.has(s.key))}function A_(l,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(l).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return jl(l.filter(u=>s.has(u.id)&&!r.has(u.id)))}const R_=(l,a)=>a.some(r=>r.id===l.id);function O_(l,a){const r=l.filter(u=>!Hs(u)),s=jl(r.filter(u=>!jb.includes(u.status)));return{inbox:s,awaiting:s.filter(u=>lg(u)==="awaiting"),drafted:s.filter(u=>lg(u)==="drafted"),requests:A_(l,a),settled:jl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:jl(r.filter(u=>u.status==="sent")),archived:jl(l.filter(Hs))}}function k_(l,a){return Af.includes(l)&&a[l].length===0?"inbox":l}function Bb(l){var a,r;return l.reason==="own-review"?((a=l.review)==null?void 0:a.at)??l.at:l.reason==="own-reply"?((r=l.reply)==null?void 0:r.at)??l.at:l.at}const co={"own-review":{tag:"reviewed on GitHub",meta:l=>`you reviewed this on GitHub on ${l}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:l=>`you replied on GitHub on ${l}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:l=>`nobody was asking for this any more on ${l}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function C_(l){var a;return Hs(l)?((a=l.pr.state)==null?void 0:a.toLowerCase())??null:l.handoff?`handed to @${l.handoff.to}`:l.filed?co[l.filed.reason].tag:l.status==="reviewed"||l.status==="skipped"?l.status:null}function M_(l,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===l.id))==null?void 0:r.reply)??"unknown":"unknown"}const D_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},L_=l=>D_[l];function z_(l){const a=Zf[l.event]??l.event,r=new Date(l.at).toLocaleDateString();return{label:l.auto?"auto-sent a review":"you replied with a review",title:`${l.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function U_(l){const a=co[l.reason],r=new Date(Bb(l)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function j_(l){const a=new Date(l.at).toLocaleDateString();return{label:`handed to @${l.to}`,title:l.withdrewYours?`You handed this to @${l.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${l.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const B_=(l,a)=>l.handoff?j_(l.handoff):l.sent?z_(l.sent):l.filed?U_(l.filed):L_(a);function I_(l){const a=l.length,r=a===1?"1 review request":`${a} review requests`,s=l.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Ib(l,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(l).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const H_={approve:"approve",comment:"comment",request_changes:"changes"},Zf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function q_(l){return l.status==="running"?{label:"reviewing…",tone:"running"}:l.status==="awaiting"?{label:"review now",tone:"awaiting"}:l.status==="failed"?{label:"run failed",tone:"failed"}:l.sent?{label:`sent · ${Zf[l.sent.event]??l.sent.event}`,tone:"sent"}:l.verdict?{label:`${l.verdict.recommendation.replace("_"," ")} ${l.verdict.confidence}%`,tone:H_[l.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Cu(l){return l.trusted?"ran the code":l.withSource?"read the full source":"read the diff only"}function G_(l){if(l.commentCount===0)return"no comments drafted";const a=[`${l.commentCount} comment${l.commentCount===1?"":"s"} drafted`];return l.driftedCount&&a.push(`${l.driftedCount} off-diff`),l.gradedCount&&a.push(l.blockerCount?`${l.blockerCount} blocker${l.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function $_(l,a,r=Date.now()){var u,d;if(l.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Ib(l.updatedAt,r)} ago`,Cu(l)]};if(l.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(l.status==="failed")return{reasoning:l.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(l.sent)return{reasoning:`Sent to GitHub as ${Zf[l.sent.event]??l.sent.event} on ${new Date(l.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`+(l.handoff?` GitHub asks @${l.handoff.to} for it now.`:""),meta:[...l.handoff?[`you handed this to @${l.handoff.to}`]:[],l.sent.auto?"auto-sent by the daemon":"sent by you",Cu(l)]};const s=[Cu(l)];if(l.handoff?s.unshift(`you handed this to @${l.handoff.to} on ${new Date(l.handoff.at).toLocaleDateString()}`):l.filed?s.unshift(co[l.filed.reason].meta(new Date(Bb(l.filed)).toLocaleDateString())):l.status==="reviewed"?s.unshift("you marked this reviewed"):l.status==="skipped"&&s.unshift("you skipped this"),l.costUsd!=null&&s.push(`≈$${l.costUsd.toFixed(2)} at API rates`),s.push(G_(l)),a!=null&&a.enabled&&l.status==="ready"&&((u=l.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(l.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${l.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),l.handoff){const p=l.commentCount>0||l.verdict!=null;return{reasoning:`GitHub asks @${l.handoff.to} for this review now${l.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return l.filed?{reasoning:co[l.filed.reason].reasoning,meta:s}:{reasoning:((d=l.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:s}}const Y_="/favicon.svg",F_="/favicon-dot.svg",P_=l=>qs(l).length>0,K_=l=>l?F_:Y_;function Z_(l){const a=K_(P_(l)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Pt(l,a){const r=await fetch(l,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${l}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const Xf=async()=>{const l=await Pt("/api/reviews");return Z_(l),l},Hb=()=>Pt("/api/daemon"),rg=l=>Pt(`/api/reviews/${encodeURIComponent(l)}`),X_=(l,a,r)=>Pt(`/api/reviews/${encodeURIComponent(l)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),io=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}`,{method:"PATCH",body:JSON.stringify(a)}),V_=(l,a,r)=>Pt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),Q_=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/comments`,{method:"POST",body:JSON.stringify(a)}),W_=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"DELETE"}),J_=l=>Pt("/api/reviews",{method:"POST",body:JSON.stringify({input:l})}),e0=l=>Pt(`/api/reviews/${encodeURIComponent(l)}/refresh`,{method:"POST"}),qb=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Rf=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/chat`,{method:"POST",body:JSON.stringify(a)}),t0=l=>Pt(`/api/reviews/${encodeURIComponent(l)}/chat/pending`,{method:"DELETE"}),n0=l=>Pt(`/api/reviews/${encodeURIComponent(l)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Gb=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/send-preview?event=${a}`),a0=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),i0=l=>Pt(`/api/reviews/${encodeURIComponent(l)}/raised`,{method:"POST"}),l0=l=>Pt(`/api/reviews/${encodeURIComponent(l)}/reviewers`),s0=(l,a)=>Pt(`/api/reviews/${encodeURIComponent(l)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),r0=l=>`/api/reviews/${encodeURIComponent(l)}/export`,o0=()=>Pt("/api/config"),Mu=(l,a=!1)=>Pt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:l,remove:a})}),Du=l=>Pt("/api/config/daemon",{method:"POST",body:JSON.stringify(l)}),$b="cerber.handoff.recent",Yb=5,c0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Fb=l=>c0.test(l);function u0(l){try{const a=JSON.parse(l??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Fb(r)).slice(0,Yb):[]}catch{return[]}}function Pb(){try{return u0(localStorage.getItem($b))}catch{return[]}}function f0(l,a){const r=l.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Yb)}function d0(l){const a=f0(Pb(),l);try{localStorage.setItem($b,JSON.stringify(a))}catch{}return a}const Of=l=>l.trim().replace(/^@/,"");function h0(l,a){const r=new Set,s=[];for(const u of[...a,...l]){const d=u.toLowerCase();r.has(d)||(r.add(d),s.push({login:u,recent:a.some(p=>p.toLowerCase()===d)}))}return s}function p0(l,a){const r=Of(a).toLowerCase();if(!r)return l;const s=l.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,d=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&d(p)),...s.filter(p=>!d(p))]}function Lu(l){return l.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function kf(l){return l.nodeName.toLowerCase()}function og(l){const a=[],r=(s,u)=>{for(let d=s.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(a.push({event:"start",offset:u,node:d}),u=r(d,u),kf(d).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:d}));return u};return r(l,0),a}function m0(l,a,r){let s=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!l.length||!a.length?l.length?l:a:l[0].offset!==a[0].offset?l[0].offset<a[0].offset?l:a:a[0].event==="start"?l:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${kf(v)} ${Array().map.call(v.attributes,S=>`${S.nodeName}="${Lu(S.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+kf(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;l.length||a.length;){let v=y();if(u+=Lu(r.substring(s,v[0].offset)),s=v[0].offset,v===l){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===l&&v.length&&v[0].offset===s);d.reverse().forEach(g)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+Lu(r.substr(s))}const g0={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function b0(l){var a;return(a=g0[l])!==null&&a!==void 0?a:"plaintext"}var zu,cg;function y0(){if(cg)return zu;cg=1;function l(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(ne=>{const ye=R[ne],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&l(ye)}),R}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(R,...ne){const ye=Object.create(null);for(const ze in R)ye[ze]=R[ze];return ne.forEach(function(ze){for(const et in ze)ye[et]=ze[et]}),ye}const u="</span>",d=R=>!!R.scope,p=(R,{prefix:ne})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const ye=R.split(".");return[`${ne}${ye.shift()}`,...ye.map((ze,et)=>`${ze}${"_".repeat(et+1)}`)].join(" ")}return`${ne}${R}`};class y{constructor(ne,ye){this.buffer="",this.classPrefix=ye.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!d(ne))return;const ye=p(ne.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(ne){d(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(R={})=>{const ne={children:[]};return Object.assign(ne,R),ne};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ne){this.top.children.push(ne)}openNode(ne){const ye=g({scope:ne});this.add(ye),this.stack.push(ye)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,ye){return typeof ye=="string"?ne.addText(ye):ye.children&&(ne.openNode(ye),ye.children.forEach(ze=>this._walk(ne,ze)),ne.closeNode(ye)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(ye=>typeof ye=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,ye){const ze=ne.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(R){return R?typeof R=="string"?R:R.source:null}function S(R){return C("(?=",R,")")}function w(R){return C("(?:",R,")*")}function T(R){return C("(?:",R,")?")}function C(...R){return R.map(ye=>v(ye)).join("")}function x(R){const ne=R[R.length-1];return typeof ne=="object"&&ne.constructor===Object?(R.splice(R.length-1,1),ne):{}}function A(...R){return"("+(x(R).capture?"":"?:")+R.map(ze=>v(ze)).join("|")+")"}function I(R){return new RegExp(R.toString()+"|").exec("").length-1}function D(R,ne){const ye=R&&R.exec(ne);return ye&&ye.index===0}const W=new RegExp(A(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function q(R,{joinWith:ne}){let ye=0;return R.map(ze=>{ye+=1;const et=ye;let lt=v(ze),we="";for(;lt.length>0;){const _e=W.exec(lt);if(!_e){we+=lt;break}we+=lt.substring(0,_e.index),lt=lt.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?we+="\\"+String(Number(_e[1])+et):(we+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&ye++)}return we}).map(ze=>`(${ze})`).join(ne)}const Z=/\b\B/,ie="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",F="\\b\\d+(\\.\\d+)?",te="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",oe=(R={})=>{const ne=/^#![ ]*\//;return R.binary&&(R.begin=C(ne,/.*\b/,R.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},R)},Ee={begin:"\\\\[\\s\\S]",relevance:0},pe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ee]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ee]},J={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},he=function(R,ne,ye={}){const ze=s({scope:"comment",begin:R,end:ne,contains:[]},ye);ze.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const et=A("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ze.contains.push({begin:C(/[ ]+/,"(",et,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},Se=he("//","$"),De=he("/\\*","\\*/"),_=he("#","$"),z={scope:"number",begin:F,relevance:0},B={scope:"number",begin:te,relevance:0},se={scope:"number",begin:X,relevance:0},P={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ee,{begin:/\[/,end:/\]/,relevance:0,contains:[Ee]}]},fe={scope:"title",begin:ie,relevance:0},ge={scope:"title",begin:M,relevance:0},Oe={begin:"\\.\\s*"+M,relevance:0};var Ye=Object.freeze({__proto__:null,APOS_STRING_MODE:pe,BACKSLASH_ESCAPE:Ee,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:X,COMMENT:he,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:Se,C_NUMBER_MODE:B,C_NUMBER_RE:te,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(ne,ye)=>{ye.data._beginMatch=ne[1]},"on:end":(ne,ye)=>{ye.data._beginMatch!==ne[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:_,IDENT_RE:ie,MATCH_NOTHING_RE:Z,METHOD_GUARD:Oe,NUMBER_MODE:z,NUMBER_RE:F,PHRASAL_WORDS_MODE:J,QUOTE_STRING_MODE:k,REGEXP_MODE:P,RE_STARTERS_RE:me,SHEBANG:oe,TITLE_MODE:fe,UNDERSCORE_IDENT_RE:M,UNDERSCORE_TITLE_MODE:ge});function qe(R,ne){R.input[R.index-1]==="."&&ne.ignoreMatch()}function Me(R,ne){R.className!==void 0&&(R.scope=R.className,delete R.className)}function Ct(R,ne){ne&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=qe,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Pe(R,ne){Array.isArray(R.illegal)&&(R.illegal=A(...R.illegal))}function In(R,ne){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function Je(R,ne){R.relevance===void 0&&(R.relevance=1)}const St=(R,ne)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},R);Object.keys(R).forEach(ze=>{delete R[ze]}),R.keywords=ye.keywords,R.begin=C(ye.beforeMatch,S(ye.begin)),R.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},R.relevance=0,delete ye.beforeMatch},On=["of","and","for","in","not","or","if","then","parent","list","value"],Mt="keyword";function It(R,ne,ye=Mt){const ze=Object.create(null);return typeof R=="string"?et(ye,R.split(" ")):Array.isArray(R)?et(ye,R):Object.keys(R).forEach(function(lt){Object.assign(ze,It(R[lt],ne,lt))}),ze;function et(lt,we){ne&&(we=we.map(_e=>_e.toLowerCase())),we.forEach(function(_e){const je=_e.split("|");ze[je[0]]=[lt,ct(je[0],je[1])]})}}function ct(R,ne){return ne?Number(ne):Hn(R)?0:1}function Hn(R){return On.includes(R.toLowerCase())}const Zn={},$e=R=>{console.error(R)},Jt=(R,...ne)=>{console.log(`WARN: ${R}`,...ne)},vt=(R,ne)=>{Zn[`${R}/${ne}`]||(console.log(`Deprecated as of ${R}. ${ne}`),Zn[`${R}/${ne}`]=!0)},yn=new Error;function vn(R,ne,{key:ye}){let ze=0;const et=R[ye],lt={},we={};for(let _e=1;_e<=ne.length;_e++)we[_e+ze]=et[_e],lt[_e+ze]=!0,ze+=I(ne[_e-1]);R[ye]=we,R[ye]._emit=lt,R[ye]._multi=!0}function kn(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw $e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yn;if(typeof R.beginScope!="object"||R.beginScope===null)throw $e("beginScope must be object"),yn;vn(R,R.begin,{key:"beginScope"}),R.begin=q(R.begin,{joinWith:""})}}function En(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw $e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yn;if(typeof R.endScope!="object"||R.endScope===null)throw $e("endScope must be object"),yn;vn(R,R.end,{key:"endScope"}),R.end=q(R.end,{joinWith:""})}}function Xn(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function ra(R){Xn(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),kn(R),En(R)}function Cn(R){function ne(we,_e){return new RegExp(v(we),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(_e?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,je){je.position=this.position++,this.matchIndexes[this.matchAt]=je,this.regexes.push([je,_e]),this.matchAt+=I(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(je=>je[1]);this.matcherRe=ne(q(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const je=this.matcherRe.exec(_e);if(!je)return null;const Rt=je.findIndex((Sn,Vn)=>Vn>0&&Sn!==void 0),gt=this.matchIndexes[Rt];return je.splice(0,Rt),Object.assign(je,gt)}}class ze{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(_e){if(this.multiRegexes[_e])return this.multiRegexes[_e];const je=new ye;return this.rules.slice(_e).forEach(([Rt,gt])=>je.addRule(Rt,gt)),je.compile(),this.multiRegexes[_e]=je,je}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,je){this.rules.push([_e,je]),je.type==="begin"&&this.count++}exec(_e){const je=this.getMatcher(this.regexIndex);je.lastIndex=this.lastIndex;let Rt=je.exec(_e);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(_e)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function et(we){const _e=new ze;return we.contains.forEach(je=>_e.addRule(je.begin,{rule:je,type:"begin"})),we.terminatorEnd&&_e.addRule(we.terminatorEnd,{type:"end"}),we.illegal&&_e.addRule(we.illegal,{type:"illegal"}),_e}function lt(we,_e){const je=we;if(we.isCompiled)return je;[Me,In,ra,St].forEach(gt=>gt(we,_e)),R.compilerExtensions.forEach(gt=>gt(we,_e)),we.__beforeBegin=null,[Ct,Pe,Je].forEach(gt=>gt(we,_e)),we.isCompiled=!0;let Rt=null;return typeof we.keywords=="object"&&we.keywords.$pattern&&(we.keywords=Object.assign({},we.keywords),Rt=we.keywords.$pattern,delete we.keywords.$pattern),Rt=Rt||/\w+/,we.keywords&&(we.keywords=It(we.keywords,R.case_insensitive)),je.keywordPatternRe=ne(Rt,!0),_e&&(we.begin||(we.begin=/\B|\b/),je.beginRe=ne(je.begin),!we.end&&!we.endsWithParent&&(we.end=/\B|\b/),we.end&&(je.endRe=ne(je.end)),je.terminatorEnd=v(je.end)||"",we.endsWithParent&&_e.terminatorEnd&&(je.terminatorEnd+=(we.end?"|":"")+_e.terminatorEnd)),we.illegal&&(je.illegalRe=ne(we.illegal)),we.contains||(we.contains=[]),we.contains=[].concat(...we.contains.map(function(gt){return qt(gt==="self"?we:gt)})),we.contains.forEach(function(gt){lt(gt,je)}),we.starts&&lt(we.starts,_e),je.matcher=et(je),je}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=s(R.classNameAliases||{}),lt(R)}function Ut(R){return R?R.endsWithParent||Ut(R.starts):!1}function qt(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(ne){return s(R,{variants:null},ne)})),R.cachedVariants?R.cachedVariants:Ut(R)?s(R,{starts:R.starts?s(R.starts):null}):Object.isFrozen(R)?s(R):R}var Dt="11.12.0";class ya extends Error{constructor(ne,ye){super(ne),this.name="HTMLInjectionError",this.html=ye}}const _n=r,Mn=s,Ie=Symbol("nomatch"),Gt=7,dn=function(R){const ne=Object.create(null),ye=Object.create(null),ze=[];let et=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",we={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function je(ue){return _e.noHighlightRe.test(ue)}function Rt(ue){let Ne=ue.className+" ";Ne+=ue.parentNode?ue.parentNode.className:"";const Ge=_e.languageDetectRe.exec(Ne);if(Ge){const dt=tn(Ge[1]);return dt||(Jt(lt.replace("{}",Ge[1])),Jt("Falling back to no-highlight mode for this block.",ue)),dt?Ge[1]:"no-highlight"}return Ne.split(/\s+/).find(dt=>je(dt)||tn(dt))}function gt(ue,Ne,Ge){let dt="",kt="";typeof Ne=="object"?(dt=ue,Ge=Ne.ignoreIllegals,kt=Ne.language):(vt("10.7.0","highlight(lang, code, ...args) has been deprecated."),vt("10.7.0",`Please use highlight(code, options) instead.
167
+ https://github.com/highlightjs/highlight.js/issues/2277`),kt=ue,dt=Ne),Ge===void 0&&(Ge=!0);const nn={code:dt,language:kt};Ht("before:highlight",nn);const pn=nn.result?nn.result:Sn(nn.language,nn.code,Ge);return pn.code=nn.code,Ht("after:highlight",pn),pn}function Sn(ue,Ne,Ge,dt){const kt=Object.create(null);function nn(ce,ve){return ce.keywords[ve]}function pn(){if(!Q.keywords){U.addText(ee);return}let ce=0;Q.keywordPatternRe.lastIndex=0;let ve=Q.keywordPatternRe.exec(ee),Le="";for(;ve;){Le+=ee.substring(ce,ve.index);const Ve=an.case_insensitive?ve[0].toLowerCase():ve[0],We=nn(Q,Ve);if(We){const[ca,Gl]=We;if(U.addText(Le),Le="",kt[Ve]=(kt[Ve]||0)+1,kt[Ve]<=Gt&&(Te+=Gl),ca.startsWith("_"))Le+=ve[0];else{const Fs=an.classNameAliases[ca]||ca;jt(ve[0],Fs)}}else Le+=ve[0];ce=Q.keywordPatternRe.lastIndex,ve=Q.keywordPatternRe.exec(ee)}Le+=ee.substring(ce),U.addText(Le)}function Xt(){if(ee==="")return;let ce=null;if(typeof Q.subLanguage=="string"){if(!ne[Q.subLanguage]){U.addText(ee);return}ce=Sn(Q.subLanguage,ee,!0,N[Q.subLanguage]),N[Q.subLanguage]=ce._top}else ce=Qn(ee,Q.subLanguage.length?Q.subLanguage:null);Q.relevance>0&&(Te+=ce.relevance),U.__addSublanguage(ce._emitter,ce.language)}function ht(){Q.subLanguage!=null?Xt():pn(),ee=""}function jt(ce,ve){ce!==""&&(U.startScope(ve),U.addText(ce),U.endScope())}function nl(ce,ve){let Le=1;const Ve=ve.length-1;for(;Le<=Ve;){if(!ce._emit[Le]){Le++;continue}const We=an.classNameAliases[ce[Le]]||ce[Le],ca=ve[Le];We?jt(ca,We):(ee=ca,pn(),ee=""),Le++}}function ii(ce,ve){return ce.scope&&typeof ce.scope=="string"&&U.openNode(an.classNameAliases[ce.scope]||ce.scope),ce.beginScope&&(ce.beginScope._wrap?(jt(ee,an.classNameAliases[ce.beginScope._wrap]||ce.beginScope._wrap),ee=""):ce.beginScope._multi&&(nl(ce.beginScope,ve),ee="")),Q=Object.create(ce,{parent:{value:Q}}),Q}function li(ce,ve,Le){let Ve=D(ce.endRe,Le);if(Ve){if(ce["on:end"]){const We=new a(ce);ce["on:end"](ve,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;ce.endsParent&&ce.parent;)ce=ce.parent;return ce}}if(ce.endsWithParent)return li(ce.parent,ve,Le)}function ja(ce){return Q.matcher.regexIndex===0?(ee+=ce[0],1):(tt=!0,0)}function al(ce){const ve=ce[0],Le=ce.rule,Ve=new a(Le),We=[Le.__beforeBegin,Le["on:begin"]];for(const ca of We)if(ca&&(ca(ce,Ve),Ve.isMatchIgnored))return ja(ve);return Le.skip?ee+=ve:(Le.excludeBegin&&(ee+=ve),ht(),!Le.returnBegin&&!Le.excludeBegin&&(ee=ve)),ii(Le,ce),Le.returnBegin?0:ve.length}function Dn(ce){const ve=ce[0],Le=Ne.substring(ce.index),Ve=li(Q,ce,Le);if(!Ve)return Ie;const We=Q;Q.endScope&&Q.endScope._wrap?(ht(),jt(ve,Q.endScope._wrap)):Q.endScope&&Q.endScope._multi?(ht(),nl(Q.endScope,ce)):We.skip?ee+=ve:(We.returnEnd||We.excludeEnd||(ee+=ve),ht(),We.excludeEnd&&(ee=ve));do Q.scope&&U.closeNode(),!Q.skip&&!Q.subLanguage&&(Te+=Q.relevance),Q=Q.parent;while(Q!==Ve.parent);return Ve.starts&&ii(Ve.starts,ce),We.returnEnd?0:ve.length}function si(){const ce=[];for(let ve=Q;ve!==an;ve=ve.parent)ve.scope&&ce.unshift(ve.scope);ce.forEach(ve=>U.openNode(ve))}let Ba={};function ri(ce,ve){const Le=ve&&ve[0];if(ee+=ce,Le==null)return ht(),0;if(Ba.type==="begin"&&ve.type==="end"&&Ba.index===ve.index&&Le===""){if(ee+=Ne.slice(ve.index,ve.index+1),!et){const Ve=new Error(`0 width match regex (${ue})`);throw Ve.languageName=ue,Ve.badRule=Ba.rule,Ve}return 1}if(Ba=ve,ve.type==="begin")return al(ve);if(ve.type==="illegal"&&!Ge){const Ve=new Error('Illegal lexeme "'+Le+'" for mode "'+(Q.scope||"<unnamed>")+'"');throw Ve.mode=Q,Ve}else if(ve.type==="end"){const Ve=Dn(ve);if(Ve!==Ie)return Ve}if(ve.type==="illegal"&&Le==="")return ve.index===Ne.length||(ee+=`
168
+ `),1;if(He>1e5&&He>ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ee+=Le,Le.length}const an=tn(ue);if(!an)throw $e(lt.replace("{}",ue)),new Error('Unknown language: "'+ue+'"');const Ia=Cn(an);let Aa="",Q=dt||Ia;const N={},U=new _e.__emitter(_e);si();let ee="",Te=0,Re=0,He=0,tt=!1;try{if(an.__emitTokens)an.__emitTokens(Ne,U);else{for(Q.matcher.considerAll();;){He++,tt?tt=!1:Q.matcher.considerAll(),Q.matcher.lastIndex=Re;const ce=Q.matcher.exec(Ne);if(!ce)break;const ve=Ne.substring(Re,ce.index),Le=ri(ve,ce);Re=ce.index+Le}ri(Ne.substring(Re))}return U.finalize(),Aa=U.toHTML(),{language:ue,value:Aa,relevance:Te,illegal:!1,_emitter:U,_top:Q}}catch(ce){if(ce.message&&ce.message.includes("Illegal"))return{language:ue,value:_n(Ne),illegal:!0,relevance:0,_illegalBy:{message:ce.message,index:Re,context:Ne.slice(Re-100,Re+100),mode:ce.mode,resultSoFar:Aa},_emitter:U};if(et)return{language:ue,value:_n(Ne),illegal:!1,relevance:0,errorRaised:ce,_emitter:U,_top:Q};throw ce}}function Vn(ue){const Ne={value:_n(ue),illegal:!1,relevance:0,_top:we,_emitter:new _e.__emitter(_e)};return Ne._emitter.addText(ue),Ne}function Qn(ue,Ne){Ne=Ne||_e.languages||Object.keys(ne);const Ge=Vn(ue),dt=Ne.filter(tn).filter(de).map(ht=>Sn(ht,ue,!1));dt.unshift(Ge);const kt=dt.sort((ht,jt)=>{if(ht.relevance!==jt.relevance)return jt.relevance-ht.relevance;if(ht.language&&jt.language){if(tn(ht.language).supersetOf===jt.language)return 1;if(tn(jt.language).supersetOf===ht.language)return-1}return 0}),[nn,pn]=kt,Xt=nn;return Xt.secondBest=pn,Xt}function Zt(ue,Ne,Ge){const dt=Ne&&ye[Ne]||Ge;ue.classList.add("hljs"),ue.classList.add(`language-${dt}`)}function Ot(ue){let Ne=null;const Ge=Rt(ue);if(je(Ge))return;if(Ht("before:highlightElement",{el:ue,language:Ge}),ue.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ue);return}if(ue.children.length>0&&(_e.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ue)),_e.throwUnescapedHTML))throw new ya("One of your code blocks includes unescaped HTML.",ue.innerHTML);Ne=ue;const dt=Ne.textContent,kt=Ge?gt(dt,{language:Ge,ignoreIllegals:!0}):Qn(dt);ue.innerHTML=kt.value,ue.dataset.highlighted="yes",Zt(ue,Ge,kt.language),ue.result={language:kt.language,re:kt.relevance,relevance:kt.relevance},kt.secondBest&&(ue.secondBest={language:kt.secondBest.language,relevance:kt.secondBest.relevance}),Ht("after:highlightElement",{el:ue,result:kt,text:dt})}function en(ue){_e=Mn(_e,ue)}const ut=()=>{oa(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function qn(){oa(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ai=!1;function oa(){function ue(){oa()}if(document.readyState==="loading"){ai||window.addEventListener("DOMContentLoaded",ue,!1),ai=!0;return}document.querySelectorAll(_e.cssSelector).forEach(Ot)}function va(ue,Ne){let Ge=null;try{Ge=Ne(R)}catch(dt){if($e("Language definition for '{}' could not be registered.".replace("{}",ue)),et)$e(dt);else throw dt;Ge=we}Ge.name||(Ge.name=ue),ne[ue]=Ge,Ge.rawDefinition=Ne.bind(null,R),Ge.aliases&&H(Ge.aliases,{languageName:ue})}function Wn(ue){delete ne[ue];for(const Ne of Object.keys(ye))ye[Ne]===ue&&delete ye[Ne]}function Ea(){return Object.keys(ne)}function tn(ue){return ue=(ue||"").toLowerCase(),ne[ue]||ne[ye[ue]]}function H(ue,{languageName:Ne}){typeof ue=="string"&&(ue=[ue]),ue.forEach(Ge=>{ye[Ge.toLowerCase()]=Ne})}function de(ue){const Ne=tn(ue);return Ne&&!Ne.disableAutodetect}function xe(ue){ue["before:highlightBlock"]&&!ue["before:highlightElement"]&&(ue["before:highlightElement"]=Ne=>{ue["before:highlightBlock"](Object.assign({block:Ne.el},Ne))}),ue["after:highlightBlock"]&&!ue["after:highlightElement"]&&(ue["after:highlightElement"]=Ne=>{ue["after:highlightBlock"](Object.assign({block:Ne.el},Ne))})}function be(ue){xe(ue),ze.push(ue)}function Qe(ue){const Ne=ze.indexOf(ue);Ne!==-1&&ze.splice(Ne,1)}function Ht(ue,Ne){const Ge=ue;ze.forEach(function(dt){dt[Ge]&&dt[Ge](Ne)})}function $t(ue){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),Ot(ue)}Object.assign(R,{highlight:gt,highlightAuto:Qn,highlightAll:oa,highlightElement:Ot,highlightBlock:$t,configure:en,initHighlighting:ut,initHighlightingOnLoad:qn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:tn,registerAliases:H,autoDetection:de,inherit:Mn,addPlugin:be,removePlugin:Qe}),R.debugMode=function(){et=!1},R.safeMode=function(){et=!0},R.versionString=Dt,R.regex={concat:C,lookahead:S,either:A,optional:T,anyNumberOfTimes:w};for(const ue in Ye)typeof Ye[ue]=="object"&&l(Ye[ue]);return Object.assign(R,Ye),R},Kt=dn({});return Kt.newInstance=()=>dn({}),zu=Kt,Kt.HighlightJS=Kt,Kt.default=Kt,zu}var Uu,ug;function v0(){if(ug)return Uu;ug=1;function l(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Uu=l,Uu}var ju,fg;function E0(){if(fg)return ju;fg=1;function l(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=a.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],I={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],W=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],q=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],Z=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:A,built_in:[...D,...W,"set","shopt",...q,...Z]},contains:[T,a.SHEBANG(),C,S,p,y,I,g,m,b,v,s]}}return ju=l,ju}var Bu,dg;function _0(){if(dg)return Bu;dg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},S={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},w={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},C=[w,T],x={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},A=r.optional(d)+a.IDENT_RE+"\\s*\\(",I=12,q={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},Z=[...C,m,s,a.C_BLOCK_COMMENT_MODE,S,v],ie={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:Z.concat([{begin:/\(/,end:/\)/,keywords:q,contains:Z.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:q,relevance:0},{begin:A,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,S,m,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,S,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:q,disableAutodetect:!0,illegal:"</",contains:[].concat(ie,M,Z,[...C,{begin:a.IDENT_RE+"::",keywords:q},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:T,strings:v,keywords:q}}}return Bu=l,Bu}var Iu,hg;function S0(){if(hg)return Iu;hg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},S={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},w={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},T=[S,w],C={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},x=r.optional(d)+a.IDENT_RE+"\\s*\\(",A=12,I=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],D=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],W=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],q=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],M={type:D,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:W},F={className:"function.dispatch",relevance:0,keywords:{_hint:q},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},te=[F,...T,g,s,a.C_BLOCK_COMMENT_MODE,v,b],X={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:M,contains:te.concat([{begin:/\(/,end:/\)/,keywords:M,contains:te.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+A+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:M,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:M,relevance:0},{begin:x,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...T]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:M,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(X,me,F,te,[...T,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:M,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:M},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Iu=l,Iu}var Hu,pg;function N0(){if(pg)return Hu;pg=1;function l(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:d.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",S={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},w={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},T={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(T,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},A=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,A]},D={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},W=a.inherit(D,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]});x.contains=[D,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.C_BLOCK_COMMENT_MODE],A.contains=[W,I,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const q={variants:[w,D,I,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},Z={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},ie=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",M={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},q,S,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,Z,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,Z,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ie+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,Z],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[q,S,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},M]}}return Hu=l,Hu}var qu,mg;function w0(){if(mg)return qu;mg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=l(m),S={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",T=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",x=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,S,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+C,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:T},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return qu=g,qu}var Gu,gg;function T0(){if(gg)return Gu;gg=1;function l(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},S=a.inherit(b,{contains:[]}),w=a.inherit(v,{contains:[]});b.contains.push(w),v.contains.push(S);let T=[s,m];return[b,v,S,w].forEach(I=>{I.contains=I.contains.concat(T)}),T=T.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:T},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:T}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Gu=l,Gu}var $u,bg;function x0(){if(bg)return $u;bg=1;function l(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return $u=l,$u}var Yu,yg;function A0(){if(yg)return Yu;yg=1;function l(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},S={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},w="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${T}))?([eE][+-]?(${T})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},ie=[S,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{relevance:0,match:[d,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[S,{begin:s}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=ie,x.contains=ie;const X=[{begin:/^\s*=>/,starts:{end:"$",contains:ie}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:ie}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(X).concat(b).concat(ie)}}return Yu=l,Yu}var Fu,vg;function R0(){if(vg)return Fu;vg=1;function l(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Fu=l,Fu}var Pu,Eg;function O0(){if(Eg)return Pu;Eg=1;function l(a){const r=a.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Pu=l,Pu}var Ku,_g;function k0(){if(_g)return Ku;_g=1;function l(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,S=r.either(m,b,v),w=r.concat(S,"(\\s*\\.\\s*",S,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:w,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,s]}}]}}return Ku=l,Ku}var Zu,Sg;function C0(){if(Sg)return Zu;Sg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,S="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",w=u("(?:\\s*<\\s*"+S+"(?:\\s*,\\s*"+S+")*\\s*>)?",/<@@@>/g,2),I={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},D={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},W={className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:I,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(w,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[W,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(w,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[D,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,D]}}return Zu=d,Zu}var Xu,Ng;function M0(){if(Ng)return Xu;Ng=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,s,u);function g(m){const b=m.regex,v=(ge,{after:Oe})=>{const Ce="</"+ge[0].slice(1);return ge.input.indexOf(Ce,Oe)!==-1},S=l,w={begin:"<>",end:"</>"},T=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ge,Oe)=>{const Ce=ge[0].length+ge.index,Ye=ge.input[Ce];if(Ye==="<"||Ye===","){Oe.ignoreMatch();return}Ye===">"&&(v(ge,{after:Ce})||Oe.ignoreMatch());let qe;const Me=ge.input.substring(Ce);if(qe=Me.match(/^\s*=/)){Oe.ignoreMatch();return}if((qe=Me.match(/^\s+extends\s+/))&&qe.index===0){Oe.ignoreMatch();return}}},x={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},A="[0-9](_?[0-9])*",I=`\\.(${A})`,D="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",W={className:"number",variants:[{begin:`(\\b(${D})((${I})|\\.)?|(${I}))[eE][+-]?(${A})\\b`},{begin:`\\b(${D})\\b((${I})\\b|\\.)?|(${I})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},q={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},Z={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"xml"}},ie={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"graphql"}},F={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,q]},X={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:S+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},me=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,Z,ie,M,F,{match:/\$\d+/},W];q.contains=me.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(me)});const oe=[].concat(X,q.contains),Ee=oe.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(oe)}]),pe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Ee},k={variants:[{match:[/class/,/\s+/,S,/\s+/,/extends/,/\s+/,b.concat(S,"(",b.concat(/\./,S),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,S],scope:{1:"keyword",3:"title.class"}}]},J={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},he={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,S,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[pe],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function _(ge){return b.concat("(?!",ge.join("|"),")")}const z={match:b.concat(/\b/,_([...d,"super","import","await"].map(ge=>`${ge}\\s*\\(`)),S,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:b.concat(/\./,b.lookahead(b.concat(S,/(?![0-9A-Za-z$_(])/))),end:S,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,S,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},pe]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",fe={match:[/const|var|let/,/\s+/,S,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[pe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:Ee,CLASS_REFERENCE:J},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),he,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,Z,ie,M,F,X,{match:/\$\d+/},W,J,{scope:"attr",match:S+b.lookahead(":"),relevance:0},fe,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[X,m.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Ee}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:T},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[pe,m.inherit(m.TITLE_MODE,{begin:S,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+S,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[pe]},z,De,k,se,{match:/\$[(.]/}]}}return Xu=g,Xu}var Vu,wg;function D0(){if(wg)return Vu;wg=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,d,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Vu=r,Vu}var Qu,Tg;function L0(){if(Tg)return Qu;Tg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(d){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const S={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},T=s,C=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},A=x;return A.variants[1].contains=[x],x.variants[1].contains=[A],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,C,y,g,S,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,d.C_LINE_COMMENT_MODE,C],relevance:0},d.C_LINE_COMMENT_MODE,C,S,w,v,d.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},S,w]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
+ `},T]}}return Qu=u,Qu}var Wu,xg;function z0(){if(xg)return Wu;xg=1;const l=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=l(b),S=g,w="and or not only",T="[\\w-]+",C="("+T+"|@\\{"+T+"\\})",x=[],A=[],I=function(oe){return{className:"string",begin:"~?"+oe+".*?"+oe}},D=function(oe,Ee,pe){return{className:oe,begin:Ee,relevance:pe}},W={$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},q={begin:"\\(",end:"\\)",contains:A,keywords:W,relevance:0};A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,I("'"),I('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,q,D("variable","@@?"+T,10),D("variable","@\\{"+T+"\\}"),D("built_in","~?`[^`]*?`"),{className:"attribute",begin:T+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const Z=A.concat({begin:/\{/,end:/\}/,contains:x}),ie={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(A)},M={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:A}}]},F={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:W,returnEnd:!0,contains:A,relevance:0}},te={className:"variable",variants:[{begin:"@"+T+"\\s*:",relevance:15},{begin:"@"+T}],starts:{end:"[;}]",returnEnd:!0,contains:Z}},X={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ie,D("keyword","all\\b"),D("variable","@\\{"+T+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,D("selector-tag",C,0),D("selector-id","#"+C),D("selector-class","\\."+C,0),D("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Z},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:T+`:(:)?(${S.join("|")})`,returnBegin:!0,contains:[X]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,F,te,me,M,X,ie,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Wu=m,Wu}var Ju,Ag;function U0(){if(Ag)return Ju;Ag=1;function l(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},d=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:d.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return Ju=l,Ju}var ef,Rg;function j0(){if(Rg)return ef;Rg=1;function l(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,s]},d={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,s,u,d,p,y]}}return ef=l,ef}var tf,Og;function B0(){if(Og)return tf;Og=1;function l(a){const r=a.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,d={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],S=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(x,A,I="\\1")=>{const D=I==="\\1"?I:r.concat(I,A);return r.concat(r.concat("(?:",x,")"),A,/(?:\\.|[^\\\/])*?/,D,/(?:\\.|[^\\\/])*?/,I,u)},T=(x,A,I)=>r.concat(r.concat("(?:",x,")"),A,/(?:\\.|[^\\\/])*?/,I,u),C=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:w("s|tr|y",r.either(...S,{capture:!0}))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:T("(?:m|qr)?",/\//,/\//)},{begin:T("m|qr",r.either(...S,{capture:!0}),/\1/)},{begin:T("m|qr",/\(/,/\)/)},{begin:T("m|qr",/\[/,/\]/)},{begin:T("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:C}}return tf=l,tf}var nf,kg;function I0(){if(kg)return nf;kg=1;function l(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return nf=l,nf}var af,Cg;function H0(){if(Cg)return af;Cg=1;function l(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),S={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(pe,k)=>{k.data._beginMatch=pe[1]||pe[2]},"on:end":(pe,k)=>{k.data._beginMatch!==pe[1]&&k.ignoreMatch()}},w=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
170
+ ]`,C={scope:"string",variants:[v,b,S,w]},x={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],D=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],q={keyword:I,literal:(pe=>{const k=[];return pe.forEach(J=>{k.push(J),J.toLowerCase()===J?k.push(J.toUpperCase()):k.push(J.toLowerCase())}),k})(A),built_in:D},Z=pe=>pe.map(k=>k.replace(/\|\d+$/,"")),ie={variants:[{match:[/new/,r.concat(T,"+"),r.concat("(?!",Z(D).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},M=r.concat(u,"\\b(?!\\()"),F={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},te={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},X={relevance:0,begin:/\(/,end:/\)/,keywords:q,contains:[te,y,F,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,x,ie]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",Z(I).join("\\b|"),"|",Z(D).join("\\b|"),"\\b)"),u,r.concat(T,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[X]};X.contains.push(me);const oe=[te,F,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,x,ie],Ee={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...oe]},...oe,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:q,contains:[Ee,a.HASH_COMMENT_MODE,a.COMMENT("//","$"),a.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:a.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,me,F,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ie,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},a.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",Ee,y,F,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,x]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},C,x]}}return af=l,af}var lf,Mg;function q0(){if(Mg)return lf;Mg=1;function l(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return lf=l,lf}var sf,Dg;function G0(){if(Dg)return sf;Dg=1;function l(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return sf=l,sf}var rf,Lg;function $0(){if(Lg)return rf;Lg=1;function l(a){const r=a.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},S={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",T=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,C=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${T}))[eE][+-]?(${w})[jJ]?(?=${C})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${w})[jJ](?=${C})`}]},A={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,S,a.HASH_COMMENT_MODE]}]};return b.contains=[S,x,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},S,A,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,S]}]}}return rf=l,rf}var of,zg;function Y0(){if(zg)return of;zg=1;function l(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return of=l,of}var cf,Ug;function F0(){if(Ug)return cf;Ug=1;function l(a){const r=a.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[d,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return cf=l,cf}var uf,jg;function P0(){if(jg)return uf;jg=1;function l(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),d=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return uf=l,uf}var ff,Bg;function K0(){if(Bg)return ff;Bg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=l(m),v=p,S=d,w="@[a-z-]+",T="and or not only",x={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+S.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,x,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return ff=g,ff}var df,Ig;function Z0(){if(Ig)return df;Ig=1;function l(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return df=l,df}var hf,Hg;function X0(){if(Hg)return hf;Hg=1;function l(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],w=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],T=v,C=[...b,...m].filter(Z=>!v.includes(Z)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...T),/\s*\(/),relevance:0,keywords:{built_in:T}};function D(Z){return r.concat(/\b/,r.either(...Z.map(ie=>ie.replace(/\s+/,"\\s+"))),/\b/)}const W={scope:"keyword",match:D(w),relevance:0};function q(Z,{exceptions:ie,when:M}={}){const F=M;return ie=ie||[],Z.map(te=>te.match(/\|\d+$/)||ie.includes(te)?te:F(te)?`${te}|0`:te)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:q(C,{when:Z=>Z.length<3}),literal:p,type:g,built_in:S},contains:[{scope:"type",match:D(y)},W,I,x,u,d,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,A]}}return hf=l,hf}var pf,qg;function V0(){if(qg)return pf;qg=1;function l(M){return M?typeof M=="string"?M:M.source:null}function a(M){return r("(?=",M,")")}function r(...M){return M.map(te=>l(te)).join("")}function s(M){const F=M[M.length-1];return typeof F=="object"&&F.constructor===Object?(M.splice(M.length-1,1),F):{}}function u(...M){return"("+(s(M).capture?"":"?:")+M.map(X=>l(X)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=M=>r(/\b/,M,/\w$/.test(M)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["init","self"].map(d),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],S=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],T=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),C=u(T,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(T,C,"*"),A=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),I=u(A,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),D=r(A,I,"*"),W=r(/[A-Z]/,I,"*"),q=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,D,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Z=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ie(M){const F={match:/\s+/,relevance:0},te=M.COMMENT("/\\*","\\*/",{contains:["self"]}),X=[M.C_LINE_COMMENT_MODE,te],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},oe={match:r(/\./,u(...m)),relevance:0},Ee=m.filter(Ie=>typeof Ie=="string").concat(["_|0"]),pe=m.filter(Ie=>typeof Ie!="string").concat(g).map(d),k={variants:[{className:"keyword",match:u(...pe,...y)}]},J={$pattern:u(/\b\w+/,/#\w+/),keyword:Ee.concat(S),literal:b},he=[me,oe,k],Se={match:r(/\./,u(...w)),relevance:0},De={className:"built_in",match:r(/\b/,u(...w),/(?=\()/)},_=[Se,De],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${C})+`}]},se=[z,B],P="([0-9]_*)+",fe="([0-9a-fA-F]_*)+",ge={className:"number",relevance:0,variants:[{match:`\\b(${P})(\\.(${P}))?([eE][+-]?(${P}))?\\b`},{match:`\\b0x(${fe})(\\.(${fe}))?([pP][+-]?(${P}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Oe=(Ie="")=>({className:"subst",variants:[{match:r(/\\/,Ie,/[0\\tnr"']/)},{match:r(/\\/,Ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ce=(Ie="")=>({className:"subst",match:r(/\\/,Ie,/[\t ]*(?:[\r\n]|\r\n)/)}),Ye=(Ie="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ie,/\(/),end:/\)/}),qe=(Ie="")=>({begin:r(Ie,/"""/),end:r(/"""/,Ie),contains:[Oe(Ie),Ce(Ie),Ye(Ie)]}),Me=(Ie="")=>({begin:r(Ie,/"/),end:r(/"/,Ie),contains:[Oe(Ie),Ye(Ie)]}),Ct={className:"string",variants:[qe(),qe("#"),qe("##"),qe("###"),Me(),Me("#"),Me("##"),Me("###")]},Pe=[M.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[M.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},Je=Ie=>{const Gt=r(Ie,/\//),dn=r(/\//,Ie);return{begin:Gt,end:dn,contains:[...Pe,{scope:"comment",begin:`#(?!.*${dn})`,end:/$/}]}},St={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},On={match:r(/`/,D,/`/)},Mt={className:"variable",match:/\$\d+/},It={className:"variable",match:`\\$${I}+`},ct=[On,Mt,It],Hn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Z,contains:[...se,ge,Ct]}]}},Zn={scope:"keyword",match:r(/@/,u(...q),a(u(/\(/,/\s+/)))},$e={scope:"meta",match:r(/@/,D)},Jt=[Hn,Zn,$e],vt={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,I,"+")},{className:"type",match:W,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(W)),relevance:0}]},yn={begin:/</,end:/>/,keywords:J,contains:[...X,...he,...Jt,z,vt]};vt.contains.push(yn);const vn={match:r(D,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:J,contains:["self",vn,...X,St,...he,..._,...se,ge,Ct,...ct,...Jt,vt]},En={begin:/</,end:/>/,keywords:"repeat each",contains:[...X,vt]},Xn={begin:u(a(r(D,/\s*:/)),a(r(D,/\s+/,D,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:D}]},ra={begin:/\(/,end:/\)/,keywords:J,contains:[Xn,...X,...he,...se,ge,Ct,...Jt,vt,kn],endsParent:!0,illegal:/["']/},Cn={match:[/(func|macro)/,/\s+/,u(On.match,D,x)],className:{1:"keyword",3:"title.function"},contains:[En,ra,F],illegal:[/\[/,/%/]},Ut={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[En,ra,F],illegal:/\[|%/},qt={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},Dt={begin:[/precedencegroup/,/\s+/,W],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},ya={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},_n={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,D,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:J,contains:[En,...he,{begin:/:/,end:/\{/,keywords:J,contains:[{scope:"title.class.inherited",match:W},...he],relevance:0}]};for(const Ie of Ct.variants){const Gt=Ie.contains.find(Kt=>Kt.label==="interpol");Gt.keywords=J;const dn=[...he,..._,...se,ge,Ct,...ct];Gt.contains=[...dn,{begin:/\(/,end:/\)/,contains:["self",...dn]}]}return{name:"Swift",keywords:J,contains:[...X,Cn,Ut,ya,_n,Mn,qt,Dt,{beginKeywords:"import",end:/$/,contains:[...X],relevance:0},St,...he,..._,...se,ge,Ct,...ct,...Jt,vt,kn]}}return pf=ie,pf}var mf,Gg;function Q0(){if(Gg)return mf;Gg=1;function l(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,d]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),w={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},T={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},A=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},w,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,x,p,y],I=[...A];return I.pop(),I.push(g),T.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}return mf=l,mf}var gf,$g;function W0(){if($g)return gf;$g=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,s,u);function g(b){const v=b.regex,S=(Oe,{after:Ce})=>{const Ye="</"+Oe[0].slice(1);return Oe.input.indexOf(Ye,Ce)!==-1},w=l,T={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,Ce)=>{const Ye=Oe[0].length+Oe.index,qe=Oe.input[Ye];if(qe==="<"||qe===","){Ce.ignoreMatch();return}qe===">"&&(S(Oe,{after:Ye})||Ce.ignoreMatch());let Me;const Ct=Oe.input.substring(Ye);if(Me=Ct.match(/^\s*=/)){Ce.ignoreMatch();return}if((Me=Ct.match(/^\s+extends\s+/))&&Me.index===0){Ce.ignoreMatch();return}}},A={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",D=`\\.(${I})`,W="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",q={className:"number",variants:[{begin:`(\\b(${W})((${D})|\\.)?|(${D}))[eE][+-]?(${I})\\b`},{begin:`\\b(${W})\\b((${D})\\b|\\.)?|(${D})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:A,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},M={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},F={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"graphql"}},te={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,Z]},me={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:w+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},oe=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ie,M,F,te,{match:/\$\d+/},q];Z.contains=oe.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(oe)});const Ee=[].concat(me,Z.contains),pe=Ee.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(Ee)}]),k={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:pe},J={variants:[{match:[/class/,/\s+/,w,/\s+/,/extends/,/\s+/,v.concat(w,"(",v.concat(/\./,w),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,w],scope:{1:"keyword",3:"title.class"}}]},he={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},Se={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,w,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(Oe){return v.concat("(?!",Oe.join("|"),")")}const B={match:v.concat(/\b/,z([...d,"super","import","await"].map(Oe=>`${Oe}\\s*\\(`)),w,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(w,/(?![0-9A-Za-z$_(])/))),end:w,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,w,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,w,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:pe,CLASS_REFERENCE:he},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),Se,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ie,M,F,te,me,{match:/\$\d+/},q,he,{scope:"attr",match:w+v.lookahead(":"),relevance:0},ge,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:pe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:C},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},De,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,b.inherit(b.TITLE_MODE,{begin:w,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+w,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},B,_,J,P,{match:/\$[(.]/}]}}function m(b){const v=b.regex,S=g(b),w=l,T=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:T},contains:[S.exports.CLASS_REFERENCE]},A={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],D={$pattern:l,keyword:a.concat(I),literal:r,built_in:y.concat(T),"variable.language":p},W={className:"meta",begin:"@"+w},q=(F,te,X)=>{const me=F.contains.findIndex(oe=>oe.label===te);if(me===-1)throw new Error("can not find mode to replace");F.contains.splice(me,1,X)};Object.assign(S.keywords,D),S.exports.PARAMS_CONTAINS.push(W);const Z=S.contains.find(F=>F.scope==="attr"),ie=Object.assign({},Z,{match:v.concat(w,v.lookahead(/\s*\?:/))});S.exports.PARAMS_CONTAINS.push([S.exports.CLASS_REFERENCE,Z,ie]),S.contains=S.contains.concat([W,C,x,ie]),q(S,"shebang",b.SHEBANG()),q(S,"use_strict",A);const M=S.contains.find(F=>F.label==="func.def");return M.relevance=0,Object.assign(S,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),S}return gf=m,gf}var bf,Yg;function J0(){if(Yg)return bf;Yg=1;function l(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},S=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),w=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,u,m,b,v,S,w,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[w]}]}}return bf=l,bf}var yf,Fg;function eS(){if(Fg)return yf;Fg=1;function l(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,a.QUOTE_STRING_MODE,m,b,g]}}return yf=l,yf}var vf,Pg;function tS(){if(Pg)return vf;Pg=1;var l=y0();return l.registerLanguage("xml",v0()),l.registerLanguage("bash",E0()),l.registerLanguage("c",_0()),l.registerLanguage("cpp",S0()),l.registerLanguage("csharp",N0()),l.registerLanguage("css",w0()),l.registerLanguage("markdown",T0()),l.registerLanguage("diff",x0()),l.registerLanguage("ruby",A0()),l.registerLanguage("go",R0()),l.registerLanguage("graphql",O0()),l.registerLanguage("ini",k0()),l.registerLanguage("java",C0()),l.registerLanguage("javascript",M0()),l.registerLanguage("json",D0()),l.registerLanguage("kotlin",L0()),l.registerLanguage("less",z0()),l.registerLanguage("lua",U0()),l.registerLanguage("makefile",j0()),l.registerLanguage("perl",B0()),l.registerLanguage("objectivec",I0()),l.registerLanguage("php",H0()),l.registerLanguage("php-template",q0()),l.registerLanguage("plaintext",G0()),l.registerLanguage("python",$0()),l.registerLanguage("python-repl",Y0()),l.registerLanguage("r",F0()),l.registerLanguage("rust",P0()),l.registerLanguage("scss",K0()),l.registerLanguage("shell",Z0()),l.registerLanguage("sql",X0()),l.registerLanguage("swift",V0()),l.registerLanguage("yaml",Q0()),l.registerLanguage("typescript",W0()),l.registerLanguage("vbnet",J0()),l.registerLanguage("wasm",eS()),l.HighlightJS=l,l.default=l,vf=l,vf}var nS=tS();const Vf=Rb(nS),aS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},iS=2e5,Kb="http://www.w3.org/1999/xhtml";function lS(l){for(const a of l.querySelectorAll(".d2h-file-wrapper")){const r=sS(a.dataset.lang??"");if(r)for(const s of rS(a))Kg(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Kg(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function sS(l){const a=aS[l]??b0(l);return a==="plaintext"||!Vf.getLanguage(a)?null:a}function rS(l){const a=[];let r=[];for(const s of l.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:d})}return r.length&&a.push(r),a}function Kg(l,a,r){if(l.filter(a).length===0)return;const u=l.map(y=>y.ctn.textContent??"").join(`
171
+ `);if(!u.trim()||u.length>iS)return;const d=cS(u)&&uS(r)?`/**
172
+ `:"",p=dS(Vf.highlight(d+u,{language:r,ignoreIllegals:!0}).value).slice(d?1:0);l.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||fS(y.ctn,m)})}const oS=/(^|\s)\*\//m,Zg=/^\s*\*(\s|$)/;function cS(l){const a=l.search(oS);if(a===-1){const s=l.split(`
173
+ `).filter(u=>u.trim());return s.length>0&&s.every(u=>Zg.test(u))}return l.slice(0,a).split(`
174
+ `).every(s=>Zg.test(s)||!s.includes("/*"))}function uS(l){return Vf.highlight("/* */",{language:l,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function fS(l,a){const r=og(l);let s=a;if(r.length){const u=document.createElementNS(Kb,"div");u.innerHTML=a,s=m0(r,og(u),l.textContent??"")}l.classList.add("hljs"),l.innerHTML=s}function dS(l){const a=document.createElementNS(Kb,"div");a.innerHTML=l;const r=[],s=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
175
+ `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=hS(m)});return}const y=`<span class="${p.className}">`;u+=y,s.push(y),p.childNodes.forEach(d),s.pop(),u+="</span>"};return a.childNodes.forEach(d),r.push(u),r}function hS(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const pS={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},mS={approve:[{cx:12,cy:12,r:9}],changes:[{cx:12,cy:12,r:9}],eye:[{cx:12,cy:12,r:3}],settings:[{cx:17,cy:17,r:3},{cx:7,cy:7,r:3}]},gS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:l,size:a=13}){const r=[...pS[l]??[],...gS[l]??[]];return f.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(mS[l]??[]).map((s,u)=>f.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>f.jsx("path",{d:s},u))]})}function bS({size:l=17}){return f.jsxs("svg",{className:"logo",width:l,height:l,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:l}){return f.jsx("span",{className:"key",children:l})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Xg(l,a){(a==null||a>l.length)&&(a=l.length);for(var r=0,s=Array(a);r<a;r++)s[r]=l[r];return s}function yS(l){if(Array.isArray(l))return l}function vS(l,a){var r=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(r!=null){var s,u,d,p,y=[],g=!0,m=!1;try{if(d=(r=r.call(l)).next,a!==0)for(;!(g=(s=d.call(r)).done)&&(y.push(s.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function ES(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
176
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _S(l,a){return yS(l)||vS(l,a)||SS(l,a)||ES()}function SS(l,a){if(l){if(typeof l=="string")return Xg(l,a);var r={}.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xg(l,a):void 0}}const Zb=Object.entries,Vg=Object.setPrototypeOf,NS=Object.isFrozen,wS=Object.getPrototypeOf,TS=Object.getOwnPropertyDescriptor;let An=Object.freeze,Rn=Object.seal,Ul=Object.create,Xb=typeof Reflect<"u"&&Reflect,Cf=Xb.apply,Mf=Xb.construct;An||(An=function(a){return a});Rn||(Rn=function(a){return a});Cf||(Cf=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),d=2;d<s;d++)u[d-2]=arguments[d];return a.apply(r,u)});Mf||(Mf=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const Dl=un(Array.prototype.forEach),xS=un(Array.prototype.lastIndexOf),Qg=un(Array.prototype.pop),Ll=un(Array.prototype.push),AS=un(Array.prototype.splice),Li=Array.isArray,js=un(String.prototype.toLowerCase),Ef=un(String.prototype.toString),Wg=un(String.prototype.match),Ls=un(String.prototype.replace),Jg=un(String.prototype.indexOf),RS=un(String.prototype.trim),OS=un(Number.prototype.toString),kS=un(Boolean.prototype.toString),eb=typeof BigInt>"u"?null:un(BigInt.prototype.toString),tb=typeof Symbol>"u"?null:un(Symbol.prototype.toString),bn=un(Object.prototype.hasOwnProperty),zs=un(Object.prototype.toString),gn=un(RegExp.prototype.test),Wi=CS(TypeError);function un(l){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Cf(l,a,s)}}function CS(l){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Mf(l,r)}}function ft(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(Vg&&Vg(l,null),!Li(a))return l;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const d=r(u);d!==u&&(NS(a)||(a[s]=d),u=d)}l[u]=!0}return l}function MS(l){for(let a=0;a<l.length;a++)bn(l,a)||(l[a]=null);return l}function zn(l){const a=Ul(null);for(const s of Zb(l)){var r=_S(s,2);const u=r[0],d=r[1];bn(l,u)&&(Li(d)?a[u]=MS(d):d&&typeof d=="object"&&d.constructor===Object?a[u]=zn(d):a[u]=d)}return a}function DS(l){switch(typeof l){case"string":return l;case"number":return OS(l);case"boolean":return kS(l);case"bigint":return eb?eb(l):"0";case"symbol":return tb?tb(l):"Symbol()";case"undefined":return zs(l);case"function":case"object":{if(l===null)return zs(l);const a=l,r=wa(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:zs(s)}return zs(l)}default:return zs(l)}}function wa(l,a){for(;l!==null;){const s=TS(l,a);if(s){if(s.get)return un(s.get);if(typeof s.value=="function")return un(s.value)}l=wS(l)}function r(){return null}return r}function LS(l){try{return gn(l,""),!0}catch{return!1}}const nb=An(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_f=An(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sf=An(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zS=An(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nf=An(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),US=An(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ab=An(["#text"]),ib=An(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),wf=An(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lb=An(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),eo=An(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jS=Rn(/{{[\w\W]*|^[\w\W]*}}/g),BS=Rn(/<%[\w\W]*|^[\w\W]*%>/g),IS=Rn(/\${[\w\W]*/g),HS=Rn(/^data-[\-\w.\u00B7-\uFFFF]+$/),qS=Rn(/^aria-[\-\w]+$/),sb=Rn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GS=Rn(/^(?:\w+script|data):/i),$S=Rn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YS=Rn(/^html$/i),FS=Rn(/^[a-z][.\w]*(-[.\w]+)+$/i),rb=Rn(/<[/\w!]/g),ob=Rn(/<[/\w]/g),PS=Rn(/<\/no(script|embed|frames)/i),KS=Rn(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ZS=function(){return typeof window>"u"?null:window},XS=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const d="dompurify"+(s?"#"+s:"");try{return a.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},cb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ci=function(a,r,s,u){return bn(a,r)&&Li(a[r])?ft(u.base?zn(u.base):{},a[r],u.transform):s};function Vb(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZS();const a=Q=>Vb(Q);if(a.version="3.4.13",a.removed=[],!l||!l.document||l.document.nodeType!==sa.document||!l.Element)return a.isSupported=!1,a;let r=l.document;const s=r,u=s.currentScript;l.DocumentFragment;const d=l.HTMLTemplateElement,p=l.Node,y=l.Element,g=l.NodeFilter,m=l.NamedNodeMap;m===void 0&&(l.NamedNodeMap||l.MozNamedAttrMap),l.HTMLFormElement;const b=l.DOMParser,v=l.trustedTypes,S=y.prototype,w=wa(S,"cloneNode"),T=wa(S,"remove"),C=wa(S,"nextSibling"),x=wa(S,"childNodes"),A=wa(S,"parentNode"),I=wa(S,"shadowRoot"),D=wa(S,"attributes"),W=p&&p.prototype?wa(p.prototype,"nodeType"):null,q=p&&p.prototype?wa(p.prototype,"nodeName"):null,Z=p&&p.prototype?wa(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const Q=r.createElement("template");Q.content&&Q.content.ownerDocument&&(r=Q.content.ownerDocument)}let ie,M="",F,te=!1,X=0;const me=function(){if(X>0)throw Wi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},oe=function(N){me(),X++;try{return ie.createHTML(N)}finally{X--}},Ee=function(N){me(),X++;try{return ie.createScriptURL(N)}finally{X--}},pe=function(){return te||(F=XS(v,u),te=!0),F},k=r,J=k.implementation,he=k.createNodeIterator,Se=k.createDocumentFragment,De=k.getElementsByTagName,_=s.importNode;let z=cb();a.isSupported=typeof Zb=="function"&&typeof A=="function"&&J&&J.createHTMLDocument!==void 0;const B=jS,se=BS,P=IS,fe=HS,ge=qS,Oe=GS,Ce=$S,Ye=FS;let qe=sb,Me=null;const Ct=ft({},[...nb,..._f,...Sf,...Nf,...ab]);let Pe=null;const In=ft({},[...ib,...wf,...lb,...eo]);let Je=Object.seal(Ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),St=null,On=null;const Mt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let It=!0,ct=!0,Hn=!1,Zn=!0,$e=!1,Jt=!0,vt=!1,yn=!1,vn=null,kn=null,En=!1,Xn=!1,ra=!1,Cn=!1,Ut=!0,qt=!1;const Dt="user-content-";let ya=!0,_n=!1,Mn={},Ie=null;const Gt=ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let dn=null;const Kt=ft({},["audio","video","img","source","image","track"]);let R=null;const ne=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let lt=et,we=!1,_e=null;const je=ft({},[ye,ze,et],Ef),Rt=An(["mi","mo","mn","ms","mtext"]);let gt=ft({},Rt);const Sn=An(["annotation-xml"]);let Vn=ft({},Sn);const Qn=ft({},["title","style","font","a","script"]);let Zt=null;const Ot=["application/xhtml+xml","text/html"],en="text/html";let ut=null,qn=null;const ai=r.createElement("form"),oa=function(N){return N instanceof RegExp||N instanceof Function},va=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(qn&&qn===N)return;(!N||typeof N!="object")&&(N={}),N=zn(N),Zt=Ot.indexOf(N.PARSER_MEDIA_TYPE)===-1?en:N.PARSER_MEDIA_TYPE,ut=Zt==="application/xhtml+xml"?Ef:js,Me=Ci(N,"ALLOWED_TAGS",Ct,{transform:ut}),Pe=Ci(N,"ALLOWED_ATTR",In,{transform:ut}),_e=Ci(N,"ALLOWED_NAMESPACES",je,{transform:Ef}),R=Ci(N,"ADD_URI_SAFE_ATTR",ne,{transform:ut,base:ne}),dn=Ci(N,"ADD_DATA_URI_TAGS",Kt,{transform:ut,base:Kt}),Ie=Ci(N,"FORBID_CONTENTS",Gt,{transform:ut}),St=Ci(N,"FORBID_TAGS",zn({}),{transform:ut}),On=Ci(N,"FORBID_ATTR",zn({}),{transform:ut}),Mn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?zn(N.USE_PROFILES):N.USE_PROFILES:!1,It=N.ALLOW_ARIA_ATTR!==!1,ct=N.ALLOW_DATA_ATTR!==!1,Hn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Zn=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=N.SAFE_FOR_TEMPLATES||!1,Jt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,Xn=N.RETURN_DOM||!1,ra=N.RETURN_DOM_FRAGMENT||!1,Cn=N.RETURN_TRUSTED_TYPE||!1,En=N.FORCE_BODY||!1,Ut=N.SANITIZE_DOM!==!1,qt=N.SANITIZE_NAMED_PROPS||!1,ya=N.KEEP_CONTENT!==!1,_n=N.IN_PLACE||!1,qe=LS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:sb,lt=typeof N.NAMESPACE=="string"?N.NAMESPACE:et,gt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?zn(N.MATHML_TEXT_INTEGRATION_POINTS):ft({},Rt),Vn=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?zn(N.HTML_INTEGRATION_POINTS):ft({},Sn);const U=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?zn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(Je=Ul(null),bn(U,"tagNameCheck")&&oa(U.tagNameCheck)&&(Je.tagNameCheck=U.tagNameCheck),bn(U,"attributeNameCheck")&&oa(U.attributeNameCheck)&&(Je.attributeNameCheck=U.attributeNameCheck),bn(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),Rn(Je),$e&&(ct=!1),ra&&(Xn=!0),Mn&&(Me=ft({},ab),Pe=Ul(null),Mn.html===!0&&(ft(Me,nb),ft(Pe,ib)),Mn.svg===!0&&(ft(Me,_f),ft(Pe,wf),ft(Pe,eo)),Mn.svgFilters===!0&&(ft(Me,Sf),ft(Pe,wf),ft(Pe,eo)),Mn.mathMl===!0&&(ft(Me,Nf),ft(Pe,lb),ft(Pe,eo))),Mt.tagCheck=null,Mt.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Mt.tagCheck=N.ADD_TAGS:Li(N.ADD_TAGS)&&(Me===Ct&&(Me=zn(Me)),ft(Me,N.ADD_TAGS,ut))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Mt.attributeCheck=N.ADD_ATTR:Li(N.ADD_ATTR)&&(Pe===In&&(Pe=zn(Pe)),ft(Pe,N.ADD_ATTR,ut))),bn(N,"ADD_URI_SAFE_ATTR")&&Li(N.ADD_URI_SAFE_ATTR)&&ft(R,N.ADD_URI_SAFE_ATTR,ut),bn(N,"FORBID_CONTENTS")&&Li(N.FORBID_CONTENTS)&&(Ie===Gt&&(Ie=zn(Ie)),ft(Ie,N.FORBID_CONTENTS,ut)),bn(N,"ADD_FORBID_CONTENTS")&&Li(N.ADD_FORBID_CONTENTS)&&(Ie===Gt&&(Ie=zn(Ie)),ft(Ie,N.ADD_FORBID_CONTENTS,ut)),ya&&(Me["#text"]=!0),vt&&ft(Me,["html","head","body"]),Me.table&&(ft(Me,["tbody"]),delete St.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ee=ie;ie=N.TRUSTED_TYPES_POLICY;try{M=oe("")}catch(Te){throw ie=ee,Te}}else N.TRUSTED_TYPES_POLICY===null?(ie=void 0,M=""):(ie===void 0&&(ie=pe()),ie&&typeof M=="string"&&(M=oe("")));An&&An(N),qn=N},Wn=ft({},[..._f,...Sf,...zS]),Ea=ft({},[...Nf,...US]),tn=function(N,U,ee){return U.namespaceURI===et?N==="svg":U.namespaceURI===ye?N==="svg"&&(ee==="annotation-xml"||gt[ee]):!!Wn[N]},H=function(N,U,ee){return U.namespaceURI===et?N==="math":U.namespaceURI===ze?N==="math"&&Vn[ee]:!!Ea[N]},de=function(N,U,ee){return U.namespaceURI===ze&&!Vn[ee]||U.namespaceURI===ye&&!gt[ee]?!1:!Ea[N]&&(Qn[N]||!Wn[N])},xe=function(N){let U=A(N);(!U||!U.tagName)&&(U={namespaceURI:lt,tagName:"template"});const ee=js(N.tagName),Te=js(U.tagName);return _e[N.namespaceURI]?N.namespaceURI===ze?tn(ee,U,Te):N.namespaceURI===ye?H(ee,U,Te):N.namespaceURI===et?de(ee,U,Te):!!(Zt==="application/xhtml+xml"&&_e[N.namespaceURI]):!1},be=function(N){Ll(a.removed,{element:N});try{A(N).removeChild(N)}catch{if(T(N),!A(N))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Qe=function(N){ue(N);const U=x(N);if(U){const Te=[];Dl(U,Re=>{Ll(Te,Re)}),Dl(Te,Re=>{try{T(Re)}catch{}})}const ee=D(N);if(ee)for(let Te=ee.length-1;Te>=0;--Te){const Re=ee[Te],He=Re&&Re.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},Ht=function(N,U){try{Ll(a.removed,{attribute:U.getAttributeNode(N),from:U})}catch{Ll(a.removed,{attribute:null,from:U})}if(U.removeAttribute(N),N==="is")if(Xn||ra)try{be(U)}catch{}else try{U.setAttribute(N,"")}catch{}},$t=function(N){const U=D(N);if(U)for(let ee=U.length-1;ee>=0;--ee){const Te=U[ee],Re=Te&&Te.name;if(!(typeof Re!="string"||Pe[ut(Re)]))try{N.removeAttribute(Re)}catch{}}},ue=function(N){const U=[N];for(;U.length>0;){const ee=U.pop();(W?W(ee):ee.nodeType)===sa.element&&$t(ee);const Re=x(ee);if(Re)for(let He=Re.length-1;He>=0;--He)U.push(Re[He])}},Ne=function(N){if(!Jt)return;const U=[N];for(;U.length>0;){const ee=U.pop(),Te=W?W(ee):ee.nodeType;if(Te===sa.processingInstruction||Te===sa.comment&&gn(ob,ee.data)){try{T(ee)}catch{}continue}if(Te===sa.element){const He=ee,tt=ut(q?q(ee):ee.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&tt!=="label"&&tt!=="output"&&He.removeAttribute("for")}catch{}}const Re=x(ee);if(Re)for(let He=Re.length-1;He>=0;--He)U.push(Re[He])}},Ge=function(N){let U=null,ee=null;if(En)N="<remove></remove>"+N;else{const He=Wg(N,/^[\r\n\t ]+/);ee=He&&He[0]}Zt==="application/xhtml+xml"&&lt===et&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=ie?oe(N):N;if(lt===et)try{U=new b().parseFromString(Te,Zt)}catch{}if(!U||!U.documentElement){U=J.createDocument(lt,"template",null);try{U.documentElement.innerHTML=we?M:Te}catch{}}const Re=U.body||U.documentElement;return N&&ee&&Re.insertBefore(r.createTextNode(ee),Re.childNodes[0]||null),lt===et?De.call(U,vt?"html":"body")[0]:vt?U.documentElement:Re},dt=function(N){const U=Z?Z(N):N.ownerDocument;return he.call(U||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},kt=function(N){return N=Ls(N,B," "),N=Ls(N,se," "),N=Ls(N,P," "),N},nn=function(N){var U;N.normalize();const ee=Z?Z(N):N.ownerDocument,Te=he.call(ee||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Re=Te.nextNode();for(;Re;)Re.data=kt(Re.data),Re=Te.nextNode();const He=(U=N.querySelectorAll)===null||U===void 0?void 0:U.call(N,"template");He&&Dl(He,tt=>{Xt(tt.content)&&nn(tt.content)})},pn=function(N){const U=q?q(N):null;return typeof U!="string"||ut(U)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==D(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==W(N)||N.childNodes!==x(N)},Xt=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return W(N)===sa.documentFragment}catch{return!1}},ht=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return typeof W(N)=="number"}catch{return!1}};function jt(Q,N,U){Q.length!==0&&Dl(Q,ee=>{ee.call(a,N,U,qn)})}const nl=function(N,U){return!!(Jt&&N.hasChildNodes()&&!ht(N.firstElementChild)&&gn(rb,N.textContent)&&gn(rb,N.innerHTML)||Jt&&N.namespaceURI===et&&U==="style"&&ht(N.firstElementChild)||N.nodeType===sa.processingInstruction||Jt&&N.nodeType===sa.comment&&gn(ob,N.data))},ii=function(N,U,ee){if(!St[U]&&si(U)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,U)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(U)))return!1;if(ya&&!Ie[U]){const Te=A(N),Re=x(N);if(Re&&Te){const He=Re.length;for(let tt=He-1;tt>=0;--tt){const ce=N===ee?w(Re[tt],!0):Re[tt];Te.insertBefore(ce,C(N))}}}return be(N),!0},li=function(N,U,ee,Te){return N.length===0?U:U===ee||U===Te?zn(U):U},ja=function(N,U){if(jt(z.beforeSanitizeElements,N,null),N!==U&&A(N)===null)return _n&&ue(N),!0;if(pn(N))return be(N),!0;const ee=ut(q?q(N):N.nodeName);if(Me=li(z.uponSanitizeElement,Me,Ct,vn),jt(z.uponSanitizeElement,N,{tagName:ee,allowedTags:Me}),N!==U&&A(N)===null)return _n&&ue(N),!0;if(nl(N,ee))return be(N),!0;if(St[ee]||!(Mt.tagCheck instanceof Function&&Mt.tagCheck(ee))&&!Me[ee]){const Re=ii(N,ee,U);return Re===!1&&jt(z.afterSanitizeElements,N,null),Re}if((W?W(N):N.nodeType)===sa.element&&!xe(N)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&gn(PS,N.innerHTML))return be(N),!0;if($e&&N.nodeType===sa.text){const Re=kt(N.textContent);N.textContent!==Re&&(Ll(a.removed,{element:N.cloneNode()}),N.textContent=Re)}return jt(z.afterSanitizeElements,N,null),!1},al=function(N,U,ee){if(On[U]||Jt&&U==="patchsrc"||Jt&&U==="for"&&N!=="label"&&N!=="output"||Ut&&(U==="id"||U==="name")&&(ee in r||ee in ai))return!1;const Te=Pe[U]||Mt.attributeCheck instanceof Function&&Mt.attributeCheck(U,N);if(!(ct&&gn(fe,U))){if(!(It&&gn(ge,U))){if(Te){if(!R[U]){if(!gn(qe,Ls(ee,Ce,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&N!=="script"&&Jg(ee,"data:")===0&&dn[N])){if(!(Hn&&!gn(Oe,Ls(ee,Ce,"")))){if(ee)return!1}}}}}else if(!(si(N)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,N)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(N))&&(Je.attributeNameCheck instanceof RegExp&&gn(Je.attributeNameCheck,U)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(U,N))||U==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,ee)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(ee))))return!1}}return!0},Dn=ft({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),si=function(N){return!Dn[js(N)]&&gn(Ye,N)},Ba=function(N,U,ee,Te){if(ie&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ee)switch(v.getAttributeType(N,U)){case"TrustedHTML":return oe(Te);case"TrustedScriptURL":return Ee(Te)}return Te},ri=function(N,U,ee,Te){try{ee?N.setAttributeNS(ee,U,Te):N.setAttribute(U,Te),pn(N)?be(N):Qg(a.removed)}catch{Ht(U,N)}},an=function(N){jt(z.beforeSanitizeAttributes,N,null);const U=N.attributes;if(!U||pn(N))return;Pe=li(z.uponSanitizeAttribute,Pe,In,kn);const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let Te=U.length;const Re=ut(N.nodeName);for(;Te--;){const He=U[Te],tt=He.name,ce=He.namespaceURI,ve=He.value,Le=ut(tt),Ve=ve;let We=tt==="value"?Ve:RS(Ve);if(ee.attrName=Le,ee.attrValue=We,ee.keepAttr=!0,ee.forceKeepAttr=void 0,jt(z.uponSanitizeAttribute,N,ee),We=ee.attrValue,qt&&(Le==="id"||Le==="name")&&Jg(We,Dt)!==0&&(Ht(tt,N),We=Dt+We),Jt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ht(tt,N);continue}if(Le==="attributename"&&Wg(We,"href")){Ht(tt,N);continue}if(!ee.forceKeepAttr){if(!ee.keepAttr){Ht(tt,N);continue}if(!Zn&&gn(KS,We)){Ht(tt,N);continue}if($e&&(We=kt(We)),!al(Re,Le,We)){Ht(tt,N);continue}We=Ba(Re,Le,ce,We),We!==Ve&&ri(N,tt,ce,We)}}jt(z.afterSanitizeAttributes,N,null)},Ia=function(N){let U=null;const ee=dt(N);for(jt(z.beforeSanitizeShadowDOM,N,null);U=ee.nextNode();)if(jt(z.uponSanitizeShadowNode,U,null),ja(U,N),an(U),Xt(U.content)&&Ia(U.content),(W?W(U):U.nodeType)===sa.element){const Re=I(U);Xt(Re)&&(Aa(Re),Ia(Re))}jt(z.afterSanitizeShadowDOM,N,null)},Aa=function(N){const U=[{node:N,shadow:null}];for(;U.length>0;){const ee=U.pop();if(ee.shadow){Ia(ee.shadow);continue}const Te=ee.node,He=(W?W(Te):Te.nodeType)===sa.element,tt=x(Te);if(tt)for(let ce=tt.length-1;ce>=0;--ce)U.push({node:tt[ce],shadow:null});if(He){const ce=q?q(Te):null;if(typeof ce=="string"&&ut(ce)==="template"){const ve=Te.content;Xt(ve)&&U.push({node:ve,shadow:null})}}if(He){const ce=I(Te);Xt(ce)&&U.push({node:null,shadow:ce},{node:ce,shadow:null})}}};return a.sanitize=function(Q){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ee=null,Te=null,Re=null;if(we=!Q,we&&(Q="<!-->"),typeof Q!="string"&&!ht(Q)&&(Q=DS(Q),typeof Q!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return Q;yn?(Me=vn,Pe=kn):va(N),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Me=zn(Me)),z.uponSanitizeAttribute.length>0&&(Pe=zn(Pe)),a.removed=[];const He=_n&&typeof Q!="string"&&ht(Q);if(He){Ne(Q);const ve=q?q(Q):Q.nodeName;if(typeof ve=="string"){const Le=ut(ve);if(!Me[Le]||St[Le])throw Qe(Q),Wi("root node is forbidden and cannot be sanitized in-place")}if(pn(Q))throw Qe(Q),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(Q)}catch(Le){throw Qe(Q),Le}}else if(ht(Q))U=Ge("<!---->"),ee=U.ownerDocument.importNode(Q,!0),ee.nodeType===sa.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?U=ee:U.appendChild(ee),Aa(ee);else{if(!Xn&&!$e&&!vt&&Q.indexOf("<")===-1)return ie&&Cn?oe(Q):Q;if(U=Ge(Q),!U)return Xn?null:Cn?M:""}U&&En&&be(U.firstChild);const tt=He?Q:U;try{const ve=dt(tt);for(;Te=ve.nextNode();)ja(Te,tt),an(Te),Xt(Te.content)&&Ia(Te.content)}catch(ve){throw He&&(Qe(Q),Dl(a.removed,Le=>{Le.element&&ue(Le.element)})),ve}if(He)return Dl(a.removed,ve=>{ve.element&&ue(ve.element)}),$e&&nn(Q),Q;if(Xn){if($e&&nn(U),ra)for(Re=Se.call(U.ownerDocument);U.firstChild;)Re.appendChild(U.firstChild);else Re=U;return(Pe.shadowroot||Pe.shadowrootmode)&&(Re=_.call(s,Re,!0)),Re}let ce=vt?U.outerHTML:U.innerHTML;return vt&&Me["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gn(YS,U.ownerDocument.doctype.name)&&(ce="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
177
+ `+ce),$e&&(ce=kt(ce)),ie&&Cn?oe(ce):ce},a.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(Q),yn=!0,vn=Me,kn=Pe},a.clearConfig=function(){qn=null,yn=!1,vn=null,kn=null,ie=F,M=""},a.isValidAttribute=function(Q,N,U){qn||va({});const ee=ut(Q),Te=ut(N);return al(ee,Te,U)},a.addHook=function(Q,N){typeof N=="function"&&bn(z,Q)&&Ll(z[Q],N)},a.removeHook=function(Q,N){if(bn(z,Q)){if(N!==void 0){const U=xS(z[Q],N);return U===-1?void 0:AS(z[Q],U,1)[0]}return Qg(z[Q])}},a.removeHooks=function(Q){bn(z,Q)&&(z[Q]=[])},a.removeAllHooks=function(){z=cb()},a}var VS=Vb();function Qf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tl=Qf();function Qb(l){tl=l}var Ji={exec:()=>null};function zl(l){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=l(s),a[s]=u),u}}function it(l,a=""){let r=typeof l=="string"?l:l.source,s={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(Un.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var QS=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),Un={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:zl(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(l=>new RegExp(`^ {0,${l}}>`))},WS=/^(?:[ \t]*(?:\n|$))+/,JS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,eN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Jb=it(Wb).replace(/bull/g,Wf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nN=it(Wb).replace(/bull/g,Wf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Jf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,aN=/^[^\n]+/,ed=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iN=it(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ed).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lN=it(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Wf).getRegex(),yo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",td=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sN=it("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",td).replace("tag",yo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ey=l=>it(Jf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex(),rN=ey(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),oN=ey(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),cN=it(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oN).getRegex(),nd={blockquote:cN,code:JS,def:iN,fences:eN,heading:tN,hr:Gs,html:sN,lheading:Jb,list:lN,newline:WS,paragraph:rN,table:Ji,text:aN},ub=it("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex(),uN={...nd,lheading:nN,table:ub,paragraph:it(Jf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ub).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex()},fN={...nd,html:it(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",td).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ji,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:it(Jf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
178
+ ]`).replace("lheading",Jb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ty=/^( {2,}|\\)\n(?!\s*$)/,pN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ni=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,mN=it(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),gN=/[\p{Pi}\p{Ps}"']/u,ny=/(?!~)[\p{P}\p{S}]/u,bN=/(?!~)[\s\p{P}\p{S}]/u,yN=/(?:[^\s\p{P}\p{S}]|~)/u,vN=it(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",QS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ay=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,EN=it(ay,"u").replace(/punct/g,ni).getRegex(),_N=it(ay,"u").replace(/punct/g,ny).getRegex(),SN=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,NN=it(SN,"u").replace(/openQuote/g,gN).replace(/punct/g,ni).getRegex(),iy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wN=it(iy,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),TN=it(iy,"gu").replace(/notPunctSpace/g,yN).replace(/punctSpace/g,bN).replace(/punct/g,ny).getRegex(),xN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",AN=it(xN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),RN=it("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),ON="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",kN=it(ON,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),CN=it(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ni).getRegex(),MN="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",DN=it(MN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),LN=it(/\\(punct)/,"gu").replace(/punct/g,ni).getRegex(),zN=it(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),UN=it(td).replace("(?:-->|$)","-->").getRegex(),jN=it("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",UN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,BN=it(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ly=it(/^!?\[(label)\]\[(ref)\]/).replace("label",uo).replace("ref",ed).getRegex(),sy=it(/^!?\[(ref)\](?:\[\])?/).replace("ref",ed).getRegex(),IN=it("reflink|nolink(?!\\()","g").replace("reflink",ly).replace("nolink",sy).getRegex(),fb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ad={_backpedal:Ji,anyPunctuation:LN,autolink:zN,blockSkip:vN,br:ty,code:hN,del:Ji,delLDelim:Ji,delRDelim:Ji,emStrongLDelim:EN,emStrongRDelimAst:wN,emStrongRDelimUnd:RN,escape:dN,link:BN,nolink:sy,punctuation:mN,reflink:ly,reflinkSearch:IN,tag:jN,text:pN,url:Ji},HN={...ad,emStrongLDelim:NN,emStrongRDelimAst:AN,emStrongRDelimUnd:kN,link:it(/^!?\[(label)\]\((.*?)\)/).replace("label",uo).getRegex(),reflink:it(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uo).getRegex()},Df={...ad,emStrongRDelimAst:TN,emStrongLDelim:_N,delLDelim:CN,delRDelim:DN,url:it(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:it(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fb).getRegex()},qN={...Df,br:it(ty).replace("{2,}","*").getRegex(),text:it(Df.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:nd,gfm:uN,pedantic:fN},Us={normal:ad,gfm:Df,breaks:qN,pedantic:HN},GN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},db=l=>GN[l];function Da(l,a){if(a){if(Un.escapeTest.test(l))return l.replace(Un.escapeReplace,db)}else if(Un.escapeTestNoEncode.test(l))return l.replace(Un.escapeReplaceNoEncode,db);return l}function hb(l){try{l=encodeURI(l).replace(Un.percentDecode,"%")}catch{return null}return l}function pb(l,a){var d;let r=l.replace(Un.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Un.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((d=s.at(-1))!=null&&d.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Un.slashPipe,"|");return s}function Mi(l,a,r){let s=l.length;if(s===0)return"";let u=0;for(;u<s&&l.charAt(s-u-1)===a;)u++;return l.slice(0,s-u)}function mb(l){let a=l.split(`
179
+ `),r=a.length-1;for(;r>=0&&Un.blankLine.test(a[r]);)r--;return a.length-r<=2?l:a.slice(0,r+1).join(`
180
+ `)}function $N(l,a){if(l.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===a[0])r++;else if(l[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function YN(l,a=0){let r=a,s="";for(let u of l)if(u===" "){let d=4-r%4;s+=" ".repeat(d),r+=d}else s+=u,r++;return s}function gb(l,a,r,s,u){let d=a.href,p=a.title||null,y=l[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:l[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function FN(l,a,r){let s=l.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
181
+ `).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[y]=p;return y.length>=u.length?d.slice(u.length):d}).join(`
182
+ `)}var fo=class{constructor(l){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=l||tl}space(l){let a=this.rules.block.newline.exec(l);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(l){let a=this.rules.block.code.exec(l);if(a){let r=this.options.pedantic?a[0]:mb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(l){let a=this.rules.block.fences.exec(l);if(a){let r=a[0],s=FN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:s}}}heading(l){let a=this.rules.block.heading.exec(l);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Mi(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Mi(a[0],`
183
+ `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(l){let a=this.rules.block.hr.exec(l);if(a)return{type:"hr",raw:Mi(a[0],`
184
+ `)}}blockquote(l){let a=this.rules.block.blockquote.exec(l);if(a){let r=Mi(a[0],`
185
+ `).split(`
186
+ `),s="",u="",d=[];for(;r.length>0;){let p=!1,y=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))y.push(r[g]),p=!0;else if(!p)y.push(r[g]);else break;r=r.slice(g);let m=y.join(`
187
+ `),b=m.replace(this.rules.other.blockquoteSetextReplace,`
188
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
189
+ ${m}`:m,u=u?`${u}
190
+ ${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,d,!0),this.lexer.state.top=v,r.length===0)break;let S=d.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let w=S,T=r.join(`
191
+ `),C=w.raw+`
192
+ `+T.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(C);d[d.length-1]=x,s=`${s}
193
+ ${T}`,u=u.substring(0,u.length-w.text.length)+x.text;break}else if((S==null?void 0:S.type)==="list"){let w=S,T=w.raw+`
194
+ `+r.join(`
195
+ `),C=this.list(T);d[d.length-1]=C,s=s.substring(0,s.length-S.raw.length)+C.raw,u=u.substring(0,u.length-w.raw.length)+C.raw,r=T.substring(d.at(-1).raw.length).split(`
196
+ `);continue}}return{type:"blockquote",raw:s,tokens:d,text:u}}}list(l){let a=this.rules.block.list.exec(l);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let d=this.rules.other.listItemRegex(r),p=!1;for(;l;){let g=!1,m="",b="";if(!(a=d.exec(l))||this.rules.block.hr.test(l))break;m=a[0],l=l.substring(m.length);let v=YN(a[2].split(`
197
+ `,1)[0],a[1].length),S=l.split(`
198
+ `,1)[0],w=!v.trim(),T=0;if(this.options.pedantic?(T=2,b=v.trimStart()):w?T=a[1].length+1:(T=v.search(this.rules.other.nonSpaceChar),T=T>4?1:T,b=v.slice(T),T+=a[1].length),w&&this.rules.other.blankLine.test(S)&&(m+=S+`
199
+ `,l=l.substring(S.length+1),g=!0),!g){let C=this.rules.other.nextBulletRegex(T),x=this.rules.other.hrRegex(T),A=this.rules.other.fencesBeginRegex(T),I=this.rules.other.headingBeginRegex(T),D=this.rules.other.htmlBeginRegex(T),W=this.rules.other.blockquoteBeginRegex(T);for(;l;){let q=l.split(`
200
+ `,1)[0],Z;if(S=q,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),Z=S):Z=S.replace(this.rules.other.tabCharGlobal," "),A.test(S)||I.test(S)||D.test(S)||W.test(S)||C.test(S)||x.test(S))break;if(Z.search(this.rules.other.nonSpaceChar)>=T||!S.trim())b+=`
201
+ `+Z.slice(T);else{if(w||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(v)||I.test(v)||x.test(v))break;b+=`
202
+ `+S}w=!S.trim(),m+=q+`
203
+ `,l=l.substring(q.length+1),v=Z.slice(T)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(l){let a=this.rules.block.html.exec(l);if(a){let r=mb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(l){let a=this.rules.block.def.exec(l);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Mi(a[0],`
204
+ `),href:s,title:u}}}table(l){var p;let a=this.rules.block.table.exec(l);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=pb(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
205
+ `):[],d={type:"table",raw:Mi(a[0],`
206
+ `),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(pb(y,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(l){let a=this.rules.block.lheading.exec(l);if(a){let r=a[1].trim();return{type:"heading",raw:Mi(a[0],`
207
+ `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(l){let a=this.rules.block.paragraph.exec(l);if(a){let r=a[1].charAt(a[1].length-1)===`
208
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(l){let a=this.rules.block.text.exec(l);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(l){let a=this.rules.inline.escape.exec(l);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(l){let a=this.rules.inline.tag.exec(l);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(l){let a=this.rules.inline.link.exec(l);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let d=Mi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=$N(a[2],"()");if(d===-2)return;if(d>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+d;a[2]=a[2].substring(0,d),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(s);d&&(s=d[1],u=d[3])}else u=a[3]?a[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),gb(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(l,a){let r;if((r=this.rules.inline.reflink.exec(l))||(r=this.rules.inline.nolink.exec(l))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return gb(r,u,r[0],this.lexer,this.rules)}}emStrong(l,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,d,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*l.length+u);(s=v.exec(a))!==null;){if(d=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!d)continue;if(p=[...d].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let S=[...s[0]][0].length,w=l.slice(0,u+s.index+S+p);if(Math.min(u,p)%2){let C=w.slice(1,-1);return{type:"em",raw:w,text:C,tokens:this.lexer.inlineTokens(C)}}let T=w.slice(2,-2);return{type:"strong",raw:w,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(l){let a=this.rules.inline.code.exec(l);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(l){let a=this.rules.inline.br.exec(l);if(a)return{type:"br",raw:a[0]}}del(l,a,r=""){let s=this.rules.inline.delLDelim.exec(l);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,d,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*l.length+u);(s=g.exec(a))!==null;){if(d=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!d||(p=[...d].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=l.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(l){let a=this.rules.inline.autolink.exec(l);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(l){var r;let a;if(a=this.rules.inline.url.exec(l)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let d;do d=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(d!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(l){let a=this.rules.inline.text.exec(l);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Ta=class Lf{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||tl,this.options.tokenizer=this.options.tokenizer||new fo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Un,block:to.normal,inline:Us.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Us}}static lex(a,r){return new Lf(r).lex(a)}static lexInline(a,r){return new Lf(r).inlineTokens(a)}lex(a){a=a.replace(Un.carriageReturn,`
209
+ `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],s=!1){var d,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Un.tabCharGlobal," ").replace(Un.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
210
+ `:r.push(g);continue}if(g=this.tokenizer.code(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
211
+ `)?"":`
212
+ `)+g.raw,b.text+=`
213
+ `+g.text,this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(g=this.tokenizer.fences(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
214
+ `)?"":`
215
+ `)+g.raw,b.text+=`
216
+ `+g.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},r.push(g));continue}if(g=this.tokenizer.table(a)){a=a.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(a)){a=a.substring(g.raw.length),r.push(g);continue}let m=a;if((y=this.options.extensions)!=null&&y.startBlock){let b=1/0,v=a.slice(1),S;this.options.extensions.startBlock.forEach(w=>{S=w.call({lexer:this},v),typeof S=="number"&&S>=0&&(b=Math.min(b,S))}),b<1/0&&b>=0&&(m=a.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let b=r.at(-1);s&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
217
+ `)?"":`
218
+ `)+g.raw,b.text+=`
219
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),s=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
220
+ `)?"":`
221
+ `)+g.raw,b.text+=`
222
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let s=a;if(this.tokens.links){let S=Object.keys(this.tokens.links);S.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,w=>S.includes(w.slice(w.lastIndexOf("[")+1,-1))?"["+"a".repeat(w.length-2)+"]":w))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,S=>"+".repeat(S.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(S,w,T)=>{let C=T?T.length:0;return S.slice(0,C)+"["+"a".repeat(S.length-C-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,d="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(d=""),u=!1;let S;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(T=>(S=T.call({lexer:this},a,r))?(a=a.substring(S.raw.length),r.push(S),!0):!1))continue;if(S=this.tokenizer.escape(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.tag(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.link(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(S.raw.length);let T=r.at(-1);S.type==="text"&&(T==null?void 0:T.type)==="text"?(T.raw+=S.raw,T.text+=S.text):r.push(S);continue}if(S=this.tokenizer.emStrong(a,s,d)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.codespan(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.br(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.del(a,s,d)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.autolink(a)){a=a.substring(S.raw.length),r.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(a))){a=a.substring(S.raw.length),r.push(S);continue}let w=a;if((v=this.options.extensions)!=null&&v.startInline){let T=1/0,C=a.slice(1),x;this.options.extensions.startInline.forEach(A=>{x=A.call({lexer:this},C),typeof x=="number"&&x>=0&&(T=Math.min(T,x))}),T<1/0&&T>=0&&(w=a.substring(0,T+1))}if(S=this.tokenizer.inlineText(w)){a=a.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(d=S.raw.slice(-1)),u=!0;let T=r.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=S.raw,T.text+=S.text):r.push(S);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},ho=class{constructor(l){xt(this,"options");xt(this,"parser");this.options=l||tl}space(l){return""}code({text:l,lang:a,escaped:r}){var d;let s=(d=(a||"").match(Un.notSpaceStart))==null?void 0:d[0],u=l.replace(Un.endingNewline,"")+`
223
+ `;return s?'<pre><code class="language-'+Da(s)+'">'+(r?u:Da(u,!0))+`</code></pre>
224
+ `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
225
+ `}blockquote({tokens:l}){return`<blockquote>
226
+ ${this.parser.parse(l)}</blockquote>
227
+ `}html({text:l}){return l}def(l){return""}heading({tokens:l,depth:a}){return`<h${a}>${this.parser.parseInline(l)}</h${a}>
228
+ `}hr(l){return`<hr>
229
+ `}list(l){let a=l.ordered,r=l.start,s="";for(let p=0;p<l.items.length;p++){let y=l.items[p];s+=this.listitem(y)}let u=a?"ol":"ul",d=a&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
230
+ `+s+"</"+u+`>
231
+ `}listitem(l){return`<li>${this.parser.parse(l.tokens)}</li>
232
+ `}checkbox({checked:l}){return"<input "+(l?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:l}){return`<p>${this.parser.parseInline(l)}</p>
233
+ `}table(l){let a="",r="";for(let u=0;u<l.header.length;u++)r+=this.tablecell(l.header[u]);a+=this.tablerow({text:r});let s="";for(let u=0;u<l.rows.length;u++){let d=l.rows[u];r="";for(let p=0;p<d.length;p++)r+=this.tablecell(d[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
234
+ <thead>
235
+ `+a+`</thead>
236
+ `+s+`</table>
237
+ `}tablerow({text:l}){return`<tr>
238
+ ${l}</tr>
239
+ `}tablecell(l){let a=this.parser.parseInline(l.tokens),r=l.header?"th":"td";return(l.align?`<${r} align="${l.align}">`:`<${r}>`)+a+`</${r}>
240
+ `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Da(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:a,tokens:r}){let s=this.parser.parseInline(r),u=hb(l);if(u===null)return s;l=u;let d='<a href="'+l+'"';return a&&(d+=' title="'+Da(a)+'"'),d+=">"+s+"</a>",d}image({href:l,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=hb(l);if(u===null)return Da(r);l=u;let d=`<img src="${l}" alt="${Da(r)}"`;return a&&(d+=` title="${Da(a)}"`),d+=">",d}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Da(l.text)}},id=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},xa=class zf{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||tl,this.options.renderer=this.options.renderer||new ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new id}static parse(a,r){return new zf(r).parse(a)}static parseInline(a,r){return new zf(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let d=0;d<a.length;d++){let p=a[d];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,d;this.renderer.parser=this;let s="";for(let p=0;p<a.length;p++){let y=a[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){s+=m||"";continue}}let g=y;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},ao,Bs=(ao=class{constructor(l){xt(this,"options");xt(this,"block");this.options=l||tl}preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(l=this.block){return l?Ta.lex:Ta.lexInline}provideParser(l=this.block){return l?xa.parse:xa.parseInline}},xt(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),PN=class{constructor(...l){xt(this,"defaults",Qf());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",xa);xt(this,"Renderer",ho);xt(this,"TextRenderer",id);xt(this,"Lexer",Ta);xt(this,"Tokenizer",fo);xt(this,"Hooks",Bs);this.use(...l)}walkTokens(l,a){var s,u;let r=[];for(let d of l)switch(r=r.concat(a.call(this,d)),d.type){case"table":{let p=d;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=d;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...l){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=a.renderers[u.name];d?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=d.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=a[u.level];d?d.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new ho(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let p=d,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}s.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new fo(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let p=d,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let p=d,y=r.hooks[p],g=u[p];Bs.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(d.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,a){return Ta.lex(l,a??this.defaults)}parser(l,a){return xa.parse(l,a??this.defaults)}parseMarkdown(l){return(a,r)=>{let s={...r},u={...this.defaults,...s},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=l),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return d(p)}}}onError(l,a){return r=>{if(r.message+=`
241
+ Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},el=new PN;function yt(l,a){return el.parse(l,a)}yt.options=yt.setOptions=function(l){return el.setOptions(l),yt.defaults=el.defaults,Qb(yt.defaults),yt};yt.getDefaults=Qf;yt.defaults=tl;function KN(...l){return el.use(...l),yt.defaults=el.defaults,Qb(yt.defaults),yt}yt.use=KN;yt.walkTokens=function(l,a){return el.walkTokens(l,a)};yt.parseInline=el.parseInline;yt.Parser=xa;yt.parser=xa.parse;yt.Renderer=ho;yt.TextRenderer=id;yt.Lexer=Ta;yt.lexer=Ta.lex;yt.Tokenizer=fo;yt.Hooks=Bs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;xa.parse;Ta.lex;yt.setOptions({gfm:!0,breaks:!1});function ld(l){const a=yt.parse(l??"",{async:!1});return VS.sanitize(a)}function zi({text:l,className:a}){const r=Y.useMemo(()=>ld(l),[l]);return l!=null&&l.trim()?f.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const ZN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function XN(l){return l.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>ZN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function VN(l,a){return XN(a)!==l.replace(/\s+/g," ").trim()}function Ys({text:l,className:a}){const r=Y.useMemo(()=>l!=null&&l.trim()?ld(l):"",[l]);return!r||!VN(l,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const QN=/\.(md|markdown)$/i;function sd(l){return QN.test(l)}function WN(l){return/^new file mode /m.test(l)||/^--- \/dev\/null$/m.test(l)}function JN(l){const a=[];let r=0,s=!1;const u=l.split(`
242
+ `);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const no=l=>(l.match(/\n/g)??[]).length;function rd(l){const a=JN(l),r=WN(l),s=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
243
+ `)+`
244
+ `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,S=v.trimEnd();if(S===""){m+=no(v);continue}const w=v.length-v.trimStart().length,T=m+no(v.slice(0,w)),C=T+no(S.slice(w));let x=!1;for(let A=T;A<=C&&!x;A++)x=y.has(A);s.push({kind:"block",raw:S.slice(w),from:T,to:C,changed:x}),m+=no(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),s.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:s,isNew:r,lines:a.length}}const Uf="cerber.stickyChapters";function ew(l){return l!=="off"}function tw(){try{return ew(localStorage.getItem(Uf))}catch{return!0}}function ry(){const[l,a]=Y.useState(tw);return[l,s=>{try{s?localStorage.removeItem(Uf):localStorage.setItem(Uf,"off")}catch{}a(s)}]}function lo(l){const a=l.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const bb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},nw={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function aw(l){return(l==null?void 0:l.recommendation)==="approve"?"APPROVE":(l==null?void 0:l.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function oy(l,a){const r=__(l);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function yb(l,a){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(l);return u!=null?{line:u,side:"old"}:null}function cy(l){const a=l.comments.filter(y=>y.status==="dropped"),r=l.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>lo(y)==="reply"),u=r.filter(y=>lo(y)==="hold"),d=r.filter(y=>lo(y)==="post"),p=oy(l.diff,d);return{inline:p,folded:d.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function iw(l,a){const r=l.alreadyRaised;if(!r)return null;if(l.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=lo(l);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function lw(l){return l.where.kind==="thread"?`${l.where.state} thread`:"review"}function Tf(l){const a=l.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${Ub[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function sw(l){if(!l.comments.some(s=>s.severity!=null))return null;const r=l.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function rw(l){if(!l.verdict||!l.comments.some(u=>u.severity!=null))return null;const r=l.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=l.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function jf(l){const{inline:a,folded:r,replies:s,held:u}=cy(l),d=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[ow(l,a,r),...d].join(" · ")}function ow(l,a,r){if(l.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const vb={approve:"approve",comment:"comment",request_changes:"changes"},cw={approve:"approve",comment:"comment",request_changes:"changes"};function uw(l,a){return l.status==="dropped"?"none":l.drifted?"comment":l.origin==="user"?"awaiting":a}function uy(l,a=20){const r=document.getElementById(`c-${l}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>uy(l,a-1))}function fw(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Eb(l,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),l.after(r),{tr:r,holder:u}}function _b(l,a,r){l.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const d=a.has(u);s.classList.toggle("file-viewed-on",d),s.classList.toggle("file-peek",d&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=d)})}function po(l,a){!l||!a||l.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>l.scrollIntoView({block:"start"}))}function dw(l){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=l,a.append(r," Viewed"),a}function fy({pick:l,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[d,p]=Y.useState(""),y=Y.useRef(null);Y.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[l.path,":",l.line]}),l.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),f.jsx(Ys,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[f.jsx(Ze,{name:"plus"}),"add comment",f.jsx(za,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>s(g),children:[f.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function hw({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y,viewedState:g}){const m=Y.useMemo(()=>l.trim()?b_(l,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[l]),b=Y.useMemo(()=>Ua(l).map(oe=>oe.path),[l]),v=Y.useMemo(()=>new Set(Ua(l).filter(oe=>sd(oe.path)&&rd(oe.patch).lines>0).map(oe=>oe.path)),[l]),S=Y.useMemo(()=>a.map(oe=>`${oe.id}@${oe.path}:${oe.line}`).join("|"),[a]),w=Y.useRef(null),T=Y.useRef(y);T.current=y;const C=Y.useRef(g);C.current=g;const[x,A]=Y.useState([]),[I,D]=Y.useState([]),[W,q]=Y.useState(null),[Z,ie]=Y.useState(null);Y.useEffect(()=>{var De,_;const oe=w.current;if(!oe)return;oe.innerHTML=m,lS(oe);const Ee=new Map,pe=[];oe.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var fe,ge,Oe,Ce,Ye;const se=(ge=(fe=z.querySelector(".d2h-file-name"))==null?void 0:fe.textContent)==null?void 0:ge.trim(),P=se&&b.includes(se)?se:b[B];if(se&&Ee.set(se,z),P){Ee.set(P,z),z.dataset.path=P;const qe=document.createElement("div");if(qe.className="file-comments",(Oe=z.querySelector(".d2h-file-header"))==null||Oe.after(qe),pe.push({path:P,el:qe}),v.has(P)){const Me=document.createElement("button");Me.type="button",Me.className="btn btn-sm md-read-toggle",Me.dataset.readPath=P,Me.textContent="read as a document",Me.title="Render this markdown instead of showing it line by line",(Ce=z.querySelector(".d2h-file-header"))==null||Ce.appendChild(Me)}(Ye=z.querySelector(".d2h-file-header"))==null||Ye.appendChild(dw(P))}}),_b(oe,C.current.viewed,C.current.peeked);const k=[],J=new Map;for(const z of a){if(z.line==null)continue;const B=Ee.get(z.path);if(!B)continue;const se=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(fe=>{var ge,Oe;return((Oe=(ge=fe.querySelector(".line-num2"))==null?void 0:ge.textContent)==null?void 0:Oe.trim())===String(z.line)});if(!se)continue;const P=Eb(J.get(se)??se,"inline-comment-row");J.set(se,P.tr),k.push({id:z.id,el:P.holder})}A(k),D(pe);const he=z=>{var qe;const B=z.target,se=B.closest(".md-read-toggle");if(se!=null&&se.dataset.readPath){T.current(se.dataset.readPath);return}const P=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&po(P,(P==null?void 0:P.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const fe=(qe=B.closest(".d2h-file-header"))==null?void 0:qe.closest(".file-viewed-on");if(fe!=null&&fe.dataset.path){po(P,(P==null?void 0:P.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(fe.dataset.path);return}const ge=z.target.closest(".line-add");if(!ge)return;const{path:Oe,line:Ce,side:Ye}=ge.dataset;!Oe||!Ce||q({path:Oe,line:Number(Ce),side:Ye==="old"?"old":"new"})};oe.addEventListener("click",he);const Se=()=>oe.removeEventListener("click",he);if(s)return q(null),ie(null),Se;for(const z of oe.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const se of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const P=yb((De=se.querySelector(".line-num1"))==null?void 0:De.textContent,(_=se.querySelector(".line-num2"))==null?void 0:_.textContent);if(!P)continue;const fe=document.createElement("button");fe.type="button",fe.className="line-add";const ge=`Say something about ${B}:${P.line}`;fe.title=ge,fe.setAttribute("aria-label",ge),fe.tabIndex=-1,fe.dataset.path=B,fe.dataset.line=String(P.line),fe.dataset.side=P.side,se.appendChild(fe)}}return ie(null),Se},[m,S,b,v,s]);const M=b.filter(oe=>g.viewed.has(oe)).join(`
245
+ `),F=b.filter(oe=>g.peeked.has(oe)).join(`
246
+ `);Y.useEffect(()=>{w.current&&_b(w.current,g.viewed,g.peeked)},[M,F]),Y.useEffect(()=>{const oe=w.current;if(!oe||!W||s){ie(null);return}const Ee=Array.from(oe.querySelectorAll(".d2h-file-wrapper")).find(J=>J.dataset.path===W.path),pe=Array.from((Ee==null?void 0:Ee.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(J=>{var De,_;const he=J.querySelector(".d2h-code-linenumber"),Se=yb((De=he==null?void 0:he.querySelector(".line-num1"))==null?void 0:De.textContent,(_=he==null?void 0:he.querySelector(".line-num2"))==null?void 0:_.textContent);return(Se==null?void 0:Se.line)===W.line&&Se.side===W.side});if(!pe){q(null);return}const k=Eb(pe,"line-composer-row");return ie(k.holder),()=>k.tr.remove()},[W,x,s]);const te=a.filter(oe=>!x.some(Ee=>Ee.id===oe.id)),X=I.map(oe=>({...oe,comments:te.filter(Ee=>Ee.path===oe.path)})).filter(oe=>oe.comments.length>0),me=te.filter(oe=>!I.some(Ee=>Ee.path===oe.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:w}),x.map(({id:oe,el:Ee})=>{const pe=a.find(k=>k.id===oe);return pe?Ou.createPortal(r(pe),Ee,oe):null}),X.map(({path:oe,el:Ee,comments:pe})=>Ou.createPortal(f.jsx(f.Fragment,{children:pe.map(r)}),Ee,`file:${oe}`)),W&&Z&&Ou.createPortal(f.jsx(fy,{pick:W,chatBusy:u,onAdd:oe=>{d(W,oe),q(null)},onAsk:oe=>{p(W,oe),q(null)},onClose:()=>q(null)}),Z,`pick-${W.path}-${W.side}-${W.line}`),me.map(oe=>r(oe))]})}function pw({block:l,path:a,changed:r,readOnly:s,onPick:u}){const d=Y.useMemo(()=>ld(l.raw),[l.raw]),p=`Say something about ${a}:${l.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&f.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:f.jsx(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function mw({path:l,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=Y.useState(null),S=Y.useRef(null),w=Y.useRef(null),T=m.viewed.has(l),C=T&&!m.peeked.has(l),x=Y.useMemo(()=>{const A=new Map,I=a.items.flatMap((W,q)=>W.kind==="block"?[{item:W,i:q}]:[]),D=[];for(const W of r){const q=W.line==null?void 0:I.filter(Z=>Z.item.from<=W.line).pop()??I[0];if(!q){D.push(W);continue}A.set(q.i,[...A.get(q.i)??[],W])}return{at:A,rest:D}},[a,r]);return f.jsxs("div",{className:"md-file",ref:S,children:[f.jsxs("div",{ref:w,className:`md-file-head${T?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:A=>{T&&!A.target.closest("button, label")&&(po(S.current,w.current),m.onTogglePeek(l))},children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:l}),a.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),f.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[f.jsx("input",{type:"checkbox",checked:T,onChange:()=>{T||po(S.current,w.current),m.onToggleViewed(l)}})," ","Viewed"]})]}),!C&&x.rest.length>0&&f.jsx("div",{className:"file-comments",children:x.rest.map(s)}),!C&&a.items.map((A,I)=>f.jsxs(Y.Fragment,{children:[A.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",A.lines.toLocaleString()," line",A.lines===1?"":"s"," the diff skips"]}):f.jsx(pw,{block:A,path:l,changed:A.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:l,line:A.from,side:"new"})}),(x.at.get(I)??[]).map(s),A.kind==="block"&&(b==null?void 0:b.line)===A.from&&f.jsx(fy,{pick:b,chatBusy:d,onAdd:D=>{p(b,D),v(null)},onAsk:D=>{y(b,D),v(null)},onClose:()=>v(null)})]},I))]})}function gw({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,viewedState:y}){const g=Y.useMemo(()=>l.trim()?Ua(l):[],[l]),m=Y.useMemo(()=>new Map(g.filter(x=>sd(x.path)).map(x=>[x.path,rd(x.patch)]).filter(([,x])=>x.lines>0)),[g]),[b,v]=Y.useState({}),S=x=>{var A;return b[x]??((A=m.get(x))==null?void 0:A.isNew)??!1},w=[];for(const x of g){const A=w[w.length-1];if(m.has(x.path)&&S(x.path)){w.push({kind:"read",paths:[x.path],patch:x.patch});continue}(A==null?void 0:A.kind)==="diff"?(A.paths.push(x.path),A.patch+=`
247
+ ${x.patch}`):w.push({kind:"diff",paths:[x.path],patch:x.patch})}if(g.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const T=new Set(g.map(x=>x.path)),C=x=>a.filter(A=>x(A.path));return f.jsxs(f.Fragment,{children:[w.map(x=>{const A=new Set(x.paths);if(x.kind==="read"){const I=x.paths[0];return f.jsx(mw,{path:I,doc:m.get(I),comments:C(D=>D===I),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>v(D=>({...D,[I]:!1})),viewedState:y},`read:${I}`)}return f.jsx(hw,{patch:x.patch,comments:C(I=>A.has(I)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:I=>v(D=>({...D,[I]:!0})),viewedState:y},`diff:${x.paths[0]}`)}),C(x=>!T.has(x)).map(r)]})}function bw({check:l,raised:a,held:r,replies:s}){if(!l)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),d=a>0?f.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return l.checkingSince?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):l.error?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"warn",title:l.error,children:"couldn't check what others already raised"})]}):d||(l.remarks.length>0?f.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function yw({comment:l,readOnly:a,onDecide:r}){var y;const s=l.alreadyRaised;if(!s)return null;const u=iw(l,a),d=s.where.kind==="thread",p=!a&&l.status!=="dropped";return f.jsxs("div",{className:"raised",children:[f.jsxs("div",{className:"raised-head",children:[f.jsxs("span",{className:"tag tag-raised",children:[f.jsx(Ze,{name:"comment"}),"already raised by @",s.by," · ",lw(s)]}),s.url&&f.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsx("span",{className:"grow"}),p&&f.jsxs(f.Fragment,{children:[d&&f.jsx("button",{className:`btn btn-sm${s.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),f.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),f.jsxs("p",{className:"raised-reason",children:[s.reason,u&&f.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?f.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function dy({comment:l,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:d}){const[p,y]=Y.useState(!1),[g,m]=Y.useState(l.body),b=l.status==="approved",v=l.status==="dropped",S=l.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return f.jsxs("div",{id:`c-${l.id}`,className:`comment comment-${l.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[l.path,l.line!=null?`:${l.line}`:""]}),f.jsx("span",{className:`tag tag-${l.origin==="user"?"yours":S}`,children:S}),l.drifted?f.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):l.line==null&&f.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!l.drifted&&l.originalLine!=null&&l.originalLine!==l.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",l.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(p?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(l.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[f.jsx(Ze,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ze,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[f.jsx(Ze,{name:"drop"}),v?"dropped":"drop"]}),s&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[f.jsx(Ze,{name:"comment"}),"discuss"]}),l.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),f.jsx(yw,{comment:l,readOnly:u,onDecide:w=>a({raisedDecision:w})}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:w=>m(w.target.value),rows:Math.max(3,g.split(`
248
+ `).length)}),f.jsx(Ys,{className:"comment-body",text:ig(g,l.severity??null)})]}):f.jsx(zi,{className:"comment-body prose",text:ig(l.body,l.severity??null)})]})}function vw({files:l,chapterId:a,onAdd:r}){const[s,u]=Y.useState(!1),[d,p]=Y.useState(l[0]??""),[y,g]=Y.useState(""),[m,b]=Y.useState("");return s?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:v=>p(v.target.value),children:l.map(v=>f.jsx("option",{value:v,children:v},v))}),f.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),f.jsx(Ys,{className:"comment-body",text:m}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const Ew=2e3;function _w({chapter:l,n:a,diff:r,comments:s,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:S,readOnly:w,anchorRef:T,flash:C,viewedState:x,sticky:A,stuck:I}){const[D,W]=Y.useState(!1);Y.useEffect(()=>{I||W(!1)},[I]);const q=A&&I&&u,Z=Y.useRef(null),ie=Y.useRef(null);Y.useEffect(()=>{const k=Z.current,J=ie.current;if(!A||!k||!J)return;const he=()=>k.style.setProperty("--chapter-head-h",`${J.offsetHeight}px`);he();const Se=new ResizeObserver(he);return Se.observe(J),()=>{Se.disconnect(),k.style.removeProperty("--chapter-head-h")}},[A]);const M=()=>{p(),q&&requestAnimationFrame(()=>{var k;return(k=Z.current)==null?void 0:k.scrollIntoView({block:"start"})})},F=Y.useMemo(()=>y_(r,l.files),[r,l.files]),te=l.files.filter(k=>x.viewed.has(k)).length,X=Y.useMemo(()=>oy(F,s),[F,s]),me=Y.useMemo(()=>new Set(Ua(F).map(k=>k.path)),[F]),oe=s.filter(k=>!X.includes(k)&&!me.has(k.path)),Ee=s.filter(k=>X.includes(k)||me.has(k.path)),pe=k=>f.jsx(dy,{comment:k,onUpdate:J=>y(k.id,J),onDelete:()=>g(k.id),onDiscuss:b&&(()=>b({target:"comment",id:k.id})),readOnly:w,flash:C===k.id},k.id);return f.jsxs("section",{className:`chapter${A?" chapter-sticky":""}`,ref:k=>{Z.current=k,T(k)},children:[f.jsxs("header",{ref:ie,className:`chapter-head${A?" chapter-head-sticky":""}${q?" chapter-head-stuck":""}`,onClick:M,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[a," · ",l.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[l.files.length," file",l.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",te>0&&` · ${te}/${l.files.length} viewed`,d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),A&&u&&f.jsx("button",{className:`btn btn-sm${q?"":" chapter-about-idle"}`,"aria-expanded":D,onClick:k=>{k.stopPropagation(),W(J=>!J)},children:D?"hide explanation":"what this chapter is about"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:k=>{k.stopPropagation(),b({target:"chapter",id:l.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]}),q&&D&&f.jsx("div",{className:"chapter-head-about",onClick:k=>k.stopPropagation(),children:f.jsx(zi,{className:"prose",text:l.explanation})})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(zi,{className:"prose chapter-explanation",text:l.explanation}),oe.map(pe),f.jsx(gw,{patch:F,comments:Ee,renderComment:pe,readOnly:w,chatBusy:S,onAddLineComment:(k,J)=>m({path:k.path,line:k.side==="new"?k.line:null,body:J,chapterId:l.id}),onAskAboutLine:v,viewedState:x}),!w&&l.files.length>0&&f.jsx(vw,{files:l.files,chapterId:l.id,onAdd:m})]})]})}function Sw(l,a){switch(l.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${l.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===l.chapterId);return`rewrote the "${(r==null?void 0:r.title)??l.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===l.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===l.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${l.path}:${l.line??"file"}`}}function Bf(l,a){var s;if(l.target==="summary")return"the summary";if(l.target==="verdict")return"the verdict";if(l.target==="chapter")return((s=a.chapters.find(u=>u.id===l.id))==null?void 0:s.title)??"a chapter";if(l.target==="line")return l.path==null||l.line==null?"a line of the diff":`${l.path}:${l.line}${l.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===l.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function Nw({turn:l,artifact:a}){return f.jsxs("div",{className:`chat-turn chat-turn-${l.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:l.role==="user"?"You":"Reviewer"}),l.refs.length>0&&f.jsx("div",{className:"chat-refs",children:l.refs.map((r,s)=>f.jsx("span",{className:"chat-ref",children:Bf(r,a)},s))}),f.jsx(zi,{className:"chat-turn-body prose",text:l.body}),l.revisions.map((r,s)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",Sw(r,a)]},s)),l.refused.map((r,s)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function ww({artifact:l,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=Y.useState(""),[v,S]=Y.useState(!1),[w,T]=Y.useState(null),C=l.chat??[],x=l.pendingChat??null,A=x!=null&&x.error==null,I=v||A,D=(q,Z,ie)=>{!q||I||(S(!0),T(null),Rf(a,{message:q,refs:Z}).then(M=>{d(M),ie==null||ie()}).catch(M=>T(String(M.message??M))).finally(()=>S(!1)))},W=()=>D(m.trim(),r,()=>{b(""),s()});return f.jsxs("section",{className:"card chat-panel",ref:g,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(C.length>0||x)&&f.jsxs("div",{className:"chat-log",children:[C.map(q=>f.jsx(Nw,{turn:q,artifact:l},q.id)),x&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),x.refs.length>0&&f.jsx("div",{className:"chat-refs",children:x.refs.map((q,Z)=>f.jsx("span",{className:"chat-ref",children:Bf(q,l)},Z))}),f.jsx(zi,{className:"chat-turn-body prose",text:x.message}),x.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",x.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>D(x.message,x.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>t0(a).then(d).catch(q=>T(String(q.message??q))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:x.progress.length>0?f.jsx("ol",{className:"chat-progress",children:x.progress.map((q,Z)=>f.jsx("li",{className:Z===x.progress.length-1?"now":void 0,children:q},Z))}):"Thinking… it re-reads the code before answering."})]})]}),p?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map((q,Z)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(Z),title:"Remove",children:[Bf(q,l)," ✕"]},Z))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,disabled:v,placeholder:C.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:q=>b(q.target.value),onKeyDown:q=>{q.key==="Enter"&&(q.metaKey||q.ctrlKey)&&W()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:W,disabled:I||m.trim()==="",children:[f.jsx(Ze,{name:"send"}),A?"waiting for the answer…":v?"sending…":"send message",f.jsx(za,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),l.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:I,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{S(!0),n0(a).then(d).catch(q=>T(String(q.message??q))).finally(()=>S(!1))},children:"reset the review"})]})]}),w&&f.jsx("div",{className:"error",children:w})]})]})}function hy(l){const a=Y.useRef(null),r=Y.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return Y.useEffect(r,[l,r]),Y.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function Tw({initial:l,onSave:a,onCancel:r}){const[s,u]=Y.useState(l),[d,p]=Y.useState(!1),[y,g]=Y.useState(null),m=hy(s),b=()=>{d||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:s}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:r,disabled:d,children:"cancel"}),f.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const xw=l=>l?`@${l} — handing this review over to you.`:"";function Aw({artifact:l,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=Y.useState(Pb),[d,p]=Y.useState(""),[y,g]=Y.useState(""),[m,b]=Y.useState(!1),[v,S]=Y.useState(!1),[w,T]=Y.useState(null),[C,x]=Y.useState(null),[A,I]=Y.useState(null),[D,W]=Y.useState(!1),[q,Z]=Y.useState(null),[ie,M]=Y.useState(null),[F,te]=Y.useState(!1),[X,me]=Y.useState(-1),oe=hy(y),Ee=Y.useRef(null),pe=Of(d),k=Fb(pe),J=!l.sent&&(l.summary!==""||l.comments.length>0),he=D?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(P=>[P.title,P.explanation]),l.comments.map(P=>{var fe,ge;return[P.path,P.line,P.body,P.severity,P.status,P.drifted,(fe=P.alreadyRaised)==null?void 0:fe.decision,(ge=P.alreadyRaised)==null?void 0:ge.where]})]):"";Y.useEffect(()=>{if(!D)return;let P=!1;return M(null),Z(null),Gb(a,"COMMENT").then(fe=>!P&&Z(fe)).catch(fe=>{P||(Z(null),M(String((fe==null?void 0:fe.message)??fe)))}),()=>{P=!0}},[D,a,he]);const Se=!D||q!=null;Y.useEffect(()=>{var P;X<0||(P=document.getElementById(`handoff-option-${X}`))==null||P.scrollIntoView({block:"nearest"})},[X]);const De=Y.useMemo(()=>h0(C??[],u),[C,u]),_=Y.useMemo(()=>p0(De,d),[De,d]);Y.useEffect(()=>{let P=!1;return l0(a).then(fe=>!P&&x(fe.logins)).catch(fe=>!P&&I(String((fe==null?void 0:fe.message)??fe))),()=>{P=!0}},[a]);const z=P=>{p(P),m||g(xw(Of(P)))},B=P=>{z(P),te(!1),me(-1)};Y.useLayoutEffect(()=>{var P;(P=Ee.current)==null||P.showModal()},[]);const se=()=>{v||!k||!Se||(S(!0),T(null),r(pe,y.trim(),D).catch(P=>{T(String((P==null?void 0:P.message)??P)),S(!1)}))};return f.jsx("dialog",{className:"handoff-dialog",ref:Ee,"aria-label":`Hand off ${l.id}`,onCancel:P=>{P.preventDefault(),v||s()},onClick:P=>{P.target===Ee.current&&!v&&s()},children:f.jsxs("div",{className:"handoff-body",children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"hand off"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:l.id})]}),f.jsxs("div",{className:"handoff-who",children:[f.jsx("span",{className:"handoff-at",children:"@"}),f.jsxs("div",{className:"handoff-combo",children:[f.jsx("input",{className:"handoff-login",autoFocus:!0,value:d,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":F&&_.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":X>=0?`handoff-option-${X}`:void 0,onFocus:()=>te(!0),onBlur:()=>te(!1),onChange:P=>{z(P.target.value),te(!0),me(0)},onKeyDown:P=>{const fe=F&&_.length>0;if(P.key==="ArrowDown"||P.key==="ArrowUp"){if(P.preventDefault(),!fe)return te(!0);const ge=P.key==="ArrowDown"?1:-1;me(Oe=>(Oe+ge+_.length)%_.length);return}if(P.key==="Enter"){const ge=fe&&X>=0?_[X]:void 0;ge&&ge.login.toLowerCase()!==pe.toLowerCase()?B(ge.login):se();return}P.key==="Escape"&&fe&&(P.preventDefault(),te(!1),me(-1))}}),F&&_.length>0&&f.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:_.map((P,fe)=>f.jsxs("li",{id:`handoff-option-${fe}`,role:"option","aria-selected":fe===X,className:fe===X?"on":void 0,onMouseEnter:()=>me(fe),onMouseDown:ge=>{ge.preventDefault(),B(P.login)},children:[f.jsxs("span",{className:"handoff-option-login",children:["@",P.login]}),P.recent&&f.jsx("span",{className:"faint",children:"handed to before"})]},P.login))})]})]}),A&&f.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),f.jsx("textarea",{ref:oe,className:"body-edit",rows:2,value:y,onChange:P=>{b(!0),g(P.target.value)},onKeyDown:P=>{P.key==="Enter"&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),se())}}),f.jsxs("div",{className:"body-source",children:[f.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&f.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),J&&f.jsxs("div",{className:"handoff-with-review",children:[f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:D,disabled:v,onChange:P=>W(P.target.checked)}),f.jsxs("span",{children:["also post the review — ",f.jsx("span",{className:"faint",children:jf(l)})]})]}),D&&f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"faint",children:["Posts as a ",f.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",k?pe:"them","'s to make. The findings keep their grades."]}),ie?f.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",ie]}):q?f.jsx("pre",{className:"body-preview",children:q.body}):f.jsx("p",{className:"faint",children:"building the body…"})]})]}),w&&f.jsx("p",{className:"error",children:w}),f.jsxs("p",{className:"faint handoff-says",children:[k?f.jsxs(f.Fragment,{children:["@",pe]}):"They"," will be asked for this review and you will be taken off it."," ",D?"This row goes under sent, with the review on the PR.":l.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:se,disabled:v||!k||!Se,children:[f.jsx(Ze,{name:"arrowRight"}),v?"handing over…":k?`hand off to @${pe}`:"hand off",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function Rw({artifact:l,reviewKey:a,event:r,sending:s,checking:u,onSend:d,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[S,w]=Y.useState(null),[T,C]=Y.useState(null),[x,A]=Y.useState(l.bodyOverride!=null),[I,D]=Y.useState(!1),W=l.bodyOverride!=null;Y.useEffect(()=>{W&&A(!0)},[W]);const q=x&&!I?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(Z=>[Z.title,Z.explanation]),l.comments.map(Z=>{var ie,M;return[Z.path,Z.line,Z.body,Z.severity,Z.status,Z.drifted,(ie=Z.alreadyRaised)==null?void 0:ie.decision,(M=Z.alreadyRaised)==null?void 0:M.where]})]):"";return Y.useEffect(()=>{if(!x||I)return;let Z=!1;return w(null),C(null),Gb(a,r).then(ie=>{Z||(w(ie),C(null))}).catch(ie=>{Z||C(String(ie))}),()=>{Z=!0}},[a,r,q,x,I]),l.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:v,children:[f.jsxs("strong",{children:["✔ sent as ",bb[l.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(l.sent.at).toLocaleString()," · ",jf(l),l.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),l.sent.url&&f.jsxs("a",{href:l.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:y})]}):f.jsxs("div",{className:"send-panel",ref:v,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:jf(l)}),f.jsxs("button",{className:"link",onClick:()=>A(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ze,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${nw[r]}`,disabled:s||u,onClick:d,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),s?"sending…":u?"checking what others already raised…":`${bb[r]} on ${l.id}`," ",f.jsx(za,{children:"s"})]})}),p&&f.jsx("p",{className:"error",children:p}),x&&f.jsxs(f.Fragment,{children:[T&&f.jsx("p",{className:"error",children:T}),S?I?f.jsx(Tw,{initial:S.body,onSave:Z=>b(Z).then(()=>D(!1)),onCancel:()=>D(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:S.body}),f.jsxs("div",{className:"body-source",children:[W?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),f.jsx("button",{className:"link",onClick:()=>b(null).catch(Z=>C(String((Z==null?void 0:Z.message)??Z))),children:"build it from the review again"})]}):f.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),f.jsxs("button",{className:"link",onClick:()=>D(!0),children:[f.jsx(Ze,{name:"edit"}),W?"keep editing it":"write it yourself"]})]})]}):!T&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:y})]})}function Ow({filed:l}){var s,u,d;const a=((s=l.review)==null?void 0:s.url)??((u=l.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return l.reason==="own-reply"&&l.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(l.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):l.reason==="request-withdrawn"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(l.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=l.review)==null?void 0:d.at)??l.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function kw({entries:l,open:a,onToggle:r,anchorRef:s}){const u=d=>{const p=new Date(d);return Number.isNaN(p.getTime())?d:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:s,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:l.length>0?`${l.length} entr${l.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[f.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&f.jsx("div",{className:"card-body",children:l.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:l.map((d,p)=>({e:d,i:p})).reverse().map(({e:d,i:p})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${p}-${d.at}`))})})]})}function Cw({handoff:l,sent:a,hasDraft:r}){const s=new Date(l.at).toLocaleDateString();return f.jsxs("div",{children:[f.jsxs("strong",{children:["You handed this to @",l.to," on ",s,"."]})," ","GitHub asks them for this review now",l.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",l.note?l.note.url?f.jsxs(f.Fragment,{children:["A"," ",f.jsx("a",{href:l.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):f.jsx(f.Fragment,{children:"A note on the PR says so."}):f.jsx(f.Fragment,{children:"No note was posted — only the request moved."})," ",a?f.jsx(f.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?f.jsx(f.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):f.jsx(f.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function Mw({artifact:l,freshness:a,rerunning:r,onRerun:s}){const u=l.status==="running",d=(a==null?void 0:a.prState)??l.pr.state,p=d==="CLOSED"||d==="MERGED",y=l.refresh,g=a!=null&&a.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const m=l.filed,b=l.handoff;return!p&&!g&&!m&&!b?null:f.jsxs("div",{className:"freshness",children:[b&&f.jsx(Cw,{handoff:b,sent:l.sent,hasDraft:l.summary!==""||l.comments.length>0}),m&&f.jsx(Ow,{filed:m}),p&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&f.jsxs(f.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&f.jsxs(f.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!l.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function Dw({reviewKey:l}){var oa,va,Wn,Ea,tn;const[a,r]=Y.useState(null),[s,u]=Y.useState(null),[d,p]=Y.useState(null),[y,g]=Y.useState(null),[m,b]=Y.useState(!1),[v,S]=Y.useState([]),[w,T]=Y.useState(new Set),C=H=>T(de=>new Set(de).add(H)),[x,A]=Y.useState(!1),[I,D]=Y.useState([]),W=Y.useRef(null),[q,Z]=Y.useState(new Set),[ie,M]=Y.useState(new Set),F=Y.useRef(Promise.resolve()),te=Y.useRef(0),[X,me]=Y.useState(0),oe=Y.useRef(new Map),[Ee]=ry(),[pe,k]=Y.useState(null),J=Y.useRef(null),he=Y.useRef(null),Se=Y.useRef(null),De=Y.useRef(null),_=Y.useRef(null),z=Y.useRef(null),[B,se]=Y.useState(!1),P=Y.useRef(null),[fe,ge]=Y.useState(!1),[Oe,Ce]=Y.useState(!1),[Ye,qe]=Y.useState(null),[Me,Ct]=Y.useState(null);Y.useEffect(()=>{if(!Me)return;const H=setTimeout(()=>Ct(null),1800);return()=>clearTimeout(H)},[Me]);const Pe=H=>{var de,xe;D(be=>be.some(Qe=>Qe.target===H.target&&Qe.id===H.id)?be:[...be,H]),(de=W.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(xe=W.current)==null||xe.focus()};Y.useEffect(()=>{let H=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),qe(null),Ce(!1),rg(l).then(de=>{if(!H)return r(de),e0(l).then(xe=>{H||(p(xe),xe.changed&&r(xe.artifact))}).catch(xe=>!H&&g(String(xe.message??xe))).then(()=>{if(!(H||de.sent||de.status==="running"||de.comments.length===0))return Ce(!0),i0(l).then(xe=>!H&&r(xe)).catch(()=>{}).finally(()=>!H&&Ce(!1))})}).catch(de=>!H&&u(String(de))),()=>{H=!0}},[l]),Y.useEffect(()=>{Xf().then(S).catch(()=>{})},[]),Y.useEffect(()=>{const H=P.current;if(!H)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${H.offsetHeight}px`);de();const xe=new ResizeObserver(de);return xe.observe(H),()=>{xe.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const In=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Je=((oa=a==null?void 0:a.raisedCheck)==null?void 0:oa.checkingSince)!=null||Oe;Y.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!In&&!Je)return;const H=setInterval(()=>{rg(l).then(de=>{r(de),de.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(H)},[a==null?void 0:a.status,In,Je,l]);const St=(a==null?void 0:a.sent)!=null,On=Y.useMemo(()=>x_(v,l,w),[v,l,w]),Mt=On.findIndex(H=>H.key===l),It=(Mt>0?On[Mt-1]:null)??null,ct=(Mt>=0&&Mt<On.length-1?On[Mt+1]:null)??null,Hn=H=>{window.location.hash=`#/r/${encodeURIComponent(H)}`},Zn=()=>{ct?Hn(ct.key):window.location.hash="#/"},$e=Y.useMemo(()=>{if(!a)return[];const H=S_(a.diff,a.chapters);return H.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:H}]:a.chapters},[a]);Y.useEffect(()=>{let H=0;const de=()=>{var ue;H=0;const Qe=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ht=Qe+16;let $t=null;for(const Ne of $e){const Ge=(ue=oe.current.get(Ne.id))==null?void 0:ue.getBoundingClientRect();Ge&&Ge.top<=Ht&&Ge.bottom>Ht&&($t={id:Ne.id,stuck:Ge.top<Qe-1})}k(Ne=>(Ne==null?void 0:Ne.id)===($t==null?void 0:$t.id)&&(Ne==null?void 0:Ne.stuck)===($t==null?void 0:$t.stuck)?Ne:$t)},xe=()=>{H||(H=requestAnimationFrame(de))};de(),window.addEventListener("scroll",xe,{passive:!0}),window.addEventListener("resize",xe);const be=new ResizeObserver(xe);return be.observe(document.body),()=>{cancelAnimationFrame(H),window.removeEventListener("scroll",xe),window.removeEventListener("resize",xe),be.disconnect()}},[$e]);const Jt=Y.useMemo(()=>{const H=N_((a==null?void 0:a.diff)??""),de=new Set(Ua((a==null?void 0:a.diff)??"").filter(be=>sd(be.path)&&rd(be.patch).isNew).map(be=>be.path)),xe=be=>{const Qe=H.get(be)??0;return de.has(be)?Math.round(Qe/4):Qe};return new Map($e.map(be=>[be.id,be.files.reduce((Qe,Ht)=>Qe+xe(Ht),0)]))},[a==null?void 0:a.diff,$e]),vt=H=>{const de=Jt.get(H)??0;return de>Ew?de:null},yn=H=>q.has(H)?vt(H)!=null:vt(H)==null,vn=H=>Z(de=>{const xe=new Set(de);return xe.has(H)?xe.delete(H):xe.add(H),xe});Y.useEffect(()=>{Z(new Set),M(new Set)},[l]);const kn=Y.useMemo(()=>Object.fromEntries(Ua((a==null?void 0:a.diff)??"").map(H=>[H.path,w_(H.patch)])),[a==null?void 0:a.diff]),En=Y.useMemo(()=>new Set(Object.keys(kn).filter(H=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[H])===kn[H]})),[kn,a==null?void 0:a.viewed]),Cn={viewed:En,peeked:ie,onToggleViewed:H=>{const de=En.has(H)?null:kn[H]??null;M(be=>{const Qe=new Set(be);return Qe.delete(H),Qe}),r(be=>{if(!be)return be;const Qe={...be.viewed};return de===null?delete Qe[H]:Qe[H]=de,{...be,viewed:Qe}});const xe=++te.current;F.current=F.current.then(()=>X_(l,H,de)).then(be=>{xe===te.current&&r(Qe=>Qe&&Qe.id===be.id?{...Qe,viewed:be.viewed}:Qe)}).catch(be=>u(String(be)))},onTogglePeek:H=>M(de=>{const xe=new Set(de);return xe.has(H)?xe.delete(H):xe.add(H),xe})},Ut=H=>{const de=$e[H];return de?(me(H),yn(de.id)||vn(de.id),de):null},qt=(...H)=>{for(const de of H)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},Dt=H=>{var xe;const de=Ut(H);de&&((xe=oe.current.get(de.id))==null||xe.scrollIntoView({behavior:"smooth",block:"start"}))},ya=(H,de)=>{var be;Ut(H);const xe=(be=a==null?void 0:a.comments.find(Qe=>Qe.id===de))==null?void 0:be.path;xe&&En.has(xe)&&M(Qe=>new Set(Qe).add(xe)),Ct(de),uy(de)},_n=aw(a==null?void 0:a.verdict);Y.useEffect(()=>qe(null),[_n]);const Mn=()=>{!a||a.sent||fe||Je||(ge(!0),qe(null),a0(l,_n).then(({replyError:H,...de})=>{r(de),H&&qe(`Sent — but ${H}`),C(l)}).catch(H=>qe(String(H.message??H))).finally(()=>ge(!1)))};if(Y.useEffect(()=>{const H=de=>{fw(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&It?Hn(It.key):de.key==="]"&&ct?Hn(ct.key):de.key==="n"?Dt(Math.min($e.length-1,X+1)):de.key==="N"?Dt(Math.max(0,X-1)):de.key==="s"&&!St&&Mn())};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[It==null?void 0:It.key,ct==null?void 0:ct.key,$e,X,St,_n,a==null?void 0:a.sent,fe,Je]),s&&!a)return f.jsx("p",{className:"error pad",children:s});if(!a)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Ie=H=>{b(!0),u(null),qb(l,H).then(r).catch(de=>{u(String(de)),b(!1)})},Gt=H=>H.then(r).catch(de=>u(String(de))),dn=H=>io(l,{status:H}).then(()=>{C(l),Zn()}).catch(de=>u(String(de))),Kt=(H,de,xe)=>s0(l,{to:H,note:de,postReview:xe}).then(({artifact:be,noteError:Qe,sendError:Ht,replyError:$t})=>{d0(H),r(be),A(!1),C(l);const ue=[Ht&&`the review did not post: ${Ht}`,$t,Qe&&`the note did not post: ${Qe}`].filter(Boolean);ue.length>0?u(`Handed to @${H}, but ${ue.join("; and ")}`):Zn()}),R=(H,de)=>Gt(V_(l,H,de)),ne=H=>Gt(W_(l,H)),ye=H=>Gt(Q_(l,H)),ze=a.comments.filter(H=>!H.chapterId||!$e.some(de=>de.id===H.chapterId)),{inline:et,folded:lt,dropped:we,held:_e,replies:je}=cy(a),Rt=a.comments.filter(H=>H.alreadyRaised&&H.status!=="dropped").length,gt=a.comments.filter(H=>H.status!=="dropped"&&H.drifted).length,Sn=a.verdict?vb[a.verdict.recommendation]:"none",Vn=rw(a),Qn=sw(a),Zt=a.pendingChat!=null&&a.pendingChat.error==null,Ot=a.status==="running"||Zt,en=()=>Gt(Rf(l,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),ut=(H,de)=>{Gt(Rf(l,{message:de,refs:[{target:"line",id:null,path:H.path,line:H.line,side:H.side}]}).then(xe=>{var be;return(be=De.current)==null||be.scrollIntoView({behavior:"smooth",block:"start"}),xe}))},qn=(va=a.run)!=null&&va.trusted?"ran the code":(Wn=a.run)!=null&&Wn.withSource?"read the full source":a.run?"read the diff only":"no run yet",ai=H=>{var de;return f.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===H?` verdict-pick-on tone-${vb[H]}`:""}`,title:H==="approve"?"Approve":H==="comment"?"Comment without blocking":"Request changes",onClick:()=>Gt(io(l,{verdictRecommendation:H})),children:[f.jsx(Ze,{name:cw[H]}),H.replace("_"," ")]},H)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:P,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:a.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!It,title:It?`[ — ${It.id}: ${It.pr.title}`:"no more reviews this way",onClick:()=>It&&Hn(It.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!ct,title:ct?`] — ${ct.id}: ${ct.pr.title}`:"no more reviews this way",onClick:()=>ct&&Hn(ct.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),Mt>=0&&f.jsxs("span",{className:"faint",children:[Mt+1," of ",On.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:ct?`next: ${ct.pr.title}`:Mt>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),f.jsx("span",{className:"grow"}),a.verdict&&(St?f.jsxs("span",{className:`chip tone-${Sn}`,children:[a.verdict.recommendation.replace("_"," "),Qn&&` · ${Qn}`," · ",a.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${Sn}`,title:"change it, or send — both are at the foot of the page",onClick:()=>qt(J,_),children:[a.verdict.recommendation.replace("_"," "),Qn&&` · ${Qn}`," · ",a.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!St&&a.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:a.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Ie(!0),children:[f.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:a.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:qn}),((Ea=a.run)==null?void 0:Ea.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>qt(he),children:"summary"}),a.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>qt(Se),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var H;qt(De),(H=W.current)==null||H.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{se(!0),qt(z)},children:"history"})]}),$e.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Dt(0),children:"changes"}),$e.map((H,de)=>{const xe=H.files.length>0&&H.files.every(be=>En.has(be));return f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${yn(H.id)?" rail-item-on":""}${xe?" rail-item-done":""}${(pe==null?void 0:pe.id)===H.id?" rail-item-here":""}`,onClick:()=>Dt(de),children:[f.jsxs("span",{className:"grow",children:[de+1," · ",H.title]}),f.jsxs("span",{className:"rail-count",title:xe?"every file viewed":void 0,children:[xe?"✓ ":"",H.files.length,"f"]})]}),a.comments.filter(be=>be.chapterId===H.id).map(be=>f.jsxs("button",{className:`rail-comment${be.status==="dropped"?" rail-comment-dropped":""}`,title:`${be.path}${be.line!=null?`:${be.line}`:""} — ${be.body}`,onClick:()=>ya(de,be.id),children:[f.jsx("span",{className:`rail-dot tone-${uw(be,Sn)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[be.path.split("/").pop(),be.line!=null?`:${be.drifted?"~":""}${be.line}`:""]})]},be.id))]},H.id)})]}),f.jsx("button",{className:`lab rail-lab-btn${$e.length>0?" rail-lab":""}`,onClick:()=>qt(J,_),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[a.comments.length-we.length," keeping · ",we.length," dropped"]}),f.jsxs("div",{children:[et.length," inline · ",lt.length," folded into body"]}),gt>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[gt," drifted"]}),f.jsx(bw,{check:a.raisedCheck??null,raised:Rt,held:_e.length,replies:je.length})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(Mw,{artifact:a,freshness:d,rerunning:m,onRerun:Ie}),y&&f.jsxs("div",{className:"freshness",title:y,children:[f.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),s&&f.jsx("div",{className:"error",children:s}),((tn=a.run)==null?void 0:tn.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),f.jsx("div",{className:"card card-summary",ref:he,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(zi,{className:"prose lead",text:a.summary||"(no summary)"}),!St&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&f.jsx("div",{className:`card card-why tone-border-${Sn}`,ref:Se,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Tf(a)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Tf(a)}),Tf(a)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),f.jsx(zi,{className:"prose lead",text:a.verdict.reasoning}),!St&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),$e.map((H,de)=>f.jsx(_w,{chapter:H,n:de+1,diff:a.diff,comments:a.comments.filter(xe=>xe.chapterId===H.id),open:yn(H.id),heavy:vt(H.id),onToggle:()=>vn(H.id),onUpdateComment:R,onDeleteComment:ne,onAddComment:ye,onDiscuss:St?void 0:Pe,onAskAboutLine:ut,chatBusy:Zt,readOnly:St,flash:Me,viewedState:Cn,sticky:Ee,stuck:(pe==null?void 0:pe.id)===H.id&&pe.stuck,anchorRef:xe=>{xe?oe.current.set(H.id,xe):oe.current.delete(H.id)}},H.id)),ze.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:ze.map(H=>f.jsx(dy,{comment:H,onUpdate:de=>R(H.id,de),onDelete:()=>ne(H.id),onDiscuss:St?void 0:()=>Pe({target:"comment",id:H.id}),readOnly:St},H.id))})]}),f.jsx(kw,{entries:a.history??[],open:B,onToggle:()=>se(H=>!H),anchorRef:z})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(ww,{artifact:a,reviewKey:l,refs:I,onClearRefs:()=>D([]),onDropRef:H=>D(de=>de.filter((xe,be)=>be!==H)),onArtifact:r,readOnly:St,inputRef:W,anchorRef:De}),f.jsxs("div",{className:"cockpit-decide",children:[!St&&Vn&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Vn})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:en,disabled:Zt,children:[f.jsx(Ze,{name:"comment"}),Zt?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!St&&f.jsxs("div",{className:"verdict-bar",ref:J,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ai)]}),f.jsx(Rw,{artifact:a,reviewKey:l,event:_n,sending:fe,checking:Je,onSend:Mn,error:Ye,next:ct,onAdvance:Zn,onBody:H=>io(l,{bodyOverride:H}).then(r),anchorRef:_,footer:f.jsxs(f.Fragment,{children:[!St&&f.jsx("span",{className:"faint",children:"not sending?"}),!St&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:ct?`Settle it locally and go to ${ct.id}`:"Settle it locally and go back to the queue",onClick:()=>dn("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:ct?`Leave it and go to ${ct.id}`:"Leave it and go back to the queue",onClick:()=>dn("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("button",{className:"btn btn-sm",title:Ot?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>A(!0),disabled:x||Ot,children:[f.jsx(Ze,{name:"arrowRight"}),"hand off"]}),f.jsxs("a",{className:"btn btn-sm",href:r0(l),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})}),x&&f.jsx(Aw,{artifact:a,reviewKey:l,onConfirm:Kt,onCancel:()=>A(!1)})]})]})]})]})}const Sb="cerber.notify.seen.v2",Lw="cerber.notify.seen",If="cerber.notify",zw=1e4,Is=l=>l.status==="ready",Hf=l=>{try{return localStorage.getItem(l)}catch{return null}},qf=(l,a)=>{try{localStorage.setItem(l,a)}catch{}};function Uw(l,a){return l?!!(l.enabled&&l.pollEnabled&&l.autoReview):a}function py(l,a){return l.announceable===!1||l.status==="running"?!1:l.status==="awaiting"?!a:!0}const my=":draft",so=l=>`${l.key}${my}`,gy=l=>Is(l)?so(l):l.key;function jw(l,a,r){const s=new Set(a);return qs(l).filter(u=>py(u,r)&&!s.has(gy(u)))}function Bw(l,a,r=[]){const s=new Set(r),u=new Set(qs(l).map(p=>p.key)),d=[];for(const p of l){if(u.has(p.key)&&!py(p,a)){for(const y of[p.key,so(p)])s.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||s.has(so(p)))&&d.push(so(p))}return d}const xf=l=>`${l.pr.repo}#${l.pr.number}`,Iw={approve:"approves",comment:"comments",request_changes:"requests changes"};function Hw(l){const a=l.verdict?Iw[l.verdict.recommendation]:"drafted",r=l.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function qw(l){if(l.length===0)return null;const a=`cerber:${l.map(gy).sort().join("|")}`;if(l.length===1){const u=l[0];return{title:Is(u)?`${xf(u)} draft ready`:`${xf(u)} awaits your review`,body:Is(u)?`${Hw(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=l.slice(0,3).map(xf),s=l.length-r.length;return{title:l.every(Is)?`${l.length} drafts ready`:`${l.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const Gw=new Set(["127.0.0.1","localhost","::1","[::1]"]);function $w(l,a=window.location.hostname){return!(l!=null&&l.enabled)||!l.notify?!1:Gw.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Hf(If)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function Yw(){const l=Hl();if(l==="unsupported"||l==="blocked")return l;if(l==="on")return qf(If,"off"),Hl();if(qf(If,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function Fw(l){const a=new Notification(l.title,{body:l.body,tag:l.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=l.key?`#/r/${encodeURIComponent(l.key)}`:"#/",a.close()}}function Pw(l,a){const r=l??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(d=>typeof d=="string");return l?u:u.flatMap(d=>[d,`${d}${my}`])}function Kw(){const l=Y.useRef(null),a=Y.useRef(!0),[r,s]=Y.useState(!1);return Y.useEffect(()=>{let u=!0;l.current=Pw(Hf(Sb),Hf(Lw));const d=()=>Promise.all([Xf(),Hb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=$w(g);s(m),a.current=Uw(g,a.current);const b=a.current,v=l.current;if(l.current=Bw(y,b,v??[]),qf(Sb,JSON.stringify(l.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const S=qw(jw(y,v,b));S&&Fw(S)}).catch(()=>{});d();const p=setInterval(d,zw);return()=>{u=!1,clearInterval(p)}},[]),r}function by(){const[l,a]=Y.useState(Hl);return Y.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[l,()=>void Yw().then(a)]}const ro=l=>{window.location.hash=`#/r/${encodeURIComponent(l)}`};function Zw(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Xw({daemon:l}){return l!=null&&l.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[l.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),l.repos.length>0?l.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(l.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:l.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:l.autoSend==="on"?"on":"shadow"})," ≥",l.autoSendThreshold,"%",l.autoSend==="on"?` · ${l.autoSent} sent`:` · ${l.autoSendCandidates} candidate${l.autoSendCandidates===1?"":"s"}`]}),l.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),l.lastPollError?f.jsx("span",{className:"danger",title:l.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:l.polling?"polling now…":[l.lastSummary?`last: ${l.lastSummary}`:null,l.nextPollAt?`next ${new Date(l.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Vw({r:l,selected:a,onSelect:r,onOpen:s,awaiting:u}){const d=q_(l),p=C_(l),y=u?B_(l,u):null;return f.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${l.pr.owner}/${l.pr.repo}#${l.pr.number}`,children:[l.pr.repo,"#",l.pr.number]}),f.jsx("span",{className:"col-author",title:l.pr.author,children:l.pr.author}),f.jsx("span",{className:"col-title",title:l.pr.title,children:l.pr.title}),l.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&f.jsx("span",{className:"tag tag-done",children:p}),f.jsx("span",{className:"col-comments",children:l.commentCount||""}),f.jsx("span",{className:"col-size",children:l.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[l.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",l.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",l.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:Ib(l.updatedAt)})]})}function Nb({autoFocus:l}){const[a,r]=Y.useState(""),[s,u]=Y.useState(!1),[d,p]=Y.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),J_(m).then(b=>ro(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:a,autoFocus:l,disabled:s,onChange:g=>{r(g.target.value),d&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function Qw({text:l}){const a=Y.useRef(null),[r,s]=Y.useState(!1);return Y.useLayoutEffect(()=>{const u=a.current;if(!u)return;const d=()=>s(u.scrollHeight-u.clientHeight>4);d();const p=new ResizeObserver(d);return p.observe(u),()=>p.disconnect()},[l]),f.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(zi,{className:"prose",text:l})})}function Ww(){var te;const[l,a]=Y.useState(null),[r,s]=Y.useState(null),[u,d]=Y.useState(null),[p,y]=Y.useState(new Set),[g,m]=Y.useState("inbox"),[b,v]=Y.useState(null),S=Y.useRef(!0);Y.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const w=()=>{Xf().then(X=>S.current&&a(X)).catch(X=>S.current&&d(String(X))),Hb().then(X=>S.current&&s(X)).catch(()=>{})};Y.useEffect(()=>{w();const X=setInterval(w,1e4);return()=>clearInterval(X)},[]);const T=l??[],C=Y.useMemo(()=>O_(T,r),[T,r]),x=C.requests,A=k_(g,C),I=C[A];Y.useEffect(()=>{A!==g&&m(A)},[A,g]);const D=I.find(X=>X.key===b)??I[0]??null,W=X=>{y(me=>new Set(me).add(X)),qb(X).then(()=>w()).catch(me=>S.current&&d(String(me))).finally(()=>{S.current&&y(me=>{const oe=new Set(me);return oe.delete(X),oe})})};if(Y.useEffect(()=>{const X=me=>{if(Zw(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const oe=I.findIndex(pe=>pe.key===(D==null?void 0:D.key)),Ee=pe=>{const k=I[Math.min(I.length-1,Math.max(0,oe+pe))];k&&v(k.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Ee(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Ee(-1)):me.key==="Enter"&&D?ro(D.key):me.key==="r"&&D&&D.status!=="sent"&&D.status!=="running"&&W(D.key)};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[I,D==null?void 0:D.key]),u&&!l)return f.jsx("p",{className:"error",children:u});if(!l)return f.jsx("p",{className:"muted pad",children:"Loading…"});const q=I.reduce((X,me)=>X+(me.costUsd??0),0),Z=D?$_(D,r):null,ie=D?p.has(D.key):!1,M=Af.filter(X=>C[X].length>0),F=X=>f.jsxs("button",{className:`tab${A===X?" tab-on":""}${Af.includes(X)?" tab-filed":""}${X==="requests"?" tab-requests":""}`,title:ku[X].title,onClick:()=>m(X),children:[ku[X].label," ",f.jsx("span",{className:"tab-count",children:C[X].length})]},X);return f.jsxs(f.Fragment,{children:[f.jsx(Xw,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),T.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(Nb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[T_.map(F),M.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),M.map(F),f.jsx("span",{className:"grow"}),f.jsx(Nb,{}),q>0&&f.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",q.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),I.length===0?f.jsx("div",{className:"empty-tab",children:A==="inbox"&&x.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:I_(x)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):f.jsx("p",{className:"muted",children:A==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${ku[A].label} right now.`})}):I.map(X=>f.jsx(Vw,{r:X,selected:X.key===(D==null?void 0:D.key),onSelect:()=>v(X.key),onOpen:()=>ro(X.key),awaiting:R_(X,x)?M_(X,r):null},X.key)),D&&Z&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[D.pr.owner,"/",D.pr.repo,"#",D.pr.number,D.pr.headRefName&&D.pr.baseRefName?` · ${D.pr.headRefName} → ${D.pr.baseRefName}`:""]}),f.jsx(Qw,{text:Z.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[Z.meta.join(" · "),((te=D.sent)==null?void 0:te.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:D.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>ro(D.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(za,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:D.status==="sent"||D.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(D.key,{status:"skipped"}).then(w).catch(X=>d(String(X))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:ie||D.status==="running"||D.status==="sent",title:D.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>W(D.key),children:[f.jsx(Ze,{name:"rerun"}),ie?"starting…":D.status==="awaiting"||D.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const mo="cerber.theme";function yy(l){return l==="light"||l==="dark"?l:"system"}function Jw(){try{return yy(localStorage.getItem(mo))}catch{return"system"}}function vy(l,a=document.documentElement){l==="system"?delete a.dataset.theme:a.dataset.theme=l}function eT(l,a){try{const r=a??localStorage;l==="system"?r.removeItem(mo):r.setItem(mo,l)}catch{}}function tT(){Ey(vy)}function Ey(l){const a=r=>{(r.key===mo||r.key===null)&&l(yy(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function nT(){const[l,a]=Y.useState(Jw);return Y.useEffect(()=>Ey(a),[]),[l,s=>{eT(s),vy(s),a(s)}]}const aT=[{rule:"@acme/*",meaning:"anyone in the acme org"},{rule:"@acme/devs",meaning:"anyone on that GitHub team"},{rule:"@teammate",meaning:"one person, by login"},{rule:"!@acme/contractors",meaning:"deny — beats every rule above"}],wb=l=>l instanceof Error?l.message:String(l),iT={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a review is ready for me",ask:"tell me when a review is ready for me (the browser will ask first)",on:"tell me when a review is ready for me"},lT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function sT({daemonAnnounces:l}){const[a,r]=by(),[s,u]=nT(),[d,p]=ry(),[y,g]=Y.useState(null),[m,b]=Y.useState(""),[v,S]=Y.useState(null),[w,T]=Y.useState(!1);Y.useEffect(()=>{o0().then(g).catch(A=>S(wb(A)))},[]);const C=A=>{T(!0),S(null),A.then(g).catch(I=>S(wb(I))).finally(()=>T(!1))};if(v&&!y)return f.jsx("p",{className:"error",children:v});if(!y)return f.jsx("p",{className:"muted",children:"Loading…"});const x=l&&y.daemon.poll&&y.daemon.notify;return f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.poll,disabled:w,onChange:A=>C(Du({poll:A.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",y.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.autoReview,disabled:w||!y.daemon.poll,onChange:A=>C(Du({autoReview:A.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:y.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.notify,disabled:w||!y.daemon.poll,onChange:A=>C(Du({notify:A.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",f.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",f.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||x,onChange:r})," ",x?"let this browser announce them instead":iT[a]]}),f.jsx("p",{className:"muted",children:x?f.jsx(f.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:y.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),f.jsx("h1",{id:"appearance",children:"Appearance"}),f.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:lT.map(({choice:A,label:I})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:s===A,onChange:()=>u(A)})," ",I]},A))}),f.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",f.jsx("code",{children:y.path}),"."]}),f.jsx("h1",{children:"Review page"}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d,onChange:A=>p(A.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),f.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:y.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:m,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:w,onChange:A=>b(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!w&&m.trim()&&(C(Mu(m.trim())),b(""))}}),f.jsx("button",{className:"btn",disabled:w||!m.trim(),onClick:()=>{C(Mu(m.trim())),b("")},children:"trust"})]}),v&&f.jsx("p",{className:"error",children:v}),y.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:y.trust.map(A=>f.jsxs("tr",{className:A.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:A.rule})}),f.jsx("td",{className:"muted",children:A.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:w,onClick:()=>C(Mu(A.rule,!0)),children:"remove"})})]},A.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:aT.map(A=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:A.rule})}),f.jsx("td",{className:"muted",children:A.meaning})]},A.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]})}function Tb(){const l=window.location.hash,a=l.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:l==="#/settings"?{view:"settings"}:{view:"queue"}}const xb={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a review is ready for you.",ask:"Click to be told when a review is ready for you — the browser will ask you first.",on:"Telling you when a review is ready for you. Click to stop."},Ab="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function rT({daemonAnnounces:l}){const[a,r]=by();return l?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Ab,"aria-label":Ab,children:f.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${a}`,title:xb[a],"aria-label":xb[a],"aria-pressed":a==="on",onClick:r,children:f.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function oT(){const[l,a]=Y.useState(Tb()),r=Kw();return Y.useEffect(()=>{const s=()=>a(Tb());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),l.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(Dw,{reviewKey:l.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(bS,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),l.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"j"}),f.jsx(za,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"r"}),"review now"]})]}),f.jsx(rT,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),l.view==="queue"?f.jsx(Ww,{}):f.jsx(sT,{daemonAnnounces:r})]})}tT();LE.createRoot(document.getElementById("root")).render(f.jsx(RE.StrictMode,{children:f.jsx(oT,{})}));