@fullstackhouse/cerber 1.6.5-pr.94.eaaf251 → 1.6.5-pr.95.4276b94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +3 -1
  2. package/dist/core/autoreview.js +5 -3
  3. package/dist/core/config.js +6 -0
  4. package/dist/core/gh.js +31 -4
  5. package/dist/runner/prompt.js +2 -6
  6. package/dist/server/daemon.js +37 -9
  7. package/dist/server/index.js +6 -1
  8. package/package.json +1 -1
  9. package/web/dist/assets/{abnfDiagram-WEYOIA3C-Fh0yGAPG.js → abnfDiagram-WEYOIA3C-ZVjk8TRR.js} +1 -1
  10. package/web/dist/assets/{arc-Cb1J4kng.js → arc-DOWPP57-.js} +1 -1
  11. package/web/dist/assets/{architectureDiagram-ZHVYKT53-BwxCVhjO.js → architectureDiagram-ZHVYKT53-BLa6AOgS.js} +1 -1
  12. package/web/dist/assets/{blockDiagram-RJAE7QA3-Czr1-oa6.js → blockDiagram-RJAE7QA3-1eiXMp4x.js} +1 -1
  13. package/web/dist/assets/{c4Diagram-XDPPPE54-ZWephAkD.js → c4Diagram-XDPPPE54-Cvi16eFl.js} +1 -1
  14. package/web/dist/assets/channel-BJT1iYGK.js +1 -0
  15. package/web/dist/assets/{chunk-2E7WHVMD-9Ra4B9GU.js → chunk-2E7WHVMD-D-_dw85f.js} +1 -1
  16. package/web/dist/assets/{chunk-2Q5K7J3B-B7nbgFC1.js → chunk-2Q5K7J3B-fGO6Rj6K.js} +1 -1
  17. package/web/dist/assets/{chunk-4EMNKR2T-CUVvjeAx.js → chunk-4EMNKR2T-Cdjpm4mM.js} +1 -1
  18. package/web/dist/assets/{chunk-55XCU76K-DZ3RW9-h.js → chunk-55XCU76K-8vKcpusr.js} +1 -1
  19. package/web/dist/assets/{chunk-5VM5RSS4-BY-uxMkf.js → chunk-5VM5RSS4-CwqOf2Km.js} +1 -1
  20. package/web/dist/assets/{chunk-JWPE2WC7-BJYQI99_.js → chunk-JWPE2WC7-DzKBdMkf.js} +1 -1
  21. package/web/dist/assets/{chunk-VQ5W62QI-Dm8jJYkz.js → chunk-VQ5W62QI-DYd1jpy5.js} +1 -1
  22. package/web/dist/assets/{chunk-XXDRQBXY-CZhz6VLZ.js → chunk-XXDRQBXY-30xD2ao8.js} +1 -1
  23. package/web/dist/assets/{chunk-ZCHMQSOR-D6zBviZp.js → chunk-ZCHMQSOR-C1fPNQyM.js} +2 -2
  24. package/web/dist/assets/{classDiagram-v2-4MYWR3UA-Lvv4Rf4Q.js → classDiagram-v2-4MYWR3UA-cEFXJtWi.js} +1 -1
  25. package/web/dist/assets/{cose-bilkent-JH36ORCC-V9TmXird.js → cose-bilkent-JH36ORCC-BwnNG4V_.js} +1 -1
  26. package/web/dist/assets/{cynefin-EF2NZ3EQ-CcAG0DdN.js → cynefin-EF2NZ3EQ-KI3U995R.js} +1 -1
  27. package/web/dist/assets/{cynefinDiagram-WF24UDRP-CtbdsXNX.js → cynefinDiagram-WF24UDRP-CxK-GEja.js} +1 -1
  28. package/web/dist/assets/{dagre-NK4GIZVX-KKp07WGv.js → dagre-NK4GIZVX-DZg6HiOj.js} +1 -1
  29. package/web/dist/assets/{diagram-CBK3MWTC-OmZxbfpK.js → diagram-CBK3MWTC-OkPOrNUp.js} +1 -1
  30. package/web/dist/assets/{diagram-I5XIIV2D-B4A3VXFh.js → diagram-I5XIIV2D-Cx5Ko7MY.js} +1 -1
  31. package/web/dist/assets/{diagram-ODIL2UCW-C6AL0pfJ.js → diagram-ODIL2UCW-BctjIVeG.js} +1 -1
  32. package/web/dist/assets/{diagram-PFBEJUXE-9n22hgzP.js → diagram-PFBEJUXE-CHz5D9mp.js} +1 -1
  33. package/web/dist/assets/{diagram-RJA3I4VV-BZahmd4j.js → diagram-RJA3I4VV-8SX2X19I.js} +1 -1
  34. package/web/dist/assets/{diagram-TYUNFSNR-Vyr_m4Hx.js → diagram-TYUNFSNR-DurOnOhU.js} +1 -1
  35. package/web/dist/assets/{ebnfDiagram-V4P3TTPT-BZokt2V8.js → ebnfDiagram-V4P3TTPT-Cu--JXQi.js} +1 -1
  36. package/web/dist/assets/{elk-QONTBCTQ-35jgsktE.js → elk-QONTBCTQ-6QbN31Uk.js} +1 -1
  37. package/web/dist/assets/{erDiagram-KYQIGQAA-DnORD9ar.js → erDiagram-KYQIGQAA-DjmOgpYh.js} +1 -1
  38. package/web/dist/assets/{flowDiagram-IUGLLWBU-DIloo7Vk.js → flowDiagram-IUGLLWBU-CDtY0JeV.js} +1 -1
  39. package/web/dist/assets/{ganttDiagram-R7GPNTJY-uCf1-IbQ.js → ganttDiagram-R7GPNTJY-C0okldn-.js} +1 -1
  40. package/web/dist/assets/{gitGraphDiagram-PDYL7XHY-Dps9Z6YN.js → gitGraphDiagram-PDYL7XHY-CpoFa94u.js} +1 -1
  41. package/web/dist/assets/{index-DbkXcP68.js → index-DSUaxe4H.js} +42 -46
  42. package/web/dist/assets/{index-C-BR2leN.css → index-D_0po9OL.css} +1 -1
  43. package/web/dist/assets/{infoDiagram-MVDRKAX5-CSzv2WOS.js → infoDiagram-MVDRKAX5-Ygztm1Pp.js} +1 -1
  44. package/web/dist/assets/{ishikawaDiagram-HPEHV2GE-CfOyv1nx.js → ishikawaDiagram-HPEHV2GE-CEUgXYG-.js} +1 -1
  45. package/web/dist/assets/{journeyDiagram-BOSHW7O7-B9GewZrz.js → journeyDiagram-BOSHW7O7-BeKRFtY5.js} +1 -1
  46. package/web/dist/assets/{kanban-definition-FNSA4HC5-Dk60DC_q.js → kanban-definition-FNSA4HC5-DTiTF_cF.js} +1 -1
  47. package/web/dist/assets/{linear-CFibZx3K.js → linear-DQ-15MJG.js} +1 -1
  48. package/web/dist/assets/{mermaid.core-DSlXNYTz.js → mermaid.core-a2mmm40M.js} +4 -4
  49. package/web/dist/assets/{mindmap-definition-6OY57UG3-nPEcKx2O.js → mindmap-definition-6OY57UG3-DBh5JyfG.js} +1 -1
  50. package/web/dist/assets/{pegDiagram-ECIUJNBX-BF7-dOgl.js → pegDiagram-ECIUJNBX-DXSD-3Z7.js} +1 -1
  51. package/web/dist/assets/{pieDiagram-GNMPY74T-D3xpwkOg.js → pieDiagram-GNMPY74T-B_CsO-Kg.js} +1 -1
  52. package/web/dist/assets/{quadrantDiagram-D57K4MC3-wvZrxdaZ.js → quadrantDiagram-D57K4MC3-BwPADVT9.js} +1 -1
  53. package/web/dist/assets/{railroadDiagram-Y72NRBL7-Bhmlwnxc.js → railroadDiagram-Y72NRBL7-DZ-AJFkA.js} +1 -1
  54. package/web/dist/assets/{requirementDiagram-EQYSW5RA-BISS6nU8.js → requirementDiagram-EQYSW5RA-CINS96lV.js} +1 -1
  55. package/web/dist/assets/{sankeyDiagram-SY24JHO5-B13SKEJi.js → sankeyDiagram-SY24JHO5-BoiQiR0y.js} +1 -1
  56. package/web/dist/assets/{sequenceDiagram-BLEHNHQU-CFoMSq2Y.js → sequenceDiagram-BLEHNHQU-48pmhSGP.js} +1 -1
  57. package/web/dist/assets/{sizeCapture-INFHLROL-B_9ZQIpO.js → sizeCapture-INFHLROL-DiiXSO89.js} +1 -1
  58. package/web/dist/assets/{stateDiagram-v2-A6IESKWZ-0f03epu-.js → stateDiagram-v2-A6IESKWZ-nQXJ4XNA.js} +1 -1
  59. package/web/dist/assets/{swimlanes-B3ENRKFQ-VbPJcmFg.js → swimlanes-B3ENRKFQ-Bt_0aKLf.js} +1 -1
  60. package/web/dist/assets/swimlanesDiagram-AYQRV4AK-CFDsqMUA.js +8 -0
  61. package/web/dist/assets/{timeline-definition-JXYKGLGB-BL-ztRYD.js → timeline-definition-JXYKGLGB-4D3Uxq1w.js} +1 -1
  62. package/web/dist/assets/{usecaseDiagram-WPOLBNNX-dNJWmkMH.js → usecaseDiagram-WPOLBNNX-BsAFmexj.js} +1 -1
  63. package/web/dist/assets/{vennDiagram-Q3Y3IDCW-7Usz7k8p.js → vennDiagram-Q3Y3IDCW-D7zQVvBt.js} +1 -1
  64. package/web/dist/assets/{wardleyDiagram-IVAIDKWA-C0eZqxRB.js → wardleyDiagram-IVAIDKWA-B4uR9tXq.js} +1 -1
  65. package/web/dist/assets/{xychartDiagram-4URNHDU4-z6jTf4_g.js → xychartDiagram-4URNHDU4-CCjgk3js.js} +1 -1
  66. package/web/dist/index.html +2 -2
  67. package/web/dist/assets/channel-B2B4MLqH.js +0 -1
  68. package/web/dist/assets/swimlanesDiagram-AYQRV4AK-gEpmrKi3.js +0 -8
@@ -1,4 +1,4 @@
1
- var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[a]=r;var At=(i,a,r)=>qE(i,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 f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();var YT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hb(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Nu={exports:{}},Ms={};/**
1
+ var qE=Object.defineProperty;var GE=(i,a,r)=>a in i?qE(i,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[a]=r;var At=(i,a,r)=>GE(i,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 f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();var YT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hb(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Nu={exports:{}},Ms={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pm;function GE(){if(Pm)return Ms;Pm=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:h,ref:u!==void 0?u:null,props:f}}return Ms.Fragment=a,Ms.jsx=r,Ms.jsxs=r,Ms}var Km;function $E(){return Km||(Km=1,Nu.exports=GE()),Nu.exports}var d=$E(),Tu={exports:{}},Fe={};/**
9
+ */var Pm;function $E(){if(Pm)return Ms;Pm=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:h,ref:u!==void 0?u:null,props:f}}return Ms.Fragment=a,Ms.jsx=r,Ms.jsxs=r,Ms}var Km;function FE(){return Km||(Km=1,Nu.exports=$E()),Nu.exports}var d=FE(),Tu={exports:{}},Fe={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Zm;function FE(){if(Zm)return Fe;Zm=1;var i=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"),f=Symbol.for("react.consumer"),h=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"),_=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function R(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||S}R.prototype.isReactComponent={},R.prototype.setState=function(w,L){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,L,"setState")},R.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function $(){}$.prototype=R.prototype;function U(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||S}var W=U.prototype=new $;W.constructor=U,C(W,R.prototype),W.isPureReactComponent=!0;var z=Array.isArray;function ae(){}var se={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function G(w,L,I){var oe=I.ref;return{$$typeof:i,type:w,key:L,ref:oe!==void 0?oe:null,props:I}}function ee(w,L){return G(w.type,L,w.props)}function ue(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function Ee(w){var L={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return L[I]})}var j=/\/+/g;function le(w,L){return typeof w=="object"&&w!==null&&w.key!=null?Ee(""+w.key):L.toString(36)}function fe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ae,ae):(w.status="pending",w.then(function(L){w.status==="pending"&&(w.status="fulfilled",w.value=L)},function(L){w.status==="pending"&&(w.status="rejected",w.reason=L)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,L,I,oe,me){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var X=!1;if(w===null)X=!0;else switch(ve){case"bigint":case"string":case"number":X=!0;break;case"object":switch(w.$$typeof){case i:case a:X=!0;break;case b:return X=w._init,M(X(w._payload),L,I,oe,me)}}if(X)return me=me(w),X=oe===""?"."+le(w,0):oe,z(me)?(I="",X!=null&&(I=X.replace(j,"$&/")+"/"),M(me,L,I,"",function(Ge){return Ge})):me!=null&&(ue(me)&&(me=ee(me,I+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(j,"$&/")+"/")+X)),L.push(me)),1;X=0;var be=oe===""?".":oe+":";if(z(w))for(var Te=0;Te<w.length;Te++)oe=w[Te],ve=be+le(oe,Te),X+=M(oe,L,I,ve,me);else if(Te=x(w),typeof Te=="function")for(w=Te.call(w),Te=0;!(oe=w.next()).done;)oe=oe.value,ve=be+le(oe,Te++),X+=M(oe,L,I,ve,me);else if(ve==="object"){if(typeof w.then=="function")return M(fe(w),L,I,oe,me);throw L=String(w),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return X}function Q(w,L,I){if(w==null)return w;var oe=[],me=0;return M(w,oe,"","",function(ve){return L.call(I,ve,me++)}),oe}function pe(w){if(w._status===-1){var L=w._result;L=L(),L.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=L)}if(w._status===1)return w._result.default;throw w._result}var we=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},De={map:Q,forEach:function(w,L,I){Q(w,function(){L.apply(this,arguments)},I)},count:function(w){var L=0;return Q(w,function(){L++}),L},toArray:function(w){return Q(w,function(L){return L})||[]},only:function(w){if(!ue(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return Fe.Activity=v,Fe.Children=De,Fe.Component=R,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=U,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return se.H.useMemoCache(w)}},Fe.cache=function(w){return function(){return w.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(w,L,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var oe=C({},w.props),me=w.key;if(L!=null)for(ve in L.key!==void 0&&(me=""+L.key),L)!T.call(L,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&L.ref===void 0||(oe[ve]=L[ve]);var ve=arguments.length-2;if(ve===1)oe.children=I;else if(1<ve){for(var X=Array(ve),be=0;be<ve;be++)X[be]=arguments[be+2];oe.children=X}return G(w.type,me,oe)},Fe.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},Fe.createElement=function(w,L,I){var oe,me={},ve=null;if(L!=null)for(oe in L.key!==void 0&&(ve=""+L.key),L)T.call(L,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(me[oe]=L[oe]);var X=arguments.length-2;if(X===1)me.children=I;else if(1<X){for(var be=Array(X),Te=0;Te<X;Te++)be[Te]=arguments[Te+2];me.children=be}if(w&&w.defaultProps)for(oe in X=w.defaultProps,X)me[oe]===void 0&&(me[oe]=X[oe]);return G(w,ve,me)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(w){return{$$typeof:y,render:w}},Fe.isValidElement=ue,Fe.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:pe}},Fe.memo=function(w,L){return{$$typeof:m,type:w,compare:L===void 0?null:L}},Fe.startTransition=function(w){var L=se.T,I={};se.T=I;try{var oe=w(),me=se.S;me!==null&&me(I,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(ae,we)}catch(ve){we(ve)}finally{L!==null&&I.types!==null&&(L.types=I.types),se.T=L}},Fe.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},Fe.use=function(w){return se.H.use(w)},Fe.useActionState=function(w,L,I){return se.H.useActionState(w,L,I)},Fe.useCallback=function(w,L){return se.H.useCallback(w,L)},Fe.useContext=function(w){return se.H.useContext(w)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(w,L){return se.H.useDeferredValue(w,L)},Fe.useEffect=function(w,L){return se.H.useEffect(w,L)},Fe.useEffectEvent=function(w){return se.H.useEffectEvent(w)},Fe.useId=function(){return se.H.useId()},Fe.useImperativeHandle=function(w,L,I){return se.H.useImperativeHandle(w,L,I)},Fe.useInsertionEffect=function(w,L){return se.H.useInsertionEffect(w,L)},Fe.useLayoutEffect=function(w,L){return se.H.useLayoutEffect(w,L)},Fe.useMemo=function(w,L){return se.H.useMemo(w,L)},Fe.useOptimistic=function(w,L){return se.H.useOptimistic(w,L)},Fe.useReducer=function(w,L,I){return se.H.useReducer(w,L,I)},Fe.useRef=function(w){return se.H.useRef(w)},Fe.useState=function(w){return se.H.useState(w)},Fe.useSyncExternalStore=function(w,L,I){return se.H.useSyncExternalStore(w,L,I)},Fe.useTransition=function(){return se.H.useTransition()},Fe.version="19.2.8",Fe}var Xm;function Xd(){return Xm||(Xm=1,Tu.exports=FE()),Tu.exports}var H=Xd();const YE=Hb(H);var xu={exports:{}},Ds={},Au={exports:{}},Ru={};/**
17
+ */var Zm;function YE(){if(Zm)return Fe;Zm=1;var i=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"),f=Symbol.for("react.consumer"),h=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"),_=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function R(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||S}R.prototype.isReactComponent={},R.prototype.setState=function(w,L){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,L,"setState")},R.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function $(){}$.prototype=R.prototype;function U(w,L,I){this.props=w,this.context=L,this.refs=A,this.updater=I||S}var W=U.prototype=new $;W.constructor=U,C(W,R.prototype),W.isPureReactComponent=!0;var z=Array.isArray;function ae(){}var se={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function G(w,L,I){var oe=I.ref;return{$$typeof:i,type:w,key:L,ref:oe!==void 0?oe:null,props:I}}function ee(w,L){return G(w.type,L,w.props)}function ue(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function Ee(w){var L={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return L[I]})}var j=/\/+/g;function le(w,L){return typeof w=="object"&&w!==null&&w.key!=null?Ee(""+w.key):L.toString(36)}function fe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ae,ae):(w.status="pending",w.then(function(L){w.status==="pending"&&(w.status="fulfilled",w.value=L)},function(L){w.status==="pending"&&(w.status="rejected",w.reason=L)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,L,I,oe,me){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var X=!1;if(w===null)X=!0;else switch(ve){case"bigint":case"string":case"number":X=!0;break;case"object":switch(w.$$typeof){case i:case a:X=!0;break;case b:return X=w._init,M(X(w._payload),L,I,oe,me)}}if(X)return me=me(w),X=oe===""?"."+le(w,0):oe,z(me)?(I="",X!=null&&(I=X.replace(j,"$&/")+"/"),M(me,L,I,"",function(Ge){return Ge})):me!=null&&(ue(me)&&(me=ee(me,I+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(j,"$&/")+"/")+X)),L.push(me)),1;X=0;var be=oe===""?".":oe+":";if(z(w))for(var Te=0;Te<w.length;Te++)oe=w[Te],ve=be+le(oe,Te),X+=M(oe,L,I,ve,me);else if(Te=x(w),typeof Te=="function")for(w=Te.call(w),Te=0;!(oe=w.next()).done;)oe=oe.value,ve=be+le(oe,Te++),X+=M(oe,L,I,ve,me);else if(ve==="object"){if(typeof w.then=="function")return M(fe(w),L,I,oe,me);throw L=String(w),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return X}function Q(w,L,I){if(w==null)return w;var oe=[],me=0;return M(w,oe,"","",function(ve){return L.call(I,ve,me++)}),oe}function pe(w){if(w._status===-1){var L=w._result;L=L(),L.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=L)}if(w._status===1)return w._result.default;throw w._result}var we=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},De={map:Q,forEach:function(w,L,I){Q(w,function(){L.apply(this,arguments)},I)},count:function(w){var L=0;return Q(w,function(){L++}),L},toArray:function(w){return Q(w,function(L){return L})||[]},only:function(w){if(!ue(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return Fe.Activity=v,Fe.Children=De,Fe.Component=R,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=U,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=se,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return se.H.useMemoCache(w)}},Fe.cache=function(w){return function(){return w.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(w,L,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var oe=C({},w.props),me=w.key;if(L!=null)for(ve in L.key!==void 0&&(me=""+L.key),L)!T.call(L,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&L.ref===void 0||(oe[ve]=L[ve]);var ve=arguments.length-2;if(ve===1)oe.children=I;else if(1<ve){for(var X=Array(ve),be=0;be<ve;be++)X[be]=arguments[be+2];oe.children=X}return G(w.type,me,oe)},Fe.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},Fe.createElement=function(w,L,I){var oe,me={},ve=null;if(L!=null)for(oe in L.key!==void 0&&(ve=""+L.key),L)T.call(L,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(me[oe]=L[oe]);var X=arguments.length-2;if(X===1)me.children=I;else if(1<X){for(var be=Array(X),Te=0;Te<X;Te++)be[Te]=arguments[Te+2];me.children=be}if(w&&w.defaultProps)for(oe in X=w.defaultProps,X)me[oe]===void 0&&(me[oe]=X[oe]);return G(w,ve,me)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(w){return{$$typeof:y,render:w}},Fe.isValidElement=ue,Fe.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:pe}},Fe.memo=function(w,L){return{$$typeof:m,type:w,compare:L===void 0?null:L}},Fe.startTransition=function(w){var L=se.T,I={};se.T=I;try{var oe=w(),me=se.S;me!==null&&me(I,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(ae,we)}catch(ve){we(ve)}finally{L!==null&&I.types!==null&&(L.types=I.types),se.T=L}},Fe.unstable_useCacheRefresh=function(){return se.H.useCacheRefresh()},Fe.use=function(w){return se.H.use(w)},Fe.useActionState=function(w,L,I){return se.H.useActionState(w,L,I)},Fe.useCallback=function(w,L){return se.H.useCallback(w,L)},Fe.useContext=function(w){return se.H.useContext(w)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(w,L){return se.H.useDeferredValue(w,L)},Fe.useEffect=function(w,L){return se.H.useEffect(w,L)},Fe.useEffectEvent=function(w){return se.H.useEffectEvent(w)},Fe.useId=function(){return se.H.useId()},Fe.useImperativeHandle=function(w,L,I){return se.H.useImperativeHandle(w,L,I)},Fe.useInsertionEffect=function(w,L){return se.H.useInsertionEffect(w,L)},Fe.useLayoutEffect=function(w,L){return se.H.useLayoutEffect(w,L)},Fe.useMemo=function(w,L){return se.H.useMemo(w,L)},Fe.useOptimistic=function(w,L){return se.H.useOptimistic(w,L)},Fe.useReducer=function(w,L,I){return se.H.useReducer(w,L,I)},Fe.useRef=function(w){return se.H.useRef(w)},Fe.useState=function(w){return se.H.useState(w)},Fe.useSyncExternalStore=function(w,L,I){return se.H.useSyncExternalStore(w,L,I)},Fe.useTransition=function(){return se.H.useTransition()},Fe.version="19.2.8",Fe}var Xm;function Xd(){return Xm||(Xm=1,Tu.exports=YE()),Tu.exports}var H=Xd();const PE=Hb(H);var xu={exports:{}},Ds={},Au={exports:{}},Ru={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Vm;function PE(){return Vm||(Vm=1,(function(i){function a(M,Q){var pe=M.length;M.push(Q);e:for(;0<pe;){var we=pe-1>>>1,De=M[we];if(0<u(De,Q))M[we]=Q,M[pe]=De,pe=we;else break e}}function r(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Q=M[0],pe=M.pop();if(pe!==Q){M[0]=pe;e:for(var we=0,De=M.length,w=De>>>1;we<w;){var L=2*(we+1)-1,I=M[L],oe=L+1,me=M[oe];if(0>u(I,pe))oe<De&&0>u(me,I)?(M[we]=me,M[oe]=pe,we=oe):(M[we]=I,M[L]=pe,we=L);else if(oe<De&&0>u(me,pe))M[we]=me,M[oe]=pe,we=oe;else break e}}return Q}function u(M,Q){var pe=M.sortIndex-Q.sortIndex;return pe!==0?pe:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();i.unstable_now=function(){return h.now()-y}}var g=[],m=[],b=1,v=null,_=3,x=!1,S=!1,C=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function W(M){for(var Q=r(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=M)s(m),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=r(m)}}function z(M){if(C=!1,W(M),!S)if(r(g)!==null)S=!0,ae||(ae=!0,Ee());else{var Q=r(m);Q!==null&&fe(z,Q.startTime-M)}}var ae=!1,se=-1,T=5,G=-1;function ee(){return A?!0:!(i.unstable_now()-G<T)}function ue(){if(A=!1,ae){var M=i.unstable_now();G=M;var Q=!0;try{e:{S=!1,C&&(C=!1,$(se),se=-1),x=!0;var pe=_;try{t:{for(W(M),v=r(g);v!==null&&!(v.expirationTime>M&&ee());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var De=we(v.expirationTime<=M);if(M=i.unstable_now(),typeof De=="function"){v.callback=De,W(M),Q=!0;break t}v===r(g)&&s(g),W(M)}else s(g);v=r(g)}if(v!==null)Q=!0;else{var w=r(m);w!==null&&fe(z,w.startTime-M),Q=!1}}break e}finally{v=null,_=pe,x=!1}Q=void 0}}finally{Q?Ee():ae=!1}}}var Ee;if(typeof U=="function")Ee=function(){U(ue)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,le=j.port2;j.port1.onmessage=ue,Ee=function(){le.postMessage(null)}}else Ee=function(){R(ue,0)};function fe(M,Q){se=R(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return _},i.unstable_next=function(M){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var pe=_;_=Q;try{return M()}finally{_=pe}},i.unstable_requestPaint=function(){A=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var pe=_;_=M;try{return Q()}finally{_=pe}},i.unstable_scheduleCallback=function(M,Q,pe){var we=i.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?we+pe:we):pe=we,M){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=pe+De,M={id:b++,callback:Q,priorityLevel:M,startTime:pe,expirationTime:De,sortIndex:-1},pe>we?(M.sortIndex=pe,a(m,M),r(g)===null&&M===r(m)&&(C?($(se),se=-1):C=!0,fe(z,pe-we))):(M.sortIndex=De,a(g,M),S||x||(S=!0,ae||(ae=!0,Ee()))),M},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(M){var Q=_;return function(){var pe=_;_=Q;try{return M.apply(this,arguments)}finally{_=pe}}}})(Ru)),Ru}var Qm;function KE(){return Qm||(Qm=1,Au.exports=PE()),Au.exports}var ku={exports:{}},Cn={};/**
25
+ */var Vm;function KE(){return Vm||(Vm=1,(function(i){function a(M,Q){var pe=M.length;M.push(Q);e:for(;0<pe;){var we=pe-1>>>1,De=M[we];if(0<u(De,Q))M[we]=Q,M[pe]=De,pe=we;else break e}}function r(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Q=M[0],pe=M.pop();if(pe!==Q){M[0]=pe;e:for(var we=0,De=M.length,w=De>>>1;we<w;){var L=2*(we+1)-1,I=M[L],oe=L+1,me=M[oe];if(0>u(I,pe))oe<De&&0>u(me,I)?(M[we]=me,M[oe]=pe,we=oe):(M[we]=I,M[L]=pe,we=L);else if(oe<De&&0>u(me,pe))M[we]=me,M[oe]=pe,we=oe;else break e}}return Q}function u(M,Q){var pe=M.sortIndex-Q.sortIndex;return pe!==0?pe:M.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();i.unstable_now=function(){return h.now()-y}}var g=[],m=[],b=1,v=null,_=3,x=!1,S=!1,C=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function W(M){for(var Q=r(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=M)s(m),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=r(m)}}function z(M){if(C=!1,W(M),!S)if(r(g)!==null)S=!0,ae||(ae=!0,Ee());else{var Q=r(m);Q!==null&&fe(z,Q.startTime-M)}}var ae=!1,se=-1,T=5,G=-1;function ee(){return A?!0:!(i.unstable_now()-G<T)}function ue(){if(A=!1,ae){var M=i.unstable_now();G=M;var Q=!0;try{e:{S=!1,C&&(C=!1,$(se),se=-1),x=!0;var pe=_;try{t:{for(W(M),v=r(g);v!==null&&!(v.expirationTime>M&&ee());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var De=we(v.expirationTime<=M);if(M=i.unstable_now(),typeof De=="function"){v.callback=De,W(M),Q=!0;break t}v===r(g)&&s(g),W(M)}else s(g);v=r(g)}if(v!==null)Q=!0;else{var w=r(m);w!==null&&fe(z,w.startTime-M),Q=!1}}break e}finally{v=null,_=pe,x=!1}Q=void 0}}finally{Q?Ee():ae=!1}}}var Ee;if(typeof U=="function")Ee=function(){U(ue)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,le=j.port2;j.port1.onmessage=ue,Ee=function(){le.postMessage(null)}}else Ee=function(){R(ue,0)};function fe(M,Q){se=R(function(){M(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return _},i.unstable_next=function(M){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var pe=_;_=Q;try{return M()}finally{_=pe}},i.unstable_requestPaint=function(){A=!0},i.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var pe=_;_=M;try{return Q()}finally{_=pe}},i.unstable_scheduleCallback=function(M,Q,pe){var we=i.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?we+pe:we):pe=we,M){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=pe+De,M={id:b++,callback:Q,priorityLevel:M,startTime:pe,expirationTime:De,sortIndex:-1},pe>we?(M.sortIndex=pe,a(m,M),r(g)===null&&M===r(m)&&(C?($(se),se=-1):C=!0,fe(z,pe-we))):(M.sortIndex=De,a(g,M),S||x||(S=!0,ae||(ae=!0,Ee()))),M},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(M){var Q=_;return function(){var pe=_;_=Q;try{return M.apply(this,arguments)}finally{_=pe}}}})(Ru)),Ru}var Qm;function ZE(){return Qm||(Qm=1,Au.exports=KE()),Au.exports}var ku={exports:{}},Cn={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Wm;function ZE(){if(Wm)return Cn;Wm=1;var i=Xd();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 f(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 h=i.__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 Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.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 f(g,m,null,b)},Cn.flushSync=function(g){var m=h.T,b=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=m,s.p=b,s.d.f()}},Cn.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))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,x=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:_,fetchPriority:x}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Cn.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)},Cn.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})}},Cn.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)},Cn.requestFormReset=function(g){s.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,b){return h.H.useFormState(g,m,b)},Cn.useFormStatus=function(){return h.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var Jm;function qb(){if(Jm)return ku.exports;Jm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),ku.exports=ZE(),ku.exports}/**
33
+ */var Wm;function XE(){if(Wm)return Cn;Wm=1;var i=Xd();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 f(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 h=i.__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 Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.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 f(g,m,null,b)},Cn.flushSync=function(g){var m=h.T,b=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=m,s.p=b,s.d.f()}},Cn.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))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,x=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:_,fetchPriority:x}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Cn.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)},Cn.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})}},Cn.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)},Cn.requestFormReset=function(g){s.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,b){return h.H.useFormState(g,m,b)},Cn.useFormStatus=function(){return h.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var Jm;function qb(){if(Jm)return ku.exports;Jm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),ku.exports=XE(),ku.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,25 +38,25 @@ var HE=Object.defineProperty;var qE=(i,a,r)=>a in i?HE(i,a,{enumerable:!0,config
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var eg;function XE(){if(eg)return Ds;eg=1;var i=KE(),a=Xd(),r=qb();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 f(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=c;else{for(var p=!1,E=o.child;E;){if(E===n){p=!0,n=o,l=c;break}if(E===l){p=!0,l=o,n=c;break}E=E.sibling}if(!p){for(E=c.child;E;){if(E===n){p=!0,n=c,l=o;break}if(E===l){p=!0,l=c,n=o;break}E=E.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==l)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,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),U=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var j=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case R:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case ae:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case U:return e.displayName||"Context";case $: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 se:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var fe=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},we=[],De=-1;function w(e){return{current:e}}function L(e){0>De||(e.current=we[De],we[De]=null,De--)}function I(e,t){De++,we[De]=e.current,e.current=t}var oe=w(null),me=w(null),ve=w(null),X=w(null);function be(e,t){switch(I(ve,t),I(me,e),I(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(oe),I(oe,e)}function Te(){L(oe),L(me),L(ve)}function Ge(e){e.memoizedState!==null&&I(X,e);var t=oe.current,n=gm(t,e.type);t!==n&&(I(me,e),I(oe,n))}function $e(e){me.current===e&&(L(oe),L(me)),X.current===e&&(L(X),Rs._currentValue=pe)}var Ce,St;function Ke(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",St=-1<n.stack.indexOf(`
41
+ */var eg;function VE(){if(eg)return Ds;eg=1;var i=ZE(),a=Xd(),r=qb();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 f(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=c;else{for(var p=!1,E=o.child;E;){if(E===n){p=!0,n=o,l=c;break}if(E===l){p=!0,l=o,n=c;break}E=E.sibling}if(!p){for(E=c.child;E;){if(E===n){p=!0,n=c,l=o;break}if(E===l){p=!0,l=c,n=o;break}E=E.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==l)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,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),U=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var j=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case R:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case ae:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case U:return e.displayName||"Context";case $: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 se:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var fe=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},we=[],De=-1;function w(e){return{current:e}}function L(e){0>De||(e.current=we[De],we[De]=null,De--)}function I(e,t){De++,we[De]=e.current,e.current=t}var oe=w(null),me=w(null),ve=w(null),X=w(null);function be(e,t){switch(I(ve,t),I(me,e),I(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(oe),I(oe,e)}function Te(){L(oe),L(me),L(ve)}function Ge(e){e.memoizedState!==null&&I(X,e);var t=oe.current,n=gm(t,e.type);t!==n&&(I(me,e),I(oe,n))}function $e(e){me.current===e&&(L(oe),L(me)),X.current===e&&(L(X),Rs._currentValue=pe)}var Ce,St;function Ke(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",St=-1<n.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+Ce+e+St}var In=!1;function Je(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(V){var Z=V}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(V){Z=V}e.call(ce.prototype)}}else{try{throw Error()}catch(V){Z=V}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(V){if(V&&Z&&typeof V.stack=="string")return[V.stack,Z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],E=c[1];if(p&&E){var O=p.split(`
44
44
  `),K=E.split(`
45
45
  `);for(o=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;o<K.length&&!K[o].includes("DetermineComponentFrameRoot");)o++;if(l===O.length||o===K.length)for(l=O.length-1,o=K.length-1;1<=l&&0<=o&&O[l]!==K[o];)o--;for(;1<=l&&0<=o;l--,o--)if(O[l]!==K[o]){if(l!==1||o!==1)do if(l--,o--,0>o||O[l]!==K[o]){var ie=`
46
46
  `+O[l].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=l&&0<=o);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ke(n):""}function Ln(e,t){switch(e.tag){case 26:case 27:case 5:return Ke(e.type);case 16:return Ke("Lazy");case 13:return e.child!==t&&t!==null?Ke("Suspense Fallback"):Ke("Suspense");case 19:return Ke("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 Ke("Activity");default:return""}}function Hn(e){try{var t="",n=null;do t+=Ln(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
47
  Error generating stack: `+l.message+`
48
- `+l.stack}}var It=Object.prototype.hasOwnProperty,Rt=i.unstable_scheduleCallback,on=i.unstable_cancelCallback,yn=i.unstable_shouldYield,Yt=i.unstable_requestPaint,je=i.unstable_now,Lt=i.unstable_getCurrentPriorityLevel,vt=i.unstable_ImmediatePriority,Ot=i.unstable_UserBlockingPriority,xn=i.unstable_NormalPriority,zn=i.unstable_LowPriority,An=i.unstable_IdlePriority,jn=i.log,Rn=i.unstable_setDisableYieldValue,cn=null,Ht=null;function kn(e){if(typeof jn=="function"&&Rn(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(cn,e)}catch{}}var qt=Math.clz32?Math.clz32:hn,la=Math.log,un=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(la(e)/un|0)|0}var qe=256,pn=262144,Pt=4194304;function Gt(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 k(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~c,l!==0?o=Gt(l):(p&=E,p!==0?o=Gt(p):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=l&~c,E!==0?o=Gt(E):p!==0?o=Gt(p):n||(n=l&~e,n!==0&&(o=Gt(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 te(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=Pt;return Pt<<=1,(Pt&62914560)===0&&(Pt=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,l,o,c){var p=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,K=e.hiddenUpdates;for(n=p&~n;0<n;){var ie=31-qt(n),ce=1<<ie;E[ie]=0,O[ie]=-1;var Z=K[ie];if(Z!==null)for(K[ie]=null,ie=0;ie<Z.length;ie++){var V=Z[ie];V!==null&&(V.lane&=-536870913)}n&=~ce}l!==0&&Se(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Se(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:mt(n),(n&(e.suspendedLanes|t))!==0?0:n}function mt(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 qn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sa(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Im(e.type))}function Na(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var dn=Math.random().toString(36).slice(2),wt="__reactFiber$"+dn,Kt="__reactProps$"+dn,tt="__reactContainer$"+dn,vn="__reactEvents$"+dn,Ua="__reactListeners$"+dn,ba="__reactHandles$"+dn,Ta="__reactResources$"+dn,ra="__reactMarker$"+dn;function xa(e){delete e[wt],delete e[Kt],delete e[vn],delete e[Ua],delete e[ba]}function Wt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[wt])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){if(e=e[wt]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Vn(e){var t=e[Ta];return t||(t=e[Ta]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[ra]=!0}var F=new Set,de={};function Ne(e,t){Y(e,t),Y(e+"Capture",t)}function Y(e,t){for(de[e]=t,e=0;e<t.length;e++)F.add(t[e])}var ge=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]*$"),Ie={},Ye={};function dt(e){return It.call(Ye,e)?!0:It.call(Ie,e)?!1:ge.test(e)?Ye[e]=!0:(Ie[e]=!0,!1)}function gt(e,t,n){if(dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bt(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 Zt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function il(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=zt(e)?"checked":"value";e._valueTracker=il(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=zt(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ba(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 ll=/[\n"\\]/g;function On(e){return e.replace(ll,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,l,o,c,p,E){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?oi(e,p,ft(t)):n!=null?oi(e,p,ft(n)):l!=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=""+ft(E):e.removeAttribute("name")}function Ia(e,t,n,l,o,c,p,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)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),li(e)}function oi(e,t,n){t==="number"&&Ba(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Jt(e,t,n,l){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&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ha(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(fe(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),li(e)}function J(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 B(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?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 ne(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&B(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function xe(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 ke=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 nt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function he(){}var _e=null;function Me(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 oa(e){var t=Gn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(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="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[Kt]||null;if(!o)throw Error(s(90));ri(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&si(l)}break e;case"textarea":Ha(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var Fl=!1;function Ks(e,t,n){if(Fl)return e(t,n);Fl=!0;try{var l=e(t);return l}finally{if(Fl=!1,(Ve!==null||We!==null)&&(Lr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Yl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Kt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=!1;if(qa)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){No=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{No=!1}var ci=null,To=null,Zs=null;function gf(){if(Zs)return Zs;var e,t=To,n=t.length,l,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===o[c-l];l++);return Zs=o.slice(e,1<l?1-l:void 0)}function Xs(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 Vs(){return!0}function bf(){return!1}function $n(e){function t(n,l,o,c,p){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,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)?Vs:bf,this.isPropagationStopped=bf,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=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=$n(ji),Kl=v({},ji,{view:0,detail:0}),By=$n(Kl),xo,Ao,Zl,Ws=v({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==Zl&&(Zl&&e.type==="mousemove"?(xo=e.screenX-Zl.screenX,Ao=e.screenY-Zl.screenY):Ao=xo=0,Zl=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),yf=$n(Ws),Iy=v({},Ws,{dataTransfer:0}),Hy=$n(Iy),qy=v({},Kl,{relatedTarget:0}),Ro=$n(qy),Gy=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),$y=$n(Gy),Fy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yy=$n(Fy),Py=v({},ji,{data:0}),vf=$n(Py),Ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zy={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"},Xy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xy[e])?!!t[e]:!1}function ko(){return Vy}var Qy=v({},Kl,{key:function(e){if(e.key){var t=Ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wy=$n(Qy),Jy=v({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=$n(Jy),ev=v({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),tv=$n(ev),nv=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),av=$n(nv),iv=v({},Ws,{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}),lv=$n(iv),sv=v({},ji,{newState:0,oldState:0}),rv=$n(sv),ov=[9,13,27,32],Oo=qa&&"CompositionEvent"in window,Xl=null;qa&&"documentMode"in document&&(Xl=document.documentMode);var cv=qa&&"TextEvent"in window&&!Xl,_f=qa&&(!Oo||Xl&&8<Xl&&11>=Xl),Sf=" ",wf=!1;function Nf(e,t){switch(e){case"keyup":return ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function uv(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(wf=!0,Sf);case"textInput":return e=t.data,e===Sf&&wf?null:e;default:return null}}function dv(e,t){if(sl)return e==="compositionend"||!Oo&&Nf(e,t)?(e=gf(),Zs=To=ci=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _f&&t.locale!=="ko"?null:t.data;default:return null}}var fv={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 xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fv[e.type]:t==="textarea"}function Af(e,t,n,l){Ve?We?We.push(l):We=[l]:Ve=l,t=qr(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Vl=null,Ql=null;function hv(e){cm(e,0)}function Js(e){var t=Xn(e);if(si(t))return e}function Rf(e,t){if(e==="change")return t}var kf=!1;if(qa){var Co;if(qa){var Mo="oninput"in document;if(!Mo){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),Mo=typeof Of.oninput=="function"}Co=Mo}else Co=!1;kf=Co&&(!document.documentMode||9<document.documentMode)}function Cf(){Vl&&(Vl.detachEvent("onpropertychange",Mf),Ql=Vl=null)}function Mf(e){if(e.propertyName==="value"&&Js(Ql)){var t=[];Af(t,Ql,e,Me(e)),Ks(hv,t)}}function pv(e,t,n){e==="focusin"?(Cf(),Vl=t,Ql=n,Vl.attachEvent("onpropertychange",Mf)):e==="focusout"&&Cf()}function mv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Js(Ql)}function gv(e,t){if(e==="click")return Js(t)}function bv(e,t){if(e==="input"||e==="change")return Js(t)}function yv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:yv;function Wl(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!It.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function Df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var n=Df(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Df(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ba(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=Ba(e.document)}return t}function Do(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 vv=qa&&"documentMode"in document&&11>=document.documentMode,rl=null,Lo=null,Jl=null,zo=!1;function Uf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||rl==null||rl!==Ba(l)||(l=rl,"selectionStart"in l&&Do(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jl&&Wl(Jl,l)||(Jl=l,l=qr(Lo,"onSelect"),0<l.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=rl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ol={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},jo={},Bf={};qa&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function Bi(e){if(jo[e])return jo[e];if(!ol[e])return e;var t=ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return jo[e]=t[n];return e}var If=Bi("animationend"),Hf=Bi("animationiteration"),qf=Bi("animationstart"),Ev=Bi("transitionrun"),_v=Bi("transitionstart"),Sv=Bi("transitioncancel"),Gf=Bi("transitionend"),$f=new Map,Uo="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(" ");Uo.push("scrollEnd");function ya(e,t){$f.set(e,t),Ne(t,[e])}var er=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)},ca=[],cl=0,Bo=0;function tr(){for(var e=cl,t=Bo=cl=0;t<e;){var n=ca[t];ca[t++]=null;var l=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&Ff(n,o,c)}}function nr(e,t,n,l){ca[cl++]=e,ca[cl++]=t,ca[cl++]=n,ca[cl++]=l,Bo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Io(e,t,n,l){return nr(e,t,n,l),ar(e)}function Ii(e,t){return nr(e,null,null,t),ar(e)}function Ff(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.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-qt(n),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),c):null}function ar(e){if(50<_s)throw _s=0,Zc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function wv(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(e,t,n,l){return new wv(e,t,n,l)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ga(e,t){var n=e.alternate;return n===null?(n=Wn(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 Yf(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 ir(e,t,n,l,o,c){var p=0;if(l=e,typeof e=="function")Ho(e)&&(p=1);else if(typeof e=="string")p=RE(e,n,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Wn(31,n,t,o),e.elementType=G,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case A:p=8,o|=24;break;case R:return e=Wn(12,n,t,o|2),e.elementType=R,e.lanes=c,e;case z:return e=Wn(13,n,t,o),e.elementType=z,e.lanes=c,e;case ae:return e=Wn(19,n,t,o),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:p=10;break e;case $:p=9;break e;case W:p=11;break e;case se:p=14;break e;case T:p=16,l=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wn(p,n,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Hi(e,t,n,l){return e=Wn(7,e,l,t),e.lanes=n,e}function qo(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Pf(e){var t=Wn(18,null,null,0);return t.stateNode=e,t}function Go(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hn(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:Hn(t)}}var dl=[],fl=0,lr=null,es=0,da=[],fa=0,ui=null,Ra=1,ka="";function $a(e,t){dl[fl++]=es,dl[fl++]=lr,lr=e,es=t}function Zf(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var l=Ra;e=ka;var o=32-qt(l)-1;l&=~(1<<o),n+=1;var c=32-qt(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,Ra=1<<32-qt(t)+o|n<<o|l,ka=c+e}else Ra=1<<c|n<<o|l,ka=e}function $o(e){e.return!==null&&($a(e,1),Zf(e,1,0))}function Fo(e){for(;e===lr;)lr=dl[--fl],dl[fl]=null,es=dl[--fl],dl[fl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Xf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var En=null,Mt=null,ot=!1,di=null,ha=!1,Yo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ts(ua(t,e)),Yo}function Vf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[wt]=e,t[Kt]=l,n){case"dialog":it("cancel",t),it("close",t);break;case"iframe":case"object":case"embed":it("load",t);break;case"video":case"audio":for(n=0;n<ws.length;n++)it(ws[n],t);break;case"source":it("error",t);break;case"img":case"image":case"link":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"input":it("invalid",t),Ia(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":it("invalid",t);break;case"textarea":it("invalid",t),Aa(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||hm(t.textContent,n)?(l.popover!=null&&(it("beforetoggle",t),it("toggle",t)),l.onScroll!=null&&it("scroll",t),l.onScrollEnd!=null&&it("scrollend",t),l.onClick!=null&&(t.onclick=he),t=!0):t=!1,t||fi(e,!0)}function Qf(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:En=En.return}}function hl(e){if(e!==En)return!1;if(!ot)return Qf(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")||cu(e.type,e.memoizedProps)),n=!n),n&&Mt&&fi(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else t===27?(t=Mt,xi(e.type)?(e=pu,pu=null,Mt=e):Mt=t):Mt=En?ma(e.stateNode.nextSibling):null;return!0}function qi(){Mt=En=null,ot=!1}function Po(){var e=di;return e!==null&&(Kn===null?Kn=e:Kn.push.apply(Kn,e),di=null),e}function ts(e){di===null?di=[e]:di.push(e)}var Ko=w(null),Gi=null,Fa=null;function hi(e,t,n){I(Ko,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=Ko.current,L(Ko)}function Zo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Xo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=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),Zo(c.return,n,e),l||(p=null);break e}c=E.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),Zo(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function pl(e,t,n,l){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 p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var E=o.type;Qn(o.pendingProps.value,p.value)||(e!==null?e.push(E):e=[E])}}else if(o===X.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rs):e=[Rs])}o=o.return}e!==null&&Xo(t,e,n,l),t.flags|=262144}function sr(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _n(e){return Wf(Gi,e)}function rr(e,t){return Gi===null&&$i(e),Wf(e,t)}function Wf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Fa===null){if(e===null)throw Error(s(308));Fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fa=Fa.next=t;return n}var Nv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Tv=i.unstable_scheduleCallback,xv=i.unstable_NormalPriority,en={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new Nv,data:new Map,refCount:0}}function ns(e){e.refCount--,e.refCount===0&&Tv(xv,function(){e.controller.abort()})}var as=null,Qo=0,ml=0,gl=null;function Av(e,t){if(as===null){var n=as=[];Qo=0,ml=eu(),gl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Qo++,t.then(Jf,Jf),t}function Jf(){if(--Qo===0&&as!==null){gl!==null&&(gl.status="fulfilled");var e=as;as=null,ml=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Rv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var eh=M.S;M.S=function(e,t){Up=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Av(e,t),eh!==null&&eh(e,t)};var Fi=w(null);function Wo(){var e=Fi.current;return e!==null?e:kt.pooledCache}function or(e,t){t===null?I(Fi,Fi.current):I(Fi,t.pool)}function th(){var e=Wo();return e===null?null:{parent:en._currentValue,pool:e}}var bl=Error(s(460)),Jo=Error(s(474)),cr=Error(s(542)),ur={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ah(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(he,he),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e;default:if(typeof t.status=="string")t.then(he,he);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e}throw Pi=t,bl}}function Yi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,bl):n}}var Pi=null;function ih(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function lh(e){if(e===bl||e===cr)throw Error(s(483))}var yl=null,is=0;function dr(e){var t=is;return is+=1,yl===null&&(yl=[]),ah(yl,e,t)}function ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sh(e){function t(q,D){if(e){var P=q.deletions;P===null?(q.deletions=[D],q.flags|=16):P.push(D)}}function n(q,D){if(!e)return null;for(;D!==null;)t(q,D),D=D.sibling;return null}function l(q){for(var D=new Map;q!==null;)q.key!==null?D.set(q.key,q):D.set(q.index,q),q=q.sibling;return D}function o(q,D){return q=Ga(q,D),q.index=0,q.sibling=null,q}function c(q,D,P){return q.index=P,e?(P=q.alternate,P!==null?(P=P.index,P<D?(q.flags|=67108866,D):P):(q.flags|=67108866,D)):(q.flags|=1048576,D)}function p(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function E(q,D,P,re){return D===null||D.tag!==6?(D=qo(P,q.mode,re),D.return=q,D):(D=o(D,P),D.return=q,D)}function O(q,D,P,re){var Le=P.type;return Le===C?ie(q,D,P.props.children,re,P.key):D!==null&&(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Yi(Le)===D.type)?(D=o(D,P.props),ls(D,P),D.return=q,D):(D=ir(P.type,P.key,P.props,null,q.mode,re),ls(D,P),D.return=q,D)}function K(q,D,P,re){return D===null||D.tag!==4||D.stateNode.containerInfo!==P.containerInfo||D.stateNode.implementation!==P.implementation?(D=Go(P,q.mode,re),D.return=q,D):(D=o(D,P.children||[]),D.return=q,D)}function ie(q,D,P,re,Le){return D===null||D.tag!==7?(D=Hi(P,q.mode,re,Le),D.return=q,D):(D=o(D,P),D.return=q,D)}function ce(q,D,P){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=qo(""+D,q.mode,P),D.return=q,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return P=ir(D.type,D.key,D.props,null,q.mode,P),ls(P,D),P.return=q,P;case S:return D=Go(D,q.mode,P),D.return=q,D;case T:return D=Yi(D),ce(q,D,P)}if(fe(D)||Ee(D))return D=Hi(D,q.mode,P,null),D.return=q,D;if(typeof D.then=="function")return ce(q,dr(D),P);if(D.$$typeof===U)return ce(q,rr(q,D),P);fr(q,D)}return null}function Z(q,D,P,re){var Le=D!==null?D.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Le!==null?null:E(q,D,""+P,re);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case x:return P.key===Le?O(q,D,P,re):null;case S:return P.key===Le?K(q,D,P,re):null;case T:return P=Yi(P),Z(q,D,P,re)}if(fe(P)||Ee(P))return Le!==null?null:ie(q,D,P,re,null);if(typeof P.then=="function")return Z(q,D,dr(P),re);if(P.$$typeof===U)return Z(q,D,rr(q,P),re);fr(q,P)}return null}function V(q,D,P,re,Le){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return q=q.get(P)||null,E(D,q,""+re,Le);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case x:return q=q.get(re.key===null?P:re.key)||null,O(D,q,re,Le);case S:return q=q.get(re.key===null?P:re.key)||null,K(D,q,re,Le);case T:return re=Yi(re),V(q,D,P,re,Le)}if(fe(re)||Ee(re))return q=q.get(P)||null,ie(D,q,re,Le,null);if(typeof re.then=="function")return V(q,D,P,dr(re),Le);if(re.$$typeof===U)return V(q,D,P,rr(D,re),Le);fr(D,re)}return null}function Re(q,D,P,re){for(var Le=null,ht=null,Oe=D,Ze=D=0,rt=null;Oe!==null&&Ze<P.length;Ze++){Oe.index>Ze?(rt=Oe,Oe=null):rt=Oe.sibling;var pt=Z(q,Oe,P[Ze],re);if(pt===null){Oe===null&&(Oe=rt);break}e&&Oe&&pt.alternate===null&&t(q,Oe),D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt,Oe=rt}if(Ze===P.length)return n(q,Oe),ot&&$a(q,Ze),Le;if(Oe===null){for(;Ze<P.length;Ze++)Oe=ce(q,P[Ze],re),Oe!==null&&(D=c(Oe,D,Ze),ht===null?Le=Oe:ht.sibling=Oe,ht=Oe);return ot&&$a(q,Ze),Le}for(Oe=l(Oe);Ze<P.length;Ze++)rt=V(Oe,q,Ze,P[Ze],re),rt!==null&&(e&&rt.alternate!==null&&Oe.delete(rt.key===null?Ze:rt.key),D=c(rt,D,Ze),ht===null?Le=rt:ht.sibling=rt,ht=rt);return e&&Oe.forEach(function(Ci){return t(q,Ci)}),ot&&$a(q,Ze),Le}function Be(q,D,P,re){if(P==null)throw Error(s(151));for(var Le=null,ht=null,Oe=D,Ze=D=0,rt=null,pt=P.next();Oe!==null&&!pt.done;Ze++,pt=P.next()){Oe.index>Ze?(rt=Oe,Oe=null):rt=Oe.sibling;var Ci=Z(q,Oe,pt.value,re);if(Ci===null){Oe===null&&(Oe=rt);break}e&&Oe&&Ci.alternate===null&&t(q,Oe),D=c(Ci,D,Ze),ht===null?Le=Ci:ht.sibling=Ci,ht=Ci,Oe=rt}if(pt.done)return n(q,Oe),ot&&$a(q,Ze),Le;if(Oe===null){for(;!pt.done;Ze++,pt=P.next())pt=ce(q,pt.value,re),pt!==null&&(D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt);return ot&&$a(q,Ze),Le}for(Oe=l(Oe);!pt.done;Ze++,pt=P.next())pt=V(Oe,q,Ze,pt.value,re),pt!==null&&(e&&pt.alternate!==null&&Oe.delete(pt.key===null?Ze:pt.key),D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt);return e&&Oe.forEach(function(IE){return t(q,IE)}),ot&&$a(q,Ze),Le}function xt(q,D,P,re){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case x:e:{for(var Le=P.key;D!==null;){if(D.key===Le){if(Le=P.type,Le===C){if(D.tag===7){n(q,D.sibling),re=o(D,P.props.children),re.return=q,q=re;break e}}else if(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Yi(Le)===D.type){n(q,D.sibling),re=o(D,P.props),ls(re,P),re.return=q,q=re;break e}n(q,D);break}else t(q,D);D=D.sibling}P.type===C?(re=Hi(P.props.children,q.mode,re,P.key),re.return=q,q=re):(re=ir(P.type,P.key,P.props,null,q.mode,re),ls(re,P),re.return=q,q=re)}return p(q);case S:e:{for(Le=P.key;D!==null;){if(D.key===Le)if(D.tag===4&&D.stateNode.containerInfo===P.containerInfo&&D.stateNode.implementation===P.implementation){n(q,D.sibling),re=o(D,P.children||[]),re.return=q,q=re;break e}else{n(q,D);break}else t(q,D);D=D.sibling}re=Go(P,q.mode,re),re.return=q,q=re}return p(q);case T:return P=Yi(P),xt(q,D,P,re)}if(fe(P))return Re(q,D,P,re);if(Ee(P)){if(Le=Ee(P),typeof Le!="function")throw Error(s(150));return P=Le.call(P),Be(q,D,P,re)}if(typeof P.then=="function")return xt(q,D,dr(P),re);if(P.$$typeof===U)return xt(q,D,rr(q,P),re);fr(q,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,D!==null&&D.tag===6?(n(q,D.sibling),re=o(D,P),re.return=q,q=re):(n(q,D),re=qo(P,q.mode,re),re.return=q,q=re),p(q)):n(q,D)}return function(q,D,P,re){try{is=0;var Le=xt(q,D,P,re);return yl=null,Le}catch(Oe){if(Oe===bl||Oe===cr)throw Oe;var ht=Wn(29,Oe,null,q.mode);return ht.lanes=re,ht.return=q,ht}finally{}}}var Ki=sh(!0),rh=sh(!1),pi=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ar(e),Ff(e,null,n),t}return nr(e,l,t,n),ar(e)}function ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}function nc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ac=!1;function rs(){if(ac){var e=gl;if(e!==null)throw e}}function os(e,t,n,l){ac=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,K=O.next;O.next=null,p===null?c=K:p.next=K,p=O;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,E=ie.lastBaseUpdate,E!==p&&(E===null?ie.firstBaseUpdate=K:E.next=K,ie.lastBaseUpdate=O))}if(c!==null){var ce=o.baseState;p=0,ie=K=O=null,E=c;do{var Z=E.lane&-536870913,V=Z!==E.lane;if(V?(st&Z)===Z:(l&Z)===Z){Z!==0&&Z===ml&&(ac=!0),ie!==null&&(ie=ie.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Re=e,Be=E;Z=t;var xt=n;switch(Be.tag){case 1:if(Re=Be.payload,typeof Re=="function"){ce=Re.call(xt,ce,Z);break e}ce=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Be.payload,Z=typeof Re=="function"?Re.call(xt,ce,Z):Re,Z==null)break e;ce=v({},ce,Z);break e;case 2:pi=!0}}Z=E.callback,Z!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[Z]:V.push(Z))}else V={lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ie===null?(K=ie=V,O=ce):ie=ie.next=V,p|=Z;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);ie===null&&(O=ce),o.baseState=O,o.firstBaseUpdate=K,o.lastBaseUpdate=ie,c===null&&(o.shared.lanes=0),_i|=p,e.lanes=p,e.memoizedState=ce}}function oh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ch(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)oh(n[e],t)}var vl=w(null),hr=w(0);function uh(e,t){e=ei,I(hr,e),I(vl,t),ei=e|t.baseLanes}function ic(){I(hr,ei),I(vl,vl.current)}function lc(){ei=hr.current,L(vl),L(hr)}var Jn=w(null),pa=null;function bi(e){var t=e.alternate;I(Xt,Xt.current&1),I(Jn,e),pa===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(pa=e)}function sc(e){I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)}function dh(e){e.tag===22?(I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)):yi()}function yi(){I(Xt,Xt.current),I(Jn,Jn.current)}function ea(e){L(Jn),pa===e&&(pa=null),L(Xt)}var Xt=w(0);function pr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fu(n)||hu(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 Pa=0,Pe=null,Nt=null,tn=null,mr=!1,El=!1,Zi=!1,gr=0,cs=0,_l=null,kv=0;function $t(){throw Error(s(321))}function rc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function oc(e,t,n,l,o,c){return Pa=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Zh:wc,Zi=!1,c=n(l,o),Zi=!1,El&&(c=hh(t,n,l,o)),fh(e),c}function fh(e){M.H=fs;var t=Nt!==null&&Nt.next!==null;if(Pa=0,tn=Nt=Pe=null,mr=!1,cs=0,_l=null,t)throw Error(s(300));e===null||nn||(e=e.dependencies,e!==null&&sr(e)&&(nn=!0))}function hh(e,t,n,l){Pe=e;var o=0;do{if(El&&(_l=null),cs=0,El=!1,25<=o)throw Error(s(301));if(o+=1,tn=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)}M.H=Xh,c=t(n,l)}while(El);return c}function Ov(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?us(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Pe.flags|=1024),t}function cc(){var e=gr!==0;return gr=0,e}function uc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dc(e){if(mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mr=!1}Pa=0,tn=Nt=Pe=null,El=!1,cs=gr=0,_l=null}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Pe.memoizedState=tn=e:tn=tn.next=e,tn}function Vt(){if(Nt===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=tn===null?Pe.memoizedState:tn.next;if(t!==null)tn=t,Nt=e;else{if(e===null)throw Pe.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},tn===null?Pe.memoizedState=tn=e:tn=tn.next=e}return tn}function br(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=cs;return cs+=1,_l===null&&(_l=[]),e=ah(_l,e,t),t=Pe,(tn===null?t.memoizedState:tn.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Zh:wc),e}function yr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return us(e);if(e.$$typeof===U)return _n(e)}throw Error(s(438,String(e)))}function fc(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=br(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function vr(e){var t=Vt();return hc(t,Nt,e)}function hc(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=p=null,O=null,K=t,ie=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(st&ce)===ce:(Pa&ce)===ce){var Z=K.revertLane;if(Z===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===ml&&(ie=!0);else if((Pa&Z)===Z){K=K.next,Z===ml&&(ie=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=ce,p=c):O=O.next=ce,Pe.lanes|=Z,_i|=Z;ce=K.action,Zi&&n(c,ce),c=K.hasEagerState?K.eagerState:n(c,ce)}else Z={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=Z,p=c):O=O.next=Z,Pe.lanes|=ce,_i|=ce;K=K.next}while(K!==null&&K!==t);if(O===null?p=c:O.next=E,!Qn(c,e.memoizedState)&&(nn=!0,ie&&(n=gl,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=O,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function pc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Qn(c,t.memoizedState)||(nn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function ph(e,t,n){var l=Pe,o=Vt(),c=ot;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!Qn((Nt||o).memoizedState,n);if(p&&(o.memoizedState=n,nn=!0),o=o.queue,bc(bh.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||tn!==null&&tn.memoizedState.tag&1){if(l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,o,n,t),null),kt===null)throw Error(s(349));c||(Pa&127)!==0||mh(l,t,n)}return n}function mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=br(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gh(e,t,n,l){t.value=n,t.getSnapshot=l,yh(t)&&vh(e)}function bh(e,t,n){return n(function(){yh(t)&&vh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function vh(e){var t=Ii(e,2);t!==null&&Zn(t,e,2)}function mc(e){var t=Un();if(typeof e=="function"){var n=e;if(e=n(),Zi){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function Eh(e,t,n,l){return e.baseState=n,hc(e,Nt,typeof l=="function"?l:Ka)}function Cv(e,t,n,l,o){if(Sr(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(p){c.listeners.push(p)}};M.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,_h(t,c)):(c.next=n.next,t.pending=n.next=c)}}function _h(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=M.T,p={};M.T=p;try{var E=n(o,l),O=M.S;O!==null&&O(p,E),Sh(e,t,E)}catch(K){gc(e,t,K)}finally{c!==null&&p.types!==null&&(c.types=p.types),M.T=c}}else try{c=n(o,l),Sh(e,t,c)}catch(K){gc(e,t,K)}}function Sh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){wh(e,t,l)},function(l){return gc(e,t,l)}):wh(e,t,n)}function wh(e,t,n){t.status="fulfilled",t.value=n,Nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_h(e,n)))}function gc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Nh(t),t=t.next;while(t!==l)}e.action=null}function Nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Th(e,t){return t}function xh(e,t){if(ot){var n=kt.formState;if(n!==null){e:{var l=Pe;if(ot){if(Mt){t:{for(var o=Mt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Mt=ma(o.nextSibling),l=o.data==="F!";break e}}fi(l)}l=!1}l&&(t=n[0])}}return n=Un(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:t},n.queue=l,n=Yh.bind(null,Pe,l),l.dispatch=n,l=mc(!1),c=Sc.bind(null,Pe,!1,l.queue),l=Un(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Cv.bind(null,Pe,o,c,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Ah(e){var t=Vt();return Rh(t,Nt,e)}function Rh(e,t,n){if(t=hc(e,t,Th)[0],e=vr(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=us(t)}catch(p){throw p===bl?cr:p}else l=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,Sl(9,{destroy:void 0},Mv.bind(null,o,n),null)),[l,c,e]}function Mv(e,t){e.action=t}function kh(e){var t=Vt(),n=Nt;if(n!==null)return Rh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Sl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=br(),Pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Oh(){return Vt().memoizedState}function Er(e,t,n,l){var o=Un();Pe.flags|=e,o.memoizedState=Sl(1|t,{destroy:void 0},n,l===void 0?null:l)}function _r(e,t,n,l){var o=Vt();l=l===void 0?null:l;var c=o.memoizedState.inst;Nt!==null&&l!==null&&rc(l,Nt.memoizedState.deps)?o.memoizedState=Sl(t,c,n,l):(Pe.flags|=e,o.memoizedState=Sl(1|t,c,n,l))}function Ch(e,t){Er(8390656,8,e,t)}function bc(e,t){_r(2048,8,e,t)}function Dv(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=br(),Pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Mh(e){var t=Vt().memoizedState;return Dv({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Dh(e,t){return _r(4,2,e,t)}function Lh(e,t){return _r(4,4,e,t)}function zh(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 jh(e,t,n){n=n!=null?n.concat([e]):null,_r(4,4,zh.bind(null,t,e),n)}function yc(){}function Uh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&rc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Bh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&rc(t,l[1]))return l[0];if(l=e(),Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l}function vc(e,t,n){return n===void 0||(Pa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ip(),Pe.lanes|=e,_i|=e,n)}function Ih(e,t,n,l){return Qn(n,t)?n:vl.current!==null?(e=vc(e,n,l),Qn(e,t)||(nn=!0),e):(Pa&42)===0||(Pa&1073741824)!==0&&(st&261930)===0?(nn=!0,e.memoizedState=n):(e=Ip(),Pe.lanes|=e,_i|=e,t)}function Hh(e,t,n,l,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var p=M.T,E={};M.T=E,Sc(e,!1,t,n);try{var O=o(),K=M.S;if(K!==null&&K(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ie=Rv(O,l);ds(e,t,ie,aa(e))}else ds(e,t,l,aa(e))}catch(ce){ds(e,t,{then:function(){},status:"rejected",reason:ce},aa())}finally{Q.p=c,p!==null&&E.types!==null&&(p.types=E.types),M.T=p}}function Lv(){}function Ec(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=qh(e).queue;Hh(e,o,t,pe,n===null?Lv:function(){return Gh(e),n(l)})}function qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:pe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gh(e){var t=qh(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},aa())}function _c(){return _n(Rs)}function $h(){return Vt().memoizedState}function Fh(){return Vt().memoizedState}function zv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=aa();e=mi(n);var l=gi(t,e,n);l!==null&&(Zn(l,t,n),ss(l,t,n)),t={cache:Vo()},e.payload=t;return}t=t.return}}function jv(e,t,n){var l=aa();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?Ph(t,n):(n=Io(e,t,n,l),n!==null&&(Zn(n,e,l),Kh(n,t,l)))}function Yh(e,t,n){var l=aa();ds(e,t,n,l)}function ds(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))Ph(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,E=c(p,n);if(o.hasEagerState=!0,o.eagerState=E,Qn(E,p))return nr(e,t,o,0),kt===null&&tr(),!1}catch{}finally{}if(n=Io(e,t,o,l),n!==null)return Zn(n,e,l),Kh(n,t,l),!0}return!1}function Sc(e,t,n,l){if(l={lane:2,revertLane:eu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(s(479))}else t=Io(e,n,l,2),t!==null&&Zn(t,e,2)}function Sr(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Ph(e,t){El=mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}var fs={readContext:_n,use:yr,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};fs.useEffectEvent=$t;var Zh={readContext:_n,use:yr,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Ch,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Er(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Er(4194308,4,e,t)},useInsertionEffect:function(e,t){Er(4,2,e,t)},useMemo:function(e,t){var n=Un();t=t===void 0?null:t;var l=e();if(Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Un();if(n!==void 0){var o=n(t);if(Zi){kn(!0);try{n(t)}finally{kn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=jv.bind(null,Pe,e),[l.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,n=Yh.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yc,useDeferredValue:function(e,t){var n=Un();return vc(n,e,t)},useTransition:function(){var e=mc(!1);return e=Hh.bind(null,Pe,e.queue,!0,!1),Un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Pe,o=Un();if(ot){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(st&127)!==0||mh(l,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Ch(bh.bind(null,l,c,e),[e]),l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,c,n,t),null),n},useId:function(){var e=Un(),t=kt.identifierPrefix;if(ot){var n=ka,l=Ra;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=kv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_c,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=Un();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sc.bind(null,Pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return Un().memoizedState=zv.bind(null,Pe)},useEffectEvent:function(e){var t=Un(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},wc={readContext:_n,use:yr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:vr,useRef:Oh,useState:function(){return vr(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=vr(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var n=Vt();return Eh(n,Nt,e,t)},useMemoCache:fc,useCacheRefresh:Fh};wc.useEffectEvent=Mh;var Xh={readContext:_n,use:yr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:pc,useRef:Oh,useState:function(){return pc(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Nt===null?vc(n,e,t):Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=pc(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=Vt();return Nt!==null?Eh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fc,useCacheRefresh:Fh};Xh.useEffectEvent=Mh;function Nc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=aa(),l=mi(n);l.tag=2,t!=null&&(l.callback=t),t=gi(e,l,n),t!==null&&(Zn(t,e,n),ss(t,e,n))}};function Vh(e,t,n,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,l)||!Wl(o,c):!0}function Qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}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 Wh(e){er(e)}function Jh(e){console.error(e)}function ep(e){er(e)}function wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function tp(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function xc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){wr(e,t)},n}function np(e){return e=mi(e),e.tag=3,e}function ap(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){tp(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){tp(t,n,l),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Uv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&pl(t,n,o,!0),n=Jn.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?zr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Qc(e,l,o)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Qc(e,l,o)),!1}throw Error(s(435,n.tag))}return Qc(e,l,o),zr(),!1}if(ot)return t=Jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Yo&&(e=Error(s(422),{cause:l}),ts(ua(e,n)))):(l!==Yo&&(t=Error(s(423),{cause:l}),ts(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=ua(l,n),o=xc(e.stateNode,l,o),nc(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:l});if(c=ua(c,n),Es===null?Es=[c]:Es.push(c),Ft!==4&&(Ft=2),t===null)return!0;l=ua(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=xc(n.stateNode,l,e),nc(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"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=np(o),ap(o,e,n,l),nc(n,o),!1}n=n.return}while(n!==null);return!1}var Ac=Error(s(461)),nn=!1;function Sn(e,t,n,l){t.child=e===null?rh(t,null,n,l):Ki(t,e.child,n,l)}function ip(e,t,n,l,o){n=n.render;var c=t.ref;if("ref"in l){var p={};for(var E in l)E!=="ref"&&(p[E]=l[E])}else p=l;return $i(t),l=oc(e,t,n,p,c,o),E=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&E&&$o(t),t.flags|=1,Sn(e,t,l,o),t.child)}function lp(e,t,n,l,o){if(e===null){var c=n.type;return typeof c=="function"&&!Ho(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,sp(e,t,c,l,o)):(e=ir(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zc(e,o)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(p,l)&&e.ref===t.ref)return Za(e,t,o)}return t.flags|=1,e=Ga(c,l),e.ref=t.ref,e.return=t,t.child=e}function sp(e,t,n,l,o){if(e!==null){var c=e.memoizedProps;if(Wl(c,l)&&e.ref===t.ref)if(nn=!1,t.pendingProps=l=c,zc(e,o))(e.flags&131072)!==0&&(nn=!0);else return t.lanes=e.lanes,Za(e,t,o)}return Rc(e,t,n,l,o)}function rp(e,t,n,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return op(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,c!==null?c.cachePool:null),c!==null?uh(t,c):ic(),dh(t);else return l=t.lanes=536870912,op(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(or(t,c.cachePool),uh(t,c),yi(),t.memoizedState=null):(e!==null&&or(t,null),ic(),yi());return Sn(e,t,o,n),t.child}function hs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function op(e,t,n,l,o){var c=Wo();return c=c===null?null:{parent:en._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&or(t,null),ic(),dh(t),e!==null&&pl(e,t,l,!0),t.childLanes=o,null}function Nr(e,t){return t=xr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cp(e,t,n){return Ki(t,e.child,null,n),e=Nr(t,t.pendingProps),e.flags|=2,ea(t),t.memoizedState=null,e}function Bv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(l.mode==="hidden")return e=Nr(t,l),t.lanes=536870912,hs(null,e);if(sc(t),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Nr(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(sc(t),o)if(t.flags&256)t.flags&=-257,t=cp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(nn||pl(e,t,n,!1),o=(n&e.childLanes)!==0,nn||o){if(l=kt,l!==null&&(p=Ct(l,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,Ii(e,p),Zn(l,e,p),Ac;zr(),t=cp(e,t,n)}else e=c.treeContext,Mt=ma(p.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Nr(t,l),t.flags|=4096;return t}return e=Ga(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(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 Rc(e,t,n,l,o){return $i(t),n=oc(e,t,n,l,void 0,o),l=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,o),t.child)}function up(e,t,n,l,o,c){return $i(t),t.updateQueue=null,n=hh(t,l,n,o),fh(e),l=cc(),e!==null&&!nn?(uc(e,t,c),Za(e,t,c)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,c),t.child)}function dp(e,t,n,l,o){if($i(t),t.stateNode===null){var c=ul,p=n.contextType;typeof p=="object"&&p!==null&&(c=_n(p)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Tc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ec(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?_n(p):ul,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Nc(t,n,p,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Tc.enqueueReplaceState(c,c.state,null),os(t,l,c,o),rs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Xi(n,E);c.props=O;var K=c.context,ie=n.contextType;p=ul,typeof ie=="object"&&ie!==null&&(p=_n(ie));var ce=n.getDerivedStateFromProps;ie=typeof ce=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ie||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||K!==p)&&Qh(t,c,l,p),pi=!1;var Z=t.memoizedState;c.state=Z,os(t,l,c,o),rs(),K=t.memoizedState,E||Z!==K||pi?(typeof ce=="function"&&(Nc(t,n,ce,l),K=t.memoizedState),(O=pi||Vh(t,n,O,l,Z,K,p))?(ie||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=l,t.memoizedState=K),c.props=l,c.state=K,c.context=p,l=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,tc(e,t),p=t.memoizedProps,ie=Xi(n,p),c.props=ie,ce=t.pendingProps,Z=c.context,K=n.contextType,O=ul,typeof K=="object"&&K!==null&&(O=_n(K)),E=n.getDerivedStateFromProps,(K=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==ce||Z!==O)&&Qh(t,c,l,O),pi=!1,Z=t.memoizedState,c.state=Z,os(t,l,c,o),rs();var V=t.memoizedState;p!==ce||Z!==V||pi||e!==null&&e.dependencies!==null&&sr(e.dependencies)?(typeof E=="function"&&(Nc(t,n,E,l),V=t.memoizedState),(ie=pi||Vh(t,n,ie,l,Z,V,O)||e!==null&&e.dependencies!==null&&sr(e.dependencies))?(K||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,V,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,V,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=V),c.props=l,c.state=V,c.context=O,l=ie):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Tr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Sn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Za(e,t,o),e}function fp(e,t,n,l){return qi(),t.flags|=256,Sn(e,t,n,l),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:th()}}function Cc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=na),e}function hp(e,t,n){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?bi(t):yi(),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return hu(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(yi(),o=t.mode,E=xr({mode:"hidden",children:E},o),l=Hi(l,o,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,p,n),t.memoizedState=kc,hs(null,l)):(bi(t),Mc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=l.fallback,o=t.mode,l=xr({mode:"visible",children:l.children},o),E=Hi(E,o,n,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,Ki(t,e.child,null,n),l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,p,n),t.memoizedState=kc,t=hs(null,l));else if(bi(t),hu(E)){if(p=E.nextSibling&&E.nextSibling.dataset,p)var K=p.dgst;p=K,l=Error(s(419)),l.stack="",l.digest=p,ts({value:l,source:null,stack:null}),t=Dc(e,t,n)}else if(nn||pl(e,t,n,!1),p=(n&e.childLanes)!==0,nn||p){if(p=kt,p!==null&&(l=Ct(p,n),l!==0&&l!==O.retryLane))throw O.retryLane=l,Ii(e,l),Zn(p,e,l),Ac;fu(E)||zr(),t=Dc(e,t,n)}else fu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Mt=ma(E.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Mc(t,l.children),t.flags|=4096);return t}return o?(yi(),E=l.fallback,o=t.mode,O=e.child,K=O.sibling,l=Ga(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,K!==null?E=Ga(K,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,hs(null,l),l=t.child,E=e.child.memoizedState,E===null?E=Oc(n):(o=E.cachePool,o!==null?(O=en._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=th(),E={baseLanes:E.baseLanes|n,cachePool:o}),l.memoizedState=E,l.childLanes=Cc(e,p,n),t.memoizedState=kc,hs(e.child,l)):(bi(t),n=e.child,e=n.sibling,n=Ga(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Mc(e,t){return t=xr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xr(e,t){return e=Wn(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ki(t,e.child,null,n),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Zo(e.return,t,n)}function Lc(e,t,n,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=o,p.treeForkCount=c)}function mp(e,t,n){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=Xt.current,E=(p&2)!==0;if(E?(p=p&1|2,t.flags|=128):p&=1,I(Xt,p),Sn(e,t,l,n),l=ot?es:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pp(e,n,t);else if(e.tag===19)pp(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&&pr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lc(t,!1,o,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lc(t,!0,n,null,c,l);break;case"together":Lc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pl(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=Ga(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ga(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&sr(e)))}function Iv(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),hi(t,en,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hp(e,t,n):(bi(t),e=Za(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(pl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return mp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Xt,Xt.current),l)break;return null;case 22:return t.lanes=0,rp(e,t,n,t.pendingProps);case 24:hi(t,en,e.memoizedState.cache)}return Za(e,t,n)}function gp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nn=!0;else{if(!zc(e,n)&&(t.flags&128)===0)return nn=!1,Iv(e,t,n);nn=(e.flags&131072)!==0}else nn=!1,ot&&(t.flags&1048576)!==0&&Zf(t,es,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Yi(t.elementType),t.type=e,typeof e=="function")Ho(e)?(l=Xi(e,l),t.tag=1,t=dp(null,t,e,l,n)):(t.tag=0,t=Rc(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===W){t.tag=11,t=ip(null,t,e,l,n);break e}else if(o===se){t.tag=14,t=lp(null,t,e,l,n);break e}}throw t=le(e)||e,Error(s(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Xi(l,t.pendingProps),dp(e,t,l,o,n);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,tc(e,t),os(t,l,null,n);var p=t.memoizedState;if(l=p.cache,hi(t,en,l),l!==c.cache&&Xo(t,[en],n,!0),rs(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fp(e,t,l,n);break e}else if(l!==o){o=ua(Error(s(424)),t),ts(o),t=fp(e,t,l,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(Mt=ma(e.firstChild),En=t,ot=!0,di=null,ha=!0,n=rh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),l===o){t=Za(e,t,n);break e}Sn(e,t,l,n)}t=t.child}return t;case 26:return Tr(e,t),e===null?(n=Am(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,l=Gr(ve.current).createElement(n),l[wt]=t,l[Kt]=e,wn(l,n,e),ut(l),t.stateNode=l):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ot&&(l=t.stateNode=Nm(t.type,t.pendingProps,ve.current),En=t,ha=!0,o=Mt,xi(t.type)?(pu=o,Mt=ma(l.firstChild)):Mt=o),Sn(e,t,t.pendingProps.children,n),Tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=l=Mt)&&(l=mE(l,t.type,t.pendingProps,ha),l!==null?(t.stateNode=l,En=t,Mt=ma(l.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,cu(o,c)?l=null:p!==null&&cu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=oc(e,t,Ov,null,null,n),Rs._currentValue=o),Tr(e,t),Sn(e,t,l,n),t.child;case 6:return e===null&&ot&&((e=n=Mt)&&(n=gE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,En=t,Mt=null,e=!0):e=!1),e||fi(t)),null;case 13:return hp(e,t,n);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,n):Sn(e,t,l,n),t.child;case 11:return ip(e,t,t.type,t.pendingProps,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,hi(t,t.type,l.value),Sn(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,$i(t),o=_n(o),l=l(o),t.flags|=1,Sn(e,t,l,n),t.child;case 14:return lp(e,t,t.type,t.pendingProps,n);case 15:return sp(e,t,t.type,t.pendingProps,n);case 19:return mp(e,t,n);case 31:return Bv(e,t,n);case 22:return rp(e,t,n,t.pendingProps);case 24:return $i(t),l=_n(en),e===null?(o=Wo(),o===null&&(o=kt,c=Vo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:l,cache:o},ec(t),hi(t,en,o)):((e.lanes&n)!==0&&(tc(e,t),os(t,null,null,n),rs()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,en,l)):(l=c.cache,hi(t,en,l),l!==o.cache&&Xo(t,[en],n,!0))),Sn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Xa(e){e.flags|=4}function jc(e,t,n,l,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($p())e.flags|=8192;else throw Pi=ur,Jo}else e.flags&=-16777217}function bp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mm(t))if($p())e.flags|=8192;else throw Pi=ur,Jo}function Ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,xl|=t)}function ps(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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Hv(e,t,n){var l=t.pendingProps;switch(Fo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ya(en),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?Xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Po())),Dt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Xa(t),c!==null?(Dt(t),bp(t,c)):(Dt(t),jc(t,o,null,l,n))):c?c!==e.memoizedState?(Xa(t),Dt(t),bp(t,c)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Xa(t),Dt(t),jc(t,o,e,l,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}e=oe.current,hl(t)?Vf(t):(e=Nm(o,l,n),t.stateNode=e,Xa(t))}return Dt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}if(c=oe.current,hl(t))Vf(t);else{var p=Gr(ve.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[wt]=t,c[Kt]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(wn(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xa(t)}}return Dt(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=En,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||hm(e.nodeValue,n)),e||fi(t,!0)}else e=Gr(e).createTextNode(l),e[wt]=t,t.stateNode=e}return Dt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=hl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else n=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ea(t),t):(ea(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Dt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=hl(t),l!==null&&l.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[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),o=!1}else o=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ea(t),t):(ea(t),null)}return ea(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ar(t,t.updateQueue),Dt(t),null);case 4:return Te(),e===null&&iu(t.stateNode.containerInfo),Dt(t),null;case 10:return Ya(t.type),Dt(t),null;case 19:if(L(Xt),l=t.memoizedState,l===null)return Dt(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ps(l,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=pr(e),c!==null){for(t.flags|=128,ps(l,!1),e=c.updateQueue,t.updateQueue=e,Ar(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yf(n,e),n=n.sibling;return I(Xt,Xt.current&1|2),ot&&$a(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&je()>Mr&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304)}else{if(!o)if(e=pr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ar(t,e),ps(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ot)return Dt(t),null}else 2*je()-l.renderingStartTime>Mr&&n!==536870912&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=je(),e.sibling=null,n=Xt.current,I(Xt,o?n&1|2:n&1),ot&&$a(t,l.treeForkCount),e):(Dt(t),null);case 22:case 23:return ea(t),lc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),n=t.updateQueue,n!==null&&Ar(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&L(Fi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(en),Dt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qv(e,t){switch(Fo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(en),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(ea(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(ea(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 L(Xt),null;case 4:return Te(),null;case 10:return Ya(t.type),null;case 22:case 23:return ea(t),lc(),e!==null&&L(Fi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(en),null;case 25:return null;default:return null}}function yp(e,t){switch(Fo(t),t.tag){case 3:Ya(en),Te();break;case 26:case 27:case 5:$e(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&ea(t);break;case 13:ea(t);break;case 19:L(Xt);break;case 10:Ya(t.type);break;case 22:case 23:ea(t),lc(),e!==null&&L(Fi);break;case 24:Ya(en)}}function ms(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var c=n.create,p=n.inst;l=c(),p.destroy=l}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,E=p.destroy;if(E!==void 0){p.destroy=void 0,o=t;var O=n,K=E;try{K()}catch(ie){_t(o,O,ie)}}}l=l.next}while(l!==c)}}catch(ie){_t(t,t.return,ie)}}function vp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ch(t,n)}catch(l){_t(e,e.return,l)}}}function Ep(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_t(e,t,l)}}function gs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}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 _p(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Uc(e,t,n){try{var l=e.stateNode;cE(l,e.type,n,t),l[Kt]=t}catch(o){_t(e,e.return,o)}}function Sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xi(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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&&xi(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 Ic(e,t,n){var l=e.tag;if(l===5||l===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=he));else if(l!==4&&(l===27&&xi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Rr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&xi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function wp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);wn(t,l,n),t[wt]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Va=!1,an=!1,Hc=!1,Np=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Gv(e,t){if(e=e.containerInfo,ru=Xr,e=jf(e),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,E=-1,O=-1,K=0,ie=0,ce=e,Z=null;t:for(;;){for(var V;ce!==n||o!==0&&ce.nodeType!==3||(E=p+o),ce!==c||l!==0&&ce.nodeType!==3||(O=p+l),ce.nodeType===3&&(p+=ce.nodeValue.length),(V=ce.firstChild)!==null;)Z=ce,ce=V;for(;;){if(ce===e)break t;if(Z===n&&++K===o&&(E=p),Z===c&&++ie===l&&(O=p),(V=ce.nextSibling)!==null)break;ce=Z,Z=ce.parentNode}ce=V}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},Xr=!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,l=n.stateNode;try{var Re=Xi(n.type,o);e=l.getSnapshotBeforeUpdate(Re,c),l.__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)du(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":du(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 Tp(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Wa(e,n),l&4&&ms(5,n);break;case 1:if(Wa(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){_t(n,n.return,p)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){_t(n,n.return,p)}}l&64&&vp(n),l&512&&gs(n,n.return);break;case 3:if(Wa(e,n),l&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{ch(e,t)}catch(p){_t(n,n.return,p)}}break;case 27:t===null&&l&4&&wp(n);case 26:case 5:Wa(e,n),t===null&&l&4&&_p(n),l&512&&gs(n,n.return);break;case 12:Wa(e,n);break;case 31:Wa(e,n),l&4&&Rp(e,n);break;case 13:Wa(e,n),l&4&&kp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qv.bind(null,n),bE(e,n))));break;case 22:if(l=n.memoizedState!==null||Va,!l){t=t!==null&&t.memoizedState!==null||an,o=Va;var c=an;Va=l,(an=t)&&!c?Ja(e,n,(n.subtreeFlags&8772)!==0):Wa(e,n),Va=o,an=c}break;case 30:break;default:Wa(e,n)}}function xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xa(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 jt=null,Fn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(cn,n)}catch{}switch(n.tag){case 26:an||Oa(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:an||Oa(n,t);var l=jt,o=Fn;xi(n.type)&&(jt=n.stateNode,Fn=!1),Qa(e,t,n),Ts(n.stateNode),jt=l,Fn=o;break;case 5:an||Oa(n,t);case 6:if(l=jt,o=Fn,jt=null,Qa(e,t,n),jt=l,Fn=o,jt!==null)if(Fn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{jt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:jt!==null&&(Fn?(e=jt,vm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):vm(jt,n.stateNode));break;case 4:l=jt,o=Fn,jt=n.stateNode.containerInfo,Fn=!0,Qa(e,t,n),jt=l,Fn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),an||vi(4,n,t),Qa(e,t,n);break;case 1:an||(Oa(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Ep(n,t,l)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:an=(l=an)||n.memoizedState!==null,Qa(e,t,n),an=l;break;default:Qa(e,t,n)}}function Rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){_t(t,t.return,n)}}}function kp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){_t(t,t.return,n)}}function $v(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Np),t;default:throw Error(s(435,e.tag))}}function kr(e,t){var n=$v(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Wv.bind(null,e,l);l.then(o,o)}})}function Yn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],c=e,p=t,E=p;e:for(;E!==null;){switch(E.tag){case 27:if(xi(E.type)){jt=E.stateNode,Fn=!1;break e}break;case 5:jt=E.stateNode,Fn=!1;break e;case 3:case 4:jt=E.stateNode.containerInfo,Fn=!0;break e}E=E.return}if(jt===null)throw Error(s(160));Ap(c,p,o),jt=null,Fn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Op(t,e),t=t.sibling}var va=null;function Op(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yn(t,e),Pn(e),l&4&&(vi(3,e,e.return),ms(3,e),vi(5,e,e.return));break;case 1:Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&64&&Va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=va;if(Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ra]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),wn(c,l,n),c[wt]=e,ut(c),l=c;break e;case"link":var p=Om("link","href",o).get(l+(n.href||""));if(p){for(var E=0;E<p.length;E++)if(c=p[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)){p.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;case"meta":if(p=Om("meta","content",o).get(l+(n.content||""))){for(E=0;E<p.length;E++)if(c=p[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)){p.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[wt]=e,ut(c),l=c}e.stateNode=l}else Cm(o,e.type,e.stateNode);else e.stateNode=km(o,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Cm(o,e.type,e.stateNode):km(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),n!==null&&l&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{J(o,"")}catch(Re){_t(e,e.return,Re)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Uc(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Hc=!0);break;case 6:if(Yn(t,e),Pn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(Re){_t(e,e.return,Re)}}break;case 3:if(Yr=null,o=va,va=$r(t.containerInfo),Yn(t,e),va=o,Pn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(Re){_t(e,e.return,Re)}Hc&&(Hc=!1,Cp(e));break;case 4:l=va,va=$r(e.stateNode.containerInfo),Yn(t,e),Pn(e),va=l;break;case 12:Yn(t,e),Pn(e);break;case 31:Yn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 13:Yn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cr=je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,K=Va,ie=an;if(Va=K||o,an=ie||O,Yn(t,e),an=ie,Va=K,Pn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Va||an||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)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{E=O.stateNode;var ce=O.memoizedProps.style,Z=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===18){if(n===null){O=t;try{var V=O.stateNode;o?Em(V,!0):Em(O.stateNode,!1)}catch(Re){_t(O,O.return,Re)}}}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}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,kr(e,n))));break;case 19:Yn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 30:break;case 21:break;default:Yn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Sp(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Bc(e);Rr(e,c,o);break;case 5:var p=n.stateNode;n.flags&32&&(J(p,""),n.flags&=-33);var E=Bc(e);Rr(e,E,p);break;case 3:case 4:var O=n.stateNode.containerInfo,K=Bc(e);Ic(e,K,O);break;default:throw Error(s(161))}}catch(ie){_t(e,e.return,ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tp(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:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ep(t,t.return,n),Vi(t);break;case 27:Ts(t.stateNode);case 26:case 5:Oa(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 Ja(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(o,c,n),ms(4,c);break;case 1:if(Ja(o,c,n),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(K){_t(l,l.return,K)}if(l=c,o=l.updateQueue,o!==null){var E=l.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)oh(O[o],E)}catch(K){_t(l,l.return,K)}}n&&p&64&&vp(c),gs(c,c.return);break;case 27:wp(c);case 26:case 5:Ja(o,c,n),n&&l===null&&p&4&&_p(c),gs(c,c.return);break;case 12:Ja(o,c,n);break;case 31:Ja(o,c,n),n&&p&4&&Rp(o,c);break;case 13:Ja(o,c,n),n&&p&4&&kp(o,c);break;case 22:c.memoizedState===null&&Ja(o,c,n),gs(c,c.return);break;case 30:break;default:Ja(o,c,n)}t=t.sibling}}function qc(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&&ns(n))}function Gc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e))}function Ea(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mp(e,t,n,l),t=t.sibling}function Mp(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ea(e,t,n,l),o&2048&&ms(9,t);break;case 1:Ea(e,t,n,l);break;case 3:Ea(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e)));break;case 12:if(o&2048){Ea(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,E=c.onPostCommit;typeof E=="function"&&E(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){_t(t,t.return,O)}}else Ea(e,t,n,l);break;case 31:Ea(e,t,n,l);break;case 13:Ea(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Ea(e,t,n,l):bs(e,t):c._visibility&2?Ea(e,t,n,l):(c._visibility|=2,wl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qc(p,t);break;case 24:Ea(e,t,n,l),o&2048&&Gc(t.alternate,t);break;default:Ea(e,t,n,l)}}function wl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,E=n,O=l,K=p.flags;switch(p.tag){case 0:case 11:case 15:wl(c,p,E,O,o),ms(8,p);break;case 23:break;case 22:var ie=p.stateNode;p.memoizedState!==null?ie._visibility&2?wl(c,p,E,O,o):bs(c,p):(ie._visibility|=2,wl(c,p,E,O,o)),o&&K&2048&&qc(p.alternate,p);break;case 24:wl(c,p,E,O,o),o&&K&2048&&Gc(p.alternate,p);break;default:wl(c,p,E,O,o)}t=t.sibling}}function bs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:bs(n,l),o&2048&&qc(l.alternate,l);break;case 24:bs(n,l),o&2048&&Gc(l.alternate,l);break;default:bs(n,l)}t=t.sibling}}var ys=8192;function Nl(e,t,n){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Dp(e,t,n),e=e.sibling}function Dp(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&ys&&e.memoizedState!==null&&kE(n,va,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var l=va;va=$r(e.stateNode.containerInfo),Nl(e,t,n),va=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ys,ys=16777216,Nl(e,t,n),ys=l):Nl(e,t,n));break;default:Nl(e,t,n)}}function Lp(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 vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zp(e),e=e.sibling}function zp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&vi(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):vs(e);break;default:vs(e)}}function Or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),Or(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function jp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ns(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,mn=l;else e:for(n=e;mn!==null;){l=mn;var o=l.sibling,c=l.return;if(xp(l),l===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var Fv={getCacheForType:function(e){var t=_n(en),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _n(en).controller.signal}},Yv=typeof WeakMap=="function"?WeakMap:Map,bt=0,kt=null,at=null,st=0,Et=0,ta=null,Ei=!1,Tl=!1,$c=!1,ei=0,Ft=0,_i=0,Qi=0,Fc=0,na=0,xl=0,Es=null,Kn=null,Yc=!1,Cr=0,Up=0,Mr=1/0,Dr=null,Si=null,fn=0,wi=null,Al=null,ti=0,Pc=0,Kc=null,Bp=null,_s=0,Zc=null;function aa(){return(bt&2)!==0&&st!==0?st&-st:M.T!==null?eu():sa()}function Ip(){if(na===0)if((st&536870912)===0||ot){var e=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),na=e}else na=536870912;return e=Jn.current,e!==null&&(e.flags|=32),na}function Zn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Ni(e,st,na,!1)),et(e,n),((bt&2)===0||e!==kt)&&(e===kt&&((bt&2)===0&&(Qi|=n),Ft===4&&Ni(e,st,na,!1)),Ca(e))}function Hp(e,t,n){if((bt&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||te(e,t),o=l?Zv(e,t):Vc(e,t,!0),c=l;do{if(o===0){Tl&&!l&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Pv(n)){o=Vc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var E=e;o=Es;var O=E.current.memoizedState.isDehydrated;if(O&&(Rl(E,p).flags|=256),p=Vc(E,p,!1),p!==2){if($c&&!O){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Kn,Kn=o,c!==null&&(Kn===null?Kn=c:Kn.push.apply(Kn,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Rl(e,0),Ni(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(l,t,na,!Ei);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Cr+300-je(),10<o)){if(Ni(l,t,na,!Ei),k(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=bm(qp.bind(null,l,n,Kn,Dr,Yc,t,na,Qi,xl,Ei,c,"Throttled",-0,0),o);break e}qp(l,n,Kn,Dr,Yc,t,na,Qi,xl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function qp(e,t,n,l,o,c,p,E,O,K,ie,ce,Z,V){if(e.timeoutHandle=-1,ce=t.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:he},Dp(t,c,ce);var Re=(c&62914560)===c?Cr-je():(c&4194048)===c?Up-je():0;if(Re=OE(ce,Re),Re!==null){ti=c,e.cancelPendingCommit=Re(Xp.bind(null,e,t,c,n,l,o,p,E,O,ie,ce,null,Z,V)),Ni(e,c,p,!K);return}}Xp(e,t,c,n,l,o,p,E,O)}function Pv(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 l=0;l<n.length;l++){var o=n[l],c=o.getSnapshot;o=o.value;try{if(!Qn(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,l){t&=~Fc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-qt(o),p=1<<c;l[c]=-1,o&=~p}n!==0&&Se(e,n,t)}function Lr(){return(bt&6)===0?(Ss(0),!1):!0}function Xc(){if(at!==null){if(Et===0)var e=at.return;else e=at,Fa=Gi=null,dc(e),yl=null,is=0,e=at;for(;e!==null;)yp(e.alternate,e),e=e.return;at=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,fE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ti=0,Xc(),kt=e,at=n=Ga(e.current,null),st=t,Et=0,ta=null,Ei=!1,Tl=te(e,t),$c=!1,xl=na=Fc=Qi=_i=Ft=0,Kn=Es=null,Yc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-qt(l),c=1<<o;t|=e[o],l&=~c}return ei=t,tr(),n}function Gp(e,t){Pe=null,M.H=fs,t===bl||t===cr?(t=ih(),Et=3):t===Jo?(t=ih(),Et=4):Et=t===Ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ta=t,at===null&&(Ft=1,wr(e,ua(t,e.current)))}function $p(){var e=Jn.current;return e===null?!0:(st&4194048)===st?pa===null:(st&62914560)===st||(st&536870912)!==0?e===pa:!1}function Fp(){var e=M.H;return M.H=fs,e===null?fs:e}function Yp(){var e=M.A;return M.A=Fv,e}function zr(){Ft=4,Ei||(st&4194048)!==st&&Jn.current!==null||(Tl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,st,na,!1)}function Vc(e,t,n){var l=bt;bt|=2;var o=Fp(),c=Yp();(kt!==e||st!==t)&&(Dr=null,Rl(e,t)),t=!1;var p=Ft;e:do try{if(Et!==0&&at!==null){var E=at,O=ta;switch(Et){case 8:Xc(),p=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(t=!0);var K=Et;if(Et=0,ta=null,kl(e,E,O,K),n&&Tl){p=0;break e}break;default:K=Et,Et=0,ta=null,kl(e,E,O,K)}}Kv(),p=Ft;break}catch(ie){Gp(e,ie)}while(!0);return t&&e.shellSuspendCounter++,Fa=Gi=null,bt=l,M.H=o,M.A=c,at===null&&(kt=null,st=0,tr()),p}function Kv(){for(;at!==null;)Pp(at)}function Zv(e,t){var n=bt;bt|=2;var l=Fp(),o=Yp();kt!==e||st!==t?(Dr=null,Mr=je()+500,Rl(e,t)):Tl=te(e,t);e:do try{if(Et!==0&&at!==null){t=at;var c=ta;t:switch(Et){case 1:Et=0,ta=null,kl(e,t,c,1);break;case 2:case 9:if(nh(c)){Et=0,ta=null,Kp(t);break}t=function(){Et!==2&&Et!==9||kt!==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:nh(c)?(Et=0,ta=null,Kp(t)):(Et=0,ta=null,kl(e,t,c,7));break;case 5:var p=null;switch(at.tag){case 26:p=at.memoizedState;case 5:case 27:var E=at;if(p?Mm(p):E.stateNode.complete){Et=0,ta=null;var O=E.sibling;if(O!==null)at=O;else{var K=E.return;K!==null?(at=K,jr(K)):at=null}break t}}Et=0,ta=null,kl(e,t,c,5);break;case 6:Et=0,ta=null,kl(e,t,c,6);break;case 8:Xc(),Ft=6;break e;default:throw Error(s(462))}}Xv();break}catch(ie){Gp(e,ie)}while(!0);return Fa=Gi=null,M.H=l,M.A=o,bt=n,at!==null?0:(kt=null,st=0,tr(),Ft)}function Xv(){for(;at!==null&&!yn();)Pp(at)}function Pp(e){var t=gp(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function Kp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=up(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=up(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:dc(t);default:yp(n,t),t=at=Yf(t,ei),t=gp(n,t,ei)}e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function kl(e,t,n,l){Fa=Gi=null,dc(t),yl=null,is=0;var o=t.return;try{if(Uv(e,o,t,n,st)){Ft=1,wr(e,ua(n,e.current)),at=null;return}}catch(c){if(o!==null)throw at=o,c;Ft=1,wr(e,ua(n,e.current)),at=null;return}t.flags&32768?(ot||l===1?e=!0:Tl||(st&536870912)!==0?e=!1:(Ei=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zp(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){Zp(t,Ei);return}e=t.return;var n=Hv(t.alternate,t,ei);if(n!==null){at=n;return}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);Ft===0&&(Ft=5)}function Zp(e,t){do{var n=qv(e.alternate,e);if(n!==null){n.flags&=32767,at=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){at=e;return}at=e=n}while(e!==null);Ft=6,at=null}function Xp(e,t,n,l,o,c,p,E,O){e.cancelPendingCommit=null;do Ur();while(fn!==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|=Bo,Ae(e,n,c,p,E,O),e===kt&&(at=kt=null,st=0),Al=t,wi=e,ti=n,Pc=c,Kc=o,Bp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jv(xn,function(){return em(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=Q.p,Q.p=2,p=bt,bt|=4;try{Gv(e,t,n)}finally{bt=p,Q.p=o,M.T=l}}fn=1,Vp(),Qp(),Wp()}}function Vp(){if(fn===1){fn=0;var e=wi,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Op(t,e);var c=ou,p=jf(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(p!==E&&E&&E.ownerDocument&&zf(E.ownerDocument.documentElement,E)){if(O!==null&&Do(E)){var K=O.start,ie=O.end;if(ie===void 0&&(ie=K),"selectionStart"in E)E.selectionStart=K,E.selectionEnd=Math.min(ie,E.value.length);else{var ce=E.ownerDocument||document,Z=ce&&ce.defaultView||window;if(Z.getSelection){var V=Z.getSelection(),Re=E.textContent.length,Be=Math.min(O.start,Re),xt=O.end===void 0?Be:Math.min(O.end,Re);!V.extend&&Be>xt&&(p=xt,xt=Be,Be=p);var q=Lf(E,Be),D=Lf(E,xt);if(q&&D&&(V.rangeCount!==1||V.anchorNode!==q.node||V.anchorOffset!==q.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var P=ce.createRange();P.setStart(q.node,q.offset),V.removeAllRanges(),Be>xt?(V.addRange(P),V.extend(D.node,D.offset)):(P.setEnd(D.node,D.offset),V.addRange(P))}}}}for(ce=[],V=E;V=V.parentNode;)V.nodeType===1&&ce.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ce.length;E++){var re=ce[E];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Xr=!!ru,ou=ru=null}finally{bt=o,Q.p=l,M.T=n}}e.current=t,fn=2}}function Qp(){if(fn===2){fn=0;var e=wi,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Tp(e,t.alternate,t)}finally{bt=o,Q.p=l,M.T=n}}fn=3}}function Wp(){if(fn===4||fn===3){fn=0,Yt();var e=wi,t=Al,n=ti,l=Bp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Al=wi=null,Jp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),qn(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var E=l[p];c(E.value,{componentStack:E.stack})}}finally{M.T=t,Q.p=o}}(ti&3)!==0&&Ur(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Zc?_s++:(_s=0,Zc=e):_s=0,Ss(0)}}function Jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ns(t)))}function Ur(){return Vp(),Qp(),Wp(),em()}function em(){if(fn!==5)return!1;var e=wi,t=Pc;Pc=0;var n=qn(ti),l=M.T,o=Q.p;try{Q.p=32>n?32:n,M.T=null,n=Kc,Kc=null;var c=wi,p=ti;if(fn=0,Al=wi=null,ti=0,(bt&6)!==0)throw Error(s(331));var E=bt;if(bt|=4,zp(c.current),Mp(c,c.current,p,n),bt=E,Ss(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(cn,c)}catch{}return!0}finally{Q.p=o,M.T=l,Jp(e,t)}}function tm(e,t,n){t=ua(n,t),t=xc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(et(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)tm(e,e,n);else for(;t!==null;){if(t.tag===3){tm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Si===null||!Si.has(l))){e=ua(n,e),n=np(2),l=gi(t,n,2),l!==null&&(ap(n,l,t,e),et(l,2),Ca(l));break}}t=t.return}}function Qc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Yv;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||($c=!0,o.add(n),e=Vv.bind(null,e,t,n),t.then(e,e))}function Vv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(st&n)===n&&(Ft===4||Ft===3&&(st&62914560)===st&&300>je()-Cr?(bt&2)===0&&Rl(e,0):Fc|=n,xl===st&&(xl=0)),Ca(e)}function nm(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(et(e,t),Ca(e))}function Qv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function Wv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),nm(e,n)}function Jv(e,t){return Rt(e,t)}var Br=null,Ol=null,Wc=!1,Ir=!1,Jc=!1,Ti=0;function Ca(e){e!==Ol&&e.next===null&&(Ol===null?Br=Ol=e:Ol=Ol.next=e),Ir=!0,Wc||(Wc=!0,tE())}function Ss(e,t){if(!Jc&&Ir){Jc=!0;do for(var n=!1,l=Br;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,E=l.pingedLanes;c=(1<<31-qt(42|e)+1)-1,c&=o&~(p&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,sm(l,c))}else c=st,c=k(l,l===kt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||te(l,c)||(n=!0,sm(l,c));l=l.next}while(n);Jc=!1}}function eE(){am()}function am(){Ir=Wc=!1;var e=0;Ti!==0&&dE()&&(e=Ti);for(var t=je(),n=null,l=Br;l!==null;){var o=l.next,c=im(l,t);c===0?(l.next=null,n===null?Br=o:n.next=o,o===null&&(Ol=n)):(n=l,(e!==0||(c&3)!==0)&&(Ir=!0)),l=o}fn!==0&&fn!==5||Ss(e),Ti!==0&&(Ti=0)}function im(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-qt(c),E=1<<p,O=o[p];O===-1?((E&n)===0||(E&l)!==0)&&(o[p]=ye(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=st,n=k(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&on(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||te(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&on(l),qn(n)){case 2:case 8:n=Ot;break;case 32:n=xn;break;case 268435456:n=An;break;default:n=xn}return l=lm.bind(null,e),n=Rt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&on(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var l=st;return l=k(e,e===kt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hp(e,l,t),im(e,je()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function sm(e,t){if(Ur())return null;Hp(e,t,!0)}function tE(){hE(function(){(bt&6)!==0?Rt(vt,eE):am()})}function eu(){if(Ti===0){var e=ml;e===0&&(e=qe,qe<<=1,(qe&261888)===0&&(qe=256)),Ti=e}return Ti}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nt(""+e)}function om(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 nE(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var c=rm((o[Kt]||null).action),p=l.submitter;p&&(t=(t=p[Kt]||null)?rm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var E=new Qs("action","action",null,l,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ti!==0){var O=p?om(o,p):new FormData(o);Ec(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=p?om(o,p):new FormData(o),Ec(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var tu=0;tu<Uo.length;tu++){var nu=Uo[tu],aE=nu.toLowerCase(),iE=nu[0].toUpperCase()+nu.slice(1);ya(aE,"on"+iE)}ya(If,"onAnimationEnd"),ya(Hf,"onAnimationIteration"),ya(qf,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(Ev,"onTransitionRun"),ya(_v,"onTransitionStart"),ya(Sv,"onTransitionCancel"),ya(Gf,"onTransitionEnd"),Y("onMouseEnter",["mouseout","mouseover"]),Y("onMouseLeave",["mouseout","mouseover"]),Y("onPointerEnter",["pointerout","pointerover"]),Y("onPointerLeave",["pointerout","pointerover"]),Ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),lE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function cm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var E=l[p],O=E.instance,K=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=O}else for(p=0;p<l.length;p++){if(E=l[p],O=E.instance,K=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=O}}}}function it(e,t){var n=t[vn];n===void 0&&(n=t[vn]=new Set);var l=e+"__bubble";n.has(l)||(um(t,e,2,!1),n.add(l))}function au(e,t,n){var l=0;t&&(l|=4),um(n,e,l,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function iu(e){if(!e[Hr]){e[Hr]=!0,F.forEach(function(n){n!=="selectionchange"&&(lE.has(n)||au(n,!1,e),au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,au("selectionchange",!1,t))}}function um(e,t,n,l){switch(Im(t)){case 2:var o=DE;break;case 8:o=LE;break;default:o=vu}n=o.bind(null,t,n,e),o=void 0,!No||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?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 lu(e,t,n,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var E=l.stateNode.containerInfo;if(E===o)break;if(p===4)for(p=l.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;E!==null;){if(p=Wt(E),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){l=c=p;continue e}E=E.parentNode}}l=l.return}Ks(function(){var K=c,ie=Me(n),ce=[];e:{var Z=$f.get(e);if(Z!==void 0){var V=Qs,Re=e;switch(e){case"keypress":if(Xs(n)===0)break e;case"keydown":case"keyup":V=Wy;break;case"focusin":Re="focus",V=Ro;break;case"focusout":Re="blur",V=Ro;break;case"beforeblur":case"afterblur":V=Ro;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=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Hy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=tv;break;case If:case Hf:case qf:V=$y;break;case Gf:V=av;break;case"scroll":case"scrollend":V=By;break;case"wheel":V=lv;break;case"copy":case"cut":case"paste":V=Yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ef;break;case"toggle":case"beforetoggle":V=rv}var Be=(t&4)!==0,xt=!Be&&(e==="scroll"||e==="scrollend"),q=Be?Z!==null?Z+"Capture":null:Z;Be=[];for(var D=K,P;D!==null;){var re=D;if(P=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||P===null||q===null||(re=Yl(D,q),re!=null&&Be.push(Ns(D,re,P))),xt)break;D=D.return}0<Be.length&&(Z=new V(Z,Re,null,n,ie),ce.push({event:Z,listeners:Be}))}}if((t&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Z&&n!==_e&&(Re=n.relatedTarget||n.fromElement)&&(Wt(Re)||Re[tt]))break e;if((V||Z)&&(Z=ie.window===ie?ie:(Z=ie.ownerDocument)?Z.defaultView||Z.parentWindow:window,V?(Re=n.relatedTarget||n.toElement,V=K,Re=Re?Wt(Re):null,Re!==null&&(xt=f(Re),Be=Re.tag,Re!==xt||Be!==5&&Be!==27&&Be!==6)&&(Re=null)):(V=null,Re=K),V!==Re)){if(Be=yf,re="onMouseLeave",q="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Be=Ef,re="onPointerLeave",q="onPointerEnter",D="pointer"),xt=V==null?Z:Xn(V),P=Re==null?Z:Xn(Re),Z=new Be(re,D+"leave",V,n,ie),Z.target=xt,Z.relatedTarget=P,re=null,Wt(ie)===K&&(Be=new Be(q,D+"enter",Re,n,ie),Be.target=P,Be.relatedTarget=xt,re=Be),xt=re,V&&Re)t:{for(Be=sE,q=V,D=Re,P=0,re=q;re;re=Be(re))P++;re=0;for(var Le=D;Le;Le=Be(Le))re++;for(;0<P-re;)q=Be(q),P--;for(;0<re-P;)D=Be(D),re--;for(;P--;){if(q===D||D!==null&&q===D.alternate){Be=q;break t}q=Be(q),D=Be(D)}Be=null}else Be=null;V!==null&&dm(ce,Z,V,Be,!1),Re!==null&&xt!==null&&dm(ce,xt,Re,Be,!0)}}e:{if(Z=K?Xn(K):window,V=Z.nodeName&&Z.nodeName.toLowerCase(),V==="select"||V==="input"&&Z.type==="file")var ht=Rf;else if(xf(Z))if(kf)ht=bv;else{ht=mv;var Oe=pv}else V=Z.nodeName,!V||V.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?K&&xe(K.elementType)&&(ht=Rf):ht=gv;if(ht&&(ht=ht(e,K))){Af(ce,ht,n,ie);break e}Oe&&Oe(e,Z,K),e==="focusout"&&K&&Z.type==="number"&&K.memoizedProps.value!=null&&oi(Z,"number",Z.value)}switch(Oe=K?Xn(K):window,e){case"focusin":(xf(Oe)||Oe.contentEditable==="true")&&(rl=Oe,Lo=K,Jl=null);break;case"focusout":Jl=Lo=rl=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,Uf(ce,n,ie);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":Uf(ce,n,ie)}var Ze;if(Oo)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 sl?Nf(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(_f&&n.locale!=="ko"&&(sl||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&sl&&(Ze=gf()):(ci=ie,To="value"in ci?ci.value:ci.textContent,sl=!0)),Oe=qr(K,rt),0<Oe.length&&(rt=new vf(rt,e,null,n,ie),ce.push({event:rt,listeners:Oe}),Ze?rt.data=Ze:(Ze=Tf(n),Ze!==null&&(rt.data=Ze)))),(Ze=cv?uv(e,n):dv(e,n))&&(rt=qr(K,"onBeforeInput"),0<rt.length&&(Oe=new vf("onBeforeInput","beforeinput",null,n,ie),ce.push({event:Oe,listeners:rt}),Oe.data=Ze)),nE(ce,e,K,n,ie)}cm(ce,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Yl(e,n),o!=null&&l.unshift(Ns(e,o,c)),o=Yl(e,t),o!=null&&l.push(Ns(e,o,c))),e.tag===3)return l;e=e.return}return[]}function sE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,n,l,o){for(var c=t._reactName,p=[];n!==null&&n!==l;){var E=n,O=E.alternate,K=E.stateNode;if(E=E.tag,O!==null&&O===l)break;E!==5&&E!==26&&E!==27||K===null||(O=K,o?(K=Yl(n,c),K!=null&&p.unshift(Ns(n,K,O))):o||(K=Yl(n,c),K!=null&&p.push(Ns(n,K,O)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var rE=/\r\n?/g,oE=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(rE,`
49
- `).replace(oE,"")}function hm(e,t){return t=fm(t),fm(e)===t}function Tt(e,t,n,l,o,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||J(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&J(e,""+l);break;case"className":Bt(e,"class",l);break;case"tabIndex":Bt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bt(e,n,l);break;case"style":ne(e,l,c);break;case"data":if(t!=="object"){Bt(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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"&&Tt(e,t,"name",o.name,o,null),Tt(e,t,"formEncType",o.formEncType,o,null),Tt(e,t,"formMethod",o.formMethod,o,null),Tt(e,t,"formTarget",o.formTarget,o,null)):(Tt(e,t,"encType",o.encType,o,null),Tt(e,t,"method",o.method,o,null),Tt(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=he);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=nt(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":it("beforetoggle",e),it("toggle",e),gt(e,"popover",l);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ke.get(n)||n,gt(e,n,l))}}function su(e,t,n,l,o,c){switch(n){case"style":ne(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?J(e,l):(typeof l=="number"||typeof l=="bigint")&&J(e,""+l);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"onClick":l!=null&&(e.onclick=he);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!de.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[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):gt(e,n,l)}}}function wn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var l=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Tt(e,t,c,p,n,null)}}o&&Tt(e,t,"srcSet",n.srcSet,n,null),l&&Tt(e,t,"src",n.src,n,null);return;case"input":it("invalid",e);var E=c=p=o=null,O=null,K=null;for(l in n)if(n.hasOwnProperty(l)){var ie=n[l];if(ie!=null)switch(l){case"name":o=ie;break;case"type":p=ie;break;case"checked":O=ie;break;case"defaultChecked":K=ie;break;case"value":c=ie;break;case"defaultValue":E=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(s(137,t));break;default:Tt(e,t,l,ie,n,null)}}Ia(e,c,E,O,K,p,o,!1);return;case"select":it("invalid",e),l=p=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":p=E;break;case"multiple":l=E;default:Tt(e,t,o,E,n,null)}t=c,n=p,e.multiple=!!l,t!=null?Jt(e,!!l,t,!1):n!=null&&Jt(e,!!l,n,!0);return;case"textarea":it("invalid",e),c=o=l=null;for(p in n)if(n.hasOwnProperty(p)&&(E=n[p],E!=null))switch(p){case"value":l=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Tt(e,t,p,E,n,null)}Aa(e,l,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Tt(e,t,O,l,n,null)}return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(l=0;l<ws.length;l++)it(ws[l],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("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(K in n)if(n.hasOwnProperty(K)&&(l=n[K],l!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Tt(e,t,K,l,n,null)}return;default:if(xe(t)){for(ie in n)n.hasOwnProperty(ie)&&(l=n[ie],l!==void 0&&su(e,t,ie,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&Tt(e,t,E,l,n,null))}function cE(e,t,n,l){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,p=null,E=null,O=null,K=null,ie=null;for(V in n){var ce=n[V];if(n.hasOwnProperty(V)&&ce!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=ce;default:l.hasOwnProperty(V)||Tt(e,t,V,null,l,ce)}}for(var Z in l){var V=l[Z];if(ce=n[Z],l.hasOwnProperty(Z)&&(V!=null||ce!=null))switch(Z){case"type":c=V;break;case"name":o=V;break;case"checked":K=V;break;case"defaultChecked":ie=V;break;case"value":p=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==ce&&Tt(e,t,Z,V,l,ce)}}ri(e,p,E,O,K,ie,c,o);return;case"select":V=p=E=Z=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":V=O;default:l.hasOwnProperty(c)||Tt(e,t,c,null,l,O)}for(o in l)if(c=l[o],O=n[o],l.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":Z=c;break;case"defaultValue":E=c;break;case"multiple":p=c;default:c!==O&&Tt(e,t,o,c,l,O)}t=E,n=p,l=V,Z!=null?Jt(e,!!n,Z,!1):!!l!=!!n&&(t!=null?Jt(e,!!n,t,!0):Jt(e,!!n,n?[]:"",!1));return;case"textarea":V=Z=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Tt(e,t,E,null,l,o)}for(p in l)if(o=l[p],c=n[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":Z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Tt(e,t,p,o,l,c)}Ha(e,Z,V);return;case"option":for(var Re in n)if(Z=n[Re],n.hasOwnProperty(Re)&&Z!=null&&!l.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:Tt(e,t,Re,null,l,Z)}for(O in l)if(Z=l[O],V=n[O],l.hasOwnProperty(O)&&Z!==V&&(Z!=null||V!=null))switch(O){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Tt(e,t,O,Z,l,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)Z=n[Be],n.hasOwnProperty(Be)&&Z!=null&&!l.hasOwnProperty(Be)&&Tt(e,t,Be,null,l,Z);for(K in l)if(Z=l[K],V=n[K],l.hasOwnProperty(K)&&Z!==V&&(Z!=null||V!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,t));break;default:Tt(e,t,K,Z,l,V)}return;default:if(xe(t)){for(var xt in n)Z=n[xt],n.hasOwnProperty(xt)&&Z!==void 0&&!l.hasOwnProperty(xt)&&su(e,t,xt,void 0,l,Z);for(ie in l)Z=l[ie],V=n[ie],!l.hasOwnProperty(ie)||Z===V||Z===void 0&&V===void 0||su(e,t,ie,Z,l,V);return}}for(var q in n)Z=n[q],n.hasOwnProperty(q)&&Z!=null&&!l.hasOwnProperty(q)&&Tt(e,t,q,null,l,Z);for(ce in l)Z=l[ce],V=n[ce],!l.hasOwnProperty(ce)||Z===V||Z==null&&V==null||Tt(e,t,ce,Z,l,V)}function pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],c=o.transferSize,p=o.initiatorType,E=o.duration;if(c&&E&&pm(p)){for(p=0,E=o.responseEnd,l+=1;l<n.length;l++){var O=n[l],K=O.startTime;if(K>E)break;var ie=O.transferSize,ce=O.initiatorType;ie&&pm(ce)&&(O=O.responseEnd,p+=ie*(O<E?1:(E-K)/(O-K)))}if(--l,t+=8*(c+p)/(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 ru=null,ou=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 gm(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 cu(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 uu=null;function dE(){var e=window.event;return e&&e.type==="popstate"?e===uu?!1:(uu=e,!0):(uu=null,!1)}var bm=typeof setTimeout=="function"?setTimeout:void 0,fE=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,hE=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(pE)}:bm;function pE(e){setTimeout(function(){throw e})}function xi(e){return e==="head"}function vm(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),Ll(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var p=c.nextSibling,E=c.nodeName;c[ra]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Ll(t)}function Em(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function du(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":du(n),xa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function mE(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ra])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=ma(e.nextSibling),e===null)break}return null}function gE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function _m(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function fu(e){return e.data==="$?"||e.data==="$~"}function hu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ma(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 pu=null;function Sm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wm(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 Nm(e,t,n){switch(t=Gr(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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xa(e)}var ga=new Map,Tm=new Set;function $r(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=Q.d;Q.d={f:yE,r:vE,D:EE,C:_E,L:SE,m:wE,X:TE,S:NE,M:xE};function yE(){var e=ni.f(),t=Lr();return e||t}function vE(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?Gh(t):ni.r(e)}var Cl=typeof document>"u"?null:document;function xm(e,t,n){var l=Cl;if(l&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Tm.has(o)||(Tm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function EE(e){ni.D(e),xm("dns-prefetch",e,null)}function _E(e,t){ni.C(e,t),xm("preconnect",e,t)}function SE(e,t,n){ni.L(e,t,n);var l=Cl;if(l&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ml(e);break;case"script":c=Dl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(xs(c))||t==="script"&&l.querySelector(As(c))||(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function wE(e,t){ni.m(e,t);var n=Cl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(l)+'"][href="'+On(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Dl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(As(c)))return}l=n.createElement("link"),wn(l,"link",e),ut(l),n.head.appendChild(l)}}}function NE(e,t,n){ni.S(e,t,n);var l=Cl;if(l&&e){var o=Vn(l).hoistableStyles,c=Ml(e);t=t||"default";var p=o.get(c);if(!p){var E={loading:0,preload:null};if(p=l.querySelector(xs(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&mu(e,n);var O=p=l.createElement("link");ut(O),wn(O,"link",e),O._p=new Promise(function(K,ie){O.onload=K,O.onerror=ie}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Fr(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:E},o.set(c,p)}}}function TE(e,t){ni.X(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function xE(e,t){ni.M(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Am(e,t,n,l){var o=(o=ve.current)?$r(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=Ml(n.href),n=Vn(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var c=Vn(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(xs(e)))&&!c._p&&(p.instance=c,p.state.loading=5),ga.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},ga.set(e,n),c||AE(o,e,n,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==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=Dl(n),n=Vn(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ml(e){return'href="'+On(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function Rm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function AE(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),wn(t,"link",n),ut(t),e.head.appendChild(t))}function Dl(e){return'[src="'+On(e)+'"]'}function As(e){return"script[async]"+e}function km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(l)return t.instance=l,ut(l),l;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ut(l),wn(l,"style",o),Fr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ml(n.href);var c=e.querySelector(xs(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;l=Rm(n),(o=ga.get(o))&&mu(l,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var p=c;return p._p=new Promise(function(E,O){p.onload=E,p.onerror=O}),wn(c,"link",l),t.state.loading|=4,Fr(c,n.precedence,e),t.instance=c;case"script":return c=Dl(n.src),(o=e.querySelector(As(c)))?(t.instance=o,ut(o),o):(l=n,(o=ga.get(c))&&(l=v({},n),gu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),wn(o,"link",l),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&&(l=t.instance,t.state.loading|=4,Fr(l,n.precedence,e));return t.instance}function Fr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var E=l[p];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 mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function Om(e,t,n){if(Yr===null){var l=new Map,o=Yr=new Map;o.set(n,l)}else o=Yr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ra]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var E=l.get(p);E?E.push(c):l.set(p,[c])}}return l}function Cm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function RE(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 Mm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kE(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ml(l.href),c=t.querySelector(xs(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ut(c);return}c=t.ownerDocument||t,l=Rm(l),(o=ga.get(o))&&mu(l,o),c=c.createElement("link"),ut(c);var p=c;p._p=new Promise(function(E,O){p.onload=E,p.onerror=O}),wn(c,"link",l),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=Pr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bu=0;function OE(e,t){return e.stylesheets&&e.count===0&&Zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*uE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Pr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function Zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(CE,e),Kr=null,Pr.call(e))}function CE(e,t){if(!(t.state.loading&4)){var n=Kr.get(e);if(n)var l=n.get(null);else{n=new Map,Kr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=n.get(p)||l,c===l&&n.set(null,o),n.set(p,o),this.count++,l=Pr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rs={$$typeof:U,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function ME(e,t,n,l,o,c,p,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=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Dm(e,t,n,l,o,c,p,E,O,K,ie,ce){return e=new ME(e,t,n,p,O,K,ie,ce,E),t=1,c===!0&&(t|=24),c=Wn(3,null,null,t),e.current=c,c.stateNode=e,t=Vo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},ec(c),e}function Lm(e){return e?(e=ul,e):ul}function zm(e,t,n,l,o,c){o=Lm(o),l.context===null?l.context=o:l.pendingContext=o,l=mi(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=gi(e,l,t),n!==null&&(Zn(n,e,t),ss(n,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Zn(t,e,67108864),yu(e,67108864)}}function Bm(e){if(e.tag===13||e.tag===31){var t=aa();t=mt(t);var n=Ii(e,t);n!==null&&Zn(n,e,t),yu(e,t)}}var Xr=!0;function DE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=2,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function LE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=8,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function vu(e,t,n,l){if(Xr){var o=Eu(l);if(o===null)lu(e,t,l,Vr,n),Hm(e,l);else if(jE(o,e,t,n,l))l.stopPropagation();else if(Hm(e,l),t&4&&-1<zE.indexOf(e)){for(;o!==null;){var c=Gn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Gt(c.pendingLanes);if(p!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;p;){var O=1<<31-qt(p);E.entanglements[1]|=O,p&=~O}Ca(c),(bt&6)===0&&(Mr=je()+500,Ss(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Zn(E,c,2),Lr(),yu(c,2)}if(c=Eu(l),c===null&&lu(e,t,l,Vr,n),c===o)break;o=c}o!==null&&l.stopPropagation()}else lu(e,t,l,null,n)}}function Eu(e){return e=Me(e),_u(e)}var Vr=null;function _u(e){if(Vr=null,e=Wt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(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 Vr=e,null}function Im(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(Lt()){case vt:return 2;case Ot:return 8;case xn:case zn:return 32;case An:return 268435456;default:return 32}default:return 32}}var Su=!1,Ai=null,Ri=null,ki=null,ks=new Map,Os=new Map,Oi=[],zE="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 Hm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Cs(e,t,n,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Gn(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function jE(e,t,n,l,o){switch(t){case"focusin":return Ai=Cs(Ai,e,t,n,l,o),!0;case"dragenter":return Ri=Cs(Ri,e,t,n,l,o),!0;case"mouseover":return ki=Cs(ki,e,t,n,l,o),!0;case"pointerover":var c=o.pointerId;return ks.set(c,Cs(ks.get(c)||null,e,t,n,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Os.set(c,Cs(Os.get(c)||null,e,t,n,l,o)),!0}return!1}function qm(e){var t=Wt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(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 Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);_e=l,n.target.dispatchEvent(l),_e=null}else return t=Gn(n),t!==null&&Um(t),e.blockedOn=n,!1;t.shift()}return!0}function Gm(e,t,n){Qr(e)&&n.delete(t)}function UE(){Su=!1,Ai!==null&&Qr(Ai)&&(Ai=null),Ri!==null&&Qr(Ri)&&(Ri=null),ki!==null&&Qr(ki)&&(ki=null),ks.forEach(Gm),Os.forEach(Gm)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,UE)))}var Jr=null;function $m(e){Jr!==e&&(Jr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Jr===e&&(Jr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(_u(l||n)===null)continue;break}var c=Gn(n);c!==null&&(e.splice(t,3),t-=3,Ec(c,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function Ll(e){function t(O){return Wr(O,e)}Ai!==null&&Wr(Ai,e),Ri!==null&&Wr(Ri,e),ki!==null&&Wr(ki,e),ks.forEach(t),Os.forEach(t);for(var n=0;n<Oi.length;n++){var l=Oi[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)qm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],c=n[l+1],p=o[Kt]||null;if(typeof c=="function")p||$m(n);else if(p){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Kt]||null)E=p.formAction;else if(_u(o)!==null)continue}else E=p.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),$m(n)}}}function Fm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!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 l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wu(e){this._internalRoot=e}eo.prototype.render=wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=aa();zm(n,l,e,t,null,null)},eo.prototype.unmount=wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),Lr(),t[tt]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=sa();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&&qm(e)}};var Ym=a.version;if(Ym!=="19.2.8")throw Error(s(527,Ym,"19.2.8"));Q.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 BE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{cn=to.inject(BE),Ht=to}catch{}}return Ds.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,l="",o=Wh,c=Jh,p=ep;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Dm(e,1,!1,null,null,n,l,null,o,c,p,Fm),e[tt]=t.current,iu(e),new wu(t)},Ds.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var l=!1,o="",c=Wh,p=Jh,E=ep,O=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=Dm(e,1,!0,t,n??null,l,o,O,c,p,E,Fm),t.context=Lm(null),n=t.current,l=aa(),l=mt(l),o=mi(l),o.callback=null,gi(n,o,l),n=l,t.current.lanes=n,et(t,n),Ca(t),e[tt]=t.current,iu(e),new eo(t)},Ds.version="19.2.8",Ds}var tg;function VE(){if(tg)return xu.exports;tg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),xu.exports=XE(),xu.exports}var QE=VE(),ln;(function(i){i.INSERT="insert",i.DELETE="delete",i.CONTEXT="context"})(ln||(ln={}));const WE={LINE_BY_LINE:"line-by-line"},JE={NONE:"none"},e_={WORD:"word"};var Hl;(function(i){i.AUTO="auto",i.DARK="dark",i.LIGHT="light"})(Hl||(Hl={}));const t_=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],n_=RegExp("["+t_.join("\\")+"]","g");function a_(i){return i.replace(n_,"\\$&")}function ng(i){return i&&i.replace(/\\/g,"/")}function i_(i){let a,r,s,u=0;for(a=0,s=i.length;a<s;a++)r=i.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Gb(i){const a=i.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,i[s]);return r}function ag(i,a){const r=i.split(".");return r.length>1?r[r.length-1]:a}function ig(i,a){return a.reduce((r,s)=>r||i.startsWith(s),!1)}const lg=["a/","b/","i/","w/","c/","o/"];function Li(i,a,r){const s=r!==void 0?[...lg,r]:lg,u=a?new RegExp(`^${a_(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(i)||[],h=s.find(g=>f.indexOf(g)===0);return(h?f.slice(h.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function l_(i,a){return Li(i,"---",a)}function s_(i,a){return Li(i,"+++",a)}function r_(i,a={}){const r=[];let s=null,u=null,f=null,h=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,S=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,R=/^copy from "?(.+)"?/,$=/^copy to "?(.+)"?/,U=/^rename from "?(.+)"?/,W=/^rename to "?(.+)"?/,z=/^similarity index (\d+)%/,ae=/^dissimilarity index (\d+)%/,se=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,G=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,ue=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,Ee=/^new file mode (\d{6})/,j=/^deleted file mode (\d{6}),(\d{6})/,le=i.replace(/\/g,"").replace(/\r\n?/g,`
48
+ `+l.stack}}var It=Object.prototype.hasOwnProperty,Rt=i.unstable_scheduleCallback,on=i.unstable_cancelCallback,yn=i.unstable_shouldYield,Yt=i.unstable_requestPaint,je=i.unstable_now,Lt=i.unstable_getCurrentPriorityLevel,vt=i.unstable_ImmediatePriority,Ot=i.unstable_UserBlockingPriority,xn=i.unstable_NormalPriority,zn=i.unstable_LowPriority,An=i.unstable_IdlePriority,jn=i.log,Rn=i.unstable_setDisableYieldValue,cn=null,Ht=null;function kn(e){if(typeof jn=="function"&&Rn(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(cn,e)}catch{}}var qt=Math.clz32?Math.clz32:hn,la=Math.log,un=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(la(e)/un|0)|0}var qe=256,pn=262144,Pt=4194304;function Gt(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 k(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~c,l!==0?o=Gt(l):(p&=E,p!==0?o=Gt(p):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=l&~c,E!==0?o=Gt(E):p!==0?o=Gt(p):n||(n=l&~e,n!==0&&(o=Gt(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 te(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=Pt;return Pt<<=1,(Pt&62914560)===0&&(Pt=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,l,o,c){var p=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,K=e.hiddenUpdates;for(n=p&~n;0<n;){var ie=31-qt(n),ce=1<<ie;E[ie]=0,O[ie]=-1;var Z=K[ie];if(Z!==null)for(K[ie]=null,ie=0;ie<Z.length;ie++){var V=Z[ie];V!==null&&(V.lane&=-536870913)}n&=~ce}l!==0&&Se(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Se(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:mt(n),(n&(e.suspendedLanes|t))!==0?0:n}function mt(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 qn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sa(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Im(e.type))}function Na(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var dn=Math.random().toString(36).slice(2),wt="__reactFiber$"+dn,Kt="__reactProps$"+dn,tt="__reactContainer$"+dn,vn="__reactEvents$"+dn,Ua="__reactListeners$"+dn,ba="__reactHandles$"+dn,Ta="__reactResources$"+dn,ra="__reactMarker$"+dn;function xa(e){delete e[wt],delete e[Kt],delete e[vn],delete e[Ua],delete e[ba]}function Wt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wm(e);e!==null;){if(n=e[wt])return n;e=wm(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){if(e=e[wt]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Vn(e){var t=e[Ta];return t||(t=e[Ta]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[ra]=!0}var F=new Set,de={};function Ne(e,t){Y(e,t),Y(e+"Capture",t)}function Y(e,t){for(de[e]=t,e=0;e<t.length;e++)F.add(t[e])}var ge=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]*$"),Ie={},Ye={};function dt(e){return It.call(Ye,e)?!0:It.call(Ie,e)?!1:ge.test(e)?Ye[e]=!0:(Ie[e]=!0,!1)}function gt(e,t,n){if(dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bt(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 Zt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function il(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=zt(e)?"checked":"value";e._valueTracker=il(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=zt(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ba(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 ll=/[\n"\\]/g;function On(e){return e.replace(ll,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,l,o,c,p,E){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?oi(e,p,ft(t)):n!=null?oi(e,p,ft(n)):l!=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=""+ft(E):e.removeAttribute("name")}function Ia(e,t,n,l,o,c,p,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)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),li(e)}function oi(e,t,n){t==="number"&&Ba(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Jt(e,t,n,l){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&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ha(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(fe(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),li(e)}function J(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 B(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?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 ne(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&B(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function xe(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 ke=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 nt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function he(){}var _e=null;function Me(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 oa(e){var t=Gn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(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="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[Kt]||null;if(!o)throw Error(s(90));ri(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&si(l)}break e;case"textarea":Ha(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var Fl=!1;function Zs(e,t,n){if(Fl)return e(t,n);Fl=!0;try{var l=e(t);return l}finally{if(Fl=!1,(Ve!==null||We!==null)&&(zr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Yl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Kt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=!1;if(qa)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){No=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{No=!1}var ci=null,To=null,Xs=null;function gf(){if(Xs)return Xs;var e,t=To,n=t.length,l,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===o[c-l];l++);return Xs=o.slice(e,1<l?1-l:void 0)}function Vs(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 Qs(){return!0}function bf(){return!1}function $n(e){function t(n,l,o,c,p){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,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)?Qs:bf,this.isPropagationStopped=bf,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=Qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=$n(ji),Kl=v({},ji,{view:0,detail:0}),Iy=$n(Kl),xo,Ao,Zl,Js=v({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==Zl&&(Zl&&e.type==="mousemove"?(xo=e.screenX-Zl.screenX,Ao=e.screenY-Zl.screenY):Ao=xo=0,Zl=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),yf=$n(Js),Hy=v({},Js,{dataTransfer:0}),qy=$n(Hy),Gy=v({},Kl,{relatedTarget:0}),Ro=$n(Gy),$y=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Fy=$n($y),Yy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=$n(Yy),Ky=v({},ji,{data:0}),vf=$n(Ky),Zy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xy={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"},Vy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vy[e])?!!t[e]:!1}function ko(){return Qy}var Wy=v({},Kl,{key:function(e){if(e.key){var t=Zy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jy=$n(Wy),ev=v({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=$n(ev),tv=v({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),nv=$n(tv),av=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),iv=$n(av),lv=v({},Js,{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}),sv=$n(lv),rv=v({},ji,{newState:0,oldState:0}),ov=$n(rv),cv=[9,13,27,32],Oo=qa&&"CompositionEvent"in window,Xl=null;qa&&"documentMode"in document&&(Xl=document.documentMode);var uv=qa&&"TextEvent"in window&&!Xl,_f=qa&&(!Oo||Xl&&8<Xl&&11>=Xl),Sf=" ",wf=!1;function Nf(e,t){switch(e){case"keyup":return cv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function dv(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(wf=!0,Sf);case"textInput":return e=t.data,e===Sf&&wf?null:e;default:return null}}function fv(e,t){if(sl)return e==="compositionend"||!Oo&&Nf(e,t)?(e=gf(),Xs=To=ci=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _f&&t.locale!=="ko"?null:t.data;default:return null}}var hv={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 xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hv[e.type]:t==="textarea"}function Af(e,t,n,l){Ve?We?We.push(l):We=[l]:Ve=l,t=Gr(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Vl=null,Ql=null;function pv(e){cm(e,0)}function er(e){var t=Xn(e);if(si(t))return e}function Rf(e,t){if(e==="change")return t}var kf=!1;if(qa){var Co;if(qa){var Mo="oninput"in document;if(!Mo){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),Mo=typeof Of.oninput=="function"}Co=Mo}else Co=!1;kf=Co&&(!document.documentMode||9<document.documentMode)}function Cf(){Vl&&(Vl.detachEvent("onpropertychange",Mf),Ql=Vl=null)}function Mf(e){if(e.propertyName==="value"&&er(Ql)){var t=[];Af(t,Ql,e,Me(e)),Zs(pv,t)}}function mv(e,t,n){e==="focusin"?(Cf(),Vl=t,Ql=n,Vl.attachEvent("onpropertychange",Mf)):e==="focusout"&&Cf()}function gv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return er(Ql)}function bv(e,t){if(e==="click")return er(t)}function yv(e,t){if(e==="input"||e==="change")return er(t)}function vv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:vv;function Wl(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!It.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function Df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var n=Df(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Df(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ba(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=Ba(e.document)}return t}function Do(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 Ev=qa&&"documentMode"in document&&11>=document.documentMode,rl=null,Lo=null,Jl=null,zo=!1;function Uf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||rl==null||rl!==Ba(l)||(l=rl,"selectionStart"in l&&Do(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jl&&Wl(Jl,l)||(Jl=l,l=Gr(Lo,"onSelect"),0<l.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=rl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ol={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},jo={},Bf={};qa&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function Bi(e){if(jo[e])return jo[e];if(!ol[e])return e;var t=ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return jo[e]=t[n];return e}var If=Bi("animationend"),Hf=Bi("animationiteration"),qf=Bi("animationstart"),_v=Bi("transitionrun"),Sv=Bi("transitionstart"),wv=Bi("transitioncancel"),Gf=Bi("transitionend"),$f=new Map,Uo="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(" ");Uo.push("scrollEnd");function ya(e,t){$f.set(e,t),Ne(t,[e])}var tr=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)},ca=[],cl=0,Bo=0;function nr(){for(var e=cl,t=Bo=cl=0;t<e;){var n=ca[t];ca[t++]=null;var l=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&Ff(n,o,c)}}function ar(e,t,n,l){ca[cl++]=e,ca[cl++]=t,ca[cl++]=n,ca[cl++]=l,Bo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Io(e,t,n,l){return ar(e,t,n,l),ir(e)}function Ii(e,t){return ar(e,null,null,t),ir(e)}function Ff(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.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-qt(n),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),c):null}function ir(e){if(50<_s)throw _s=0,Zc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function Nv(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(e,t,n,l){return new Nv(e,t,n,l)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ga(e,t){var n=e.alternate;return n===null?(n=Wn(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 Yf(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 lr(e,t,n,l,o,c){var p=0;if(l=e,typeof e=="function")Ho(e)&&(p=1);else if(typeof e=="string")p=kE(e,n,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Wn(31,n,t,o),e.elementType=G,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case A:p=8,o|=24;break;case R:return e=Wn(12,n,t,o|2),e.elementType=R,e.lanes=c,e;case z:return e=Wn(13,n,t,o),e.elementType=z,e.lanes=c,e;case ae:return e=Wn(19,n,t,o),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:p=10;break e;case $:p=9;break e;case W:p=11;break e;case se:p=14;break e;case T:p=16,l=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wn(p,n,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Hi(e,t,n,l){return e=Wn(7,e,l,t),e.lanes=n,e}function qo(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Pf(e){var t=Wn(18,null,null,0);return t.stateNode=e,t}function Go(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hn(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:Hn(t)}}var dl=[],fl=0,sr=null,es=0,da=[],fa=0,ui=null,Ra=1,ka="";function $a(e,t){dl[fl++]=es,dl[fl++]=sr,sr=e,es=t}function Zf(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var l=Ra;e=ka;var o=32-qt(l)-1;l&=~(1<<o),n+=1;var c=32-qt(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,Ra=1<<32-qt(t)+o|n<<o|l,ka=c+e}else Ra=1<<c|n<<o|l,ka=e}function $o(e){e.return!==null&&($a(e,1),Zf(e,1,0))}function Fo(e){for(;e===sr;)sr=dl[--fl],dl[fl]=null,es=dl[--fl],dl[fl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Xf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var En=null,Mt=null,ot=!1,di=null,ha=!1,Yo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ts(ua(t,e)),Yo}function Vf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[wt]=e,t[Kt]=l,n){case"dialog":it("cancel",t),it("close",t);break;case"iframe":case"object":case"embed":it("load",t);break;case"video":case"audio":for(n=0;n<ws.length;n++)it(ws[n],t);break;case"source":it("error",t);break;case"img":case"image":case"link":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"input":it("invalid",t),Ia(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":it("invalid",t);break;case"textarea":it("invalid",t),Aa(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||hm(t.textContent,n)?(l.popover!=null&&(it("beforetoggle",t),it("toggle",t)),l.onScroll!=null&&it("scroll",t),l.onScrollEnd!=null&&it("scrollend",t),l.onClick!=null&&(t.onclick=he),t=!0):t=!1,t||fi(e,!0)}function Qf(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:En=En.return}}function hl(e){if(e!==En)return!1;if(!ot)return Qf(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")||cu(e.type,e.memoizedProps)),n=!n),n&&Mt&&fi(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=Sm(e)}else t===27?(t=Mt,xi(e.type)?(e=pu,pu=null,Mt=e):Mt=t):Mt=En?ma(e.stateNode.nextSibling):null;return!0}function qi(){Mt=En=null,ot=!1}function Po(){var e=di;return e!==null&&(Kn===null?Kn=e:Kn.push.apply(Kn,e),di=null),e}function ts(e){di===null?di=[e]:di.push(e)}var Ko=w(null),Gi=null,Fa=null;function hi(e,t,n){I(Ko,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=Ko.current,L(Ko)}function Zo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Xo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=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),Zo(c.return,n,e),l||(p=null);break e}c=E.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),Zo(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function pl(e,t,n,l){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 p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var E=o.type;Qn(o.pendingProps.value,p.value)||(e!==null?e.push(E):e=[E])}}else if(o===X.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rs):e=[Rs])}o=o.return}e!==null&&Xo(t,e,n,l),t.flags|=262144}function rr(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _n(e){return Wf(Gi,e)}function or(e,t){return Gi===null&&$i(e),Wf(e,t)}function Wf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Fa===null){if(e===null)throw Error(s(308));Fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fa=Fa.next=t;return n}var Tv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xv=i.unstable_scheduleCallback,Av=i.unstable_NormalPriority,en={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new Tv,data:new Map,refCount:0}}function ns(e){e.refCount--,e.refCount===0&&xv(Av,function(){e.controller.abort()})}var as=null,Qo=0,ml=0,gl=null;function Rv(e,t){if(as===null){var n=as=[];Qo=0,ml=eu(),gl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Qo++,t.then(Jf,Jf),t}function Jf(){if(--Qo===0&&as!==null){gl!==null&&(gl.status="fulfilled");var e=as;as=null,ml=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var eh=M.S;M.S=function(e,t){Up=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rv(e,t),eh!==null&&eh(e,t)};var Fi=w(null);function Wo(){var e=Fi.current;return e!==null?e:kt.pooledCache}function cr(e,t){t===null?I(Fi,Fi.current):I(Fi,t.pool)}function th(){var e=Wo();return e===null?null:{parent:en._currentValue,pool:e}}var bl=Error(s(460)),Jo=Error(s(474)),ur=Error(s(542)),dr={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ah(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(he,he),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e;default:if(typeof t.status=="string")t.then(he,he);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e}throw Pi=t,bl}}function Yi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,bl):n}}var Pi=null;function ih(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function lh(e){if(e===bl||e===ur)throw Error(s(483))}var yl=null,is=0;function fr(e){var t=is;return is+=1,yl===null&&(yl=[]),ah(yl,e,t)}function ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hr(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sh(e){function t(q,D){if(e){var P=q.deletions;P===null?(q.deletions=[D],q.flags|=16):P.push(D)}}function n(q,D){if(!e)return null;for(;D!==null;)t(q,D),D=D.sibling;return null}function l(q){for(var D=new Map;q!==null;)q.key!==null?D.set(q.key,q):D.set(q.index,q),q=q.sibling;return D}function o(q,D){return q=Ga(q,D),q.index=0,q.sibling=null,q}function c(q,D,P){return q.index=P,e?(P=q.alternate,P!==null?(P=P.index,P<D?(q.flags|=67108866,D):P):(q.flags|=67108866,D)):(q.flags|=1048576,D)}function p(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function E(q,D,P,re){return D===null||D.tag!==6?(D=qo(P,q.mode,re),D.return=q,D):(D=o(D,P),D.return=q,D)}function O(q,D,P,re){var Le=P.type;return Le===C?ie(q,D,P.props.children,re,P.key):D!==null&&(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Yi(Le)===D.type)?(D=o(D,P.props),ls(D,P),D.return=q,D):(D=lr(P.type,P.key,P.props,null,q.mode,re),ls(D,P),D.return=q,D)}function K(q,D,P,re){return D===null||D.tag!==4||D.stateNode.containerInfo!==P.containerInfo||D.stateNode.implementation!==P.implementation?(D=Go(P,q.mode,re),D.return=q,D):(D=o(D,P.children||[]),D.return=q,D)}function ie(q,D,P,re,Le){return D===null||D.tag!==7?(D=Hi(P,q.mode,re,Le),D.return=q,D):(D=o(D,P),D.return=q,D)}function ce(q,D,P){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=qo(""+D,q.mode,P),D.return=q,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return P=lr(D.type,D.key,D.props,null,q.mode,P),ls(P,D),P.return=q,P;case S:return D=Go(D,q.mode,P),D.return=q,D;case T:return D=Yi(D),ce(q,D,P)}if(fe(D)||Ee(D))return D=Hi(D,q.mode,P,null),D.return=q,D;if(typeof D.then=="function")return ce(q,fr(D),P);if(D.$$typeof===U)return ce(q,or(q,D),P);hr(q,D)}return null}function Z(q,D,P,re){var Le=D!==null?D.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Le!==null?null:E(q,D,""+P,re);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case x:return P.key===Le?O(q,D,P,re):null;case S:return P.key===Le?K(q,D,P,re):null;case T:return P=Yi(P),Z(q,D,P,re)}if(fe(P)||Ee(P))return Le!==null?null:ie(q,D,P,re,null);if(typeof P.then=="function")return Z(q,D,fr(P),re);if(P.$$typeof===U)return Z(q,D,or(q,P),re);hr(q,P)}return null}function V(q,D,P,re,Le){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return q=q.get(P)||null,E(D,q,""+re,Le);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case x:return q=q.get(re.key===null?P:re.key)||null,O(D,q,re,Le);case S:return q=q.get(re.key===null?P:re.key)||null,K(D,q,re,Le);case T:return re=Yi(re),V(q,D,P,re,Le)}if(fe(re)||Ee(re))return q=q.get(P)||null,ie(D,q,re,Le,null);if(typeof re.then=="function")return V(q,D,P,fr(re),Le);if(re.$$typeof===U)return V(q,D,P,or(D,re),Le);hr(D,re)}return null}function Re(q,D,P,re){for(var Le=null,ht=null,Oe=D,Ze=D=0,rt=null;Oe!==null&&Ze<P.length;Ze++){Oe.index>Ze?(rt=Oe,Oe=null):rt=Oe.sibling;var pt=Z(q,Oe,P[Ze],re);if(pt===null){Oe===null&&(Oe=rt);break}e&&Oe&&pt.alternate===null&&t(q,Oe),D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt,Oe=rt}if(Ze===P.length)return n(q,Oe),ot&&$a(q,Ze),Le;if(Oe===null){for(;Ze<P.length;Ze++)Oe=ce(q,P[Ze],re),Oe!==null&&(D=c(Oe,D,Ze),ht===null?Le=Oe:ht.sibling=Oe,ht=Oe);return ot&&$a(q,Ze),Le}for(Oe=l(Oe);Ze<P.length;Ze++)rt=V(Oe,q,Ze,P[Ze],re),rt!==null&&(e&&rt.alternate!==null&&Oe.delete(rt.key===null?Ze:rt.key),D=c(rt,D,Ze),ht===null?Le=rt:ht.sibling=rt,ht=rt);return e&&Oe.forEach(function(Ci){return t(q,Ci)}),ot&&$a(q,Ze),Le}function Be(q,D,P,re){if(P==null)throw Error(s(151));for(var Le=null,ht=null,Oe=D,Ze=D=0,rt=null,pt=P.next();Oe!==null&&!pt.done;Ze++,pt=P.next()){Oe.index>Ze?(rt=Oe,Oe=null):rt=Oe.sibling;var Ci=Z(q,Oe,pt.value,re);if(Ci===null){Oe===null&&(Oe=rt);break}e&&Oe&&Ci.alternate===null&&t(q,Oe),D=c(Ci,D,Ze),ht===null?Le=Ci:ht.sibling=Ci,ht=Ci,Oe=rt}if(pt.done)return n(q,Oe),ot&&$a(q,Ze),Le;if(Oe===null){for(;!pt.done;Ze++,pt=P.next())pt=ce(q,pt.value,re),pt!==null&&(D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt);return ot&&$a(q,Ze),Le}for(Oe=l(Oe);!pt.done;Ze++,pt=P.next())pt=V(Oe,q,Ze,pt.value,re),pt!==null&&(e&&pt.alternate!==null&&Oe.delete(pt.key===null?Ze:pt.key),D=c(pt,D,Ze),ht===null?Le=pt:ht.sibling=pt,ht=pt);return e&&Oe.forEach(function(HE){return t(q,HE)}),ot&&$a(q,Ze),Le}function xt(q,D,P,re){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case x:e:{for(var Le=P.key;D!==null;){if(D.key===Le){if(Le=P.type,Le===C){if(D.tag===7){n(q,D.sibling),re=o(D,P.props.children),re.return=q,q=re;break e}}else if(D.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Yi(Le)===D.type){n(q,D.sibling),re=o(D,P.props),ls(re,P),re.return=q,q=re;break e}n(q,D);break}else t(q,D);D=D.sibling}P.type===C?(re=Hi(P.props.children,q.mode,re,P.key),re.return=q,q=re):(re=lr(P.type,P.key,P.props,null,q.mode,re),ls(re,P),re.return=q,q=re)}return p(q);case S:e:{for(Le=P.key;D!==null;){if(D.key===Le)if(D.tag===4&&D.stateNode.containerInfo===P.containerInfo&&D.stateNode.implementation===P.implementation){n(q,D.sibling),re=o(D,P.children||[]),re.return=q,q=re;break e}else{n(q,D);break}else t(q,D);D=D.sibling}re=Go(P,q.mode,re),re.return=q,q=re}return p(q);case T:return P=Yi(P),xt(q,D,P,re)}if(fe(P))return Re(q,D,P,re);if(Ee(P)){if(Le=Ee(P),typeof Le!="function")throw Error(s(150));return P=Le.call(P),Be(q,D,P,re)}if(typeof P.then=="function")return xt(q,D,fr(P),re);if(P.$$typeof===U)return xt(q,D,or(q,P),re);hr(q,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,D!==null&&D.tag===6?(n(q,D.sibling),re=o(D,P),re.return=q,q=re):(n(q,D),re=qo(P,q.mode,re),re.return=q,q=re),p(q)):n(q,D)}return function(q,D,P,re){try{is=0;var Le=xt(q,D,P,re);return yl=null,Le}catch(Oe){if(Oe===bl||Oe===ur)throw Oe;var ht=Wn(29,Oe,null,q.mode);return ht.lanes=re,ht.return=q,ht}finally{}}}var Ki=sh(!0),rh=sh(!1),pi=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ir(e),Ff(e,null,n),t}return ar(e,l,t,n),ir(e)}function ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}function nc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ac=!1;function rs(){if(ac){var e=gl;if(e!==null)throw e}}function os(e,t,n,l){ac=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,K=O.next;O.next=null,p===null?c=K:p.next=K,p=O;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,E=ie.lastBaseUpdate,E!==p&&(E===null?ie.firstBaseUpdate=K:E.next=K,ie.lastBaseUpdate=O))}if(c!==null){var ce=o.baseState;p=0,ie=K=O=null,E=c;do{var Z=E.lane&-536870913,V=Z!==E.lane;if(V?(st&Z)===Z:(l&Z)===Z){Z!==0&&Z===ml&&(ac=!0),ie!==null&&(ie=ie.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Re=e,Be=E;Z=t;var xt=n;switch(Be.tag){case 1:if(Re=Be.payload,typeof Re=="function"){ce=Re.call(xt,ce,Z);break e}ce=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Be.payload,Z=typeof Re=="function"?Re.call(xt,ce,Z):Re,Z==null)break e;ce=v({},ce,Z);break e;case 2:pi=!0}}Z=E.callback,Z!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[Z]:V.push(Z))}else V={lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ie===null?(K=ie=V,O=ce):ie=ie.next=V,p|=Z;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);ie===null&&(O=ce),o.baseState=O,o.firstBaseUpdate=K,o.lastBaseUpdate=ie,c===null&&(o.shared.lanes=0),_i|=p,e.lanes=p,e.memoizedState=ce}}function oh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ch(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)oh(n[e],t)}var vl=w(null),pr=w(0);function uh(e,t){e=ei,I(pr,e),I(vl,t),ei=e|t.baseLanes}function ic(){I(pr,ei),I(vl,vl.current)}function lc(){ei=pr.current,L(vl),L(pr)}var Jn=w(null),pa=null;function bi(e){var t=e.alternate;I(Xt,Xt.current&1),I(Jn,e),pa===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(pa=e)}function sc(e){I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)}function dh(e){e.tag===22?(I(Xt,Xt.current),I(Jn,e),pa===null&&(pa=e)):yi()}function yi(){I(Xt,Xt.current),I(Jn,Jn.current)}function ea(e){L(Jn),pa===e&&(pa=null),L(Xt)}var Xt=w(0);function mr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fu(n)||hu(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 Pa=0,Pe=null,Nt=null,tn=null,gr=!1,El=!1,Zi=!1,br=0,cs=0,_l=null,Ov=0;function $t(){throw Error(s(321))}function rc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function oc(e,t,n,l,o,c){return Pa=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Zh:wc,Zi=!1,c=n(l,o),Zi=!1,El&&(c=hh(t,n,l,o)),fh(e),c}function fh(e){M.H=fs;var t=Nt!==null&&Nt.next!==null;if(Pa=0,tn=Nt=Pe=null,gr=!1,cs=0,_l=null,t)throw Error(s(300));e===null||nn||(e=e.dependencies,e!==null&&rr(e)&&(nn=!0))}function hh(e,t,n,l){Pe=e;var o=0;do{if(El&&(_l=null),cs=0,El=!1,25<=o)throw Error(s(301));if(o+=1,tn=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)}M.H=Xh,c=t(n,l)}while(El);return c}function Cv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?us(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Pe.flags|=1024),t}function cc(){var e=br!==0;return br=0,e}function uc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dc(e){if(gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gr=!1}Pa=0,tn=Nt=Pe=null,El=!1,cs=br=0,_l=null}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Pe.memoizedState=tn=e:tn=tn.next=e,tn}function Vt(){if(Nt===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=tn===null?Pe.memoizedState:tn.next;if(t!==null)tn=t,Nt=e;else{if(e===null)throw Pe.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},tn===null?Pe.memoizedState=tn=e:tn=tn.next=e}return tn}function yr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=cs;return cs+=1,_l===null&&(_l=[]),e=ah(_l,e,t),t=Pe,(tn===null?t.memoizedState:tn.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Zh:wc),e}function vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return us(e);if(e.$$typeof===U)return _n(e)}throw Error(s(438,String(e)))}function fc(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=yr(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function Er(e){var t=Vt();return hc(t,Nt,e)}function hc(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=p=null,O=null,K=t,ie=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(st&ce)===ce:(Pa&ce)===ce){var Z=K.revertLane;if(Z===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===ml&&(ie=!0);else if((Pa&Z)===Z){K=K.next,Z===ml&&(ie=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=ce,p=c):O=O.next=ce,Pe.lanes|=Z,_i|=Z;ce=K.action,Zi&&n(c,ce),c=K.hasEagerState?K.eagerState:n(c,ce)}else Z={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(E=O=Z,p=c):O=O.next=Z,Pe.lanes|=ce,_i|=ce;K=K.next}while(K!==null&&K!==t);if(O===null?p=c:O.next=E,!Qn(c,e.memoizedState)&&(nn=!0,ie&&(n=gl,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=O,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function pc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Qn(c,t.memoizedState)||(nn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function ph(e,t,n){var l=Pe,o=Vt(),c=ot;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!Qn((Nt||o).memoizedState,n);if(p&&(o.memoizedState=n,nn=!0),o=o.queue,bc(bh.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||tn!==null&&tn.memoizedState.tag&1){if(l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,o,n,t),null),kt===null)throw Error(s(349));c||(Pa&127)!==0||mh(l,t,n)}return n}function mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=yr(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gh(e,t,n,l){t.value=n,t.getSnapshot=l,yh(t)&&vh(e)}function bh(e,t,n){return n(function(){yh(t)&&vh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function vh(e){var t=Ii(e,2);t!==null&&Zn(t,e,2)}function mc(e){var t=Un();if(typeof e=="function"){var n=e;if(e=n(),Zi){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function Eh(e,t,n,l){return e.baseState=n,hc(e,Nt,typeof l=="function"?l:Ka)}function Mv(e,t,n,l,o){if(wr(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(p){c.listeners.push(p)}};M.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,_h(t,c)):(c.next=n.next,t.pending=n.next=c)}}function _h(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=M.T,p={};M.T=p;try{var E=n(o,l),O=M.S;O!==null&&O(p,E),Sh(e,t,E)}catch(K){gc(e,t,K)}finally{c!==null&&p.types!==null&&(c.types=p.types),M.T=c}}else try{c=n(o,l),Sh(e,t,c)}catch(K){gc(e,t,K)}}function Sh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){wh(e,t,l)},function(l){return gc(e,t,l)}):wh(e,t,n)}function wh(e,t,n){t.status="fulfilled",t.value=n,Nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_h(e,n)))}function gc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Nh(t),t=t.next;while(t!==l)}e.action=null}function Nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Th(e,t){return t}function xh(e,t){if(ot){var n=kt.formState;if(n!==null){e:{var l=Pe;if(ot){if(Mt){t:{for(var o=Mt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Mt=ma(o.nextSibling),l=o.data==="F!";break e}}fi(l)}l=!1}l&&(t=n[0])}}return n=Un(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:t},n.queue=l,n=Yh.bind(null,Pe,l),l.dispatch=n,l=mc(!1),c=Sc.bind(null,Pe,!1,l.queue),l=Un(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Mv.bind(null,Pe,o,c,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Ah(e){var t=Vt();return Rh(t,Nt,e)}function Rh(e,t,n){if(t=hc(e,t,Th)[0],e=Er(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=us(t)}catch(p){throw p===bl?ur:p}else l=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,Sl(9,{destroy:void 0},Dv.bind(null,o,n),null)),[l,c,e]}function Dv(e,t){e.action=t}function kh(e){var t=Vt(),n=Nt;if(n!==null)return Rh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Sl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=yr(),Pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Oh(){return Vt().memoizedState}function _r(e,t,n,l){var o=Un();Pe.flags|=e,o.memoizedState=Sl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Sr(e,t,n,l){var o=Vt();l=l===void 0?null:l;var c=o.memoizedState.inst;Nt!==null&&l!==null&&rc(l,Nt.memoizedState.deps)?o.memoizedState=Sl(t,c,n,l):(Pe.flags|=e,o.memoizedState=Sl(1|t,c,n,l))}function Ch(e,t){_r(8390656,8,e,t)}function bc(e,t){Sr(2048,8,e,t)}function Lv(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=yr(),Pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Mh(e){var t=Vt().memoizedState;return Lv({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Dh(e,t){return Sr(4,2,e,t)}function Lh(e,t){return Sr(4,4,e,t)}function zh(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 jh(e,t,n){n=n!=null?n.concat([e]):null,Sr(4,4,zh.bind(null,t,e),n)}function yc(){}function Uh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&rc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Bh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&rc(t,l[1]))return l[0];if(l=e(),Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l}function vc(e,t,n){return n===void 0||(Pa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ip(),Pe.lanes|=e,_i|=e,n)}function Ih(e,t,n,l){return Qn(n,t)?n:vl.current!==null?(e=vc(e,n,l),Qn(e,t)||(nn=!0),e):(Pa&42)===0||(Pa&1073741824)!==0&&(st&261930)===0?(nn=!0,e.memoizedState=n):(e=Ip(),Pe.lanes|=e,_i|=e,t)}function Hh(e,t,n,l,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var p=M.T,E={};M.T=E,Sc(e,!1,t,n);try{var O=o(),K=M.S;if(K!==null&&K(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ie=kv(O,l);ds(e,t,ie,aa(e))}else ds(e,t,l,aa(e))}catch(ce){ds(e,t,{then:function(){},status:"rejected",reason:ce},aa())}finally{Q.p=c,p!==null&&E.types!==null&&(p.types=E.types),M.T=p}}function zv(){}function Ec(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=qh(e).queue;Hh(e,o,t,pe,n===null?zv:function(){return Gh(e),n(l)})}function qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:pe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gh(e){var t=qh(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},aa())}function _c(){return _n(Rs)}function $h(){return Vt().memoizedState}function Fh(){return Vt().memoizedState}function jv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=aa();e=mi(n);var l=gi(t,e,n);l!==null&&(Zn(l,t,n),ss(l,t,n)),t={cache:Vo()},e.payload=t;return}t=t.return}}function Uv(e,t,n){var l=aa();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wr(e)?Ph(t,n):(n=Io(e,t,n,l),n!==null&&(Zn(n,e,l),Kh(n,t,l)))}function Yh(e,t,n){var l=aa();ds(e,t,n,l)}function ds(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wr(e))Ph(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,E=c(p,n);if(o.hasEagerState=!0,o.eagerState=E,Qn(E,p))return ar(e,t,o,0),kt===null&&nr(),!1}catch{}finally{}if(n=Io(e,t,o,l),n!==null)return Zn(n,e,l),Kh(n,t,l),!0}return!1}function Sc(e,t,n,l){if(l={lane:2,revertLane:eu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wr(e)){if(t)throw Error(s(479))}else t=Io(e,n,l,2),t!==null&&Zn(t,e,2)}function wr(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Ph(e,t){El=gr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}var fs={readContext:_n,use:vr,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};fs.useEffectEvent=$t;var Zh={readContext:_n,use:vr,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Ch,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_r(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){_r(4,2,e,t)},useMemo:function(e,t){var n=Un();t=t===void 0?null:t;var l=e();if(Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Un();if(n!==void 0){var o=n(t);if(Zi){kn(!0);try{n(t)}finally{kn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Uv.bind(null,Pe,e),[l.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,n=Yh.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yc,useDeferredValue:function(e,t){var n=Un();return vc(n,e,t)},useTransition:function(){var e=mc(!1);return e=Hh.bind(null,Pe,e.queue,!0,!1),Un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Pe,o=Un();if(ot){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(st&127)!==0||mh(l,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Ch(bh.bind(null,l,c,e),[e]),l.flags|=2048,Sl(9,{destroy:void 0},gh.bind(null,l,c,n,t),null),n},useId:function(){var e=Un(),t=kt.identifierPrefix;if(ot){var n=ka,l=Ra;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=br++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Ov++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_c,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=Un();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sc.bind(null,Pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return Un().memoizedState=jv.bind(null,Pe)},useEffectEvent:function(e){var t=Un(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},wc={readContext:_n,use:vr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:Er,useRef:Oh,useState:function(){return Er(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=Er(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var n=Vt();return Eh(n,Nt,e,t)},useMemoCache:fc,useCacheRefresh:Fh};wc.useEffectEvent=Mh;var Xh={readContext:_n,use:vr,useCallback:Uh,useContext:_n,useEffect:bc,useImperativeHandle:jh,useInsertionEffect:Dh,useLayoutEffect:Lh,useMemo:Bh,useReducer:pc,useRef:Oh,useState:function(){return pc(Ka)},useDebugValue:yc,useDeferredValue:function(e,t){var n=Vt();return Nt===null?vc(n,e,t):Ih(n,Nt.memoizedState,e,t)},useTransition:function(){var e=pc(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:ph,useId:$h,useHostTransitionStatus:_c,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=Vt();return Nt!==null?Eh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fc,useCacheRefresh:Fh};Xh.useEffectEvent=Mh;function Nc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Tc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=aa(),l=mi(n);l.tag=2,t!=null&&(l.callback=t),t=gi(e,l,n),t!==null&&(Zn(t,e,n),ss(t,e,n))}};function Vh(e,t,n,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,l)||!Wl(o,c):!0}function Qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}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 Wh(e){tr(e)}function Jh(e){console.error(e)}function ep(e){tr(e)}function Nr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function tp(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function xc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){Nr(e,t)},n}function np(e){return e=mi(e),e.tag=3,e}function ap(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){tp(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){tp(t,n,l),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Bv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&pl(t,n,o,!0),n=Jn.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?jr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===dr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Qc(e,l,o)),!1;case 22:return n.flags|=65536,l===dr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Qc(e,l,o)),!1}throw Error(s(435,n.tag))}return Qc(e,l,o),jr(),!1}if(ot)return t=Jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Yo&&(e=Error(s(422),{cause:l}),ts(ua(e,n)))):(l!==Yo&&(t=Error(s(423),{cause:l}),ts(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=ua(l,n),o=xc(e.stateNode,l,o),nc(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:l});if(c=ua(c,n),Es===null?Es=[c]:Es.push(c),Ft!==4&&(Ft=2),t===null)return!0;l=ua(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=xc(n.stateNode,l,e),nc(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"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=np(o),ap(o,e,n,l),nc(n,o),!1}n=n.return}while(n!==null);return!1}var Ac=Error(s(461)),nn=!1;function Sn(e,t,n,l){t.child=e===null?rh(t,null,n,l):Ki(t,e.child,n,l)}function ip(e,t,n,l,o){n=n.render;var c=t.ref;if("ref"in l){var p={};for(var E in l)E!=="ref"&&(p[E]=l[E])}else p=l;return $i(t),l=oc(e,t,n,p,c,o),E=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&E&&$o(t),t.flags|=1,Sn(e,t,l,o),t.child)}function lp(e,t,n,l,o){if(e===null){var c=n.type;return typeof c=="function"&&!Ho(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,sp(e,t,c,l,o)):(e=lr(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zc(e,o)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(p,l)&&e.ref===t.ref)return Za(e,t,o)}return t.flags|=1,e=Ga(c,l),e.ref=t.ref,e.return=t,t.child=e}function sp(e,t,n,l,o){if(e!==null){var c=e.memoizedProps;if(Wl(c,l)&&e.ref===t.ref)if(nn=!1,t.pendingProps=l=c,zc(e,o))(e.flags&131072)!==0&&(nn=!0);else return t.lanes=e.lanes,Za(e,t,o)}return Rc(e,t,n,l,o)}function rp(e,t,n,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return op(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cr(t,c!==null?c.cachePool:null),c!==null?uh(t,c):ic(),dh(t);else return l=t.lanes=536870912,op(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(cr(t,c.cachePool),uh(t,c),yi(),t.memoizedState=null):(e!==null&&cr(t,null),ic(),yi());return Sn(e,t,o,n),t.child}function hs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function op(e,t,n,l,o){var c=Wo();return c=c===null?null:{parent:en._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&cr(t,null),ic(),dh(t),e!==null&&pl(e,t,l,!0),t.childLanes=o,null}function Tr(e,t){return t=Ar({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cp(e,t,n){return Ki(t,e.child,null,n),e=Tr(t,t.pendingProps),e.flags|=2,ea(t),t.memoizedState=null,e}function Iv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(l.mode==="hidden")return e=Tr(t,l),t.lanes=536870912,hs(null,e);if(sc(t),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Tr(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(sc(t),o)if(t.flags&256)t.flags&=-257,t=cp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(nn||pl(e,t,n,!1),o=(n&e.childLanes)!==0,nn||o){if(l=kt,l!==null&&(p=Ct(l,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,Ii(e,p),Zn(l,e,p),Ac;jr(),t=cp(e,t,n)}else e=c.treeContext,Mt=ma(p.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Tr(t,l),t.flags|=4096;return t}return e=Ga(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xr(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 Rc(e,t,n,l,o){return $i(t),n=oc(e,t,n,l,void 0,o),l=cc(),e!==null&&!nn?(uc(e,t,o),Za(e,t,o)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,o),t.child)}function up(e,t,n,l,o,c){return $i(t),t.updateQueue=null,n=hh(t,l,n,o),fh(e),l=cc(),e!==null&&!nn?(uc(e,t,c),Za(e,t,c)):(ot&&l&&$o(t),t.flags|=1,Sn(e,t,n,c),t.child)}function dp(e,t,n,l,o){if($i(t),t.stateNode===null){var c=ul,p=n.contextType;typeof p=="object"&&p!==null&&(c=_n(p)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Tc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ec(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?_n(p):ul,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Nc(t,n,p,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Tc.enqueueReplaceState(c,c.state,null),os(t,l,c,o),rs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Xi(n,E);c.props=O;var K=c.context,ie=n.contextType;p=ul,typeof ie=="object"&&ie!==null&&(p=_n(ie));var ce=n.getDerivedStateFromProps;ie=typeof ce=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ie||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||K!==p)&&Qh(t,c,l,p),pi=!1;var Z=t.memoizedState;c.state=Z,os(t,l,c,o),rs(),K=t.memoizedState,E||Z!==K||pi?(typeof ce=="function"&&(Nc(t,n,ce,l),K=t.memoizedState),(O=pi||Vh(t,n,O,l,Z,K,p))?(ie||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=l,t.memoizedState=K),c.props=l,c.state=K,c.context=p,l=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,tc(e,t),p=t.memoizedProps,ie=Xi(n,p),c.props=ie,ce=t.pendingProps,Z=c.context,K=n.contextType,O=ul,typeof K=="object"&&K!==null&&(O=_n(K)),E=n.getDerivedStateFromProps,(K=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==ce||Z!==O)&&Qh(t,c,l,O),pi=!1,Z=t.memoizedState,c.state=Z,os(t,l,c,o),rs();var V=t.memoizedState;p!==ce||Z!==V||pi||e!==null&&e.dependencies!==null&&rr(e.dependencies)?(typeof E=="function"&&(Nc(t,n,E,l),V=t.memoizedState),(ie=pi||Vh(t,n,ie,l,Z,V,O)||e!==null&&e.dependencies!==null&&rr(e.dependencies))?(K||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,V,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,V,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=V),c.props=l,c.state=V,c.context=O,l=ie):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,xr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Sn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Za(e,t,o),e}function fp(e,t,n,l){return qi(),t.flags|=256,Sn(e,t,n,l),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:th()}}function Cc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=na),e}function hp(e,t,n){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?bi(t):yi(),(e=Mt)?(e=_m(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return hu(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(yi(),o=t.mode,E=Ar({mode:"hidden",children:E},o),l=Hi(l,o,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,p,n),t.memoizedState=kc,hs(null,l)):(bi(t),Mc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=l.fallback,o=t.mode,l=Ar({mode:"visible",children:l.children},o),E=Hi(E,o,n,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,Ki(t,e.child,null,n),l=t.child,l.memoizedState=Oc(n),l.childLanes=Cc(e,p,n),t.memoizedState=kc,t=hs(null,l));else if(bi(t),hu(E)){if(p=E.nextSibling&&E.nextSibling.dataset,p)var K=p.dgst;p=K,l=Error(s(419)),l.stack="",l.digest=p,ts({value:l,source:null,stack:null}),t=Dc(e,t,n)}else if(nn||pl(e,t,n,!1),p=(n&e.childLanes)!==0,nn||p){if(p=kt,p!==null&&(l=Ct(p,n),l!==0&&l!==O.retryLane))throw O.retryLane=l,Ii(e,l),Zn(p,e,l),Ac;fu(E)||jr(),t=Dc(e,t,n)}else fu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Mt=ma(E.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Xf(t,e),t=Mc(t,l.children),t.flags|=4096);return t}return o?(yi(),E=l.fallback,o=t.mode,O=e.child,K=O.sibling,l=Ga(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,K!==null?E=Ga(K,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,hs(null,l),l=t.child,E=e.child.memoizedState,E===null?E=Oc(n):(o=E.cachePool,o!==null?(O=en._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=th(),E={baseLanes:E.baseLanes|n,cachePool:o}),l.memoizedState=E,l.childLanes=Cc(e,p,n),t.memoizedState=kc,hs(e.child,l)):(bi(t),n=e.child,e=n.sibling,n=Ga(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Mc(e,t){return t=Ar({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ar(e,t){return e=Wn(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ki(t,e.child,null,n),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Zo(e.return,t,n)}function Lc(e,t,n,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=n,p.tailMode=o,p.treeForkCount=c)}function mp(e,t,n){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=Xt.current,E=(p&2)!==0;if(E?(p=p&1|2,t.flags|=128):p&=1,I(Xt,p),Sn(e,t,l,n),l=ot?es:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pp(e,n,t);else if(e.tag===19)pp(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&&mr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lc(t,!1,o,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&mr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lc(t,!0,n,null,c,l);break;case"together":Lc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pl(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=Ga(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ga(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&rr(e)))}function Hv(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),hi(t,en,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hp(e,t,n):(bi(t),e=Za(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(pl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return mp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Xt,Xt.current),l)break;return null;case 22:return t.lanes=0,rp(e,t,n,t.pendingProps);case 24:hi(t,en,e.memoizedState.cache)}return Za(e,t,n)}function gp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nn=!0;else{if(!zc(e,n)&&(t.flags&128)===0)return nn=!1,Hv(e,t,n);nn=(e.flags&131072)!==0}else nn=!1,ot&&(t.flags&1048576)!==0&&Zf(t,es,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Yi(t.elementType),t.type=e,typeof e=="function")Ho(e)?(l=Xi(e,l),t.tag=1,t=dp(null,t,e,l,n)):(t.tag=0,t=Rc(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===W){t.tag=11,t=ip(null,t,e,l,n);break e}else if(o===se){t.tag=14,t=lp(null,t,e,l,n);break e}}throw t=le(e)||e,Error(s(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Xi(l,t.pendingProps),dp(e,t,l,o,n);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,tc(e,t),os(t,l,null,n);var p=t.memoizedState;if(l=p.cache,hi(t,en,l),l!==c.cache&&Xo(t,[en],n,!0),rs(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fp(e,t,l,n);break e}else if(l!==o){o=ua(Error(s(424)),t),ts(o),t=fp(e,t,l,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(Mt=ma(e.firstChild),En=t,ot=!0,di=null,ha=!0,n=rh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),l===o){t=Za(e,t,n);break e}Sn(e,t,l,n)}t=t.child}return t;case 26:return xr(e,t),e===null?(n=Am(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,l=$r(ve.current).createElement(n),l[wt]=t,l[Kt]=e,wn(l,n,e),ut(l),t.stateNode=l):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ot&&(l=t.stateNode=Nm(t.type,t.pendingProps,ve.current),En=t,ha=!0,o=Mt,xi(t.type)?(pu=o,Mt=ma(l.firstChild)):Mt=o),Sn(e,t,t.pendingProps.children,n),xr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=l=Mt)&&(l=gE(l,t.type,t.pendingProps,ha),l!==null?(t.stateNode=l,En=t,Mt=ma(l.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,cu(o,c)?l=null:p!==null&&cu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=oc(e,t,Cv,null,null,n),Rs._currentValue=o),xr(e,t),Sn(e,t,l,n),t.child;case 6:return e===null&&ot&&((e=n=Mt)&&(n=bE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,En=t,Mt=null,e=!0):e=!1),e||fi(t)),null;case 13:return hp(e,t,n);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,n):Sn(e,t,l,n),t.child;case 11:return ip(e,t,t.type,t.pendingProps,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,hi(t,t.type,l.value),Sn(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,$i(t),o=_n(o),l=l(o),t.flags|=1,Sn(e,t,l,n),t.child;case 14:return lp(e,t,t.type,t.pendingProps,n);case 15:return sp(e,t,t.type,t.pendingProps,n);case 19:return mp(e,t,n);case 31:return Iv(e,t,n);case 22:return rp(e,t,n,t.pendingProps);case 24:return $i(t),l=_n(en),e===null?(o=Wo(),o===null&&(o=kt,c=Vo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:l,cache:o},ec(t),hi(t,en,o)):((e.lanes&n)!==0&&(tc(e,t),os(t,null,null,n),rs()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,en,l)):(l=c.cache,hi(t,en,l),l!==o.cache&&Xo(t,[en],n,!0))),Sn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Xa(e){e.flags|=4}function jc(e,t,n,l,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($p())e.flags|=8192;else throw Pi=dr,Jo}else e.flags&=-16777217}function bp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mm(t))if($p())e.flags|=8192;else throw Pi=dr,Jo}function Rr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,xl|=t)}function ps(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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function qv(e,t,n){var l=t.pendingProps;switch(Fo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ya(en),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?Xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Po())),Dt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Xa(t),c!==null?(Dt(t),bp(t,c)):(Dt(t),jc(t,o,null,l,n))):c?c!==e.memoizedState?(Xa(t),Dt(t),bp(t,c)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Xa(t),Dt(t),jc(t,o,e,l,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}e=oe.current,hl(t)?Vf(t):(e=Nm(o,l,n),t.stateNode=e,Xa(t))}return Dt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}if(c=oe.current,hl(t))Vf(t);else{var p=$r(ve.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[wt]=t,c[Kt]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(wn(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xa(t)}}return Dt(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=En,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||hm(e.nodeValue,n)),e||fi(t,!0)}else e=$r(e).createTextNode(l),e[wt]=t,t.stateNode=e}return Dt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=hl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else n=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ea(t),t):(ea(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Dt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=hl(t),l!==null&&l.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[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),o=!1}else o=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ea(t),t):(ea(t),null)}return ea(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rr(t,t.updateQueue),Dt(t),null);case 4:return Te(),e===null&&iu(t.stateNode.containerInfo),Dt(t),null;case 10:return Ya(t.type),Dt(t),null;case 19:if(L(Xt),l=t.memoizedState,l===null)return Dt(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ps(l,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=mr(e),c!==null){for(t.flags|=128,ps(l,!1),e=c.updateQueue,t.updateQueue=e,Rr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yf(n,e),n=n.sibling;return I(Xt,Xt.current&1|2),ot&&$a(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&je()>Dr&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304)}else{if(!o)if(e=mr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Rr(t,e),ps(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ot)return Dt(t),null}else 2*je()-l.renderingStartTime>Dr&&n!==536870912&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=je(),e.sibling=null,n=Xt.current,I(Xt,o?n&1|2:n&1),ot&&$a(t,l.treeForkCount),e):(Dt(t),null);case 22:case 23:return ea(t),lc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),n=t.updateQueue,n!==null&&Rr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&L(Fi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(en),Dt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Gv(e,t){switch(Fo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(en),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(ea(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(ea(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 L(Xt),null;case 4:return Te(),null;case 10:return Ya(t.type),null;case 22:case 23:return ea(t),lc(),e!==null&&L(Fi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(en),null;case 25:return null;default:return null}}function yp(e,t){switch(Fo(t),t.tag){case 3:Ya(en),Te();break;case 26:case 27:case 5:$e(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&ea(t);break;case 13:ea(t);break;case 19:L(Xt);break;case 10:Ya(t.type);break;case 22:case 23:ea(t),lc(),e!==null&&L(Fi);break;case 24:Ya(en)}}function ms(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var c=n.create,p=n.inst;l=c(),p.destroy=l}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,E=p.destroy;if(E!==void 0){p.destroy=void 0,o=t;var O=n,K=E;try{K()}catch(ie){_t(o,O,ie)}}}l=l.next}while(l!==c)}}catch(ie){_t(t,t.return,ie)}}function vp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ch(t,n)}catch(l){_t(e,e.return,l)}}}function Ep(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_t(e,t,l)}}function gs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}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 _p(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Uc(e,t,n){try{var l=e.stateNode;uE(l,e.type,n,t),l[Kt]=t}catch(o){_t(e,e.return,o)}}function Sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xi(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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&&xi(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 Ic(e,t,n){var l=e.tag;if(l===5||l===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=he));else if(l!==4&&(l===27&&xi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function kr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&xi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kr(e,t,n),e=e.sibling;e!==null;)kr(e,t,n),e=e.sibling}function wp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);wn(t,l,n),t[wt]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Va=!1,an=!1,Hc=!1,Np=typeof WeakSet=="function"?WeakSet:Set,mn=null;function $v(e,t){if(e=e.containerInfo,ru=Vr,e=jf(e),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,E=-1,O=-1,K=0,ie=0,ce=e,Z=null;t:for(;;){for(var V;ce!==n||o!==0&&ce.nodeType!==3||(E=p+o),ce!==c||l!==0&&ce.nodeType!==3||(O=p+l),ce.nodeType===3&&(p+=ce.nodeValue.length),(V=ce.firstChild)!==null;)Z=ce,ce=V;for(;;){if(ce===e)break t;if(Z===n&&++K===o&&(E=p),Z===c&&++ie===l&&(O=p),(V=ce.nextSibling)!==null)break;ce=Z,Z=ce.parentNode}ce=V}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},Vr=!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,l=n.stateNode;try{var Re=Xi(n.type,o);e=l.getSnapshotBeforeUpdate(Re,c),l.__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)du(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":du(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 Tp(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Wa(e,n),l&4&&ms(5,n);break;case 1:if(Wa(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){_t(n,n.return,p)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){_t(n,n.return,p)}}l&64&&vp(n),l&512&&gs(n,n.return);break;case 3:if(Wa(e,n),l&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{ch(e,t)}catch(p){_t(n,n.return,p)}}break;case 27:t===null&&l&4&&wp(n);case 26:case 5:Wa(e,n),t===null&&l&4&&_p(n),l&512&&gs(n,n.return);break;case 12:Wa(e,n);break;case 31:Wa(e,n),l&4&&Rp(e,n);break;case 13:Wa(e,n),l&4&&kp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Wv.bind(null,n),yE(e,n))));break;case 22:if(l=n.memoizedState!==null||Va,!l){t=t!==null&&t.memoizedState!==null||an,o=Va;var c=an;Va=l,(an=t)&&!c?Ja(e,n,(n.subtreeFlags&8772)!==0):Wa(e,n),Va=o,an=c}break;case 30:break;default:Wa(e,n)}}function xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xa(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 jt=null,Fn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(cn,n)}catch{}switch(n.tag){case 26:an||Oa(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:an||Oa(n,t);var l=jt,o=Fn;xi(n.type)&&(jt=n.stateNode,Fn=!1),Qa(e,t,n),Ts(n.stateNode),jt=l,Fn=o;break;case 5:an||Oa(n,t);case 6:if(l=jt,o=Fn,jt=null,Qa(e,t,n),jt=l,Fn=o,jt!==null)if(Fn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{jt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:jt!==null&&(Fn?(e=jt,vm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):vm(jt,n.stateNode));break;case 4:l=jt,o=Fn,jt=n.stateNode.containerInfo,Fn=!0,Qa(e,t,n),jt=l,Fn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),an||vi(4,n,t),Qa(e,t,n);break;case 1:an||(Oa(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Ep(n,t,l)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:an=(l=an)||n.memoizedState!==null,Qa(e,t,n),an=l;break;default:Qa(e,t,n)}}function Rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){_t(t,t.return,n)}}}function kp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){_t(t,t.return,n)}}function Fv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Np),t;default:throw Error(s(435,e.tag))}}function Or(e,t){var n=Fv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Jv.bind(null,e,l);l.then(o,o)}})}function Yn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],c=e,p=t,E=p;e:for(;E!==null;){switch(E.tag){case 27:if(xi(E.type)){jt=E.stateNode,Fn=!1;break e}break;case 5:jt=E.stateNode,Fn=!1;break e;case 3:case 4:jt=E.stateNode.containerInfo,Fn=!0;break e}E=E.return}if(jt===null)throw Error(s(160));Ap(c,p,o),jt=null,Fn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Op(t,e),t=t.sibling}var va=null;function Op(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yn(t,e),Pn(e),l&4&&(vi(3,e,e.return),ms(3,e),vi(5,e,e.return));break;case 1:Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&64&&Va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=va;if(Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ra]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),wn(c,l,n),c[wt]=e,ut(c),l=c;break e;case"link":var p=Om("link","href",o).get(l+(n.href||""));if(p){for(var E=0;E<p.length;E++)if(c=p[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)){p.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;case"meta":if(p=Om("meta","content",o).get(l+(n.content||""))){for(E=0;E<p.length;E++)if(c=p[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)){p.splice(E,1);break t}}c=o.createElement(l),wn(c,l,n),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[wt]=e,ut(c),l=c}e.stateNode=l}else Cm(o,e.type,e.stateNode);else e.stateNode=km(o,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Cm(o,e.type,e.stateNode):km(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),n!==null&&l&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{J(o,"")}catch(Re){_t(e,e.return,Re)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Uc(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Hc=!0);break;case 6:if(Yn(t,e),Pn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(Re){_t(e,e.return,Re)}}break;case 3:if(Pr=null,o=va,va=Fr(t.containerInfo),Yn(t,e),va=o,Pn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(Re){_t(e,e.return,Re)}Hc&&(Hc=!1,Cp(e));break;case 4:l=va,va=Fr(e.stateNode.containerInfo),Yn(t,e),Pn(e),va=l;break;case 12:Yn(t,e),Pn(e);break;case 31:Yn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Or(e,l)));break;case 13:Yn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Mr=je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Or(e,l)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,K=Va,ie=an;if(Va=K||o,an=ie||O,Yn(t,e),an=ie,Va=K,Pn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Va||an||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)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{E=O.stateNode;var ce=O.memoizedProps.style,Z=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Re){_t(O,O.return,Re)}}}else if(t.tag===18){if(n===null){O=t;try{var V=O.stateNode;o?Em(V,!0):Em(O.stateNode,!1)}catch(Re){_t(O,O.return,Re)}}}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}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Or(e,n))));break;case 19:Yn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Or(e,l)));break;case 30:break;case 21:break;default:Yn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Sp(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Bc(e);kr(e,c,o);break;case 5:var p=n.stateNode;n.flags&32&&(J(p,""),n.flags&=-33);var E=Bc(e);kr(e,E,p);break;case 3:case 4:var O=n.stateNode.containerInfo,K=Bc(e);Ic(e,K,O);break;default:throw Error(s(161))}}catch(ie){_t(e,e.return,ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tp(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:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ep(t,t.return,n),Vi(t);break;case 27:Ts(t.stateNode);case 26:case 5:Oa(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 Ja(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(o,c,n),ms(4,c);break;case 1:if(Ja(o,c,n),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(K){_t(l,l.return,K)}if(l=c,o=l.updateQueue,o!==null){var E=l.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)oh(O[o],E)}catch(K){_t(l,l.return,K)}}n&&p&64&&vp(c),gs(c,c.return);break;case 27:wp(c);case 26:case 5:Ja(o,c,n),n&&l===null&&p&4&&_p(c),gs(c,c.return);break;case 12:Ja(o,c,n);break;case 31:Ja(o,c,n),n&&p&4&&Rp(o,c);break;case 13:Ja(o,c,n),n&&p&4&&kp(o,c);break;case 22:c.memoizedState===null&&Ja(o,c,n),gs(c,c.return);break;case 30:break;default:Ja(o,c,n)}t=t.sibling}}function qc(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&&ns(n))}function Gc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e))}function Ea(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mp(e,t,n,l),t=t.sibling}function Mp(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ea(e,t,n,l),o&2048&&ms(9,t);break;case 1:Ea(e,t,n,l);break;case 3:Ea(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e)));break;case 12:if(o&2048){Ea(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,E=c.onPostCommit;typeof E=="function"&&E(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){_t(t,t.return,O)}}else Ea(e,t,n,l);break;case 31:Ea(e,t,n,l);break;case 13:Ea(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Ea(e,t,n,l):bs(e,t):c._visibility&2?Ea(e,t,n,l):(c._visibility|=2,wl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qc(p,t);break;case 24:Ea(e,t,n,l),o&2048&&Gc(t.alternate,t);break;default:Ea(e,t,n,l)}}function wl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,E=n,O=l,K=p.flags;switch(p.tag){case 0:case 11:case 15:wl(c,p,E,O,o),ms(8,p);break;case 23:break;case 22:var ie=p.stateNode;p.memoizedState!==null?ie._visibility&2?wl(c,p,E,O,o):bs(c,p):(ie._visibility|=2,wl(c,p,E,O,o)),o&&K&2048&&qc(p.alternate,p);break;case 24:wl(c,p,E,O,o),o&&K&2048&&Gc(p.alternate,p);break;default:wl(c,p,E,O,o)}t=t.sibling}}function bs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:bs(n,l),o&2048&&qc(l.alternate,l);break;case 24:bs(n,l),o&2048&&Gc(l.alternate,l);break;default:bs(n,l)}t=t.sibling}}var ys=8192;function Nl(e,t,n){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Dp(e,t,n),e=e.sibling}function Dp(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&ys&&e.memoizedState!==null&&OE(n,va,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var l=va;va=Fr(e.stateNode.containerInfo),Nl(e,t,n),va=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ys,ys=16777216,Nl(e,t,n),ys=l):Nl(e,t,n));break;default:Nl(e,t,n)}}function Lp(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 vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zp(e),e=e.sibling}function zp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&vi(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cr(e)):vs(e);break;default:vs(e)}}function Cr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,jp(l,e)}Lp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),Cr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Cr(t));break;default:Cr(t)}e=e.sibling}}function jp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ns(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,mn=l;else e:for(n=e;mn!==null;){l=mn;var o=l.sibling,c=l.return;if(xp(l),l===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var Yv={getCacheForType:function(e){var t=_n(en),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _n(en).controller.signal}},Pv=typeof WeakMap=="function"?WeakMap:Map,bt=0,kt=null,at=null,st=0,Et=0,ta=null,Ei=!1,Tl=!1,$c=!1,ei=0,Ft=0,_i=0,Qi=0,Fc=0,na=0,xl=0,Es=null,Kn=null,Yc=!1,Mr=0,Up=0,Dr=1/0,Lr=null,Si=null,fn=0,wi=null,Al=null,ti=0,Pc=0,Kc=null,Bp=null,_s=0,Zc=null;function aa(){return(bt&2)!==0&&st!==0?st&-st:M.T!==null?eu():sa()}function Ip(){if(na===0)if((st&536870912)===0||ot){var e=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),na=e}else na=536870912;return e=Jn.current,e!==null&&(e.flags|=32),na}function Zn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Ni(e,st,na,!1)),et(e,n),((bt&2)===0||e!==kt)&&(e===kt&&((bt&2)===0&&(Qi|=n),Ft===4&&Ni(e,st,na,!1)),Ca(e))}function Hp(e,t,n){if((bt&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||te(e,t),o=l?Xv(e,t):Vc(e,t,!0),c=l;do{if(o===0){Tl&&!l&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Kv(n)){o=Vc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var E=e;o=Es;var O=E.current.memoizedState.isDehydrated;if(O&&(Rl(E,p).flags|=256),p=Vc(E,p,!1),p!==2){if($c&&!O){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Kn,Kn=o,c!==null&&(Kn===null?Kn=c:Kn.push.apply(Kn,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Rl(e,0),Ni(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(l,t,na,!Ei);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Mr+300-je(),10<o)){if(Ni(l,t,na,!Ei),k(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=bm(qp.bind(null,l,n,Kn,Lr,Yc,t,na,Qi,xl,Ei,c,"Throttled",-0,0),o);break e}qp(l,n,Kn,Lr,Yc,t,na,Qi,xl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function qp(e,t,n,l,o,c,p,E,O,K,ie,ce,Z,V){if(e.timeoutHandle=-1,ce=t.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:he},Dp(t,c,ce);var Re=(c&62914560)===c?Mr-je():(c&4194048)===c?Up-je():0;if(Re=CE(ce,Re),Re!==null){ti=c,e.cancelPendingCommit=Re(Xp.bind(null,e,t,c,n,l,o,p,E,O,ie,ce,null,Z,V)),Ni(e,c,p,!K);return}}Xp(e,t,c,n,l,o,p,E,O)}function Kv(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 l=0;l<n.length;l++){var o=n[l],c=o.getSnapshot;o=o.value;try{if(!Qn(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,l){t&=~Fc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-qt(o),p=1<<c;l[c]=-1,o&=~p}n!==0&&Se(e,n,t)}function zr(){return(bt&6)===0?(Ss(0),!1):!0}function Xc(){if(at!==null){if(Et===0)var e=at.return;else e=at,Fa=Gi=null,dc(e),yl=null,is=0,e=at;for(;e!==null;)yp(e.alternate,e),e=e.return;at=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,hE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ti=0,Xc(),kt=e,at=n=Ga(e.current,null),st=t,Et=0,ta=null,Ei=!1,Tl=te(e,t),$c=!1,xl=na=Fc=Qi=_i=Ft=0,Kn=Es=null,Yc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-qt(l),c=1<<o;t|=e[o],l&=~c}return ei=t,nr(),n}function Gp(e,t){Pe=null,M.H=fs,t===bl||t===ur?(t=ih(),Et=3):t===Jo?(t=ih(),Et=4):Et=t===Ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ta=t,at===null&&(Ft=1,Nr(e,ua(t,e.current)))}function $p(){var e=Jn.current;return e===null?!0:(st&4194048)===st?pa===null:(st&62914560)===st||(st&536870912)!==0?e===pa:!1}function Fp(){var e=M.H;return M.H=fs,e===null?fs:e}function Yp(){var e=M.A;return M.A=Yv,e}function jr(){Ft=4,Ei||(st&4194048)!==st&&Jn.current!==null||(Tl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,st,na,!1)}function Vc(e,t,n){var l=bt;bt|=2;var o=Fp(),c=Yp();(kt!==e||st!==t)&&(Lr=null,Rl(e,t)),t=!1;var p=Ft;e:do try{if(Et!==0&&at!==null){var E=at,O=ta;switch(Et){case 8:Xc(),p=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(t=!0);var K=Et;if(Et=0,ta=null,kl(e,E,O,K),n&&Tl){p=0;break e}break;default:K=Et,Et=0,ta=null,kl(e,E,O,K)}}Zv(),p=Ft;break}catch(ie){Gp(e,ie)}while(!0);return t&&e.shellSuspendCounter++,Fa=Gi=null,bt=l,M.H=o,M.A=c,at===null&&(kt=null,st=0,nr()),p}function Zv(){for(;at!==null;)Pp(at)}function Xv(e,t){var n=bt;bt|=2;var l=Fp(),o=Yp();kt!==e||st!==t?(Lr=null,Dr=je()+500,Rl(e,t)):Tl=te(e,t);e:do try{if(Et!==0&&at!==null){t=at;var c=ta;t:switch(Et){case 1:Et=0,ta=null,kl(e,t,c,1);break;case 2:case 9:if(nh(c)){Et=0,ta=null,Kp(t);break}t=function(){Et!==2&&Et!==9||kt!==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:nh(c)?(Et=0,ta=null,Kp(t)):(Et=0,ta=null,kl(e,t,c,7));break;case 5:var p=null;switch(at.tag){case 26:p=at.memoizedState;case 5:case 27:var E=at;if(p?Mm(p):E.stateNode.complete){Et=0,ta=null;var O=E.sibling;if(O!==null)at=O;else{var K=E.return;K!==null?(at=K,Ur(K)):at=null}break t}}Et=0,ta=null,kl(e,t,c,5);break;case 6:Et=0,ta=null,kl(e,t,c,6);break;case 8:Xc(),Ft=6;break e;default:throw Error(s(462))}}Vv();break}catch(ie){Gp(e,ie)}while(!0);return Fa=Gi=null,M.H=l,M.A=o,bt=n,at!==null?0:(kt=null,st=0,nr(),Ft)}function Vv(){for(;at!==null&&!yn();)Pp(at)}function Pp(e){var t=gp(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?Ur(e):at=t}function Kp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=up(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=up(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:dc(t);default:yp(n,t),t=at=Yf(t,ei),t=gp(n,t,ei)}e.memoizedProps=e.pendingProps,t===null?Ur(e):at=t}function kl(e,t,n,l){Fa=Gi=null,dc(t),yl=null,is=0;var o=t.return;try{if(Bv(e,o,t,n,st)){Ft=1,Nr(e,ua(n,e.current)),at=null;return}}catch(c){if(o!==null)throw at=o,c;Ft=1,Nr(e,ua(n,e.current)),at=null;return}t.flags&32768?(ot||l===1?e=!0:Tl||(st&536870912)!==0?e=!1:(Ei=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zp(t,e)):Ur(t)}function Ur(e){var t=e;do{if((t.flags&32768)!==0){Zp(t,Ei);return}e=t.return;var n=qv(t.alternate,t,ei);if(n!==null){at=n;return}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);Ft===0&&(Ft=5)}function Zp(e,t){do{var n=Gv(e.alternate,e);if(n!==null){n.flags&=32767,at=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){at=e;return}at=e=n}while(e!==null);Ft=6,at=null}function Xp(e,t,n,l,o,c,p,E,O){e.cancelPendingCommit=null;do Br();while(fn!==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|=Bo,Ae(e,n,c,p,E,O),e===kt&&(at=kt=null,st=0),Al=t,wi=e,ti=n,Pc=c,Kc=o,Bp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,eE(xn,function(){return em(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=Q.p,Q.p=2,p=bt,bt|=4;try{$v(e,t,n)}finally{bt=p,Q.p=o,M.T=l}}fn=1,Vp(),Qp(),Wp()}}function Vp(){if(fn===1){fn=0;var e=wi,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Op(t,e);var c=ou,p=jf(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(p!==E&&E&&E.ownerDocument&&zf(E.ownerDocument.documentElement,E)){if(O!==null&&Do(E)){var K=O.start,ie=O.end;if(ie===void 0&&(ie=K),"selectionStart"in E)E.selectionStart=K,E.selectionEnd=Math.min(ie,E.value.length);else{var ce=E.ownerDocument||document,Z=ce&&ce.defaultView||window;if(Z.getSelection){var V=Z.getSelection(),Re=E.textContent.length,Be=Math.min(O.start,Re),xt=O.end===void 0?Be:Math.min(O.end,Re);!V.extend&&Be>xt&&(p=xt,xt=Be,Be=p);var q=Lf(E,Be),D=Lf(E,xt);if(q&&D&&(V.rangeCount!==1||V.anchorNode!==q.node||V.anchorOffset!==q.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var P=ce.createRange();P.setStart(q.node,q.offset),V.removeAllRanges(),Be>xt?(V.addRange(P),V.extend(D.node,D.offset)):(P.setEnd(D.node,D.offset),V.addRange(P))}}}}for(ce=[],V=E;V=V.parentNode;)V.nodeType===1&&ce.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ce.length;E++){var re=ce[E];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Vr=!!ru,ou=ru=null}finally{bt=o,Q.p=l,M.T=n}}e.current=t,fn=2}}function Qp(){if(fn===2){fn=0;var e=wi,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Tp(e,t.alternate,t)}finally{bt=o,Q.p=l,M.T=n}}fn=3}}function Wp(){if(fn===4||fn===3){fn=0,Yt();var e=wi,t=Al,n=ti,l=Bp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Al=wi=null,Jp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),qn(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=Q.p,Q.p=2,M.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var E=l[p];c(E.value,{componentStack:E.stack})}}finally{M.T=t,Q.p=o}}(ti&3)!==0&&Br(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Zc?_s++:(_s=0,Zc=e):_s=0,Ss(0)}}function Jp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ns(t)))}function Br(){return Vp(),Qp(),Wp(),em()}function em(){if(fn!==5)return!1;var e=wi,t=Pc;Pc=0;var n=qn(ti),l=M.T,o=Q.p;try{Q.p=32>n?32:n,M.T=null,n=Kc,Kc=null;var c=wi,p=ti;if(fn=0,Al=wi=null,ti=0,(bt&6)!==0)throw Error(s(331));var E=bt;if(bt|=4,zp(c.current),Mp(c,c.current,p,n),bt=E,Ss(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(cn,c)}catch{}return!0}finally{Q.p=o,M.T=l,Jp(e,t)}}function tm(e,t,n){t=ua(n,t),t=xc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(et(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)tm(e,e,n);else for(;t!==null;){if(t.tag===3){tm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Si===null||!Si.has(l))){e=ua(n,e),n=np(2),l=gi(t,n,2),l!==null&&(ap(n,l,t,e),et(l,2),Ca(l));break}}t=t.return}}function Qc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Pv;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||($c=!0,o.add(n),e=Qv.bind(null,e,t,n),t.then(e,e))}function Qv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(st&n)===n&&(Ft===4||Ft===3&&(st&62914560)===st&&300>je()-Mr?(bt&2)===0&&Rl(e,0):Fc|=n,xl===st&&(xl=0)),Ca(e)}function nm(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(et(e,t),Ca(e))}function Wv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function Jv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),nm(e,n)}function eE(e,t){return Rt(e,t)}var Ir=null,Ol=null,Wc=!1,Hr=!1,Jc=!1,Ti=0;function Ca(e){e!==Ol&&e.next===null&&(Ol===null?Ir=Ol=e:Ol=Ol.next=e),Hr=!0,Wc||(Wc=!0,nE())}function Ss(e,t){if(!Jc&&Hr){Jc=!0;do for(var n=!1,l=Ir;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,E=l.pingedLanes;c=(1<<31-qt(42|e)+1)-1,c&=o&~(p&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,sm(l,c))}else c=st,c=k(l,l===kt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||te(l,c)||(n=!0,sm(l,c));l=l.next}while(n);Jc=!1}}function tE(){am()}function am(){Hr=Wc=!1;var e=0;Ti!==0&&fE()&&(e=Ti);for(var t=je(),n=null,l=Ir;l!==null;){var o=l.next,c=im(l,t);c===0?(l.next=null,n===null?Ir=o:n.next=o,o===null&&(Ol=n)):(n=l,(e!==0||(c&3)!==0)&&(Hr=!0)),l=o}fn!==0&&fn!==5||Ss(e),Ti!==0&&(Ti=0)}function im(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-qt(c),E=1<<p,O=o[p];O===-1?((E&n)===0||(E&l)!==0)&&(o[p]=ye(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=st,n=k(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&on(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||te(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&on(l),qn(n)){case 2:case 8:n=Ot;break;case 32:n=xn;break;case 268435456:n=An;break;default:n=xn}return l=lm.bind(null,e),n=Rt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&on(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var l=st;return l=k(e,e===kt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hp(e,l,t),im(e,je()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function sm(e,t){if(Br())return null;Hp(e,t,!0)}function nE(){pE(function(){(bt&6)!==0?Rt(vt,tE):am()})}function eu(){if(Ti===0){var e=ml;e===0&&(e=qe,qe<<=1,(qe&261888)===0&&(qe=256)),Ti=e}return Ti}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nt(""+e)}function om(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 aE(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var c=rm((o[Kt]||null).action),p=l.submitter;p&&(t=(t=p[Kt]||null)?rm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var E=new Ws("action","action",null,l,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ti!==0){var O=p?om(o,p):new FormData(o);Ec(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=p?om(o,p):new FormData(o),Ec(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var tu=0;tu<Uo.length;tu++){var nu=Uo[tu],iE=nu.toLowerCase(),lE=nu[0].toUpperCase()+nu.slice(1);ya(iE,"on"+lE)}ya(If,"onAnimationEnd"),ya(Hf,"onAnimationIteration"),ya(qf,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(_v,"onTransitionRun"),ya(Sv,"onTransitionStart"),ya(wv,"onTransitionCancel"),ya(Gf,"onTransitionEnd"),Y("onMouseEnter",["mouseout","mouseover"]),Y("onMouseLeave",["mouseout","mouseover"]),Y("onPointerEnter",["pointerout","pointerover"]),Y("onPointerLeave",["pointerout","pointerover"]),Ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),sE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function cm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var E=l[p],O=E.instance,K=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){tr(ie)}o.currentTarget=null,c=O}else for(p=0;p<l.length;p++){if(E=l[p],O=E.instance,K=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=K;try{c(o)}catch(ie){tr(ie)}o.currentTarget=null,c=O}}}}function it(e,t){var n=t[vn];n===void 0&&(n=t[vn]=new Set);var l=e+"__bubble";n.has(l)||(um(t,e,2,!1),n.add(l))}function au(e,t,n){var l=0;t&&(l|=4),um(n,e,l,t)}var qr="_reactListening"+Math.random().toString(36).slice(2);function iu(e){if(!e[qr]){e[qr]=!0,F.forEach(function(n){n!=="selectionchange"&&(sE.has(n)||au(n,!1,e),au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qr]||(t[qr]=!0,au("selectionchange",!1,t))}}function um(e,t,n,l){switch(Im(t)){case 2:var o=LE;break;case 8:o=zE;break;default:o=vu}n=o.bind(null,t,n,e),o=void 0,!No||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?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 lu(e,t,n,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var E=l.stateNode.containerInfo;if(E===o)break;if(p===4)for(p=l.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;E!==null;){if(p=Wt(E),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){l=c=p;continue e}E=E.parentNode}}l=l.return}Zs(function(){var K=c,ie=Me(n),ce=[];e:{var Z=$f.get(e);if(Z!==void 0){var V=Ws,Re=e;switch(e){case"keypress":if(Vs(n)===0)break e;case"keydown":case"keyup":V=Jy;break;case"focusin":Re="focus",V=Ro;break;case"focusout":Re="blur",V=Ro;break;case"beforeblur":case"afterblur":V=Ro;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=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=qy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=nv;break;case If:case Hf:case qf:V=Fy;break;case Gf:V=iv;break;case"scroll":case"scrollend":V=Iy;break;case"wheel":V=sv;break;case"copy":case"cut":case"paste":V=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ef;break;case"toggle":case"beforetoggle":V=ov}var Be=(t&4)!==0,xt=!Be&&(e==="scroll"||e==="scrollend"),q=Be?Z!==null?Z+"Capture":null:Z;Be=[];for(var D=K,P;D!==null;){var re=D;if(P=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||P===null||q===null||(re=Yl(D,q),re!=null&&Be.push(Ns(D,re,P))),xt)break;D=D.return}0<Be.length&&(Z=new V(Z,Re,null,n,ie),ce.push({event:Z,listeners:Be}))}}if((t&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Z&&n!==_e&&(Re=n.relatedTarget||n.fromElement)&&(Wt(Re)||Re[tt]))break e;if((V||Z)&&(Z=ie.window===ie?ie:(Z=ie.ownerDocument)?Z.defaultView||Z.parentWindow:window,V?(Re=n.relatedTarget||n.toElement,V=K,Re=Re?Wt(Re):null,Re!==null&&(xt=f(Re),Be=Re.tag,Re!==xt||Be!==5&&Be!==27&&Be!==6)&&(Re=null)):(V=null,Re=K),V!==Re)){if(Be=yf,re="onMouseLeave",q="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Be=Ef,re="onPointerLeave",q="onPointerEnter",D="pointer"),xt=V==null?Z:Xn(V),P=Re==null?Z:Xn(Re),Z=new Be(re,D+"leave",V,n,ie),Z.target=xt,Z.relatedTarget=P,re=null,Wt(ie)===K&&(Be=new Be(q,D+"enter",Re,n,ie),Be.target=P,Be.relatedTarget=xt,re=Be),xt=re,V&&Re)t:{for(Be=rE,q=V,D=Re,P=0,re=q;re;re=Be(re))P++;re=0;for(var Le=D;Le;Le=Be(Le))re++;for(;0<P-re;)q=Be(q),P--;for(;0<re-P;)D=Be(D),re--;for(;P--;){if(q===D||D!==null&&q===D.alternate){Be=q;break t}q=Be(q),D=Be(D)}Be=null}else Be=null;V!==null&&dm(ce,Z,V,Be,!1),Re!==null&&xt!==null&&dm(ce,xt,Re,Be,!0)}}e:{if(Z=K?Xn(K):window,V=Z.nodeName&&Z.nodeName.toLowerCase(),V==="select"||V==="input"&&Z.type==="file")var ht=Rf;else if(xf(Z))if(kf)ht=yv;else{ht=gv;var Oe=mv}else V=Z.nodeName,!V||V.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?K&&xe(K.elementType)&&(ht=Rf):ht=bv;if(ht&&(ht=ht(e,K))){Af(ce,ht,n,ie);break e}Oe&&Oe(e,Z,K),e==="focusout"&&K&&Z.type==="number"&&K.memoizedProps.value!=null&&oi(Z,"number",Z.value)}switch(Oe=K?Xn(K):window,e){case"focusin":(xf(Oe)||Oe.contentEditable==="true")&&(rl=Oe,Lo=K,Jl=null);break;case"focusout":Jl=Lo=rl=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,Uf(ce,n,ie);break;case"selectionchange":if(Ev)break;case"keydown":case"keyup":Uf(ce,n,ie)}var Ze;if(Oo)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 sl?Nf(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(_f&&n.locale!=="ko"&&(sl||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&sl&&(Ze=gf()):(ci=ie,To="value"in ci?ci.value:ci.textContent,sl=!0)),Oe=Gr(K,rt),0<Oe.length&&(rt=new vf(rt,e,null,n,ie),ce.push({event:rt,listeners:Oe}),Ze?rt.data=Ze:(Ze=Tf(n),Ze!==null&&(rt.data=Ze)))),(Ze=uv?dv(e,n):fv(e,n))&&(rt=Gr(K,"onBeforeInput"),0<rt.length&&(Oe=new vf("onBeforeInput","beforeinput",null,n,ie),ce.push({event:Oe,listeners:rt}),Oe.data=Ze)),aE(ce,e,K,n,ie)}cm(ce,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Yl(e,n),o!=null&&l.unshift(Ns(e,o,c)),o=Yl(e,t),o!=null&&l.push(Ns(e,o,c))),e.tag===3)return l;e=e.return}return[]}function rE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,n,l,o){for(var c=t._reactName,p=[];n!==null&&n!==l;){var E=n,O=E.alternate,K=E.stateNode;if(E=E.tag,O!==null&&O===l)break;E!==5&&E!==26&&E!==27||K===null||(O=K,o?(K=Yl(n,c),K!=null&&p.unshift(Ns(n,K,O))):o||(K=Yl(n,c),K!=null&&p.push(Ns(n,K,O)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var oE=/\r\n?/g,cE=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(oE,`
49
+ `).replace(cE,"")}function hm(e,t){return t=fm(t),fm(e)===t}function Tt(e,t,n,l,o,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||J(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&J(e,""+l);break;case"className":Bt(e,"class",l);break;case"tabIndex":Bt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bt(e,n,l);break;case"style":ne(e,l,c);break;case"data":if(t!=="object"){Bt(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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"&&Tt(e,t,"name",o.name,o,null),Tt(e,t,"formEncType",o.formEncType,o,null),Tt(e,t,"formMethod",o.formMethod,o,null),Tt(e,t,"formTarget",o.formTarget,o,null)):(Tt(e,t,"encType",o.encType,o,null),Tt(e,t,"method",o.method,o,null),Tt(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=he);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=nt(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":it("beforetoggle",e),it("toggle",e),gt(e,"popover",l);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ke.get(n)||n,gt(e,n,l))}}function su(e,t,n,l,o,c){switch(n){case"style":ne(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?J(e,l):(typeof l=="number"||typeof l=="bigint")&&J(e,""+l);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"onClick":l!=null&&(e.onclick=he);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!de.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[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):gt(e,n,l)}}}function wn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var l=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Tt(e,t,c,p,n,null)}}o&&Tt(e,t,"srcSet",n.srcSet,n,null),l&&Tt(e,t,"src",n.src,n,null);return;case"input":it("invalid",e);var E=c=p=o=null,O=null,K=null;for(l in n)if(n.hasOwnProperty(l)){var ie=n[l];if(ie!=null)switch(l){case"name":o=ie;break;case"type":p=ie;break;case"checked":O=ie;break;case"defaultChecked":K=ie;break;case"value":c=ie;break;case"defaultValue":E=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(s(137,t));break;default:Tt(e,t,l,ie,n,null)}}Ia(e,c,E,O,K,p,o,!1);return;case"select":it("invalid",e),l=p=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":p=E;break;case"multiple":l=E;default:Tt(e,t,o,E,n,null)}t=c,n=p,e.multiple=!!l,t!=null?Jt(e,!!l,t,!1):n!=null&&Jt(e,!!l,n,!0);return;case"textarea":it("invalid",e),c=o=l=null;for(p in n)if(n.hasOwnProperty(p)&&(E=n[p],E!=null))switch(p){case"value":l=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Tt(e,t,p,E,n,null)}Aa(e,l,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Tt(e,t,O,l,n,null)}return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(l=0;l<ws.length;l++)it(ws[l],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("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(K in n)if(n.hasOwnProperty(K)&&(l=n[K],l!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Tt(e,t,K,l,n,null)}return;default:if(xe(t)){for(ie in n)n.hasOwnProperty(ie)&&(l=n[ie],l!==void 0&&su(e,t,ie,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&Tt(e,t,E,l,n,null))}function uE(e,t,n,l){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,p=null,E=null,O=null,K=null,ie=null;for(V in n){var ce=n[V];if(n.hasOwnProperty(V)&&ce!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=ce;default:l.hasOwnProperty(V)||Tt(e,t,V,null,l,ce)}}for(var Z in l){var V=l[Z];if(ce=n[Z],l.hasOwnProperty(Z)&&(V!=null||ce!=null))switch(Z){case"type":c=V;break;case"name":o=V;break;case"checked":K=V;break;case"defaultChecked":ie=V;break;case"value":p=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==ce&&Tt(e,t,Z,V,l,ce)}}ri(e,p,E,O,K,ie,c,o);return;case"select":V=p=E=Z=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":V=O;default:l.hasOwnProperty(c)||Tt(e,t,c,null,l,O)}for(o in l)if(c=l[o],O=n[o],l.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":Z=c;break;case"defaultValue":E=c;break;case"multiple":p=c;default:c!==O&&Tt(e,t,o,c,l,O)}t=E,n=p,l=V,Z!=null?Jt(e,!!n,Z,!1):!!l!=!!n&&(t!=null?Jt(e,!!n,t,!0):Jt(e,!!n,n?[]:"",!1));return;case"textarea":V=Z=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Tt(e,t,E,null,l,o)}for(p in l)if(o=l[p],c=n[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":Z=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Tt(e,t,p,o,l,c)}Ha(e,Z,V);return;case"option":for(var Re in n)if(Z=n[Re],n.hasOwnProperty(Re)&&Z!=null&&!l.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:Tt(e,t,Re,null,l,Z)}for(O in l)if(Z=l[O],V=n[O],l.hasOwnProperty(O)&&Z!==V&&(Z!=null||V!=null))switch(O){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Tt(e,t,O,Z,l,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)Z=n[Be],n.hasOwnProperty(Be)&&Z!=null&&!l.hasOwnProperty(Be)&&Tt(e,t,Be,null,l,Z);for(K in l)if(Z=l[K],V=n[K],l.hasOwnProperty(K)&&Z!==V&&(Z!=null||V!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,t));break;default:Tt(e,t,K,Z,l,V)}return;default:if(xe(t)){for(var xt in n)Z=n[xt],n.hasOwnProperty(xt)&&Z!==void 0&&!l.hasOwnProperty(xt)&&su(e,t,xt,void 0,l,Z);for(ie in l)Z=l[ie],V=n[ie],!l.hasOwnProperty(ie)||Z===V||Z===void 0&&V===void 0||su(e,t,ie,Z,l,V);return}}for(var q in n)Z=n[q],n.hasOwnProperty(q)&&Z!=null&&!l.hasOwnProperty(q)&&Tt(e,t,q,null,l,Z);for(ce in l)Z=l[ce],V=n[ce],!l.hasOwnProperty(ce)||Z===V||Z==null&&V==null||Tt(e,t,ce,Z,l,V)}function pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],c=o.transferSize,p=o.initiatorType,E=o.duration;if(c&&E&&pm(p)){for(p=0,E=o.responseEnd,l+=1;l<n.length;l++){var O=n[l],K=O.startTime;if(K>E)break;var ie=O.transferSize,ce=O.initiatorType;ie&&pm(ce)&&(O=O.responseEnd,p+=ie*(O<E?1:(E-K)/(O-K)))}if(--l,t+=8*(c+p)/(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 ru=null,ou=null;function $r(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 gm(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 cu(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 uu=null;function fE(){var e=window.event;return e&&e.type==="popstate"?e===uu?!1:(uu=e,!0):(uu=null,!1)}var bm=typeof setTimeout=="function"?setTimeout:void 0,hE=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,pE=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(mE)}:bm;function mE(e){setTimeout(function(){throw e})}function xi(e){return e==="head"}function vm(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),Ll(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var p=c.nextSibling,E=c.nodeName;c[ra]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Ll(t)}function Em(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function du(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":du(n),xa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function gE(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ra])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=ma(e.nextSibling),e===null)break}return null}function bE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function _m(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function fu(e){return e.data==="$?"||e.data==="$~"}function hu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ma(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 pu=null;function Sm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wm(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 Nm(e,t,n){switch(t=$r(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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xa(e)}var ga=new Map,Tm=new Set;function Fr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=Q.d;Q.d={f:vE,r:EE,D:_E,C:SE,L:wE,m:NE,X:xE,S:TE,M:AE};function vE(){var e=ni.f(),t=zr();return e||t}function EE(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?Gh(t):ni.r(e)}var Cl=typeof document>"u"?null:document;function xm(e,t,n){var l=Cl;if(l&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Tm.has(o)||(Tm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function _E(e){ni.D(e),xm("dns-prefetch",e,null)}function SE(e,t){ni.C(e,t),xm("preconnect",e,t)}function wE(e,t,n){ni.L(e,t,n);var l=Cl;if(l&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ml(e);break;case"script":c=Dl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(xs(c))||t==="script"&&l.querySelector(As(c))||(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function NE(e,t){ni.m(e,t);var n=Cl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(l)+'"][href="'+On(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Dl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(As(c)))return}l=n.createElement("link"),wn(l,"link",e),ut(l),n.head.appendChild(l)}}}function TE(e,t,n){ni.S(e,t,n);var l=Cl;if(l&&e){var o=Vn(l).hoistableStyles,c=Ml(e);t=t||"default";var p=o.get(c);if(!p){var E={loading:0,preload:null};if(p=l.querySelector(xs(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&mu(e,n);var O=p=l.createElement("link");ut(O),wn(O,"link",e),O._p=new Promise(function(K,ie){O.onload=K,O.onerror=ie}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Yr(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:E},o.set(c,p)}}}function xE(e,t){ni.X(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function AE(e,t){ni.M(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&gu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Am(e,t,n,l){var o=(o=ve.current)?Fr(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=Ml(n.href),n=Vn(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var c=Vn(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(xs(e)))&&!c._p&&(p.instance=c,p.state.loading=5),ga.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},ga.set(e,n),c||RE(o,e,n,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==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=Dl(n),n=Vn(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ml(e){return'href="'+On(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function Rm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function RE(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),wn(t,"link",n),ut(t),e.head.appendChild(t))}function Dl(e){return'[src="'+On(e)+'"]'}function As(e){return"script[async]"+e}function km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(l)return t.instance=l,ut(l),l;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ut(l),wn(l,"style",o),Yr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ml(n.href);var c=e.querySelector(xs(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;l=Rm(n),(o=ga.get(o))&&mu(l,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var p=c;return p._p=new Promise(function(E,O){p.onload=E,p.onerror=O}),wn(c,"link",l),t.state.loading|=4,Yr(c,n.precedence,e),t.instance=c;case"script":return c=Dl(n.src),(o=e.querySelector(As(c)))?(t.instance=o,ut(o),o):(l=n,(o=ga.get(c))&&(l=v({},n),gu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),wn(o,"link",l),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&&(l=t.instance,t.state.loading|=4,Yr(l,n.precedence,e));return t.instance}function Yr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var E=l[p];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 mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pr=null;function Om(e,t,n){if(Pr===null){var l=new Map,o=Pr=new Map;o.set(n,l)}else o=Pr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ra]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var E=l.get(p);E?E.push(c):l.set(p,[c])}}return l}function Cm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kE(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 Mm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function OE(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ml(l.href),c=t.querySelector(xs(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Kr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ut(c);return}c=t.ownerDocument||t,l=Rm(l),(o=ga.get(o))&&mu(l,o),c=c.createElement("link"),ut(c);var p=c;p._p=new Promise(function(E,O){p.onload=E,p.onerror=O}),wn(c,"link",l),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=Kr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bu=0;function CE(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*dE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Kr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zr=new Map,t.forEach(ME,e),Zr=null,Kr.call(e))}function ME(e,t){if(!(t.state.loading&4)){var n=Zr.get(e);if(n)var l=n.get(null);else{n=new Map,Zr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=n.get(p)||l,c===l&&n.set(null,o),n.set(p,o),this.count++,l=Kr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rs={$$typeof:U,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function DE(e,t,n,l,o,c,p,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=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Dm(e,t,n,l,o,c,p,E,O,K,ie,ce){return e=new DE(e,t,n,p,O,K,ie,ce,E),t=1,c===!0&&(t|=24),c=Wn(3,null,null,t),e.current=c,c.stateNode=e,t=Vo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},ec(c),e}function Lm(e){return e?(e=ul,e):ul}function zm(e,t,n,l,o,c){o=Lm(o),l.context===null?l.context=o:l.pendingContext=o,l=mi(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=gi(e,l,t),n!==null&&(Zn(n,e,t),ss(n,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yu(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Zn(t,e,67108864),yu(e,67108864)}}function Bm(e){if(e.tag===13||e.tag===31){var t=aa();t=mt(t);var n=Ii(e,t);n!==null&&Zn(n,e,t),yu(e,t)}}var Vr=!0;function LE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=2,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function zE(e,t,n,l){var o=M.T;M.T=null;var c=Q.p;try{Q.p=8,vu(e,t,n,l)}finally{Q.p=c,M.T=o}}function vu(e,t,n,l){if(Vr){var o=Eu(l);if(o===null)lu(e,t,l,Qr,n),Hm(e,l);else if(UE(o,e,t,n,l))l.stopPropagation();else if(Hm(e,l),t&4&&-1<jE.indexOf(e)){for(;o!==null;){var c=Gn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Gt(c.pendingLanes);if(p!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;p;){var O=1<<31-qt(p);E.entanglements[1]|=O,p&=~O}Ca(c),(bt&6)===0&&(Dr=je()+500,Ss(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Zn(E,c,2),zr(),yu(c,2)}if(c=Eu(l),c===null&&lu(e,t,l,Qr,n),c===o)break;o=c}o!==null&&l.stopPropagation()}else lu(e,t,l,null,n)}}function Eu(e){return e=Me(e),_u(e)}var Qr=null;function _u(e){if(Qr=null,e=Wt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(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 Qr=e,null}function Im(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(Lt()){case vt:return 2;case Ot:return 8;case xn:case zn:return 32;case An:return 268435456;default:return 32}default:return 32}}var Su=!1,Ai=null,Ri=null,ki=null,ks=new Map,Os=new Map,Oi=[],jE="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 Hm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Cs(e,t,n,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Gn(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function UE(e,t,n,l,o){switch(t){case"focusin":return Ai=Cs(Ai,e,t,n,l,o),!0;case"dragenter":return Ri=Cs(Ri,e,t,n,l,o),!0;case"mouseover":return ki=Cs(ki,e,t,n,l,o),!0;case"pointerover":var c=o.pointerId;return ks.set(c,Cs(ks.get(c)||null,e,t,n,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Os.set(c,Cs(Os.get(c)||null,e,t,n,l,o)),!0}return!1}function qm(e){var t=Wt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Bm(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 Wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);_e=l,n.target.dispatchEvent(l),_e=null}else return t=Gn(n),t!==null&&Um(t),e.blockedOn=n,!1;t.shift()}return!0}function Gm(e,t,n){Wr(e)&&n.delete(t)}function BE(){Su=!1,Ai!==null&&Wr(Ai)&&(Ai=null),Ri!==null&&Wr(Ri)&&(Ri=null),ki!==null&&Wr(ki)&&(ki=null),ks.forEach(Gm),Os.forEach(Gm)}function Jr(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,BE)))}var eo=null;function $m(e){eo!==e&&(eo=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){eo===e&&(eo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(_u(l||n)===null)continue;break}var c=Gn(n);c!==null&&(e.splice(t,3),t-=3,Ec(c,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function Ll(e){function t(O){return Jr(O,e)}Ai!==null&&Jr(Ai,e),Ri!==null&&Jr(Ri,e),ki!==null&&Jr(ki,e),ks.forEach(t),Os.forEach(t);for(var n=0;n<Oi.length;n++){var l=Oi[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)qm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],c=n[l+1],p=o[Kt]||null;if(typeof c=="function")p||$m(n);else if(p){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Kt]||null)E=p.formAction;else if(_u(o)!==null)continue}else E=p.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),$m(n)}}}function Fm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!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 l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function wu(e){this._internalRoot=e}to.prototype.render=wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=aa();zm(n,l,e,t,null,null)},to.prototype.unmount=wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),zr(),t[tt]=null}};function to(e){this._internalRoot=e}to.prototype.unstable_scheduleHydration=function(e){if(e){var t=sa();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&&qm(e)}};var Ym=a.version;if(Ym!=="19.2.8")throw Error(s(527,Ym,"19.2.8"));Q.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 IE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var no=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!no.isDisabled&&no.supportsFiber)try{cn=no.inject(IE),Ht=no}catch{}}return Ds.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,l="",o=Wh,c=Jh,p=ep;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Dm(e,1,!1,null,null,n,l,null,o,c,p,Fm),e[tt]=t.current,iu(e),new wu(t)},Ds.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var l=!1,o="",c=Wh,p=Jh,E=ep,O=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=Dm(e,1,!0,t,n??null,l,o,O,c,p,E,Fm),t.context=Lm(null),n=t.current,l=aa(),l=mt(l),o=mi(l),o.callback=null,gi(n,o,l),n=l,t.current.lanes=n,et(t,n),Ca(t),e[tt]=t.current,iu(e),new to(t)},Ds.version="19.2.8",Ds}var tg;function QE(){if(tg)return xu.exports;tg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),xu.exports=VE(),xu.exports}var WE=QE(),ln;(function(i){i.INSERT="insert",i.DELETE="delete",i.CONTEXT="context"})(ln||(ln={}));const JE={LINE_BY_LINE:"line-by-line"},e_={NONE:"none"},t_={WORD:"word"};var Hl;(function(i){i.AUTO="auto",i.DARK="dark",i.LIGHT="light"})(Hl||(Hl={}));const n_=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],a_=RegExp("["+n_.join("\\")+"]","g");function i_(i){return i.replace(a_,"\\$&")}function ng(i){return i&&i.replace(/\\/g,"/")}function l_(i){let a,r,s,u=0;for(a=0,s=i.length;a<s;a++)r=i.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Gb(i){const a=i.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,i[s]);return r}function ag(i,a){const r=i.split(".");return r.length>1?r[r.length-1]:a}function ig(i,a){return a.reduce((r,s)=>r||i.startsWith(s),!1)}const lg=["a/","b/","i/","w/","c/","o/"];function Li(i,a,r){const s=r!==void 0?[...lg,r]:lg,u=a?new RegExp(`^${i_(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(i)||[],h=s.find(g=>f.indexOf(g)===0);return(h?f.slice(h.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function s_(i,a){return Li(i,"---",a)}function r_(i,a){return Li(i,"+++",a)}function o_(i,a={}){const r=[];let s=null,u=null,f=null,h=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,S=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,R=/^copy from "?(.+)"?/,$=/^copy to "?(.+)"?/,U=/^rename from "?(.+)"?/,W=/^rename to "?(.+)"?/,z=/^similarity index (\d+)%/,ae=/^dissimilarity index (\d+)%/,se=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,G=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,ue=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,Ee=/^new file mode (\d{6})/,j=/^deleted file mode (\d{6}),(\d{6})/,le=i.replace(/\/g,"").replace(/\r\n?/g,`
50
50
  `).split(`
51
- `);function fe(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){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 Q(){fe(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function pe(w){fe();let L;s!==null&&((L=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(w))?(s.isCombined=!1,f=parseInt(L[1],10),y=parseInt(L[2],10)):(L=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(w))?(s.isCombined=!0,f=parseInt(L[1],10),h=parseInt(L[2],10),y=parseInt(L[3],10)):(w.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:h,newStartLine:y,header:w}}function we(w){if(s===null||u===null||f===null||y===null)return;const L={content:w},I=s.isCombined?["+ "," +","++"]:["+"],oe=s.isCombined?["- "," -","--"]:["-"];ig(w,I)?(s.addedLines++,L.type=ln.INSERT,L.oldNumber=void 0,L.newNumber=y++):ig(w,oe)?(s.deletedLines++,L.type=ln.DELETE,L.oldNumber=f++,L.newNumber=void 0):(L.type=ln.CONTEXT,L.oldNumber=f++,L.newNumber=y++),u.lines.push(L)}function De(w,L){let I=L;for(;I<le.length-3;){if(w.startsWith("diff"))return!1;if(le[I].startsWith(b)&&le[I+1].startsWith(v)&&le[I+2].startsWith(_))return!0;I++}return!1}return le.forEach((w,L)=>{if(!w||w.startsWith("*"))return;let I;const oe=le[L-1],me=le[L+1],ve=le[L+2];if(w.startsWith("diff --git")||w.startsWith("diff --combined")){if(Q(),(I=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(w.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(Q(),(I=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&w.startsWith(b)&&me.startsWith(v)&&ve.startsWith(_))&&Q(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&w.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const be=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";pe(be);return}if(w.startsWith(b)&&me.startsWith(v)||w.startsWith(v)&&oe.startsWith(b)){if(s&&!s.oldName&&w.startsWith("--- ")&&(I=l_(w,a.srcPrefix))){s.oldName=I,s.language=ag(s.oldName,s.language);return}if(s&&!s.newName&&w.startsWith("+++ ")&&(I=s_(w,a.dstPrefix))){s.newName=I,s.language=ag(s.newName,s.language);return}}if(s&&(w.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){pe(w);return}if(u&&(w.startsWith("+")||w.startsWith("-")||w.startsWith(" "))){we(w);return}const X=!De(w,L);if(s===null)throw new Error("Where is my file !!!");(I=x.exec(w))?s.oldMode=I[1]:(I=S.exec(w))?s.newMode=I[1]:(I=C.exec(w))?(s.deletedFileMode=I[1],s.isDeleted=!0):(I=A.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=R.exec(w))?(X&&(s.oldName=I[1]),s.isCopy=!0):(I=$.exec(w))?(X&&(s.newName=I[1]),s.isCopy=!0):(I=U.exec(w))?(X&&(s.oldName=I[1]),s.isRename=!0):(I=W.exec(w))?(X&&(s.newName=I[1]),s.isRename=!0):(I=T.exec(w))?(s.isBinary=!0,s.oldName=Li(I[1],void 0,a.srcPrefix),s.newName=Li(I[2],void 0,a.dstPrefix),pe("Binary file")):G.test(w)?(s.isBinary=!0,pe(w)):(I=z.exec(w))?s.unchangedPercentage=parseInt(I[1],10):(I=ae.exec(w))?s.changedPercentage=parseInt(I[1],10):(I=se.exec(w))?(s.checksumBefore=I[1],s.checksumAfter=I[2],I[3]&&(s.mode=I[3])):(I=ee.exec(w))?(s.checksumBefore=[I[2],I[3]],s.checksumAfter=I[1]):(I=ue.exec(w))?(s.oldMode=[I[2],I[3]],s.newMode=I[1]):(I=Ee.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=j.exec(w))&&(s.deletedFileMode=I[1],s.isDeleted=!0)}),fe(),M(),r}class $b{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),h=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(h,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const h=$=>{if($=this.postProcess($,s),u){setTimeout(function(){u($)},0);return}else return $},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(x[0],r,a,0,s);if(x[0].oldPos+1>=g&&S+1>=y)return h(this.buildValues(x[0].lastComponent,r,a));let C=-1/0,A=1/0;const R=()=>{for(let $=Math.max(C,-m);$<=Math.min(A,m);$+=2){let U;const W=x[$-1],z=x[$+1];W&&(x[$-1]=void 0);let ae=!1;if(z){const T=z.oldPos-$;ae=z&&0<=T&&T<y}const se=W&&W.oldPos+1<g;if(!ae&&!se){x[$]=void 0;continue}if(!se||ae&&W.oldPos<z.oldPos?U=this.addToPath(z,!0,!1,0,s):U=this.addToPath(W,!1,!0,1,s),S=this.extractCommon(U,r,a,$,s),U.oldPos+1>=g&&S+1>=y)return h(this.buildValues(U.lastComponent,r,a))||!0;x[$]=U,U.oldPos+1>=g&&(A=Math.min(A,$-1)),S+1>=y&&(C=Math.max(C,$+1))}m++};if(u)(function $(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);R()||$()},0)})();else for(;m<=b&&Date.now()<=_;){const $=R();if($)return $}}addToPath(a,r,s,u,f){const h=a.lastComponent;return h&&!f.oneChangePerToken&&h.added===r&&h.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:h.count+1,added:r,removed:s,previousComponent:h.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:h}}}extractCommon(a,r,s,u,f){const h=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<h&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.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 f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const h=u.length;let y=0,g=0,m=0;for(;y<h;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(_,x){const S=s[m+x];return S.length>_.length?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 o_ extends $b{}const c_=new o_;function u_(i,a,r){return c_.diff(i,a,r)}const sg="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 d_ extends $b{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${sg}]+|[^\\S\\n\\r]+|[^${sg}]`,"ug");return a.match(r)||[]}}const f_=new d_;function h_(i,a,r){return f_.diff(i,a,r)}function p_(i,a){if(i.length===0)return a.length;if(a.length===0)return i.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=i.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=i.length;u++)a.charAt(s-1)===i.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][i.length]}function Vd(i){return(a,r)=>{const s=i(a).trim(),u=i(r).trim();return p_(s,u)/(s.length+u.length)}}function Qd(i){function a(s,u,f=new Map){let h=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;f.has(b)&&(v=f.get(b))||(v=i(s[g],u[m]),f.set(b,v)),v<h&&(h=v,y={indexA:g,indexB:m,score:h})}return y}function r(s,u,f=0,h=new Map){const y=a(s,u,h);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]],_=y.indexA+1,x=y.indexB+1,S=s.slice(_),C=u.slice(x),A=r(g,m,f+1,h),R=r(b,v,f+1,h),$=r(S,C,f+1,h);let U=R;return(y.indexA>0||y.indexB>0)&&(U=A.concat(U)),(s.length>_||u.length>x)&&(U=U.concat($)),U}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"},Eo={matching:JE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:e_.WORD,colorScheme:Hl.LIGHT},Ma="/",Fb=Vd(i=>i.value),m_=Qd(Fb);function Ou(i){return i.indexOf("dev/null")!==-1}function g_(i){return i.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function b_(i){return i.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function fo(i){switch(i){case ln.CONTEXT:return Bn.CONTEXT;case ln.INSERT:return Bn.INSERTS;case ln.DELETE:return Bn.DELETES}}function Wd(i){switch(i){case Hl.DARK:return"d2h-dark-color-scheme";case Hl.AUTO:return"d2h-auto-color-scheme";case Hl.LIGHT:default:return"d2h-light-color-scheme"}}function y_(i){return i?2:1}function ql(i){return i.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(i,a,r=!0){const s=y_(a);return{prefix:i.substring(0,s),content:r?ql(i.substring(s)):i.substring(s)}}function _o(i){const a=ng(i.oldName),r=ng(i.newName);if(a!==r&&!Ou(a)&&!Ou(r)){const s=[],u=[],f=a.split(Ma),h=r.split(Ma),y=f.length,g=h.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===h[m];)s.push(h[m]),m+=1;for(;b>m&&v>m&&f[b]===h[v];)u.unshift(h[v]),b-=1,v-=1;const _=s.join(Ma),x=u.join(Ma),S=f.slice(m,b+1).join(Ma),C=h.slice(m,v+1).join(Ma);return _.length&&x.length?_+Ma+"{"+S+" → "+C+"}"+Ma+x:_.length?_+Ma+"{"+S+" → "+C+"}":x.length?"{"+S+" → "+C+"}"+Ma+x:a+" → "+r}else return Ou(r)?a:r}function Jd(i){return`d2h-${i_(_o(i)).toString().slice(-6)}`}function ef(i){let a="file-changed";return i.isRename||i.isCopy?a="file-renamed":i.isNew?a="file-added":i.isDeleted?a="file-deleted":i.newName!==i.oldName&&(a="file-renamed"),a}function Yb(i,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:h,diffStyle:y}=Object.assign(Object.assign({},Eo),s),g=La(i,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:ql(g.content)},newLine:{prefix:m.prefix,content:ql(m.content)}};const b=y==="char"?u_(g.content,m.content):h_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(A=>A.removed),S=b.filter(A=>A.added);m_(S,x).forEach(A=>{A[0].length===1&&A[1].length===1&&Fb(A[0][0],A[1][0])<h&&(v.push(A[0][0]),v.push(A[1][0]))})}const _=b.reduce((x,S)=>{const C=S.added?"ins":S.removed?"del":null,A=v.indexOf(S)>-1?' class="d2h-change"':"",R=ql(S.value);return C!==null?`${x}<${C}${A}>${R}</${C}>`:`${x}${R}`},"");return{oldLine:{prefix:g.prefix,content:g_(_)},newLine:{prefix:m.prefix,content:b_(_)}}}const rg="file-summary",v_="icon",E_={colorScheme:Eo.colorScheme};class __{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},E_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(rg,"line",{fileHtmlId:Jd(s),oldName:s.oldName,newName:s.newName,fileName:_o(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(v_,ef(s))})).join(`
52
- `);return this.hoganUtils.render(rg,"wrapper",{colorScheme:Wd(this.config.colorScheme),filesNumber:a.length,files:r})}}const Pb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",og="line-by-line",S_="icon",w_="tag";class N_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Pb),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(Ls,"wrapper",{colorScheme:Wd(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(og,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(S_,"file"),h=this.hoganUtils.template(w_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:h})})}generateEmptyDiff(){return this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ls,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?s.header:ql(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,h,y])=>{if(h.length&&y.length&&!f.length)this.applyRematchMatching(h,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.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(h.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,h,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",f,h,y)}),u}).join(`
54
- `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const h=a.lines[f];(h.type!==ln.INSERT&&u.length||h.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),h.type===ln.CONTEXT?r.push([[h],[],[]]):h.type===ln.INSERT&&s.length===0?r.push([[],[],[h]]):h.type===ln.INSERT&&s.length>0?u.push(h):h.type===ln.DELETE&&s.push(h)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Gb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const f={right:"",left:""},h=Math.max(s.length,u.length);for(let y=0;y<h;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Yb(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:fo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=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:fo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:S}=this.generateLineHtml(a,v,_);f.left+=x,f.right+=S}return f}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(og,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ls,"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 Kb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),zs="generic",T_="side-by-side",x_="icon",A_="tag";class R_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Kb),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(zs,"wrapper",{colorScheme:Wd(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(T_,"file-diff"),u=this.hoganUtils.template(zs,"file-path"),f=this.hoganUtils.template(x_,"file"),h=this.hoganUtils.template(A_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:h})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(zs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=Qd(Vd(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(([f,h,y])=>{if(h.length&&y.length&&!f.length)this.applyRematchMatching(h,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=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+=_});else if(h.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,h,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",f,h,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 f=0;f<a.lines.length;f++){const h=a.lines[f];(h.type!==ln.INSERT&&u.length||h.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),h.type===ln.CONTEXT?r.push([[h],[],[]]):h.type===ln.INSERT&&s.length===0?r.push([[],[],[h]]):h.type===ln.INSERT&&s.length>0?u.push(h):h.type===ln.DELETE&&s.push(h)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Gb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(zs,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:ql(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let h=0;h<f;h++){const y=r[h],g=s[h],m=y!==void 0&&g!==void 0?Yb(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:fo(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:fo(g.type)})),{number:g.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,v);u.left+=_,u.right+=x}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(zs,"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 Cu={},cg;function k_(){return cg||(cg=1,(function(i){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,h=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(G,ee){var ue=G.length,Ee=0,j=1,le=2,fe=Ee,M=null,Q=null,pe="",we=[],De=!1,w=0,L=0,I="{{",oe="}}";function me(){pe.length>0&&(we.push({tag:"_t",text:new String(pe)}),pe="")}function ve(){for(var Te=!0,Ge=L;Ge<we.length;Ge++)if(Te=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!Te)return!1;return Te}function X(Te,Ge){if(me(),Te&&ve())for(var $e=L,Ce;$e<we.length;$e++)we[$e].text&&((Ce=we[$e+1])&&Ce.tag==">"&&(Ce.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
51
+ `);function fe(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){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 Q(){fe(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function pe(w){fe();let L;s!==null&&((L=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(w))?(s.isCombined=!1,f=parseInt(L[1],10),y=parseInt(L[2],10)):(L=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(w))?(s.isCombined=!0,f=parseInt(L[1],10),h=parseInt(L[2],10),y=parseInt(L[3],10)):(w.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:h,newStartLine:y,header:w}}function we(w){if(s===null||u===null||f===null||y===null)return;const L={content:w},I=s.isCombined?["+ "," +","++"]:["+"],oe=s.isCombined?["- "," -","--"]:["-"];ig(w,I)?(s.addedLines++,L.type=ln.INSERT,L.oldNumber=void 0,L.newNumber=y++):ig(w,oe)?(s.deletedLines++,L.type=ln.DELETE,L.oldNumber=f++,L.newNumber=void 0):(L.type=ln.CONTEXT,L.oldNumber=f++,L.newNumber=y++),u.lines.push(L)}function De(w,L){let I=L;for(;I<le.length-3;){if(w.startsWith("diff"))return!1;if(le[I].startsWith(b)&&le[I+1].startsWith(v)&&le[I+2].startsWith(_))return!0;I++}return!1}return le.forEach((w,L)=>{if(!w||w.startsWith("*"))return;let I;const oe=le[L-1],me=le[L+1],ve=le[L+2];if(w.startsWith("diff --git")||w.startsWith("diff --combined")){if(Q(),(I=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(w.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(Q(),(I=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(w))&&(g=Li(I[1],void 0,a.dstPrefix),m=Li(I[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&w.startsWith(b)&&me.startsWith(v)&&ve.startsWith(_))&&Q(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&w.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const be=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";pe(be);return}if(w.startsWith(b)&&me.startsWith(v)||w.startsWith(v)&&oe.startsWith(b)){if(s&&!s.oldName&&w.startsWith("--- ")&&(I=s_(w,a.srcPrefix))){s.oldName=I,s.language=ag(s.oldName,s.language);return}if(s&&!s.newName&&w.startsWith("+++ ")&&(I=r_(w,a.dstPrefix))){s.newName=I,s.language=ag(s.newName,s.language);return}}if(s&&(w.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){pe(w);return}if(u&&(w.startsWith("+")||w.startsWith("-")||w.startsWith(" "))){we(w);return}const X=!De(w,L);if(s===null)throw new Error("Where is my file !!!");(I=x.exec(w))?s.oldMode=I[1]:(I=S.exec(w))?s.newMode=I[1]:(I=C.exec(w))?(s.deletedFileMode=I[1],s.isDeleted=!0):(I=A.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=R.exec(w))?(X&&(s.oldName=I[1]),s.isCopy=!0):(I=$.exec(w))?(X&&(s.newName=I[1]),s.isCopy=!0):(I=U.exec(w))?(X&&(s.oldName=I[1]),s.isRename=!0):(I=W.exec(w))?(X&&(s.newName=I[1]),s.isRename=!0):(I=T.exec(w))?(s.isBinary=!0,s.oldName=Li(I[1],void 0,a.srcPrefix),s.newName=Li(I[2],void 0,a.dstPrefix),pe("Binary file")):G.test(w)?(s.isBinary=!0,pe(w)):(I=z.exec(w))?s.unchangedPercentage=parseInt(I[1],10):(I=ae.exec(w))?s.changedPercentage=parseInt(I[1],10):(I=se.exec(w))?(s.checksumBefore=I[1],s.checksumAfter=I[2],I[3]&&(s.mode=I[3])):(I=ee.exec(w))?(s.checksumBefore=[I[2],I[3]],s.checksumAfter=I[1]):(I=ue.exec(w))?(s.oldMode=[I[2],I[3]],s.newMode=I[1]):(I=Ee.exec(w))?(s.newFileMode=I[1],s.isNew=!0):(I=j.exec(w))&&(s.deletedFileMode=I[1],s.isDeleted=!0)}),fe(),M(),r}class $b{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),h=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(h,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const h=$=>{if($=this.postProcess($,s),u){setTimeout(function(){u($)},0);return}else return $},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(x[0],r,a,0,s);if(x[0].oldPos+1>=g&&S+1>=y)return h(this.buildValues(x[0].lastComponent,r,a));let C=-1/0,A=1/0;const R=()=>{for(let $=Math.max(C,-m);$<=Math.min(A,m);$+=2){let U;const W=x[$-1],z=x[$+1];W&&(x[$-1]=void 0);let ae=!1;if(z){const T=z.oldPos-$;ae=z&&0<=T&&T<y}const se=W&&W.oldPos+1<g;if(!ae&&!se){x[$]=void 0;continue}if(!se||ae&&W.oldPos<z.oldPos?U=this.addToPath(z,!0,!1,0,s):U=this.addToPath(W,!1,!0,1,s),S=this.extractCommon(U,r,a,$,s),U.oldPos+1>=g&&S+1>=y)return h(this.buildValues(U.lastComponent,r,a))||!0;x[$]=U,U.oldPos+1>=g&&(A=Math.min(A,$-1)),S+1>=y&&(C=Math.max(C,$+1))}m++};if(u)(function $(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);R()||$()},0)})();else for(;m<=b&&Date.now()<=_;){const $=R();if($)return $}}addToPath(a,r,s,u,f){const h=a.lastComponent;return h&&!f.oneChangePerToken&&h.added===r&&h.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:h.count+1,added:r,removed:s,previousComponent:h.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:h}}}extractCommon(a,r,s,u,f){const h=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<h&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.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 f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const h=u.length;let y=0,g=0,m=0;for(;y<h;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(_,x){const S=s[m+x];return S.length>_.length?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 c_ extends $b{}const u_=new c_;function d_(i,a,r){return u_.diff(i,a,r)}const sg="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 f_ extends $b{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${sg}]+|[^\\S\\n\\r]+|[^${sg}]`,"ug");return a.match(r)||[]}}const h_=new f_;function p_(i,a,r){return h_.diff(i,a,r)}function m_(i,a){if(i.length===0)return a.length;if(a.length===0)return i.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=i.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=i.length;u++)a.charAt(s-1)===i.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][i.length]}function Vd(i){return(a,r)=>{const s=i(a).trim(),u=i(r).trim();return m_(s,u)/(s.length+u.length)}}function Qd(i){function a(s,u,f=new Map){let h=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;f.has(b)&&(v=f.get(b))||(v=i(s[g],u[m]),f.set(b,v)),v<h&&(h=v,y={indexA:g,indexB:m,score:h})}return y}function r(s,u,f=0,h=new Map){const y=a(s,u,h);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]],_=y.indexA+1,x=y.indexB+1,S=s.slice(_),C=u.slice(x),A=r(g,m,f+1,h),R=r(b,v,f+1,h),$=r(S,C,f+1,h);let U=R;return(y.indexA>0||y.indexB>0)&&(U=A.concat(U)),(s.length>_||u.length>x)&&(U=U.concat($)),U}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"},Eo={matching:e_.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:t_.WORD,colorScheme:Hl.LIGHT},Ma="/",Fb=Vd(i=>i.value),g_=Qd(Fb);function Ou(i){return i.indexOf("dev/null")!==-1}function b_(i){return i.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function y_(i){return i.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function fo(i){switch(i){case ln.CONTEXT:return Bn.CONTEXT;case ln.INSERT:return Bn.INSERTS;case ln.DELETE:return Bn.DELETES}}function Wd(i){switch(i){case Hl.DARK:return"d2h-dark-color-scheme";case Hl.AUTO:return"d2h-auto-color-scheme";case Hl.LIGHT:default:return"d2h-light-color-scheme"}}function v_(i){return i?2:1}function ql(i){return i.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(i,a,r=!0){const s=v_(a);return{prefix:i.substring(0,s),content:r?ql(i.substring(s)):i.substring(s)}}function _o(i){const a=ng(i.oldName),r=ng(i.newName);if(a!==r&&!Ou(a)&&!Ou(r)){const s=[],u=[],f=a.split(Ma),h=r.split(Ma),y=f.length,g=h.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===h[m];)s.push(h[m]),m+=1;for(;b>m&&v>m&&f[b]===h[v];)u.unshift(h[v]),b-=1,v-=1;const _=s.join(Ma),x=u.join(Ma),S=f.slice(m,b+1).join(Ma),C=h.slice(m,v+1).join(Ma);return _.length&&x.length?_+Ma+"{"+S+" → "+C+"}"+Ma+x:_.length?_+Ma+"{"+S+" → "+C+"}":x.length?"{"+S+" → "+C+"}"+Ma+x:a+" → "+r}else return Ou(r)?a:r}function Jd(i){return`d2h-${l_(_o(i)).toString().slice(-6)}`}function ef(i){let a="file-changed";return i.isRename||i.isCopy?a="file-renamed":i.isNew?a="file-added":i.isDeleted?a="file-deleted":i.newName!==i.oldName&&(a="file-renamed"),a}function Yb(i,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:h,diffStyle:y}=Object.assign(Object.assign({},Eo),s),g=La(i,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:ql(g.content)},newLine:{prefix:m.prefix,content:ql(m.content)}};const b=y==="char"?d_(g.content,m.content):p_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(A=>A.removed),S=b.filter(A=>A.added);g_(S,x).forEach(A=>{A[0].length===1&&A[1].length===1&&Fb(A[0][0],A[1][0])<h&&(v.push(A[0][0]),v.push(A[1][0]))})}const _=b.reduce((x,S)=>{const C=S.added?"ins":S.removed?"del":null,A=v.indexOf(S)>-1?' class="d2h-change"':"",R=ql(S.value);return C!==null?`${x}<${C}${A}>${R}</${C}>`:`${x}${R}`},"");return{oldLine:{prefix:g.prefix,content:b_(_)},newLine:{prefix:m.prefix,content:y_(_)}}}const rg="file-summary",E_="icon",__={colorScheme:Eo.colorScheme};class S_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},__),r)}render(a){const r=a.map(s=>this.hoganUtils.render(rg,"line",{fileHtmlId:Jd(s),oldName:s.oldName,newName:s.newName,fileName:_o(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(E_,ef(s))})).join(`
52
+ `);return this.hoganUtils.render(rg,"wrapper",{colorScheme:Wd(this.config.colorScheme),filesNumber:a.length,files:r})}}const Pb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",og="line-by-line",w_="icon",N_="tag";class T_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Pb),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(Ls,"wrapper",{colorScheme:Wd(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(og,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(w_,"file"),h=this.hoganUtils.template(N_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:h})})}generateEmptyDiff(){return this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ls,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?s.header:ql(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,h,y])=>{if(h.length&&y.length&&!f.length)this.applyRematchMatching(h,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.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(h.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,h,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",f,h,y)}),u}).join(`
54
+ `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const h=a.lines[f];(h.type!==ln.INSERT&&u.length||h.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),h.type===ln.CONTEXT?r.push([[h],[],[]]):h.type===ln.INSERT&&s.length===0?r.push([[],[],[h]]):h.type===ln.INSERT&&s.length>0?u.push(h):h.type===ln.DELETE&&s.push(h)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Gb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const f={right:"",left:""},h=Math.max(s.length,u.length);for(let y=0;y<h;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Yb(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:fo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=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:fo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:S}=this.generateLineHtml(a,v,_);f.left+=x,f.right+=S}return f}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(og,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ls,"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 Kb=Object.assign(Object.assign({},Eo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),zs="generic",x_="side-by-side",A_="icon",R_="tag";class k_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Kb),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(zs,"wrapper",{colorScheme:Wd(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(x_,"file-diff"),u=this.hoganUtils.template(zs,"file-path"),f=this.hoganUtils.template(A_,"file"),h=this.hoganUtils.template(R_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:_o(a)},{fileIcon:f,fileTag:h})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(zs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=Qd(Vd(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(([f,h,y])=>{if(h.length&&y.length&&!f.length)this.applyRematchMatching(h,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=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+=_});else if(h.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,h,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",f,h,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 f=0;f<a.lines.length;f++){const h=a.lines[f];(h.type!==ln.INSERT&&u.length||h.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),h.type===ln.CONTEXT?r.push([[h],[],[]]):h.type===ln.INSERT&&s.length===0?r.push([[],[],[h]]):h.type===ln.INSERT&&s.length>0?u.push(h):h.type===ln.DELETE&&s.push(h)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Gb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(zs,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:ql(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let h=0;h<f;h++){const y=r[h],g=s[h],m=y!==void 0&&g!==void 0?Yb(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:fo(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:fo(g.type)})),{number:g.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,v);u.left+=_,u.right+=x}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(zs,"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 Cu={},cg;function O_(){return cg||(cg=1,(function(i){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,h=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(G,ee){var ue=G.length,Ee=0,j=1,le=2,fe=Ee,M=null,Q=null,pe="",we=[],De=!1,w=0,L=0,I="{{",oe="}}";function me(){pe.length>0&&(we.push({tag:"_t",text:new String(pe)}),pe="")}function ve(){for(var Te=!0,Ge=L;Ge<we.length;Ge++)if(Te=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!Te)return!1;return Te}function X(Te,Ge){if(me(),Te&&ve())for(var $e=L,Ce;$e<we.length;$e++)we[$e].text&&((Ce=we[$e+1])&&Ce.tag==">"&&(Ce.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
56
56
  `});De=!1,L=we.length}function be(Te,Ge){var $e="="+oe,Ce=Te.indexOf($e,Ge),St=b(Te.substring(Te.indexOf("=",Ge)+1,Ce)).split(" ");return I=St[0],oe=St[St.length-1],Ce+$e.length-1}for(ee&&(ee=ee.split(" "),I=ee[0],oe=ee[1]),w=0;w<ue;w++)fe==Ee?v(I,G,w)?(--w,me(),fe=j):G.charAt(w)==`
57
57
  `?X(De):pe+=G.charAt(w):fe==j?(w+=I.length-1,Q=a.tags[G.charAt(w+1)],M=Q?G.charAt(w+1):"_v",M=="="?(w=be(G,w),fe=Ee):(Q&&w++,fe=le),De=w):v(oe,G,w)?(we.push({tag:M,n:b(pe),otag:I,ctag:oe,i:M=="/"?De-I.length:w+oe.length}),pe="",w+=oe.length-1,fe=Ee,M=="{"&&(oe=="}}"?w++:m(we[we.length-1]))):pe+=G.charAt(w);return X(De,!0),we};function m(T){T.n.substr(T.n.length-1)==="}"&&(T.n=T.n.substring(0,T.n.length-1))}function b(T){return T.trim?T.trim():T.replace(/^\s*|\s*$/g,"")}function v(T,G,ee){if(G.charAt(ee)!=T.charAt(0))return!1;for(var ue=1,Ee=T.length;ue<Ee;ue++)if(G.charAt(ee+ue)!=T.charAt(ue))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(T,G,ee,ue){var Ee=[],j=null,le=null,fe=null;for(le=ee[ee.length-1];T.length>0;){if(fe=T.shift(),le&&le.tag=="<"&&!(fe.tag in _))throw new Error("Illegal content in < super tag.");if(a.tags[fe.tag]<=a.tags.$||S(fe,ue))ee.push(fe),fe.nodes=x(T,fe.tag,ee,ue);else if(fe.tag=="/"){if(ee.length===0)throw new Error("Closing tag without opener: /"+fe.n);if(j=ee.pop(),fe.n!=j.n&&!C(fe.n,j.n,ue))throw new Error("Nesting error: "+j.n+" vs. "+fe.n);return j.end=fe.i,Ee}else fe.tag==`
58
58
  `&&(fe.last=T.length==0||T[0].tag==`
59
- `);Ee.push(fe)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return Ee}function S(T,G){for(var ee=0,ue=G.length;ee<ue;ee++)if(G[ee].o==T.n)return T.tag="#",!0}function C(T,G,ee){for(var ue=0,Ee=ee.length;ue<Ee;ue++)if(ee[ue].c==T&&ee[ue].o==G)return!0}function A(T){var G=[];for(var ee in T)G.push('"'+U(ee)+'": function(c,p,t,i) {'+T[ee]+"}");return"{ "+G.join(",")+" }"}function R(T){var G=[];for(var ee in T.partials)G.push('"'+U(ee)+'":{name:"'+U(T.partials[ee].name)+'", '+R(T.partials[ee])+"}");return"partials: {"+G.join(",")+"}, subs: "+A(T.subs)}a.stringify=function(T,G,ee){return"{code: function (c,p,i) { "+a.wrapMain(T.code)+" },"+R(T)+"}"};var $=0;a.generate=function(T,G,ee){$=0;var ue={code:"",subs:{},partials:{}};return a.walk(T,ue),ee.asString?this.stringify(ue,G,ee):this.makeTemplate(ue,G,ee)},a.wrapMain=function(T){return'var t=this;t.b(i=i||"");'+T+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(T,G,ee){var ue=this.makePartials(T);return ue.code=new Function("c","p","i",this.wrapMain(T.code)),new this.template(ue,G,this,ee)},a.makePartials=function(T){var G,ee={subs:{},partials:T.partials,name:T.name};for(G in ee.partials)ee.partials[G]=this.makePartials(ee.partials[G]);for(G in T.subs)ee.subs[G]=new Function("c","p","t","i",T.subs[G]);return ee};function U(T){return T.replace(h,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function W(T){return~T.indexOf(".")?"d":"f"}function z(T,G){var ee="<"+(G.prefix||""),ue=ee+T.n+$++;return G.partials[ue]={name:T.n,partials:{}},G.code+='t.b(t.rp("'+U(ue)+'",c,p,"'+(T.indent||"")+'"));',ue}a.codegen={"#":function(T,G){G.code+="if(t.s(t."+W(T.n)+'("'+U(T.n)+'",c,p,1),c,p,0,'+T.i+","+T.end+',"'+T.otag+" "+T.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(T.nodes,G),G.code+="});c.pop();}"},"^":function(T,G){G.code+="if(!t.s(t."+W(T.n)+'("'+U(T.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(T.nodes,G),G.code+="};"},">":z,"<":function(T,G){var ee={partials:{},code:"",subs:{},inPartial:!0};a.walk(T.nodes,ee);var ue=G.partials[z(T,G)];ue.subs=ee.subs,ue.partials=ee.partials},$:function(T,G){var ee={subs:{},code:"",partials:G.partials,prefix:T.n};a.walk(T.nodes,ee),G.subs[T.n]=ee.code,G.inPartial||(G.code+='t.sub("'+U(T.n)+'",c,p,i);')},"\n":function(T,G){G.code+=se('"\\n"'+(T.last?"":" + i"))},_v:function(T,G){G.code+="t.b(t.v(t."+W(T.n)+'("'+U(T.n)+'",c,p,0)));'},_t:function(T,G){G.code+=se('"'+U(T.text)+'"')},"{":ae,"&":ae};function ae(T,G){G.code+="t.b(t.t(t."+W(T.n)+'("'+U(T.n)+'",c,p,0)));'}function se(T){return"t.b("+T+");"}a.walk=function(T,G){for(var ee,ue=0,Ee=T.length;ue<Ee;ue++)ee=a.codegen[T[ue].tag],ee&&ee(T[ue],G);return G},a.parse=function(T,G,ee){return ee=ee||{},x(T,"",[],ee.sectionTags||[])},a.cache={},a.cacheKey=function(T,G){return[T,!!G.asString,!!G.disableLambda,G.delimiters,!!G.modelGet].join("||")},a.compile=function(T,G){G=G||{};var ee=a.cacheKey(T,G),ue=this.cache[ee];if(ue){var Ee=ue.partials;for(var j in Ee)delete Ee[j].instance;return ue}return ue=this.generate(this.parse(this.scan(T,G.delimiters),T,G),T,G),this.cache[ee]=ue}})(i)})(Cu)),Cu}var Mu={},ug;function O_(){return ug||(ug=1,(function(i){(function(a){a.Template=function(x,S,C,A){x=x||{},this.r=x.code||this.r,this.c=C,this.options=A||{},this.text=S||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},a.Template.prototype={r:function(x,S,C){return""},v,t:b,render:function(S,C,A){return this.ri([S],C||{},A)},ri:function(x,S,C){return this.r(x,S,C)},ep:function(x,S){var C=this.partials[x],A=S[C.name];if(C.instance&&C.base==A)return C.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[x].base=A,C.subs){S.stackText||(S.stackText={});for(key in C.subs)S.stackText[key]||(S.stackText[key]=this.activeSub!==void 0&&S.stackText[this.activeSub]?S.stackText[this.activeSub]:this.text);A=s(A,C.subs,C.partials,this.stackSubs,this.stackPartials,S.stackText)}return this.partials[x].instance=A,A},rp:function(x,S,C,A){var R=this.ep(x,C);return R?R.ri(S,C,A):""},rs:function(x,S,C){var A=x[x.length-1];if(!_(A)){C(x,S,this);return}for(var R=0;R<A.length;R++)x.push(A[R]),C(x,S,this),x.pop()},s:function(x,S,C,A,R,$,U){var W;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,S,C,A,R,$,U)),W=!!x,!A&&W&&S&&S.push(typeof x=="object"?x:S[S.length-1]),W)},d:function(x,S,C,A){var R,$=x.split("."),U=this.f($[0],S,C,A),W=this.options.modelGet,z=null;if(x==="."&&_(S[S.length-2]))U=S[S.length-1];else for(var ae=1;ae<$.length;ae++)R=r($[ae],U,W),R!==void 0?(z=U,U=R):U="";return A&&!U?!1:(!A&&typeof U=="function"&&(S.push(z),U=this.mv(U,S,C),S.pop()),U)},f:function(x,S,C,A){for(var R=!1,$=null,U=!1,W=this.options.modelGet,z=S.length-1;z>=0;z--)if($=S[z],R=r(x,$,W),R!==void 0){U=!0;break}return U?(!A&&typeof R=="function"&&(R=this.mv(R,S,C)),R):A?!1:""},ls:function(x,S,C,A,R,$){var U=this.options.delimiters;return this.options.delimiters=$,this.b(this.ct(b(x.call(S,R,C)),S,A)),this.options.delimiters=U,!1},ct:function(x,S,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(S,C)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,S,C,A,R,$,U){var W,z=S[S.length-1],ae=x.call(z);return typeof ae=="function"?A?!0:(W=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ae,z,S,C,W.substring(R,$),U)):ae},mv:function(x,S,C){var A=S[S.length-1],R=x.call(A);return typeof R=="function"?this.ct(b(R.call(A)),A,C):R},sub:function(x,S,C,A){var R=this.subs[x];R&&(this.activeSub=x,R(S,C,this,A),this.activeSub=!1)}};function r(x,S,C){var A;return S&&typeof S=="object"&&(S[x]!==void 0?A=S[x]:C&&S.get&&typeof S.get=="function"&&(A=S.get(x))),A}function s(x,S,C,A,R,$){function U(){}U.prototype=x;function W(){}W.prototype=x.subs;var z,ae=new U;ae.subs=new W,ae.subsText={},ae.buf="",A=A||{},ae.stackSubs=A,ae.subsText=$;for(z in S)A[z]||(A[z]=S[z]);for(z in A)ae.subs[z]=A[z];R=R||{},ae.stackPartials=R;for(z in C)R[z]||(R[z]=C[z]);for(z in R)ae.partials[z]=R[z];return ae}var u=/&/g,f=/</g,h=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&amp;").replace(f,"&lt;").replace(h,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(i)})(Mu)),Mu}var Du,dg;function C_(){if(dg)return Du;dg=1;var i=k_();return i.Template=O_().Template,i.template=i.Template,Du=i,Du}var Qt=C_();const rn={};rn["file-summary-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
59
+ `);Ee.push(fe)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return Ee}function S(T,G){for(var ee=0,ue=G.length;ee<ue;ee++)if(G[ee].o==T.n)return T.tag="#",!0}function C(T,G,ee){for(var ue=0,Ee=ee.length;ue<Ee;ue++)if(ee[ue].c==T&&ee[ue].o==G)return!0}function A(T){var G=[];for(var ee in T)G.push('"'+U(ee)+'": function(c,p,t,i) {'+T[ee]+"}");return"{ "+G.join(",")+" }"}function R(T){var G=[];for(var ee in T.partials)G.push('"'+U(ee)+'":{name:"'+U(T.partials[ee].name)+'", '+R(T.partials[ee])+"}");return"partials: {"+G.join(",")+"}, subs: "+A(T.subs)}a.stringify=function(T,G,ee){return"{code: function (c,p,i) { "+a.wrapMain(T.code)+" },"+R(T)+"}"};var $=0;a.generate=function(T,G,ee){$=0;var ue={code:"",subs:{},partials:{}};return a.walk(T,ue),ee.asString?this.stringify(ue,G,ee):this.makeTemplate(ue,G,ee)},a.wrapMain=function(T){return'var t=this;t.b(i=i||"");'+T+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(T,G,ee){var ue=this.makePartials(T);return ue.code=new Function("c","p","i",this.wrapMain(T.code)),new this.template(ue,G,this,ee)},a.makePartials=function(T){var G,ee={subs:{},partials:T.partials,name:T.name};for(G in ee.partials)ee.partials[G]=this.makePartials(ee.partials[G]);for(G in T.subs)ee.subs[G]=new Function("c","p","t","i",T.subs[G]);return ee};function U(T){return T.replace(h,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function W(T){return~T.indexOf(".")?"d":"f"}function z(T,G){var ee="<"+(G.prefix||""),ue=ee+T.n+$++;return G.partials[ue]={name:T.n,partials:{}},G.code+='t.b(t.rp("'+U(ue)+'",c,p,"'+(T.indent||"")+'"));',ue}a.codegen={"#":function(T,G){G.code+="if(t.s(t."+W(T.n)+'("'+U(T.n)+'",c,p,1),c,p,0,'+T.i+","+T.end+',"'+T.otag+" "+T.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(T.nodes,G),G.code+="});c.pop();}"},"^":function(T,G){G.code+="if(!t.s(t."+W(T.n)+'("'+U(T.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(T.nodes,G),G.code+="};"},">":z,"<":function(T,G){var ee={partials:{},code:"",subs:{},inPartial:!0};a.walk(T.nodes,ee);var ue=G.partials[z(T,G)];ue.subs=ee.subs,ue.partials=ee.partials},$:function(T,G){var ee={subs:{},code:"",partials:G.partials,prefix:T.n};a.walk(T.nodes,ee),G.subs[T.n]=ee.code,G.inPartial||(G.code+='t.sub("'+U(T.n)+'",c,p,i);')},"\n":function(T,G){G.code+=se('"\\n"'+(T.last?"":" + i"))},_v:function(T,G){G.code+="t.b(t.v(t."+W(T.n)+'("'+U(T.n)+'",c,p,0)));'},_t:function(T,G){G.code+=se('"'+U(T.text)+'"')},"{":ae,"&":ae};function ae(T,G){G.code+="t.b(t.t(t."+W(T.n)+'("'+U(T.n)+'",c,p,0)));'}function se(T){return"t.b("+T+");"}a.walk=function(T,G){for(var ee,ue=0,Ee=T.length;ue<Ee;ue++)ee=a.codegen[T[ue].tag],ee&&ee(T[ue],G);return G},a.parse=function(T,G,ee){return ee=ee||{},x(T,"",[],ee.sectionTags||[])},a.cache={},a.cacheKey=function(T,G){return[T,!!G.asString,!!G.disableLambda,G.delimiters,!!G.modelGet].join("||")},a.compile=function(T,G){G=G||{};var ee=a.cacheKey(T,G),ue=this.cache[ee];if(ue){var Ee=ue.partials;for(var j in Ee)delete Ee[j].instance;return ue}return ue=this.generate(this.parse(this.scan(T,G.delimiters),T,G),T,G),this.cache[ee]=ue}})(i)})(Cu)),Cu}var Mu={},ug;function C_(){return ug||(ug=1,(function(i){(function(a){a.Template=function(x,S,C,A){x=x||{},this.r=x.code||this.r,this.c=C,this.options=A||{},this.text=S||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},a.Template.prototype={r:function(x,S,C){return""},v,t:b,render:function(S,C,A){return this.ri([S],C||{},A)},ri:function(x,S,C){return this.r(x,S,C)},ep:function(x,S){var C=this.partials[x],A=S[C.name];if(C.instance&&C.base==A)return C.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[x].base=A,C.subs){S.stackText||(S.stackText={});for(key in C.subs)S.stackText[key]||(S.stackText[key]=this.activeSub!==void 0&&S.stackText[this.activeSub]?S.stackText[this.activeSub]:this.text);A=s(A,C.subs,C.partials,this.stackSubs,this.stackPartials,S.stackText)}return this.partials[x].instance=A,A},rp:function(x,S,C,A){var R=this.ep(x,C);return R?R.ri(S,C,A):""},rs:function(x,S,C){var A=x[x.length-1];if(!_(A)){C(x,S,this);return}for(var R=0;R<A.length;R++)x.push(A[R]),C(x,S,this),x.pop()},s:function(x,S,C,A,R,$,U){var W;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,S,C,A,R,$,U)),W=!!x,!A&&W&&S&&S.push(typeof x=="object"?x:S[S.length-1]),W)},d:function(x,S,C,A){var R,$=x.split("."),U=this.f($[0],S,C,A),W=this.options.modelGet,z=null;if(x==="."&&_(S[S.length-2]))U=S[S.length-1];else for(var ae=1;ae<$.length;ae++)R=r($[ae],U,W),R!==void 0?(z=U,U=R):U="";return A&&!U?!1:(!A&&typeof U=="function"&&(S.push(z),U=this.mv(U,S,C),S.pop()),U)},f:function(x,S,C,A){for(var R=!1,$=null,U=!1,W=this.options.modelGet,z=S.length-1;z>=0;z--)if($=S[z],R=r(x,$,W),R!==void 0){U=!0;break}return U?(!A&&typeof R=="function"&&(R=this.mv(R,S,C)),R):A?!1:""},ls:function(x,S,C,A,R,$){var U=this.options.delimiters;return this.options.delimiters=$,this.b(this.ct(b(x.call(S,R,C)),S,A)),this.options.delimiters=U,!1},ct:function(x,S,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(S,C)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,S,C,A,R,$,U){var W,z=S[S.length-1],ae=x.call(z);return typeof ae=="function"?A?!0:(W=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ae,z,S,C,W.substring(R,$),U)):ae},mv:function(x,S,C){var A=S[S.length-1],R=x.call(A);return typeof R=="function"?this.ct(b(R.call(A)),A,C):R},sub:function(x,S,C,A){var R=this.subs[x];R&&(this.activeSub=x,R(S,C,this,A),this.activeSub=!1)}};function r(x,S,C){var A;return S&&typeof S=="object"&&(S[x]!==void 0?A=S[x]:C&&S.get&&typeof S.get=="function"&&(A=S.get(x))),A}function s(x,S,C,A,R,$){function U(){}U.prototype=x;function W(){}W.prototype=x.subs;var z,ae=new U;ae.subs=new W,ae.subsText={},ae.buf="",A=A||{},ae.stackSubs=A,ae.subsText=$;for(z in S)A[z]||(A[z]=S[z]);for(z in A)ae.subs[z]=A[z];R=R||{},ae.stackPartials=R;for(z in C)R[z]||(R[z]=C[z]);for(z in R)ae.partials[z]=R[z];return ae}var u=/&/g,f=/</g,h=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&amp;").replace(f,"&lt;").replace(h,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(i)})(Mu)),Mu}var Du,dg;function M_(){if(dg)return Du;dg=1;var i=O_();return i.Template=C_().Template,i.template=i.Template,Du=i,Du}var Qt=M_();const rn={};rn["file-summary-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
60
60
  `+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
61
61
  `+r),s.b(s.rp("<fileIcon0",i,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",i,a,0))),s.b("</a>"),s.b(`
62
62
  `+r),s.b(' <span class="d2h-file-stats">'),s.b(`
@@ -156,30 +156,30 @@ Error generating stack: `+l.message+`
156
156
  `+r),s.b(" </div>"),s.b(`
157
157
  `+r),s.b(" </div>"),s.b(`
158
158
  `+r),s.b(" </div>"),s.b(`
159
- `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["tag-file-added"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-changed"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-deleted"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-renamed"]=new Qt.Template({code:function(i,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,[f,h])=>{const y=Qt.compile(h,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},rn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const h=this.templateKey(a,r);try{return this.preCompiledTemplates[h].render(s,u,f)}catch{throw new Error(`Could not find template to render '${h}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const D_=Object.assign(Object.assign(Object.assign({},Pb),Kb),{outputFormat:WE.LINE_BY_LINE,drawFileList:!0});function L_(i,a={}){const r=Object.assign(Object.assign({},D_),a),s=typeof i=="string"?r_(i,r):i,u=new M_(r),{colorScheme:f}=r,h={colorScheme:f},y=r.drawFileList?new __(u,h).render(s):"",g=r.outputFormat==="side-by-side"?new R_(u,r).render(s):new N_(u,r).render(s);return y+g}var Lu=qb();function ja(i){const a=[],r=i.split(`
159
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["tag-file-added"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-changed"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-deleted"]=new Qt.Template({code:function(i,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:{}});rn["tag-file-renamed"]=new Qt.Template({code:function(i,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 D_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,h])=>{const y=Qt.compile(h,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},rn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const h=this.templateKey(a,r);try{return this.preCompiledTemplates[h].render(s,u,f)}catch{throw new Error(`Could not find template to render '${h}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const L_=Object.assign(Object.assign(Object.assign({},Pb),Kb),{outputFormat:JE.LINE_BY_LINE,drawFileList:!0});function z_(i,a={}){const r=Object.assign(Object.assign({},L_),a),s=typeof i=="string"?o_(i,r):i,u=new D_(r),{colorScheme:f}=r,h={colorScheme:f},y=r.drawFileList?new S_(u,h).render(s):"",g=r.outputFormat==="side-by-side"?new k_(u,r).render(s):new T_(u,r).render(s);return y+g}var Lu=qb();function ja(i){const a=[],r=i.split(`
160
160
  `);let s=null,u=null;const f=()=>{s&&u&&a.push({path:u,patch:s.join(`
161
- `)}),s=null,u=null};for(const h of r)if(h.startsWith("diff --git ")){f(),s=[h];const y=h.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:h.slice(11)}else if(s&&(s.push(h),h.startsWith("--- a/")&&u==="/dev/null"&&(u=h.slice(6)),h==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function z_(i,a){const r=new Set(a);return ja(i).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
- `)}function j_(i){return U_(i)}function U_(i,a){const s=new Map;for(const{path:u,patch:f}of ja(i)){const h=new Map;let y=0,g=!1;const m=f.split(`
163
- `);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(h.set(y,v===""?"":v.slice(1)),y++))}s.set(u,h)}return s}function B_(i){const a=new Map;for(const[r,s]of j_(i))a.set(r,new Set(s.keys()));return a}function I_(i,a){const r=new Set(a.flatMap(s=>s.files));return ja(i).map(s=>s.path).filter(s=>!r.has(s))}function H_(i){return new Map(ja(i).map(a=>[a.path,a.patch.split(`
164
- `).length]))}function q_(i){const a=i.split(`
161
+ `)}),s=null,u=null};for(const h of r)if(h.startsWith("diff --git ")){f(),s=[h];const y=h.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:h.slice(11)}else if(s&&(s.push(h),h.startsWith("--- a/")&&u==="/dev/null"&&(u=h.slice(6)),h==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function j_(i,a){const r=new Set(a);return ja(i).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
+ `)}function U_(i){return B_(i)}function B_(i,a){const s=new Map;for(const{path:u,patch:f}of ja(i)){const h=new Map;let y=0,g=!1;const m=f.split(`
163
+ `);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(h.set(y,v===""?"":v.slice(1)),y++))}s.set(u,h)}return s}function I_(i){const a=new Map;for(const[r,s]of U_(i))a.set(r,new Set(s.keys()));return a}function H_(i,a){const r=new Set(a.flatMap(s=>s.files));return ja(i).map(s=>s.path).filter(s=>!r.has(s))}function q_(i){return new Map(ja(i).map(a=>[a.path,a.patch.split(`
164
+ `).length]))}function G_(i){const a=i.split(`
165
165
  `),r=a.findIndex(h=>h.startsWith("@@")),s=r<0?[]:a.slice(r).filter(h=>/^[+\- ]/.test(h)),u=(s.length>0?s:a).join(`
166
- `);let f=2166136261;for(let h=0;h<u.length;h++)f^=u.charCodeAt(h),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const Zb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function fg(i,a){return a?`${Zb[a]} **${a}** — ${i}`:i}function Xb(i,a,r){const s=`${a}/${r}`.toLowerCase();for(const[u,f]of Object.entries(i.autoReviewRepos))if(u.toLowerCase()===s)return f;return i.autoReview}const hg=["inbox","awaiting","drafted"],Cd=["requests","settled","sent","archived"],zu={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 pg(i){return i.status==="awaiting"||i.status==="running"?"awaiting":i.status==="sent"?"sent":"drafted"}const Gs=i=>!!i.pr.state&&i.pr.state!=="OPEN";function Md(i){return i.pr.updatedAt??i.updatedAt}function Il(i){return[...i].sort((a,r)=>Md(r).localeCompare(Md(a)))}const Vb=["sent","reviewed","skipped"],tl=i=>i.own===!0;function Qb(i){return[...i.filter(a=>!tl(a)),...i.filter(tl)]}const G_=(i,a)=>tl(i[a])&&(a===0||!tl(i[a-1]));function $s(i){return Qb(Il(i.filter(a=>!Gs(a)&&!Vb.includes(a.status))))}function $_(i,a,r){return $s(i).filter(s=>s.key===a||!r.has(s.key))}function F_(i,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set($s(i).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Il(i.filter(u=>s.has(u.id)&&!r.has(u.id)))}const Y_=(i,a)=>a.some(r=>r.id===i.id);function P_(i,a){const r=i.filter(u=>!Gs(u)),s=Qb(Il(r.filter(u=>!Vb.includes(u.status))));return{inbox:s,awaiting:s.filter(u=>pg(u)==="awaiting"),drafted:s.filter(u=>pg(u)==="drafted"),requests:F_(i,a),settled:Il(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Il(r.filter(u=>u.status==="sent")),archived:Il(i.filter(Gs))}}function K_(i,a){return Cd.includes(i)&&a[i].length===0?"inbox":i}function Wb(i){var a,r;return i.reason==="own-review"?((a=i.review)==null?void 0:a.at)??i.at:i.reason==="own-reply"?((r=i.reply)==null?void 0:r.at)??i.at:i.at}const ho={"own-review":{tag:"reviewed on GitHub",meta:i=>`you reviewed this on GitHub on ${i}`,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:i=>`you replied on GitHub on ${i}`,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:i=>`nobody was asking for this any more on ${i}`,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 Z_(i){var a;return Gs(i)?((a=i.pr.state)==null?void 0:a.toLowerCase())??null:i.handoff?`handed to @${i.handoff.to}`:i.filed?ho[i.filed.reason].tag:i.status==="reviewed"||i.status==="skipped"?i.status:null}function X_(i,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===i.id))==null?void 0:r.reply)??"unknown":"unknown"}const V_={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."}},Q_=i=>V_[i];function W_(i){const a=tf[i.event]??i.event,r=new Date(i.at).toLocaleDateString();return{label:i.auto?"auto-sent a review":"you replied with a review",title:`${i.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 J_(i){const a=ho[i.reason],r=new Date(Wb(i)).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 e0(i){const a=new Date(i.at).toLocaleDateString();return{label:`handed to @${i.to}`,title:i.withdrewYours?`You handed this to @${i.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 @${i.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 t0=(i,a)=>i.handoff?e0(i.handoff):i.sent?W_(i.sent):i.filed?J_(i.filed):Q_(a);function n0(i){const a=i.length,r=a===1?"1 review request":`${a} review requests`,s=i.some(Gs)?"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 Jb(i,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(i).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 a0={approve:"approve",comment:"comment",request_changes:"changes"},tf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function i0(i){return i.status==="running"?{label:"reviewing…",tone:"running"}:i.status==="awaiting"?{label:"review now",tone:"awaiting"}:i.status==="failed"?{label:"run failed",tone:"failed"}:i.sent?{label:`sent · ${tf[i.sent.event]??i.sent.event}`,tone:"sent"}:i.verdict?{label:`${i.verdict.recommendation.replace("_"," ")} ${i.verdict.confidence}%`,tone:a0[i.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function l0(i){return i.status==="running"||i.status==="awaiting"||i.status==="failed"||!i.verdict&&!i.sent?"—":String(i.commentCount)}function ju(i){return i.trusted?"ran the code":i.withSource?"read the full source":"read the diff only"}function s0(i){if(i.commentCount===0)return"no comments drafted";const a=[`${i.commentCount} comment${i.commentCount===1?"":"s"} drafted`];return i.driftedCount&&a.push(`${i.driftedCount} off-diff`),i.gradedCount&&a.push(i.blockerCount?`${i.blockerCount} blocker${i.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function r0(i,a){const r=Object.values(a).filter(s=>s!==i).length;return r===0?"":` · ${r} repo${r===1?"":"s"} ${i?"on click":"auto"}`}function o0(i,a,r=Date.now()){var u,f;if(i.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Jb(i.updatedAt,r)} ago`,ju(i)]};if(i.status==="awaiting"&&tl(i))return{reasoning:"Your own PR. Cerber never drafts these on its own — ask for a self-review when you want one. Send posts it as a comment: GitHub takes no approve or change request from a PR's author.",meta:["no run yet","press r to review now"]};if(i.status==="awaiting")return a!=null&&a.enabled&&a.pollEnabled&&!Xb({autoReview:a.autoReview,autoReviewRepos:a.autoReviewRepos??{}},i.pr.owner,i.pr.repo)?{reasoning:`Found by the inbox poll. ${a.autoReview?`Auto-review is off for ${i.pr.owner}/${i.pr.repo}`:"Auto-review is off"}, so it waits for you to ask for a draft.`,meta:["no run yet","press r to review now"]}:{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(i.status==="failed")return{reasoning:i.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(i.sent)return{reasoning:`Sent to GitHub as ${tf[i.sent.event]??i.sent.event} on ${new Date(i.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(i.handoff?` GitHub asks @${i.handoff.to} for it now.`:""),meta:[...i.handoff?[`you handed this to @${i.handoff.to}`]:[],i.sent.auto?"auto-sent by the daemon":"sent by you",ju(i)]};const s=[ju(i)];if(i.handoff?s.unshift(`you handed this to @${i.handoff.to} on ${new Date(i.handoff.at).toLocaleDateString()}`):i.filed?s.unshift(ho[i.filed.reason].meta(new Date(Wb(i.filed)).toLocaleDateString())):i.status==="reviewed"?s.unshift("you marked this reviewed"):i.status==="skipped"&&s.unshift("you skipped this"),i.costUsd!=null&&s.push(`≈$${i.costUsd.toFixed(2)} at API rates`),s.push(s0(i)),tl(i)?s.push("your PR — sends as a comment"):a!=null&&a.enabled&&i.status==="ready"&&((u=i.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(i.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${i.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),i.handoff){const h=i.commentCount>0||i.verdict!=null;return{reasoning:`GitHub asks @${i.handoff.to} for this review now${i.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(h?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return i.filed?{reasoning:ho[i.filed.reason].reasoning,meta:s}:{reasoning:((f=i.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const c0="/favicon.svg",u0="/favicon-dot.svg",d0=i=>$s(i).some(a=>!(tl(a)&&a.status==="awaiting")),f0=i=>i?u0:c0;function h0(i){const a=f0(d0(i)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Ut(i,a){const r=await fetch(i,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${i}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const So=async()=>{const i=await Ut("/api/reviews");return h0(i),i},nf=()=>Ut("/api/daemon"),mg=i=>Ut(`/api/reviews/${encodeURIComponent(i)}`),p0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),ro=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify(a)}),m0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),g0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments`,{method:"POST",body:JSON.stringify(a)}),b0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"DELETE"}),y0=i=>Ut("/api/reviews",{method:"POST",body:JSON.stringify({input:i})}),v0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/refresh`,{method:"POST"}),ey=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Dd=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify(a)}),E0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),_0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/pending`,{method:"DELETE"}),S0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),ty=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send-preview?event=${a}`),w0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),N0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/raised`,{method:"POST"}),T0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/reviewers`),x0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),A0=i=>`/api/reviews/${encodeURIComponent(i)}/export`,R0=()=>Ut("/api/config"),Uu=(i,a=!1)=>Ut("/api/config/trust",{method:"POST",body:JSON.stringify({rule:i,remove:a})}),k0=(i,a)=>Ut("/api/config/auto-review-repo",{method:"POST",body:JSON.stringify({repo:i,on:a})}),no=i=>Ut("/api/config/daemon",{method:"POST",body:JSON.stringify(i)}),ny="cerber.handoff.recent",ay=5,O0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,iy=i=>O0.test(i);function C0(i){try{const a=JSON.parse(i??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&iy(r)).slice(0,ay):[]}catch{return[]}}function ly(){try{return C0(localStorage.getItem(ny))}catch{return[]}}function M0(i,a){const r=i.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,ay)}function D0(i){const a=M0(ly(),i);try{localStorage.setItem(ny,JSON.stringify(a))}catch{}return a}const Ld=i=>i.trim().replace(/^@/,"");function L0(i,a){const r=new Set,s=[];for(const u of[...a,...i]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(h=>h.toLowerCase()===f)}))}return s}function z0(i,a){const r=Ld(a).toLowerCase();if(!r)return i;const s=i.filter(h=>h.login.toLowerCase().includes(r)),u=h=>h.login.toLowerCase()===r,f=h=>h.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(h=>!u(h)&&f(h)),...s.filter(h=>!f(h))]}function Bu(i){return i.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function zd(i){return i.nodeName.toLowerCase()}function gg(i){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),zd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(i,0),a}function j0(i,a,r){let s=0,u="";const f=[];function h(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!i.length||!a.length?i.length?i:a:i[0].offset!==a[0].offset?i[0].offset<a[0].offset?i:a:a[0].event==="start"?i:a}function g(v){if(!h(v))throw new Error("Node is not an Element");u+=`<${zd(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Bu(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+zd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;i.length||a.length;){let v=y();if(u+=Bu(r.substring(s,v[0].offset)),s=v[0].offset,v===i){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===i&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+Bu(r.substr(s))}const U0={"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(i){var a;return(a=U0[i])!==null&&a!==void 0?a:"plaintext"}var Iu,bg;function I0(){if(bg)return Iu;bg=1;function i(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(te=>{const ye=k[te],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&i(ye)}),k}class a{constructor(te){te.data===void 0&&(te.data={}),this.data=te.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(k,...te){const ye=Object.create(null);for(const ze in k)ye[ze]=k[ze];return te.forEach(function(ze){for(const Qe in ze)ye[Qe]=ze[Qe]}),ye}const u="</span>",f=k=>!!k.scope,h=(k,{prefix:te})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const ye=k.split(".");return[`${te}${ye.shift()}`,...ye.map((ze,Qe)=>`${ze}${"_".repeat(Qe+1)}`)].join(" ")}return`${te}${k}`};class y{constructor(te,ye){this.buffer="",this.classPrefix=ye.classPrefix,te.walk(this)}addText(te){this.buffer+=r(te)}openNode(te){if(!f(te))return;const ye=h(te.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(te){f(te)&&(this.buffer+=u)}value(){return this.buffer}span(te){this.buffer+=`<span class="${te}">`}}const g=(k={})=>{const te={children:[]};return Object.assign(te,k),te};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(te){this.top.children.push(te)}openNode(te){const ye=g({scope:te});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(te){return this.constructor._walk(te,this.rootNode)}static _walk(te,ye){return typeof ye=="string"?te.addText(ye):ye.children&&(te.openNode(ye),ye.children.forEach(ze=>this._walk(te,ze)),te.closeNode(ye)),te}static _collapse(te){typeof te!="string"&&te.children&&(te.children.every(ye=>typeof ye=="string")?te.children=[te.children.join("")]:te.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(te){super(),this.options=te}addText(te){te!==""&&this.add(te)}startScope(te){this.openNode(te)}endScope(){this.closeNode()}__addSublanguage(te,ye){const ze=te.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(k){return k?typeof k=="string"?k:k.source:null}function _(k){return C("(?=",k,")")}function x(k){return C("(?:",k,")*")}function S(k){return C("(?:",k,")?")}function C(...k){return k.map(ye=>v(ye)).join("")}function A(k){const te=k[k.length-1];return typeof te=="object"&&te.constructor===Object?(k.splice(k.length-1,1),te):{}}function R(...k){return"("+(A(k).capture?"":"?:")+k.map(ze=>v(ze)).join("|")+")"}function $(k){return new RegExp(k.toString()+"|").exec("").length-1}function U(k,te){const ye=k&&k.exec(te);return ye&&ye.index===0}const W=new RegExp(R(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function z(k,{joinWith:te}){let ye=0;return k.map(ze=>{ye+=1;const Qe=ye;let et=v(ze),Ae="";for(;et.length>0;){const Se=W.exec(et);if(!Se){Ae+=et;break}Ae+=et.substring(0,Se.index),et=et.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ae+="\\"+String(Number(Se[1])+Qe):(Ae+=Se[0],(Se[0]==="("||/^\(\?[<']/.test(Se[0]))&&ye++)}return Ae}).map(ze=>`(${ze})`).join(te)}const ae=/\b\B/,se="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ue="\\b(0b[01]+)",Ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",j=(k={})=>{const te=/^#![ ]*\//;return k.binary&&(k.begin=C(te,/.*\b/,k.binary,/\b.*/)),s({scope:"meta",begin:te,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},k)},le={begin:"\\\\[\\s\\S]",relevance:0},fe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},Q={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/},pe=function(k,te,ye={}){const ze=s({scope:"comment",begin:k,end:te,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 Qe=R("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(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},we=pe("//","$"),De=pe("/\\*","\\*/"),w=pe("#","$"),L={scope:"number",begin:G,relevance:0},I={scope:"number",begin:ee,relevance:0},oe={scope:"number",begin:ue,relevance:0},me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},ve={scope:"title",begin:se,relevance:0},X={scope:"title",begin:T,relevance:0},be={begin:"\\.\\s*"+T,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:fe,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:oe,BINARY_NUMBER_RE:ue,COMMENT:pe,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:I,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(te,ye)=>{ye.data._beginMatch=te[1]},"on:end":(te,ye)=>{ye.data._beginMatch!==te[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:se,MATCH_NOTHING_RE:ae,METHOD_GUARD:be,NUMBER_MODE:L,NUMBER_RE:G,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:M,REGEXP_MODE:me,RE_STARTERS_RE:Ee,SHEBANG:j,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:X});function $e(k,te){k.input[k.index-1]==="."&&te.ignoreMatch()}function Ce(k,te){k.className!==void 0&&(k.scope=k.className,delete k.className)}function St(k,te){te&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=$e,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function Ke(k,te){Array.isArray(k.illegal)&&(k.illegal=R(...k.illegal))}function In(k,te){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function Je(k,te){k.relevance===void 0&&(k.relevance=1)}const Ln=(k,te)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},k);Object.keys(k).forEach(ze=>{delete k[ze]}),k.keywords=ye.keywords,k.begin=C(ye.beforeMatch,_(ye.begin)),k.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},k.relevance=0,delete ye.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],It="keyword";function Rt(k,te,ye=It){const ze=Object.create(null);return typeof k=="string"?Qe(ye,k.split(" ")):Array.isArray(k)?Qe(ye,k):Object.keys(k).forEach(function(et){Object.assign(ze,Rt(k[et],te,et))}),ze;function Qe(et,Ae){te&&(Ae=Ae.map(Se=>Se.toLowerCase())),Ae.forEach(function(Se){const Ue=Se.split("|");ze[Ue[0]]=[et,on(Ue[0],Ue[1])]})}}function on(k,te){return te?Number(te):yn(k)?0:1}function yn(k){return Hn.includes(k.toLowerCase())}const Yt={},je=k=>{console.error(k)},Lt=(k,...te)=>{console.log(`WARN: ${k}`,...te)},vt=(k,te)=>{Yt[`${k}/${te}`]||(console.log(`Deprecated as of ${k}. ${te}`),Yt[`${k}/${te}`]=!0)},Ot=new Error;function xn(k,te,{key:ye}){let ze=0;const Qe=k[ye],et={},Ae={};for(let Se=1;Se<=te.length;Se++)Ae[Se+ze]=Qe[Se],et[Se+ze]=!0,ze+=$(te[Se-1]);k[ye]=Ae,k[ye]._emit=et,k[ye]._multi=!0}function zn(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ot;if(typeof k.beginScope!="object"||k.beginScope===null)throw je("beginScope must be object"),Ot;xn(k,k.begin,{key:"beginScope"}),k.begin=z(k.begin,{joinWith:""})}}function An(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ot;if(typeof k.endScope!="object"||k.endScope===null)throw je("endScope must be object"),Ot;xn(k,k.end,{key:"endScope"}),k.end=z(k.end,{joinWith:""})}}function jn(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function Rn(k){jn(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),zn(k),An(k)}function cn(k){function te(Ae,Se){return new RegExp(v(Ae),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(Se?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=$(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=te(z(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Ct=Ue.findIndex((qn,sa)=>sa>0&&qn!==void 0),mt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,mt)}}class ze{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new ye;return this.rules.slice(Se).forEach(([Ct,mt])=>Ue.addRule(Ct,mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const mt=this.getMatcher(0);mt.lastIndex=this.lastIndex+1,Ct=mt.exec(Se)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const Se=new ze;return Ae.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&Se.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&Se.addRule(Ae.illegal,{type:"illegal"}),Se}function et(Ae,Se){const Ue=Ae;if(Ae.isCompiled)return Ue;[Ce,In,Rn,Ln].forEach(mt=>mt(Ae,Se)),k.compilerExtensions.forEach(mt=>mt(Ae,Se)),Ae.__beforeBegin=null,[St,Ke,Je].forEach(mt=>mt(Ae,Se)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Rt(Ae.keywords,k.case_insensitive)),Ue.keywordPatternRe=te(Ct,!0),Se&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=te(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=te(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+Se.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=te(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(mt){return kn(mt==="self"?Ae:mt)})),Ae.contains.forEach(function(mt){et(mt,Ue)}),Ae.starts&&et(Ae.starts,Se),Ue.matcher=Qe(Ue),Ue}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=s(k.classNameAliases||{}),et(k)}function Ht(k){return k?k.endsWithParent||Ht(k.starts):!1}function kn(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(te){return s(k,{variants:null},te)})),k.cachedVariants?k.cachedVariants:Ht(k)?s(k,{starts:k.starts?s(k.starts):null}):Object.isFrozen(k)?s(k):k}var qt="11.12.0";class la extends Error{constructor(te,ye){super(te),this.name="HTMLInjectionError",this.html=ye}}const un=r,hn=s,qe=Symbol("nomatch"),pn=7,Pt=function(k){const te=Object.create(null),ye=Object.create(null),ze=[];let Qe=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(Y){return Se.noHighlightRe.test(Y)}function Ct(Y){let ge=Y.className+" ";ge+=Y.parentNode?Y.parentNode.className:"";const Ie=Se.languageDetectRe.exec(ge);if(Ie){const Ye=Wt(Ie[1]);return Ye||(Lt(et.replace("{}",Ie[1])),Lt("Falling back to no-highlight mode for this block.",Y)),Ye?Ie[1]:"no-highlight"}return ge.split(/\s+/).find(Ye=>Ue(Ye)||Wt(Ye))}function mt(Y,ge,Ie){let Ye="",dt="";typeof ge=="object"?(Ye=Y,Ie=ge.ignoreIllegals,dt=ge.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`),dt=Y,Ye=ge),Ie===void 0&&(Ie=!0);const gt={code:Ye,language:dt};de("before:highlight",gt);const Bt=gt.result?gt.result:qn(gt.language,gt.code,Ie);return Bt.code=gt.code,de("after:highlight",Bt),Bt}function qn(Y,ge,Ie,Ye){const dt=Object.create(null);function gt(he,_e){return he.keywords[_e]}function Bt(){if(!J.keywords){B.addText(ne);return}let he=0;J.keywordPatternRe.lastIndex=0;let _e=J.keywordPatternRe.exec(ne),Me="";for(;_e;){Me+=ne.substring(he,_e.index);const Ve=Jt.case_insensitive?_e[0].toLowerCase():_e[0],We=gt(J,Ve);if(We){const[oa,Fl]=We;if(B.addText(Me),Me="",dt[Ve]=(dt[Ve]||0)+1,dt[Ve]<=pn&&(xe+=Fl),oa.startsWith("_"))Me+=_e[0];else{const Ks=Jt.classNameAliases[oa]||oa;zt(_e[0],Ks)}}else Me+=_e[0];he=J.keywordPatternRe.lastIndex,_e=J.keywordPatternRe.exec(ne)}Me+=ne.substring(he),B.addText(Me)}function Zt(){if(ne==="")return;let he=null;if(typeof J.subLanguage=="string"){if(!te[J.subLanguage]){B.addText(ne);return}he=qn(J.subLanguage,ne,!0,N[J.subLanguage]),N[J.subLanguage]=he._top}else he=Na(ne,J.subLanguage.length?J.subLanguage:null);J.relevance>0&&(xe+=he.relevance),B.__addSublanguage(he._emitter,he.language)}function ft(){J.subLanguage!=null?Zt():Bt(),ne=""}function zt(he,_e){he!==""&&(B.startScope(_e),B.addText(he),B.endScope())}function il(he,_e){let Me=1;const Ve=_e.length-1;for(;Me<=Ve;){if(!he._emit[Me]){Me++;continue}const We=Jt.classNameAliases[he[Me]]||he[Me],oa=_e[Me];We?zt(oa,We):(ne=oa,Bt(),ne=""),Me++}}function li(he,_e){return he.scope&&typeof he.scope=="string"&&B.openNode(Jt.classNameAliases[he.scope]||he.scope),he.beginScope&&(he.beginScope._wrap?(zt(ne,Jt.classNameAliases[he.beginScope._wrap]||he.beginScope._wrap),ne=""):he.beginScope._multi&&(il(he.beginScope,_e),ne="")),J=Object.create(he,{parent:{value:J}}),J}function si(he,_e,Me){let Ve=U(he.endRe,Me);if(Ve){if(he["on:end"]){const We=new a(he);he["on:end"](_e,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;he.endsParent&&he.parent;)he=he.parent;return he}}if(he.endsWithParent)return si(he.parent,_e,Me)}function Ba(he){return J.matcher.regexIndex===0?(ne+=he[0],1):(nt=!0,0)}function ll(he){const _e=he[0],Me=he.rule,Ve=new a(Me),We=[Me.__beforeBegin,Me["on:begin"]];for(const oa of We)if(oa&&(oa(he,Ve),Ve.isMatchIgnored))return Ba(_e);return Me.skip?ne+=_e:(Me.excludeBegin&&(ne+=_e),ft(),!Me.returnBegin&&!Me.excludeBegin&&(ne=_e)),li(Me,he),Me.returnBegin?0:_e.length}function On(he){const _e=he[0],Me=ge.substring(he.index),Ve=si(J,he,Me);if(!Ve)return qe;const We=J;J.endScope&&J.endScope._wrap?(ft(),zt(_e,J.endScope._wrap)):J.endScope&&J.endScope._multi?(ft(),il(J.endScope,he)):We.skip?ne+=_e:(We.returnEnd||We.excludeEnd||(ne+=_e),ft(),We.excludeEnd&&(ne=_e));do J.scope&&B.closeNode(),!J.skip&&!J.subLanguage&&(xe+=J.relevance),J=J.parent;while(J!==Ve.parent);return Ve.starts&&li(Ve.starts,he),We.returnEnd?0:_e.length}function ri(){const he=[];for(let _e=J;_e!==Jt;_e=_e.parent)_e.scope&&he.unshift(_e.scope);he.forEach(_e=>B.openNode(_e))}let Ia={};function oi(he,_e){const Me=_e&&_e[0];if(ne+=he,Me==null)return ft(),0;if(Ia.type==="begin"&&_e.type==="end"&&Ia.index===_e.index&&Me===""){if(ne+=ge.slice(_e.index,_e.index+1),!Qe){const Ve=new Error(`0 width match regex (${Y})`);throw Ve.languageName=Y,Ve.badRule=Ia.rule,Ve}return 1}if(Ia=_e,_e.type==="begin")return ll(_e);if(_e.type==="illegal"&&!Ie){const Ve=new Error('Illegal lexeme "'+Me+'" for mode "'+(J.scope||"<unnamed>")+'"');throw Ve.mode=J,Ve}else if(_e.type==="end"){const Ve=On(_e);if(Ve!==qe)return Ve}if(_e.type==="illegal"&&Me==="")return _e.index===ge.length||(ne+=`
168
- `),1;if(He>1e5&&He>_e.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ne+=Me,Me.length}const Jt=Wt(Y);if(!Jt)throw je(et.replace("{}",Y)),new Error('Unknown language: "'+Y+'"');const Ha=cn(Jt);let Aa="",J=Ye||Ha;const N={},B=new Se.__emitter(Se);ri();let ne="",xe=0,ke=0,He=0,nt=!1;try{if(Jt.__emitTokens)Jt.__emitTokens(ge,B);else{for(J.matcher.considerAll();;){He++,nt?nt=!1:J.matcher.considerAll(),J.matcher.lastIndex=ke;const he=J.matcher.exec(ge);if(!he)break;const _e=ge.substring(ke,he.index),Me=oi(_e,he);ke=he.index+Me}oi(ge.substring(ke))}return B.finalize(),Aa=B.toHTML(),{language:Y,value:Aa,relevance:xe,illegal:!1,_emitter:B,_top:J}}catch(he){if(he.message&&he.message.includes("Illegal"))return{language:Y,value:un(ge),illegal:!0,relevance:0,_illegalBy:{message:he.message,index:ke,context:ge.slice(ke-100,ke+100),mode:he.mode,resultSoFar:Aa},_emitter:B};if(Qe)return{language:Y,value:un(ge),illegal:!1,relevance:0,errorRaised:he,_emitter:B,_top:J};throw he}}function sa(Y){const ge={value:un(Y),illegal:!1,relevance:0,_top:Ae,_emitter:new Se.__emitter(Se)};return ge._emitter.addText(Y),ge}function Na(Y,ge){ge=ge||Se.languages||Object.keys(te);const Ie=sa(Y),Ye=ge.filter(Wt).filter(Xn).map(ft=>qn(ft,Y,!1));Ye.unshift(Ie);const dt=Ye.sort((ft,zt)=>{if(ft.relevance!==zt.relevance)return zt.relevance-ft.relevance;if(ft.language&&zt.language){if(Wt(ft.language).supersetOf===zt.language)return 1;if(Wt(zt.language).supersetOf===ft.language)return-1}return 0}),[gt,Bt]=dt,Zt=gt;return Zt.secondBest=Bt,Zt}function dn(Y,ge,Ie){const Ye=ge&&ye[ge]||Ie;Y.classList.add("hljs"),Y.classList.add(`language-${Ye}`)}function wt(Y){let ge=null;const Ie=Ct(Y);if(Ue(Ie))return;if(de("before:highlightElement",{el:Y,language:Ie}),Y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Y);return}if(Y.children.length>0&&(Se.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(Y)),Se.throwUnescapedHTML))throw new la("One of your code blocks includes unescaped HTML.",Y.innerHTML);ge=Y;const Ye=ge.textContent,dt=Ie?mt(Ye,{language:Ie,ignoreIllegals:!0}):Na(Ye);Y.innerHTML=dt.value,Y.dataset.highlighted="yes",dn(Y,Ie,dt.language),Y.result={language:dt.language,re:dt.relevance,relevance:dt.relevance},dt.secondBest&&(Y.secondBest={language:dt.secondBest.language,relevance:dt.secondBest.relevance}),de("after:highlightElement",{el:Y,result:dt,text:Ye})}function Kt(Y){Se=hn(Se,Y)}const tt=()=>{ba(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vn(){ba(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ua=!1;function ba(){function Y(){ba()}if(document.readyState==="loading"){Ua||window.addEventListener("DOMContentLoaded",Y,!1),Ua=!0;return}document.querySelectorAll(Se.cssSelector).forEach(wt)}function Ta(Y,ge){let Ie=null;try{Ie=ge(k)}catch(Ye){if(je("Language definition for '{}' could not be registered.".replace("{}",Y)),Qe)je(Ye);else throw Ye;Ie=Ae}Ie.name||(Ie.name=Y),te[Y]=Ie,Ie.rawDefinition=ge.bind(null,k),Ie.aliases&&Gn(Ie.aliases,{languageName:Y})}function ra(Y){delete te[Y];for(const ge of Object.keys(ye))ye[ge]===Y&&delete ye[ge]}function xa(){return Object.keys(te)}function Wt(Y){return Y=(Y||"").toLowerCase(),te[Y]||te[ye[Y]]}function Gn(Y,{languageName:ge}){typeof Y=="string"&&(Y=[Y]),Y.forEach(Ie=>{ye[Ie.toLowerCase()]=ge})}function Xn(Y){const ge=Wt(Y);return ge&&!ge.disableAutodetect}function Vn(Y){Y["before:highlightBlock"]&&!Y["before:highlightElement"]&&(Y["before:highlightElement"]=ge=>{Y["before:highlightBlock"](Object.assign({block:ge.el},ge))}),Y["after:highlightBlock"]&&!Y["after:highlightElement"]&&(Y["after:highlightElement"]=ge=>{Y["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ut(Y){Vn(Y),ze.push(Y)}function F(Y){const ge=ze.indexOf(Y);ge!==-1&&ze.splice(ge,1)}function de(Y,ge){const Ie=Y;ze.forEach(function(Ye){Ye[Ie]&&Ye[Ie](ge)})}function Ne(Y){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),wt(Y)}Object.assign(k,{highlight:mt,highlightAuto:Na,highlightAll:ba,highlightElement:wt,highlightBlock:Ne,configure:Kt,initHighlighting:tt,initHighlightingOnLoad:vn,registerLanguage:Ta,unregisterLanguage:ra,listLanguages:xa,getLanguage:Wt,registerAliases:Gn,autoDetection:Xn,inherit:hn,addPlugin:ut,removePlugin:F}),k.debugMode=function(){Qe=!1},k.safeMode=function(){Qe=!0},k.versionString=qt,k.regex={concat:C,lookahead:_,either:R,optional:S,anyNumberOfTimes:x};for(const Y in Ge)typeof Ge[Y]=="object"&&i(Ge[Y]);return Object.assign(k,Ge),k},Gt=Pt({});return Gt.newInstance=()=>Pt({}),Iu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Iu}var Hu,yg;function H0(){if(yg)return Hu;yg=1;function i(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,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(h,{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:[f]},{begin:/'/,end:/'/,contains:[f]},{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:[h,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{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 Hu=i,Hu}var qu,vg;function q0(){if(vg)return qu;vg=1;function i(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 f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},h=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,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=a.SHEBANG({binary:`(${x.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},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],R=["true","false"],$={match:/(\/[a-z._-]+)+/},U=["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"],z=["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"],ae=["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:A,literal:R,built_in:[...U,...W,"set","shopt",...z,...ae]},contains:[S,a.SHEBANG(),C,_,h,y,$,g,m,b,v,s]}}return qu=i,qu}var Gu,Eg;function G0(){if(Eg)return Gu;Eg=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[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})"/})]},_={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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},S={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=[x,S],A={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},R=r.optional(f)+a.IDENT_RE+"\\s*\\(",$=12,z={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"},ae=[...C,m,s,a.C_BLOCK_COMMENT_MODE,_,v],se={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:z,contains:ae.concat([{begin:/\(/,end:/\)/,keywords:z,contains:ae.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+y+"[\\*&\\s]+){1,"+$+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:z,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:z,relevance:0},{begin:R,returnBegin:!0,contains:[a.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:z,disableAutodetect:!0,illegal:"</",contains:[].concat(se,T,ae,[...C,{begin:a.IDENT_RE+"::",keywords:z},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:S,strings:v,keywords:z}}}return Gu=i,Gu}var $u,_g;function $0(){if(_g)return $u;_g=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[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},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},x={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]},S=[_,x],C={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},A=r.optional(f)+a.IDENT_RE+"\\s*\\(",R=12,$=["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"],U=["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"],z=["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"],T={type:U,keyword:$,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:W},G={className:"function.dispatch",relevance:0,keywords:{_hint:z},begin:r.concat(/\b/,`(?!${$.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[G,...S,g,s,a.C_BLOCK_COMMENT_MODE,v,b],ue={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:T,contains:ee.concat(["self"]),relevance:0}]),relevance:0},Ee={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+R+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:T,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...S]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ue,Ee,G,ee,[...S,{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:T,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return $u=i,$u}var Fu,Sg;function F0(){if(Sg)return Fu;Sg=1;function i(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"],f=["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"],h=["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:f.concat(h),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={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},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},S={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(S,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},R=a.inherit(A,{illegal:/\n/}),$={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,R]},U={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},W=a.inherit(U,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]});A.contains=[U,$,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],R.contains=[W,$,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const z={variants:[x,U,$,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ae={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},se=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",T={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"}},z,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ae,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,ae,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:"("+se+"\\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,ae],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[z,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},T]}}return Fu=i,Fu}var Yu,wg;function Y0(){if(wg)return Yu;wg=1;const i=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(),f=["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(),h=["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=i(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",S=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",A=[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,_,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:":("+f.join("|")+")"},{begin:":(:)?("+h.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,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:S},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Yu=g,Yu}var Pu,Ng;function P0(){if(Ng)return Pu;Ng=1;function i(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={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}]},h={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}]},_=a.inherit(b,{contains:[]}),x=a.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let S=[s,m];return[b,v,_,x].forEach($=>{$.contains=$.contains.concat(S)}),S=S.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},s,h,u,b,v,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Pu=i,Pu}var Ku,Tg;function K0(){if(Tg)return Ku;Tg=1;function i(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 Ku=i,Ku}var Zu,xg;function Z0(){if(xg)return Zu;xg=1;function i(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]+/),f=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},_={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]})]}]},x="[1-9](_?[0-9])*|0",S="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${S}))?([eE][+-]?(${S})|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"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},se=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.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:[A]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{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=se,A.contains=se;const ue=[{begin:/^\s*=>/,starts:{end:"$",contains:se}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:se}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(ue).concat(b).concat(se)}}return Zu=i,Zu}var Xu,Ag;function X0(){if(Ag)return Xu;Ag=1;function i(a){const h={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:h,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:h,illegal:/["']/}]}]}}return Xu=i,Xu}var Vu,Rg;function V0(){if(Rg)return Vu;Rg=1;function i(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 Vu=i,Vu}var Qu,kg;function Q0(){if(kg)return Qu;kg=1;function i(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 f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},h={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,h,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),x=r.concat(_,"(\\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:x,className:"attr",starts:{end:/$/,contains:[u,g,h,f,y,s]}}]}}return Qu=i,Qu}var Wu,Og;function W0(){if(Og)return Wu;Og=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[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(h,y,g){return g===-1?"":h.replace(y,m=>u(h,y,g-1))}function f(h){const y=h.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),$={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"]},U={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},W={className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[h.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:$,illegal:/<\/|#/,contains:[h.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[h.BACKSLASH_ESCAPE]},h.APOS_STRING_MODE,h.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(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[W,h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:$,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[U,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,s,h.C_BLOCK_COMMENT_MODE]},h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE]},s,U]}}return Wu=f,Wu}var Ju,Cg;function J0(){if(Cg)return Ju;Cg=1;const i="[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"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],h=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(X,{after:be})=>{const Te="</"+X[0].slice(1);return X.input.indexOf(Te,be)!==-1},_=i,x={begin:"<>",end:"</>"},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const Te=X[0].length+X.index,Ge=X.input[Te];if(Ge==="<"||Ge===","){be.ignoreMatch();return}Ge===">"&&(v(X,{after:Te})||be.ignoreMatch());let $e;const Ce=X.input.substring(Te);if($e=Ce.match(/^\s*=/)){be.ignoreMatch();return}if(($e=Ce.match(/^\s+extends\s+/))&&$e.index===0){be.ignoreMatch();return}}},A={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":h},R="[0-9](_?[0-9])*",$=`\\.(${R})`,U="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",W={className:"number",variants:[{begin:`(\\b(${U})((${$})|\\.)?|(${$}))[eE][+-]?(${R})\\b`},{begin:`\\b(${U})\\b((${$})\\b|\\.)?|(${$})\\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:[]},ae={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"xml"}},se={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"graphql"}},G={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,z]},ue={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*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},Ee=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,T,G,{match:/\$\d+/},W];z.contains=Ee.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(Ee)});const j=[].concat(ue,z.contains),le=j.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(j)}]),fe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:le},M={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},Q={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]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[fe],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function w(X){return b.concat("(?!",X.join("|"),")")}const L={match:b.concat(/\b/,w([...f,"super","import","await"].map(X=>`${X}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},oe={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},fe]},me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[fe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:le,CLASS_REFERENCE:Q},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,T,G,ue,{match:/\$\d+/},W,Q,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ue,m.REGEXP_MODE,{className:"function",begin:me,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:A,contains:le}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:S},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[fe,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[fe]},L,De,M,oe,{match:/\$[(.]/}]}}return Ju=g,Ju}var ed,Mg;function eS(){if(Mg)return ed;Mg=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},f={match:/[{}[\],:]/,className:"punctuation",relevance:0},h=["true","false","null"],y={scope:"literal",beginKeywords:h.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:h},contains:[u,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return ed=r,ed}var td,Dg;function tS(){if(Dg)return td;Dg=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[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(f){const h={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:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},S=s,C=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},R=A;return R.variants[1].contains=[A],A.variants[1].contains=[R],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:h,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,C,y,g,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:h,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:h,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,f.C_LINE_COMMENT_MODE,C],relevance:0},f.C_LINE_COMMENT_MODE,C,_,x,v,f.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
- `},S]}}return td=u,td}var nd,Lg;function nS(){if(Lg)return nd;Lg=1;const i=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(),f=["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(),h=["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=f.concat(h).sort().reverse();function m(b){const v=i(b),_=g,x="and or not only",S="[\\w-]+",C="("+S+"|@\\{"+S+"\\})",A=[],R=[],$=function(j){return{className:"string",begin:"~?"+j+".*?"+j}},U=function(j,le,fe){return{className:j,begin:le,relevance:fe}},W={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},z={begin:"\\(",end:"\\)",contains:R,keywords:W,relevance:0};R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,$("'"),$('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,z,U("variable","@@?"+S,10),U("variable","@\\{"+S+"\\}"),U("built_in","~?`[^`]*?`"),{className:"attribute",begin:S+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ae=R.concat({begin:/\{/,end:/\}/,contains:A}),se={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(R)},T={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:R}}]},G={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:R,relevance:0}},ee={className:"variable",variants:[{begin:"@"+S+"\\s*:",relevance:15},{begin:"@"+S}],starts:{end:"[;}]",returnEnd:!0,contains:ae}},ue={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,se,U("keyword","all\\b"),U("variable","@\\{"+S+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,U("selector-tag",C,0),U("selector-id","#"+C),U("selector-class","\\."+C,0),U("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+h.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ae},{begin:"!important"},v.FUNCTION_DISPATCH]},Ee={begin:S+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[ue]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G,ee,Ee,T,ue,se,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return nd=m,nd}var ad,zg;function aS(){if(zg)return ad;zg=1;function i(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[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:f.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:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ad=i,ad}var id,jg;function iS(){if(jg)return id;jg=1;function i(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]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},h={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,f,h,y]}}return id=i,id}var ld,Ug;function lS(){if(Ug)return ld;Ug=1;function i(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}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},h={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},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,h,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(A,R,$="\\1")=>{const U=$==="\\1"?$:r.concat($,R);return r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,U,/(?:\\.|[^\\\/])*?/,$,u)},S=(A,R,$)=>r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,$,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:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("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 h.contains=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:C}}return ld=i,ld}var sd,Bg;function sS(){if(Bg)return sd;Bg=1;function i(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 sd=i,sd}var rd,Ig;function rS(){if(Ig)return rd;Ig=1;function i(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),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),h=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)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(fe,M)=>{M.data._beginMatch=fe[1]||fe[2]},"on:end":(fe,M)=>{M.data._beginMatch!==fe[1]&&M.ignoreMatch()}},x=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),S=`[
170
- ]`,C={scope:"string",variants:[v,b,_,x]},A={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},R=["false","null","true"],$=["__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"],U=["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"],z={keyword:$,literal:(fe=>{const M=[];return fe.forEach(Q=>{M.push(Q),Q.toLowerCase()===Q?M.push(Q.toUpperCase()):M.push(Q.toLowerCase())}),M})(R),built_in:U},ae=fe=>fe.map(M=>M.replace(/\|\d+$/,"")),se={variants:[{match:[/new/,r.concat(S,"+"),r.concat("(?!",ae(U).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},T=r.concat(u,"\\b(?!\\()"),G={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ue={relevance:0,begin:/\(/,end:/\)/,keywords:z,contains:[ee,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se]},Ee={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ae($).join("\\b|"),"|",ae(U).join("\\b|"),"\\b)"),u,r.concat(S,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ue]};ue.contains.push(Ee);const j=[ee,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se],le={begin:r.concat(/#\[\s*\\?/,r.either(f,h)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",variants:[{match:f},{match:h}]}]};return{case_insensitive:!1,keywords:z,contains:[le,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,Ee,G,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},se,{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:z,contains:["self",le,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A]}]},{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,A]}}return rd=i,rd}var od,Hg;function oS(){if(Hg)return od;Hg=1;function i(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 od=i,od}var cd,qg;function cS(){if(qg)return cd;qg=1;function i(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return cd=i,cd}var ud,Gg;function uS(){if(Gg)return ud;Gg=1;function i(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},_={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]},x="[0-9](_?[0-9])*",S=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,C=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${S}))[eE][+-]?(${x})[jJ]?(?=${C})`},{begin:`(${S})[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(${x})[jJ](?=${C})`}]},R={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},$={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,R,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[$]},{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:[A,$,_]}]}}return ud=i,ud}var dd,$g;function dS(){if($g)return dd;$g=1;function i(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return dd=i,dd}var fd,Fg;function fS(){if(Fg)return fd;Fg=1;function i(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]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,h=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:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[h,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:h},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return fd=i,fd}var hd,Yg;function hS(){if(Yg)return hd;Yg=1;function i(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),h={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,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:"->"},h]}}return hd=i,hd}var pd,Pg;function pS(){if(Pg)return pd;Pg=1;const i=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(),f=["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(),h=["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=i(m),v=h,_=f,x="@[a-z-]+",S="and or not only",A={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:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{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,A,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:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:S,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return pd=g,pd}var md,Kg;function mS(){if(Kg)return md;Kg=1;function i(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return md=i,md}var gd,Zg;function gS(){if(Zg)return gd;Zg=1;function i(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},h=["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"],_=["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"],x=["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"],S=v,C=[...b,...m].filter(ae=>!v.includes(ae)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={match:r.concat(/\b/,r.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};function U(ae){return r.concat(/\b/,r.either(...ae.map(se=>se.replace(/\s+/,"\\s+"))),/\b/)}const W={scope:"keyword",match:U(x),relevance:0};function z(ae,{exceptions:se,when:T}={}){const G=T;return se=se||[],ae.map(ee=>ee.match(/\|\d+$/)||se.includes(ee)?ee:G(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:z(C,{when:ae=>ae.length<3}),literal:h,type:g,built_in:_},contains:[{scope:"type",match:U(y)},W,$,A,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,R]}}return gd=i,gd}var bd,Xg;function bS(){if(Xg)return bd;Xg=1;function i(T){return T?typeof T=="string"?T:T.source:null}function a(T){return r("(?=",T,")")}function r(...T){return T.map(ee=>i(ee)).join("")}function s(T){const G=T[T.length-1];return typeof G=="object"&&G.constructor===Object?(T.splice(T.length-1,1),G):{}}function u(...T){return"("+(s(T).capture?"":"?:")+T.map(ue=>i(ue)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=T=>r(/\b/,T,/\w$/.test(T)?/\b/:/\B/),h=["Protocol","Type"].map(f),y=["init","self"].map(f),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"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["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"],S=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(S,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(S,C,"*"),R=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]/),$=u(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),U=r(R,$,"*"),W=r(/[A-Z]/,$,"*"),z=["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\(/,U,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ae=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function se(T){const G={match:/\s+/,relevance:0},ee=T.COMMENT("/\\*","\\*/",{contains:["self"]}),ue=[T.C_LINE_COMMENT_MODE,ee],Ee={match:[/\./,u(...h,...y)],className:{2:"keyword"}},j={match:r(/\./,u(...m)),relevance:0},le=m.filter(qe=>typeof qe=="string").concat(["_|0"]),fe=m.filter(qe=>typeof qe!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...fe,...y)}]},Q={$pattern:u(/\b\w+/,/#\w+/),keyword:le.concat(_),literal:b},pe=[Ee,j,M],we={match:r(/\./,u(...x)),relevance:0},De={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},w=[we,De],L={match:/->/,relevance:0},I={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${C})+`}]},oe=[L,I],me="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${me})(\\.(${me}))?([eE][+-]?(${me}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${me}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},be=(qe="")=>({className:"subst",variants:[{match:r(/\\/,qe,/[0\\tnr"']/)},{match:r(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Te=(qe="")=>({className:"subst",match:r(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(qe="")=>({className:"subst",label:"interpol",begin:r(/\\/,qe,/\(/),end:/\)/}),$e=(qe="")=>({begin:r(qe,/"""/),end:r(/"""/,qe),contains:[be(qe),Te(qe),Ge(qe)]}),Ce=(qe="")=>({begin:r(qe,/"/),end:r(/"/,qe),contains:[be(qe),Ge(qe)]}),St={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ke=[T.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[T.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ke},Je=qe=>{const pn=r(qe,/\//),Pt=r(/\//,qe);return{begin:pn,end:Pt,contains:[...Ke,{scope:"comment",begin:`#(?!.*${Pt})`,end:/$/}]}},Ln={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},Hn={match:r(/`/,U,/`/)},It={className:"variable",match:/\$\d+/},Rt={className:"variable",match:`\\$${$}+`},on=[Hn,It,Rt],yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ae,contains:[...oe,X,St]}]}},Yt={scope:"keyword",match:r(/@/,u(...z),a(u(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,U)},Lt=[yn,Yt,je],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)/,$,"+")},{className:"type",match:W,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(W)),relevance:0}]},Ot={begin:/</,end:/>/,keywords:Q,contains:[...ue,...pe,...Lt,L,vt]};vt.contains.push(Ot);const xn={match:r(U,/\s*:/),keywords:"_|0",relevance:0},zn={begin:/\(/,end:/\)/,relevance:0,keywords:Q,contains:["self",xn,...ue,Ln,...pe,...w,...oe,X,St,...on,...Lt,vt]},An={begin:/</,end:/>/,keywords:"repeat each",contains:[...ue,vt]},jn={begin:u(a(r(U,/\s*:/)),a(r(U,/\s+/,U,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:U}]},Rn={begin:/\(/,end:/\)/,keywords:Q,contains:[jn,...ue,...pe,...oe,X,St,...Lt,vt,zn],endsParent:!0,illegal:/["']/},cn={match:[/(func|macro)/,/\s+/,u(Hn.match,U,A)],className:{1:"keyword",3:"title.function"},contains:[An,Rn,G],illegal:[/\[/,/%/]},Ht={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[An,Rn,G],illegal:/\[|%/},kn={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},qt={begin:[/precedencegroup/,/\s+/,W],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},la={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,U,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:Q,contains:[An,...pe,{begin:/:/,end:/\{/,keywords:Q,contains:[{scope:"title.class.inherited",match:W},...pe],relevance:0}]};for(const qe of St.variants){const pn=qe.contains.find(Gt=>Gt.label==="interpol");pn.keywords=Q;const Pt=[...pe,...w,...oe,X,St,...on];pn.contains=[...Pt,{begin:/\(/,end:/\)/,contains:["self",...Pt]}]}return{name:"Swift",keywords:Q,contains:[...ue,cn,Ht,la,un,hn,kn,qt,{beginKeywords:"import",end:/$/,contains:[...ue],relevance:0},Ln,...pe,...w,...oe,X,St,...on,...Lt,vt,zn]}}return bd=se,bd}var yd,Vg;function yS(){if(Vg)return yd;Vg=1;function i(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]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},h={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,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={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"},S={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[S],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[S],illegal:"\\n",relevance:0},R=[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}},x,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,A,h,y],$=[...R];return $.pop(),$.push(g),S.contains=$,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}return yd=i,yd}var vd,Qg;function vS(){if(Qg)return vd;Qg=1;const i="[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"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],h=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,_=(be,{after:Te})=>{const Ge="</"+be[0].slice(1);return be.input.indexOf(Ge,Te)!==-1},x=i,S={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,Te)=>{const Ge=be[0].length+be.index,$e=be.input[Ge];if($e==="<"||$e===","){Te.ignoreMatch();return}$e===">"&&(_(be,{after:Ge})||Te.ignoreMatch());let Ce;const St=be.input.substring(Ge);if(Ce=St.match(/^\s*=/)){Te.ignoreMatch();return}if((Ce=St.match(/^\s+extends\s+/))&&Ce.index===0){Te.ignoreMatch();return}}},R={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":h},$="[0-9](_?[0-9])*",U=`\\.(${$})`,W="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",z={className:"number",variants:[{begin:`(\\b(${W})((${U})|\\.)?|(${U}))[eE][+-]?(${$})\\b`},{begin:`\\b(${W})\\b((${U})\\b|\\.)?|(${U})\\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},ae={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},se={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"css"}},G={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ae]},Ee={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:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},j=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,T,G,ee,{match:/\$\d+/},z];ae.contains=j.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(j)});const le=[].concat(Ee,ae.contains),fe=le.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(le)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:fe},Q={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},pe={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]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(be){return v.concat("(?!",be.join("|"),")")}const I={match:v.concat(/\b/,L([...f,"super","import","await"].map(be=>`${be}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:fe,CLASS_REFERENCE:pe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,T,G,ee,Ee,{match:/\$\d+/},z,pe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},X,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Ee,b.REGEXP_MODE,{className:"function",begin:ve,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:R,contains:fe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:S.begin,end:S.end},{match:C},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.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:[M,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},I,w,Q,me,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),x=i,S=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:S},contains:[_.exports.CLASS_REFERENCE]},R={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},$=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],U={$pattern:i,keyword:a.concat($),literal:r,built_in:y.concat(S),"variable.language":h},W={className:"meta",begin:"@"+x},z=(G,ee,ue)=>{const Ee=G.contains.findIndex(j=>j.label===ee);if(Ee===-1)throw new Error("can not find mode to replace");G.contains.splice(Ee,1,ue)};Object.assign(_.keywords,U),_.exports.PARAMS_CONTAINS.push(W);const ae=_.contains.find(G=>G.scope==="attr"),se=Object.assign({},ae,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ae,se]),_.contains=_.contains.concat([W,C,A,se]),z(_,"shebang",b.SHEBANG()),z(_,"use_strict",R);const T=_.contains.find(G=>G.label==="func.def");return T.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return vd=m,vd}var Ed,Wg;function ES(){if(Wg)return Ed;Wg=1;function i(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,h=/\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(h,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(h,f),/ +/,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+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=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,_,x,{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:[x]}]}}return Ed=i,Ed}var _d,Jg;function _S(){if(Jg)return _d;Jg=1;function i(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"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},h={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"}},h,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return _d=i,_d}var Sd,eb;function SS(){if(eb)return Sd;eb=1;var i=I0();return i.registerLanguage("xml",H0()),i.registerLanguage("bash",q0()),i.registerLanguage("c",G0()),i.registerLanguage("cpp",$0()),i.registerLanguage("csharp",F0()),i.registerLanguage("css",Y0()),i.registerLanguage("markdown",P0()),i.registerLanguage("diff",K0()),i.registerLanguage("ruby",Z0()),i.registerLanguage("go",X0()),i.registerLanguage("graphql",V0()),i.registerLanguage("ini",Q0()),i.registerLanguage("java",W0()),i.registerLanguage("javascript",J0()),i.registerLanguage("json",eS()),i.registerLanguage("kotlin",tS()),i.registerLanguage("less",nS()),i.registerLanguage("lua",aS()),i.registerLanguage("makefile",iS()),i.registerLanguage("perl",lS()),i.registerLanguage("objectivec",sS()),i.registerLanguage("php",rS()),i.registerLanguage("php-template",oS()),i.registerLanguage("plaintext",cS()),i.registerLanguage("python",uS()),i.registerLanguage("python-repl",dS()),i.registerLanguage("r",fS()),i.registerLanguage("rust",hS()),i.registerLanguage("scss",pS()),i.registerLanguage("shell",mS()),i.registerLanguage("sql",gS()),i.registerLanguage("swift",bS()),i.registerLanguage("yaml",yS()),i.registerLanguage("typescript",vS()),i.registerLanguage("vbnet",ES()),i.registerLanguage("wasm",_S()),i.HighlightJS=i,i.default=i,Sd=i,Sd}var wS=SS();const af=Hb(wS),NS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},TS=2e5,sy="http://www.w3.org/1999/xhtml";function xS(i){for(const a of i.querySelectorAll(".d2h-file-wrapper")){const r=AS(a.dataset.lang??"");if(r)for(const s of RS(a))tb(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),tb(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function AS(i){const a=NS[i]??B0(i);return a==="plaintext"||!af.getLanguage(a)?null:a}function RS(i){const a=[];let r=[];for(const s of i.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const h=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:h,ctn:f})}return r.length&&a.push(r),a}function tb(i,a,r){if(i.filter(a).length===0)return;const u=i.map(y=>y.ctn.textContent??"").join(`
171
- `);if(!u.trim()||u.length>TS)return;const f=OS(u)&&CS(r)?`/**
172
- `:"",h=DS(af.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);i.forEach((y,g)=>{const m=h[g];m===void 0||!a(y)||MS(y.ctn,m)})}const kS=/(^|\s)\*\//m,nb=/^\s*\*(\s|$)/;function OS(i){const a=i.search(kS);if(a===-1){const s=i.split(`
166
+ `);let f=2166136261;for(let h=0;h<u.length;h++)f^=u.charCodeAt(h),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const Zb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function fg(i,a){return a?`${Zb[a]} **${a}** — ${i}`:i}function Xb(i,a){if(a.requestedViaTeam!==!1&&!i.autoReviewTeamRequests)return!1;const r=`${a.owner}/${a.repo}`.toLowerCase();for(const[s,u]of Object.entries(i.autoReviewRepos))if(s.toLowerCase()===r)return u;return i.autoReview}const hg=["inbox","awaiting","drafted"],Cd=["requests","settled","sent","archived"],zu={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 pg(i){return i.status==="awaiting"||i.status==="running"?"awaiting":i.status==="sent"?"sent":"drafted"}const $s=i=>!!i.pr.state&&i.pr.state!=="OPEN";function Md(i){return i.pr.updatedAt??i.updatedAt}function Il(i){return[...i].sort((a,r)=>Md(r).localeCompare(Md(a)))}const Vb=["sent","reviewed","skipped"],tl=i=>i.own===!0;function Qb(i){return[...i.filter(a=>!tl(a)),...i.filter(tl)]}const $_=(i,a)=>tl(i[a])&&(a===0||!tl(i[a-1]));function Fs(i){return Qb(Il(i.filter(a=>!$s(a)&&!Vb.includes(a.status))))}function F_(i,a,r){return Fs(i).filter(s=>s.key===a||!r.has(s.key))}function Y_(i,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(Fs(i).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Il(i.filter(u=>s.has(u.id)&&!r.has(u.id)))}const P_=(i,a)=>a.some(r=>r.id===i.id);function K_(i,a){const r=i.filter(u=>!$s(u)),s=Qb(Il(r.filter(u=>!Vb.includes(u.status))));return{inbox:s,awaiting:s.filter(u=>pg(u)==="awaiting"),drafted:s.filter(u=>pg(u)==="drafted"),requests:Y_(i,a),settled:Il(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Il(r.filter(u=>u.status==="sent")),archived:Il(i.filter($s))}}function Z_(i,a){return Cd.includes(i)&&a[i].length===0?"inbox":i}function Wb(i){var a,r;return i.reason==="own-review"?((a=i.review)==null?void 0:a.at)??i.at:i.reason==="own-reply"?((r=i.reply)==null?void 0:r.at)??i.at:i.at}const ho={"own-review":{tag:"reviewed on GitHub",meta:i=>`you reviewed this on GitHub on ${i}`,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:i=>`you replied on GitHub on ${i}`,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:i=>`nobody was asking for this any more on ${i}`,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 X_(i){var a;return $s(i)?((a=i.pr.state)==null?void 0:a.toLowerCase())??null:i.handoff?`handed to @${i.handoff.to}`:i.filed?ho[i.filed.reason].tag:i.status==="reviewed"||i.status==="skipped"?i.status:null}function V_(i,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===i.id))==null?void 0:r.reply)??"unknown":"unknown"}const Q_={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."}},W_=i=>Q_[i];function J_(i){const a=tf[i.event]??i.event,r=new Date(i.at).toLocaleDateString();return{label:i.auto?"auto-sent a review":"you replied with a review",title:`${i.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 e0(i){const a=ho[i.reason],r=new Date(Wb(i)).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 t0(i){const a=new Date(i.at).toLocaleDateString();return{label:`handed to @${i.to}`,title:i.withdrewYours?`You handed this to @${i.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 @${i.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 n0=(i,a)=>i.handoff?t0(i.handoff):i.sent?J_(i.sent):i.filed?e0(i.filed):W_(a);function a0(i){const a=i.length,r=a===1?"1 review request":`${a} review requests`,s=i.some($s)?"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 Jb(i,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(i).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 i0={approve:"approve",comment:"comment",request_changes:"changes"},tf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function l0(i){return i.status==="running"?{label:"reviewing…",tone:"running"}:i.status==="awaiting"?{label:"review now",tone:"awaiting"}:i.status==="failed"?{label:"run failed",tone:"failed"}:i.sent?{label:`sent · ${tf[i.sent.event]??i.sent.event}`,tone:"sent"}:i.verdict?{label:`${i.verdict.recommendation.replace("_"," ")} ${i.verdict.confidence}%`,tone:i0[i.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function s0(i){return i.status==="running"||i.status==="awaiting"||i.status==="failed"||!i.verdict&&!i.sent?"—":String(i.commentCount)}function ju(i){return i.trusted?"ran the code":i.withSource?"read the full source":"read the diff only"}function r0(i){if(i.commentCount===0)return"no comments drafted";const a=[`${i.commentCount} comment${i.commentCount===1?"":"s"} drafted`];return i.driftedCount&&a.push(`${i.driftedCount} off-diff`),i.gradedCount&&a.push(i.blockerCount?`${i.blockerCount} blocker${i.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function o0(i,a){const r=Object.values(a).filter(s=>s!==i).length;return r===0?"":` · ${r} repo${r===1?"":"s"} ${i?"on click":"auto"}`}const ey=i=>i.requestedViaTeam===void 0?!1:i.requestedViaTeam;function c0(i,a,r=Date.now()){var u,f;if(i.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Jb(i.updatedAt,r)} ago`,ju(i)]};if(i.status==="awaiting"&&tl(i))return{reasoning:"Your own PR. Cerber never drafts these on its own — ask for a self-review when you want one. Send posts it as a comment: GitHub takes no approve or change request from a PR's author.",meta:["no run yet","press r to review now"]};if(i.status==="awaiting"){if(a!=null&&a.enabled&&a.pollEnabled){const h={autoReview:a.autoReview,autoReviewRepos:a.autoReviewRepos??{},autoReviewTeamRequests:a.autoReviewTeamRequests??!0},y=ey(i);if(!Xb(h,{...i.pr,requestedViaTeam:y}))return{reasoning:`Found by the inbox poll. ${y!==!1&&!h.autoReviewTeamRequests?`${y?"Only a team you are on was asked":"Cerber could not tell whether you or only a team you are on was asked"}, and team requests are not drafted automatically`:a.autoReview?`Auto-review is off for ${i.pr.owner}/${i.pr.repo}`:"Auto-review is off"}, so it waits for you to ask for a draft.`,meta:["no run yet","press r to review now"]}}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(i.status==="failed")return{reasoning:i.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(i.sent)return{reasoning:`Sent to GitHub as ${tf[i.sent.event]??i.sent.event} on ${new Date(i.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(i.handoff?` GitHub asks @${i.handoff.to} for it now.`:""),meta:[...i.handoff?[`you handed this to @${i.handoff.to}`]:[],i.sent.auto?"auto-sent by the daemon":"sent by you",ju(i)]};const s=[ju(i)];if(i.handoff?s.unshift(`you handed this to @${i.handoff.to} on ${new Date(i.handoff.at).toLocaleDateString()}`):i.filed?s.unshift(ho[i.filed.reason].meta(new Date(Wb(i.filed)).toLocaleDateString())):i.status==="reviewed"?s.unshift("you marked this reviewed"):i.status==="skipped"&&s.unshift("you skipped this"),i.costUsd!=null&&s.push(`≈$${i.costUsd.toFixed(2)} at API rates`),s.push(r0(i)),tl(i)?s.push("your PR — sends as a comment"):a!=null&&a.enabled&&i.status==="ready"&&((u=i.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(i.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${i.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),i.handoff){const h=i.commentCount>0||i.verdict!=null;return{reasoning:`GitHub asks @${i.handoff.to} for this review now${i.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(h?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return i.filed?{reasoning:ho[i.filed.reason].reasoning,meta:s}:{reasoning:((f=i.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const u0="/favicon.svg",d0="/favicon-dot.svg",f0=i=>Fs(i).some(a=>!(tl(a)&&a.status==="awaiting")),h0=i=>i?d0:u0;function p0(i){const a=h0(f0(i)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Ut(i,a){const r=await fetch(i,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${i}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const So=async()=>{const i=await Ut("/api/reviews");return p0(i),i},nf=()=>Ut("/api/daemon"),mg=i=>Ut(`/api/reviews/${encodeURIComponent(i)}`),m0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),ro=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify(a)}),g0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),b0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments`,{method:"POST",body:JSON.stringify(a)}),y0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"DELETE"}),v0=i=>Ut("/api/reviews",{method:"POST",body:JSON.stringify({input:i})}),E0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/refresh`,{method:"POST"}),ty=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Dd=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify(a)}),_0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),S0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/pending`,{method:"DELETE"}),w0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),ny=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send-preview?event=${a}`),N0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),T0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/raised`,{method:"POST"}),x0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/reviewers`),A0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),R0=i=>`/api/reviews/${encodeURIComponent(i)}/export`,k0=()=>Ut("/api/config"),Uu=(i,a=!1)=>Ut("/api/config/trust",{method:"POST",body:JSON.stringify({rule:i,remove:a})}),O0=(i,a)=>Ut("/api/config/auto-review-repo",{method:"POST",body:JSON.stringify({repo:i,on:a})}),js=i=>Ut("/api/config/daemon",{method:"POST",body:JSON.stringify(i)}),ay="cerber.handoff.recent",iy=5,C0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,ly=i=>C0.test(i);function M0(i){try{const a=JSON.parse(i??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&ly(r)).slice(0,iy):[]}catch{return[]}}function sy(){try{return M0(localStorage.getItem(ay))}catch{return[]}}function D0(i,a){const r=i.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,iy)}function L0(i){const a=D0(sy(),i);try{localStorage.setItem(ay,JSON.stringify(a))}catch{}return a}const Ld=i=>i.trim().replace(/^@/,"");function z0(i,a){const r=new Set,s=[];for(const u of[...a,...i]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(h=>h.toLowerCase()===f)}))}return s}function j0(i,a){const r=Ld(a).toLowerCase();if(!r)return i;const s=i.filter(h=>h.login.toLowerCase().includes(r)),u=h=>h.login.toLowerCase()===r,f=h=>h.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(h=>!u(h)&&f(h)),...s.filter(h=>!f(h))]}function Bu(i){return i.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function zd(i){return i.nodeName.toLowerCase()}function gg(i){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),zd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(i,0),a}function U0(i,a,r){let s=0,u="";const f=[];function h(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!i.length||!a.length?i.length?i:a:i[0].offset!==a[0].offset?i[0].offset<a[0].offset?i:a:a[0].event==="start"?i:a}function g(v){if(!h(v))throw new Error("Node is not an Element");u+=`<${zd(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Bu(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+zd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;i.length||a.length;){let v=y();if(u+=Bu(r.substring(s,v[0].offset)),s=v[0].offset,v===i){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===i&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+Bu(r.substr(s))}const B0={"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 I0(i){var a;return(a=B0[i])!==null&&a!==void 0?a:"plaintext"}var Iu,bg;function H0(){if(bg)return Iu;bg=1;function i(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(te=>{const ye=k[te],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&i(ye)}),k}class a{constructor(te){te.data===void 0&&(te.data={}),this.data=te.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(k,...te){const ye=Object.create(null);for(const ze in k)ye[ze]=k[ze];return te.forEach(function(ze){for(const Qe in ze)ye[Qe]=ze[Qe]}),ye}const u="</span>",f=k=>!!k.scope,h=(k,{prefix:te})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const ye=k.split(".");return[`${te}${ye.shift()}`,...ye.map((ze,Qe)=>`${ze}${"_".repeat(Qe+1)}`)].join(" ")}return`${te}${k}`};class y{constructor(te,ye){this.buffer="",this.classPrefix=ye.classPrefix,te.walk(this)}addText(te){this.buffer+=r(te)}openNode(te){if(!f(te))return;const ye=h(te.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(te){f(te)&&(this.buffer+=u)}value(){return this.buffer}span(te){this.buffer+=`<span class="${te}">`}}const g=(k={})=>{const te={children:[]};return Object.assign(te,k),te};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(te){this.top.children.push(te)}openNode(te){const ye=g({scope:te});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(te){return this.constructor._walk(te,this.rootNode)}static _walk(te,ye){return typeof ye=="string"?te.addText(ye):ye.children&&(te.openNode(ye),ye.children.forEach(ze=>this._walk(te,ze)),te.closeNode(ye)),te}static _collapse(te){typeof te!="string"&&te.children&&(te.children.every(ye=>typeof ye=="string")?te.children=[te.children.join("")]:te.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(te){super(),this.options=te}addText(te){te!==""&&this.add(te)}startScope(te){this.openNode(te)}endScope(){this.closeNode()}__addSublanguage(te,ye){const ze=te.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(k){return k?typeof k=="string"?k:k.source:null}function _(k){return C("(?=",k,")")}function x(k){return C("(?:",k,")*")}function S(k){return C("(?:",k,")?")}function C(...k){return k.map(ye=>v(ye)).join("")}function A(k){const te=k[k.length-1];return typeof te=="object"&&te.constructor===Object?(k.splice(k.length-1,1),te):{}}function R(...k){return"("+(A(k).capture?"":"?:")+k.map(ze=>v(ze)).join("|")+")"}function $(k){return new RegExp(k.toString()+"|").exec("").length-1}function U(k,te){const ye=k&&k.exec(te);return ye&&ye.index===0}const W=new RegExp(R(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function z(k,{joinWith:te}){let ye=0;return k.map(ze=>{ye+=1;const Qe=ye;let et=v(ze),Ae="";for(;et.length>0;){const Se=W.exec(et);if(!Se){Ae+=et;break}Ae+=et.substring(0,Se.index),et=et.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ae+="\\"+String(Number(Se[1])+Qe):(Ae+=Se[0],(Se[0]==="("||/^\(\?[<']/.test(Se[0]))&&ye++)}return Ae}).map(ze=>`(${ze})`).join(te)}const ae=/\b\B/,se="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ue="\\b(0b[01]+)",Ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",j=(k={})=>{const te=/^#![ ]*\//;return k.binary&&(k.begin=C(te,/.*\b/,k.binary,/\b.*/)),s({scope:"meta",begin:te,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},k)},le={begin:"\\\\[\\s\\S]",relevance:0},fe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},Q={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/},pe=function(k,te,ye={}){const ze=s({scope:"comment",begin:k,end:te,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 Qe=R("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(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},we=pe("//","$"),De=pe("/\\*","\\*/"),w=pe("#","$"),L={scope:"number",begin:G,relevance:0},I={scope:"number",begin:ee,relevance:0},oe={scope:"number",begin:ue,relevance:0},me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},ve={scope:"title",begin:se,relevance:0},X={scope:"title",begin:T,relevance:0},be={begin:"\\.\\s*"+T,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:fe,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:oe,BINARY_NUMBER_RE:ue,COMMENT:pe,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:I,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(te,ye)=>{ye.data._beginMatch=te[1]},"on:end":(te,ye)=>{ye.data._beginMatch!==te[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:se,MATCH_NOTHING_RE:ae,METHOD_GUARD:be,NUMBER_MODE:L,NUMBER_RE:G,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:M,REGEXP_MODE:me,RE_STARTERS_RE:Ee,SHEBANG:j,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:X});function $e(k,te){k.input[k.index-1]==="."&&te.ignoreMatch()}function Ce(k,te){k.className!==void 0&&(k.scope=k.className,delete k.className)}function St(k,te){te&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=$e,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function Ke(k,te){Array.isArray(k.illegal)&&(k.illegal=R(...k.illegal))}function In(k,te){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function Je(k,te){k.relevance===void 0&&(k.relevance=1)}const Ln=(k,te)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},k);Object.keys(k).forEach(ze=>{delete k[ze]}),k.keywords=ye.keywords,k.begin=C(ye.beforeMatch,_(ye.begin)),k.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},k.relevance=0,delete ye.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],It="keyword";function Rt(k,te,ye=It){const ze=Object.create(null);return typeof k=="string"?Qe(ye,k.split(" ")):Array.isArray(k)?Qe(ye,k):Object.keys(k).forEach(function(et){Object.assign(ze,Rt(k[et],te,et))}),ze;function Qe(et,Ae){te&&(Ae=Ae.map(Se=>Se.toLowerCase())),Ae.forEach(function(Se){const Ue=Se.split("|");ze[Ue[0]]=[et,on(Ue[0],Ue[1])]})}}function on(k,te){return te?Number(te):yn(k)?0:1}function yn(k){return Hn.includes(k.toLowerCase())}const Yt={},je=k=>{console.error(k)},Lt=(k,...te)=>{console.log(`WARN: ${k}`,...te)},vt=(k,te)=>{Yt[`${k}/${te}`]||(console.log(`Deprecated as of ${k}. ${te}`),Yt[`${k}/${te}`]=!0)},Ot=new Error;function xn(k,te,{key:ye}){let ze=0;const Qe=k[ye],et={},Ae={};for(let Se=1;Se<=te.length;Se++)Ae[Se+ze]=Qe[Se],et[Se+ze]=!0,ze+=$(te[Se-1]);k[ye]=Ae,k[ye]._emit=et,k[ye]._multi=!0}function zn(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ot;if(typeof k.beginScope!="object"||k.beginScope===null)throw je("beginScope must be object"),Ot;xn(k,k.begin,{key:"beginScope"}),k.begin=z(k.begin,{joinWith:""})}}function An(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ot;if(typeof k.endScope!="object"||k.endScope===null)throw je("endScope must be object"),Ot;xn(k,k.end,{key:"endScope"}),k.end=z(k.end,{joinWith:""})}}function jn(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function Rn(k){jn(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),zn(k),An(k)}function cn(k){function te(Ae,Se){return new RegExp(v(Ae),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(Se?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=$(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=te(z(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Ct=Ue.findIndex((qn,sa)=>sa>0&&qn!==void 0),mt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,mt)}}class ze{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new ye;return this.rules.slice(Se).forEach(([Ct,mt])=>Ue.addRule(Ct,mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const mt=this.getMatcher(0);mt.lastIndex=this.lastIndex+1,Ct=mt.exec(Se)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const Se=new ze;return Ae.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&Se.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&Se.addRule(Ae.illegal,{type:"illegal"}),Se}function et(Ae,Se){const Ue=Ae;if(Ae.isCompiled)return Ue;[Ce,In,Rn,Ln].forEach(mt=>mt(Ae,Se)),k.compilerExtensions.forEach(mt=>mt(Ae,Se)),Ae.__beforeBegin=null,[St,Ke,Je].forEach(mt=>mt(Ae,Se)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Rt(Ae.keywords,k.case_insensitive)),Ue.keywordPatternRe=te(Ct,!0),Se&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=te(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=te(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+Se.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=te(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(mt){return kn(mt==="self"?Ae:mt)})),Ae.contains.forEach(function(mt){et(mt,Ue)}),Ae.starts&&et(Ae.starts,Se),Ue.matcher=Qe(Ue),Ue}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=s(k.classNameAliases||{}),et(k)}function Ht(k){return k?k.endsWithParent||Ht(k.starts):!1}function kn(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(te){return s(k,{variants:null},te)})),k.cachedVariants?k.cachedVariants:Ht(k)?s(k,{starts:k.starts?s(k.starts):null}):Object.isFrozen(k)?s(k):k}var qt="11.12.0";class la extends Error{constructor(te,ye){super(te),this.name="HTMLInjectionError",this.html=ye}}const un=r,hn=s,qe=Symbol("nomatch"),pn=7,Pt=function(k){const te=Object.create(null),ye=Object.create(null),ze=[];let Qe=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(Y){return Se.noHighlightRe.test(Y)}function Ct(Y){let ge=Y.className+" ";ge+=Y.parentNode?Y.parentNode.className:"";const Ie=Se.languageDetectRe.exec(ge);if(Ie){const Ye=Wt(Ie[1]);return Ye||(Lt(et.replace("{}",Ie[1])),Lt("Falling back to no-highlight mode for this block.",Y)),Ye?Ie[1]:"no-highlight"}return ge.split(/\s+/).find(Ye=>Ue(Ye)||Wt(Ye))}function mt(Y,ge,Ie){let Ye="",dt="";typeof ge=="object"?(Ye=Y,Ie=ge.ignoreIllegals,dt=ge.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`),dt=Y,Ye=ge),Ie===void 0&&(Ie=!0);const gt={code:Ye,language:dt};de("before:highlight",gt);const Bt=gt.result?gt.result:qn(gt.language,gt.code,Ie);return Bt.code=gt.code,de("after:highlight",Bt),Bt}function qn(Y,ge,Ie,Ye){const dt=Object.create(null);function gt(he,_e){return he.keywords[_e]}function Bt(){if(!J.keywords){B.addText(ne);return}let he=0;J.keywordPatternRe.lastIndex=0;let _e=J.keywordPatternRe.exec(ne),Me="";for(;_e;){Me+=ne.substring(he,_e.index);const Ve=Jt.case_insensitive?_e[0].toLowerCase():_e[0],We=gt(J,Ve);if(We){const[oa,Fl]=We;if(B.addText(Me),Me="",dt[Ve]=(dt[Ve]||0)+1,dt[Ve]<=pn&&(xe+=Fl),oa.startsWith("_"))Me+=_e[0];else{const Zs=Jt.classNameAliases[oa]||oa;zt(_e[0],Zs)}}else Me+=_e[0];he=J.keywordPatternRe.lastIndex,_e=J.keywordPatternRe.exec(ne)}Me+=ne.substring(he),B.addText(Me)}function Zt(){if(ne==="")return;let he=null;if(typeof J.subLanguage=="string"){if(!te[J.subLanguage]){B.addText(ne);return}he=qn(J.subLanguage,ne,!0,N[J.subLanguage]),N[J.subLanguage]=he._top}else he=Na(ne,J.subLanguage.length?J.subLanguage:null);J.relevance>0&&(xe+=he.relevance),B.__addSublanguage(he._emitter,he.language)}function ft(){J.subLanguage!=null?Zt():Bt(),ne=""}function zt(he,_e){he!==""&&(B.startScope(_e),B.addText(he),B.endScope())}function il(he,_e){let Me=1;const Ve=_e.length-1;for(;Me<=Ve;){if(!he._emit[Me]){Me++;continue}const We=Jt.classNameAliases[he[Me]]||he[Me],oa=_e[Me];We?zt(oa,We):(ne=oa,Bt(),ne=""),Me++}}function li(he,_e){return he.scope&&typeof he.scope=="string"&&B.openNode(Jt.classNameAliases[he.scope]||he.scope),he.beginScope&&(he.beginScope._wrap?(zt(ne,Jt.classNameAliases[he.beginScope._wrap]||he.beginScope._wrap),ne=""):he.beginScope._multi&&(il(he.beginScope,_e),ne="")),J=Object.create(he,{parent:{value:J}}),J}function si(he,_e,Me){let Ve=U(he.endRe,Me);if(Ve){if(he["on:end"]){const We=new a(he);he["on:end"](_e,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;he.endsParent&&he.parent;)he=he.parent;return he}}if(he.endsWithParent)return si(he.parent,_e,Me)}function Ba(he){return J.matcher.regexIndex===0?(ne+=he[0],1):(nt=!0,0)}function ll(he){const _e=he[0],Me=he.rule,Ve=new a(Me),We=[Me.__beforeBegin,Me["on:begin"]];for(const oa of We)if(oa&&(oa(he,Ve),Ve.isMatchIgnored))return Ba(_e);return Me.skip?ne+=_e:(Me.excludeBegin&&(ne+=_e),ft(),!Me.returnBegin&&!Me.excludeBegin&&(ne=_e)),li(Me,he),Me.returnBegin?0:_e.length}function On(he){const _e=he[0],Me=ge.substring(he.index),Ve=si(J,he,Me);if(!Ve)return qe;const We=J;J.endScope&&J.endScope._wrap?(ft(),zt(_e,J.endScope._wrap)):J.endScope&&J.endScope._multi?(ft(),il(J.endScope,he)):We.skip?ne+=_e:(We.returnEnd||We.excludeEnd||(ne+=_e),ft(),We.excludeEnd&&(ne=_e));do J.scope&&B.closeNode(),!J.skip&&!J.subLanguage&&(xe+=J.relevance),J=J.parent;while(J!==Ve.parent);return Ve.starts&&li(Ve.starts,he),We.returnEnd?0:_e.length}function ri(){const he=[];for(let _e=J;_e!==Jt;_e=_e.parent)_e.scope&&he.unshift(_e.scope);he.forEach(_e=>B.openNode(_e))}let Ia={};function oi(he,_e){const Me=_e&&_e[0];if(ne+=he,Me==null)return ft(),0;if(Ia.type==="begin"&&_e.type==="end"&&Ia.index===_e.index&&Me===""){if(ne+=ge.slice(_e.index,_e.index+1),!Qe){const Ve=new Error(`0 width match regex (${Y})`);throw Ve.languageName=Y,Ve.badRule=Ia.rule,Ve}return 1}if(Ia=_e,_e.type==="begin")return ll(_e);if(_e.type==="illegal"&&!Ie){const Ve=new Error('Illegal lexeme "'+Me+'" for mode "'+(J.scope||"<unnamed>")+'"');throw Ve.mode=J,Ve}else if(_e.type==="end"){const Ve=On(_e);if(Ve!==qe)return Ve}if(_e.type==="illegal"&&Me==="")return _e.index===ge.length||(ne+=`
168
+ `),1;if(He>1e5&&He>_e.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ne+=Me,Me.length}const Jt=Wt(Y);if(!Jt)throw je(et.replace("{}",Y)),new Error('Unknown language: "'+Y+'"');const Ha=cn(Jt);let Aa="",J=Ye||Ha;const N={},B=new Se.__emitter(Se);ri();let ne="",xe=0,ke=0,He=0,nt=!1;try{if(Jt.__emitTokens)Jt.__emitTokens(ge,B);else{for(J.matcher.considerAll();;){He++,nt?nt=!1:J.matcher.considerAll(),J.matcher.lastIndex=ke;const he=J.matcher.exec(ge);if(!he)break;const _e=ge.substring(ke,he.index),Me=oi(_e,he);ke=he.index+Me}oi(ge.substring(ke))}return B.finalize(),Aa=B.toHTML(),{language:Y,value:Aa,relevance:xe,illegal:!1,_emitter:B,_top:J}}catch(he){if(he.message&&he.message.includes("Illegal"))return{language:Y,value:un(ge),illegal:!0,relevance:0,_illegalBy:{message:he.message,index:ke,context:ge.slice(ke-100,ke+100),mode:he.mode,resultSoFar:Aa},_emitter:B};if(Qe)return{language:Y,value:un(ge),illegal:!1,relevance:0,errorRaised:he,_emitter:B,_top:J};throw he}}function sa(Y){const ge={value:un(Y),illegal:!1,relevance:0,_top:Ae,_emitter:new Se.__emitter(Se)};return ge._emitter.addText(Y),ge}function Na(Y,ge){ge=ge||Se.languages||Object.keys(te);const Ie=sa(Y),Ye=ge.filter(Wt).filter(Xn).map(ft=>qn(ft,Y,!1));Ye.unshift(Ie);const dt=Ye.sort((ft,zt)=>{if(ft.relevance!==zt.relevance)return zt.relevance-ft.relevance;if(ft.language&&zt.language){if(Wt(ft.language).supersetOf===zt.language)return 1;if(Wt(zt.language).supersetOf===ft.language)return-1}return 0}),[gt,Bt]=dt,Zt=gt;return Zt.secondBest=Bt,Zt}function dn(Y,ge,Ie){const Ye=ge&&ye[ge]||Ie;Y.classList.add("hljs"),Y.classList.add(`language-${Ye}`)}function wt(Y){let ge=null;const Ie=Ct(Y);if(Ue(Ie))return;if(de("before:highlightElement",{el:Y,language:Ie}),Y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Y);return}if(Y.children.length>0&&(Se.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(Y)),Se.throwUnescapedHTML))throw new la("One of your code blocks includes unescaped HTML.",Y.innerHTML);ge=Y;const Ye=ge.textContent,dt=Ie?mt(Ye,{language:Ie,ignoreIllegals:!0}):Na(Ye);Y.innerHTML=dt.value,Y.dataset.highlighted="yes",dn(Y,Ie,dt.language),Y.result={language:dt.language,re:dt.relevance,relevance:dt.relevance},dt.secondBest&&(Y.secondBest={language:dt.secondBest.language,relevance:dt.secondBest.relevance}),de("after:highlightElement",{el:Y,result:dt,text:Ye})}function Kt(Y){Se=hn(Se,Y)}const tt=()=>{ba(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vn(){ba(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ua=!1;function ba(){function Y(){ba()}if(document.readyState==="loading"){Ua||window.addEventListener("DOMContentLoaded",Y,!1),Ua=!0;return}document.querySelectorAll(Se.cssSelector).forEach(wt)}function Ta(Y,ge){let Ie=null;try{Ie=ge(k)}catch(Ye){if(je("Language definition for '{}' could not be registered.".replace("{}",Y)),Qe)je(Ye);else throw Ye;Ie=Ae}Ie.name||(Ie.name=Y),te[Y]=Ie,Ie.rawDefinition=ge.bind(null,k),Ie.aliases&&Gn(Ie.aliases,{languageName:Y})}function ra(Y){delete te[Y];for(const ge of Object.keys(ye))ye[ge]===Y&&delete ye[ge]}function xa(){return Object.keys(te)}function Wt(Y){return Y=(Y||"").toLowerCase(),te[Y]||te[ye[Y]]}function Gn(Y,{languageName:ge}){typeof Y=="string"&&(Y=[Y]),Y.forEach(Ie=>{ye[Ie.toLowerCase()]=ge})}function Xn(Y){const ge=Wt(Y);return ge&&!ge.disableAutodetect}function Vn(Y){Y["before:highlightBlock"]&&!Y["before:highlightElement"]&&(Y["before:highlightElement"]=ge=>{Y["before:highlightBlock"](Object.assign({block:ge.el},ge))}),Y["after:highlightBlock"]&&!Y["after:highlightElement"]&&(Y["after:highlightElement"]=ge=>{Y["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ut(Y){Vn(Y),ze.push(Y)}function F(Y){const ge=ze.indexOf(Y);ge!==-1&&ze.splice(ge,1)}function de(Y,ge){const Ie=Y;ze.forEach(function(Ye){Ye[Ie]&&Ye[Ie](ge)})}function Ne(Y){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),wt(Y)}Object.assign(k,{highlight:mt,highlightAuto:Na,highlightAll:ba,highlightElement:wt,highlightBlock:Ne,configure:Kt,initHighlighting:tt,initHighlightingOnLoad:vn,registerLanguage:Ta,unregisterLanguage:ra,listLanguages:xa,getLanguage:Wt,registerAliases:Gn,autoDetection:Xn,inherit:hn,addPlugin:ut,removePlugin:F}),k.debugMode=function(){Qe=!1},k.safeMode=function(){Qe=!0},k.versionString=qt,k.regex={concat:C,lookahead:_,either:R,optional:S,anyNumberOfTimes:x};for(const Y in Ge)typeof Ge[Y]=="object"&&i(Ge[Y]);return Object.assign(k,Ge),k},Gt=Pt({});return Gt.newInstance=()=>Pt({}),Iu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Iu}var Hu,yg;function q0(){if(yg)return Hu;yg=1;function i(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,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(h,{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:[f]},{begin:/'/,end:/'/,contains:[f]},{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:[h,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{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 Hu=i,Hu}var qu,vg;function G0(){if(vg)return qu;vg=1;function i(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 f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},h=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,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=a.SHEBANG({binary:`(${x.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},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],R=["true","false"],$={match:/(\/[a-z._-]+)+/},U=["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"],z=["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"],ae=["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:A,literal:R,built_in:[...U,...W,"set","shopt",...z,...ae]},contains:[S,a.SHEBANG(),C,_,h,y,$,g,m,b,v,s]}}return qu=i,qu}var Gu,Eg;function $0(){if(Eg)return Gu;Eg=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[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})"/})]},_={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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},S={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=[x,S],A={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},R=r.optional(f)+a.IDENT_RE+"\\s*\\(",$=12,z={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"},ae=[...C,m,s,a.C_BLOCK_COMMENT_MODE,_,v],se={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:z,contains:ae.concat([{begin:/\(/,end:/\)/,keywords:z,contains:ae.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+y+"[\\*&\\s]+){1,"+$+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:z,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:z,relevance:0},{begin:R,returnBegin:!0,contains:[a.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:z,disableAutodetect:!0,illegal:"</",contains:[].concat(se,T,ae,[...C,{begin:a.IDENT_RE+"::",keywords:z},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:S,strings:v,keywords:z}}}return Gu=i,Gu}var $u,_g;function F0(){if(_g)return $u;_g=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[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},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},x={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]},S=[_,x],C={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},A=r.optional(f)+a.IDENT_RE+"\\s*\\(",R=12,$=["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"],U=["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"],z=["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"],T={type:U,keyword:$,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:W},G={className:"function.dispatch",relevance:0,keywords:{_hint:z},begin:r.concat(/\b/,`(?!${$.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[G,...S,g,s,a.C_BLOCK_COMMENT_MODE,v,b],ue={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:T,contains:ee.concat(["self"]),relevance:0}]),relevance:0},Ee={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+R+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:T,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...S]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ue,Ee,G,ee,[...S,{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:T,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return $u=i,$u}var Fu,Sg;function Y0(){if(Sg)return Fu;Sg=1;function i(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"],f=["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"],h=["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:f.concat(h),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={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},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},S={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(S,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},R=a.inherit(A,{illegal:/\n/}),$={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,R]},U={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},W=a.inherit(U,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]});A.contains=[U,$,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],R.contains=[W,$,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const z={variants:[x,U,$,S,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ae={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},se=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",T={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"}},z,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ae,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,ae,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:"("+se+"\\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,ae],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[z,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},T]}}return Fu=i,Fu}var Yu,wg;function P0(){if(wg)return Yu;wg=1;const i=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(),f=["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(),h=["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=i(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",S=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",A=[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,_,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:":("+f.join("|")+")"},{begin:":(:)?("+h.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,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:S},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Yu=g,Yu}var Pu,Ng;function K0(){if(Ng)return Pu;Ng=1;function i(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={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}]},h={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}]},_=a.inherit(b,{contains:[]}),x=a.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let S=[s,m];return[b,v,_,x].forEach($=>{$.contains=$.contains.concat(S)}),S=S.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:S},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:S}]}]},s,h,u,b,v,{className:"quote",begin:"^>\\s+",contains:S,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Pu=i,Pu}var Ku,Tg;function Z0(){if(Tg)return Ku;Tg=1;function i(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 Ku=i,Ku}var Zu,xg;function X0(){if(xg)return Zu;xg=1;function i(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]+/),f=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},_={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]})]}]},x="[1-9](_?[0-9])*|0",S="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${S}))?([eE][+-]?(${S})|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"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},se=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.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:[A]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{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=se,A.contains=se;const ue=[{begin:/^\s*=>/,starts:{end:"$",contains:se}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:se}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(ue).concat(b).concat(se)}}return Zu=i,Zu}var Xu,Ag;function V0(){if(Ag)return Xu;Ag=1;function i(a){const h={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:h,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:h,illegal:/["']/}]}]}}return Xu=i,Xu}var Vu,Rg;function Q0(){if(Rg)return Vu;Rg=1;function i(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 Vu=i,Vu}var Qu,kg;function W0(){if(kg)return Qu;kg=1;function i(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 f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},h={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,h,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),x=r.concat(_,"(\\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:x,className:"attr",starts:{end:/$/,contains:[u,g,h,f,y,s]}}]}}return Qu=i,Qu}var Wu,Og;function J0(){if(Og)return Wu;Og=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[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(h,y,g){return g===-1?"":h.replace(y,m=>u(h,y,g-1))}function f(h){const y=h.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),$={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"]},U={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},W={className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[h.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:$,illegal:/<\/|#/,contains:[h.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[h.BACKSLASH_ESCAPE]},h.APOS_STRING_MODE,h.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(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[W,h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:$,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[U,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,s,h.C_BLOCK_COMMENT_MODE]},h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE]},s,U]}}return Wu=f,Wu}var Ju,Cg;function eS(){if(Cg)return Ju;Cg=1;const i="[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"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],h=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(X,{after:be})=>{const Te="</"+X[0].slice(1);return X.input.indexOf(Te,be)!==-1},_=i,x={begin:"<>",end:"</>"},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const Te=X[0].length+X.index,Ge=X.input[Te];if(Ge==="<"||Ge===","){be.ignoreMatch();return}Ge===">"&&(v(X,{after:Te})||be.ignoreMatch());let $e;const Ce=X.input.substring(Te);if($e=Ce.match(/^\s*=/)){be.ignoreMatch();return}if(($e=Ce.match(/^\s+extends\s+/))&&$e.index===0){be.ignoreMatch();return}}},A={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":h},R="[0-9](_?[0-9])*",$=`\\.(${R})`,U="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",W={className:"number",variants:[{begin:`(\\b(${U})((${$})|\\.)?|(${$}))[eE][+-]?(${R})\\b`},{begin:`\\b(${U})\\b((${$})\\b|\\.)?|(${$})\\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:[]},ae={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"xml"}},se={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,z],subLanguage:"graphql"}},G={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,z]},ue={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*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},Ee=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,T,G,{match:/\$\d+/},W];z.contains=Ee.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(Ee)});const j=[].concat(ue,z.contains),le=j.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(j)}]),fe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:le},M={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},Q={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]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[fe],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function w(X){return b.concat("(?!",X.join("|"),")")}const L={match:b.concat(/\b/,w([...f,"super","import","await"].map(X=>`${X}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},oe={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},fe]},me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[fe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:le,CLASS_REFERENCE:Q},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ae,se,T,G,ue,{match:/\$\d+/},W,Q,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ue,m.REGEXP_MODE,{className:"function",begin:me,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:A,contains:le}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:S},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[fe,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[fe]},L,De,M,oe,{match:/\$[(.]/}]}}return Ju=g,Ju}var ed,Mg;function tS(){if(Mg)return ed;Mg=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},f={match:/[{}[\],:]/,className:"punctuation",relevance:0},h=["true","false","null"],y={scope:"literal",beginKeywords:h.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:h},contains:[u,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return ed=r,ed}var td,Dg;function nS(){if(Dg)return td;Dg=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[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(f){const h={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:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},S=s,C=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},R=A;return R.variants[1].contains=[A],A.variants[1].contains=[R],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:h,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,C,y,g,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:h,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:h,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,f.C_LINE_COMMENT_MODE,C],relevance:0},f.C_LINE_COMMENT_MODE,C,_,x,v,f.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
+ `},S]}}return td=u,td}var nd,Lg;function aS(){if(Lg)return nd;Lg=1;const i=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(),f=["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(),h=["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=f.concat(h).sort().reverse();function m(b){const v=i(b),_=g,x="and or not only",S="[\\w-]+",C="("+S+"|@\\{"+S+"\\})",A=[],R=[],$=function(j){return{className:"string",begin:"~?"+j+".*?"+j}},U=function(j,le,fe){return{className:j,begin:le,relevance:fe}},W={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},z={begin:"\\(",end:"\\)",contains:R,keywords:W,relevance:0};R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,$("'"),$('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,z,U("variable","@@?"+S,10),U("variable","@\\{"+S+"\\}"),U("built_in","~?`[^`]*?`"),{className:"attribute",begin:S+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ae=R.concat({begin:/\{/,end:/\}/,contains:A}),se={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(R)},T={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:R}}]},G={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:R,relevance:0}},ee={className:"variable",variants:[{begin:"@"+S+"\\s*:",relevance:15},{begin:"@"+S}],starts:{end:"[;}]",returnEnd:!0,contains:ae}},ue={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,se,U("keyword","all\\b"),U("variable","@\\{"+S+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,U("selector-tag",C,0),U("selector-id","#"+C),U("selector-class","\\."+C,0),U("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+h.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ae},{begin:"!important"},v.FUNCTION_DISPATCH]},Ee={begin:S+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[ue]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G,ee,Ee,T,ue,se,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return nd=m,nd}var ad,zg;function iS(){if(zg)return ad;zg=1;function i(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[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:f.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:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ad=i,ad}var id,jg;function lS(){if(jg)return id;jg=1;function i(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]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},h={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,f,h,y]}}return id=i,id}var ld,Ug;function sS(){if(Ug)return ld;Ug=1;function i(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}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},h={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},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,h,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(A,R,$="\\1")=>{const U=$==="\\1"?$:r.concat($,R);return r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,U,/(?:\\.|[^\\\/])*?/,$,u)},S=(A,R,$)=>r.concat(r.concat("(?:",A,")"),R,/(?:\\.|[^\\\/])*?/,$,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:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:S("(?:m|qr)?",/\//,/\//)},{begin:S("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:S("m|qr",/\(/,/\)/)},{begin:S("m|qr",/\[/,/\]/)},{begin:S("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 h.contains=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:C}}return ld=i,ld}var sd,Bg;function rS(){if(Bg)return sd;Bg=1;function i(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 sd=i,sd}var rd,Ig;function oS(){if(Ig)return rd;Ig=1;function i(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),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),h=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)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(fe,M)=>{M.data._beginMatch=fe[1]||fe[2]},"on:end":(fe,M)=>{M.data._beginMatch!==fe[1]&&M.ignoreMatch()}},x=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),S=`[
170
+ ]`,C={scope:"string",variants:[v,b,_,x]},A={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},R=["false","null","true"],$=["__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"],U=["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"],z={keyword:$,literal:(fe=>{const M=[];return fe.forEach(Q=>{M.push(Q),Q.toLowerCase()===Q?M.push(Q.toUpperCase()):M.push(Q.toLowerCase())}),M})(R),built_in:U},ae=fe=>fe.map(M=>M.replace(/\|\d+$/,"")),se={variants:[{match:[/new/,r.concat(S,"+"),r.concat("(?!",ae(U).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},T=r.concat(u,"\\b(?!\\()"),G={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ue={relevance:0,begin:/\(/,end:/\)/,keywords:z,contains:[ee,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se]},Ee={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ae($).join("\\b|"),"|",ae(U).join("\\b|"),"\\b)"),u,r.concat(S,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ue]};ue.contains.push(Ee);const j=[ee,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,se],le={begin:r.concat(/#\[\s*\\?/,r.either(f,h)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",variants:[{match:f},{match:h}]}]};return{case_insensitive:!1,keywords:z,contains:[le,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,Ee,G,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},se,{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:z,contains:["self",le,y,G,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A]}]},{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,A]}}return rd=i,rd}var od,Hg;function cS(){if(Hg)return od;Hg=1;function i(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 od=i,od}var cd,qg;function uS(){if(qg)return cd;qg=1;function i(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return cd=i,cd}var ud,Gg;function dS(){if(Gg)return ud;Gg=1;function i(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},_={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]},x="[0-9](_?[0-9])*",S=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,C=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${S}))[eE][+-]?(${x})[jJ]?(?=${C})`},{begin:`(${S})[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(${x})[jJ](?=${C})`}]},R={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},$={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,R,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[$]},{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:[A,$,_]}]}}return ud=i,ud}var dd,$g;function fS(){if($g)return dd;$g=1;function i(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return dd=i,dd}var fd,Fg;function hS(){if(Fg)return fd;Fg=1;function i(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]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,h=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:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[h,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:h},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return fd=i,fd}var hd,Yg;function pS(){if(Yg)return hd;Yg=1;function i(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),h={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,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:"->"},h]}}return hd=i,hd}var pd,Pg;function mS(){if(Pg)return pd;Pg=1;const i=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(),f=["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(),h=["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=i(m),v=h,_=f,x="@[a-z-]+",S="and or not only",A={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:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{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,A,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:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:S,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return pd=g,pd}var md,Kg;function gS(){if(Kg)return md;Kg=1;function i(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return md=i,md}var gd,Zg;function bS(){if(Zg)return gd;Zg=1;function i(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},h=["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"],_=["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"],x=["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"],S=v,C=[...b,...m].filter(ae=>!v.includes(ae)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={match:r.concat(/\b/,r.either(...S),/\s*\(/),relevance:0,keywords:{built_in:S}};function U(ae){return r.concat(/\b/,r.either(...ae.map(se=>se.replace(/\s+/,"\\s+"))),/\b/)}const W={scope:"keyword",match:U(x),relevance:0};function z(ae,{exceptions:se,when:T}={}){const G=T;return se=se||[],ae.map(ee=>ee.match(/\|\d+$/)||se.includes(ee)?ee:G(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:z(C,{when:ae=>ae.length<3}),literal:h,type:g,built_in:_},contains:[{scope:"type",match:U(y)},W,$,A,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,R]}}return gd=i,gd}var bd,Xg;function yS(){if(Xg)return bd;Xg=1;function i(T){return T?typeof T=="string"?T:T.source:null}function a(T){return r("(?=",T,")")}function r(...T){return T.map(ee=>i(ee)).join("")}function s(T){const G=T[T.length-1];return typeof G=="object"&&G.constructor===Object?(T.splice(T.length-1,1),G):{}}function u(...T){return"("+(s(T).capture?"":"?:")+T.map(ue=>i(ue)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=T=>r(/\b/,T,/\w$/.test(T)?/\b/:/\B/),h=["Protocol","Type"].map(f),y=["init","self"].map(f),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"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["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"],S=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(S,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(S,C,"*"),R=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]/),$=u(R,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),U=r(R,$,"*"),W=r(/[A-Z]/,$,"*"),z=["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\(/,U,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ae=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function se(T){const G={match:/\s+/,relevance:0},ee=T.COMMENT("/\\*","\\*/",{contains:["self"]}),ue=[T.C_LINE_COMMENT_MODE,ee],Ee={match:[/\./,u(...h,...y)],className:{2:"keyword"}},j={match:r(/\./,u(...m)),relevance:0},le=m.filter(qe=>typeof qe=="string").concat(["_|0"]),fe=m.filter(qe=>typeof qe!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...fe,...y)}]},Q={$pattern:u(/\b\w+/,/#\w+/),keyword:le.concat(_),literal:b},pe=[Ee,j,M],we={match:r(/\./,u(...x)),relevance:0},De={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},w=[we,De],L={match:/->/,relevance:0},I={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${C})+`}]},oe=[L,I],me="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${me})(\\.(${me}))?([eE][+-]?(${me}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${me}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},be=(qe="")=>({className:"subst",variants:[{match:r(/\\/,qe,/[0\\tnr"']/)},{match:r(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Te=(qe="")=>({className:"subst",match:r(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(qe="")=>({className:"subst",label:"interpol",begin:r(/\\/,qe,/\(/),end:/\)/}),$e=(qe="")=>({begin:r(qe,/"""/),end:r(/"""/,qe),contains:[be(qe),Te(qe),Ge(qe)]}),Ce=(qe="")=>({begin:r(qe,/"/),end:r(/"/,qe),contains:[be(qe),Ge(qe)]}),St={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ke=[T.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[T.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ke},Je=qe=>{const pn=r(qe,/\//),Pt=r(/\//,qe);return{begin:pn,end:Pt,contains:[...Ke,{scope:"comment",begin:`#(?!.*${Pt})`,end:/$/}]}},Ln={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},Hn={match:r(/`/,U,/`/)},It={className:"variable",match:/\$\d+/},Rt={className:"variable",match:`\\$${$}+`},on=[Hn,It,Rt],yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ae,contains:[...oe,X,St]}]}},Yt={scope:"keyword",match:r(/@/,u(...z),a(u(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,U)},Lt=[yn,Yt,je],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)/,$,"+")},{className:"type",match:W,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(W)),relevance:0}]},Ot={begin:/</,end:/>/,keywords:Q,contains:[...ue,...pe,...Lt,L,vt]};vt.contains.push(Ot);const xn={match:r(U,/\s*:/),keywords:"_|0",relevance:0},zn={begin:/\(/,end:/\)/,relevance:0,keywords:Q,contains:["self",xn,...ue,Ln,...pe,...w,...oe,X,St,...on,...Lt,vt]},An={begin:/</,end:/>/,keywords:"repeat each",contains:[...ue,vt]},jn={begin:u(a(r(U,/\s*:/)),a(r(U,/\s+/,U,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:U}]},Rn={begin:/\(/,end:/\)/,keywords:Q,contains:[jn,...ue,...pe,...oe,X,St,...Lt,vt,zn],endsParent:!0,illegal:/["']/},cn={match:[/(func|macro)/,/\s+/,u(Hn.match,U,A)],className:{1:"keyword",3:"title.function"},contains:[An,Rn,G],illegal:[/\[/,/%/]},Ht={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[An,Rn,G],illegal:/\[|%/},kn={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},qt={begin:[/precedencegroup/,/\s+/,W],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},la={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,U,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:Q,contains:[An,...pe,{begin:/:/,end:/\{/,keywords:Q,contains:[{scope:"title.class.inherited",match:W},...pe],relevance:0}]};for(const qe of St.variants){const pn=qe.contains.find(Gt=>Gt.label==="interpol");pn.keywords=Q;const Pt=[...pe,...w,...oe,X,St,...on];pn.contains=[...Pt,{begin:/\(/,end:/\)/,contains:["self",...Pt]}]}return{name:"Swift",keywords:Q,contains:[...ue,cn,Ht,la,un,hn,kn,qt,{beginKeywords:"import",end:/$/,contains:[...ue],relevance:0},Ln,...pe,...w,...oe,X,St,...on,...Lt,vt,zn]}}return bd=se,bd}var yd,Vg;function vS(){if(Vg)return yd;Vg=1;function i(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]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},h={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,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={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"},S={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[S],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[S],illegal:"\\n",relevance:0},R=[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}},x,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,A,h,y],$=[...R];return $.pop(),$.push(g),S.contains=$,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}return yd=i,yd}var vd,Qg;function ES(){if(Qg)return vd;Qg=1;const i="[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"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],h=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,_=(be,{after:Te})=>{const Ge="</"+be[0].slice(1);return be.input.indexOf(Ge,Te)!==-1},x=i,S={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,Te)=>{const Ge=be[0].length+be.index,$e=be.input[Ge];if($e==="<"||$e===","){Te.ignoreMatch();return}$e===">"&&(_(be,{after:Ge})||Te.ignoreMatch());let Ce;const St=be.input.substring(Ge);if(Ce=St.match(/^\s*=/)){Te.ignoreMatch();return}if((Ce=St.match(/^\s+extends\s+/))&&Ce.index===0){Te.ignoreMatch();return}}},R={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":h},$="[0-9](_?[0-9])*",U=`\\.(${$})`,W="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",z={className:"number",variants:[{begin:`(\\b(${W})((${U})|\\.)?|(${U}))[eE][+-]?(${$})\\b`},{begin:`\\b(${W})\\b((${U})\\b|\\.)?|(${U})\\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},ae={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},se={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"css"}},G={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ae],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ae]},Ee={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:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},j=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,T,G,ee,{match:/\$\d+/},z];ae.contains=j.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(j)});const le=[].concat(Ee,ae.contains),fe=le.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(le)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:fe},Q={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},pe={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]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(be){return v.concat("(?!",be.join("|"),")")}const I={match:v.concat(/\b/,L([...f,"super","import","await"].map(be=>`${be}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:fe,CLASS_REFERENCE:pe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,se,T,G,ee,Ee,{match:/\$\d+/},z,pe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},X,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Ee,b.REGEXP_MODE,{className:"function",begin:ve,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:R,contains:fe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:S.begin,end:S.end},{match:C},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.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:[M,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},I,w,Q,me,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),x=i,S=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:S},contains:[_.exports.CLASS_REFERENCE]},R={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},$=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],U={$pattern:i,keyword:a.concat($),literal:r,built_in:y.concat(S),"variable.language":h},W={className:"meta",begin:"@"+x},z=(G,ee,ue)=>{const Ee=G.contains.findIndex(j=>j.label===ee);if(Ee===-1)throw new Error("can not find mode to replace");G.contains.splice(Ee,1,ue)};Object.assign(_.keywords,U),_.exports.PARAMS_CONTAINS.push(W);const ae=_.contains.find(G=>G.scope==="attr"),se=Object.assign({},ae,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ae,se]),_.contains=_.contains.concat([W,C,A,se]),z(_,"shebang",b.SHEBANG()),z(_,"use_strict",R);const T=_.contains.find(G=>G.label==="func.def");return T.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return vd=m,vd}var Ed,Wg;function _S(){if(Wg)return Ed;Wg=1;function i(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,h=/\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(h,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(h,f),/ +/,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+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=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,_,x,{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:[x]}]}}return Ed=i,Ed}var _d,Jg;function SS(){if(Jg)return _d;Jg=1;function i(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"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},h={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"}},h,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return _d=i,_d}var Sd,eb;function wS(){if(eb)return Sd;eb=1;var i=H0();return i.registerLanguage("xml",q0()),i.registerLanguage("bash",G0()),i.registerLanguage("c",$0()),i.registerLanguage("cpp",F0()),i.registerLanguage("csharp",Y0()),i.registerLanguage("css",P0()),i.registerLanguage("markdown",K0()),i.registerLanguage("diff",Z0()),i.registerLanguage("ruby",X0()),i.registerLanguage("go",V0()),i.registerLanguage("graphql",Q0()),i.registerLanguage("ini",W0()),i.registerLanguage("java",J0()),i.registerLanguage("javascript",eS()),i.registerLanguage("json",tS()),i.registerLanguage("kotlin",nS()),i.registerLanguage("less",aS()),i.registerLanguage("lua",iS()),i.registerLanguage("makefile",lS()),i.registerLanguage("perl",sS()),i.registerLanguage("objectivec",rS()),i.registerLanguage("php",oS()),i.registerLanguage("php-template",cS()),i.registerLanguage("plaintext",uS()),i.registerLanguage("python",dS()),i.registerLanguage("python-repl",fS()),i.registerLanguage("r",hS()),i.registerLanguage("rust",pS()),i.registerLanguage("scss",mS()),i.registerLanguage("shell",gS()),i.registerLanguage("sql",bS()),i.registerLanguage("swift",yS()),i.registerLanguage("yaml",vS()),i.registerLanguage("typescript",ES()),i.registerLanguage("vbnet",_S()),i.registerLanguage("wasm",SS()),i.HighlightJS=i,i.default=i,Sd=i,Sd}var NS=wS();const af=Hb(NS),TS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},xS=2e5,ry="http://www.w3.org/1999/xhtml";function AS(i){for(const a of i.querySelectorAll(".d2h-file-wrapper")){const r=RS(a.dataset.lang??"");if(r)for(const s of kS(a))tb(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),tb(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function RS(i){const a=TS[i]??I0(i);return a==="plaintext"||!af.getLanguage(a)?null:a}function kS(i){const a=[];let r=[];for(const s of i.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const h=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:h,ctn:f})}return r.length&&a.push(r),a}function tb(i,a,r){if(i.filter(a).length===0)return;const u=i.map(y=>y.ctn.textContent??"").join(`
171
+ `);if(!u.trim()||u.length>xS)return;const f=CS(u)&&MS(r)?`/**
172
+ `:"",h=LS(af.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);i.forEach((y,g)=>{const m=h[g];m===void 0||!a(y)||DS(y.ctn,m)})}const OS=/(^|\s)\*\//m,nb=/^\s*\*(\s|$)/;function CS(i){const a=i.search(OS);if(a===-1){const s=i.split(`
173
173
  `).filter(u=>u.trim());return s.length>0&&s.every(u=>nb.test(u))}return i.slice(0,a).split(`
174
- `).every(s=>nb.test(s)||!s.includes("/*"))}function CS(i){return af.highlight("/* */",{language:i,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function MS(i,a){const r=gg(i);let s=a;if(r.length){const u=document.createElementNS(sy,"div");u.innerHTML=a,s=j0(r,gg(u),i.textContent??"")}i.classList.add("hljs"),i.innerHTML=s}function DS(i){const a=document.createElementNS(sy,"div");a.innerHTML=i;const r=[],s=[];let u="";const f=h=>{if(h.nodeType===Node.TEXT_NODE){(h.textContent??"").split(`
175
- `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=LS(m)});return}const y=`<span class="${h.className}">`;u+=y,s.push(y),h.childNodes.forEach(f),s.pop(),u+="</span>"};return a.childNodes.forEach(f),r.push(u),r}function LS(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const zS={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"]},jS={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}]},US={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Xe({name:i,size:a=13}){const r=[...zS[i]??[],...US[i]??[]];return d.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:[(jS[i]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function BS({size:i=17}){return d.jsxs("svg",{className:"logo",width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:i}){return d.jsx("span",{className:"key",children:i})}/*! @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 ab(i,a){(a==null||a>i.length)&&(a=i.length);for(var r=0,s=Array(a);r<a;r++)s[r]=i[r];return s}function IS(i){if(Array.isArray(i))return i}function HS(i,a){var r=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var s,u,f,h,y=[],g=!0,m=!1;try{if(f=(r=r.call(i)).next,a!==0)for(;!(g=(s=f.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&&(h=r.return(),Object(h)!==h))return}finally{if(m)throw u}}return y}}function qS(){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 GS(i,a){return IS(i)||HS(i,a)||$S(i,a)||qS()}function $S(i,a){if(i){if(typeof i=="string")return ab(i,a);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ab(i,a):void 0}}const ry=Object.entries,ib=Object.setPrototypeOf,FS=Object.isFrozen,YS=Object.getPrototypeOf,PS=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,Tn=Object.seal,Bl=Object.create,oy=typeof Reflect<"u"&&Reflect,jd=oy.apply,Ud=oy.construct;Nn||(Nn=function(a){return a});Tn||(Tn=function(a){return a});jd||(jd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Ud||(Ud=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 zl=sn(Array.prototype.forEach),KS=sn(Array.prototype.lastIndexOf),lb=sn(Array.prototype.pop),jl=sn(Array.prototype.push),ZS=sn(Array.prototype.splice),zi=Array.isArray,Is=sn(String.prototype.toLowerCase),wd=sn(String.prototype.toString),sb=sn(String.prototype.match),js=sn(String.prototype.replace),rb=sn(String.prototype.indexOf),XS=sn(String.prototype.trim),VS=sn(Number.prototype.toString),QS=sn(Boolean.prototype.toString),ob=typeof BigInt>"u"?null:sn(BigInt.prototype.toString),cb=typeof Symbol>"u"?null:sn(Symbol.prototype.toString),bn=sn(Object.prototype.hasOwnProperty),Us=sn(Object.prototype.toString),gn=sn(RegExp.prototype.test),Wi=WS(TypeError);function sn(i){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 jd(i,a,s)}}function WS(i){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Ud(i,r)}}function ct(i,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Is;if(ib&&ib(i,null),!zi(a))return i;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(FS(a)||(a[s]=f),u=f)}i[u]=!0}return i}function JS(i){for(let a=0;a<i.length;a++)bn(i,a)||(i[a]=null);return i}function Mn(i){const a=Bl(null);for(const s of ry(i)){var r=GS(s,2);const u=r[0],f=r[1];bn(i,u)&&(zi(f)?a[u]=JS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function ew(i){switch(typeof i){case"string":return i;case"number":return VS(i);case"boolean":return QS(i);case"bigint":return ob?ob(i):"0";case"symbol":return cb?cb(i):"Symbol()";case"undefined":return Us(i);case"function":case"object":{if(i===null)return Us(i);const a=i,r=_a(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:Us(s)}return Us(i)}default:return Us(i)}}function _a(i,a){for(;i!==null;){const s=PS(i,a);if(s){if(s.get)return sn(s.get);if(typeof s.value=="function")return sn(s.value)}i=YS(i)}function r(){return null}return r}function tw(i){try{return gn(i,""),!0}catch{return!1}}const ub=Nn(["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"]),Nd=Nn(["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"]),Td=Nn(["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"]),nw=Nn(["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"]),xd=Nn(["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"]),aw=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),db=Nn(["#text"]),fb=Nn(["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"]),Ad=Nn(["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"]),hb=Nn(["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"]),ao=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iw=Tn(/{{[\w\W]*|^[\w\W]*}}/g),lw=Tn(/<%[\w\W]*|^[\w\W]*%>/g),sw=Tn(/\${[\w\W]*/g),rw=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),ow=Tn(/^aria-[\-\w]+$/),pb=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cw=Tn(/^(?:\w+script|data):/i),uw=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dw=Tn(/^html$/i),fw=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i),mb=Tn(/<[/\w!]/g),gb=Tn(/<[/\w]/g),hw=Tn(/<\/no(script|embed|frames)/i),pw=Tn(/\/>/i),ia={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mw=function(){return typeof window>"u"?null:window},gw=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 f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},bb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return bn(a,r)&&zi(a[r])?ct(u.base?Mn(u.base):{},a[r],u.transform):s};function cy(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mw();const a=J=>cy(J);if(a.version="3.4.13",a.removed=[],!i||!i.document||i.document.nodeType!==ia.document||!i.Element)return a.isSupported=!1,a;let r=i.document;const s=r,u=s.currentScript;i.DocumentFragment;const f=i.HTMLTemplateElement,h=i.Node,y=i.Element,g=i.NodeFilter,m=i.NamedNodeMap;m===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;const b=i.DOMParser,v=i.trustedTypes,_=y.prototype,x=_a(_,"cloneNode"),S=_a(_,"remove"),C=_a(_,"nextSibling"),A=_a(_,"childNodes"),R=_a(_,"parentNode"),$=_a(_,"shadowRoot"),U=_a(_,"attributes"),W=h&&h.prototype?_a(h.prototype,"nodeType"):null,z=h&&h.prototype?_a(h.prototype,"nodeName"):null,ae=h&&h.prototype?_a(h.prototype,"ownerDocument"):null;if(typeof f=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let se,T="",G,ee=!1,ue=0;const Ee=function(){if(ue>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.')},j=function(N){Ee(),ue++;try{return se.createHTML(N)}finally{ue--}},le=function(N){Ee(),ue++;try{return se.createScriptURL(N)}finally{ue--}},fe=function(){return ee||(G=gw(v,u),ee=!0),G},M=r,Q=M.implementation,pe=M.createNodeIterator,we=M.createDocumentFragment,De=M.getElementsByTagName,w=s.importNode;let L=bb();a.isSupported=typeof ry=="function"&&typeof R=="function"&&Q&&Q.createHTMLDocument!==void 0;const I=iw,oe=lw,me=sw,ve=rw,X=ow,be=cw,Te=uw,Ge=fw;let $e=pb,Ce=null;const St=ct({},[...ub,...Nd,...Td,...xd,...db]);let Ke=null;const In=ct({},[...fb,...Ad,...hb,...ao]);let Je=Object.seal(Bl(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}})),Ln=null,Hn=null;const It=Object.seal(Bl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,on=!0,yn=!1,Yt=!0,je=!1,Lt=!0,vt=!1,Ot=!1,xn=null,zn=null,An=!1,jn=!1,Rn=!1,cn=!1,Ht=!0,kn=!1;const qt="user-content-";let la=!0,un=!1,hn={},qe=null;const pn=ct({},["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 Pt=null;const Gt=ct({},["audio","video","img","source","image","track"]);let k=null;const te=ct({},["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",Qe="http://www.w3.org/1999/xhtml";let et=Qe,Ae=!1,Se=null;const Ue=ct({},[ye,ze,Qe],wd),Ct=Nn(["mi","mo","mn","ms","mtext"]);let mt=ct({},Ct);const qn=Nn(["annotation-xml"]);let sa=ct({},qn);const Na=ct({},["title","style","font","a","script"]);let dn=null;const wt=["application/xhtml+xml","text/html"],Kt="text/html";let tt=null,vn=null;const Ua=r.createElement("form"),ba=function(N){return N instanceof RegExp||N instanceof Function},Ta=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vn&&vn===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),dn=wt.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,tt=dn==="application/xhtml+xml"?wd:Is,Ce=Mi(N,"ALLOWED_TAGS",St,{transform:tt}),Ke=Mi(N,"ALLOWED_ATTR",In,{transform:tt}),Se=Mi(N,"ALLOWED_NAMESPACES",Ue,{transform:wd}),k=Mi(N,"ADD_URI_SAFE_ATTR",te,{transform:tt,base:te}),Pt=Mi(N,"ADD_DATA_URI_TAGS",Gt,{transform:tt,base:Gt}),qe=Mi(N,"FORBID_CONTENTS",pn,{transform:tt}),Ln=Mi(N,"FORBID_TAGS",Mn({}),{transform:tt}),Hn=Mi(N,"FORBID_ATTR",Mn({}),{transform:tt}),hn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Rt=N.ALLOW_ARIA_ATTR!==!1,on=N.ALLOW_DATA_ATTR!==!1,yn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Yt=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=N.SAFE_FOR_TEMPLATES||!1,Lt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,jn=N.RETURN_DOM||!1,Rn=N.RETURN_DOM_FRAGMENT||!1,cn=N.RETURN_TRUSTED_TYPE||!1,An=N.FORCE_BODY||!1,Ht=N.SANITIZE_DOM!==!1,kn=N.SANITIZE_NAMED_PROPS||!1,la=N.KEEP_CONTENT!==!1,un=N.IN_PLACE||!1,$e=tw(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:pb,et=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,mt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ct({},Ct),sa=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ct({},qn);const B=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Bl(null);if(Je=Bl(null),bn(B,"tagNameCheck")&&ba(B.tagNameCheck)&&(Je.tagNameCheck=B.tagNameCheck),bn(B,"attributeNameCheck")&&ba(B.attributeNameCheck)&&(Je.attributeNameCheck=B.attributeNameCheck),bn(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),Tn(Je),je&&(on=!1),Rn&&(jn=!0),hn&&(Ce=ct({},db),Ke=Bl(null),hn.html===!0&&(ct(Ce,ub),ct(Ke,fb)),hn.svg===!0&&(ct(Ce,Nd),ct(Ke,Ad),ct(Ke,ao)),hn.svgFilters===!0&&(ct(Ce,Td),ct(Ke,Ad),ct(Ke,ao)),hn.mathMl===!0&&(ct(Ce,xd),ct(Ke,hb),ct(Ke,ao))),It.tagCheck=null,It.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?It.tagCheck=N.ADD_TAGS:zi(N.ADD_TAGS)&&(Ce===St&&(Ce=Mn(Ce)),ct(Ce,N.ADD_TAGS,tt))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?It.attributeCheck=N.ADD_ATTR:zi(N.ADD_ATTR)&&(Ke===In&&(Ke=Mn(Ke)),ct(Ke,N.ADD_ATTR,tt))),bn(N,"ADD_URI_SAFE_ATTR")&&zi(N.ADD_URI_SAFE_ATTR)&&ct(k,N.ADD_URI_SAFE_ATTR,tt),bn(N,"FORBID_CONTENTS")&&zi(N.FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.FORBID_CONTENTS,tt)),bn(N,"ADD_FORBID_CONTENTS")&&zi(N.ADD_FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.ADD_FORBID_CONTENTS,tt)),la&&(Ce["#text"]=!0),vt&&ct(Ce,["html","head","body"]),Ce.table&&(ct(Ce,["tbody"]),delete Ln.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 ne=se;se=N.TRUSTED_TYPES_POLICY;try{T=j("")}catch(xe){throw se=ne,xe}}else N.TRUSTED_TYPES_POLICY===null?(se=void 0,T=""):(se===void 0&&(se=fe()),se&&typeof T=="string"&&(T=j("")));Nn&&Nn(N),vn=N},ra=ct({},[...Nd,...Td,...nw]),xa=ct({},[...xd,...aw]),Wt=function(N,B,ne){return B.namespaceURI===Qe?N==="svg":B.namespaceURI===ye?N==="svg"&&(ne==="annotation-xml"||mt[ne]):!!ra[N]},Gn=function(N,B,ne){return B.namespaceURI===Qe?N==="math":B.namespaceURI===ze?N==="math"&&sa[ne]:!!xa[N]},Xn=function(N,B,ne){return B.namespaceURI===ze&&!sa[ne]||B.namespaceURI===ye&&!mt[ne]?!1:!xa[N]&&(Na[N]||!ra[N])},Vn=function(N){let B=R(N);(!B||!B.tagName)&&(B={namespaceURI:et,tagName:"template"});const ne=Is(N.tagName),xe=Is(B.tagName);return Se[N.namespaceURI]?N.namespaceURI===ze?Wt(ne,B,xe):N.namespaceURI===ye?Gn(ne,B,xe):N.namespaceURI===Qe?Xn(ne,B,xe):!!(dn==="application/xhtml+xml"&&Se[N.namespaceURI]):!1},ut=function(N){jl(a.removed,{element:N});try{R(N).removeChild(N)}catch{if(S(N),!R(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")}},F=function(N){Y(N);const B=A(N);if(B){const xe=[];zl(B,ke=>{jl(xe,ke)}),zl(xe,ke=>{try{S(ke)}catch{}})}const ne=U(N);if(ne)for(let xe=ne.length-1;xe>=0;--xe){const ke=ne[xe],He=ke&&ke.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},de=function(N,B){try{jl(a.removed,{attribute:B.getAttributeNode(N),from:B})}catch{jl(a.removed,{attribute:null,from:B})}if(B.removeAttribute(N),N==="is")if(jn||Rn)try{ut(B)}catch{}else try{B.setAttribute(N,"")}catch{}},Ne=function(N){const B=U(N);if(B)for(let ne=B.length-1;ne>=0;--ne){const xe=B[ne],ke=xe&&xe.name;if(!(typeof ke!="string"||Ke[tt(ke)]))try{N.removeAttribute(ke)}catch{}}},Y=function(N){const B=[N];for(;B.length>0;){const ne=B.pop();(W?W(ne):ne.nodeType)===ia.element&&Ne(ne);const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},ge=function(N){if(!Lt)return;const B=[N];for(;B.length>0;){const ne=B.pop(),xe=W?W(ne):ne.nodeType;if(xe===ia.processingInstruction||xe===ia.comment&&gn(gb,ne.data)){try{S(ne)}catch{}continue}if(xe===ia.element){const He=ne,nt=tt(z?z(ne):ne.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&nt!=="label"&&nt!=="output"&&He.removeAttribute("for")}catch{}}const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},Ie=function(N){let B=null,ne=null;if(An)N="<remove></remove>"+N;else{const He=sb(N,/^[\r\n\t ]+/);ne=He&&He[0]}dn==="application/xhtml+xml"&&et===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const xe=se?j(N):N;if(et===Qe)try{B=new b().parseFromString(xe,dn)}catch{}if(!B||!B.documentElement){B=Q.createDocument(et,"template",null);try{B.documentElement.innerHTML=Ae?T:xe}catch{}}const ke=B.body||B.documentElement;return N&&ne&&ke.insertBefore(r.createTextNode(ne),ke.childNodes[0]||null),et===Qe?De.call(B,vt?"html":"body")[0]:vt?B.documentElement:ke},Ye=function(N){const B=ae?ae(N):N.ownerDocument;return pe.call(B||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(N){return N=js(N,I," "),N=js(N,oe," "),N=js(N,me," "),N},gt=function(N){var B;N.normalize();const ne=ae?ae(N):N.ownerDocument,xe=pe.call(ne||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let ke=xe.nextNode();for(;ke;)ke.data=dt(ke.data),ke=xe.nextNode();const He=(B=N.querySelectorAll)===null||B===void 0?void 0:B.call(N,"template");He&&zl(He,nt=>{Zt(nt.content)&&gt(nt.content)})},Bt=function(N){const B=z?z(N):null;return typeof B!="string"||tt(B)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==U(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!==A(N)},Zt=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return W(N)===ia.documentFragment}catch{return!1}},ft=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return typeof W(N)=="number"}catch{return!1}};function zt(J,N,B){J.length!==0&&zl(J,ne=>{ne.call(a,N,B,vn)})}const il=function(N,B){return!!(Lt&&N.hasChildNodes()&&!ft(N.firstElementChild)&&gn(mb,N.textContent)&&gn(mb,N.innerHTML)||Lt&&N.namespaceURI===Qe&&B==="style"&&ft(N.firstElementChild)||N.nodeType===ia.processingInstruction||Lt&&N.nodeType===ia.comment&&gn(gb,N.data))},li=function(N,B,ne){if(!Ln[B]&&ri(B)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,B)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(B)))return!1;if(la&&!qe[B]){const xe=R(N),ke=A(N);if(ke&&xe){const He=ke.length;for(let nt=He-1;nt>=0;--nt){const he=N===ne?x(ke[nt],!0):ke[nt];xe.insertBefore(he,C(N))}}}return ut(N),!0},si=function(N,B,ne,xe){return N.length===0?B:B===ne||B===xe?Mn(B):B},Ba=function(N,B){if(zt(L.beforeSanitizeElements,N,null),N!==B&&R(N)===null)return un&&Y(N),!0;if(Bt(N))return ut(N),!0;const ne=tt(z?z(N):N.nodeName);if(Ce=si(L.uponSanitizeElement,Ce,St,xn),zt(L.uponSanitizeElement,N,{tagName:ne,allowedTags:Ce}),N!==B&&R(N)===null)return un&&Y(N),!0;if(il(N,ne))return ut(N),!0;if(Ln[ne]||!(It.tagCheck instanceof Function&&It.tagCheck(ne))&&!Ce[ne]){const ke=li(N,ne,B);return ke===!1&&zt(L.afterSanitizeElements,N,null),ke}if((W?W(N):N.nodeType)===ia.element&&!Vn(N)||(ne==="noscript"||ne==="noembed"||ne==="noframes")&&gn(hw,N.innerHTML))return ut(N),!0;if(je&&N.nodeType===ia.text){const ke=dt(N.textContent);N.textContent!==ke&&(jl(a.removed,{element:N.cloneNode()}),N.textContent=ke)}return zt(L.afterSanitizeElements,N,null),!1},ll=function(N,B,ne){if(Hn[B]||Lt&&B==="patchsrc"||Lt&&B==="for"&&N!=="label"&&N!=="output"||Ht&&(B==="id"||B==="name")&&(ne in r||ne in Ua))return!1;const xe=Ke[B]||It.attributeCheck instanceof Function&&It.attributeCheck(B,N);if(!(on&&gn(ve,B))){if(!(Rt&&gn(X,B))){if(xe){if(!k[B]){if(!gn($e,js(ne,Te,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&N!=="script"&&rb(ne,"data:")===0&&Pt[N])){if(!(yn&&!gn(be,js(ne,Te,"")))){if(ne)return!1}}}}}else if(!(ri(N)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,N)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(N))&&(Je.attributeNameCheck instanceof RegExp&&gn(Je.attributeNameCheck,B)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(B,N))||B==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,ne)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(ne))))return!1}}return!0},On=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(N){return!On[Is(N)]&&gn(Ge,N)},Ia=function(N,B,ne,xe){if(se&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ne)switch(v.getAttributeType(N,B)){case"TrustedHTML":return j(xe);case"TrustedScriptURL":return le(xe)}return xe},oi=function(N,B,ne,xe){try{ne?N.setAttributeNS(ne,B,xe):N.setAttribute(B,xe),Bt(N)?ut(N):lb(a.removed)}catch{de(B,N)}},Jt=function(N){zt(L.beforeSanitizeAttributes,N,null);const B=N.attributes;if(!B||Bt(N))return;Ke=si(L.uponSanitizeAttribute,Ke,In,zn);const ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ke,forceKeepAttr:void 0};let xe=B.length;const ke=tt(N.nodeName);for(;xe--;){const He=B[xe],nt=He.name,he=He.namespaceURI,_e=He.value,Me=tt(nt),Ve=_e;let We=nt==="value"?Ve:XS(Ve);if(ne.attrName=Me,ne.attrValue=We,ne.keepAttr=!0,ne.forceKeepAttr=void 0,zt(L.uponSanitizeAttribute,N,ne),We=ne.attrValue,kn&&(Me==="id"||Me==="name")&&rb(We,qt)!==0&&(de(nt,N),We=qt+We),Lt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){de(nt,N);continue}if(Me==="attributename"&&sb(We,"href")){de(nt,N);continue}if(!ne.forceKeepAttr){if(!ne.keepAttr){de(nt,N);continue}if(!Yt&&gn(pw,We)){de(nt,N);continue}if(je&&(We=dt(We)),!ll(ke,Me,We)){de(nt,N);continue}We=Ia(ke,Me,he,We),We!==Ve&&oi(N,nt,he,We)}}zt(L.afterSanitizeAttributes,N,null)},Ha=function(N){let B=null;const ne=Ye(N);for(zt(L.beforeSanitizeShadowDOM,N,null);B=ne.nextNode();)if(zt(L.uponSanitizeShadowNode,B,null),Ba(B,N),Jt(B),Zt(B.content)&&Ha(B.content),(W?W(B):B.nodeType)===ia.element){const ke=$(B);Zt(ke)&&(Aa(ke),Ha(ke))}zt(L.afterSanitizeShadowDOM,N,null)},Aa=function(N){const B=[{node:N,shadow:null}];for(;B.length>0;){const ne=B.pop();if(ne.shadow){Ha(ne.shadow);continue}const xe=ne.node,He=(W?W(xe):xe.nodeType)===ia.element,nt=A(xe);if(nt)for(let he=nt.length-1;he>=0;--he)B.push({node:nt[he],shadow:null});if(He){const he=z?z(xe):null;if(typeof he=="string"&&tt(he)==="template"){const _e=xe.content;Zt(_e)&&B.push({node:_e,shadow:null})}}if(He){const he=$(xe);Zt(he)&&B.push({node:null,shadow:he},{node:he,shadow:null})}}};return a.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,ne=null,xe=null,ke=null;if(Ae=!J,Ae&&(J="<!-->"),typeof J!="string"&&!ft(J)&&(J=ew(J),typeof J!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return J;Ot?(Ce=xn,Ke=zn):Ta(N),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),L.uponSanitizeAttribute.length>0&&(Ke=Mn(Ke)),a.removed=[];const He=un&&typeof J!="string"&&ft(J);if(He){ge(J);const _e=z?z(J):J.nodeName;if(typeof _e=="string"){const Me=tt(_e);if(!Ce[Me]||Ln[Me])throw F(J),Wi("root node is forbidden and cannot be sanitized in-place")}if(Bt(J))throw F(J),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(J)}catch(Me){throw F(J),Me}}else if(ft(J))B=Ie("<!---->"),ne=B.ownerDocument.importNode(J,!0),ne.nodeType===ia.element&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?B=ne:B.appendChild(ne),Aa(ne);else{if(!jn&&!je&&!vt&&J.indexOf("<")===-1)return se&&cn?j(J):J;if(B=Ie(J),!B)return jn?null:cn?T:""}B&&An&&ut(B.firstChild);const nt=He?J:B;try{const _e=Ye(nt);for(;xe=_e.nextNode();)Ba(xe,nt),Jt(xe),Zt(xe.content)&&Ha(xe.content)}catch(_e){throw He&&(F(J),zl(a.removed,Me=>{Me.element&&Y(Me.element)})),_e}if(He)return zl(a.removed,_e=>{_e.element&&Y(_e.element)}),je&&gt(J),J;if(jn){if(je&&gt(B),Rn)for(ke=we.call(B.ownerDocument);B.firstChild;)ke.appendChild(B.firstChild);else ke=B;return(Ke.shadowroot||Ke.shadowrootmode)&&(ke=w.call(s,ke,!0)),ke}let he=vt?B.outerHTML:B.innerHTML;return vt&&Ce["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&gn(dw,B.ownerDocument.doctype.name)&&(he="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
177
- `+he),je&&(he=dt(he)),se&&cn?j(he):he},a.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ta(J),Ot=!0,xn=Ce,zn=Ke},a.clearConfig=function(){vn=null,Ot=!1,xn=null,zn=null,se=G,T=""},a.isValidAttribute=function(J,N,B){vn||Ta({});const ne=tt(J),xe=tt(N);return ll(ne,xe,B)},a.addHook=function(J,N){typeof N=="function"&&bn(L,J)&&jl(L[J],N)},a.removeHook=function(J,N){if(bn(L,J)){if(N!==void 0){const B=KS(L[J],N);return B===-1?void 0:ZS(L[J],B,1)[0]}return lb(L[J])}},a.removeHooks=function(J){bn(L,J)&&(L[J]=[])},a.removeAllHooks=function(){L=bb()},a}var uy=cy();function lf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var al=lf();function dy(i){al=i}var el={exec:()=>null};function Ul(i){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=i(s),a[s]=u),u}}function lt(i,a=""){let r=typeof i=="string"?i:i.source,s={replace:(u,f)=>{let h=typeof f=="string"?f:f.source;return h=h.replace(Dn.caret,"$1"),r=r.replace(u,h),s},getRegex:()=>new RegExp(r,a)};return s}var bw=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),Dn={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:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ul(i=>new RegExp(`^ {0,${i}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}#`)),htmlBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}>`))},yw=/^(?:[ \t]*(?:\n|$))+/,vw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ew=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_w=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hy=lt(fy).replace(/bull/g,sf).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(),Sw=lt(fy).replace(/bull/g,sf).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(),rf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ww=/^[^\n]+/,of=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nw=lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",of).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tw=lt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,sf).getRegex(),wo="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",cf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xw=lt("^ {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",cf).replace("tag",wo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),py=i=>lt(rf).replace("hr",Fs).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",i).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wo).getRegex(),Aw=py(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Rw=py(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),kw=lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rw).getRegex(),uf={blockquote:kw,code:vw,def:Nw,fences:Ew,heading:_w,hr:Fs,html:xw,lheading:hy,list:Tw,newline:yw,paragraph:Aw,table:el,text:ww},yb=lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fs).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",wo).getRegex(),Ow={...uf,lheading:Sw,table:yb,paragraph:lt(rf).replace("hr",Fs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yb).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",wo).getRegex()},Cw={...uf,html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cf).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:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lt(rf).replace("hr",Fs).replace("heading",` *#{1,6} *[^
178
- ]`).replace("lheading",hy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,my=/^( {2,}|\\)\n(?!\s*$)/,Lw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ii=/[\p{P}\p{S}]/u,$l=/[\s\p{P}\p{S}]/u,Ys=/[^\s\p{P}\p{S}]/u,zw=lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$l).getRegex(),jw=/[\p{Pi}\p{Ps}"']/u,gy=/(?!~)[\p{P}\p{S}]/u,Uw=/(?!~)[\s\p{P}\p{S}]/u,Bw=/(?:[^\s\p{P}\p{S}]|~)/u,Iw=lt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",bw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),by=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Hw=lt(by,"u").replace(/punct/g,ii).getRegex(),qw=lt(by,"u").replace(/punct/g,gy).getRegex(),Gw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,$w=lt(Gw,"u").replace(/openQuote/g,jw).replace(/punct/g,ii).getRegex(),yy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Fw=lt(yy,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Yw=lt(yy,"gu").replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,Uw).replace(/punct/g,gy).getRegex(),Pw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Kw=lt(Pw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Zw=lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Xw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Vw=lt(Xw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Qw=lt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ii).getRegex(),Ww="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Jw=lt(Ww,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),eN=lt(/\\(punct)/,"gu").replace(/punct/g,ii).getRegex(),tN=lt(/^<(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(),nN=lt(cf).replace("(?:-->|$)","-->").getRegex(),aN=lt("^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",nN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),po=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,iN=lt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",po).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vy=lt(/^!?\[(label)\]\[(ref)\]/).replace("label",po).replace("ref",of).getRegex(),Ey=lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",of).getRegex(),lN=lt("reflink|nolink(?!\\()","g").replace("reflink",vy).replace("nolink",Ey).getRegex(),vb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,df={_backpedal:el,anyPunctuation:eN,autolink:tN,blockSkip:Iw,br:my,code:Dw,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:Hw,emStrongRDelimAst:Fw,emStrongRDelimUnd:Zw,escape:Mw,link:iN,nolink:Ey,punctuation:zw,reflink:vy,reflinkSearch:lN,tag:aN,text:Lw,url:el},sN={...df,emStrongLDelim:$w,emStrongRDelimAst:Kw,emStrongRDelimUnd:Vw,link:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",po).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",po).getRegex()},Bd={...df,emStrongRDelimAst:Yw,emStrongLDelim:qw,delLDelim:Qw,delRDelim:Jw,url:lt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vb).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:lt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vb).getRegex()},rN={...Bd,br:lt(my).replace("{2,}","*").getRegex(),text:lt(Bd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},io={normal:uf,gfm:Ow,pedantic:Cw},Bs={normal:df,gfm:Bd,breaks:rN,pedantic:sN},oN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Eb=i=>oN[i];function Da(i,a){if(a){if(Dn.escapeTest.test(i))return i.replace(Dn.escapeReplace,Eb)}else if(Dn.escapeTestNoEncode.test(i))return i.replace(Dn.escapeReplaceNoEncode,Eb);return i}function _b(i){try{i=encodeURI(i).replace(Dn.percentDecode,"%")}catch{return null}return i}function Sb(i,a){var f;let r=i.replace(Dn.findPipe,(h,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.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(Dn.slashPipe,"|");return s}function Di(i,a,r){let s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===a;)u++;return i.slice(0,s-u)}function wb(i){let a=i.split(`
174
+ `).every(s=>nb.test(s)||!s.includes("/*"))}function MS(i){return af.highlight("/* */",{language:i,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function DS(i,a){const r=gg(i);let s=a;if(r.length){const u=document.createElementNS(ry,"div");u.innerHTML=a,s=U0(r,gg(u),i.textContent??"")}i.classList.add("hljs"),i.innerHTML=s}function LS(i){const a=document.createElementNS(ry,"div");a.innerHTML=i;const r=[],s=[];let u="";const f=h=>{if(h.nodeType===Node.TEXT_NODE){(h.textContent??"").split(`
175
+ `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=zS(m)});return}const y=`<span class="${h.className}">`;u+=y,s.push(y),h.childNodes.forEach(f),s.pop(),u+="</span>"};return a.childNodes.forEach(f),r.push(u),r}function zS(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const jS={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"]},US={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}]},BS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Xe({name:i,size:a=13}){const r=[...jS[i]??[],...BS[i]??[]];return d.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:[(US[i]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function IS({size:i=17}){return d.jsxs("svg",{className:"logo",width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:i}){return d.jsx("span",{className:"key",children:i})}/*! @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 ab(i,a){(a==null||a>i.length)&&(a=i.length);for(var r=0,s=Array(a);r<a;r++)s[r]=i[r];return s}function HS(i){if(Array.isArray(i))return i}function qS(i,a){var r=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var s,u,f,h,y=[],g=!0,m=!1;try{if(f=(r=r.call(i)).next,a!==0)for(;!(g=(s=f.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&&(h=r.return(),Object(h)!==h))return}finally{if(m)throw u}}return y}}function GS(){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(i,a){return HS(i)||qS(i,a)||FS(i,a)||GS()}function FS(i,a){if(i){if(typeof i=="string")return ab(i,a);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ab(i,a):void 0}}const oy=Object.entries,ib=Object.setPrototypeOf,YS=Object.isFrozen,PS=Object.getPrototypeOf,KS=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,Tn=Object.seal,Bl=Object.create,cy=typeof Reflect<"u"&&Reflect,jd=cy.apply,Ud=cy.construct;Nn||(Nn=function(a){return a});Tn||(Tn=function(a){return a});jd||(jd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Ud||(Ud=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 zl=sn(Array.prototype.forEach),ZS=sn(Array.prototype.lastIndexOf),lb=sn(Array.prototype.pop),jl=sn(Array.prototype.push),XS=sn(Array.prototype.splice),zi=Array.isArray,Hs=sn(String.prototype.toLowerCase),wd=sn(String.prototype.toString),sb=sn(String.prototype.match),Us=sn(String.prototype.replace),rb=sn(String.prototype.indexOf),VS=sn(String.prototype.trim),QS=sn(Number.prototype.toString),WS=sn(Boolean.prototype.toString),ob=typeof BigInt>"u"?null:sn(BigInt.prototype.toString),cb=typeof Symbol>"u"?null:sn(Symbol.prototype.toString),bn=sn(Object.prototype.hasOwnProperty),Bs=sn(Object.prototype.toString),gn=sn(RegExp.prototype.test),Wi=JS(TypeError);function sn(i){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 jd(i,a,s)}}function JS(i){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Ud(i,r)}}function ct(i,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hs;if(ib&&ib(i,null),!zi(a))return i;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(YS(a)||(a[s]=f),u=f)}i[u]=!0}return i}function ew(i){for(let a=0;a<i.length;a++)bn(i,a)||(i[a]=null);return i}function Mn(i){const a=Bl(null);for(const s of oy(i)){var r=$S(s,2);const u=r[0],f=r[1];bn(i,u)&&(zi(f)?a[u]=ew(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function tw(i){switch(typeof i){case"string":return i;case"number":return QS(i);case"boolean":return WS(i);case"bigint":return ob?ob(i):"0";case"symbol":return cb?cb(i):"Symbol()";case"undefined":return Bs(i);case"function":case"object":{if(i===null)return Bs(i);const a=i,r=_a(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:Bs(s)}return Bs(i)}default:return Bs(i)}}function _a(i,a){for(;i!==null;){const s=KS(i,a);if(s){if(s.get)return sn(s.get);if(typeof s.value=="function")return sn(s.value)}i=PS(i)}function r(){return null}return r}function nw(i){try{return gn(i,""),!0}catch{return!1}}const ub=Nn(["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"]),Nd=Nn(["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"]),Td=Nn(["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"]),aw=Nn(["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"]),xd=Nn(["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"]),iw=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),db=Nn(["#text"]),fb=Nn(["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"]),Ad=Nn(["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"]),hb=Nn(["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"]),ao=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lw=Tn(/{{[\w\W]*|^[\w\W]*}}/g),sw=Tn(/<%[\w\W]*|^[\w\W]*%>/g),rw=Tn(/\${[\w\W]*/g),ow=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),cw=Tn(/^aria-[\-\w]+$/),pb=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uw=Tn(/^(?:\w+script|data):/i),dw=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fw=Tn(/^html$/i),hw=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i),mb=Tn(/<[/\w!]/g),gb=Tn(/<[/\w]/g),pw=Tn(/<\/no(script|embed|frames)/i),mw=Tn(/\/>/i),ia={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},gw=function(){return typeof window>"u"?null:window},bw=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 f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},bb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return bn(a,r)&&zi(a[r])?ct(u.base?Mn(u.base):{},a[r],u.transform):s};function uy(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gw();const a=J=>uy(J);if(a.version="3.4.13",a.removed=[],!i||!i.document||i.document.nodeType!==ia.document||!i.Element)return a.isSupported=!1,a;let r=i.document;const s=r,u=s.currentScript;i.DocumentFragment;const f=i.HTMLTemplateElement,h=i.Node,y=i.Element,g=i.NodeFilter,m=i.NamedNodeMap;m===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;const b=i.DOMParser,v=i.trustedTypes,_=y.prototype,x=_a(_,"cloneNode"),S=_a(_,"remove"),C=_a(_,"nextSibling"),A=_a(_,"childNodes"),R=_a(_,"parentNode"),$=_a(_,"shadowRoot"),U=_a(_,"attributes"),W=h&&h.prototype?_a(h.prototype,"nodeType"):null,z=h&&h.prototype?_a(h.prototype,"nodeName"):null,ae=h&&h.prototype?_a(h.prototype,"ownerDocument"):null;if(typeof f=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let se,T="",G,ee=!1,ue=0;const Ee=function(){if(ue>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.')},j=function(N){Ee(),ue++;try{return se.createHTML(N)}finally{ue--}},le=function(N){Ee(),ue++;try{return se.createScriptURL(N)}finally{ue--}},fe=function(){return ee||(G=bw(v,u),ee=!0),G},M=r,Q=M.implementation,pe=M.createNodeIterator,we=M.createDocumentFragment,De=M.getElementsByTagName,w=s.importNode;let L=bb();a.isSupported=typeof oy=="function"&&typeof R=="function"&&Q&&Q.createHTMLDocument!==void 0;const I=lw,oe=sw,me=rw,ve=ow,X=cw,be=uw,Te=dw,Ge=hw;let $e=pb,Ce=null;const St=ct({},[...ub,...Nd,...Td,...xd,...db]);let Ke=null;const In=ct({},[...fb,...Ad,...hb,...ao]);let Je=Object.seal(Bl(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}})),Ln=null,Hn=null;const It=Object.seal(Bl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,on=!0,yn=!1,Yt=!0,je=!1,Lt=!0,vt=!1,Ot=!1,xn=null,zn=null,An=!1,jn=!1,Rn=!1,cn=!1,Ht=!0,kn=!1;const qt="user-content-";let la=!0,un=!1,hn={},qe=null;const pn=ct({},["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 Pt=null;const Gt=ct({},["audio","video","img","source","image","track"]);let k=null;const te=ct({},["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",Qe="http://www.w3.org/1999/xhtml";let et=Qe,Ae=!1,Se=null;const Ue=ct({},[ye,ze,Qe],wd),Ct=Nn(["mi","mo","mn","ms","mtext"]);let mt=ct({},Ct);const qn=Nn(["annotation-xml"]);let sa=ct({},qn);const Na=ct({},["title","style","font","a","script"]);let dn=null;const wt=["application/xhtml+xml","text/html"],Kt="text/html";let tt=null,vn=null;const Ua=r.createElement("form"),ba=function(N){return N instanceof RegExp||N instanceof Function},Ta=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vn&&vn===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),dn=wt.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,tt=dn==="application/xhtml+xml"?wd:Hs,Ce=Mi(N,"ALLOWED_TAGS",St,{transform:tt}),Ke=Mi(N,"ALLOWED_ATTR",In,{transform:tt}),Se=Mi(N,"ALLOWED_NAMESPACES",Ue,{transform:wd}),k=Mi(N,"ADD_URI_SAFE_ATTR",te,{transform:tt,base:te}),Pt=Mi(N,"ADD_DATA_URI_TAGS",Gt,{transform:tt,base:Gt}),qe=Mi(N,"FORBID_CONTENTS",pn,{transform:tt}),Ln=Mi(N,"FORBID_TAGS",Mn({}),{transform:tt}),Hn=Mi(N,"FORBID_ATTR",Mn({}),{transform:tt}),hn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Rt=N.ALLOW_ARIA_ATTR!==!1,on=N.ALLOW_DATA_ATTR!==!1,yn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Yt=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=N.SAFE_FOR_TEMPLATES||!1,Lt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,jn=N.RETURN_DOM||!1,Rn=N.RETURN_DOM_FRAGMENT||!1,cn=N.RETURN_TRUSTED_TYPE||!1,An=N.FORCE_BODY||!1,Ht=N.SANITIZE_DOM!==!1,kn=N.SANITIZE_NAMED_PROPS||!1,la=N.KEEP_CONTENT!==!1,un=N.IN_PLACE||!1,$e=nw(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:pb,et=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,mt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ct({},Ct),sa=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ct({},qn);const B=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Bl(null);if(Je=Bl(null),bn(B,"tagNameCheck")&&ba(B.tagNameCheck)&&(Je.tagNameCheck=B.tagNameCheck),bn(B,"attributeNameCheck")&&ba(B.attributeNameCheck)&&(Je.attributeNameCheck=B.attributeNameCheck),bn(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),Tn(Je),je&&(on=!1),Rn&&(jn=!0),hn&&(Ce=ct({},db),Ke=Bl(null),hn.html===!0&&(ct(Ce,ub),ct(Ke,fb)),hn.svg===!0&&(ct(Ce,Nd),ct(Ke,Ad),ct(Ke,ao)),hn.svgFilters===!0&&(ct(Ce,Td),ct(Ke,Ad),ct(Ke,ao)),hn.mathMl===!0&&(ct(Ce,xd),ct(Ke,hb),ct(Ke,ao))),It.tagCheck=null,It.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?It.tagCheck=N.ADD_TAGS:zi(N.ADD_TAGS)&&(Ce===St&&(Ce=Mn(Ce)),ct(Ce,N.ADD_TAGS,tt))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?It.attributeCheck=N.ADD_ATTR:zi(N.ADD_ATTR)&&(Ke===In&&(Ke=Mn(Ke)),ct(Ke,N.ADD_ATTR,tt))),bn(N,"ADD_URI_SAFE_ATTR")&&zi(N.ADD_URI_SAFE_ATTR)&&ct(k,N.ADD_URI_SAFE_ATTR,tt),bn(N,"FORBID_CONTENTS")&&zi(N.FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.FORBID_CONTENTS,tt)),bn(N,"ADD_FORBID_CONTENTS")&&zi(N.ADD_FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.ADD_FORBID_CONTENTS,tt)),la&&(Ce["#text"]=!0),vt&&ct(Ce,["html","head","body"]),Ce.table&&(ct(Ce,["tbody"]),delete Ln.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 ne=se;se=N.TRUSTED_TYPES_POLICY;try{T=j("")}catch(xe){throw se=ne,xe}}else N.TRUSTED_TYPES_POLICY===null?(se=void 0,T=""):(se===void 0&&(se=fe()),se&&typeof T=="string"&&(T=j("")));Nn&&Nn(N),vn=N},ra=ct({},[...Nd,...Td,...aw]),xa=ct({},[...xd,...iw]),Wt=function(N,B,ne){return B.namespaceURI===Qe?N==="svg":B.namespaceURI===ye?N==="svg"&&(ne==="annotation-xml"||mt[ne]):!!ra[N]},Gn=function(N,B,ne){return B.namespaceURI===Qe?N==="math":B.namespaceURI===ze?N==="math"&&sa[ne]:!!xa[N]},Xn=function(N,B,ne){return B.namespaceURI===ze&&!sa[ne]||B.namespaceURI===ye&&!mt[ne]?!1:!xa[N]&&(Na[N]||!ra[N])},Vn=function(N){let B=R(N);(!B||!B.tagName)&&(B={namespaceURI:et,tagName:"template"});const ne=Hs(N.tagName),xe=Hs(B.tagName);return Se[N.namespaceURI]?N.namespaceURI===ze?Wt(ne,B,xe):N.namespaceURI===ye?Gn(ne,B,xe):N.namespaceURI===Qe?Xn(ne,B,xe):!!(dn==="application/xhtml+xml"&&Se[N.namespaceURI]):!1},ut=function(N){jl(a.removed,{element:N});try{R(N).removeChild(N)}catch{if(S(N),!R(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")}},F=function(N){Y(N);const B=A(N);if(B){const xe=[];zl(B,ke=>{jl(xe,ke)}),zl(xe,ke=>{try{S(ke)}catch{}})}const ne=U(N);if(ne)for(let xe=ne.length-1;xe>=0;--xe){const ke=ne[xe],He=ke&&ke.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},de=function(N,B){try{jl(a.removed,{attribute:B.getAttributeNode(N),from:B})}catch{jl(a.removed,{attribute:null,from:B})}if(B.removeAttribute(N),N==="is")if(jn||Rn)try{ut(B)}catch{}else try{B.setAttribute(N,"")}catch{}},Ne=function(N){const B=U(N);if(B)for(let ne=B.length-1;ne>=0;--ne){const xe=B[ne],ke=xe&&xe.name;if(!(typeof ke!="string"||Ke[tt(ke)]))try{N.removeAttribute(ke)}catch{}}},Y=function(N){const B=[N];for(;B.length>0;){const ne=B.pop();(W?W(ne):ne.nodeType)===ia.element&&Ne(ne);const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},ge=function(N){if(!Lt)return;const B=[N];for(;B.length>0;){const ne=B.pop(),xe=W?W(ne):ne.nodeType;if(xe===ia.processingInstruction||xe===ia.comment&&gn(gb,ne.data)){try{S(ne)}catch{}continue}if(xe===ia.element){const He=ne,nt=tt(z?z(ne):ne.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&nt!=="label"&&nt!=="output"&&He.removeAttribute("for")}catch{}}const ke=A(ne);if(ke)for(let He=ke.length-1;He>=0;--He)B.push(ke[He])}},Ie=function(N){let B=null,ne=null;if(An)N="<remove></remove>"+N;else{const He=sb(N,/^[\r\n\t ]+/);ne=He&&He[0]}dn==="application/xhtml+xml"&&et===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const xe=se?j(N):N;if(et===Qe)try{B=new b().parseFromString(xe,dn)}catch{}if(!B||!B.documentElement){B=Q.createDocument(et,"template",null);try{B.documentElement.innerHTML=Ae?T:xe}catch{}}const ke=B.body||B.documentElement;return N&&ne&&ke.insertBefore(r.createTextNode(ne),ke.childNodes[0]||null),et===Qe?De.call(B,vt?"html":"body")[0]:vt?B.documentElement:ke},Ye=function(N){const B=ae?ae(N):N.ownerDocument;return pe.call(B||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(N){return N=Us(N,I," "),N=Us(N,oe," "),N=Us(N,me," "),N},gt=function(N){var B;N.normalize();const ne=ae?ae(N):N.ownerDocument,xe=pe.call(ne||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let ke=xe.nextNode();for(;ke;)ke.data=dt(ke.data),ke=xe.nextNode();const He=(B=N.querySelectorAll)===null||B===void 0?void 0:B.call(N,"template");He&&zl(He,nt=>{Zt(nt.content)&&gt(nt.content)})},Bt=function(N){const B=z?z(N):null;return typeof B!="string"||tt(B)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==U(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!==A(N)},Zt=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return W(N)===ia.documentFragment}catch{return!1}},ft=function(N){if(!W||typeof N!="object"||N===null)return!1;try{return typeof W(N)=="number"}catch{return!1}};function zt(J,N,B){J.length!==0&&zl(J,ne=>{ne.call(a,N,B,vn)})}const il=function(N,B){return!!(Lt&&N.hasChildNodes()&&!ft(N.firstElementChild)&&gn(mb,N.textContent)&&gn(mb,N.innerHTML)||Lt&&N.namespaceURI===Qe&&B==="style"&&ft(N.firstElementChild)||N.nodeType===ia.processingInstruction||Lt&&N.nodeType===ia.comment&&gn(gb,N.data))},li=function(N,B,ne){if(!Ln[B]&&ri(B)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,B)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(B)))return!1;if(la&&!qe[B]){const xe=R(N),ke=A(N);if(ke&&xe){const He=ke.length;for(let nt=He-1;nt>=0;--nt){const he=N===ne?x(ke[nt],!0):ke[nt];xe.insertBefore(he,C(N))}}}return ut(N),!0},si=function(N,B,ne,xe){return N.length===0?B:B===ne||B===xe?Mn(B):B},Ba=function(N,B){if(zt(L.beforeSanitizeElements,N,null),N!==B&&R(N)===null)return un&&Y(N),!0;if(Bt(N))return ut(N),!0;const ne=tt(z?z(N):N.nodeName);if(Ce=si(L.uponSanitizeElement,Ce,St,xn),zt(L.uponSanitizeElement,N,{tagName:ne,allowedTags:Ce}),N!==B&&R(N)===null)return un&&Y(N),!0;if(il(N,ne))return ut(N),!0;if(Ln[ne]||!(It.tagCheck instanceof Function&&It.tagCheck(ne))&&!Ce[ne]){const ke=li(N,ne,B);return ke===!1&&zt(L.afterSanitizeElements,N,null),ke}if((W?W(N):N.nodeType)===ia.element&&!Vn(N)||(ne==="noscript"||ne==="noembed"||ne==="noframes")&&gn(pw,N.innerHTML))return ut(N),!0;if(je&&N.nodeType===ia.text){const ke=dt(N.textContent);N.textContent!==ke&&(jl(a.removed,{element:N.cloneNode()}),N.textContent=ke)}return zt(L.afterSanitizeElements,N,null),!1},ll=function(N,B,ne){if(Hn[B]||Lt&&B==="patchsrc"||Lt&&B==="for"&&N!=="label"&&N!=="output"||Ht&&(B==="id"||B==="name")&&(ne in r||ne in Ua))return!1;const xe=Ke[B]||It.attributeCheck instanceof Function&&It.attributeCheck(B,N);if(!(on&&gn(ve,B))){if(!(Rt&&gn(X,B))){if(xe){if(!k[B]){if(!gn($e,Us(ne,Te,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&N!=="script"&&rb(ne,"data:")===0&&Pt[N])){if(!(yn&&!gn(be,Us(ne,Te,"")))){if(ne)return!1}}}}}else if(!(ri(N)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,N)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(N))&&(Je.attributeNameCheck instanceof RegExp&&gn(Je.attributeNameCheck,B)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(B,N))||B==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,ne)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(ne))))return!1}}return!0},On=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(N){return!On[Hs(N)]&&gn(Ge,N)},Ia=function(N,B,ne,xe){if(se&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ne)switch(v.getAttributeType(N,B)){case"TrustedHTML":return j(xe);case"TrustedScriptURL":return le(xe)}return xe},oi=function(N,B,ne,xe){try{ne?N.setAttributeNS(ne,B,xe):N.setAttribute(B,xe),Bt(N)?ut(N):lb(a.removed)}catch{de(B,N)}},Jt=function(N){zt(L.beforeSanitizeAttributes,N,null);const B=N.attributes;if(!B||Bt(N))return;Ke=si(L.uponSanitizeAttribute,Ke,In,zn);const ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ke,forceKeepAttr:void 0};let xe=B.length;const ke=tt(N.nodeName);for(;xe--;){const He=B[xe],nt=He.name,he=He.namespaceURI,_e=He.value,Me=tt(nt),Ve=_e;let We=nt==="value"?Ve:VS(Ve);if(ne.attrName=Me,ne.attrValue=We,ne.keepAttr=!0,ne.forceKeepAttr=void 0,zt(L.uponSanitizeAttribute,N,ne),We=ne.attrValue,kn&&(Me==="id"||Me==="name")&&rb(We,qt)!==0&&(de(nt,N),We=qt+We),Lt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){de(nt,N);continue}if(Me==="attributename"&&sb(We,"href")){de(nt,N);continue}if(!ne.forceKeepAttr){if(!ne.keepAttr){de(nt,N);continue}if(!Yt&&gn(mw,We)){de(nt,N);continue}if(je&&(We=dt(We)),!ll(ke,Me,We)){de(nt,N);continue}We=Ia(ke,Me,he,We),We!==Ve&&oi(N,nt,he,We)}}zt(L.afterSanitizeAttributes,N,null)},Ha=function(N){let B=null;const ne=Ye(N);for(zt(L.beforeSanitizeShadowDOM,N,null);B=ne.nextNode();)if(zt(L.uponSanitizeShadowNode,B,null),Ba(B,N),Jt(B),Zt(B.content)&&Ha(B.content),(W?W(B):B.nodeType)===ia.element){const ke=$(B);Zt(ke)&&(Aa(ke),Ha(ke))}zt(L.afterSanitizeShadowDOM,N,null)},Aa=function(N){const B=[{node:N,shadow:null}];for(;B.length>0;){const ne=B.pop();if(ne.shadow){Ha(ne.shadow);continue}const xe=ne.node,He=(W?W(xe):xe.nodeType)===ia.element,nt=A(xe);if(nt)for(let he=nt.length-1;he>=0;--he)B.push({node:nt[he],shadow:null});if(He){const he=z?z(xe):null;if(typeof he=="string"&&tt(he)==="template"){const _e=xe.content;Zt(_e)&&B.push({node:_e,shadow:null})}}if(He){const he=$(xe);Zt(he)&&B.push({node:null,shadow:he},{node:he,shadow:null})}}};return a.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,ne=null,xe=null,ke=null;if(Ae=!J,Ae&&(J="<!-->"),typeof J!="string"&&!ft(J)&&(J=tw(J),typeof J!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return J;Ot?(Ce=xn,Ke=zn):Ta(N),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),L.uponSanitizeAttribute.length>0&&(Ke=Mn(Ke)),a.removed=[];const He=un&&typeof J!="string"&&ft(J);if(He){ge(J);const _e=z?z(J):J.nodeName;if(typeof _e=="string"){const Me=tt(_e);if(!Ce[Me]||Ln[Me])throw F(J),Wi("root node is forbidden and cannot be sanitized in-place")}if(Bt(J))throw F(J),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(J)}catch(Me){throw F(J),Me}}else if(ft(J))B=Ie("<!---->"),ne=B.ownerDocument.importNode(J,!0),ne.nodeType===ia.element&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?B=ne:B.appendChild(ne),Aa(ne);else{if(!jn&&!je&&!vt&&J.indexOf("<")===-1)return se&&cn?j(J):J;if(B=Ie(J),!B)return jn?null:cn?T:""}B&&An&&ut(B.firstChild);const nt=He?J:B;try{const _e=Ye(nt);for(;xe=_e.nextNode();)Ba(xe,nt),Jt(xe),Zt(xe.content)&&Ha(xe.content)}catch(_e){throw He&&(F(J),zl(a.removed,Me=>{Me.element&&Y(Me.element)})),_e}if(He)return zl(a.removed,_e=>{_e.element&&Y(_e.element)}),je&&gt(J),J;if(jn){if(je&&gt(B),Rn)for(ke=we.call(B.ownerDocument);B.firstChild;)ke.appendChild(B.firstChild);else ke=B;return(Ke.shadowroot||Ke.shadowrootmode)&&(ke=w.call(s,ke,!0)),ke}let he=vt?B.outerHTML:B.innerHTML;return vt&&Ce["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&gn(fw,B.ownerDocument.doctype.name)&&(he="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
177
+ `+he),je&&(he=dt(he)),se&&cn?j(he):he},a.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ta(J),Ot=!0,xn=Ce,zn=Ke},a.clearConfig=function(){vn=null,Ot=!1,xn=null,zn=null,se=G,T=""},a.isValidAttribute=function(J,N,B){vn||Ta({});const ne=tt(J),xe=tt(N);return ll(ne,xe,B)},a.addHook=function(J,N){typeof N=="function"&&bn(L,J)&&jl(L[J],N)},a.removeHook=function(J,N){if(bn(L,J)){if(N!==void 0){const B=ZS(L[J],N);return B===-1?void 0:XS(L[J],B,1)[0]}return lb(L[J])}},a.removeHooks=function(J){bn(L,J)&&(L[J]=[])},a.removeAllHooks=function(){L=bb()},a}var dy=uy();function lf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var al=lf();function fy(i){al=i}var el={exec:()=>null};function Ul(i){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=i(s),a[s]=u),u}}function lt(i,a=""){let r=typeof i=="string"?i:i.source,s={replace:(u,f)=>{let h=typeof f=="string"?f:f.source;return h=h.replace(Dn.caret,"$1"),r=r.replace(u,h),s},getRegex:()=>new RegExp(r,a)};return s}var yw=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),Dn={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:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ul(i=>new RegExp(`^ {0,${i}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}#`)),htmlBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}>`))},vw=/^(?:[ \t]*(?:\n|$))+/,Ew=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_w=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ys=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Sw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,hy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,py=lt(hy).replace(/bull/g,sf).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(),ww=lt(hy).replace(/bull/g,sf).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(),rf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Nw=/^[^\n]+/,of=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tw=lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",of).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xw=lt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,sf).getRegex(),wo="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",cf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Aw=lt("^ {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",cf).replace("tag",wo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),my=i=>lt(rf).replace("hr",Ys).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",i).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",wo).getRegex(),Rw=my(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kw=my(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ow=lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kw).getRegex(),uf={blockquote:Ow,code:Ew,def:Tw,fences:_w,heading:Sw,hr:Ys,html:Aw,lheading:py,list:xw,newline:vw,paragraph:Rw,table:el,text:Nw},yb=lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ys).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",wo).getRegex(),Cw={...uf,lheading:ww,table:yb,paragraph:lt(rf).replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yb).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",wo).getRegex()},Mw={...uf,html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cf).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:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lt(rf).replace("hr",Ys).replace("heading",` *#{1,6} *[^
178
+ ]`).replace("lheading",py).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Lw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gy=/^( {2,}|\\)\n(?!\s*$)/,zw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ii=/[\p{P}\p{S}]/u,$l=/[\s\p{P}\p{S}]/u,Ps=/[^\s\p{P}\p{S}]/u,jw=lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$l).getRegex(),Uw=/[\p{Pi}\p{Ps}"']/u,by=/(?!~)[\p{P}\p{S}]/u,Bw=/(?!~)[\s\p{P}\p{S}]/u,Iw=/(?:[^\s\p{P}\p{S}]|~)/u,Hw=lt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",yw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),yy=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,qw=lt(yy,"u").replace(/punct/g,ii).getRegex(),Gw=lt(yy,"u").replace(/punct/g,by).getRegex(),$w=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Fw=lt($w,"u").replace(/openQuote/g,Uw).replace(/punct/g,ii).getRegex(),vy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Yw=lt(vy,"gu").replace(/notPunctSpace/g,Ps).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Pw=lt(vy,"gu").replace(/notPunctSpace/g,Iw).replace(/punctSpace/g,Bw).replace(/punct/g,by).getRegex(),Kw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Zw=lt(Kw,"gu").replace(/notPunctSpace/g,Ps).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Xw=lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ps).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Vw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Qw=lt(Vw,"gu").replace(/notPunctSpace/g,Ps).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Ww=lt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ii).getRegex(),Jw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",eN=lt(Jw,"gu").replace(/notPunctSpace/g,Ps).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),tN=lt(/\\(punct)/,"gu").replace(/punct/g,ii).getRegex(),nN=lt(/^<(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(),aN=lt(cf).replace("(?:-->|$)","-->").getRegex(),iN=lt("^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",aN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),po=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lN=lt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",po).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ey=lt(/^!?\[(label)\]\[(ref)\]/).replace("label",po).replace("ref",of).getRegex(),_y=lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",of).getRegex(),sN=lt("reflink|nolink(?!\\()","g").replace("reflink",Ey).replace("nolink",_y).getRegex(),vb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,df={_backpedal:el,anyPunctuation:tN,autolink:nN,blockSkip:Hw,br:gy,code:Lw,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:qw,emStrongRDelimAst:Yw,emStrongRDelimUnd:Xw,escape:Dw,link:lN,nolink:_y,punctuation:jw,reflink:Ey,reflinkSearch:sN,tag:iN,text:zw,url:el},rN={...df,emStrongLDelim:Fw,emStrongRDelimAst:Zw,emStrongRDelimUnd:Qw,link:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",po).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",po).getRegex()},Bd={...df,emStrongRDelimAst:Pw,emStrongLDelim:Gw,delLDelim:Ww,delRDelim:eN,url:lt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vb).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:lt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vb).getRegex()},oN={...Bd,br:lt(gy).replace("{2,}","*").getRegex(),text:lt(Bd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},io={normal:uf,gfm:Cw,pedantic:Mw},Is={normal:df,gfm:Bd,breaks:oN,pedantic:rN},cN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Eb=i=>cN[i];function Da(i,a){if(a){if(Dn.escapeTest.test(i))return i.replace(Dn.escapeReplace,Eb)}else if(Dn.escapeTestNoEncode.test(i))return i.replace(Dn.escapeReplaceNoEncode,Eb);return i}function _b(i){try{i=encodeURI(i).replace(Dn.percentDecode,"%")}catch{return null}return i}function Sb(i,a){var f;let r=i.replace(Dn.findPipe,(h,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.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(Dn.slashPipe,"|");return s}function Di(i,a,r){let s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===a;)u++;return i.slice(0,s-u)}function wb(i){let a=i.split(`
179
179
  `),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?i:a.slice(0,r+1).join(`
180
- `)}function cN(i,a){if(i.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===a[0])r++;else if(i[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function uN(i,a=0){let r=a,s="";for(let u of i)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function Nb(i,a,r,s,u){let f=a.href,h=a.title||null,y=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:h,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function dN(i,a,r){let s=i.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
180
+ `)}function uN(i,a){if(i.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===a[0])r++;else if(i[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function dN(i,a=0){let r=a,s="";for(let u of i)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function Nb(i,a,r,s,u){let f=a.href,h=a.title||null,y=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:h,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function fN(i,a,r){let s=i.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
181
181
  `).map(f=>{let h=f.match(r.other.beginningSpace);if(h===null)return f;let[y]=h;return y.length>=u.length?f.slice(u.length):f}).join(`
182
- `)}var mo=class{constructor(i){At(this,"options");At(this,"rules");At(this,"lexer");this.options=i||al}space(i){let a=this.rules.block.newline.exec(i);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(i){let a=this.rules.block.code.exec(i);if(a){let r=this.options.pedantic?a[0]:wb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(i){let a=this.rules.block.fences.exec(i);if(a){let r=a[0],s=dN(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(i){let a=this.rules.block.heading.exec(i);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
182
+ `)}var mo=class{constructor(i){At(this,"options");At(this,"rules");At(this,"lexer");this.options=i||al}space(i){let a=this.rules.block.newline.exec(i);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(i){let a=this.rules.block.code.exec(i);if(a){let r=this.options.pedantic?a[0]:wb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(i){let a=this.rules.block.fences.exec(i);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(i){let a=this.rules.block.heading.exec(i);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
183
183
  `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){let a=this.rules.block.hr.exec(i);if(a)return{type:"hr",raw:Di(a[0],`
184
184
  `)}}blockquote(i){let a=this.rules.block.blockquote.exec(i);if(a){let r=Di(a[0],`
185
185
  `).split(`
@@ -193,7 +193,7 @@ ${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
193
193
  ${S}`,u=u.substring(0,u.length-x.text.length)+A.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,S=x.raw+`
194
194
  `+r.join(`
195
195
  `),C=this.list(S);f[f.length-1]=C,s=s.substring(0,s.length-_.raw.length)+C.raw,u=u.substring(0,u.length-x.raw.length)+C.raw,r=S.substring(f.at(-1).raw.length).split(`
196
- `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let a=this.rules.block.list.exec(i);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 f=this.rules.other.listItemRegex(r),h=!1;for(;i;){let g=!1,m="",b="";if(!(a=f.exec(i))||this.rules.block.hr.test(i))break;m=a[0],i=i.substring(m.length);let v=uN(a[2].split(`
196
+ `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let a=this.rules.block.list.exec(i);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 f=this.rules.other.listItemRegex(r),h=!1;for(;i;){let g=!1,m="",b="";if(!(a=f.exec(i))||this.rules.block.hr.test(i))break;m=a[0],i=i.substring(m.length);let v=dN(a[2].split(`
197
197
  `,1)[0],a[1].length),_=i.split(`
198
198
  `,1)[0],x=!v.trim(),S=0;if(this.options.pedantic?(S=2,b=v.trimStart()):x?S=a[1].length+1:(S=v.search(this.rules.other.nonSpaceChar),S=S>4?1:S,b=v.slice(S),S+=a[1].length),x&&this.rules.other.blankLine.test(_)&&(m+=_+`
199
199
  `,i=i.substring(_.length+1),g=!0),!g){let C=this.rules.other.nextBulletRegex(S),A=this.rules.other.hrRegex(S),R=this.rules.other.fencesBeginRegex(S),$=this.rules.other.headingBeginRegex(S),U=this.rules.other.htmlBeginRegex(S),W=this.rules.other.blockquoteBeginRegex(S);for(;i;){let z=i.split(`
@@ -205,7 +205,7 @@ ${S}`,u=u.substring(0,u.length-x.text.length)+A.text;break}else if((_==null?void
205
205
  `):[],f={type:"table",raw:Di(a[0],`
206
206
  `),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(Sb(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(i){let a=this.rules.block.lheading.exec(i);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
207
207
  `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(i){let a=this.rules.block.paragraph.exec(i);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(i){let a=this.rules.block.text.exec(i);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(i){let a=this.rules.inline.escape.exec(i);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(i){let a=this.rules.inline.tag.exec(i);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(i){let a=this.rules.inline.link.exec(i);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 f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=cN(a[2],"()");if(f===-2)return;if(f>-1){let h=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,h).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[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)),Nb(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(i,a){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Nb(r,u,r[0],this.lexer,this.rules)}}emStrong(i,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);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,f,h,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*i.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(h=[...f].length,s[3]||s[4]){y+=h;continue}else if(s[5]||s[6]){if(u%3&&!((u+h)%3)){g+=h;continue}if(b)break}if(y-=h,y>0)continue;h=Math.min(h,h+y+g);let _=[...s[0]][0].length,x=i.slice(0,u+s.index+_+h);if(Math.min(u,h)%2){let C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}let S=x.slice(2,-2);return{type:"strong",raw:x,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(i){let a=this.rules.inline.code.exec(i);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(i){let a=this.rules.inline.br.exec(i);if(a)return{type:"br",raw:a[0]}}del(i,a,r=""){let s=this.rules.inline.delLDelim.exec(i);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,h,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*i.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(h=[...f].length,h!==u))continue;if(s[3]||s[4]){y+=h;continue}if(y-=h,y>0)continue;h=Math.min(h,h+y);let m=[...s[0]][0].length,b=i.slice(0,u+s.index+m+h),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(i){let a=this.rules.inline.autolink.exec(i);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(i){var r;let a;if(a=this.rules.inline.url.exec(i)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==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(i){let a=this.rules.inline.text.exec(i);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Sa=class Id{constructor(a){At(this,"tokens");At(this,"options");At(this,"state");At(this,"inlineQueue");At(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||al,this.options.tokenizer=this.options.tokenizer||new mo,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:Dn,block:io.normal,inline:Bs.normal};this.options.pedantic?(r.block=io.pedantic,r.inline=Bs.pedantic):this.options.gfm&&(r.block=io.gfm,this.options.breaks?r.inline=Bs.breaks:r.inline=Bs.gfm),this.tokenizer.rules=r}static get rules(){return{block:io,inline:Bs}}static lex(a,r){return new Id(r).lex(a)}static lexInline(a,r){return new Id(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
208
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(i){let a=this.rules.block.text.exec(i);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(i){let a=this.rules.inline.escape.exec(i);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(i){let a=this.rules.inline.tag.exec(i);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(i){let a=this.rules.inline.link.exec(i);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 f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=uN(a[2],"()");if(f===-2)return;if(f>-1){let h=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,h).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[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)),Nb(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(i,a){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Nb(r,u,r[0],this.lexer,this.rules)}}emStrong(i,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);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,f,h,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*i.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(h=[...f].length,s[3]||s[4]){y+=h;continue}else if(s[5]||s[6]){if(u%3&&!((u+h)%3)){g+=h;continue}if(b)break}if(y-=h,y>0)continue;h=Math.min(h,h+y+g);let _=[...s[0]][0].length,x=i.slice(0,u+s.index+_+h);if(Math.min(u,h)%2){let C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}let S=x.slice(2,-2);return{type:"strong",raw:x,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(i){let a=this.rules.inline.code.exec(i);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(i){let a=this.rules.inline.br.exec(i);if(a)return{type:"br",raw:a[0]}}del(i,a,r=""){let s=this.rules.inline.delLDelim.exec(i);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,h,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*i.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(h=[...f].length,h!==u))continue;if(s[3]||s[4]){y+=h;continue}if(y-=h,y>0)continue;h=Math.min(h,h+y);let m=[...s[0]][0].length,b=i.slice(0,u+s.index+m+h),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(i){let a=this.rules.inline.autolink.exec(i);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(i){var r;let a;if(a=this.rules.inline.url.exec(i)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==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(i){let a=this.rules.inline.text.exec(i);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Sa=class Id{constructor(a){At(this,"tokens");At(this,"options");At(this,"state");At(this,"inlineQueue");At(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||al,this.options.tokenizer=this.options.tokenizer||new mo,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:Dn,block:io.normal,inline:Is.normal};this.options.pedantic?(r.block=io.pedantic,r.inline=Is.pedantic):this.options.gfm&&(r.block=io.gfm,this.options.breaks?r.inline=Is.breaks:r.inline=Is.gfm),this.tokenizer.rules=r}static get rules(){return{block:io,inline:Is}}static lex(a,r){return new Id(r).lex(a)}static lexInline(a,r){return new Id(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
209
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 f,h,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Dn.tabCharGlobal," ").replace(Dn.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((h=(f=this.options.extensions)==null?void 0:f.block)!=null&&h.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
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
211
  `)?"":`
@@ -237,18 +237,14 @@ ${this.parser.parse(i)}</blockquote>
237
237
  `}tablerow({text:i}){return`<tr>
238
238
  ${i}</tr>
239
239
  `}tablecell(i){let a=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+a+`</${r}>
240
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Da(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:a,tokens:r}){let s=this.parser.parseInline(r),u=_b(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:i,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=_b(i);if(u===null)return Da(r);i=u;let f=`<img src="${i}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Da(i.text)}},ff=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},wa=class Hd{constructor(a){At(this,"options");At(this,"renderer");At(this,"textRenderer");this.options=a||al,this.options.renderer=this.options.renderer||new go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ff}static parse(a,r){return new Hd(r).parse(a)}static parseInline(a,r){return new Hd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let h=a[f];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[h.type]){let g=h,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=h;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,f;this.renderer.parser=this;let s="";for(let h=0;h<a.length;h++){let y=a[h];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[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}},so,Hs=(so=class{constructor(i){At(this,"options");At(this,"block");this.options=i||al}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?Sa.lex:Sa.lexInline}provideParser(i=this.block){return i?wa.parse:wa.parseInline}},At(so,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),At(so,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),so),fN=class{constructor(...i){At(this,"defaults",lf());At(this,"options",this.setOptions);At(this,"parse",this.parseMarkdown(!0));At(this,"parseInline",this.parseMarkdown(!1));At(this,"Parser",wa);At(this,"Renderer",go);At(this,"TextRenderer",ff);At(this,"Lexer",Sa);At(this,"Tokenizer",mo);At(this,"Hooks",Hs);this.use(...i)}walkTokens(i,a){var s,u;let r=[];for(let f of i)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let h=f;for(let y of h.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of h.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let h=f;r=r.concat(this.walkTokens(h.items,a));break}default:{let h=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[h.type]?this.defaults.extensions.childTokens[h.type].forEach(y=>{let g=h[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):h.tokens&&(r=r.concat(this.walkTokens(h.tokens,a)))}}return r}use(...i){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return i.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 f=a.renderers[u.name];f?a.renderers[u.name]=function(...h){let y=u.renderer.apply(this,h);return y===!1&&(y=f.apply(this,h)),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 f=a[u.level];f?f.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 go(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let h=f,y=r.renderer[h],g=u[h];u[h]=(...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 mo(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let h=f,y=r.tokenizer[h],g=u[h];u[h]=(...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 Hs;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let h=f,y=r.hooks[h],g=u[h];Hs.passThroughHooks.has(f)?u[h]=m=>{if(this.defaults.async&&Hs.passThroughHooksRespectAsync.has(f))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[h]=(...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,f=r.walkTokens;s.walkTokens=function(h){let y=[];return y.push(f.call(this,h)),u&&(y=y.concat(u.call(this,h))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,a){return Sa.lex(i,a??this.defaults)}parser(i,a){return wa.parse(i,a??this.defaults)}parseMarkdown(i){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(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 f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(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=i),u.async)return(async()=>{let h=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(h,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(i):i?wa.parse:wa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let h=(u.hooks?u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(a,u);u.hooks&&(h=u.hooks.processAllTokens(h)),u.walkTokens&&this.walkTokens(h,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(i):i?wa.parse:wa.parseInline)(h,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(h){return f(h)}}}onError(i,a){return r=>{if(r.message+=`
241
- Please report this to https://github.com/markedjs/marked.`,i){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}}},nl=new fN;function yt(i,a){return nl.parse(i,a)}yt.options=yt.setOptions=function(i){return nl.setOptions(i),yt.defaults=nl.defaults,dy(yt.defaults),yt};yt.getDefaults=lf;yt.defaults=al;function hN(...i){return nl.use(...i),yt.defaults=nl.defaults,dy(yt.defaults),yt}yt.use=hN;yt.walkTokens=function(i,a){return nl.walkTokens(i,a)};yt.parseInline=nl.parseInline;yt.Parser=wa;yt.parser=wa.parse;yt.Renderer=go;yt.TextRenderer=ff;yt.Lexer=Sa;yt.lexer=Sa.lex;yt.Tokenizer=mo;yt.Hooks=Hs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;wa.parse;Sa.lex;const pN="modulepreload",mN=function(i){return"/"+i},Tb={},gN=function(a,r,s){let u=Promise.resolve();if(r&&r.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),g=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));u=h(r.map(m=>{if(m=mN(m),m in Tb)return;Tb[m]=!0;const b=m.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":pN,b||(_.as="script"),_.crossOrigin="",_.href=m,g&&_.setAttribute("nonce",g),document.head.appendChild(_),b)return new Promise((x,S)=>{_.addEventListener("load",x),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return u.then(h=>{for(const y of h||[])y.status==="rejected"&&f(y.reason);return a().catch(f)})};let bN=0;async function yN(i){const a=[...i.querySelectorAll("pre > code.language-mermaid")];if(a.length===0)return;const{default:r}=await gN(async()=>{const{default:s}=await import("./mermaid.core-DSlXNYTz.js").then(u=>u.bA);return{default:s}},[]);r.initialize({startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,theme:"neutral",htmlLabels:!1,flowchart:{htmlLabels:!1,useMaxWidth:!1}});for(const s of a){const u=s.textContent??"";try{const{svg:f}=await r.render(`cerber-diagram-${++bN}`,u),h=s.parentElement;if(!(h!=null&&h.isConnected))continue;const y=document.createElement("figure");y.className="md-diagram",y.innerHTML=uy.sanitize(f,{USE_PROFILES:{svg:!0,svgFilters:!0}}),h.replaceWith(y)}catch(f){console.warn("cerber: could not draw a diagram",f)}}}yt.setOptions({gfm:!0,breaks:!1});const vN={NOTE:"Note",TIP:"Tip",IMPORTANT:"Important",WARNING:"Warning",CAUTION:"Caution"};yt.use({renderer:{blockquote({tokens:i,text:a}){const r=this.parser.parse(i),s=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\][ \t]*(?:\n|$)/.exec(a);if(!s)return`<blockquote>
242
- ${r}</blockquote>
243
- `;const u=s[1],f=r.replace(/^<p>\[![A-Z]+\][ \t]*(?:\n|<\/p>\n?)/,h=>h.includes("</p>")?"":"<p>");return`<div class="md-alert md-alert-${u.toLowerCase()}"><p class="md-alert-title">${vN[u]}</p>
244
- ${f}</div>
245
- `}}});function hf(i){const a=yt.parse(i??"",{async:!1});return uy.sanitize(a)}function _y(i){const a=H.useRef(null);return H.useEffect(()=>{a.current&&yN(a.current)},[i]),a}function ai({text:i,className:a}){const r=H.useMemo(()=>({__html:hf(i)}),[i]),s=_y(r.__html);return i!=null&&i.trim()?d.jsx("div",{ref:s,className:`md ${a??""}`,dangerouslySetInnerHTML:r}):null}const EN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function _N(i){return i.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>EN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function SN(i,a){return _N(a)!==i.replace(/\s+/g," ").trim()}function Ps({text:i,className:a}){const r=H.useMemo(()=>({__html:i!=null&&i.trim()?hf(i):""}),[i]),s=_y(r.__html);return!r.__html||!SN(i,r.__html)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{ref:s,className:`md prose ${a??""}`,dangerouslySetInnerHTML:r})]})}const wN=/\.(md|markdown)$/i;function pf(i){return wN.test(i)}function NN(i){return/^new file mode /m.test(i)||/^--- \/dev\/null$/m.test(i)}function TN(i){const a=[];let r=0,s=!1;const u=i.split(`
240
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Da(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:a,tokens:r}){let s=this.parser.parseInline(r),u=_b(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:i,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=_b(i);if(u===null)return Da(r);i=u;let f=`<img src="${i}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Da(i.text)}},ff=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},wa=class Hd{constructor(a){At(this,"options");At(this,"renderer");At(this,"textRenderer");this.options=a||al,this.options.renderer=this.options.renderer||new go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ff}static parse(a,r){return new Hd(r).parse(a)}static parseInline(a,r){return new Hd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let h=a[f];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[h.type]){let g=h,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=h;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,f;this.renderer.parser=this;let s="";for(let h=0;h<a.length;h++){let y=a[h];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[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}},so,qs=(so=class{constructor(i){At(this,"options");At(this,"block");this.options=i||al}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?Sa.lex:Sa.lexInline}provideParser(i=this.block){return i?wa.parse:wa.parseInline}},At(so,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),At(so,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),so),hN=class{constructor(...i){At(this,"defaults",lf());At(this,"options",this.setOptions);At(this,"parse",this.parseMarkdown(!0));At(this,"parseInline",this.parseMarkdown(!1));At(this,"Parser",wa);At(this,"Renderer",go);At(this,"TextRenderer",ff);At(this,"Lexer",Sa);At(this,"Tokenizer",mo);At(this,"Hooks",qs);this.use(...i)}walkTokens(i,a){var s,u;let r=[];for(let f of i)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let h=f;for(let y of h.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of h.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let h=f;r=r.concat(this.walkTokens(h.items,a));break}default:{let h=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[h.type]?this.defaults.extensions.childTokens[h.type].forEach(y=>{let g=h[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):h.tokens&&(r=r.concat(this.walkTokens(h.tokens,a)))}}return r}use(...i){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return i.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 f=a.renderers[u.name];f?a.renderers[u.name]=function(...h){let y=u.renderer.apply(this,h);return y===!1&&(y=f.apply(this,h)),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 f=a[u.level];f?f.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 go(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let h=f,y=r.renderer[h],g=u[h];u[h]=(...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 mo(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let h=f,y=r.tokenizer[h],g=u[h];u[h]=(...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 qs;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let h=f,y=r.hooks[h],g=u[h];qs.passThroughHooks.has(f)?u[h]=m=>{if(this.defaults.async&&qs.passThroughHooksRespectAsync.has(f))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[h]=(...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,f=r.walkTokens;s.walkTokens=function(h){let y=[];return y.push(f.call(this,h)),u&&(y=y.concat(u.call(this,h))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,a){return Sa.lex(i,a??this.defaults)}parser(i,a){return wa.parse(i,a??this.defaults)}parseMarkdown(i){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(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 f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(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=i),u.async)return(async()=>{let h=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(h,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(i):i?wa.parse:wa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let h=(u.hooks?u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(a,u);u.hooks&&(h=u.hooks.processAllTokens(h)),u.walkTokens&&this.walkTokens(h,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(i):i?wa.parse:wa.parseInline)(h,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(h){return f(h)}}}onError(i,a){return r=>{if(r.message+=`
241
+ Please report this to https://github.com/markedjs/marked.`,i){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}}},nl=new hN;function yt(i,a){return nl.parse(i,a)}yt.options=yt.setOptions=function(i){return nl.setOptions(i),yt.defaults=nl.defaults,fy(yt.defaults),yt};yt.getDefaults=lf;yt.defaults=al;function pN(...i){return nl.use(...i),yt.defaults=nl.defaults,fy(yt.defaults),yt}yt.use=pN;yt.walkTokens=function(i,a){return nl.walkTokens(i,a)};yt.parseInline=nl.parseInline;yt.Parser=wa;yt.parser=wa.parse;yt.Renderer=go;yt.TextRenderer=ff;yt.Lexer=Sa;yt.lexer=Sa.lex;yt.Tokenizer=mo;yt.Hooks=qs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;wa.parse;Sa.lex;const mN="modulepreload",gN=function(i){return"/"+i},Tb={},bN=function(a,r,s){let u=Promise.resolve();if(r&&r.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),g=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));u=h(r.map(m=>{if(m=gN(m),m in Tb)return;Tb[m]=!0;const b=m.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":mN,b||(_.as="script"),_.crossOrigin="",_.href=m,g&&_.setAttribute("nonce",g),document.head.appendChild(_),b)return new Promise((x,S)=>{_.addEventListener("load",x),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return u.then(h=>{for(const y of h||[])y.status==="rejected"&&f(y.reason);return a().catch(f)})};let yN=0;async function vN(i){const a=[...i.querySelectorAll("pre > code.language-mermaid")];if(a.length===0)return;const{default:r}=await bN(async()=>{const{default:s}=await import("./mermaid.core-a2mmm40M.js").then(u=>u.bA);return{default:s}},[]);r.initialize({startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,theme:"neutral",htmlLabels:!1,flowchart:{htmlLabels:!1,useMaxWidth:!1}});for(const s of a){const u=s.textContent??"";try{const{svg:f}=await r.render(`cerber-diagram-${++yN}`,u),h=s.parentElement;if(!(h!=null&&h.isConnected))continue;const y=document.createElement("figure");y.className="md-diagram",y.innerHTML=dy.sanitize(f,{USE_PROFILES:{svg:!0,svgFilters:!0}}),h.replaceWith(y)}catch(f){console.warn("cerber: could not draw a diagram",f)}}}yt.setOptions({gfm:!0,breaks:!1});function hf(i){const a=yt.parse(i??"",{async:!1});return dy.sanitize(a)}function Sy(i){const a=H.useRef(null);return H.useEffect(()=>{a.current&&vN(a.current)},[i]),a}function ai({text:i,className:a}){const r=H.useMemo(()=>({__html:hf(i)}),[i]),s=Sy(r.__html);return i!=null&&i.trim()?d.jsx("div",{ref:s,className:`md ${a??""}`,dangerouslySetInnerHTML:r}):null}const EN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function _N(i){return i.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>EN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function SN(i,a){return _N(a)!==i.replace(/\s+/g," ").trim()}function Ks({text:i,className:a}){const r=H.useMemo(()=>({__html:i!=null&&i.trim()?hf(i):""}),[i]),s=Sy(r.__html);return!r.__html||!SN(i,r.__html)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{ref:s,className:`md prose ${a??""}`,dangerouslySetInnerHTML:r})]})}const wN=/\.(md|markdown)$/i;function pf(i){return wN.test(i)}function NN(i){return/^new file mode /m.test(i)||/^--- \/dev\/null$/m.test(i)}function TN(i){const a=[];let r=0,s=!1;const u=i.split(`
246
242
  `);for(let f=0;f<u.length;f++){const h=u[f],y=h.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(h===""&&f===u.length-1||h.startsWith("\\")||h.startsWith("-")||(h.startsWith("+")||h.startsWith(" ")||h==="")&&(a.push({n:r,text:h===""?"":h.slice(1),added:h.startsWith("+")}),r++))}return a}const lo=i=>(i.match(/\n/g)??[]).length;function mf(i){const a=TN(i),r=NN(i),s=[];let u=[];const f=()=>{if(u.length===0)return;const h=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
247
243
  `)+`
248
- `;let m=h;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=lo(v);continue}const x=v.length-v.trimStart().length,S=m+lo(v.slice(0,x)),C=S+lo(_.slice(x));let A=!1;for(let R=S;R<=C&&!A;R++)A=y.has(R);s.push({kind:"block",raw:_.slice(x),from:S,to:C,changed:A}),m+=lo(v)}u=[]};for(const h of a){const y=u[u.length-1];if(y&&h.n!==y.n+1){const g=h.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(h)}return f(),{items:s,isNew:r,lines:a.length}}const qd="cerber.stickyChapters";function xN(i){return i!=="off"}function AN(){try{return xN(localStorage.getItem(qd))}catch{return!0}}function Sy(){const[i,a]=H.useState(AN);return[i,s=>{try{s?localStorage.removeItem(qd):localStorage.setItem(qd,"off")}catch{}a(s)}]}function oo(i){const a=i.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 Gd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},RN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function wy(i,a=!1){return a?"COMMENT":(i==null?void 0:i.recommendation)==="approve"?"APPROVE":(i==null?void 0:i.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Ny(i,a){const r=B_(i);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 xb(i,a){const r=f=>{const h=Number((f??"").trim());return Number.isInteger(h)&&h>0?h:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(i);return u!=null?{line:u,side:"old"}:null}function Ty(i){const a=i.comments.filter(y=>y.status==="dropped"),r=i.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>oo(y)==="reply"),u=r.filter(y=>oo(y)==="hold"),f=r.filter(y=>oo(y)==="post"),h=Ny(i.diff,f);return{inline:h,folded:f.filter(y=>!h.includes(y)),dropped:a,replies:s,held:u}}function Ab(i){return i.sent!=null||(i.priorSends??[]).length>0}function Rb(i){return(i.priorSends??[]).length+(i.sent?1:0)}function kN(i,a){if(i.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&i.pr.headSha!==""&&r!==i.pr.headSha}function ON(i,a){const r=i.alreadyRaised;if(!r)return null;if(i.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=oo(i);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 CN(i){return i.where.kind==="thread"?`${i.where.state} thread`:"review"}function Rd(i){const a=i.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${Zb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function MN(i){if(!i.comments.some(s=>s.severity!=null))return null;const r=i.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function DN(i){if(!i.verdict||!i.comments.some(u=>u.severity!=null))return null;const r=i.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=i.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 $d(i){const{inline:a,folded:r,replies:s,held:u}=Ty(i),f=[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[LN(i,a,r),...f].join(" · ")}function LN(i,a,r){if(i.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 Fd="cerber.sendKey";function zN(i){return i==="enter"?i:"mod-enter"}function jN(i,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:i==="enter"&&!a.shiftKey}let bo=null;function UN(i){if(bo)return bo;try{return zN((i??localStorage).getItem(Fd))}catch{return"mod-enter"}}function BN(i,a){try{const r=a??localStorage;i==="mod-enter"?r.removeItem(Fd):r.setItem(Fd,i),bo=null}catch{bo=i}}function xy(){const[i,a]=H.useState(()=>UN());return[i,s=>{BN(s),a(s)}]}const kb={approve:"approve",comment:"comment",request_changes:"changes"},IN={approve:"approve",comment:"comment",request_changes:"changes"};function HN(i,a){return i.status==="dropped"?"none":i.drifted?"comment":i.origin==="user"?"awaiting":a}function Ay(i,a=20){const r=document.getElementById(`c-${i}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>Ay(i,a-1))}function qN(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Ob(i,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),i.after(r),{tr:r,holder:u}}function Cb(i,a,r){i.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const h=s.querySelector("input[data-viewed-path]");h&&(h.checked=f)})}function yo(i,a){!i||!a||i.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>i.scrollIntoView({block:"start"}))}function GN(i){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=i,a.append(r," Viewed"),a}function Ry({pick:i,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,h]=H.useState(""),y=H.useRef(null);H.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,":",i.line]}),i.side==="old"&&d.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"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>h(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ps,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Xe,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.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:[d.jsx(Xe,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function $N({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onRead:y,viewedState:g}){const m=H.useMemo(()=>i.trim()?L_(i,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[i]),b=H.useMemo(()=>ja(i).map(j=>j.path),[i]),v=H.useMemo(()=>new Set(ja(i).filter(j=>pf(j.path)&&mf(j.patch).lines>0).map(j=>j.path)),[i]),_=H.useMemo(()=>a.map(j=>`${j.id}@${j.path}:${j.line}`).join("|"),[a]),x=H.useRef(null),S=H.useRef(y);S.current=y;const C=H.useRef(g);C.current=g;const[A,R]=H.useState([]),[$,U]=H.useState([]),[W,z]=H.useState(null),[ae,se]=H.useState(null);H.useEffect(()=>{var De,w;const j=x.current;if(!j)return;j.innerHTML=m,xS(j);const le=new Map,fe=[];j.querySelectorAll(".d2h-file-wrapper").forEach((L,I)=>{var ve,X,be,Te,Ge;const oe=(X=(ve=L.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:X.trim(),me=oe&&b.includes(oe)?oe:b[I];if(oe&&le.set(oe,L),me){le.set(me,L),L.dataset.path=me;const $e=document.createElement("div");if($e.className="file-comments",(be=L.querySelector(".d2h-file-header"))==null||be.after($e),fe.push({path:me,el:$e}),v.has(me)){const Ce=document.createElement("button");Ce.type="button",Ce.className="btn btn-sm md-read-toggle",Ce.dataset.readPath=me,Ce.textContent="read as a document",Ce.title="Render this markdown instead of showing it line by line",(Te=L.querySelector(".d2h-file-header"))==null||Te.appendChild(Ce)}(Ge=L.querySelector(".d2h-file-header"))==null||Ge.appendChild(GN(me))}}),Cb(j,C.current.viewed,C.current.peeked);const M=[],Q=new Map;for(const L of a){if(L.line==null)continue;const I=le.get(L.path);if(!I)continue;const oe=Array.from(I.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var X,be;return((be=(X=ve.querySelector(".line-num2"))==null?void 0:X.textContent)==null?void 0:be.trim())===String(L.line)});if(!oe)continue;const me=Ob(Q.get(oe)??oe,"inline-comment-row");Q.set(oe,me.tr),M.push({id:L.id,el:me.holder})}R(M),U(fe);const pe=L=>{var $e;const I=L.target,oe=I.closest(".md-read-toggle");if(oe!=null&&oe.dataset.readPath){S.current(oe.dataset.readPath);return}const me=I.closest(".d2h-file-wrapper");if(I instanceof HTMLInputElement&&I.dataset.viewedPath){I.checked&&yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(I.dataset.viewedPath);return}if(I.closest(".file-viewed"))return;const ve=($e=I.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(ve.dataset.path);return}const X=L.target.closest(".line-add");if(!X)return;const{path:be,line:Te,side:Ge}=X.dataset;!be||!Te||z({path:be,line:Number(Te),side:Ge==="old"?"old":"new"})};j.addEventListener("click",pe);const we=()=>j.removeEventListener("click",pe);if(s)return z(null),se(null),we;for(const L of j.querySelectorAll(".d2h-file-wrapper")){const I=L.dataset.path;if(I)for(const oe of L.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const me=xb((De=oe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=oe.querySelector(".line-num2"))==null?void 0:w.textContent);if(!me)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const X=`Say something about ${I}:${me.line}`;ve.title=X,ve.setAttribute("aria-label",X),ve.tabIndex=-1,ve.dataset.path=I,ve.dataset.line=String(me.line),ve.dataset.side=me.side,oe.appendChild(ve)}}return se(null),we},[m,_,b,v,s]);const T=b.filter(j=>g.viewed.has(j)).join(`
244
+ `;let m=h;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=lo(v);continue}const x=v.length-v.trimStart().length,S=m+lo(v.slice(0,x)),C=S+lo(_.slice(x));let A=!1;for(let R=S;R<=C&&!A;R++)A=y.has(R);s.push({kind:"block",raw:_.slice(x),from:S,to:C,changed:A}),m+=lo(v)}u=[]};for(const h of a){const y=u[u.length-1];if(y&&h.n!==y.n+1){const g=h.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(h)}return f(),{items:s,isNew:r,lines:a.length}}const qd="cerber.stickyChapters";function xN(i){return i!=="off"}function AN(){try{return xN(localStorage.getItem(qd))}catch{return!0}}function wy(){const[i,a]=H.useState(AN);return[i,s=>{try{s?localStorage.removeItem(qd):localStorage.setItem(qd,"off")}catch{}a(s)}]}function oo(i){const a=i.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 Gd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},RN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function Ny(i,a=!1){return a?"COMMENT":(i==null?void 0:i.recommendation)==="approve"?"APPROVE":(i==null?void 0:i.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Ty(i,a){const r=I_(i);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 xb(i,a){const r=f=>{const h=Number((f??"").trim());return Number.isInteger(h)&&h>0?h:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(i);return u!=null?{line:u,side:"old"}:null}function xy(i){const a=i.comments.filter(y=>y.status==="dropped"),r=i.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>oo(y)==="reply"),u=r.filter(y=>oo(y)==="hold"),f=r.filter(y=>oo(y)==="post"),h=Ty(i.diff,f);return{inline:h,folded:f.filter(y=>!h.includes(y)),dropped:a,replies:s,held:u}}function Ab(i){return i.sent!=null||(i.priorSends??[]).length>0}function Rb(i){return(i.priorSends??[]).length+(i.sent?1:0)}function kN(i,a){if(i.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&i.pr.headSha!==""&&r!==i.pr.headSha}function ON(i,a){const r=i.alreadyRaised;if(!r)return null;if(i.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=oo(i);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 CN(i){return i.where.kind==="thread"?`${i.where.state} thread`:"review"}function Rd(i){const a=i.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${Zb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function MN(i){if(!i.comments.some(s=>s.severity!=null))return null;const r=i.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function DN(i){if(!i.verdict||!i.comments.some(u=>u.severity!=null))return null;const r=i.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=i.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 $d(i){const{inline:a,folded:r,replies:s,held:u}=xy(i),f=[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[LN(i,a,r),...f].join(" · ")}function LN(i,a,r){if(i.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 Fd="cerber.sendKey";function zN(i){return i==="enter"?i:"mod-enter"}function jN(i,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:i==="enter"&&!a.shiftKey}let bo=null;function UN(i){if(bo)return bo;try{return zN((i??localStorage).getItem(Fd))}catch{return"mod-enter"}}function BN(i,a){try{const r=a??localStorage;i==="mod-enter"?r.removeItem(Fd):r.setItem(Fd,i),bo=null}catch{bo=i}}function Ay(){const[i,a]=H.useState(()=>UN());return[i,s=>{BN(s),a(s)}]}const kb={approve:"approve",comment:"comment",request_changes:"changes"},IN={approve:"approve",comment:"comment",request_changes:"changes"};function HN(i,a){return i.status==="dropped"?"none":i.drifted?"comment":i.origin==="user"?"awaiting":a}function Ry(i,a=20){const r=document.getElementById(`c-${i}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>Ry(i,a-1))}function qN(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Ob(i,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),i.after(r),{tr:r,holder:u}}function Cb(i,a,r){i.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const h=s.querySelector("input[data-viewed-path]");h&&(h.checked=f)})}function yo(i,a){!i||!a||i.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>i.scrollIntoView({block:"start"}))}function GN(i){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=i,a.append(r," Viewed"),a}function ky({pick:i,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,h]=H.useState(""),y=H.useRef(null);H.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,":",i.line]}),i.side==="old"&&d.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"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>h(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ks,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Xe,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.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:[d.jsx(Xe,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function $N({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onRead:y,viewedState:g}){const m=H.useMemo(()=>i.trim()?z_(i,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[i]),b=H.useMemo(()=>ja(i).map(j=>j.path),[i]),v=H.useMemo(()=>new Set(ja(i).filter(j=>pf(j.path)&&mf(j.patch).lines>0).map(j=>j.path)),[i]),_=H.useMemo(()=>a.map(j=>`${j.id}@${j.path}:${j.line}`).join("|"),[a]),x=H.useRef(null),S=H.useRef(y);S.current=y;const C=H.useRef(g);C.current=g;const[A,R]=H.useState([]),[$,U]=H.useState([]),[W,z]=H.useState(null),[ae,se]=H.useState(null);H.useEffect(()=>{var De,w;const j=x.current;if(!j)return;j.innerHTML=m,AS(j);const le=new Map,fe=[];j.querySelectorAll(".d2h-file-wrapper").forEach((L,I)=>{var ve,X,be,Te,Ge;const oe=(X=(ve=L.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:X.trim(),me=oe&&b.includes(oe)?oe:b[I];if(oe&&le.set(oe,L),me){le.set(me,L),L.dataset.path=me;const $e=document.createElement("div");if($e.className="file-comments",(be=L.querySelector(".d2h-file-header"))==null||be.after($e),fe.push({path:me,el:$e}),v.has(me)){const Ce=document.createElement("button");Ce.type="button",Ce.className="btn btn-sm md-read-toggle",Ce.dataset.readPath=me,Ce.textContent="read as a document",Ce.title="Render this markdown instead of showing it line by line",(Te=L.querySelector(".d2h-file-header"))==null||Te.appendChild(Ce)}(Ge=L.querySelector(".d2h-file-header"))==null||Ge.appendChild(GN(me))}}),Cb(j,C.current.viewed,C.current.peeked);const M=[],Q=new Map;for(const L of a){if(L.line==null)continue;const I=le.get(L.path);if(!I)continue;const oe=Array.from(I.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var X,be;return((be=(X=ve.querySelector(".line-num2"))==null?void 0:X.textContent)==null?void 0:be.trim())===String(L.line)});if(!oe)continue;const me=Ob(Q.get(oe)??oe,"inline-comment-row");Q.set(oe,me.tr),M.push({id:L.id,el:me.holder})}R(M),U(fe);const pe=L=>{var $e;const I=L.target,oe=I.closest(".md-read-toggle");if(oe!=null&&oe.dataset.readPath){S.current(oe.dataset.readPath);return}const me=I.closest(".d2h-file-wrapper");if(I instanceof HTMLInputElement&&I.dataset.viewedPath){I.checked&&yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(I.dataset.viewedPath);return}if(I.closest(".file-viewed"))return;const ve=($e=I.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){yo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(ve.dataset.path);return}const X=L.target.closest(".line-add");if(!X)return;const{path:be,line:Te,side:Ge}=X.dataset;!be||!Te||z({path:be,line:Number(Te),side:Ge==="old"?"old":"new"})};j.addEventListener("click",pe);const we=()=>j.removeEventListener("click",pe);if(s)return z(null),se(null),we;for(const L of j.querySelectorAll(".d2h-file-wrapper")){const I=L.dataset.path;if(I)for(const oe of L.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const me=xb((De=oe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=oe.querySelector(".line-num2"))==null?void 0:w.textContent);if(!me)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const X=`Say something about ${I}:${me.line}`;ve.title=X,ve.setAttribute("aria-label",X),ve.tabIndex=-1,ve.dataset.path=I,ve.dataset.line=String(me.line),ve.dataset.side=me.side,oe.appendChild(ve)}}return se(null),we},[m,_,b,v,s]);const T=b.filter(j=>g.viewed.has(j)).join(`
249
245
  `),G=b.filter(j=>g.peeked.has(j)).join(`
250
- `);H.useEffect(()=>{x.current&&Cb(x.current,g.viewed,g.peeked)},[T,G]),H.useEffect(()=>{const j=x.current;if(!j||!W||s){se(null);return}const le=Array.from(j.querySelectorAll(".d2h-file-wrapper")).find(Q=>Q.dataset.path===W.path),fe=Array.from((le==null?void 0:le.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(Q=>{var De,w;const pe=Q.querySelector(".d2h-code-linenumber"),we=xb((De=pe==null?void 0:pe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=pe==null?void 0:pe.querySelector(".line-num2"))==null?void 0:w.textContent);return(we==null?void 0:we.line)===W.line&&we.side===W.side});if(!fe){z(null);return}const M=Ob(fe,"line-composer-row");return se(M.holder),()=>M.tr.remove()},[W,A,s]);const ee=a.filter(j=>!A.some(le=>le.id===j.id)),ue=$.map(j=>({...j,comments:ee.filter(le=>le.path===j.path)})).filter(j=>j.comments.length>0),Ee=ee.filter(j=>!$.some(le=>le.path===j.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:x}),A.map(({id:j,el:le})=>{const fe=a.find(M=>M.id===j);return fe?Lu.createPortal(r(fe),le,j):null}),ue.map(({path:j,el:le,comments:fe})=>Lu.createPortal(d.jsx(d.Fragment,{children:fe.map(r)}),le,`file:${j}`)),W&&ae&&Lu.createPortal(d.jsx(Ry,{pick:W,chatBusy:u,onAdd:j=>{f(W,j),z(null)},onAsk:j=>{h(W,j),z(null)},onClose:()=>z(null)}),ae,`pick-${W.path}-${W.side}-${W.line}`),Ee.map(j=>r(j))]})}function FN({block:i,path:a,changed:r,readOnly:s,onPick:u}){const f=H.useMemo(()=>hf(i.raw),[i.raw]),h=`Say something about ${a}:${i.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:h,"aria-label":h,tabIndex:-1,onClick:u,children:d.jsx(Xe,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function YN({path:i,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:h,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=H.useState(null),_=H.useRef(null),x=H.useRef(null),S=m.viewed.has(i),C=S&&!m.peeked.has(i),A=H.useMemo(()=>{const R=new Map,$=a.items.flatMap((W,z)=>W.kind==="block"?[{item:W,i:z}]:[]),U=[];for(const W of r){const z=W.line==null?void 0:$.filter(ae=>ae.item.from<=W.line).pop()??$[0];if(!z){U.push(W);continue}R.set(z.i,[...R.get(z.i)??[],W])}return{at:R,rest:U}},[a,r]);return d.jsxs("div",{className:"md-file",ref:_,children:[d.jsxs("div",{ref:x,className:`md-file-head${S?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:R=>{S&&!R.target.closest("button, label")&&(yo(_.current,x.current),m.onTogglePeek(i))},children:[d.jsx(Xe,{name:"file"}),d.jsx("span",{className:"md-file-name",children:i}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.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"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:S,onChange:()=>{S||yo(_.current,x.current),m.onToggleViewed(i)}})," ","Viewed"]})]}),!C&&A.rest.length>0&&d.jsx("div",{className:"file-comments",children:A.rest.map(s)}),!C&&a.items.map((R,$)=>d.jsxs(H.Fragment,{children:[R.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",R.lines.toLocaleString()," line",R.lines===1?"":"s"," the diff skips"]}):d.jsx(FN,{block:R,path:i,changed:R.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:i,line:R.from,side:"new"})}),(A.at.get($)??[]).map(s),R.kind==="block"&&(b==null?void 0:b.line)===R.from&&d.jsx(Ry,{pick:b,chatBusy:f,onAdd:U=>{h(b,U),v(null)},onAsk:U=>{y(b,U),v(null)},onClose:()=>v(null)})]},$))]})}function PN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,viewedState:y}){const g=H.useMemo(()=>i.trim()?ja(i):[],[i]),m=H.useMemo(()=>new Map(g.filter(A=>pf(A.path)).map(A=>[A.path,mf(A.patch)]).filter(([,A])=>A.lines>0)),[g]),[b,v]=H.useState({}),_=A=>{var R;return b[A]??((R=m.get(A))==null?void 0:R.isNew)??!1},x=[];for(const A of g){const R=x[x.length-1];if(m.has(A.path)&&_(A.path)){x.push({kind:"read",paths:[A.path],patch:A.patch});continue}(R==null?void 0:R.kind)==="diff"?(R.paths.push(A.path),R.patch+=`
251
- ${A.patch}`):x.push({kind:"diff",paths:[A.path],patch:A.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const S=new Set(g.map(A=>A.path)),C=A=>a.filter(R=>A(R.path));return d.jsxs(d.Fragment,{children:[x.map(A=>{const R=new Set(A.paths);if(A.kind==="read"){const $=A.paths[0];return d.jsx(YN,{path:$,doc:m.get($),comments:C(U=>U===$),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onShowDiff:()=>v(U=>({...U,[$]:!1})),viewedState:y},`read:${$}`)}return d.jsx($N,{patch:A.patch,comments:C($=>R.has($)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onRead:$=>v(U=>({...U,[$]:!0})),viewedState:y},`diff:${A.paths[0]}`)}),C(A=>!S.has(A)).map(r)]})}function KN({check:i,raised:a,held:r,replies:s}){if(!i)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.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 i.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):i.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:i.error,children:"couldn't check what others already raised"})]}):f||(i.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function ZN({comment:i,readOnly:a,onDecide:r}){var y;const s=i.alreadyRaised;if(!s)return null;const u=ON(i,a),f=s.where.kind==="thread",h=!a&&i.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Xe,{name:"comment"}),"already raised by @",s.by," · ",CN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Xe,{name:"external"})]}),d.jsx("span",{className:"grow"}),h&&d.jsxs(d.Fragment,{children:[f&&d.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"}),d.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"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function ky({comment:i,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[h,y]=H.useState(!1),[g,m]=H.useState(i.body),b=i.status==="dropped",v=i.origin==="user"?"yours":b?"dropped":"drafted";return d.jsxs("div",{id:`c-${i.id}`,className:`comment comment-${i.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,i.line!=null?`:${i.line}`:""]}),d.jsx("span",{className:`tag tag-${i.origin==="user"?"yours":v}`,children:v}),i.drifted?d.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"}):i.line==null&&d.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"}),!i.drifted&&i.originalLine!=null&&i.originalLine!==i.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",i.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(h?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(i.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Xe,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${b?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:b?"draft":"dropped"}),children:[d.jsx(Xe,{name:"drop"}),b?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Xe,{name:"comment"}),"discuss"]}),i.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(ZN,{comment:i,readOnly:u,onDecide:_=>a({raisedDecision:_})}),h?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:_=>m(_.target.value),rows:Math.max(3,g.split(`
252
- `).length)}),d.jsx(Ps,{className:"comment-body",text:fg(g,i.severity??null)})]}):d.jsx(ai,{className:"comment-body prose",text:fg(i.body,i.severity??null)})]})}function XN({files:i,chapterId:a,onAdd:r}){const[s,u]=H.useState(!1),[f,h]=H.useState(i[0]??""),[y,g]=H.useState(""),[m,b]=H.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>h(v.target.value),children:i.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Ps,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Xe,{name:"plus"}),"add a comment of your own"]})}const VN=2e3;function QN({chapter:i,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:h,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:S,flash:C,viewedState:A,sticky:R,stuck:$}){const[U,W]=H.useState(!1);H.useEffect(()=>{$||W(!1)},[$]);const z=R&&$&&u,ae=H.useRef(null),se=H.useRef(null);H.useEffect(()=>{const M=ae.current,Q=se.current;if(!R||!M||!Q)return;const pe=()=>M.style.setProperty("--chapter-head-h",`${Q.offsetHeight}px`);pe();const we=new ResizeObserver(pe);return we.observe(Q),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[R]);const T=()=>{h(),z&&requestAnimationFrame(()=>{var M;return(M=ae.current)==null?void 0:M.scrollIntoView({block:"start"})})},G=H.useMemo(()=>z_(r,i.files),[r,i.files]),ee=i.files.filter(M=>A.viewed.has(M)).length,ue=H.useMemo(()=>Ny(G,s),[G,s]),Ee=H.useMemo(()=>new Set(ja(G).map(M=>M.path)),[G]),j=s.filter(M=>!ue.includes(M)&&!Ee.has(M.path)),le=s.filter(M=>ue.includes(M)||Ee.has(M.path)),fe=M=>d.jsx(ky,{comment:M,onUpdate:Q=>y(M.id,Q),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:x,flash:C===M.id},M.id);return d.jsxs("section",{className:`chapter${R?" chapter-sticky":""}`,ref:M=>{ae.current=M,S(M)},children:[d.jsxs("header",{ref:se,className:`chapter-head${R?" chapter-head-sticky":""}${z?" chapter-head-stuck":""}`,onClick:T,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",i.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[i.files.length," file",i.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",ee>0&&` · ${ee}/${i.files.length} viewed`,f!=null&&!u&&d.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:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),R&&u&&d.jsx("button",{className:`btn btn-sm${z?"":" chapter-about-idle"}`,"aria-expanded":U,onClick:M=>{M.stopPropagation(),W(Q=>!Q)},children:U?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:i.id})},children:[d.jsx(Xe,{name:"comment"}),"discuss"]}),z&&U&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ai,{className:"prose",text:i.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ai,{className:"prose chapter-explanation",text:i.explanation}),j.map(fe),d.jsx(PN,{patch:G,comments:le,renderComment:fe,readOnly:x,chatBusy:_,onAddLineComment:(M,Q)=>m({path:M.path,line:M.side==="new"?M.line:null,body:Q,chapterId:i.id}),onAskAboutLine:v,viewedState:A}),!x&&i.files.length>0&&d.jsx(XN,{files:i.files,chapterId:i.id,onAdd:m})]})]})}function WN(i,a){switch(i.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${i.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===i.chapterId);return`rewrote the "${(r==null?void 0:r.title)??i.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===i.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===i.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${i.path}:${i.line??"file"}`}}function Yd(i,a){var s;if(i.target==="summary")return"the summary";if(i.target==="verdict")return"the verdict";if(i.target==="chapter")return((s=a.chapters.find(u=>u.id===i.id))==null?void 0:s.title)??"a chapter";if(i.target==="line")return i.path==null||i.line==null?"a line of the diff":`${i.path}:${i.line}${i.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===i.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function JN({turn:i,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${i.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:i.role==="user"?i.steer?"You, while it worked":"You":"Reviewer"}),i.refs.length>0&&d.jsx("div",{className:"chat-refs",children:i.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:Yd(r,a)},s))}),d.jsx(ai,{className:"chat-turn-body prose",text:i.body}),i.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",WN(r,a)]},s)),i.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function eT({artifact:i,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:h,inputRef:y,anchorRef:g}){var Ee;const[m,b]=H.useState(""),[v,_]=H.useState(!1),[x,S]=H.useState(null),[C]=xy(),A=i.chat??[],R=i.pendingChat??null,$=R!=null&&R.error==null,U=v||$,W=H.useRef(null),z=H.useRef(!0),ae=()=>{const j=W.current;j&&(j.scrollTop=j.scrollHeight)},se=R!=null;H.useLayoutEffect(()=>{z.current=!0,ae()},[a,A.length,se,(Ee=R==null?void 0:R.steers)==null?void 0:Ee.length,R==null?void 0:R.error]),H.useLayoutEffect(()=>{z.current&&ae()},[R==null?void 0:R.progress.length]);const T=A.length>0||se;H.useEffect(()=>{const j=W.current;if(!j)return;const le=new ResizeObserver(()=>z.current&&ae());return le.observe(j),()=>le.disconnect()},[T]);const G=(j,le,fe)=>{!j||U||(_(!0),S(null),Dd(a,{message:j,refs:le}).then(M=>{f(M),fe==null||fe()}).catch(M=>S(String(M.message??M))).finally(()=>_(!1)))},ee=j=>{_(!0),S(null),E0(a,j).then(le=>{var fe;f(le),b(""),(fe=y.current)==null||fe.focus()}).catch(le=>S(String(le.message??le))).finally(()=>_(!1))},ue=()=>{const j=m.trim();if(!(!j||v)){if($)return ee(j);G(j,r,()=>{var le;b(""),s(),(le=y.current)==null||le.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[T&&d.jsxs("div",{className:"chat-log",ref:W,onScroll:j=>{const le=j.currentTarget;z.current=le.scrollHeight-le.scrollTop-le.clientHeight<24},children:[A.map(j=>d.jsx(JN,{turn:j,artifact:i},j.id)),R&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&d.jsx("div",{className:"chat-refs",children:R.refs.map((j,le)=>d.jsx("span",{className:"chat-ref",children:Yd(j,i)},le))}),d.jsx(ai,{className:"chat-turn-body prose",text:R.message}),[...R.steers??[],...R.queued??[]].map((j,le)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ai,{className:"chat-turn-body prose",text:j})]},le)),R.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!h&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>G([R.message,...R.steers??[],...R.queued??[]].join(`
246
+ `);H.useEffect(()=>{x.current&&Cb(x.current,g.viewed,g.peeked)},[T,G]),H.useEffect(()=>{const j=x.current;if(!j||!W||s){se(null);return}const le=Array.from(j.querySelectorAll(".d2h-file-wrapper")).find(Q=>Q.dataset.path===W.path),fe=Array.from((le==null?void 0:le.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(Q=>{var De,w;const pe=Q.querySelector(".d2h-code-linenumber"),we=xb((De=pe==null?void 0:pe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=pe==null?void 0:pe.querySelector(".line-num2"))==null?void 0:w.textContent);return(we==null?void 0:we.line)===W.line&&we.side===W.side});if(!fe){z(null);return}const M=Ob(fe,"line-composer-row");return se(M.holder),()=>M.tr.remove()},[W,A,s]);const ee=a.filter(j=>!A.some(le=>le.id===j.id)),ue=$.map(j=>({...j,comments:ee.filter(le=>le.path===j.path)})).filter(j=>j.comments.length>0),Ee=ee.filter(j=>!$.some(le=>le.path===j.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:x}),A.map(({id:j,el:le})=>{const fe=a.find(M=>M.id===j);return fe?Lu.createPortal(r(fe),le,j):null}),ue.map(({path:j,el:le,comments:fe})=>Lu.createPortal(d.jsx(d.Fragment,{children:fe.map(r)}),le,`file:${j}`)),W&&ae&&Lu.createPortal(d.jsx(ky,{pick:W,chatBusy:u,onAdd:j=>{f(W,j),z(null)},onAsk:j=>{h(W,j),z(null)},onClose:()=>z(null)}),ae,`pick-${W.path}-${W.side}-${W.line}`),Ee.map(j=>r(j))]})}function FN({block:i,path:a,changed:r,readOnly:s,onPick:u}){const f=H.useMemo(()=>hf(i.raw),[i.raw]),h=`Say something about ${a}:${i.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:h,"aria-label":h,tabIndex:-1,onClick:u,children:d.jsx(Xe,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function YN({path:i,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:h,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=H.useState(null),_=H.useRef(null),x=H.useRef(null),S=m.viewed.has(i),C=S&&!m.peeked.has(i),A=H.useMemo(()=>{const R=new Map,$=a.items.flatMap((W,z)=>W.kind==="block"?[{item:W,i:z}]:[]),U=[];for(const W of r){const z=W.line==null?void 0:$.filter(ae=>ae.item.from<=W.line).pop()??$[0];if(!z){U.push(W);continue}R.set(z.i,[...R.get(z.i)??[],W])}return{at:R,rest:U}},[a,r]);return d.jsxs("div",{className:"md-file",ref:_,children:[d.jsxs("div",{ref:x,className:`md-file-head${S?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:R=>{S&&!R.target.closest("button, label")&&(yo(_.current,x.current),m.onTogglePeek(i))},children:[d.jsx(Xe,{name:"file"}),d.jsx("span",{className:"md-file-name",children:i}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.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"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:S,onChange:()=>{S||yo(_.current,x.current),m.onToggleViewed(i)}})," ","Viewed"]})]}),!C&&A.rest.length>0&&d.jsx("div",{className:"file-comments",children:A.rest.map(s)}),!C&&a.items.map((R,$)=>d.jsxs(H.Fragment,{children:[R.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",R.lines.toLocaleString()," line",R.lines===1?"":"s"," the diff skips"]}):d.jsx(FN,{block:R,path:i,changed:R.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:i,line:R.from,side:"new"})}),(A.at.get($)??[]).map(s),R.kind==="block"&&(b==null?void 0:b.line)===R.from&&d.jsx(ky,{pick:b,chatBusy:f,onAdd:U=>{h(b,U),v(null)},onAsk:U=>{y(b,U),v(null)},onClose:()=>v(null)})]},$))]})}function PN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,viewedState:y}){const g=H.useMemo(()=>i.trim()?ja(i):[],[i]),m=H.useMemo(()=>new Map(g.filter(A=>pf(A.path)).map(A=>[A.path,mf(A.patch)]).filter(([,A])=>A.lines>0)),[g]),[b,v]=H.useState({}),_=A=>{var R;return b[A]??((R=m.get(A))==null?void 0:R.isNew)??!1},x=[];for(const A of g){const R=x[x.length-1];if(m.has(A.path)&&_(A.path)){x.push({kind:"read",paths:[A.path],patch:A.patch});continue}(R==null?void 0:R.kind)==="diff"?(R.paths.push(A.path),R.patch+=`
247
+ ${A.patch}`):x.push({kind:"diff",paths:[A.path],patch:A.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const S=new Set(g.map(A=>A.path)),C=A=>a.filter(R=>A(R.path));return d.jsxs(d.Fragment,{children:[x.map(A=>{const R=new Set(A.paths);if(A.kind==="read"){const $=A.paths[0];return d.jsx(YN,{path:$,doc:m.get($),comments:C(U=>U===$),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onShowDiff:()=>v(U=>({...U,[$]:!1})),viewedState:y},`read:${$}`)}return d.jsx($N,{patch:A.patch,comments:C($=>R.has($)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:h,onRead:$=>v(U=>({...U,[$]:!0})),viewedState:y},`diff:${A.paths[0]}`)}),C(A=>!S.has(A)).map(r)]})}function KN({check:i,raised:a,held:r,replies:s}){if(!i)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.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 i.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):i.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:i.error,children:"couldn't check what others already raised"})]}):f||(i.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function ZN({comment:i,readOnly:a,onDecide:r}){var y;const s=i.alreadyRaised;if(!s)return null;const u=ON(i,a),f=s.where.kind==="thread",h=!a&&i.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Xe,{name:"comment"}),"already raised by @",s.by," · ",CN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Xe,{name:"external"})]}),d.jsx("span",{className:"grow"}),h&&d.jsxs(d.Fragment,{children:[f&&d.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"}),d.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"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function Oy({comment:i,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[h,y]=H.useState(!1),[g,m]=H.useState(i.body),b=i.status==="dropped",v=i.origin==="user"?"yours":b?"dropped":"drafted";return d.jsxs("div",{id:`c-${i.id}`,className:`comment comment-${i.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,i.line!=null?`:${i.line}`:""]}),d.jsx("span",{className:`tag tag-${i.origin==="user"?"yours":v}`,children:v}),i.drifted?d.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"}):i.line==null&&d.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"}),!i.drifted&&i.originalLine!=null&&i.originalLine!==i.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",i.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(h?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(i.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Xe,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${b?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:b?"draft":"dropped"}),children:[d.jsx(Xe,{name:"drop"}),b?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Xe,{name:"comment"}),"discuss"]}),i.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(ZN,{comment:i,readOnly:u,onDecide:_=>a({raisedDecision:_})}),h?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:_=>m(_.target.value),rows:Math.max(3,g.split(`
248
+ `).length)}),d.jsx(Ks,{className:"comment-body",text:fg(g,i.severity??null)})]}):d.jsx(ai,{className:"comment-body prose",text:fg(i.body,i.severity??null)})]})}function XN({files:i,chapterId:a,onAdd:r}){const[s,u]=H.useState(!1),[f,h]=H.useState(i[0]??""),[y,g]=H.useState(""),[m,b]=H.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>h(v.target.value),children:i.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Ks,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Xe,{name:"plus"}),"add a comment of your own"]})}const VN=2e3;function QN({chapter:i,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:h,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:S,flash:C,viewedState:A,sticky:R,stuck:$}){const[U,W]=H.useState(!1);H.useEffect(()=>{$||W(!1)},[$]);const z=R&&$&&u,ae=H.useRef(null),se=H.useRef(null);H.useEffect(()=>{const M=ae.current,Q=se.current;if(!R||!M||!Q)return;const pe=()=>M.style.setProperty("--chapter-head-h",`${Q.offsetHeight}px`);pe();const we=new ResizeObserver(pe);return we.observe(Q),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[R]);const T=()=>{h(),z&&requestAnimationFrame(()=>{var M;return(M=ae.current)==null?void 0:M.scrollIntoView({block:"start"})})},G=H.useMemo(()=>j_(r,i.files),[r,i.files]),ee=i.files.filter(M=>A.viewed.has(M)).length,ue=H.useMemo(()=>Ty(G,s),[G,s]),Ee=H.useMemo(()=>new Set(ja(G).map(M=>M.path)),[G]),j=s.filter(M=>!ue.includes(M)&&!Ee.has(M.path)),le=s.filter(M=>ue.includes(M)||Ee.has(M.path)),fe=M=>d.jsx(Oy,{comment:M,onUpdate:Q=>y(M.id,Q),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:x,flash:C===M.id},M.id);return d.jsxs("section",{className:`chapter${R?" chapter-sticky":""}`,ref:M=>{ae.current=M,S(M)},children:[d.jsxs("header",{ref:se,className:`chapter-head${R?" chapter-head-sticky":""}${z?" chapter-head-stuck":""}`,onClick:T,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",i.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[i.files.length," file",i.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",ee>0&&` · ${ee}/${i.files.length} viewed`,f!=null&&!u&&d.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:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),R&&u&&d.jsx("button",{className:`btn btn-sm${z?"":" chapter-about-idle"}`,"aria-expanded":U,onClick:M=>{M.stopPropagation(),W(Q=>!Q)},children:U?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:i.id})},children:[d.jsx(Xe,{name:"comment"}),"discuss"]}),z&&U&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ai,{className:"prose",text:i.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ai,{className:"prose chapter-explanation",text:i.explanation}),j.map(fe),d.jsx(PN,{patch:G,comments:le,renderComment:fe,readOnly:x,chatBusy:_,onAddLineComment:(M,Q)=>m({path:M.path,line:M.side==="new"?M.line:null,body:Q,chapterId:i.id}),onAskAboutLine:v,viewedState:A}),!x&&i.files.length>0&&d.jsx(XN,{files:i.files,chapterId:i.id,onAdd:m})]})]})}function WN(i,a){switch(i.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${i.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===i.chapterId);return`rewrote the "${(r==null?void 0:r.title)??i.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===i.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===i.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${i.path}:${i.line??"file"}`}}function Yd(i,a){var s;if(i.target==="summary")return"the summary";if(i.target==="verdict")return"the verdict";if(i.target==="chapter")return((s=a.chapters.find(u=>u.id===i.id))==null?void 0:s.title)??"a chapter";if(i.target==="line")return i.path==null||i.line==null?"a line of the diff":`${i.path}:${i.line}${i.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===i.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function JN({turn:i,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${i.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:i.role==="user"?i.steer?"You, while it worked":"You":"Reviewer"}),i.refs.length>0&&d.jsx("div",{className:"chat-refs",children:i.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:Yd(r,a)},s))}),d.jsx(ai,{className:"chat-turn-body prose",text:i.body}),i.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",WN(r,a)]},s)),i.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function eT({artifact:i,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:h,inputRef:y,anchorRef:g}){var Ee;const[m,b]=H.useState(""),[v,_]=H.useState(!1),[x,S]=H.useState(null),[C]=Ay(),A=i.chat??[],R=i.pendingChat??null,$=R!=null&&R.error==null,U=v||$,W=H.useRef(null),z=H.useRef(!0),ae=()=>{const j=W.current;j&&(j.scrollTop=j.scrollHeight)},se=R!=null;H.useLayoutEffect(()=>{z.current=!0,ae()},[a,A.length,se,(Ee=R==null?void 0:R.steers)==null?void 0:Ee.length,R==null?void 0:R.error]),H.useLayoutEffect(()=>{z.current&&ae()},[R==null?void 0:R.progress.length]);const T=A.length>0||se;H.useEffect(()=>{const j=W.current;if(!j)return;const le=new ResizeObserver(()=>z.current&&ae());return le.observe(j),()=>le.disconnect()},[T]);const G=(j,le,fe)=>{!j||U||(_(!0),S(null),Dd(a,{message:j,refs:le}).then(M=>{f(M),fe==null||fe()}).catch(M=>S(String(M.message??M))).finally(()=>_(!1)))},ee=j=>{_(!0),S(null),_0(a,j).then(le=>{var fe;f(le),b(""),(fe=y.current)==null||fe.focus()}).catch(le=>S(String(le.message??le))).finally(()=>_(!1))},ue=()=>{const j=m.trim();if(!(!j||v)){if($)return ee(j);G(j,r,()=>{var le;b(""),s(),(le=y.current)==null||le.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[T&&d.jsxs("div",{className:"chat-log",ref:W,onScroll:j=>{const le=j.currentTarget;z.current=le.scrollHeight-le.scrollTop-le.clientHeight<24},children:[A.map(j=>d.jsx(JN,{turn:j,artifact:i},j.id)),R&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&d.jsx("div",{className:"chat-refs",children:R.refs.map((j,le)=>d.jsx("span",{className:"chat-ref",children:Yd(j,i)},le))}),d.jsx(ai,{className:"chat-turn-body prose",text:R.message}),[...R.steers??[],...R.queued??[]].map((j,le)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ai,{className:"chat-turn-body prose",text:j})]},le)),R.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!h&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>G([R.message,...R.steers??[],...R.queued??[]].join(`
253
249
 
254
- `),R.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>_0(a).then(f).catch(j=>S(String(j.message??j))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:R.progress.length>0?d.jsx("ol",{className:"chat-progress",children:R.progress.map((j,le)=>d.jsx("li",{className:le===R.progress.length-1?"now":void 0,children:j},le))}):"Thinking… it re-reads the code before answering."})]})]}),h?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((j,le)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(le),title:"Remove",children:[Yd(j,i)," ✕"]},le))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:$?"steer it — it reads this before its next step":A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:j=>b(j.target.value),title:C==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:j=>{jN(C,{...j,isComposing:j.nativeEvent.isComposing})&&(j.preventDefault(),ue())}}),d.jsx(Ps,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ue,disabled:v||m.trim()==="",title:$?"Add this to the turn it's working on":void 0,children:[d.jsx(Xe,{name:"send"}),v?"sending…":$?"steer":"send message",d.jsx(za,{children:C==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),i.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:U,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),S0(a).then(f).catch(j=>S(String(j.message??j))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&d.jsx("div",{className:"error",children:x})]})]})}function Oy(i){const a=H.useRef(null),r=H.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return H.useEffect(r,[i,r]),H.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function tT({initial:i,onSave:a,onCancel:r}){const[s,u]=H.useState(i),[f,h]=H.useState(!1),[y,g]=H.useState(null),m=Oy(s),b=()=>{f||(h(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),h(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.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"&&!f&&r()}}),d.jsx(Ps,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const nT=i=>i?`@${i} — handing this review over to you.`:"";function aT({artifact:i,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=H.useState(ly),[f,h]=H.useState(""),[y,g]=H.useState(""),[m,b]=H.useState(!1),[v,_]=H.useState(!1),[x,S]=H.useState(null),[C,A]=H.useState(null),[R,$]=H.useState(null),[U,W]=H.useState(!1),[z,ae]=H.useState(null),[se,T]=H.useState(null),[G,ee]=H.useState(!1),[ue,Ee]=H.useState(-1),j=Oy(y),le=H.useRef(null),fe=Ld(f),M=iy(fe),Q=i.summary!==""||i.comments.length>0,pe=!Ab(i)&&Q,we=Ab(i)&&i.sent==null&&Q,De=U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(X=>[X.title,X.explanation]),i.comments.map(X=>{var be,Te;return[X.path,X.line,X.body,X.severity,X.status,X.drifted,(be=X.alreadyRaised)==null?void 0:be.decision,(Te=X.alreadyRaised)==null?void 0:Te.where]})]):"";H.useEffect(()=>{if(!U)return;let X=!1;return T(null),ae(null),ty(a,"COMMENT").then(be=>!X&&ae(be)).catch(be=>{X||(ae(null),T(String((be==null?void 0:be.message)??be)))}),()=>{X=!0}},[U,a,De]);const w=!U||z!=null;H.useEffect(()=>{var X;ue<0||(X=document.getElementById(`handoff-option-${ue}`))==null||X.scrollIntoView({block:"nearest"})},[ue]);const L=H.useMemo(()=>L0(C??[],u),[C,u]),I=H.useMemo(()=>z0(L,f),[L,f]);H.useEffect(()=>{let X=!1;return T0(a).then(be=>!X&&A(be.logins)).catch(be=>!X&&$(String((be==null?void 0:be.message)??be))),()=>{X=!0}},[a]);const oe=X=>{h(X),m||g(nT(Ld(X)))},me=X=>{oe(X),ee(!1),Ee(-1)};H.useLayoutEffect(()=>{var X;(X=le.current)==null||X.showModal()},[]);const ve=()=>{v||!M||!w||(_(!0),S(null),r(fe,y.trim(),U).catch(X=>{S(String((X==null?void 0:X.message)??X)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:le,"aria-label":`Hand off ${i.id}`,onCancel:X=>{X.preventDefault(),v||s()},onClick:X=>{X.target===le.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:i.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":G&&I.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":ue>=0?`handoff-option-${ue}`:void 0,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:X=>{oe(X.target.value),ee(!0),Ee(0)},onKeyDown:X=>{const be=G&&I.length>0;if(X.key==="ArrowDown"||X.key==="ArrowUp"){if(X.preventDefault(),!be)return ee(!0);const Te=X.key==="ArrowDown"?1:-1;Ee(Ge=>(Ge+Te+I.length)%I.length);return}if(X.key==="Enter"){const Te=be&&ue>=0?I[ue]:void 0;Te&&Te.login.toLowerCase()!==fe.toLowerCase()?me(Te.login):ve();return}X.key==="Escape"&&be&&(X.preventDefault(),ee(!1),Ee(-1))}}),G&&I.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:I.map((X,be)=>d.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===ue,className:be===ue?"on":void 0,onMouseEnter:()=>Ee(be),onMouseDown:Te=>{Te.preventDefault(),me(X.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",X.login]}),X.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},X.login))})]})]}),R&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:j,className:"body-edit",rows:2,value:y,onChange:X=>{b(!0),g(X.target.value)},onKeyDown:X=>{X.key==="Enter"&&(X.metaKey||X.ctrlKey)&&(X.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.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()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),pe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:U,disabled:v,onChange:X=>W(X.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:$d(i)})]})]}),U&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?fe:"them","'s to make. The findings keep their grades."]}),se?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",se]}):z?d.jsx("pre",{className:"body-preview",children:z.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),x&&d.jsx("p",{className:"error",children:x}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",fe]}):"They"," will be asked for this review and you will be taken off it."," ",U?"This row goes under sent, with the review on the PR.":i.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!w,children:[d.jsx(Xe,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${fe}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function iT({artifact:i,reviewKey:a,event:r,own:s,sending:u,checking:f,onSend:h,error:y,footer:g,next:m,onAdvance:b,onBody:v,anchorRef:_}){const[x,S]=H.useState(null),[C,A]=H.useState(null),[R,$]=H.useState(i.bodyOverride!=null),[U,W]=H.useState(!1),z=i.bodyOverride!=null,ae=i.priorSends??[];H.useEffect(()=>{z&&$(!0)},[z]);const se=R&&!U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(T=>[T.title,T.explanation]),i.comments.map(T=>{var G,ee;return[T.path,T.line,T.body,T.severity,T.status,T.drifted,(G=T.alreadyRaised)==null?void 0:G.decision,(ee=T.alreadyRaised)==null?void 0:ee.where]})]):"";return H.useEffect(()=>{if(!R||U)return;let T=!1;return S(null),A(null),ty(a,r).then(G=>{T||(S(G),A(null))}).catch(G=>{T||A(String(G))}),()=>{T=!0}},[a,r,se,R,U]),i.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:_,children:[d.jsxs("strong",{children:["✔ sent as ",Gd[i.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(i.sent.at).toLocaleString()," · ",$d(i),i.sent.auto?" · auto-sent by the daemon":"",ae.length>0?` · review ${Rb(i)} on this PR`:""]}),d.jsx("span",{className:"grow"}),i.sent.url&&d.jsxs("a",{href:i.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Xe,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[m?`next review: ${m.pr.repo}#${m.pr.number}`:"back to the queue",d.jsx(Xe,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:g})]}):d.jsxs("div",{className:"send-panel",ref:_,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:$d(i)}),d.jsxs("button",{className:"link",onClick:()=>$(!R),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[d.jsx(Xe,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),s&&wy(i.verdict)!=="COMMENT"&&d.jsx("p",{className:"send-note",children:"This is your own PR, and GitHub takes no approve or change request from its author — so it posts as a comment."}),ae.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Rb(i)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${RN[r]}`,disabled:u||f,onClick:h,children:[d.jsx(Xe,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),u?"sending…":f?"checking what others already raised…":`${Gd[r]} on ${i.id}`," ",d.jsx(za,{children:"s"})]})}),y&&d.jsx("p",{className:"error",children:y}),R&&d.jsxs(d.Fragment,{children:[C&&d.jsx("p",{className:"error",children:C}),x?U?d.jsx(tT,{initial:x.body,onSave:T=>v(T).then(()=>W(!1)),onCancel:()=>W(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:x.body}),d.jsxs("div",{className:"body-source",children:[z?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>v(null).catch(T=>A(String((T==null?void 0:T.message)??T))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>W(!0),children:[d.jsx(Xe,{name:"edit"}),z?"keep editing it":"write it yourself"]})]})]}):!C&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:g})]})}function Mb({sends:i}){const a=i[i.length-1],r=i.length===1,s=f=>new Date(f).toLocaleDateString(),u=Gd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${i.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",i.length+1,"."]})}function lT({filed:i}){var s,u,f;const a=((s=i.review)==null?void 0:s.url)??((u=i.reply)==null?void 0:u.url)??null,r=h=>new Date(h).toLocaleDateString();return i.reason==="own-reply"&&i.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(i.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.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."]}):i.reason==="request-withdrawn"?d.jsxs("div",{children:[d.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(i.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."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=i.review)==null?void 0:f.at)??i.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.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 sT({entries:i,open:a,onToggle:r,anchorRef:s}){const u=f=>{const h=new Date(f);return Number.isNaN(h.getTime())?f:`${h.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${h.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:i.length>0?`${i.length} entr${i.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Xe,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:i.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:i.map((f,h)=>({e:f,i:h})).reverse().map(({e:f,i:h})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${h}-${f.at}`))})})]})}function rT({handoff:i,sent:a,hasDraft:r}){const s=new Date(i.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",i.to," on ",s,"."]})," ","GitHub asks them for this review now",i.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",i.note?i.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:i.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function oT({artifact:i,freshness:a,rerunning:r,onRerun:s}){const u=i.status==="running",f=(a==null?void 0:a.prState)??i.pr.state,h=f==="CLOSED"||f==="MERGED",y=i.refresh,g=a!=null&&a.changed?y:null,m=!h&&kN(i,a)?i.sent:null;if(u)return d.jsxs(d.Fragment,{children:[(i.sent?[]:i.priorSends??[]).length>0&&d.jsx("div",{className:"freshness",children:d.jsx(Mb,{sends:i.priorSends??[]})}),d.jsxs("div",{className:"freshness freshness-running",children:[d.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 b=i.filed,v=i.handoff,_=i.sent?[]:i.priorSends??[];return!h&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(Mb,{sends:_}),v&&d.jsx(rT,{handoff:v,sent:i.sent,hasDraft:i.summary!==""||i.comments.length>0}),b&&d.jsx(lT,{filed:b}),h&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.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.",!i.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&i.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:i.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function cT({reviewKey:i}){var Wt,Gn,Xn,Vn,ut;const[a,r]=H.useState(null),[s,u]=H.useState(null),[f,h]=H.useState(null),[y,g]=H.useState(null),[m,b]=H.useState(!1),[v,_]=H.useState([]),[x,S]=H.useState(!1),[C,A]=H.useState(new Set),R=F=>A(de=>new Set(de).add(F)),[$,U]=H.useState(!1),[W,z]=H.useState([]),ae=H.useRef(null),[se,T]=H.useState(new Set),[G,ee]=H.useState(new Set),ue=H.useRef(Promise.resolve()),Ee=H.useRef(0),[j,le]=H.useState(0),fe=H.useRef(new Map),[M]=Sy(),[Q,pe]=H.useState(null),we=H.useRef(null),De=H.useRef(null),w=H.useRef(null),L=H.useRef(null),I=H.useRef(null),oe=H.useRef(null),[me,ve]=H.useState(!1),X=H.useRef(null),[be,Te]=H.useState(!1),[Ge,$e]=H.useState(!1),[Ce,St]=H.useState(null),[Ke,In]=H.useState(null);H.useEffect(()=>{if(!Ke)return;const F=setTimeout(()=>In(null),1800);return()=>clearTimeout(F)},[Ke]);const Je=F=>{var de,Ne;z(Y=>Y.some(ge=>ge.target===F.target&&ge.id===F.id)?Y:[...Y,F]),(de=ae.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(Ne=ae.current)==null||Ne.focus()};H.useEffect(()=>{let F=!1;return window.scrollTo({top:0}),r(null),u(null),h(null),g(null),St(null),$e(!1),S(!1),mg(i).then(de=>{if(!F)return r(de),S(de.own===!0),v0(i).then(Ne=>{F||(h(Ne),Ne.changed&&r(Ne.artifact))}).catch(Ne=>!F&&g(String(Ne.message??Ne))).then(()=>{if(!(F||de.sent||de.status==="running"||de.comments.length===0))return $e(!0),N0(i).then(Ne=>!F&&r(Ne)).catch(()=>{}).finally(()=>!F&&$e(!1))})}).catch(de=>!F&&u(String(de))),()=>{F=!0}},[i]),H.useEffect(()=>{So().then(_).catch(()=>{})},[]),H.useEffect(()=>{const F=X.current;if(!F)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${F.offsetHeight}px`);de();const Ne=new ResizeObserver(de);return Ne.observe(F),()=>{Ne.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Ln=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Hn=H.useRef(null),It=((Wt=a==null?void 0:a.raisedCheck)==null?void 0:Wt.checkingSince)!=null||Ge;H.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Ln&&!It)return;const F=setInterval(()=>{mg(i).then(de=>{var Ne;if(r(de),S(de.own===!0),de.status!=="running"){b(!1);const Y=Hn.current;Y!=null&&de.sent&&(((Ne=de.run)==null?void 0:Ne.startedAt)??"none")===Y&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),Hn.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(F)},[a==null?void 0:a.status,Ln,It,i]);const Rt=(a==null?void 0:a.sent)!=null,on=H.useMemo(()=>$_(v,i,C),[v,i,C]),yn=on.findIndex(F=>F.key===i),Yt=(yn>0?on[yn-1]:null)??null,je=(yn>=0&&yn<on.length-1?on[yn+1]:null)??null,Lt=F=>{window.location.hash=`#/r/${encodeURIComponent(F)}`},vt=()=>{je?Lt(je.key):window.location.hash="#/"},Ot=H.useMemo(()=>{if(!a)return[];const F=I_(a.diff,a.chapters);return F.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:F}]:a.chapters},[a]);H.useEffect(()=>{let F=0;const de=()=>{var dt;F=0;const ge=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ie=ge+16;let Ye=null;for(const gt of Ot){const Bt=(dt=fe.current.get(gt.id))==null?void 0:dt.getBoundingClientRect();Bt&&Bt.top<=Ie&&Bt.bottom>Ie&&(Ye={id:gt.id,stuck:Bt.top<ge-1})}pe(gt=>(gt==null?void 0:gt.id)===(Ye==null?void 0:Ye.id)&&(gt==null?void 0:gt.stuck)===(Ye==null?void 0:Ye.stuck)?gt:Ye)},Ne=()=>{F||(F=requestAnimationFrame(de))};de(),window.addEventListener("scroll",Ne,{passive:!0}),window.addEventListener("resize",Ne);const Y=new ResizeObserver(Ne);return Y.observe(document.body),()=>{cancelAnimationFrame(F),window.removeEventListener("scroll",Ne),window.removeEventListener("resize",Ne),Y.disconnect()}},[Ot]);const xn=H.useMemo(()=>{const F=H_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(Y=>pf(Y.path)&&mf(Y.patch).isNew).map(Y=>Y.path)),Ne=Y=>{const ge=F.get(Y)??0;return de.has(Y)?Math.round(ge/4):ge};return new Map(Ot.map(Y=>[Y.id,Y.files.reduce((ge,Ie)=>ge+Ne(Ie),0)]))},[a==null?void 0:a.diff,Ot]),zn=F=>{const de=xn.get(F)??0;return de>VN?de:null},An=F=>se.has(F)?zn(F)!=null:zn(F)==null,jn=F=>T(de=>{const Ne=new Set(de);return Ne.has(F)?Ne.delete(F):Ne.add(F),Ne});H.useEffect(()=>{T(new Set),ee(new Set)},[i]);const Rn=H.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(F=>[F.path,q_(F.patch)])),[a==null?void 0:a.diff]),cn=H.useMemo(()=>new Set(Object.keys(Rn).filter(F=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[F])===Rn[F]})),[Rn,a==null?void 0:a.viewed]),qt={viewed:cn,peeked:G,onToggleViewed:F=>{const de=cn.has(F)?null:Rn[F]??null;ee(Y=>{const ge=new Set(Y);return ge.delete(F),ge}),r(Y=>{if(!Y)return Y;const ge={...Y.viewed};return de===null?delete ge[F]:ge[F]=de,{...Y,viewed:ge}});const Ne=++Ee.current;ue.current=ue.current.then(()=>p0(i,F,de)).then(Y=>{Ne===Ee.current&&r(ge=>ge&&ge.id===Y.id?{...ge,viewed:Y.viewed}:ge)}).catch(Y=>u(String(Y)))},onTogglePeek:F=>ee(de=>{const Ne=new Set(de);return Ne.has(F)?Ne.delete(F):Ne.add(F),Ne})},la=F=>{const de=Ot[F];return de?(le(F),An(de.id)||jn(de.id),de):null},un=(...F)=>{for(const de of F)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},hn=F=>{var Ne;const de=la(F);de&&((Ne=fe.current.get(de.id))==null||Ne.scrollIntoView({behavior:"smooth",block:"start"}))},qe=(F,de)=>{var Y;la(F);const Ne=(Y=a==null?void 0:a.comments.find(ge=>ge.id===de))==null?void 0:Y.path;Ne&&cn.has(Ne)&&ee(ge=>new Set(ge).add(Ne)),In(de),Ay(de)},pn=x,Pt=wy(a==null?void 0:a.verdict,pn);H.useEffect(()=>St(null),[Pt]);const Gt=()=>{!a||a.sent||be||It||(Te(!0),St(null),w0(i,Pt).then(({replyError:F,...de})=>{r(de),F&&St(`Sent — but ${F}`),R(i)}).catch(F=>St(String(F.message??F))).finally(()=>Te(!1)))};if(H.useEffect(()=>{const F=de=>{qN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Yt?Lt(Yt.key):de.key==="]"&&je?Lt(je.key):de.key==="n"?hn(Math.min(Ot.length-1,j+1)):de.key==="N"?hn(Math.max(0,j-1)):de.key==="s"&&!Rt&&Gt())};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[Yt==null?void 0:Yt.key,je==null?void 0:je.key,Ot,j,Rt,Pt,a==null?void 0:a.sent,be,It]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const k=F=>{var de;b(!0),u(null),Hn.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,ey(i,F).then(r).catch(Ne=>{u(String(Ne)),b(!1)})},te=F=>F.then(r).catch(de=>u(String(de))),ye=F=>ro(i,{status:F}).then(()=>{R(i),vt()}).catch(de=>u(String(de))),ze=(F,de,Ne)=>x0(i,{to:F,note:de,postReview:Ne}).then(({artifact:Y,noteError:ge,sendError:Ie,replyError:Ye})=>{D0(F),r(Y),U(!1),R(i);const dt=[Ie&&`the review did not post: ${Ie}`,Ye,ge&&`the note did not post: ${ge}`].filter(Boolean);dt.length>0?u(`Handed to @${F}, but ${dt.join("; and ")}`):vt()}),Qe=(F,de)=>te(m0(i,F,de)),et=F=>te(b0(i,F)),Ae=F=>te(g0(i,F)),Se=a.comments.filter(F=>!F.chapterId||!Ot.some(de=>de.id===F.chapterId)),{inline:Ue,folded:Ct,dropped:mt,held:qn,replies:sa}=Ty(a),Na=a.comments.filter(F=>F.alreadyRaised&&F.status!=="dropped").length,dn=a.comments.filter(F=>F.status!=="dropped"&&F.drifted).length,wt=a.verdict?kb[a.verdict.recommendation]:"none",Kt=DN(a),tt=MN(a),vn=a.pendingChat!=null&&a.pendingChat.error==null,Ua=a.status==="running"||vn,ba=()=>te(Dd(i,{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}]})),Ta=(F,de)=>{te(Dd(i,{message:de,refs:[{target:"line",id:null,path:F.path,line:F.line,side:F.side}]}).then(Ne=>{var Y;return(Y=L.current)==null||Y.scrollIntoView({behavior:"smooth",block:"start"}),Ne}))},ra=(Gn=a.run)!=null&&Gn.trusted?"ran the code":(Xn=a.run)!=null&&Xn.withSource?"read the full source":a.run?"read the diff only":"no run yet",xa=F=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===F?` verdict-pick-on tone-${kb[F]}`:""}`,title:F==="approve"?"Approve":F==="comment"?"Comment without blocking":"Request changes",onClick:()=>te(ro(i,{verdictRecommendation:F})),children:[d.jsx(Xe,{name:IN[F]}),F.replace("_"," ")]},F)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:X,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Yt,title:Yt?`[ — ${Yt.id}: ${Yt.pr.title}`:"no more reviews this way",onClick:()=>Yt&&Lt(Yt.key),children:d.jsx(Xe,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!je,title:je?`] — ${je.id}: ${je.pr.title}`:"no more reviews this way",onClick:()=>je&&Lt(je.key),children:d.jsx(Xe,{name:"chevronRight"})})]}),yn>=0&&d.jsxs("span",{className:"faint",children:[yn+1," of ",on.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:je?`next: ${je.pr.title}`:yn>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Xe,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Rt?d.jsxs("span",{className:`chip tone-${wt}`,children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${wt}`,title:"change it, or send — both are at the foot of the page",onClick:()=>un(we,I),children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%",d.jsx(Xe,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Rt?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>k(!0),children:[d.jsx(Xe,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ra}),((Vn=a.run)==null?void 0:Vn.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(De),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(w),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var F;un(L),(F=ae.current)==null||F.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ve(!0),un(oe)},children:"history"})]}),Ot.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>hn(0),children:"changes"}),Ot.map((F,de)=>{const Ne=F.files.length>0&&F.files.every(Y=>cn.has(Y));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${An(F.id)?" rail-item-on":""}${Ne?" rail-item-done":""}${(Q==null?void 0:Q.id)===F.id?" rail-item-here":""}`,onClick:()=>hn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",F.title]}),d.jsxs("span",{className:"rail-count",title:Ne?"every file viewed":void 0,children:[Ne?"✓ ":"",F.files.length,"f"]})]}),a.comments.filter(Y=>Y.chapterId===F.id).map(Y=>d.jsxs("button",{className:`rail-comment${Y.status==="dropped"?" rail-comment-dropped":""}`,title:`${Y.path}${Y.line!=null?`:${Y.line}`:""} — ${Y.body}`,onClick:()=>qe(de,Y.id),children:[d.jsx("span",{className:`rail-dot tone-${HN(Y,wt)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Y.path.split("/").pop(),Y.line!=null?`:${Y.drifted?"~":""}${Y.line}`:""]})]},Y.id))]},F.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${Ot.length>0?" rail-lab":""}`,onClick:()=>un(we,I),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-mt.length," keeping · ",mt.length," dropped"]}),d.jsxs("div",{children:[Ue.length," inline · ",Ct.length," folded into body"]}),dn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[dn," drifted"]}),d.jsx(KN,{check:a.raisedCheck??null,raised:Na,held:qn.length,replies:sa.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(oT,{artifact:a,freshness:f,rerunning:m,onRerun:k}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.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&&d.jsx("div",{className:"error",children:s}),((ut=a.run)==null?void 0:ut.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:De,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ai,{className:"prose lead",text:a.summary||"(no summary)"}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"summary",id:null}),children:[d.jsx(Xe,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${wt}`,ref:w,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Rd(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Rd(a)}),Rd(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx(ai,{className:"prose lead",text:a.verdict.reasoning}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"verdict",id:null}),children:[d.jsx(Xe,{name:"comment"}),"discuss the verdict"]})]})}),Ot.map((F,de)=>d.jsx(QN,{chapter:F,n:de+1,diff:a.diff,comments:a.comments.filter(Ne=>Ne.chapterId===F.id),open:An(F.id),heavy:zn(F.id),onToggle:()=>jn(F.id),onUpdateComment:Qe,onDeleteComment:et,onAddComment:Ae,onDiscuss:Rt?void 0:Je,onAskAboutLine:Ta,chatBusy:vn,readOnly:Rt,flash:Ke,viewedState:qt,sticky:M,stuck:(Q==null?void 0:Q.id)===F.id&&Q.stuck,anchorRef:Ne=>{Ne?fe.current.set(F.id,Ne):fe.current.delete(F.id)}},F.id)),Se.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Se.map(F=>d.jsx(ky,{comment:F,onUpdate:de=>Qe(F.id,de),onDelete:()=>et(F.id),onDiscuss:Rt?void 0:()=>Je({target:"comment",id:F.id}),readOnly:Rt},F.id))})]}),d.jsx(sT,{entries:a.history??[],open:me,onToggle:()=>ve(F=>!F),anchorRef:oe})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(eT,{artifact:a,reviewKey:i,refs:W,onClearRefs:()=>z([]),onDropRef:F=>z(de=>de.filter((Ne,Y)=>Y!==F)),onArtifact:r,readOnly:Rt,inputRef:ae,anchorRef:L}),d.jsxs("div",{className:"cockpit-decide",children:[!Rt&&Kt&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:Kt})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ba,disabled:vn,children:[d.jsx(Xe,{name:"comment"}),vn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Rt&&d.jsxs("div",{className:"verdict-bar",ref:we,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(xa)]}),d.jsx(iT,{artifact:a,reviewKey:i,event:Pt,own:pn,sending:be,checking:It,onSend:Gt,error:Ce,next:je,onAdvance:vt,onBody:F=>ro(i,{bodyOverride:F}).then(r),anchorRef:I,footer:d.jsxs(d.Fragment,{children:[!Rt&&d.jsx("span",{className:"faint",children:"not sending?"}),!Rt&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:je?`Settle it locally and go to ${je.id}`:"Settle it locally and go back to the queue",onClick:()=>ye("reviewed"),children:[d.jsx(Xe,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:je?`Leave it and go to ${je.id}`:"Leave it and go back to the queue",onClick:()=>ye("skipped"),children:[d.jsx(Xe,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Ua?"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:()=>U(!0),disabled:$||Ua,children:[d.jsx(Xe,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:A0(i),children:[d.jsx(Xe,{name:"download"}),"export .md"]})]})}),$&&d.jsx(aT,{artifact:a,reviewKey:i,onConfirm:ze,onCancel:()=>U(!1)})]})]})]})]})}const Db="cerber.notify.seen.v2",uT="cerber.notify.seen",Pd="cerber.notify",dT=1e4,qs=i=>i.status==="ready",Kd=i=>{try{return localStorage.getItem(i)}catch{return null}},Zd=(i,a)=>{try{localStorage.setItem(i,a)}catch{}},fT={autoReview:!1,autoReviewRepos:{}};function hT(i,a){return i?!i.enabled||!i.pollEnabled?fT:{autoReview:i.autoReview,autoReviewRepos:i.autoReviewRepos??{}}:a}const Cy=(i,a)=>pT(i,Xb(a,i.pr.owner,i.pr.repo));function pT(i,a){return i.announceable===!1||i.status==="running"?!1:i.status==="awaiting"?!a:!0}const My=":draft",co=i=>`${i.key}${My}`,Dy=i=>qs(i)?co(i):i.key;function mT(i,a,r){const s=new Set(a);return $s(i).filter(u=>Cy(u,r)&&!s.has(Dy(u)))}function gT(i,a,r=[]){const s=new Set(r),u=new Set($s(i).map(h=>h.key)),f=[];for(const h of i){if(u.has(h.key)&&!Cy(h,a)){for(const y of[h.key,co(h)])s.has(y)&&f.push(y);continue}f.push(h.key),(qs(h)||!u.has(h.key)||s.has(co(h)))&&f.push(co(h))}return f}const kd=i=>`${i.pr.repo}#${i.pr.number}`,bT={approve:"approves",comment:"comments",request_changes:"requests changes"};function yT(i){const a=i.verdict?bT[i.verdict.recommendation]:"drafted",r=i.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function vT(i){if(i.length===0)return null;const a=`cerber:${i.map(Dy).sort().join("|")}`;if(i.length===1){const u=i[0];return{title:qs(u)?`${kd(u)} draft ready`:`${kd(u)} awaits your review`,body:qs(u)?`${yT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=i.slice(0,3).map(kd),s=i.length-r.length;return{title:i.every(qs)?`${i.length} drafts ready`:`${i.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const ET=new Set(["127.0.0.1","localhost","::1","[::1]"]);function _T(i,a=window.location.hostname){return!(i!=null&&i.enabled)||!i.notify?!1:ET.has(a)}function Gl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Kd(Pd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function ST(){const i=Gl();if(i==="unsupported"||i==="blocked")return i;if(i==="on")return Zd(Pd,"off"),Gl();if(Zd(Pd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Gl()}function wT(i){const a=new Notification(i.title,{body:i.body,tag:i.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=i.key?`#/r/${encodeURIComponent(i.key)}`:"#/",a.close()}}function NT(i,a){const r=i??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(f=>typeof f=="string");return i?u:u.flatMap(f=>[f,`${f}${My}`])}function TT(){const i=H.useRef(null),a=H.useRef({autoReview:!0,autoReviewRepos:{}}),[r,s]=H.useState(!1);return H.useEffect(()=>{let u=!0;i.current=NT(Kd(Db),Kd(uT));const f=()=>Promise.all([So(),nf().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=_T(g);s(m),a.current=hT(g,a.current);const b=i.current;if(i.current=gT(y,a.current,b??[]),Zd(Db,JSON.stringify(i.current)),!b||Gl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const v=vT(mT(y,b,a.current));v&&wT(v)}).catch(()=>{});f();const h=setInterval(f,dT);return()=>{u=!1,clearInterval(h)}},[]),r}function Ly(){const[i,a]=H.useState(Gl);return H.useEffect(()=>{const r=()=>a(Gl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[i,()=>void ST().then(a)]}const uo=i=>{window.location.hash=`#/r/${encodeURIComponent(i)}`};function xT(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function AT({daemon:i}){return i!=null&&i.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[i.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),i.repos.length>0?i.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(i.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:i.autoReview?"on":"off"}),r0(i.autoReview,i.autoReviewRepos??{})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:i.autoSend==="on"?"on":"shadow"})," ≥",i.autoSendThreshold,"%",i.autoSend==="on"?` · ${i.autoSent} sent`:` · ${i.autoSendCandidates} candidate${i.autoSendCandidates===1?"":"s"}`]}),i.trustedRuns&&d.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:[d.jsx(Xe,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),i.lastPollError?d.jsx("span",{className:"danger",title:i.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:i.polling?"polling now…":[i.lastSummary?`last: ${i.lastSummary}`:null,i.nextPollAt?`next ${new Date(i.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:i,label:a,tip:r}){return d.jsx("span",{className:i,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function RT({r:i,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=i0(i),h=Z_(i),y=u?t0(i,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${i.pr.owner}/${i.pr.repo}#${i.pr.number}`,children:[i.pr.repo,"#",i.pr.number]}),d.jsx("span",{className:"col-author",title:i.pr.author,children:i.pr.author}),d.jsx("span",{className:"col-title",title:i.pr.title,children:i.pr.title}),i.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),h&&d.jsx("span",{className:"tag tag-done",children:h}),d.jsx("span",{className:"col-comments",children:l0(i)}),d.jsx("span",{className:"col-size",children:i.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",title:i.status==="awaiting"?"When the PR last changed on GitHub":"When this review last changed",children:Jb(Md(i))})]})}function Lb({autoFocus:i}){const[a,r]=H.useState(""),[s,u]=H.useState(!1),[f,h]=H.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),h(null),y0(m).then(b=>uo(b.key)).catch(b=>{h(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Xe,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:i,disabled:s,onChange:g=>{r(g.target.value),f&&h(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function kT({text:i}){const a=H.useRef(null),[r,s]=H.useState(!1);return H.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const h=new ResizeObserver(f);return h.observe(u),()=>h.disconnect()},[i]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ai,{className:"prose",text:i})})}function OT(){var Ee;const[i,a]=H.useState(null),[r,s]=H.useState(null),[u,f]=H.useState(null),[h,y]=H.useState(new Set),[g,m]=H.useState("inbox"),[b,v]=H.useState(null),_=H.useRef(!1),x=H.useRef(null),S=H.useRef(!0);H.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const C=()=>{So().then(j=>S.current&&a(j)).catch(j=>S.current&&f(String(j))),nf().then(j=>S.current&&s(j)).catch(()=>{})};H.useEffect(()=>{C();const j=setInterval(C,1e4);return()=>clearInterval(j)},[]);const A=i??[],R=H.useMemo(()=>P_(A,r),[A,r]),$=R.requests,U=K_(g,R),W=R[U];H.useEffect(()=>{U!==g&&m(U)},[U,g]);const z=W.find(j=>j.key===b)??W[0]??null,ae=j=>{y(le=>new Set(le).add(j)),ey(j).then(()=>C()).catch(le=>S.current&&f(String(le))).finally(()=>{S.current&&y(le=>{const fe=new Set(le);return fe.delete(j),fe})})};if(H.useEffect(()=>{const j=le=>{if(xT(le.target)||le.metaKey||le.ctrlKey||le.altKey)return;const fe=W.findIndex(Q=>Q.key===(z==null?void 0:z.key)),M=Q=>{const pe=W[Math.min(W.length-1,Math.max(0,fe+Q))];pe&&(_.current=!0,v(pe.key))};le.key==="j"||le.key==="ArrowDown"?(le.preventDefault(),M(1)):le.key==="k"||le.key==="ArrowUp"?(le.preventDefault(),M(-1)):le.key==="Enter"&&z?uo(z.key):le.key==="r"&&z&&z.status!=="running"&&z.status!=="sent"&&ae(z.key)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[W,z==null?void 0:z.key]),H.useEffect(()=>{var j;_.current&&(_.current=!1,(j=document.querySelector(".row-on"))==null||j.scrollIntoView({block:"nearest"}))},[z==null?void 0:z.key]),H.useEffect(()=>{const j=x.current;if(!j)return;const le=()=>document.documentElement.style.setProperty("--strip-h",`${j.offsetHeight}px`);le();const fe=new ResizeObserver(le);return fe.observe(j),()=>{fe.disconnect(),document.documentElement.style.removeProperty("--strip-h")}},[z!=null]),u&&!i)return d.jsx("p",{className:"error",children:u});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const se=W.reduce((j,le)=>j+(le.costUsd??0),0),T=z?o0(z,r):null,G=z?h.has(z.key):!1,ee=Cd.filter(j=>R[j].length>0),ue=j=>d.jsxs("button",{className:`tab${U===j?" tab-on":""}${Cd.includes(j)?" tab-filed":""}${j==="requests"?" tab-requests":""}`,title:zu[j].title,onClick:()=>m(j),children:[zu[j].label," ",d.jsx("span",{className:"tab-count",children:R[j].length})]},j);return d.jsxs(d.Fragment,{children:[d.jsx(AT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),A.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Lb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[hg.map(ue),ee.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),ee.map(ue),d.jsx("span",{className:"grow"}),d.jsx(Lb,{}),se>0&&d.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:["≈$",se.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(Ji,{className:"col-slug",label:"repo#pr",tip:"Repository and pull request number"}),d.jsx(Ji,{className:"col-author",label:"author",tip:"Who opened the pull request"}),d.jsx(Ji,{className:"col-title",label:"title",tip:"Pull request title"}),d.jsx(Ji,{className:"col-comments",label:"comments",tip:"Comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed — or, on a PR nobody has drafted yet, when the PR itself last changed on GitHub"})]}),W.length===0?d.jsx("div",{className:"empty-tab",children:U==="inbox"&&$.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:n0($)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Xe,{name:"arrowRight"}),"show ",$.length===1?"it":`all ${$.length}`]})]}):d.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${zu[U].label} right now.`})}):W.map((j,le)=>d.jsxs(H.Fragment,{children:[hg.includes(U)&&G_(W,le)&&d.jsx("div",{className:"group-head",role:"heading","aria-level":2,title:"PRs you opened. Never drafted on their own — press r for a self-review. Send posts it as a comment.",children:"your PRs"}),d.jsx(RT,{r:j,selected:j.key===(z==null?void 0:z.key),onSelect:()=>v(j.key),onOpen:()=>uo(j.key),awaiting:Y_(j,$)?X_(j,r):null})]},j.key)),z&&T&&d.jsxs("div",{className:"cursor-strip",ref:x,children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[z.pr.owner,"/",z.pr.repo,"#",z.pr.number,z.pr.headRefName&&z.pr.baseRefName?` · ${z.pr.headRefName} → ${z.pr.baseRefName}`:""]}),d.jsx(kT,{text:T.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[T.meta.join(" · "),((Ee=z.sent)==null?void 0:Ee.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:z.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>uo(z.key),children:[d.jsx(Xe,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:z.status==="sent"||z.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>ro(z.key,{status:"skipped"}).then(C).catch(j=>f(String(j))),children:[d.jsx(Xe,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:G||z.status==="running",title:z.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>ae(z.key),children:[d.jsx(Xe,{name:"rerun"}),G?"starting…":z.status==="awaiting"||z.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const vo="cerber.theme";function zy(i){return i==="light"||i==="dark"?i:"system"}function CT(){try{return zy(localStorage.getItem(vo))}catch{return"system"}}function jy(i,a=document.documentElement){i==="system"?delete a.dataset.theme:a.dataset.theme=i}function MT(i,a){try{const r=a??localStorage;i==="system"?r.removeItem(vo):r.setItem(vo,i)}catch{}}function DT(){Uy(jy)}function Uy(i){const a=r=>{(r.key===vo||r.key===null)&&i(zy(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function LT(){const[i,a]=H.useState(CT);return H.useEffect(()=>Uy(a),[]),[i,s=>{MT(s),jy(s),a(s)}]}const zT=[{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"}],zb=1440,jb=i=>i instanceof Error?i.message:String(i),jT={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"},UT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],BT=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}],IT=/^[\w.-]+\/[\w.-]+$/,Od=i=>i?"drafts automatically":"waits for a click";function HT({daemon:i,busy:a,save:r}){const[s,u]=H.useState(""),[f,h]=H.useState(!i.autoReview),[y,g]=H.useState([]);H.useEffect(()=>{So().then(S=>g([...new Set(S.map(C=>`${C.pr.owner}/${C.pr.repo}`))].sort())).catch(()=>{})},[]),H.useEffect(()=>h(!i.autoReview),[i.autoReview]);const m=Object.entries(i.autoReviewRepos).sort(([S],[C])=>S.localeCompare(C)),b=s.trim(),v=IT.test(b),_=new Set(m.map(([S])=>S.toLowerCase())),x=()=>{a||!v||(r(b,f),u(""))};return d.jsxs(d.Fragment,{children:[d.jsx("h2",{children:"Per-repo exceptions"}),d.jsx("p",{className:"muted",children:"Every repo not listed here follows the switch above. List a busy repo to keep it to the click, or, with the switch off, one repo you still want drafted."}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:s,"aria-label":"Repository",placeholder:"owner/repo",list:"auto-review-repos",disabled:a,onChange:S=>u(S.target.value),onKeyDown:S=>{S.key==="Enter"&&x()}}),d.jsx("datalist",{id:"auto-review-repos",children:y.filter(S=>!_.has(S.toLowerCase())).map(S=>d.jsx("option",{value:S},S))}),d.jsxs("select",{"aria-label":"What the poll does for this repo",value:f?"auto":"click",disabled:a,onChange:S=>h(S.target.value==="auto"),children:[d.jsx("option",{value:"click",children:Od(!1)}),d.jsx("option",{value:"auto",children:Od(!0)})]}),d.jsx("button",{className:"btn",disabled:a||!v,onClick:x,children:"add"})]}),m.length===0?d.jsxs("p",{className:"muted",children:["No exceptions — every repo ",i.autoReview?"is drafted automatically":"waits for a click","."]}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.map(([S,C])=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:S})}),d.jsxs("td",{className:"muted",children:[Od(C),C===i.autoReview&&" — same as the default, so it changes nothing"]}),d.jsxs("td",{className:"trust-actions",children:[d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,!C),children:C?"wait for a click":"draft automatically"})," ",d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,null),children:"remove"})]})]},S))})})]})}function qT({daemonAnnounces:i}){const[a,r]=Ly(),[s,u]=LT(),[f,h]=Sy(),[y,g]=xy(),[m,b]=H.useState(null),[v,_]=H.useState(""),[x,S]=H.useState(null),[C,A]=H.useState(!1),[R,$]=H.useState(""),[U,W]=H.useState(!1);H.useEffect(()=>{R0().then(b).catch(T=>S(jb(T))),nf().then(T=>W(T.enabled&&T.intervalFixed)).catch(()=>{})},[]),H.useEffect(()=>{m&&$(String(m.daemon.intervalMinutes))},[m]);const z=T=>{A(!0),S(null),T.then(b).catch(G=>S(jb(G))).finally(()=>A(!1))};if(x&&!m)return d.jsx("p",{className:"error",children:x});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const ae=i&&m.daemon.poll&&m.daemon.notify,se=()=>{const T=Number(R);!Number.isInteger(T)||T<1||T>zb?$(String(m.daemon.intervalMinutes)):T!==m.daemon.intervalMinutes&&z(no({intervalMinutes:T}))};return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.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."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:C,onChange:T=>z(no({poll:T.target.checked}))})," ","poll GitHub for PRs awaiting my review"]}),d.jsxs("label",{className:"inbox-toggle",children:["poll every",d.jsx("input",{type:"number",className:"interval-input",min:1,max:zb,step:1,value:R,disabled:C||!m.daemon.poll||U,onChange:T=>$(T.target.value),onBlur:se,onKeyDown:T=>{T.key==="Enter"&&se()}}),"minutes",U&&d.jsx("span",{className:"muted",children:" (set by --interval for this run)"})]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:C||!m.daemon.poll,onChange:T=>z(no({autoReview:T.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),m.daemon.poll&&d.jsx(HT,{daemon:m.daemon,busy:C,save:(T,G)=>z(k0(T,G))}),d.jsxs("p",{className:"muted",children:["Your own open PRs come in too, under ",d.jsx("b",{children:"your PRs"}),", for a self-review when you ask —",m.daemon.ownPrMaxAgeDays?` except ones idle for more than ${m.daemon.ownPrMaxAgeDays} days`:" all of them, however long idle"," ","(",d.jsx("code",{children:"ownPrMaxAgeDays"}),"; 0 turns the cut off)."]}),d.jsxs("p",{className:"muted",children:["Concurrency, a repo filter and that age cut live in ",d.jsx("code",{children:m.path})," ","under ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.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.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:C||!m.daemon.poll,onChange:T=>z(no({notify:T.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.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 ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.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'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||ae,onChange:r})," ",ae?"let this browser announce them instead":jT[a]]}),d.jsx("p",{className:"muted",children:ae?d.jsx(d.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."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.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."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:UT.map(({choice:T,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===T,onChange:()=>u(T)})," ",G]},T))}),d.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 ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:T=>h(T.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.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."}),BT.map(({choice:T,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===T,onChange:()=>g(T)})," ",G]},T)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.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."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.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".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:C,onChange:T=>_(T.target.value),onKeyDown:T=>{T.key==="Enter"&&!C&&v.trim()&&(z(Uu(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:C||!v.trim(),onClick:()=>{z(Uu(v.trim())),_("")},children:"trust"})]}),x&&d.jsx("p",{className:"error",children:x}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(T=>d.jsxs("tr",{className:T.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:T.rule})}),d.jsx("td",{className:"muted",children:T.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:C,onClick:()=>z(Uu(T.rule,!0)),children:"remove"})})]},T.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:zT.map(T=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:T.rule})}),d.jsx("td",{className:"muted",children:T.meaning})]},T.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.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 ",d.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 ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Ub(){const i=window.location.hash,a=i.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:i==="#/settings"?{view:"settings"}:{view:"queue"}}const Bb={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."},Ib="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 GT({daemonAnnounces:i}){const[a,r]=Ly();return i?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Ib,"aria-label":Ib,children:d.jsx(Xe,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Bb[a],"aria-label":Bb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Xe,{name:a==="on"?"bell":"bellOff",size:15})})}function $T(){const[i,a]=H.useState(Ub()),r=TT();return H.useEffect(()=>{const s=()=>a(Ub());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),i.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(cT,{reviewKey:i.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(BS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),i.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(GT,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Xe,{name:"settings",size:15})})]})}),i.view==="queue"?d.jsx(OT,{}):d.jsx(qT,{daemonAnnounces:r})]})}DT();QE.createRoot(document.getElementById("root")).render(d.jsx(YE.StrictMode,{children:d.jsx($T,{})}));export{gN as _,YT as c,Hb as g,uy as p};
250
+ `),R.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>S0(a).then(f).catch(j=>S(String(j.message??j))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:R.progress.length>0?d.jsx("ol",{className:"chat-progress",children:R.progress.map((j,le)=>d.jsx("li",{className:le===R.progress.length-1?"now":void 0,children:j},le))}):"Thinking… it re-reads the code before answering."})]})]}),h?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((j,le)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(le),title:"Remove",children:[Yd(j,i)," ✕"]},le))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:$?"steer it — it reads this before its next step":A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:j=>b(j.target.value),title:C==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:j=>{jN(C,{...j,isComposing:j.nativeEvent.isComposing})&&(j.preventDefault(),ue())}}),d.jsx(Ks,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ue,disabled:v||m.trim()==="",title:$?"Add this to the turn it's working on":void 0,children:[d.jsx(Xe,{name:"send"}),v?"sending…":$?"steer":"send message",d.jsx(za,{children:C==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),i.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:U,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),w0(a).then(f).catch(j=>S(String(j.message??j))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&d.jsx("div",{className:"error",children:x})]})]})}function Cy(i){const a=H.useRef(null),r=H.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return H.useEffect(r,[i,r]),H.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function tT({initial:i,onSave:a,onCancel:r}){const[s,u]=H.useState(i),[f,h]=H.useState(!1),[y,g]=H.useState(null),m=Cy(s),b=()=>{f||(h(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),h(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.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"&&!f&&r()}}),d.jsx(Ks,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const nT=i=>i?`@${i} — handing this review over to you.`:"";function aT({artifact:i,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=H.useState(sy),[f,h]=H.useState(""),[y,g]=H.useState(""),[m,b]=H.useState(!1),[v,_]=H.useState(!1),[x,S]=H.useState(null),[C,A]=H.useState(null),[R,$]=H.useState(null),[U,W]=H.useState(!1),[z,ae]=H.useState(null),[se,T]=H.useState(null),[G,ee]=H.useState(!1),[ue,Ee]=H.useState(-1),j=Cy(y),le=H.useRef(null),fe=Ld(f),M=ly(fe),Q=i.summary!==""||i.comments.length>0,pe=!Ab(i)&&Q,we=Ab(i)&&i.sent==null&&Q,De=U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(X=>[X.title,X.explanation]),i.comments.map(X=>{var be,Te;return[X.path,X.line,X.body,X.severity,X.status,X.drifted,(be=X.alreadyRaised)==null?void 0:be.decision,(Te=X.alreadyRaised)==null?void 0:Te.where]})]):"";H.useEffect(()=>{if(!U)return;let X=!1;return T(null),ae(null),ny(a,"COMMENT").then(be=>!X&&ae(be)).catch(be=>{X||(ae(null),T(String((be==null?void 0:be.message)??be)))}),()=>{X=!0}},[U,a,De]);const w=!U||z!=null;H.useEffect(()=>{var X;ue<0||(X=document.getElementById(`handoff-option-${ue}`))==null||X.scrollIntoView({block:"nearest"})},[ue]);const L=H.useMemo(()=>z0(C??[],u),[C,u]),I=H.useMemo(()=>j0(L,f),[L,f]);H.useEffect(()=>{let X=!1;return x0(a).then(be=>!X&&A(be.logins)).catch(be=>!X&&$(String((be==null?void 0:be.message)??be))),()=>{X=!0}},[a]);const oe=X=>{h(X),m||g(nT(Ld(X)))},me=X=>{oe(X),ee(!1),Ee(-1)};H.useLayoutEffect(()=>{var X;(X=le.current)==null||X.showModal()},[]);const ve=()=>{v||!M||!w||(_(!0),S(null),r(fe,y.trim(),U).catch(X=>{S(String((X==null?void 0:X.message)??X)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:le,"aria-label":`Hand off ${i.id}`,onCancel:X=>{X.preventDefault(),v||s()},onClick:X=>{X.target===le.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:i.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":G&&I.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":ue>=0?`handoff-option-${ue}`:void 0,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:X=>{oe(X.target.value),ee(!0),Ee(0)},onKeyDown:X=>{const be=G&&I.length>0;if(X.key==="ArrowDown"||X.key==="ArrowUp"){if(X.preventDefault(),!be)return ee(!0);const Te=X.key==="ArrowDown"?1:-1;Ee(Ge=>(Ge+Te+I.length)%I.length);return}if(X.key==="Enter"){const Te=be&&ue>=0?I[ue]:void 0;Te&&Te.login.toLowerCase()!==fe.toLowerCase()?me(Te.login):ve();return}X.key==="Escape"&&be&&(X.preventDefault(),ee(!1),Ee(-1))}}),G&&I.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:I.map((X,be)=>d.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===ue,className:be===ue?"on":void 0,onMouseEnter:()=>Ee(be),onMouseDown:Te=>{Te.preventDefault(),me(X.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",X.login]}),X.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},X.login))})]})]}),R&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:j,className:"body-edit",rows:2,value:y,onChange:X=>{b(!0),g(X.target.value)},onKeyDown:X=>{X.key==="Enter"&&(X.metaKey||X.ctrlKey)&&(X.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.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()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),pe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:U,disabled:v,onChange:X=>W(X.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:$d(i)})]})]}),U&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?fe:"them","'s to make. The findings keep their grades."]}),se?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",se]}):z?d.jsx("pre",{className:"body-preview",children:z.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),x&&d.jsx("p",{className:"error",children:x}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",fe]}):"They"," will be asked for this review and you will be taken off it."," ",U?"This row goes under sent, with the review on the PR.":i.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!w,children:[d.jsx(Xe,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${fe}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function iT({artifact:i,reviewKey:a,event:r,own:s,sending:u,checking:f,onSend:h,error:y,footer:g,next:m,onAdvance:b,onBody:v,anchorRef:_}){const[x,S]=H.useState(null),[C,A]=H.useState(null),[R,$]=H.useState(i.bodyOverride!=null),[U,W]=H.useState(!1),z=i.bodyOverride!=null,ae=i.priorSends??[];H.useEffect(()=>{z&&$(!0)},[z]);const se=R&&!U?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(T=>[T.title,T.explanation]),i.comments.map(T=>{var G,ee;return[T.path,T.line,T.body,T.severity,T.status,T.drifted,(G=T.alreadyRaised)==null?void 0:G.decision,(ee=T.alreadyRaised)==null?void 0:ee.where]})]):"";return H.useEffect(()=>{if(!R||U)return;let T=!1;return S(null),A(null),ny(a,r).then(G=>{T||(S(G),A(null))}).catch(G=>{T||A(String(G))}),()=>{T=!0}},[a,r,se,R,U]),i.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:_,children:[d.jsxs("strong",{children:["✔ sent as ",Gd[i.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(i.sent.at).toLocaleString()," · ",$d(i),i.sent.auto?" · auto-sent by the daemon":"",ae.length>0?` · review ${Rb(i)} on this PR`:""]}),d.jsx("span",{className:"grow"}),i.sent.url&&d.jsxs("a",{href:i.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Xe,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[m?`next review: ${m.pr.repo}#${m.pr.number}`:"back to the queue",d.jsx(Xe,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:g})]}):d.jsxs("div",{className:"send-panel",ref:_,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:$d(i)}),d.jsxs("button",{className:"link",onClick:()=>$(!R),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[d.jsx(Xe,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),s&&Ny(i.verdict)!=="COMMENT"&&d.jsx("p",{className:"send-note",children:"This is your own PR, and GitHub takes no approve or change request from its author — so it posts as a comment."}),ae.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Rb(i)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${RN[r]}`,disabled:u||f,onClick:h,children:[d.jsx(Xe,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),u?"sending…":f?"checking what others already raised…":`${Gd[r]} on ${i.id}`," ",d.jsx(za,{children:"s"})]})}),y&&d.jsx("p",{className:"error",children:y}),R&&d.jsxs(d.Fragment,{children:[C&&d.jsx("p",{className:"error",children:C}),x?U?d.jsx(tT,{initial:x.body,onSave:T=>v(T).then(()=>W(!1)),onCancel:()=>W(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:x.body}),d.jsxs("div",{className:"body-source",children:[z?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>v(null).catch(T=>A(String((T==null?void 0:T.message)??T))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>W(!0),children:[d.jsx(Xe,{name:"edit"}),z?"keep editing it":"write it yourself"]})]})]}):!C&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:g})]})}function Mb({sends:i}){const a=i[i.length-1],r=i.length===1,s=f=>new Date(f).toLocaleDateString(),u=Gd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${i.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",i.length+1,"."]})}function lT({filed:i}){var s,u,f;const a=((s=i.review)==null?void 0:s.url)??((u=i.reply)==null?void 0:u.url)??null,r=h=>new Date(h).toLocaleDateString();return i.reason==="own-reply"&&i.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(i.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.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."]}):i.reason==="request-withdrawn"?d.jsxs("div",{children:[d.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(i.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."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=i.review)==null?void 0:f.at)??i.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.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 sT({entries:i,open:a,onToggle:r,anchorRef:s}){const u=f=>{const h=new Date(f);return Number.isNaN(h.getTime())?f:`${h.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${h.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:i.length>0?`${i.length} entr${i.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Xe,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:i.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:i.map((f,h)=>({e:f,i:h})).reverse().map(({e:f,i:h})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${h}-${f.at}`))})})]})}function rT({handoff:i,sent:a,hasDraft:r}){const s=new Date(i.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",i.to," on ",s,"."]})," ","GitHub asks them for this review now",i.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",i.note?i.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:i.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function oT({artifact:i,freshness:a,rerunning:r,onRerun:s}){const u=i.status==="running",f=(a==null?void 0:a.prState)??i.pr.state,h=f==="CLOSED"||f==="MERGED",y=i.refresh,g=a!=null&&a.changed?y:null,m=!h&&kN(i,a)?i.sent:null;if(u)return d.jsxs(d.Fragment,{children:[(i.sent?[]:i.priorSends??[]).length>0&&d.jsx("div",{className:"freshness",children:d.jsx(Mb,{sends:i.priorSends??[]})}),d.jsxs("div",{className:"freshness freshness-running",children:[d.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 b=i.filed,v=i.handoff,_=i.sent?[]:i.priorSends??[];return!h&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(Mb,{sends:_}),v&&d.jsx(rT,{handoff:v,sent:i.sent,hasDraft:i.summary!==""||i.comments.length>0}),b&&d.jsx(lT,{filed:b}),h&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.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.",!i.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&i.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:i.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function cT({reviewKey:i}){var Wt,Gn,Xn,Vn,ut;const[a,r]=H.useState(null),[s,u]=H.useState(null),[f,h]=H.useState(null),[y,g]=H.useState(null),[m,b]=H.useState(!1),[v,_]=H.useState([]),[x,S]=H.useState(!1),[C,A]=H.useState(new Set),R=F=>A(de=>new Set(de).add(F)),[$,U]=H.useState(!1),[W,z]=H.useState([]),ae=H.useRef(null),[se,T]=H.useState(new Set),[G,ee]=H.useState(new Set),ue=H.useRef(Promise.resolve()),Ee=H.useRef(0),[j,le]=H.useState(0),fe=H.useRef(new Map),[M]=wy(),[Q,pe]=H.useState(null),we=H.useRef(null),De=H.useRef(null),w=H.useRef(null),L=H.useRef(null),I=H.useRef(null),oe=H.useRef(null),[me,ve]=H.useState(!1),X=H.useRef(null),[be,Te]=H.useState(!1),[Ge,$e]=H.useState(!1),[Ce,St]=H.useState(null),[Ke,In]=H.useState(null);H.useEffect(()=>{if(!Ke)return;const F=setTimeout(()=>In(null),1800);return()=>clearTimeout(F)},[Ke]);const Je=F=>{var de,Ne;z(Y=>Y.some(ge=>ge.target===F.target&&ge.id===F.id)?Y:[...Y,F]),(de=ae.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(Ne=ae.current)==null||Ne.focus()};H.useEffect(()=>{let F=!1;return window.scrollTo({top:0}),r(null),u(null),h(null),g(null),St(null),$e(!1),S(!1),mg(i).then(de=>{if(!F)return r(de),S(de.own===!0),E0(i).then(Ne=>{F||(h(Ne),Ne.changed&&r(Ne.artifact))}).catch(Ne=>!F&&g(String(Ne.message??Ne))).then(()=>{if(!(F||de.sent||de.status==="running"||de.comments.length===0))return $e(!0),T0(i).then(Ne=>!F&&r(Ne)).catch(()=>{}).finally(()=>!F&&$e(!1))})}).catch(de=>!F&&u(String(de))),()=>{F=!0}},[i]),H.useEffect(()=>{So().then(_).catch(()=>{})},[]),H.useEffect(()=>{const F=X.current;if(!F)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${F.offsetHeight}px`);de();const Ne=new ResizeObserver(de);return Ne.observe(F),()=>{Ne.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Ln=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Hn=H.useRef(null),It=((Wt=a==null?void 0:a.raisedCheck)==null?void 0:Wt.checkingSince)!=null||Ge;H.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Ln&&!It)return;const F=setInterval(()=>{mg(i).then(de=>{var Ne;if(r(de),S(de.own===!0),de.status!=="running"){b(!1);const Y=Hn.current;Y!=null&&de.sent&&(((Ne=de.run)==null?void 0:Ne.startedAt)??"none")===Y&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),Hn.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(F)},[a==null?void 0:a.status,Ln,It,i]);const Rt=(a==null?void 0:a.sent)!=null,on=H.useMemo(()=>F_(v,i,C),[v,i,C]),yn=on.findIndex(F=>F.key===i),Yt=(yn>0?on[yn-1]:null)??null,je=(yn>=0&&yn<on.length-1?on[yn+1]:null)??null,Lt=F=>{window.location.hash=`#/r/${encodeURIComponent(F)}`},vt=()=>{je?Lt(je.key):window.location.hash="#/"},Ot=H.useMemo(()=>{if(!a)return[];const F=H_(a.diff,a.chapters);return F.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:F}]:a.chapters},[a]);H.useEffect(()=>{let F=0;const de=()=>{var dt;F=0;const ge=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ie=ge+16;let Ye=null;for(const gt of Ot){const Bt=(dt=fe.current.get(gt.id))==null?void 0:dt.getBoundingClientRect();Bt&&Bt.top<=Ie&&Bt.bottom>Ie&&(Ye={id:gt.id,stuck:Bt.top<ge-1})}pe(gt=>(gt==null?void 0:gt.id)===(Ye==null?void 0:Ye.id)&&(gt==null?void 0:gt.stuck)===(Ye==null?void 0:Ye.stuck)?gt:Ye)},Ne=()=>{F||(F=requestAnimationFrame(de))};de(),window.addEventListener("scroll",Ne,{passive:!0}),window.addEventListener("resize",Ne);const Y=new ResizeObserver(Ne);return Y.observe(document.body),()=>{cancelAnimationFrame(F),window.removeEventListener("scroll",Ne),window.removeEventListener("resize",Ne),Y.disconnect()}},[Ot]);const xn=H.useMemo(()=>{const F=q_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(Y=>pf(Y.path)&&mf(Y.patch).isNew).map(Y=>Y.path)),Ne=Y=>{const ge=F.get(Y)??0;return de.has(Y)?Math.round(ge/4):ge};return new Map(Ot.map(Y=>[Y.id,Y.files.reduce((ge,Ie)=>ge+Ne(Ie),0)]))},[a==null?void 0:a.diff,Ot]),zn=F=>{const de=xn.get(F)??0;return de>VN?de:null},An=F=>se.has(F)?zn(F)!=null:zn(F)==null,jn=F=>T(de=>{const Ne=new Set(de);return Ne.has(F)?Ne.delete(F):Ne.add(F),Ne});H.useEffect(()=>{T(new Set),ee(new Set)},[i]);const Rn=H.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(F=>[F.path,G_(F.patch)])),[a==null?void 0:a.diff]),cn=H.useMemo(()=>new Set(Object.keys(Rn).filter(F=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[F])===Rn[F]})),[Rn,a==null?void 0:a.viewed]),qt={viewed:cn,peeked:G,onToggleViewed:F=>{const de=cn.has(F)?null:Rn[F]??null;ee(Y=>{const ge=new Set(Y);return ge.delete(F),ge}),r(Y=>{if(!Y)return Y;const ge={...Y.viewed};return de===null?delete ge[F]:ge[F]=de,{...Y,viewed:ge}});const Ne=++Ee.current;ue.current=ue.current.then(()=>m0(i,F,de)).then(Y=>{Ne===Ee.current&&r(ge=>ge&&ge.id===Y.id?{...ge,viewed:Y.viewed}:ge)}).catch(Y=>u(String(Y)))},onTogglePeek:F=>ee(de=>{const Ne=new Set(de);return Ne.has(F)?Ne.delete(F):Ne.add(F),Ne})},la=F=>{const de=Ot[F];return de?(le(F),An(de.id)||jn(de.id),de):null},un=(...F)=>{for(const de of F)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},hn=F=>{var Ne;const de=la(F);de&&((Ne=fe.current.get(de.id))==null||Ne.scrollIntoView({behavior:"smooth",block:"start"}))},qe=(F,de)=>{var Y;la(F);const Ne=(Y=a==null?void 0:a.comments.find(ge=>ge.id===de))==null?void 0:Y.path;Ne&&cn.has(Ne)&&ee(ge=>new Set(ge).add(Ne)),In(de),Ry(de)},pn=x,Pt=Ny(a==null?void 0:a.verdict,pn);H.useEffect(()=>St(null),[Pt]);const Gt=()=>{!a||a.sent||be||It||(Te(!0),St(null),N0(i,Pt).then(({replyError:F,...de})=>{r(de),F&&St(`Sent — but ${F}`),R(i)}).catch(F=>St(String(F.message??F))).finally(()=>Te(!1)))};if(H.useEffect(()=>{const F=de=>{qN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Yt?Lt(Yt.key):de.key==="]"&&je?Lt(je.key):de.key==="n"?hn(Math.min(Ot.length-1,j+1)):de.key==="N"?hn(Math.max(0,j-1)):de.key==="s"&&!Rt&&Gt())};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[Yt==null?void 0:Yt.key,je==null?void 0:je.key,Ot,j,Rt,Pt,a==null?void 0:a.sent,be,It]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const k=F=>{var de;b(!0),u(null),Hn.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,ty(i,F).then(r).catch(Ne=>{u(String(Ne)),b(!1)})},te=F=>F.then(r).catch(de=>u(String(de))),ye=F=>ro(i,{status:F}).then(()=>{R(i),vt()}).catch(de=>u(String(de))),ze=(F,de,Ne)=>A0(i,{to:F,note:de,postReview:Ne}).then(({artifact:Y,noteError:ge,sendError:Ie,replyError:Ye})=>{L0(F),r(Y),U(!1),R(i);const dt=[Ie&&`the review did not post: ${Ie}`,Ye,ge&&`the note did not post: ${ge}`].filter(Boolean);dt.length>0?u(`Handed to @${F}, but ${dt.join("; and ")}`):vt()}),Qe=(F,de)=>te(g0(i,F,de)),et=F=>te(y0(i,F)),Ae=F=>te(b0(i,F)),Se=a.comments.filter(F=>!F.chapterId||!Ot.some(de=>de.id===F.chapterId)),{inline:Ue,folded:Ct,dropped:mt,held:qn,replies:sa}=xy(a),Na=a.comments.filter(F=>F.alreadyRaised&&F.status!=="dropped").length,dn=a.comments.filter(F=>F.status!=="dropped"&&F.drifted).length,wt=a.verdict?kb[a.verdict.recommendation]:"none",Kt=DN(a),tt=MN(a),vn=a.pendingChat!=null&&a.pendingChat.error==null,Ua=a.status==="running"||vn,ba=()=>te(Dd(i,{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}]})),Ta=(F,de)=>{te(Dd(i,{message:de,refs:[{target:"line",id:null,path:F.path,line:F.line,side:F.side}]}).then(Ne=>{var Y;return(Y=L.current)==null||Y.scrollIntoView({behavior:"smooth",block:"start"}),Ne}))},ra=(Gn=a.run)!=null&&Gn.trusted?"ran the code":(Xn=a.run)!=null&&Xn.withSource?"read the full source":a.run?"read the diff only":"no run yet",xa=F=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===F?` verdict-pick-on tone-${kb[F]}`:""}`,title:F==="approve"?"Approve":F==="comment"?"Comment without blocking":"Request changes",onClick:()=>te(ro(i,{verdictRecommendation:F})),children:[d.jsx(Xe,{name:IN[F]}),F.replace("_"," ")]},F)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:X,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Yt,title:Yt?`[ — ${Yt.id}: ${Yt.pr.title}`:"no more reviews this way",onClick:()=>Yt&&Lt(Yt.key),children:d.jsx(Xe,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!je,title:je?`] — ${je.id}: ${je.pr.title}`:"no more reviews this way",onClick:()=>je&&Lt(je.key),children:d.jsx(Xe,{name:"chevronRight"})})]}),yn>=0&&d.jsxs("span",{className:"faint",children:[yn+1," of ",on.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:je?`next: ${je.pr.title}`:yn>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Xe,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Rt?d.jsxs("span",{className:`chip tone-${wt}`,children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${wt}`,title:"change it, or send — both are at the foot of the page",onClick:()=>un(we,I),children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%",d.jsx(Xe,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Rt?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>k(!0),children:[d.jsx(Xe,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ra}),((Vn=a.run)==null?void 0:Vn.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(De),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(w),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var F;un(L),(F=ae.current)==null||F.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ve(!0),un(oe)},children:"history"})]}),Ot.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>hn(0),children:"changes"}),Ot.map((F,de)=>{const Ne=F.files.length>0&&F.files.every(Y=>cn.has(Y));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${An(F.id)?" rail-item-on":""}${Ne?" rail-item-done":""}${(Q==null?void 0:Q.id)===F.id?" rail-item-here":""}`,onClick:()=>hn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",F.title]}),d.jsxs("span",{className:"rail-count",title:Ne?"every file viewed":void 0,children:[Ne?"✓ ":"",F.files.length,"f"]})]}),a.comments.filter(Y=>Y.chapterId===F.id).map(Y=>d.jsxs("button",{className:`rail-comment${Y.status==="dropped"?" rail-comment-dropped":""}`,title:`${Y.path}${Y.line!=null?`:${Y.line}`:""} — ${Y.body}`,onClick:()=>qe(de,Y.id),children:[d.jsx("span",{className:`rail-dot tone-${HN(Y,wt)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Y.path.split("/").pop(),Y.line!=null?`:${Y.drifted?"~":""}${Y.line}`:""]})]},Y.id))]},F.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${Ot.length>0?" rail-lab":""}`,onClick:()=>un(we,I),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-mt.length," keeping · ",mt.length," dropped"]}),d.jsxs("div",{children:[Ue.length," inline · ",Ct.length," folded into body"]}),dn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[dn," drifted"]}),d.jsx(KN,{check:a.raisedCheck??null,raised:Na,held:qn.length,replies:sa.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(oT,{artifact:a,freshness:f,rerunning:m,onRerun:k}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.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&&d.jsx("div",{className:"error",children:s}),((ut=a.run)==null?void 0:ut.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:De,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ai,{className:"prose lead",text:a.summary||"(no summary)"}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"summary",id:null}),children:[d.jsx(Xe,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${wt}`,ref:w,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Rd(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Rd(a)}),Rd(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.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"]})]}),d.jsx(ai,{className:"prose lead",text:a.verdict.reasoning}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"verdict",id:null}),children:[d.jsx(Xe,{name:"comment"}),"discuss the verdict"]})]})}),Ot.map((F,de)=>d.jsx(QN,{chapter:F,n:de+1,diff:a.diff,comments:a.comments.filter(Ne=>Ne.chapterId===F.id),open:An(F.id),heavy:zn(F.id),onToggle:()=>jn(F.id),onUpdateComment:Qe,onDeleteComment:et,onAddComment:Ae,onDiscuss:Rt?void 0:Je,onAskAboutLine:Ta,chatBusy:vn,readOnly:Rt,flash:Ke,viewedState:qt,sticky:M,stuck:(Q==null?void 0:Q.id)===F.id&&Q.stuck,anchorRef:Ne=>{Ne?fe.current.set(F.id,Ne):fe.current.delete(F.id)}},F.id)),Se.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Se.map(F=>d.jsx(Oy,{comment:F,onUpdate:de=>Qe(F.id,de),onDelete:()=>et(F.id),onDiscuss:Rt?void 0:()=>Je({target:"comment",id:F.id}),readOnly:Rt},F.id))})]}),d.jsx(sT,{entries:a.history??[],open:me,onToggle:()=>ve(F=>!F),anchorRef:oe})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(eT,{artifact:a,reviewKey:i,refs:W,onClearRefs:()=>z([]),onDropRef:F=>z(de=>de.filter((Ne,Y)=>Y!==F)),onArtifact:r,readOnly:Rt,inputRef:ae,anchorRef:L}),d.jsxs("div",{className:"cockpit-decide",children:[!Rt&&Kt&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:Kt})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ba,disabled:vn,children:[d.jsx(Xe,{name:"comment"}),vn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Rt&&d.jsxs("div",{className:"verdict-bar",ref:we,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(xa)]}),d.jsx(iT,{artifact:a,reviewKey:i,event:Pt,own:pn,sending:be,checking:It,onSend:Gt,error:Ce,next:je,onAdvance:vt,onBody:F=>ro(i,{bodyOverride:F}).then(r),anchorRef:I,footer:d.jsxs(d.Fragment,{children:[!Rt&&d.jsx("span",{className:"faint",children:"not sending?"}),!Rt&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:je?`Settle it locally and go to ${je.id}`:"Settle it locally and go back to the queue",onClick:()=>ye("reviewed"),children:[d.jsx(Xe,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:je?`Leave it and go to ${je.id}`:"Leave it and go back to the queue",onClick:()=>ye("skipped"),children:[d.jsx(Xe,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Ua?"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:()=>U(!0),disabled:$||Ua,children:[d.jsx(Xe,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:R0(i),children:[d.jsx(Xe,{name:"download"}),"export .md"]})]})}),$&&d.jsx(aT,{artifact:a,reviewKey:i,onConfirm:ze,onCancel:()=>U(!1)})]})]})]})]})}const Db="cerber.notify.seen.v2",uT="cerber.notify.seen",Pd="cerber.notify",dT=1e4,Gs=i=>i.status==="ready",Kd=i=>{try{return localStorage.getItem(i)}catch{return null}},Zd=(i,a)=>{try{localStorage.setItem(i,a)}catch{}},fT={autoReview:!1,autoReviewRepos:{},autoReviewTeamRequests:!1};function hT(i,a){return i?!i.enabled||!i.pollEnabled?fT:{autoReview:i.autoReview,autoReviewRepos:i.autoReviewRepos??{},autoReviewTeamRequests:i.autoReviewTeamRequests??!0}:a}const My=(i,a)=>pT(i,Xb(a,{...i.pr,requestedViaTeam:ey(i)}));function pT(i,a){return i.announceable===!1||i.status==="running"?!1:i.status==="awaiting"?!a:!0}const Dy=":draft",co=i=>`${i.key}${Dy}`,Ly=i=>Gs(i)?co(i):i.key;function mT(i,a,r){const s=new Set(a);return Fs(i).filter(u=>My(u,r)&&!s.has(Ly(u)))}function gT(i,a,r=[]){const s=new Set(r),u=new Set(Fs(i).map(h=>h.key)),f=[];for(const h of i){if(u.has(h.key)&&!My(h,a)){for(const y of[h.key,co(h)])s.has(y)&&f.push(y);continue}f.push(h.key),(Gs(h)||!u.has(h.key)||s.has(co(h)))&&f.push(co(h))}return f}const kd=i=>`${i.pr.repo}#${i.pr.number}`,bT={approve:"approves",comment:"comments",request_changes:"requests changes"};function yT(i){const a=i.verdict?bT[i.verdict.recommendation]:"drafted",r=i.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function vT(i){if(i.length===0)return null;const a=`cerber:${i.map(Ly).sort().join("|")}`;if(i.length===1){const u=i[0];return{title:Gs(u)?`${kd(u)} draft ready`:`${kd(u)} awaits your review`,body:Gs(u)?`${yT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=i.slice(0,3).map(kd),s=i.length-r.length;return{title:i.every(Gs)?`${i.length} drafts ready`:`${i.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const ET=new Set(["127.0.0.1","localhost","::1","[::1]"]);function _T(i,a=window.location.hostname){return!(i!=null&&i.enabled)||!i.notify?!1:ET.has(a)}function Gl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Kd(Pd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function ST(){const i=Gl();if(i==="unsupported"||i==="blocked")return i;if(i==="on")return Zd(Pd,"off"),Gl();if(Zd(Pd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Gl()}function wT(i){const a=new Notification(i.title,{body:i.body,tag:i.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=i.key?`#/r/${encodeURIComponent(i.key)}`:"#/",a.close()}}function NT(i,a){const r=i??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(f=>typeof f=="string");return i?u:u.flatMap(f=>[f,`${f}${Dy}`])}function TT(){const i=H.useRef(null),a=H.useRef({autoReview:!0,autoReviewRepos:{},autoReviewTeamRequests:!0}),[r,s]=H.useState(!1);return H.useEffect(()=>{let u=!0;i.current=NT(Kd(Db),Kd(uT));const f=()=>Promise.all([So(),nf().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=_T(g);s(m),a.current=hT(g,a.current);const b=i.current;if(i.current=gT(y,a.current,b??[]),Zd(Db,JSON.stringify(i.current)),!b||Gl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const v=vT(mT(y,b,a.current));v&&wT(v)}).catch(()=>{});f();const h=setInterval(f,dT);return()=>{u=!1,clearInterval(h)}},[]),r}function zy(){const[i,a]=H.useState(Gl);return H.useEffect(()=>{const r=()=>a(Gl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[i,()=>void ST().then(a)]}const uo=i=>{window.location.hash=`#/r/${encodeURIComponent(i)}`};function xT(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function AT({daemon:i}){return i!=null&&i.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[i.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),i.repos.length>0?i.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(i.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:i.autoReview?"on":"off"}),o0(i.autoReview,i.autoReviewRepos??{}),i.autoReviewTeamRequests===!1&&" · team requests on click"]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:i.autoSend==="on"?"on":"shadow"})," ≥",i.autoSendThreshold,"%",i.autoSend==="on"?` · ${i.autoSent} sent`:` · ${i.autoSendCandidates} candidate${i.autoSendCandidates===1?"":"s"}`]}),i.trustedRuns&&d.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:[d.jsx(Xe,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),i.lastPollError?d.jsx("span",{className:"danger",title:i.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:i.polling?"polling now…":[i.lastSummary?`last: ${i.lastSummary}`:null,i.nextPollAt?`next ${new Date(i.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:i,label:a,tip:r}){return d.jsx("span",{className:i,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function RT({r:i,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=l0(i),h=X_(i),y=u?n0(i,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${i.pr.owner}/${i.pr.repo}#${i.pr.number}`,children:[i.pr.repo,"#",i.pr.number]}),d.jsx("span",{className:"col-author",title:i.pr.author,children:i.pr.author}),d.jsx("span",{className:"col-title",title:i.pr.title,children:i.pr.title}),i.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),h&&d.jsx("span",{className:"tag tag-done",children:h}),d.jsx("span",{className:"col-comments",children:s0(i)}),d.jsx("span",{className:"col-size",children:i.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",title:i.status==="awaiting"?"When the PR last changed on GitHub":"When this review last changed",children:Jb(Md(i))})]})}function Lb({autoFocus:i}){const[a,r]=H.useState(""),[s,u]=H.useState(!1),[f,h]=H.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),h(null),v0(m).then(b=>uo(b.key)).catch(b=>{h(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Xe,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:i,disabled:s,onChange:g=>{r(g.target.value),f&&h(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function kT({text:i}){const a=H.useRef(null),[r,s]=H.useState(!1);return H.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const h=new ResizeObserver(f);return h.observe(u),()=>h.disconnect()},[i]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ai,{className:"prose",text:i})})}function OT(){var Ee;const[i,a]=H.useState(null),[r,s]=H.useState(null),[u,f]=H.useState(null),[h,y]=H.useState(new Set),[g,m]=H.useState("inbox"),[b,v]=H.useState(null),_=H.useRef(!1),x=H.useRef(null),S=H.useRef(!0);H.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const C=()=>{So().then(j=>S.current&&a(j)).catch(j=>S.current&&f(String(j))),nf().then(j=>S.current&&s(j)).catch(()=>{})};H.useEffect(()=>{C();const j=setInterval(C,1e4);return()=>clearInterval(j)},[]);const A=i??[],R=H.useMemo(()=>K_(A,r),[A,r]),$=R.requests,U=Z_(g,R),W=R[U];H.useEffect(()=>{U!==g&&m(U)},[U,g]);const z=W.find(j=>j.key===b)??W[0]??null,ae=j=>{y(le=>new Set(le).add(j)),ty(j).then(()=>C()).catch(le=>S.current&&f(String(le))).finally(()=>{S.current&&y(le=>{const fe=new Set(le);return fe.delete(j),fe})})};if(H.useEffect(()=>{const j=le=>{if(xT(le.target)||le.metaKey||le.ctrlKey||le.altKey)return;const fe=W.findIndex(Q=>Q.key===(z==null?void 0:z.key)),M=Q=>{const pe=W[Math.min(W.length-1,Math.max(0,fe+Q))];pe&&(_.current=!0,v(pe.key))};le.key==="j"||le.key==="ArrowDown"?(le.preventDefault(),M(1)):le.key==="k"||le.key==="ArrowUp"?(le.preventDefault(),M(-1)):le.key==="Enter"&&z?uo(z.key):le.key==="r"&&z&&z.status!=="running"&&z.status!=="sent"&&ae(z.key)};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[W,z==null?void 0:z.key]),H.useEffect(()=>{var j;_.current&&(_.current=!1,(j=document.querySelector(".row-on"))==null||j.scrollIntoView({block:"nearest"}))},[z==null?void 0:z.key]),H.useEffect(()=>{const j=x.current;if(!j)return;const le=()=>document.documentElement.style.setProperty("--strip-h",`${j.offsetHeight}px`);le();const fe=new ResizeObserver(le);return fe.observe(j),()=>{fe.disconnect(),document.documentElement.style.removeProperty("--strip-h")}},[z!=null]),u&&!i)return d.jsx("p",{className:"error",children:u});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const se=W.reduce((j,le)=>j+(le.costUsd??0),0),T=z?c0(z,r):null,G=z?h.has(z.key):!1,ee=Cd.filter(j=>R[j].length>0),ue=j=>d.jsxs("button",{className:`tab${U===j?" tab-on":""}${Cd.includes(j)?" tab-filed":""}${j==="requests"?" tab-requests":""}`,title:zu[j].title,onClick:()=>m(j),children:[zu[j].label," ",d.jsx("span",{className:"tab-count",children:R[j].length})]},j);return d.jsxs(d.Fragment,{children:[d.jsx(AT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),A.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Lb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[hg.map(ue),ee.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),ee.map(ue),d.jsx("span",{className:"grow"}),d.jsx(Lb,{}),se>0&&d.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:["≈$",se.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(Ji,{className:"col-slug",label:"repo#pr",tip:"Repository and pull request number"}),d.jsx(Ji,{className:"col-author",label:"author",tip:"Who opened the pull request"}),d.jsx(Ji,{className:"col-title",label:"title",tip:"Pull request title"}),d.jsx(Ji,{className:"col-comments",label:"comments",tip:"Comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed — or, on a PR nobody has drafted yet, when the PR itself last changed on GitHub"})]}),W.length===0?d.jsx("div",{className:"empty-tab",children:U==="inbox"&&$.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:a0($)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Xe,{name:"arrowRight"}),"show ",$.length===1?"it":`all ${$.length}`]})]}):d.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${zu[U].label} right now.`})}):W.map((j,le)=>d.jsxs(H.Fragment,{children:[hg.includes(U)&&$_(W,le)&&d.jsx("div",{className:"group-head",role:"heading","aria-level":2,title:"PRs you opened. Never drafted on their own — press r for a self-review. Send posts it as a comment.",children:"your PRs"}),d.jsx(RT,{r:j,selected:j.key===(z==null?void 0:z.key),onSelect:()=>v(j.key),onOpen:()=>uo(j.key),awaiting:P_(j,$)?V_(j,r):null})]},j.key)),z&&T&&d.jsxs("div",{className:"cursor-strip",ref:x,children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[z.pr.owner,"/",z.pr.repo,"#",z.pr.number,z.pr.headRefName&&z.pr.baseRefName?` · ${z.pr.headRefName} → ${z.pr.baseRefName}`:""]}),d.jsx(kT,{text:T.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[T.meta.join(" · "),((Ee=z.sent)==null?void 0:Ee.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:z.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>uo(z.key),children:[d.jsx(Xe,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:z.status==="sent"||z.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>ro(z.key,{status:"skipped"}).then(C).catch(j=>f(String(j))),children:[d.jsx(Xe,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:G||z.status==="running",title:z.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>ae(z.key),children:[d.jsx(Xe,{name:"rerun"}),G?"starting…":z.status==="awaiting"||z.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const vo="cerber.theme";function jy(i){return i==="light"||i==="dark"?i:"system"}function CT(){try{return jy(localStorage.getItem(vo))}catch{return"system"}}function Uy(i,a=document.documentElement){i==="system"?delete a.dataset.theme:a.dataset.theme=i}function MT(i,a){try{const r=a??localStorage;i==="system"?r.removeItem(vo):r.setItem(vo,i)}catch{}}function DT(){By(Uy)}function By(i){const a=r=>{(r.key===vo||r.key===null)&&i(jy(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function LT(){const[i,a]=H.useState(CT);return H.useEffect(()=>By(a),[]),[i,s=>{MT(s),Uy(s),a(s)}]}const zT=[{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"}],zb=1440,jb=i=>i instanceof Error?i.message:String(i),jT={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"},UT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],BT=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}],IT=/^[\w.-]+\/[\w.-]+$/,Od=i=>i?"drafts automatically":"waits for a click";function HT({daemon:i,busy:a,save:r}){const[s,u]=H.useState(""),[f,h]=H.useState(!i.autoReview),[y,g]=H.useState([]);H.useEffect(()=>{So().then(S=>g([...new Set(S.map(C=>`${C.pr.owner}/${C.pr.repo}`))].sort())).catch(()=>{})},[]),H.useEffect(()=>h(!i.autoReview),[i.autoReview]);const m=Object.entries(i.autoReviewRepos).sort(([S],[C])=>S.localeCompare(C)),b=s.trim(),v=IT.test(b),_=new Set(m.map(([S])=>S.toLowerCase())),x=()=>{a||!v||(r(b,f),u(""))};return d.jsxs(d.Fragment,{children:[d.jsx("h2",{children:"Per-repo exceptions"}),d.jsx("p",{className:"muted",children:"Every repo not listed here follows the switch above. List a busy repo to keep it to the click, or, with the switch off, one repo you still want drafted."}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:s,"aria-label":"Repository",placeholder:"owner/repo",list:"auto-review-repos",disabled:a,onChange:S=>u(S.target.value),onKeyDown:S=>{S.key==="Enter"&&x()}}),d.jsx("datalist",{id:"auto-review-repos",children:y.filter(S=>!_.has(S.toLowerCase())).map(S=>d.jsx("option",{value:S},S))}),d.jsxs("select",{"aria-label":"What the poll does for this repo",value:f?"auto":"click",disabled:a,onChange:S=>h(S.target.value==="auto"),children:[d.jsx("option",{value:"click",children:Od(!1)}),d.jsx("option",{value:"auto",children:Od(!0)})]}),d.jsx("button",{className:"btn",disabled:a||!v,onClick:x,children:"add"})]}),m.length===0?d.jsxs("p",{className:"muted",children:["No exceptions — every repo ",i.autoReview?"is drafted automatically":"waits for a click","."]}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.map(([S,C])=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:S})}),d.jsxs("td",{className:"muted",children:[Od(C),C===i.autoReview&&" — same as the default, so it changes nothing"]}),d.jsxs("td",{className:"trust-actions",children:[d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,!C),children:C?"wait for a click":"draft automatically"})," ",d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(S,null),children:"remove"})]})]},S))})})]})}function qT({daemonAnnounces:i}){const[a,r]=zy(),[s,u]=LT(),[f,h]=wy(),[y,g]=Ay(),[m,b]=H.useState(null),[v,_]=H.useState(""),[x,S]=H.useState(null),[C,A]=H.useState(!1),[R,$]=H.useState(""),[U,W]=H.useState(!1);H.useEffect(()=>{k0().then(b).catch(T=>S(jb(T))),nf().then(T=>W(T.enabled&&T.intervalFixed)).catch(()=>{})},[]),H.useEffect(()=>{m&&$(String(m.daemon.intervalMinutes))},[m]);const z=T=>{A(!0),S(null),T.then(b).catch(G=>S(jb(G))).finally(()=>A(!1))};if(x&&!m)return d.jsx("p",{className:"error",children:x});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const ae=i&&m.daemon.poll&&m.daemon.notify,se=()=>{const T=Number(R);!Number.isInteger(T)||T<1||T>zb?$(String(m.daemon.intervalMinutes)):T!==m.daemon.intervalMinutes&&z(js({intervalMinutes:T}))};return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.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."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:C,onChange:T=>z(js({poll:T.target.checked}))})," ","poll GitHub for PRs awaiting my review"]}),d.jsxs("label",{className:"inbox-toggle",children:["poll every",d.jsx("input",{type:"number",className:"interval-input",min:1,max:zb,step:1,value:R,disabled:C||!m.daemon.poll||U,onChange:T=>$(T.target.value),onBlur:se,onKeyDown:T=>{T.key==="Enter"&&se()}}),"minutes",U&&d.jsx("span",{className:"muted",children:" (set by --interval for this run)"})]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:C||!m.daemon.poll,onChange:T=>z(js({autoReview:T.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReviewTeamRequests,disabled:C||!m.daemon.poll,onChange:T=>z(js({autoReviewTeamRequests:T.target.checked}))})," ","draft PRs requested only from a team you are on (off: they wait for a click; a request naming you is drafted either way)"]}),m.daemon.poll&&d.jsx(HT,{daemon:m.daemon,busy:C,save:(T,G)=>z(O0(T,G))}),d.jsxs("p",{className:"muted",children:["Your own open PRs come in too, under ",d.jsx("b",{children:"your PRs"}),", for a self-review when you ask —",m.daemon.ownPrMaxAgeDays?` except ones idle for more than ${m.daemon.ownPrMaxAgeDays} days`:" all of them, however long idle"," ","(",d.jsx("code",{children:"ownPrMaxAgeDays"}),"; 0 turns the cut off)."]}),d.jsxs("p",{className:"muted",children:["Concurrency, a repo filter and that age cut live in ",d.jsx("code",{children:m.path})," ","under ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.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.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:C||!m.daemon.poll,onChange:T=>z(js({notify:T.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.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 ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.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'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||ae,onChange:r})," ",ae?"let this browser announce them instead":jT[a]]}),d.jsx("p",{className:"muted",children:ae?d.jsx(d.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."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.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."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:UT.map(({choice:T,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===T,onChange:()=>u(T)})," ",G]},T))}),d.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 ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:T=>h(T.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.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."}),BT.map(({choice:T,label:G})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===T,onChange:()=>g(T)})," ",G]},T)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.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."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.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".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:C,onChange:T=>_(T.target.value),onKeyDown:T=>{T.key==="Enter"&&!C&&v.trim()&&(z(Uu(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:C||!v.trim(),onClick:()=>{z(Uu(v.trim())),_("")},children:"trust"})]}),x&&d.jsx("p",{className:"error",children:x}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(T=>d.jsxs("tr",{className:T.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:T.rule})}),d.jsx("td",{className:"muted",children:T.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:C,onClick:()=>z(Uu(T.rule,!0)),children:"remove"})})]},T.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:zT.map(T=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:T.rule})}),d.jsx("td",{className:"muted",children:T.meaning})]},T.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.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 ",d.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 ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Ub(){const i=window.location.hash,a=i.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:i==="#/settings"?{view:"settings"}:{view:"queue"}}const Bb={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."},Ib="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 GT({daemonAnnounces:i}){const[a,r]=zy();return i?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Ib,"aria-label":Ib,children:d.jsx(Xe,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Bb[a],"aria-label":Bb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Xe,{name:a==="on"?"bell":"bellOff",size:15})})}function $T(){const[i,a]=H.useState(Ub()),r=TT();return H.useEffect(()=>{const s=()=>a(Ub());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),i.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(cT,{reviewKey:i.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(IS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),i.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(GT,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Xe,{name:"settings",size:15})})]})}),i.view==="queue"?d.jsx(OT,{}):d.jsx(qT,{daemonAnnounces:r})]})}DT();WE.createRoot(document.getElementById("root")).render(d.jsx(PE.StrictMode,{children:d.jsx($T,{})}));export{bN as _,YT as c,Hb as g,dy as p};