@shiyuphan/follow-me 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/src/cli.js +181 -42
- package/dist/src/comments.js +215 -9
- package/dist/src/coverage.js +163 -25
- package/dist/src/host.js +23 -0
- package/dist/src/plan.js +128 -6
- package/dist/src/prompt.js +55 -2
- package/dist/src/refs.js +239 -0
- package/dist/src/server.js +65 -3
- package/dist/src/session.js +1 -0
- package/dist/ui/dist/assets/{abnfDiagram-WEYOIA3C-cHEJvcBn.js → abnfDiagram-WEYOIA3C-DztIEwNE.js} +1 -1
- package/dist/ui/dist/assets/{arc-xolFyc0v.js → arc-DUYh-EqZ.js} +1 -1
- package/dist/ui/dist/assets/{architecture-WOLXFQ4H-B3hvvNV2.js → architecture-WOLXFQ4H-BQYTB92_.js} +1 -1
- package/dist/ui/dist/assets/{architectureDiagram-ZHVYKT53-BNTMbPJW.js → architectureDiagram-ZHVYKT53-Dl7095A5.js} +1 -1
- package/dist/ui/dist/assets/{blockDiagram-RJAE7QA3-NYY6qeuY.js → blockDiagram-RJAE7QA3-QDZ5kE1J.js} +1 -1
- package/dist/ui/dist/assets/{c4Diagram-XDPPPE54-B_bNpXHQ.js → c4Diagram-XDPPPE54-CKJZ1xOw.js} +1 -1
- package/dist/ui/dist/assets/channel-DF08Hd8f.js +1 -0
- package/dist/ui/dist/assets/{chunk-2E7WHVMD-BTet9STn.js → chunk-2E7WHVMD-BXBjaqd1.js} +1 -1
- package/dist/ui/dist/assets/{chunk-4EMNKR2T-qoQt4Fpx.js → chunk-4EMNKR2T-DPzfVuke.js} +1 -1
- package/dist/ui/dist/assets/{chunk-55XCU76K-C3I6EB-H.js → chunk-55XCU76K-B33Sj3w8.js} +1 -1
- package/dist/ui/dist/assets/{chunk-7S6XSTFO-CL-9s_8p.js → chunk-7S6XSTFO-B_u7dS03.js} +1 -1
- package/dist/ui/dist/assets/{chunk-AQDTSKZB-DHoGnGyP.js → chunk-AQDTSKZB-B4EzH5gx.js} +1 -1
- package/dist/ui/dist/assets/{chunk-DSNLSHJZ-Bk8WO5JF.js → chunk-DSNLSHJZ-CfWeHABr.js} +1 -1
- package/dist/ui/dist/assets/{chunk-HAGFOTED-CwAC85lg.js → chunk-HAGFOTED-B8G8PjLZ.js} +1 -1
- package/dist/ui/dist/assets/{chunk-HNE4Q36P-CIllywWr.js → chunk-HNE4Q36P-BA-PqoTF.js} +1 -1
- package/dist/ui/dist/assets/{chunk-NQOKRVIF-DDlpyYiH.js → chunk-NQOKRVIF-JvhuFcnR.js} +1 -1
- package/dist/ui/dist/assets/{chunk-UHW7PFBP-Cxdndcon.js → chunk-UHW7PFBP-BrfL5CGY.js} +1 -1
- package/dist/ui/dist/assets/{chunk-VQ5W62QI-CL9d9_iJ.js → chunk-VQ5W62QI-dBJqgdDy.js} +1 -1
- package/dist/ui/dist/assets/{chunk-WQQL4CDK-C4kzN8QU.js → chunk-WQQL4CDK-dfqd3k_P.js} +1 -1
- package/dist/ui/dist/assets/{chunk-XXDRQBXY-Cv_2FSiY.js → chunk-XXDRQBXY-kViWdB9M.js} +1 -1
- package/dist/ui/dist/assets/{chunk-YZO67HFG-oHiuYaCJ.js → chunk-YZO67HFG-ukfs4wT3.js} +1 -1
- package/dist/ui/dist/assets/{chunk-ZAUX2LTX-Cy_8d0XT.js → chunk-ZAUX2LTX-BxZHki81.js} +1 -1
- package/dist/ui/dist/assets/{chunk-ZCHMQSOR-piIpIcQi.js → chunk-ZCHMQSOR-PjluhR_E.js} +1 -1
- package/dist/ui/dist/assets/{classDiagram-v2-4MYWR3UA-DNKRIujO.js → classDiagram-v2-4MYWR3UA-Ct89LJec.js} +1 -1
- package/dist/ui/dist/assets/{cose-bilkent-JH36ORCC-BWKTGCHY.js → cose-bilkent-JH36ORCC-BnQceGmB.js} +1 -1
- package/dist/ui/dist/assets/{cynefin-EF2NZ3EQ-yx7KKkAk.js → cynefin-EF2NZ3EQ-D6WkCVE8.js} +1 -1
- package/dist/ui/dist/assets/{cynefinDiagram-WF24UDRP-BTnZ7QVL.js → cynefinDiagram-WF24UDRP-dn6DUPAb.js} +1 -1
- package/dist/ui/dist/assets/{dagre-NK4GIZVX-CPh5Zn5I.js → dagre-NK4GIZVX-BtZSlLk7.js} +1 -1
- package/dist/ui/dist/assets/{diagram-CBK3MWTC-pI6NFdrD.js → diagram-CBK3MWTC-Ds4_tv6X.js} +1 -1
- package/dist/ui/dist/assets/{diagram-I5XIIV2D-DUIfARoS.js → diagram-I5XIIV2D-DcoVkg45.js} +1 -1
- package/dist/ui/dist/assets/{diagram-ODIL2UCW-lafSPvAw.js → diagram-ODIL2UCW-T47FAA3k.js} +1 -1
- package/dist/ui/dist/assets/{diagram-PFBEJUXE-u1lZas3a.js → diagram-PFBEJUXE-CRZcaVKP.js} +1 -1
- package/dist/ui/dist/assets/{diagram-RJA3I4VV-mc0GLMHo.js → diagram-RJA3I4VV-D6KXeUPg.js} +1 -1
- package/dist/ui/dist/assets/{diagram-TYUNFSNR-1NRbBrZW.js → diagram-TYUNFSNR-BHEIVyNN.js} +1 -1
- package/dist/ui/dist/assets/{dist-CHZ9mrl_.js → dist-DLlKIWBp.js} +1 -1
- package/dist/ui/dist/assets/{ebnfDiagram-V4P3TTPT-DdStjTDc.js → ebnfDiagram-V4P3TTPT-nUDvYRBV.js} +1 -1
- package/dist/ui/dist/assets/{elk-QONTBCTQ-BzRoFO45.js → elk-QONTBCTQ-D21BcRzc.js} +1 -1
- package/dist/ui/dist/assets/{erDiagram-KYQIGQAA-DlMkgQxj.js → erDiagram-KYQIGQAA-CTpHuftU.js} +1 -1
- package/dist/ui/dist/assets/{eventmodeling-K75KTNOO-BRYIOrod.js → eventmodeling-K75KTNOO-B6JaKuDY.js} +1 -1
- package/dist/ui/dist/assets/flowDiagram-IUGLLWBU-BTeOUR-p.js +1 -0
- package/dist/ui/dist/assets/{ganttDiagram-R7GPNTJY-D8fQZ7Ah.js → ganttDiagram-R7GPNTJY-D2-pMcnC.js} +1 -1
- package/dist/ui/dist/assets/{gitGraph-VSP46ZUC-C7ZydyWX.js → gitGraph-VSP46ZUC-B2yxwhEo.js} +1 -1
- package/dist/ui/dist/assets/{gitGraphDiagram-PDYL7XHY-DCItam0v.js → gitGraphDiagram-PDYL7XHY-DnrhBMH1.js} +1 -1
- package/dist/ui/dist/assets/index-D74Skifa.css +1 -0
- package/dist/ui/dist/assets/index-Dnte9tPd.js +136 -0
- package/dist/ui/dist/assets/{info-OHQRW6UA-C3KneBKT.js → info-OHQRW6UA-D8oh6gvs.js} +1 -1
- package/dist/ui/dist/assets/{infoDiagram-MVDRKAX5-6wK09D32.js → infoDiagram-MVDRKAX5-BLSZjjgB.js} +1 -1
- package/dist/ui/dist/assets/{ishikawaDiagram-HPEHV2GE-DTP5C8VX.js → ishikawaDiagram-HPEHV2GE-BXiznLSn.js} +1 -1
- package/dist/ui/dist/assets/{journeyDiagram-BOSHW7O7-B--UIMtq.js → journeyDiagram-BOSHW7O7-BSYmVcO_.js} +1 -1
- package/dist/ui/dist/assets/{kanban-definition-FNSA4HC5-Ku4N9QGt.js → kanban-definition-FNSA4HC5-COthkkzK.js} +1 -1
- package/dist/ui/dist/assets/{line-C4-H5h1-.js → line-6ND8OaOL.js} +1 -1
- package/dist/ui/dist/assets/{linear-DhAID3hm.js → linear-DbWEPFJX.js} +1 -1
- package/dist/ui/dist/assets/{mermaid-parser.core-CMPNc-u6.js → mermaid-parser.core-Btsk294z.js} +3 -3
- package/dist/ui/dist/assets/{mermaid.core-Nd_xOg2y.js → mermaid.core-B4llDSFO.js} +4 -4
- package/dist/ui/dist/assets/{mindmap-definition-6OY57UG3-BlVsym5h.js → mindmap-definition-6OY57UG3-hv2PfX-x.js} +1 -1
- package/dist/ui/dist/assets/{packet-JDAUHWVQ-rsk7SM7S.js → packet-JDAUHWVQ-Dr4vBgjt.js} +1 -1
- package/dist/ui/dist/assets/{pegDiagram-ECIUJNBX-C0L20M8z.js → pegDiagram-ECIUJNBX-DvlFov3N.js} +1 -1
- package/dist/ui/dist/assets/{pie-XZMESJXO-B23-iZSN.js → pie-XZMESJXO-C9QsqC4n.js} +1 -1
- package/dist/ui/dist/assets/{pieDiagram-GNMPY74T-BqFhe4Oh.js → pieDiagram-GNMPY74T-CrrHOj67.js} +1 -1
- package/dist/ui/dist/assets/{prism-core-DYsiqJeR.js → prism-core-Cc8H7LPG.js} +1 -1
- package/dist/ui/dist/assets/{quadrantDiagram-D57K4MC3-BKP75B-m.js → quadrantDiagram-D57K4MC3-DQ7J6-ti.js} +1 -1
- package/dist/ui/dist/assets/{radar-ABXABTNO-BrEk2mQ7.js → radar-ABXABTNO-BBBPaujh.js} +1 -1
- package/dist/ui/dist/assets/{railroad-I3PHUGI6-wWO4Eapc.js → railroad-I3PHUGI6-C-P6Igaz.js} +1 -1
- package/dist/ui/dist/assets/{railroad-abnf-LNEFI6M7-DfY-IPvE.js → railroad-abnf-LNEFI6M7-CAkorRLs.js} +1 -1
- package/dist/ui/dist/assets/{railroad-ebnf-DWYD2UWJ-19wedWGk.js → railroad-ebnf-DWYD2UWJ-D8Hz6gCf.js} +1 -1
- package/dist/ui/dist/assets/{railroad-peg-JR7BVNR7-9vIslnoJ.js → railroad-peg-JR7BVNR7-D-XNMkOs.js} +1 -1
- package/dist/ui/dist/assets/{railroadDiagram-Y72NRBL7-DVnmXs8w.js → railroadDiagram-Y72NRBL7-DE9LwxJQ.js} +1 -1
- package/dist/ui/dist/assets/{requirementDiagram-EQYSW5RA-BEoMdlzR.js → requirementDiagram-EQYSW5RA-FrKFY6NJ.js} +1 -1
- package/dist/ui/dist/assets/{sankeyDiagram-SY24JHO5-D7Tn2Gbs.js → sankeyDiagram-SY24JHO5-BDxI6RDX.js} +1 -1
- package/dist/ui/dist/assets/{sequenceDiagram-BLEHNHQU-CyjUDBaQ.js → sequenceDiagram-BLEHNHQU-pV1XcKX7.js} +1 -1
- package/dist/ui/dist/assets/{src-BiC9XNcI.js → src-snNJTXXq.js} +1 -1
- package/dist/ui/dist/assets/{stateDiagram-v2-A6IESKWZ-CMp1VCO9.js → stateDiagram-v2-A6IESKWZ-BSc_5aAf.js} +1 -1
- package/dist/ui/dist/assets/{swimlanes-B3ENRKFQ-KEciLd6r.js → swimlanes-B3ENRKFQ-DC6qUXLh.js} +1 -1
- package/dist/ui/dist/assets/swimlanesDiagram-AYQRV4AK-F1HykV3o.js +8 -0
- package/dist/ui/dist/assets/{timeline-definition-JXYKGLGB-C8YQtv7M.js → timeline-definition-JXYKGLGB-C8L0Dxtu.js} +1 -1
- package/dist/ui/dist/assets/{treeView-D4JQ5SDB-DgAzPaOO.js → treeView-D4JQ5SDB-DDyZIG5T.js} +1 -1
- package/dist/ui/dist/assets/{treemap-SAJKECNS-eCRqZMYc.js → treemap-SAJKECNS-CUaLgge0.js} +1 -1
- package/dist/ui/dist/assets/{usecaseDiagram-WPOLBNNX-Dirryw9G.js → usecaseDiagram-WPOLBNNX-BHRBd5pV.js} +1 -1
- package/dist/ui/dist/assets/{vennDiagram-Q3Y3IDCW-BjxQbAUx.js → vennDiagram-Q3Y3IDCW-Du4iwwkh.js} +1 -1
- package/dist/ui/dist/assets/{wardley-7MLQ67FV-CqHX5RUz.js → wardley-7MLQ67FV-DUgENI0s.js} +1 -1
- package/dist/ui/dist/assets/{wardleyDiagram-IVAIDKWA-Ds1HoEUY.js → wardleyDiagram-IVAIDKWA-B86zOdke.js} +1 -1
- package/dist/ui/dist/assets/{xychartDiagram-4URNHDU4-kodzDb12.js → xychartDiagram-4URNHDU4-twq9irqO.js} +1 -1
- package/dist/ui/dist/index.html +2 -2
- package/package.json +1 -1
- package/skills/follow-me/SKILL.md +5 -3
- package/dist/ui/dist/assets/channel-DPDY0XJP.js +0 -1
- package/dist/ui/dist/assets/flowDiagram-IUGLLWBU-C1IBh_GZ.js +0 -1
- package/dist/ui/dist/assets/index-8BehwQ7E.js +0 -134
- package/dist/ui/dist/assets/index-mC2OW2Av.css +0 -1
- package/dist/ui/dist/assets/swimlanesDiagram-AYQRV4AK-DzestpDE.js +0 -8
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-B4llDSFO.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-snNJTXXq.js","assets/chunk-DSNLSHJZ-CfWeHABr.js","assets/chunk-7S6XSTFO-B_u7dS03.js","assets/dist-DLlKIWBp.js","assets/chunk-YZO67HFG-ukfs4wT3.js","assets/chunk-AQDTSKZB-B4EzH5gx.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/chunk-UHW7PFBP-BrfL5CGY.js","assets/chunk-HAGFOTED-B8G8PjLZ.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ZAUX2LTX-BxZHki81.js","assets/chunk-WQQL4CDK-dfqd3k_P.js","assets/line-6ND8OaOL.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-HNE4Q36P-BA-PqoTF.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=M(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var re=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&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ie(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,re)}catch(e){re(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ae(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ie(ae.bind(null,e))}var oe={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ae,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ie,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ee(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ee(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function ee(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ee(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(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 c(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 l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),M=Symbol.for(`react.consumer`),N=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),se=Symbol.for(`react.activity`),P=Symbol.for(`react.legacy_hidden`),ce=Symbol.for(`react.memo_cache_sentinel`),le=Symbol.for(`react.view_transition`),ue=Symbol.for(`react.recoverable`),de=Symbol.iterator;function fe(e){return typeof e!=`object`||!e?null:(e=de&&e[de]||e[`@@iterator`],typeof e==`function`?e:null)}var pe=Symbol.for(`react.client.reference`);function me(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case te:return`Profiler`;case j:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case se:return`Activity`;case le:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case N:return e.displayName||`Context`;case M:return(e._context.displayName||`Context`)+`.Consumer`;case ne:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?me(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var he=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},_e=[],ve=-1;function ye(e){return{current:e}}function be(e){0>ve||(e.current=_e[ve],_e[ve]=null,ve--)}function xe(e,t){ve++,_e[ve]=e.current,e.current=t}var Se=ye(null),Ce=ye(null),we=ye(null),Te=ye(null);function Ee(e,t){switch(xe(we,t),xe(Ce,e),xe(Se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}be(Se),xe(Se,e)}function De(){be(Se),be(Ce),be(we)}function Oe(e){var t=e.memoizedState;t!==null&&(lh._currentValue=t.memoizedState,xe(Te,e)),t=Se.current;var n=hp(t,e.type);t!==n&&(xe(Ce,e),xe(Se,n))}function ke(e){Ce.current===e&&(be(Se),be(Ce)),Te.current===e&&(be(Te),lh._currentValue=ge)}var Ae,je;function Me(e){if(Ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||``,je=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+Ae+e+je}var Ne=!1;function Pe(e,t){if(!e||Ne)return``;Ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ne=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Me(n):``}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me(`Lazy`);case 13:return e.child!==t&&t!==null?Me(`Suspense Fallback`):Me(`Suspense`);case 19:return Me(`SuspenseList`);case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return Me(`Activity`);case 30:return Me(`ViewTransition`);default:return``}}function Ie(e){try{var t=``,n=null;do t+=Fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var Le=Object.prototype.hasOwnProperty,Re=t.unstable_scheduleCallback,ze=t.unstable_cancelCallback,Be=t.unstable_shouldYield,Ve=t.unstable_requestPaint,He=t.unstable_now,Ue=t.unstable_getCurrentPriorityLevel,We=t.unstable_ImmediatePriority,Ge=t.unstable_UserBlockingPriority,Ke=t.unstable_NormalPriority,qe=t.unstable_LowPriority,Je=t.unstable_IdlePriority,Ye=t.log,Xe=t.unstable_setDisableYieldValue,Ze=null,Qe=null;function $e(e){if(typeof Ye==`function`&&Xe(e),Qe&&typeof Qe.setStrictMode==`function`)try{Qe.setStrictMode(Ze,e)}catch{}}var et=Math.clz32?Math.clz32:rt,tt=Math.log,nt=Math.LN2;function rt(e){return e>>>=0,e===0?32:31-(tt(e)/nt|0)|0}var it=256,at=262144,ot=4194304;function st(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&-e;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 ct(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=st(n))):i=st(o):i=st(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=st(n))):i=st(o)):i=st(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function lt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ut(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-et(n),i=1<<r;t|=e[r],n&=~i}return t}function dt(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 ft(){var e=ot;return ot<<=1,!(ot&62914560)&&(ot=4194304),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ht(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-et(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&>(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function gt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-et(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function vt(e,t){var n=t&-t;return n=n&42?1:yt(n),(n&(e.suspendedLanes|t))===0?n:0}function yt(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 bt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xt(){var e=I.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function St(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var L=Math.random().toString(36).slice(2),Ct=`__reactFiber$`+L,wt=`__reactProps$`+L,Tt=`__reactContainer$`+L,Et=`__reactEvents$`+L,R=`__reactListeners$`+L,Dt=`__reactHandles$`+L,Ot=`__reactResources$`+L,kt=`__reactMarker$`+L,At=`__reactLoad$`+L;function jt(e){delete e[Ct],delete e[wt],delete e[R],delete e[Dt]}function Mt(e){var t;if(t=e[Ct])return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[Ct])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function Nt(e){if(e=e[Ct]||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 Pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ft(e){var t=e[Ot];return t||=e[Ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function It(e){e[kt]=!0}function Lt(e){e[At]=void 0}var Rt=new Set,zt={};function Bt(e,t){Vt(e,t),Vt(e+`Capture`,t)}function Vt(e,t){for(zt[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var Ht=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]*$`),Ut={},Wt={};function Gt(e){return Le.call(Wt,e)?!0:Le.call(Ut,e)?!1:Ht.test(e)?Wt[e]=!0:(Ut[e]=!0,!1)}var z=!1;function Kt(){var e=z;return z=!1,e}function B(e,t,n){if(Gt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function qt(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 Jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function V(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+V(t)):e.value!==``+V(t)&&(e.value=``+V(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,V(n)):o===`number`&&e.value==t?rn(e,V(e.value)):rn(e,V(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+V(s):e.removeAttribute(`name`)}function nn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Zt(e);return}n=n==null?``:``+V(n),t=t==null?n:``+V(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function on(e,t,n){t!=null&&(t=``+V(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+V(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(he(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=V(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=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 un(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,z=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),z=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(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 pn=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`],[`maskType`,`mask-type`],[`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`]]),mn=/^[\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 hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=Nt(e);if(t&&(e=t.stateNode)){var n=e[wt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(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="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[wt]||null;if(!a)throw Error(i(90));tn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Sn=!1;function Cn(e,t,n){if(Sn)return e(t,n);Sn=!0;try{return e(t)}finally{if(Sn=!1,(yn!==null||bn!==null)&&(J(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function H(e,t){var n=e.stateNode;if(n===null)return null;var r=n[wt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var wn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Tn=!1;if(wn)try{var En={};Object.defineProperty(En,"passive",{get:function(){Tn=!0}}),window.addEventListener(`test`,En,En),window.removeEventListener(`test`,En,En)}catch{Tn=!1}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return kn=i.slice(e,1<r?1-r:void 0)}function jn(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 Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=D({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=D({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,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!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(D({},Hn,{dataTransfer:0})),Gn=Pn(D({},Ln,{relatedTarget:0})),Kn=Pn(D({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(D({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(D({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={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`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(D({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(D({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(D({},Fn,{submitter:0})),rr=Pn(D({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),ir=Pn(D({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Pn(D({},Hn,{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})),or=Pn(D({},Fn,{newState:0,oldState:0,source:0})),sr=[9,13,27,32],cr=wn&&`CompositionEvent`in window,lr=null;wn&&`documentMode`in document&&(lr=document.documentMode);var ur=wn&&`TextEvent`in window&&!lr,dr=wn&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=An(),kn=On=Dn=null,gr=!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 dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=Zf(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,Cr=null;function wr(e){Wf(e,0)}function Tr(e){if(Qt(Pt(e)))return e}function Er(e,t){if(e===`change`)return t}var Dr=!1;if(wn){var Or;if(wn){var kr=`oninput`in document;if(!kr){var Ar=document.createElement(`div`);Ar.setAttribute(`oninput`,`return;`),kr=typeof Ar.oninput==`function`}Or=kr}else Or=!1;Dr=Or&&(!document.documentMode||9<document.documentMode)}function jr(){Sr&&(Sr.detachEvent(`onpropertychange`,Mr),Cr=Sr=null)}function Mr(e){if(e.propertyName===`value`&&Tr(Cr)){var t=[];xr(t,Cr,e,vn(e)),Cn(wr,t)}}function Nr(e,t,n){e===`focusin`?(jr(),Sr=t,Cr=n,Sr.attachEvent(`onpropertychange`,Mr)):e===`focusout`&&jr()}function Pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tr(Cr)}function Fr(e,t){if(e===`click`)return Tr(t)}function Ir(e,t){if(e===`input`||e===`change`)return Tr(t)}function Lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Rr=typeof Object.is==`function`?Object.is:Lr;function zr(e,t){if(Rr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Le.call(t,i)||!Rr(e[i],t[i]))return!1}return!0}function Br(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hr(e,t){var n=Vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Vr(n)}}function Ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Br(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=Br(e.document)}return t}function Gr(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 Kr=wn&&`documentMode`in document&&11>=document.documentMode,qr=null,Jr=null,Yr=null,Xr=!1;function Zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xr||qr==null||qr!==Br(r)||(r=qr,`selectionStart`in r&&Gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&zr(Yr,r)||(Yr=r,r=Zf(Jr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var $r={animationend:Qr(`Animation`,`AnimationEnd`),animationiteration:Qr(`Animation`,`AnimationIteration`),animationstart:Qr(`Animation`,`AnimationStart`),transitionrun:Qr(`Transition`,`TransitionRun`),transitionstart:Qr(`Transition`,`TransitionStart`),transitioncancel:Qr(`Transition`,`TransitionCancel`),transitionend:Qr(`Transition`,`TransitionEnd`)},ei={},ti={};wn&&(ti=document.createElement(`div`).style,`AnimationEvent`in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),`TransitionEvent`in window||delete $r.transitionend.transition);function ni(e){if(ei[e])return ei[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ti)return ei[e]=t[n];return e}var ri=ni(`animationend`),ii=ni(`animationiteration`),ai=ni(`animationstart`),oi=ni(`transitionrun`),si=ni(`transitionstart`),ci=ni(`transitioncancel`),li=ni(`transitionend`),ui=new Map,di=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);di.push(`scrollEnd`);function fi(e,t){ui.set(e,t),Bt(t,[e])}var pi=0;function mi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=pi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function hi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function gi(e,t){return e=hi(e),t=hi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var _i=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&&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)},vi=[],yi=0,bi=0;function xi(){for(var e=yi,t=bi=yi=0;t<e;){var n=vi[t];vi[t++]=null;var r=vi[t];vi[t++]=null;var i=vi[t];vi[t++]=null;var a=vi[t];if(vi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ti(n,i,a)}}function Si(e,t,n,r){vi[yi++]=e,vi[yi++]=t,vi[yi++]=n,vi[yi++]=r,bi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ci(e,t,n,r){return Si(e,t,n,r),Ei(e)}function wi(e,t){return Si(e,null,null,t),Ei(e)}function Ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-et(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ei(e){if(50<Md)throw Md=0,Nd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Di={};function Oi(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ki(e,t,n,r){return new Oi(e,t,n,r)}function Ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ji(e,t){var n=e.alternate;return n===null?(n=ki(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&1206910976,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 Mi(e,t){e.flags&=1206910978;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 Ni(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ai(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,Se.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case se:return e=ki(31,n,t,a),e.elementType=se,e.lanes=o,e;case ee:return Pi(n.children,a,o,t);case j:s=8,a|=24;break;case te:return e=ki(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case re:return e=ki(13,n,t,a),e.elementType=re,e.lanes=o,e;case ie:return e=ki(19,n,t,a),e.elementType=ie,e.lanes=o,e;case P:case le:return e=a|32,e=ki(30,n,t,e),e.elementType=le,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case ne:s=11;break a;case ae:s=14;break a;case oe:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ki(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Pi(e,t,n,r){return e=ki(7,e,r,t),e.lanes=n,e}function Fi(e,t,n){return e=ki(6,e,null,t),e.lanes=n,e}function Ii(e){var t=ki(18,null,null,0);return t.stateNode=e,t}function Li(e,t,n){return t=ki(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ri=new WeakMap;function zi(e,t){if(typeof e==`object`&&e){var n=Ri.get(e);return n===void 0?(t={value:e,source:t,stack:Ie(t)},Ri.set(e,t),t):n}return{value:e,source:t,stack:Ie(t)}}var Bi=[],Vi=0,Hi=null,Ui=0,Wi=[],Gi=0,Ki=null,qi=1,Ji=``;function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Hi,Hi=e,Ui=t}function Xi(e,t,n){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,Ki=e;var r=qi;e=Ji;var i=32-et(r)-1;r&=~(1<<i),n+=1;var a=32-et(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qi=1<<32-et(t)+i|n<<i|r,Ji=a+e}else qi=1<<a|n<<i|r,Ji=e}function Zi(e){e.return!==null&&(Yi(e,1),Xi(e,1,0))}function Qi(e){for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null;for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,Ji=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null}function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,qi=t.id,Ji=t.overflow,Ki=e}var ea=null,ta=null,U=!1,na=null,ra=!1,ia=Error(i(519));function aa(e){throw da(zi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ia}function oa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ct]=e,t[wt]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Y(Hf[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),sn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||rp(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||aa(e,!0)}function sa(e){for(ea=e.return;ea;)switch(ea.tag){case 5:case 31:case 13:ra=!1;return;case 27:case 3:ra=!0;return;default:ea=ea.return}}function ca(e){if(e!==ea)return!1;if(!U)return sa(e),U=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&ta&&aa(e),sa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=mm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=mm(e)}else t===27?(t=ta,Tp(e.type)?(e=pm,pm=null,ta=e):ta=t):ta=ea?fm(e.stateNode.nextSibling):null;return!0}function la(){ta=ea=null,U=!1}function ua(){var e=na;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),na=null),e}function da(e){na===null?na=[e]:na.push(e)}var fa=ye(null),pa=null,ma=null;function ha(e,t,n){xe(fa,t._currentValue),t._currentValue=n}function ga(e){e._currentValue=fa.current,be(fa)}function _a(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function va(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),_a(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),_a(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),_a(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ya(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Rr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Te.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[lh]:e.push(lh))}a=a.return}return e!==null&&va(t,e,n,r),t.flags|=262144,e!==null}function ba(e){for(e=e.firstContext;e!==null;){if(!Rr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xa(e){pa=e,ma=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Sa(e){return wa(pa,e)}function Ca(e,t){return pa===null&&xa(e),wa(e,t)}function wa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ma===null){if(e===null)throw Error(i(308));ma=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ma=ma.next=t;return n}var Ta=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ea=t.unstable_scheduleCallback,Da=t.unstable_NormalPriority,Oa={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ka(){return{controller:new Ta,data:new Map,refCount:0}}function Aa(e){e.refCount--,e.refCount===0&&Ea(Da,function(){e.controller.abort()})}function ja(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ma=null;function Na(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Pa=null,Fa=0,Ia=0,La=null;function Ra(e,t){if(Pa===null){var n=Pa=[];Fa=0,Ia=Lf(),La={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Fa++,t.then(za,za),t}function za(){if(--Fa===0&&(Ma=null,Pa!==null)){La!==null&&(La.status=`fulfilled`);var e=Pa;Pa=null,Ia=0,La=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Va=F.S;F.S=function(e,t){if(vd=He(),typeof t==`object`&&t&&typeof t.then==`function`&&Ra(e,t),Ma!==null)for(var n=Cf;n!==null;)ja(n,Ma),n=n.next;if(n=e.types,n!==null){for(var r=Cf;r!==null;)ja(r,n),r=r.next;if(Ia!==0){r=Ma,r===null&&(r=Ma=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Va!==null&&Va(e,t)};var Ha=ye(null);function Ua(){var e=Ha.current;return e===null?nd.pooledCache:e}function Wa(e,t){t===null?xe(Ha,Ha.current):xe(Ha,t.pool)}function Ga(){var e=Ua();return e===null?null:{parent:Oa._currentValue,pool:e}}var Ka=Error(i(460)),qa=Error(i(474)),Ja=Error(i(542)),Ya={then:function(){}};function Xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Za(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,to(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,to(e),e}throw $a=t,Ka}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?($a=e,Ka):e}}var $a=null;function eo(){if($a===null)throw Error(i(459));var e=$a;return $a=null,e}function to(e){if(e===Ka||e===Ja)throw Error(i(483))}var no=null,ro=0;function io(e){var t=ro;return ro+=1,no===null&&(no=[]),Za(no,e,t)}function ao(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function oo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function so(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ji(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?(e=d(e,t,n.props.children,r,n.key),ao(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===oe&&Qa(i)===t.type)?(t=a(t,n.props),ao(t,n),t.return=e,t):(t=Ni(n.type,n.key,n.props,null,e.mode,r),ao(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Li(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ni(t.type,t.key,t.props,null,e.mode,n),ao(n,t),n.return=e,n;case A:return t=Li(t,e.mode,n),t.return=e,t;case oe:return t=Qa(t),f(e,t,n)}if(he(t)||fe(t))return t=Pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,io(t),n);if(t.$$typeof===N)return f(e,Ca(e,t),n);oo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case oe:return n=Qa(n),p(e,t,n,r)}if(he(n)||fe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,io(n),r);if(n.$$typeof===N)return p(e,t,Ca(e,n),r);oo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case oe:return r=Qa(r),m(e,t,n,r,i)}if(he(r)||fe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,io(r),i);if(r.$$typeof===N)return m(e,t,n,Ca(t,r),i);oo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),U&&Yi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return U&&Yi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),U&&Yi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),U&&Yi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return U&&Yi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),U&&Yi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ao(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===oe&&Qa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ao(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Pi(o.props.children,e.mode,c,o.key),ao(c,o),c.return=e,e=c):(c=Ni(o.type,o.key,o.props,null,e.mode,c),ao(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Li(o,e.mode,c),c.return=e,e=c}return s(e);case oe:return o=Qa(o),_(e,r,o,c)}if(he(o))return h(e,r,o,c);if(fe(o)){if(l=fe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,io(o),c);if(o.$$typeof===N)return _(e,r,Ca(e,o),c);oo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ro=0;var i=_(e,t,n,r);return no=null,i}catch(t){if(t===Ka||t===Ja)throw t;var a=ki(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var co=so(!0),lo=so(!1),uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ei(e),Ti(e,null,n),t}return Si(e,r,t,n),Ei(e)}function go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}function _o(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var vo=!1;function yo(){if(vo){var e=La;if(e!==null)throw e}}function bo(e,t,n,r){vo=!1;var i=e.updateQueue;uo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(K&f)===f:(r&f)===f){f!==0&&f===Ia&&(vo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:uo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ld|=o,e.lanes=o,e.memoizedState=d}}function xo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function So(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)xo(n[e],t)}var Co=ye(null),wo=ye(0);function To(e,t){e=cd,xe(wo,e),xe(Co,t),cd=e|t.baseLanes}function Eo(){xe(wo,cd),xe(Co,Co.current)}function Do(){cd=wo.current,be(Co),be(wo)}var Oo=ye(null),ko=null;function Ao(e){var t=e.alternate;xe(Fo,Fo.current&1),xe(Oo,e),ko===null&&(t===null||Co.current!==null||t.memoizedState!==null)&&(ko=e)}function jo(e){xe(Fo,Fo.current),xe(Oo,e),ko===null&&(ko=e)}function Mo(e){e.tag===22?(xe(Fo,Fo.current),xe(Oo,e),ko===null&&(ko=e)):No()}function No(){xe(Fo,Fo.current),xe(Oo,Oo.current)}function Po(e){be(Oo),ko===e&&(ko=null),be(Fo)}var Fo=ye(0);function Io(e,t){xe(Oo,Oo.current),xe(Fo,t)}function Lo(e){be(Fo),be(Oo),ko===e&&(ko=null)}function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lm(n)||um(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)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 zo=0,W=null,Bo=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return zo=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?mc:hc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){F.H=pc;var t=Bo!==null&&Bo.next!==null;if(zo=0,Vo=Bo=W=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&ba(e)&&(Mc=!0))}function $o(e,t,n,r){W=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=Bo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=gc,o=t(n,r)}while(Uo);return o}function es(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(Bo===null?null:Bo.memoizedState)!==e&&(W.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}zo=0,Vo=Bo=W=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(Bo===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=Bo.next;var t=Vo===null?W.memoizedState:Vo.next;if(t!==null)Vo=t,Bo=e;else{if(e===null)throw W.alternate===null?Error(i(467)):Error(i(310));Bo=e,e={memoizedState:Bo.memoizedState,baseState:Bo.baseState,baseQueue:Bo.baseQueue,queue:Bo.queue,next:null},Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Za(qo,e,t),t=W,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?mc:hc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===ue)return;if(e.$$typeof===N)return Sa(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=os(),W.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ce;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(as(),Bo,e)}function fs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(zo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ia&&(d=!0);else if((zo&p)===p){u=u.next,p===Ia&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,W.lanes|=p,ld|=p;f=u.action,Wo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,W.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Rr(o,e.memoizedState)&&(Mc=!0,d&&(n=La,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ps(e){var t=as(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Rr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=W,a=as(),o=U;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Rr((Bo||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||zo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=os(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function ys(e){var t=wi(e,2);t!==null&&Ld(t,e,2)}function bs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){$e(!0);try{n()}finally{$e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,Bo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(uc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};o.types=a===null?null:a.types,F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if(U){var n=nd.formState;if(n!==null){a:{var r=W;if(U){if(ta){b:{for(var i=ta,a=ra;i.nodeType!==8;)if(!a||(i=fm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ta=fm(i.nextSibling),r=i.data===`F!`;break a}}aa(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=sc.bind(null,W,r),r.dispatch=n,r=bs(!1),a=lc.bind(null,W,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(as(),Bo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Ka?Ja:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=as(),n=Bo;if(n!==null)return js(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=os(),W.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return as().memoizedState}function Is(e,t,n,r){var i=is();W.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;Bo!==null&&r!==null&&Xo(r,Bo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(W.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=os(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=as().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(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 Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||zo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),W.lanes|=e,ld|=e,n)}function Xs(e,t,n,r){return Rr(n,t)?n:Co.current===null?!(zo&106)||zo&1073741824&&!(K&261930)?(Mc=!0,e.memoizedState=n):(e=Fd(),W.lanes|=e,ld|=e,t):(e=Ys(e,n,r),Rr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};s.types=o===null?null:o.types,F.T=s,lc(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Ba(c,r),Pd(e)):cc(e,t,r,Pd(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,ge,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:ge},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Pd())}function nc(){return Sa(lh)}function rc(){return as().memoizedState}function ic(){return as().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=mo(n);var r=ho(t,e,n);r!==null&&(Ld(r,t,n),go(r,t,n)),t={cache:ka()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=Ci(e,t,n,r),n!==null&&(Ld(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Pd())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Rr(s,o))return Si(e,t,i,0),nd===null&&xi(),!1}catch{}if(n=Ci(e,t,i,r),n!==null)return Ld(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=Ci(e,n,r,2),t!==null&&Ld(t,e,2)}function uc(e){var t=e.alternate;return e===W||t!==null&&t===W}function dc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}var pc={readContext:Sa,use:cs,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},mc={readContext:Sa,use:cs,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:Sa,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){$e(!0);try{n(t)}finally{$e(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=sc.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(is(),e,t)},useTransition:function(){var e=bs(!1);return e=Zs.bind(null,W,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=is();if(U){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));K&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=nd.identifierPrefix;if(U){var n=Ji,r=qi;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return is().memoizedState=ac.bind(null,W)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:Sa,use:cs,useCallback:qs,useContext:Sa,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(as(),Bo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(as(),Bo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:Sa,use:cs,useCallback:qs,useContext:Sa,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=as();return Bo===null?Ys(n,e,t):Xs(n,Bo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=as();return Bo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,Bo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=mo(r);i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Ld(t,e,r),go(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=mo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Ld(t,e,r),go(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=mo(n);r.tag=2,t!=null&&(r.callback=t),t=ho(e,r,n),t!==null&&(Ld(t,e,n),go(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){_i(e)}function Cc(e){console.error(e)}function wc(e){_i(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=mo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=mo(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ya(t,n,a,!0),n=Oo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ko===null?Jd():n.alternate===null&&q===0&&(q=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),_f(e,r,a)),!1;case 22:return n.flags|=65536,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),_f(e,r,a)),!1}throw Error(i(435,n.tag))}return _f(e,r,a),Jd(),!1}if(U)return t=Oo.current,t===null?(r!==ia&&(t=Error(i(423),{cause:r}),da(zi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=zi(r,n),a=Dc(e.stateNode,r,a),_o(e,a),q!==4&&(q=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ia&&(e=Error(i(422),{cause:r}),da(zi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=zi(o,n),md===null?md=[o]:md.push(o),q!==4&&(q=2),t===null)return!0;r=zi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),_o(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),_o(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?lo(t,null,n,r):co(t,e.child,n,r)}function Pc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return xa(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!Mc?(ns(e,t,i),cl(e,t,i)):(U&&s&&Zi(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?zr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=ji(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zr(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wa(t,a===null?null:a.cachePool),a===null?Eo():To(t,a),Mo(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Wa(t,null),Eo(),No()):(Wa(t,a.cachePool),To(t,a),No(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Ua();return a=a===null?null:{parent:Oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Wa(t,null),Eo(),Mo(t),e!==null&&ya(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return co(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Po(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(U){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(jo(t),(e=ta)?(e=cm(e,ra),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw aa(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(jo(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||ya(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(Co.current===null){if(r=nd,r!==null&&(s=vt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,wi(e,s),Ld(r,e,s),jc;Jd()}t=Vc(e,t,n)}else e=o.treeContext,ta=fm(s.nextSibling),ea=t,U=!0,na=null,ra=!1,e!==null&&$i(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=ji(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(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(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return xa(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!Mc?(ns(e,t,i),cl(e,t,i)):(U&&r&&Zi(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return xa(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!Mc?(ns(e,t,a),cl(e,t,a)):(U&&r&&Zi(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(xa(t),t.stateNode===null){var a=Di,o=n.contextType;typeof o==`object`&&o&&(a=Sa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fo(t),o=n.contextType,a.context=typeof o==`object`&&o?Sa(o):Di,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),bo(t,r,a,i),yo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Di,typeof u==`object`&&u&&(o=Sa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),uo=!1;var f=t.memoizedState;a.state=f,bo(t,r,a,i),yo(),l=t.memoizedState,s||f!==l||uo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=uo||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,po(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Di,typeof l==`object`&&l&&(c=Sa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),uo=!1,f=t.memoizedState,a.state=f,bo(t,r,a,i),yo();var p=t.memoizedState;o!==d||f!==p||uo||e!==null&&e.dependencies!==null&&ba(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=uo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ba(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Uc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=co(t,e.child,null,i),t.child=co(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return la(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ga()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Fo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(U){if(i?Ao(t):No(),(e=ta)?(e=cm(e,ra),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw aa(t);return t.lanes=um(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(No(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Pi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Ao(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(No(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ji(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Pi(i,a,n,null),i.flags|=2):i=ji(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ga():(s=Oa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Ao(t),n=e.child,e=n.sibling,n=ji(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=ki(22,e,null,t),e.lanes=0,e}function el(e,t,n){return co(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Ao(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(No(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=Pi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,co(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(No(),t.child=e.child,t.flags|=128,null);if(Ao(t),um(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,da({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||ya(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(Co.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=vt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,wi(e,a),Ld(r,e,a),jc;return lm(o)||Jd(),el(e,t,c)}return lm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ta=fm(o.nextSibling),ea=t,U=!0,na=null,ra=!1,e!==null&&$i(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_a(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ro(n)===null&&(t=e),e=e.sibling}return t}function il(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function al(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Fo.current;if(t.flags&128)return Io(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Io(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=U?Ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return ha(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ya(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ji(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ji(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ba(e)))}function ul(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ha(t,Oa,e.memoizedState.cache),la();break;case 27:case 5:Oe(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ha(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Ao(t),t.flags|=128,null;r=ya(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Ao(t),e=cl(e,t,n),e===null?null:e.sibling)}Ao(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ya(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Io(t,Fo.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:ha(t,Oa,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,U&&t.flags&1048576&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e==`function`)Ai(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===ae){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=me(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,po(e,t),bo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ha(t,Oa,r),r!==o.cache&&va(t,[Oa],n,!0),yo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qc(e,t,r,n);break a}if(r!==a){a=zi(Error(i(424)),t),da(a),t=qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ta=fm(e.firstChild),ea=t,U=!0,na=null,ra=!0,n=lo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(la(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:U||(t.stateNode=gp(t.type,t.pendingProps,we.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Oe(t),e===null&&U&&(r=t.stateNode=vm(t.type,t.pendingProps,we.current),ea=t,ra=!0,a=ta,Tp(t.type)?(pm=a,ta=fm(r.firstChild)):ta=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&U&&((a=r=ta)&&(r=om(r,t.type,t.pendingProps,ra),r===null?a=!1:(t.stateNode=r,ea=t,ta=fm(r.firstChild),ra=!1,a=!0)),a||aa(t)),Oe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),lh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&U&&((e=n=ta)&&(n=sm(n,t.pendingProps,ra),n===null?e=!1:(t.stateNode=n,ea=t,ta=null,e=!0)),e||aa(t)),null;case 13:return Zc(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,xa(t),a=Sa(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return xa(t),r=Sa(Oa),e===null?(a=Ua(),a===null&&(a=nd,o=ka(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},fo(t),ha(t,Oa,a)):((e.lanes&n)!==0&&(po(e,t),bo(t,null,null,n),yo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ha(t,Oa,r),r!==a.cache&&va(t,[Oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ha(t,Oa,r))),Nc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:U&&Zi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Gd())e.flags|=8192;else throw $a=Ya,qa}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Gd())e.flags|=8192;else throw $a=Ya,qa}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ft(),e.lanes|=t,pd|=t)}function gl(e,t){if(!U)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ga(Oa),De(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ca(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ua())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(ke(t),n=we.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=Se.current,ca(t)?oa(t,e):(e=vm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(ke(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=Se.current,ca(t))oa(t,o);else{var s=pp(we.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Ct]=t,o[wt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(op(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=we.current,ca(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ea,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||aa(t,!0)}else e=pp(e).createTextNode(r),e[Ct]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ca(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Ct]=t}else la(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=ua(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Po(t),t):(Po(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ca(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Ct]=t}else la(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=ua(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Po(t),t):(Po(t),null)}return Po(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return De(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ga(t.type),_l(t),null;case 19:if(Lo(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(q!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ro(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mi(n,e),n=n.sibling;return Io(t,Fo.current&1|2),U&&Yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&He()>yd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!U)return _l(t),null}else 2*He()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=He(),e.sibling=null,o=Fo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||U?Io(t,o):(n=o,xe(Oo,t),xe(Fo,n),ko===null&&(ko=t)),U&&Yi(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Po(t),Do(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&be(Ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ga(Oa),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(Oa),De(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ke(t),null;case 31:if(t.memoizedState!==null){if(Po(t),t.alternate===null)throw Error(i(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return De(),null;case 10:return ga(t.type),null;case 22:case 23:return Po(t),Do(),e!==null&&be(Ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ga(Oa),null;case 25:return null;default:return null}}function bl(e,t){switch(Qi(t),t.tag){case 3:ga(Oa),De();break;case 26:case 27:case 5:ke(t);break;case 4:De();break;case 31:t.memoizedState!==null&&Po(t);break;case 13:Po(t);break;case 19:Lo(t);break;case 10:ga(t.type);break;case 22:case 23:Po(t),Do(),e!==null&&be(Ha);break;case 24:ga(Oa)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){gf(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){gf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){gf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{So(t,n)}catch(t){gf(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=mi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);m(e.child,!1,tm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){gf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){gf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){gf(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)rm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&rm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&im(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){gf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[wt]=t}catch(t){gf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tp(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(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&&Tp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),Dl(e,r),z=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Tp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),z=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Tp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[Ct]=e,t[wt]=n}catch(t){gf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=jp(o);r.push(s),s.view&&(a=!0)}else a||jp(o).view&&(a=!0);zl=!0,Op(o,Wl===0?t:t+`_`+Wl,n),Wl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?kp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ql(e.child,t)),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=gi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=mi(r,n),a=gi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||Id(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=gi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),Id(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=jp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Op(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=mi(n,r),a=gi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Mp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,dp=_h,e=Wr(e),Gr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(fp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){gf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)am(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:am(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=mi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!==`none`&&Gl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){gf(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){gf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(e,n),r&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{So(e,t)}catch(e){gf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bf.bind(null,n),dm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){gf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,z=!0}catch(t){gf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Dp(s,!0):Dp(e.stateNode,!1)}catch(t){gf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jt(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 xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount==`function`)try{Qe.onCommitFiberUnmount(Ze,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Tp(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),ym(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),z=!0}catch(e){gf(n,t,e)}else try{xu.removeChild(n.stateNode),z=!0}catch(e){gf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,Ep(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):Ep(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){gf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){gf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Tp(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=gp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[kt]||r[Ct]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[Ct]=e,It(r),t=r;break a;case`link`:if(o=qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[Ct]=e,It(r),t=r}e.stateNode=t}}else iu||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),z=!0}catch(t){gf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,z=!0}catch(t){gf(e,e.return,t)}}break;case 3:if(z=!1,Km=null,o=Au,Au=Sm(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){gf(e,e.return,t)}su&&(su=!1,Nu(e)),z=!1;break;case 4:a=ou,ou=iu,r=Kt(),o=Au,Au=Sm(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,z&&du&&(fu=!0),z=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=He()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Kt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&gi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&z&&(e.flags|=4),du=o,z=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){gf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];kp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var s=gi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&ym(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){gf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)xo(l[i],c)}catch(e){gf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||Jm(Sm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(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&&Aa(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Aa(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Aa(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){gf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=Au;Au=Sm(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(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 Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=Sa(Oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Sa(Oa).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,G=null,K=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,q=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return td&2&&K!==0?K&-K:F.T===null?xt():Lf()}function Fd(){if(fd===0){if(!(K&536870912)||U){var e=at;at<<=1,!(at&3932160)&&(at=262144),fd=e}else fd=536870912}return e=Oo.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(mi(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===nd&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Ud(e,0),Vd(e,K,fd,!1)),mt(e,n),(!(td&2)||e!==nd)&&(e===nd&&(!(td&2)&&(ud|=n),q===4&&Vd(e,K,fd,!1)),kf(e))}function Rd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||lt(e,t),a=r?Zd(e,t):Yd(e,t,!0),o=r;do{if(a===0){od&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(n))a=Yd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Ud(c,s).flags|=256),s=Yd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ud(e,0),Vd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Vd(r,t,fd,!ad);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-He(),10<a)){if(Vd(r,t,fd,!ad),ct(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=yp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,ad,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,ad,o,null,-0,0)}break}}while(1);kf(e)}function zd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},Bl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?_d-He():(a&4194048)===a?vd-He():0,m=nh(d,m),m!==null)?(Td=a,e.cancelPendingCommit=m(af.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l)):af(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(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 r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Rr(a(),i))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 Vd(e,t,n,r){t=ut(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-et(i),o=1<<a;r[a]=-1,i&=~o}n!==0&>(e,n,t)}function J(){return td&6?!0:(Af(0,!1),!1)}function Hd(){if(G!==null){if(rd===0)var e=G.return;else e=G,ma=pa=null,rs(e),no=null,ro=0,e=G;for(;e!==null;)bl(e.alternate,e),e=e.return;G=null}}function Ud(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,bp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Td=0,Hd(),nd=e,G=n=ji(e.current,null),K=t,rd=0,id=null,ad=!1,od=lt(e,t),sd=!1,pd=fd=dd=ud=ld=q=0,hd=md=null,gd=!1,cd=ut(e,t),xi(),n}function Wd(e,t){W=null,F.H=pc,t===Ka||t===Ja?(t=eo(),rd=3):t===qa?(t=eo(),rd=4):rd=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,G===null&&(q=1,Tc(e,zi(t,e.current)))}function Gd(){var e=Oo.current;return e===null?!0:(K&4194048)===K?ko===null:(K&62914560)===K||K&536870912?e===ko:!1}function Kd(){var e=F.H;return F.H=pc,e===null?pc:e}function qd(){var e=F.A;return F.A=$u,e}function Jd(){q=4,ad||(K&4194048)!==K&&Oo.current!==null||(od=!0),!(ld&134217727)&&!(ud&134217727)||nd===null||Vd(nd,K,fd,!1)}function Yd(e,t,n){var r=td;td|=2;var i=Kd(),a=qd();(nd!==e||K!==t)&&(bd=null,Ud(e,t)),t=!1;var o=q;a:do try{if(rd!==0&&G!==null){var s=G,c=id;switch(rd){case 8:Hd(),o=6;break a;case 3:case 2:case 9:case 6:Oo.current===null&&(t=!0);var l=rd;if(rd=0,id=null,tf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,tf(e,s,c,l)}}Xd(),o=q;break}catch(t){Wd(e,t)}while(1);return t&&e.shellSuspendCounter++,ma=pa=null,td=r,F.H=i,F.A=a,G===null&&(nd=null,K=0,xi()),o}function Xd(){for(;G!==null;)$d(G)}function Zd(e,t){var n=td;td|=2;var r=Kd(),a=qd();nd!==e||K!==t?(bd=null,yd=He()+500,Ud(e,t)):od=lt(e,t);a:do try{if(rd!==0&&G!==null){t=G;var o=id;b:switch(rd){case 1:rd=0,id=null,tf(e,t,o,1);break;case 2:case 9:if(Xa(o)){rd=0,id=null,ef(t);break}t=function(){rd!==2&&rd!==9||nd!==e||(rd=7),kf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Xa(o)?(rd=0,id=null,ef(t)):(rd=0,id=null,tf(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Zm(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,nf(u))}break b}}rd=0,id=null,tf(e,t,o,5);break;case 6:rd=0,id=null,tf(e,t,o,6);break;case 8:Hd(),q=6;break a;default:throw Error(i(462))}}Qd();break}catch(t){Wd(e,t)}while(1);return ma=pa=null,F.H=r,F.A=a,td=n,G===null?(nd=null,K=0,xi(),q):0}function Qd(){for(;G!==null&&!Be();)$d(G)}function $d(e){var t=dl(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?nf(e):G=t}function ef(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:rs(t);var r=t;r===ea&&(U?(sa(r),r.tag===5&&r.stateNode!=null&&(ta=r.stateNode)):(sa(r),U=!0));default:bl(n,t),t=G=Mi(t,cd),t=dl(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?nf(e):G=t}function tf(e,t,n,r){ma=pa=null,rs(t),no=null,ro=0;var i=t.return;try{if(Ac(e,i,t,n,K)){q=1,Tc(e,zi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;q=1,Tc(e,zi(n,e.current)),G=null;return}t.flags&32768?(U||r===1?e=!0:od||K&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=Oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),rf(t,e)):nf(t)}function nf(e){var t=e;do{if(t.flags&32768){rf(t,ad);return}e=t.return;var n=vl(t.alternate,t,cd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);q===0&&(q=5)}function rf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);q=6,G=null}function af(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do pf();while(Sd!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(G=nd=null,K=0),wd=t,Cd=e,Td=n,Dd=a,Od=r,of(e,t,n,s,c,l,f)}}function of(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ed=s,s|=bi,ht(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=Na(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Sf(Ke,function(){return mf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=F.T,F.T=null,i=I.p,I.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,I.p=i,F.T=r}}Sd=1,zl?kd=Fp(o,e.containerInfo,jd,lf,uf,cf,df,mf,sf,null,null):(lf(),uf(),df())}function sf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function cf(){Sd===3&&(Sd=0,Fu(wd,Cd),Sd=4)}function lf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=F.T,F.T=null;var i=I.p;I.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=fp;var o=Wr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ur(s.ownerDocument.documentElement,s)){if(c!==null&&Gr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Hr(s,h),v=Hr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_h=!!dp,fp=dp=null}finally{td=a,I.p=i,F.T=r}}e.current=t,Sd=2}}function uf(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,I.p=r,F.T=n}}Sd=3}}function df(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,Ve();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,ff(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),bt(r),n=n.stateNode,Qe&&typeof Qe.onCommitFiberRoot==`function`)try{Qe.onCommitFiberRoot(Ze,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=F.T,a=I.p,I.p=2,F.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{F.T=n,I.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Td&3&&pf(),kf(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),Af(0,!1)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Aa(t)))}function pf(){return kd!==null&&(kd.skipTransition(),kd=null),lf(),uf(),df(),mf()}function mf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=bt(Td),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Af(0,!1),Qe&&typeof Qe.onPostCommitFiberRoot==`function`)try{Qe.onPostCommitFiberRoot(Ze,o)}catch{}return!0}finally{I.p=a,F.T=r,ff(e,t)}}function hf(e,t,n){t=zi(n,t),t=Dc(e.stateNode,t,2),e=ho(e,t,2),e!==null&&(mt(e,2),kf(e))}function gf(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=zi(n,e),n=Oc(2),r=ho(t,n,2),r!==null&&(kc(n,r,t,e),mt(r,2),kf(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=vf.bind(null,e,t,n),t.then(e,e))}function vf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(K&n)===n&&(q===4||q===3&&(K&62914560)===K&&300>He()-_d?td&2?dd|=n:Ud(e,0):dd|=n,pd===K&&(pd=0)),kf(e)}function yf(e,t){t===0&&(t=ft()),e=wi(e,t),e!==null&&(mt(e,t),kf(e))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yf(e,n)}function xf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),yf(e,n)}function Sf(e,t){return Re(e,t)}var Cf=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!0;do for(var n=!1,r=Cf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-et(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=K,a=ct(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||lt(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&X()&&(e=Of);for(var t=He(),n=null,r=Cf;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}Sd!==0&&Sd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-et(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=dt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=K,n=ct(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ze(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||lt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ze(r),bt(n)){case 2:case 8:n=Ge;break;case 32:n=Ke;break;case 268435456:n=Je;break;default:n=Ke}return r=Pf.bind(null,e),n=Re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ze(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pf()&&e.callbackNode!==n)return null;var r=K;return r=ct(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),Nf(e,He()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(pf())return null;Rd(e,t,!0)}function If(){Cp(function(){td&6?Re(We,jf):Mf()})}function Lf(){if(Of===0){var e=Ia;e===0&&(e=it,it<<=1,!(it&261888)&&(it=256)),Of=e}return Of}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[wt]||null).action),o=r.submitter;o&&(t=(t=o[wt]||null)?Rf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new In(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Of!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<di.length;Bf++){var Vf=di[Bf];fi(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.slice(1)))}fi(ri,`onAnimationEnd`),fi(ii,`onAnimationIteration`),fi(ai,`onAnimationStart`),fi(`dblclick`,`onDoubleClick`),fi(`focusin`,`onFocus`),fi(`focusout`,`onBlur`),fi(oi,`onTransitionRun`),fi(si,`onTransitionStart`),fi(ci,`onTransitionCancel`),fi(li,`onTransitionEnd`),Vt(`onMouseEnter`,[`mouseout`,`mouseover`]),Vt(`onMouseLeave`,[`mouseout`,`mouseover`]),Vt(`onPointerEnter`,[`pointerout`,`pointerover`]),Vt(`onPointerLeave`,[`pointerout`,`pointerover`]),Bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`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(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){_i(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){_i(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[Et];n===void 0&&(n=t[Et]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,Rt.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!Tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Yf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=ui.get(e);if(c!==void 0){var l=In,u=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:l=er;break;case`focusin`:u=`focus`,l=Gn;break;case`focusout`:u=`blur`,l=Gn;break;case`beforeblur`:case`afterblur`:l=Gn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=rr;break;case ri:case ii:case ai:l=Kn;break;case li:l=ir;break;case`scroll`:case`scrollend`:l=Rn;break;case`wheel`:l=ar;break;case`copy`:case`cut`:case`paste`:l=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=tr;break;case`submit`:l=nr;break;case`toggle`:case`beforetoggle`:l=or}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=H(m,p),g!=null&&d.push(Xf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(Mt(u)||u[Tt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Mt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Un,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=tr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Pt(c),h=l==null?u:Pt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Mt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?Pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Er;else if(br(c)){if(Dr)_=Ir;else{_=Pr;var v=Nr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Er):_=Fr;if(_&&=_(e,r)){xr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Pt(r):window,e){case`focusin`:(br(v)||v.contentEditable===`true`)&&(qr=v,Jr=r,Yr=null);break;case`focusout`:Yr=Jr=qr=null;break;case`mousedown`:Xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Xr=!1,Zr(s,n,i);break;case`selectionchange`:if(Kr)break;case`keydown`:case`keyup`:Zr(s,n,i)}var y;if(cr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else gr?mr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(dr&&n.locale!==`ko`&&(gr||b!==`onCompositionStart`?b===`onCompositionEnd`&&gr&&(y=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,gr=!0)),v=Zf(r,b),0<v.length&&(b=new Jn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=hr(n),y!==null&&(b.data=y)))),(y=ur?_r(e,n):vr(e,n))&&(b=Zf(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),zf(s,e,r,n,i)}Wf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=H(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=H(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=H(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=H(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
|
|
10
|
+
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:qt(e,`class`,r);break;case`tabIndex`:qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:qt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){qt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=hn(r),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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),B(e,`popover`,r);break;case`xlinkActuate`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:B(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,B(e,n,r);else return}z=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!zt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[wt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}z=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):B(e,n,r)}return}z=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ip(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ip(e,t,s,c,n,null)}sn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ip(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Y(Hf[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ip(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(z=!0),o=m;break;case`name`:m!==f&&(z=!0),a=m;break;case`checked`:m!==f&&(z=!0),u=m;break;case`defaultChecked`:m!==f&&(z=!0),d=m;break;case`value`:m!==f&&(z=!0),s=m;break;case`defaultValue`:m!==f&&(z=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}tn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ip(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(z=!0),p=o;break;case`defaultValue`:o!==l&&(z=!0),c=o;break;case`multiple`:o!==l&&(z=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ip(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(z=!0),p=a;break;case`defaultValue`:a!==o&&(z=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}on(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ip(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(z=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ip(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ip(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&lp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.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 dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(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 hp(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 gp(e,t,n,r){return n=pp(n).createElement(e),n[Ct]=r,n[wt]=t,op(n,e,t),It(n),n}function _p(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 vp=null;function X(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var yp=typeof setTimeout==`function`?setTimeout:void 0,bp=typeof clearTimeout==`function`?clearTimeout:void 0,xp=typeof Promise==`function`?Promise:void 0,Sp=typeof requestAnimationFrame==`function`?requestAnimationFrame:yp,Cp=typeof queueMicrotask==`function`?queueMicrotask:xp===void 0?yp:function(e){return xp.resolve(null).then(e).catch(wp)};function wp(e){setTimeout(function(){throw e})}function Tp(e){return e===`head`}function Ep(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[kt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Uh(t)}function Dp(e,t){var n=e;e=0;do{var r=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||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Op(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function kp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ap(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function jp(e){return Ap(e.getBoundingClientRect(),getComputedStyle(e),e)}function Mp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ap(t,n,e)}function Np(e){return e.documentElement.clientHeight}function Pp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Np(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Pp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Up(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),gm(e,t))}Rp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,_m(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Gp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=Mt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function em(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Gp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),em(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),em(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=b(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function am(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`:am(n),jt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function om(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[kt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=fm(e.nextSibling),e===null)break}return null}function sm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=fm(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=fm(e.nextSibling),e===null))return null;return e}function lm(e){return e.data===`$?`||e.data===`$~`}function um(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function dm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function fm(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 pm=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return fm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function _m(e){Sp(function(){Sp(function(t){return e(t)})})}function vm(e,t,n){switch(t=pp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),jt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(e)}var Z=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=I.d;I.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=J();return e||t}function Tm(e){var t=Nt(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),It(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(Z.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Z.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!Z.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Z.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),op(r,`link`,e),It(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Ft(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Z.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);It(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Ft(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0},t),(t=Z.get(i))&&Gm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Ft(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Z.get(i))&&Gm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=we.current)?Sm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Im(n.href),t=Ft(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Im(n.href);var o=Ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Z.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Z.set(e,o)),zm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Bm(n),t=Ft(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+en(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),op(t,`link`,n),It(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+en(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,It(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),It(r),op(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,It(o),o;r=Rm(n),(a=Z.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),It(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,It(a),a):(r=n,(a=Z.get(o))&&(r=D({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Um(r,n.precedence,e));return t.instance}function Um(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[kt]||a[Ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(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 Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,It(a);return}a=t.ownerDocument||t,r=Rm(r),(i=Z.get(i))&&Wm(r,i),a=a.createElement(`link`),It(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ih.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function uh(e,t,n,r,i,a,o,s,c){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=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ki(3,null,null,t),e.current=a,a.stateNode=e,t=ka(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fo(a),e}function Q(e){return e?(e=Di,e):Di}function fh(e,t,n,r,i,a){i=Q(i),r.context===null?r.context=i:r.pendingContext=i,r=mo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ho(e,r,t),n!==null&&(Ld(n,e,t),go(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Ld(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Pd();t=yt(t);var n=wi(e,t);n!==null&&Ld(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,bh(e,t,n,r)}finally{I.p=a,F.T=i}}function yh(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,bh(e,t,n,r)}finally{I.p=a,F.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)Yf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=st(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-et(o);s.entanglements[1]|=c,o&=~c}kf(a),!(td&6)&&(yd=He()+500,Af(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Ld(s,a,2),J(),mh(a,2)}if(a=xh(r),a===null&&Yf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function xh(e){return e=vn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=Mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 Sh=e,null}function wh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ue()){case We:return 2;case Ge:return 8;case Ke:case qe:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`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 Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Nt(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=Mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,St(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,St(e.priority,function(){gh(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 Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=Nt(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ch(r||n)===null)continue;break}var a=Nt(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[wt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[wt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Pd(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),J(),t[Tt]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.1`)throw Error(i(527,qh,`19.3.1`));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{Ze=Yh.inject(Jh),Qe=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dh(e,1,!1,null,null,n,r,null,o,s,c,Wh),e[Tt]=t.current,qf(e),new Gh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function y(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:v(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var b=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},x=e=>{let t=b(e);return t.charAt(0).toUpperCase()+t.slice(1)},S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),C={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function w(e){return e!=null}function T(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??C.width,a=e.size??e.height??C.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?S(...c):S(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??C[`stroke-width`])*Number(e.size??e.width??C.width)/Number(t.size??t.width??C.width):t.strokeWidth??C[`stroke-width`];return[`svg`,{...Object.entries(C).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&w(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&w(t.width)&&{[r(`width`)]:t.width},...`height`in t&&w(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function E(e,t={}){return T(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},O=c(d(),1),k=(0,O.createContext)({}),A=()=>(0,O.useContext)(k),ee=(0,O.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=A()??{},y=!!c||D(d),[b,x,C=[]]=E(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:S(v,s),hasA11yProp:y,attributes:d});return(0,O.createElement)(b,{ref:f,...x},[...C.map(([e,t])=>(0,O.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function j(e,t=[],n=[]){let r=typeof e==`string`?y(e,t,n):e,i=(0,O.forwardRef)(({className:e,...t},n)=>(0,O.createElement)(ee,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=x(r.name)),i}var te={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};te.node;var M=j(te),N={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};N.node;var ne=j(N),re={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};re.node;var ie=j(re),ae={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};ae.node;var oe=j(ae),se={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};se.node;var P=j(se),ce={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};ce.node;var le=j(ce),ue={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ue.node;var de=j(ue),fe={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};fe.node;var pe=j(fe),me={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};me.node;var he=j(me),F={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};F.node;var I=j(F),ge={name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]};ge.node;var _e=j(ge),ve={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};ve.node;var ye=j(ve),be={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};be.node;var xe=j(be),Se={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Se.node;var Ce=j(Se),we=_();function Te(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Te(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ee(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Te(e))&&(r&&(r+=` `),r+=t);return r}var De=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Oe=Ee,ke=(e,t)=>n=>{if(t?.variants==null)return Oe(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=De(t)||De(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Oe(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ae=48,je=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-Ae-t;return n},Me=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Ne=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-Ae;n+=i>>>1^-(i&1),t[r]=n}return t},Pe=384,Fe=[],Ie=Me(je(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Le=Me(je(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Re=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,ze=(()=>{let e=Ie.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Ie[n];i<Ie[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Ie[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Ie[i];a<Ie[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Be=je(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),Ve=Me(je(`123333359346463635126536711576`)),He=je(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),Ue=je(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),We=Ne(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),Ge=(()=>{let e=new Int32Array(319).fill(-1),t=Ne(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=Ne(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),Ke=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),qe=Ne(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Je=Ne(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),Ye=Ne(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±`),Xe=new Int32Array(995),Ze=new Int32Array(995),Qe=new Int32Array(995),$e=``,et=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<qe.length;r++)for(let i of Ke[Ye[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),et[a*2]=$e.length,et[a*2+1]=i.length,$e+=i),Xe[n]=qe[r],Ze[n]=Je[r],Qe[n]=a,n++}}var tt=Ne(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),nt=Me(je(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),rt=Ne(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),it=je(`ij`),at=je(``),ot=je(`1`),st={GROUP_COUNT:Pe,customValidatorNames:Fe,edgeStart:Ie,labelStart:Le,labelText:Re,edgeTarget:ze,nodeGroup:Be,nodeVlist:Ge,vlistPat:Ve,vlistOps:He,vlistRef:Ue,vlistGroup:We,litAnchor:Xe,litGroup:Ze,litPool:Qe,poolOffsets:et,poolText:$e,adjGid:tt,adjStart:nt,adjTgt:rt,patGid:it,patTgt:at,postfixLookupGroups:ot,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},ct=`line`in Error(),lt=-1,ut=-1,dt=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},ft=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},pt=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let ee=new Uint8Array(r);for(let e=0;e<w.length;e++)ee[w[e]]=1;let j=i.length-1,te=new Uint8Array(j),M=0,N=!0;for(let e=0;e<m.length;e++){te[m[e]]=1;let t=_[g[e]*2+1];t>M&&(M=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(N=!1)}let ne=1;for(;ne<m.length*2;)ne<<=1;let re=new Int32Array(ne).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(dt(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&ne-1;for(;re[n]!==-1;)n=n+1&ne-1;re[n]=e}let ie=(e,t,n,r)=>{let i=(dt(t,n,r)^Math.imul(e,2654435761)|0)&ne-1,a=r-n;for(;;){let r=re[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&ne-1}},ae=n.cacheSize??8192,oe=n.prefix??e.prefix??``,se=oe===``?``:oe+`:`,P=se.length,ce=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),le=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ue=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,de=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=0,me=-1,he=-1,F=-1,I=-1,ge=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,_e=e=>/\s/.test(String.fromCharCode(e)),ve=(e,t,n)=>{if(pe=0,me=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)pe=1;else if(r===40&&i===41)pe=2;else return;F=t+1,I=n-1;let a=t+1;if(ge(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!ge(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(me=t+1,he=a,F=a+1)}},ye=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},be=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Se=e=>!!e&&!Number.isNaN(Number(e)),Ce=(e,t,n)=>{if(n-t<11||!ye(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ye(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ye(e,t+10,t+18,`-normal/`)},we=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Te=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Ee=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],De=(e,t,n,r)=>{if(e>=10){if(e>=25)return ce[e-25](t.slice(n,r));let i=e-10;if(pe!==we[i])return!1;if(me>=0){for(let e of Te[i])if(ye(t,me,he,e))return!0;return!1}switch(Ee[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(F,I);return le.test(e)&&!ue.test(e)}case 3:return Se(t.slice(F,I));case 4:return fe.test(t.slice(F,I));default:return de.test(t.slice(F,I))}}switch(e){case 0:return!0;case 1:return pe===0;case 2:return pe===1;case 3:return pe===2;case 4:return be.test(t.slice(n,r));case 5:return Se(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&Se(t.slice(n,r-1));case 8:return xe.test(t.slice(n,r));default:return Ce(t,n,r)}},Oe=new Set(typeof E==`string`?E.split(` `):E),ke=(e,t,n,r,i,a)=>{let o=dt(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Ae=new Map,je=new Map,Me=2,Ne=4096,Pe=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||Oe.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=je.get(s);return c===void 0&&je.set(s,c=Me++),c},Fe=new Map,Ie=r,Le=r+4096,Re=()=>Ie++,ze=2097152,Be=8192,Ve=new Int32Array(Be),He=Array(Be).fill(null),Ue=new Int32Array(Be),We=new Int32Array(Be),Ge=new Uint8Array(Be),Ke=0,qe=(e,t,n,r,i,a,o,s)=>{let c=e;if(He[e]!==null){if(He[e|1]===null)c=e|1;else if(!(Ke++&3))c=e|Ke>>2&1;else return}He[c]=t.slice(n,r),Ve[c]=i,Ue[c]=a,We[c]=o,Ge[c]=s},Je=()=>He.fill(null),Ye=256,Xe=[new Int32Array(Ye),new Int32Array(Ye),new Int32Array(Ye),new Int32Array(Ye)],[Ze,Qe,$e,et]=Xe,tt=new Uint8Array(Ye),nt=new Uint8Array(Ye),rt=()=>{Ye*=2,Xe=Xe.map(e=>{let t=new Int32Array(Ye);return t.set(e),t}),[Ze,Qe,$e,et]=Xe;let e=new Uint8Array(Ye);e.set(tt),tt=e,nt=new Uint8Array(Ye)},it=64,at=new Int32Array(it),ot=new Int32Array(it),st=new Int32Array(r),pt=2048,mt=21,ht=new Float64Array(pt),_t=new Int32Array(pt),vt=0,yt=(e,t)=>{if(e===0&&t<r)return st[t]===vt?1:(st[t]=vt,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>mt;for(;_t[i]===vt;){if(ht[i]===n)return 1;i=i+1&pt-1}return ht[i]=n,_t[i]=vt,0},bt=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?lt:ke(Fe,e,t+1,r,0,Re)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=ot[t];if(r>n)continue;let i=at[t],a=n-r;if(te[i]===1&&a>0&&a<=M){let t=e.charCodeAt(r);if(N===!1||t!==91&&t!==40){let t=ie(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;ve(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(De(d[t],e,r,n))return p[h+t]}return lt},xt=e=>{let t=e.length,n=0,c=0,u=!1;(Me>Ne||Ae.size>Ne)&&(Ae=new Map,je=new Map,Me=2,Je()),Ie>Le&&(Fe=new Map,Ie=r,Je());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&_e(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&_e(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===Ye&&rt();let _=n++;Ze[_]=p,Qe[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Ve[y]===v&&He[y]!==null&&He[y].length===g?t=y:Ve[y|1]===v&&He[y|1]!==null&&He[y|1].length===g&&(t=y|1),t>=0){let n=He[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){$e[_]=Ue[t],et[_]=We[t],tt[_]=Ge[t];continue}}}let b=p;if(P!==0){if(h-p<=P||!e.startsWith(se,p)){$e[_]=lt,qe(y,e,p,h,v,lt,0,0);continue}b=p+P}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let j=E;D-E>1&&e.charCodeAt(E)===45&&(j=E+1);let M=0,N=0,ne=0,re=-1,ie=0;(l[0]>=0||te[0]===1)&&(at[0]=0,ot[0]=j,ie=1);let ae=ut,oe=0;for(let t=j;t<D;t++)if(t===A&&(ae=N<ne?ut:M,oe=ie),M!==ut){let n=e.charCodeAt(t),r=-1;if(N<ne)o.charCodeAt(N)===n?(N++,N===ne&&(r=M=re)):M=ut;else{let e=i[M],t=i[M+1],c=ut;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(N=e+1,ne=a[i+1],re=s[i],c=M);break}}M=c}if(r>=0&&(l[r]>=0||te[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(ie===it){it*=2;let e=new Int32Array(it);e.set(at),at=e;let t=new Int32Array(it);t.set(ot),ot=t}at[ie]=r,ot[ie]=t+2,ie++}}A===D&&(ae=N<ne?ut:M,oe=ie);let ce=N<ne?ut:M,le,ue=!1;if(A>=0){if(ue=!0,le=bt(e,E,A,ae,oe),le!==lt&&le<r&&ee[le]){let t=bt(e,E,D,ce,ie);t!==lt&&t!==le&&(le=t,ue=!1)}else le===lt&&(le=bt(e,E,D,ce,ie),ue=!1)}else le=bt(e,E,D,ce,ie);let de=0,fe=0;le===lt?$e[_]=lt:(fe=+!!ue,de=b>=C?+!!O:ke(Ae,e,b,C,+!!O,e=>Pe(e,O)),$e[_]=le,tt[_]=fe,et[_]=de),qe(y,e,p,h,v,le,de,fe)}if(n===0)return``;if(n===1)return Ze[0]===0&&Qe[0]===t?e:e.slice(Ze[0],Qe[0]);if(n*k>pt){for(;n*k>pt;)pt<<=1,mt--;ht=new Float64Array(pt),_t=new Int32Array(pt)}if(Me>=ze||Ie>=ze)throw Error(`cn: too many distinct classes in one merge`);vt=vt+1|0,vt===0&&(st.fill(0),_t.fill(0),vt=1);let f=!1;for(let e=n-1;e>=0;e--){let t=$e[e];if(t===lt){nt[e]=1;continue}let n=et[e];if(yt(n,t)===1)nt[e]=0,f=!0;else if(nt[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)yt(n,x[e]);if(tt[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&yt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!nt[m]){m++;continue}let t=Ze[m],r=Qe[m],i=m+1;for(;i<n&&nt[i]&&Ze[i]===r+1&&e.charCodeAt(r)===32;)r=Qe[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},St=16384,L=new Int32Array(St*2),Ct=0,wt=1,Tt=Object.create(null),Et=Object.create(null),R=new Map,Dt=new Map,Ot=0,kt=0,At=()=>{Ct^=St,wt=wt+1|0,kt=0},jt=e=>{let t=Tt[e];if(t!==void 0)return t;let n=ft(e,0,e.length),r=(n&16383)+Ct,i=L[r]===(n^wt)||L[r^St]===(n^wt-1);return i&&(t=Et[e],t!==void 0)?(Tt[e]=t,t):(t=xt(e),i?(Tt[e]=t,++Ot>ae&&(Ot=0,Et=Tt,Tt=Object.create(null),At())):(L[r]=n^wt,++kt>St&&At()),t)},Mt=e=>{let t=R.get(e);if(t!==void 0)return t;let n=ft(e,0,e.length),r=(n&16383)+Ct,i=L[r]===(n^wt)||L[r^St]===(n^wt-1);return i&&(t=Dt.get(e),t!==void 0)?(R.set(e,t),t):(t=xt(e),i?(R.set(e,t),++Ot>ae&&(Ot=0,Dt=R,R=new Map,At())):(L[r]=n^wt,++kt>St&&At()),t)},Nt=e=>{let t=ft(e,0,e.length),n=(t&16383)+Ct;return L[n]===(t^wt)||L[n^St]===(t^wt-1)||(L[n]=t^wt,++kt>St&&At(),!1)},Pt=ae===0?xt:ct?e=>{let t=R.get(e);return t===void 0?Mt(e):t}:jt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Pt(arguments[0]):Pt(gt.apply(null,arguments))},mergeString:Pt,seenBefore:ae===0?()=>!1:Nt,mergeUncached:xt}},mt=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:mt(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},ht=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:mt(i,t);a&&(n&&(n+=` `),n+=a)}return n},gt=function(){return ht(arguments,!1)},_t=256,vt=16,yt=1024,bt=4096,xt=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(bt).fill(``),l=Array(bt).fill(``),u=Array(bt).fill(``));let i=ft(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=mt(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>vt&&(_.miss=vt,_.skip=yt,_.e.length=0,_.at=0);let u=_.e;u.length<_t?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(mt(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},St=pt(st),L=xt(St.mergeString,St);St.merge;var Ct=Object.defineProperty,wt=(e,t)=>Ct(e,`name`,{value:t,configurable:!0});function Tt(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}wt(Tt,`setRef`);function Et(...e){return t=>{let n=!1,r=e.map(e=>{let r=Tt(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Tt(e[t],null)}}}}wt(Et,`composeRefs`);function R(...e){return O.useCallback(Et(...e),e)}wt(R,`useComposedRefs`);var Dt=Object.defineProperty,Ot=(e,t)=>Dt(e,`name`,{value:t,configurable:!0});function kt(e){let t=O.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Bt(r),O.Children.forEach(r,e=>{if(It(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Rt(n)&&typeof Wt==`function`;)n=Wt(n._payload);a=Nt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=O.cloneElement(a,void 0,s):!o&&O.Children.count(r)===1&&O.isValidElement(r)&&(a=r);let c=a?Ft(a):void 0,l=R(n,c);if(!a){if(r||r===0)throw Error(o?Ut(e):Ht(e));return r}let u=Pt(i,a.props??{});return a.type!==O.Fragment&&(u.ref=n?l:c),O.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Ot(kt,`createSlot`);var At=kt(`Slot`),jt=Symbol.for(`radix.slottable`);function Mt(e){let t=Ot(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=jt,t}Ot(Mt,`createSlottable`);var Nt=Ot((e,t)=>`child`in e.props?O.isValidElement(t)?O.cloneElement(t,void 0,e.props.children(t.props.children)):null:O.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Pt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Vt(a,i))}return{...e,...n}}Ot(Pt,`mergeProps`);function Ft(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ot(Ft,`getElementRef`);function It(e){return O.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===jt}Ot(It,`isSlottable`);var Lt=Symbol.for(`react.lazy`);function Rt(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Lt&&`_payload`in e&&zt(e._payload)}Ot(Rt,`isLazyComponent`);function zt(e){return typeof e==`object`&&!!e&&`then`in e}Ot(zt,`isPromiseLike`);function Bt(e){let t=e;for(;Rt(t)&&typeof Wt==`function`;)t=Wt(t._payload);return t}Ot(Bt,`useUnwrappedLazy`);function Vt(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ot(Vt,`concatAriaDescribedby`);var Ht=Ot(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ut=Ot(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Wt=O.use,Gt=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),z=o(((e,t)=>{t.exports=Gt()})),Kt=c(h(),1),B=z(),qt=Object.defineProperty,Jt=(e,t)=>qt(e,`name`,{value:t,configurable:!0}),V=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=kt(`Primitive.${t}`),r=O.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,B.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yt(e,t){e&&Kt.flushSync(()=>e.dispatchEvent(t))}Jt(Yt,`dispatchDiscreteCustomEvent`);var Xt=Object.defineProperty,Zt=(e,t)=>Xt(e,`name`,{value:t,configurable:!0}),Qt=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),$t=O.forwardRef(Zt(function(e,t){return(0,B.jsx)(V.span,{...e,ref:t,style:{...Qt,...e.style}})},`VisuallyHidden`)),en=Object.defineProperty,tn=(e,t)=>en(e,`name`,{value:t,configurable:!0});function nn(e,t){let n=O.createContext(t);n.displayName=e+`Context`;let r=tn(e=>{let{children:t,...r}=e,i=O.useMemo(()=>r,Object.values(r));return(0,B.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=O.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return tn(i,`useContext`),[r,i]}tn(nn,`createContext`);function rn(e,t=[]){let n=[];function r(t,r){let i=O.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=tn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=O.useMemo(()=>o,Object.values(o));return(0,B.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=O.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return tn(s,`useContext`),[o,s]}tn(r,`createContext`);let i=tn(()=>{let t=n.map(e=>O.createContext(e));return tn(function(n){let r=n?.[e]||t;return O.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,an(i,...t)]}tn(rn,`createContextScope`);function an(...e){let t=e[0];if(e.length===1)return t;let n=tn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return tn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}tn(an,`composeContextScopes`);var on=globalThis?.document?O.useLayoutEffect:()=>{},sn=Object.defineProperty,cn=(e,t)=>sn(e,`name`,{value:t,configurable:!0});function ln(e){let t=e+`CollectionProvider`,[n,r]=rn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=cn(e=>{let{scope:t,children:n}=e,r=O.useRef(null),a=O.useRef(new Map).current;return(0,B.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=kt(s),l=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=R(t,a(s,n).collectionRef);return(0,B.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=kt(u),p=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=O.useRef(null),s=R(t,o),c=a(u,n);return O.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,B.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return O.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return cn(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}cn(ln,`createCollection`);var un=new WeakMap,dn=class e extends Map{static{cn(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],un.set(this,!0)}set(e,t){return un.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=mn(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=fn(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=fn(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return fn(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function fn(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=pn(e,t);return n===-1?void 0:e[n]}cn(fn,`at`);function pn(e,t){let n=e.length,r=mn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}cn(pn,`toSafeIndex`);function mn(e){return e!==e||e===0?0:Math.trunc(e)}cn(mn,`toSafeInteger`);function hn(e){let t=e+`CollectionProvider`,[n,r]=rn(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=cn(({state:e,...t})=>e?(0,B.jsx)(u,{...t,state:e}):(0,B.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=cn(e=>{let t=_();return(0,B.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=cn(e=>{let{scope:t,children:n,state:r}=e,a=O.useRef(null),[s,c]=O.useState(null),l=R(a,c),[u,d]=r,f=O.useRef(new dn),p=O.useCallback(()=>{let e=f.current;return vn(e)||e.sort(yn),e},[]);return O.useEffect(()=>{if(!s)return;let e=bn(()=>{d(e=>{let t=e.toSorted(yn);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,B.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,B.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=kt(d),p=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=R(t,a(d,n).collectionElementRef);return(0,B.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=kt(m),g=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=O.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=O.useRef(i);gn(l.current,i)||(l.current=i);let u=l.current,d=R(t,O.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);on(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=O.useRef(null);return O.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new dn(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(yn)}))}),O.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new dn(t);return n.delete(e.element),n})},[s]),(0,B.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return O.useState(new dn)}cn(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}cn(v,`useCollection`);function y(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return cn(y,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:y,useInitCollection:_}]}cn(hn,`createCollection`);function gn(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}cn(gn,`shallowEqual`);function _n(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}cn(_n,`isElementPreceding`);function vn(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}cn(vn,`isInDocumentOrder`);function yn(e,t){return!e[1].element||!t[1].element?0:_n(e[1].element,t[1].element)?-1:1}cn(yn,`sortByDocumentPosition`);function bn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}cn(bn,`getChildListObserver`);var xn=Object.defineProperty,Sn=(e,t)=>xn(e,`name`,{value:t,configurable:!0}),Cn=!!(typeof window<`u`&&window.document&&window.document.createElement);function H(e,t,{checkForDefaultPrevented:n=!0}={}){return Sn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Sn(H,`composeEventHandlers`);function wn(e){if(!Cn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Sn(wn,`getOwnerWindow`);function Tn(e){if(!Cn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Sn(Tn,`getOwnerDocument`);function En(e,t=!1){let{activeElement:n}=Tn(e);if(!n?.nodeName)return null;if(Dn(n)&&n.contentDocument)return En(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Tn(n).getElementById(e);if(t)return t}}return n}Sn(En,`getActiveElement`);function Dn(e){return e.tagName===`IFRAME`}Sn(Dn,`isFrame`);var On=Object.defineProperty,kn=(e,t)=>On(e,`name`,{value:t,configurable:!0}),An=O.useEffectEvent,jn=O.useInsertionEffect;function Mn(e){if(typeof An==`function`)return An(e);let t=O.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof jn==`function`?jn(()=>{t.current=e}):on(()=>{t.current=e}),O.useMemo(()=>((...e)=>t.current?.(...e)),[])}kn(Mn,`useEffectEvent`);var Nn=Object.defineProperty,Pn=(e,t)=>Nn(e,`name`,{value:t,configurable:!0}),Fn=O.useInsertionEffect||on;function In({prop:e,defaultProp:t,onChange:n=Pn(()=>{},`onChange`),caller:r}){let[i,a,o]=Ln({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,O.useCallback(t=>{if(s){let n=Rn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Pn(In,`useControllableState`);function Ln({defaultProp:e,onChange:t}){let[n,r]=O.useState(e),i=O.useRef(n),a=O.useRef(t);return Fn(()=>{a.current=t},[t]),O.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Pn(Ln,`useUncontrolledState`);function Rn(e){return typeof e==`function`}Pn(Rn,`isFunction`);var zn=Symbol(`RADIX:SYNC_STATE`);function Bn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Mn(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=O.useReducer((t,n)=>{if(n.type===zn)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=O.useRef(p);O.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=O.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return O.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:zn,state:i})},[i,d.state,c]),[h,f]}Pn(Bn,`useControllableStateReducer`);var Vn=Object.defineProperty,Hn=(e,t)=>Vn(e,`name`,{value:t,configurable:!0});function Un(e,t){return O.useReducer((e,n)=>t[e][n]??e,e)}Hn(Un,`useStateMachine`);var Wn=Hn(e=>{let{present:t,children:n}=e,r=Gn(t),i=typeof n==`function`?n({present:r.isPresent}):O.Children.only(n),a=qn(r.ref,Yn(i));return typeof n==`function`||r.isPresent?O.cloneElement(i,{ref:a}):null},`Presence`);function Gn(e){let[t,n]=O.useState(),r=O.useRef(null),i=O.useRef(e),a=O.useRef(`none`),o=O.useRef(void 0),[s,c]=Un(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return O.useEffect(()=>{s===`mounted`?(a.current=o.current??Jn(r.current),o.current=void 0):a.current=`none`},[s]),on(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Jn(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),on(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Hn(a=>{let o=Jn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Hn(e=>{e.target===t&&(a.current=Jn(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:O.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Jn(t)}else r.current=null;n(e)},[])}}Hn(Gn,`usePresence`);function Kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Hn(Kn,`setRef`);function qn(...e){let t=O.useRef(e);return t.current=e,O.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Kn(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Kn(n[e],null)}}},[])}Hn(qn,`useStableComposedRefs`);function Jn(e){return e?.animationName||`none`}Hn(Jn,`getAnimationName`);function Yn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Hn(Yn,`getElementRef`);var Xn=Object.defineProperty,Zn=(e,t)=>Xn(e,`name`,{value:t,configurable:!0}),Qn=O.useId||(()=>void 0),$n=0;function er(e){let[t,n]=O.useState(Qn());return on(()=>{e||n(e=>e??String($n++))},[e]),e||(t?`radix-${t}`:``)}Zn(er,`useId`);var tr=Object.defineProperty,nr=(e,t)=>tr(e,`name`,{value:t,configurable:!0}),rr={LTR:`ltr`,RTL:`rtl`},ir=O.createContext(void 0);function ar(e){let t=O.useContext(ir);return e||t||rr.LTR}nr(ar,`useDirection`);var or=Object.defineProperty,sr=(e,t)=>or(e,`name`,{value:t,configurable:!0}),cr=O.useInsertionEffect;function lr(e){let t=O.useRef(e);return typeof cr==`function`?cr(()=>{t.current=e}):on(()=>{t.current=e}),O.useMemo(()=>((...e)=>t.current?.(...e)),[])}sr(lr,`useCallbackRef`);var ur=Object.defineProperty,dr=(e,t)=>ur(e,`name`,{value:t,configurable:!0}),fr=`dismissableLayer.update`,pr=`dismissableLayer.pointerDownOutside`,mr=`dismissableLayer.focusOutside`,hr,gr=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_r=O.forwardRef(dr(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=O.useContext(gr),[d,f]=O.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=O.useState({}),h=R(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=O.useRef(!1),C=br(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:O.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=xr(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=lr(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return O.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),O.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=hr))}},[d,p,n,u]),O.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sr())},[d,u]),O.useEffect(()=>{let e=dr(()=>m({}),`handleUpdate`);return document.addEventListener(fr,e),()=>document.removeEventListener(fr,e)},[]),(0,B.jsx)(V.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,w.onFocusCapture),onBlurCapture:H(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function vr(){let e=O.useContext(gr),[t,n]=O.useState(null);return O.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}dr(vr,`useDismissableLayerSurface`);var yr=dr(()=>!0,`IS_TRUE`);function br(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=yr}=t,s=lr(e),c=O.useRef(!1),l=O.useRef(!1),u=O.useRef(new Map),d=O.useRef(()=>{});return O.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}dr(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}dr(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}dr(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}dr(p,`handleInteractionBubble`);let m=dr(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Cr(pr,s,p,{discrete:!0})};if(dr(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:dr(()=>c.current=!0,`onPointerDownCapture`)}}dr(br,`usePointerDownOutside`);function xr(e,t=globalThis?.document){let n=lr(e),r=O.useRef(!1);return O.useEffect(()=>{let e=dr(e=>{e.target&&!r.current&&Cr(mr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:dr(()=>r.current=!0,`onFocusCapture`),onBlurCapture:dr(()=>r.current=!1,`onBlurCapture`)}}dr(xr,`useFocusOutside`);function Sr(){let e=new CustomEvent(fr);document.dispatchEvent(e)}dr(Sr,`dispatchUpdate`);function Cr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yt(i,a):i.dispatchEvent(a)}dr(Cr,`handleAndDispatchCustomEvent`);var wr=Object.defineProperty,Tr=(e,t)=>wr(e,`name`,{value:t,configurable:!0}),Er=`focusScope.autoFocusOnMount`,Dr=`focusScope.autoFocusOnUnmount`,Or={bubbles:!1,cancelable:!0},kr=O.forwardRef(Tr(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=O.useState(null),u=lr(a),d=lr(o),f=O.useRef(null),p=R(t,l),m=O.useRef(i);O.useEffect(()=>{m.current=i});let h=O.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Br(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Br(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Br(c)};Tr(e,`handleFocusIn`),Tr(t,`handleFocusOut`),Tr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),O.useEffect(()=>{if(c){Vr.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Er,Or);c.addEventListener(Er,u),c.dispatchEvent(t),t.defaultPrevented||(Pr(Wr(Ir(c)),{select:!0}),document.activeElement===e&&Br(c))}return()=>{c.removeEventListener(Er,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Dr,Or);c.addEventListener(Dr,d),c.dispatchEvent(r),r.defaultPrevented||Br(e??t.body,{select:!0}),c.removeEventListener(Dr,d),Vr.remove(g)},0)}}},[c,u,d,g]);let _=O.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Fr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Br(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Br(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,B.jsx)(V.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),Ar=O.createContext(null);function jr({registry:e,children:t}){return e?(0,B.jsx)(Ar.Provider,{value:e,children:t}):t}Tr(jr,`FocusScopeBranchProvider`);function Mr(){let[e,t]=O.useState([]);return{nodes:e,registry:O.useMemo(()=>({add:Tr(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Tr(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Tr(Mr,`useFocusScopeBranchRegistry`);function Nr(e){let t=O.useContext(Ar);O.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Tr(Nr,`useFocusScopeBranch`);function Pr(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Br(r,{select:t}),document.activeElement!==n)return}Tr(Pr,`focusFirst`);function Fr(e){let t=Ir(e);return[Lr(t,e),Lr(t.reverse(),e)]}Tr(Fr,`getTabbableEdges`);function Ir(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Tr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Tr(Ir,`getTabbableCandidates`);function Lr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Rr(r,{upTo:t})))return r}Tr(Lr,`findVisible`);function Rr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Tr(Rr,`isHidden`);function zr(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Tr(zr,`isSelectableInput`);function Br(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&zr(e)&&t&&e.select()}}Tr(Br,`focus`);var Vr=Hr();function Hr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ur(e,t),e.unshift(t)},remove(t){e=Ur(e,t),e[0]?.resume()}}}Tr(Hr,`createFocusScopesStack`);function Ur(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Tr(Ur,`arrayRemove`);function Wr(e){return e.filter(e=>e.tagName!==`A`)}Tr(Wr,`removeLinks`);var Gr=Object.defineProperty,Kr=O.forwardRef(((e,t)=>Gr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=O.useState(!1);on(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Kt.createPortal((0,B.jsx)(V.div,{...r,ref:t}),o):null},`Portal`)),qr=Object.defineProperty,Jr=(e,t)=>qr(e,`name`,{value:t,configurable:!0}),Yr=0,Xr=null;function Zr(e){return Qr(),e.children}Jr(Zr,`FocusGuards`);function Qr(){O.useEffect(()=>{Xr||={start:$r(),end:$r()};let{start:e,end:t}=Xr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Yr++,()=>{Yr===1&&(Xr?.start.remove(),Xr?.end.remove(),Xr=null),Yr=Math.max(0,Yr-1)}},[])}Jr(Qr,`useFocusGuards`);function $r(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Jr($r,`createFocusGuard`);var ei=function(){return ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ei.apply(this,arguments)};function ti(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ni(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ri=`right-scroll-bar-position`,ii=`width-before-scroll-bar`,ai=`with-scroll-bars-hidden`,oi=`--removed-body-scroll-bar-size`;function si(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ci(e,t){var n=(0,O.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var li=typeof window<`u`?O.useLayoutEffect:O.useEffect,ui=new WeakMap;function di(e,t){var n=ci(t||null,function(t){return e.forEach(function(e){return si(e,t)})});return li(function(){var t=ui.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||si(e,null)}),i.forEach(function(e){r.has(e)||si(e,a)})}ui.set(n,e)},[e]),n}function fi(e){return e}function pi(e,t){t===void 0&&(t=fi);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function mi(e){e===void 0&&(e={});var t=pi(null);return t.options=ei({async:!0,ssr:!1},e),t}var hi=function(e){var t=e.sideCar,n=ti(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return O.createElement(r,ei({},n))};hi.isSideCarExport=!0;function gi(e,t){return e.useMedium(t),hi}var _i=mi(),vi=function(){},yi=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:vi,onWheelCapture:vi,onTouchMoveCapture:vi}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=ti(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=di([n,t]),C=ei(ei({},b),i);return O.createElement(O.Fragment,null,u&&O.createElement(x,{sideCar:_i,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?O.cloneElement(O.Children.only(s),ei(ei({},C),{ref:S})):O.createElement(v,ei({},C,{className:c,ref:S}),s))});yi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yi.classNames={fullWidth:ii,zeroRight:ri};var bi=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function xi(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=bi();return t&&e.setAttribute(`nonce`,t),e}function Si(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ci(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var wi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xi())&&(Si(t,n),Ci(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ti=function(){var e=wi();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ei=function(){var e=Ti();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Di={left:0,top:0,right:0,gap:0},Oi=function(e){return parseInt(e||``,10)||0},ki=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Oi(n),Oi(r),Oi(i)]},Ai=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Di;var t=ki(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ji=Ei(),Mi=`data-scroll-locked`,Ni=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
11
|
+
.${ai} {
|
|
12
|
+
overflow: hidden ${r};
|
|
13
|
+
padding-right: ${s}px ${r};
|
|
14
|
+
}
|
|
15
|
+
body[${Mi}] {
|
|
16
|
+
overflow: hidden ${r};
|
|
17
|
+
overscroll-behavior: contain;
|
|
18
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
19
|
+
padding-left: ${i}px;
|
|
20
|
+
padding-top: ${a}px;
|
|
21
|
+
padding-right: ${o}px;
|
|
22
|
+
margin-left:0;
|
|
23
|
+
margin-top:0;
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.${ri} {
|
|
29
|
+
right: ${s}px ${r};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.${ii} {
|
|
33
|
+
margin-right: ${s}px ${r};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.${ri} .${ri} {
|
|
37
|
+
right: 0 ${r};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.${ii} .${ii} {
|
|
41
|
+
margin-right: 0 ${r};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
body[${Mi}] {
|
|
45
|
+
${oi}: ${s}px;
|
|
46
|
+
}
|
|
47
|
+
`},Pi=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Fi=function(){O.useEffect(function(){return document.body.setAttribute(Mi,(Pi()+1).toString()),function(){var e=Pi()-1;e<=0?document.body.removeAttribute(Mi):document.body.setAttribute(Mi,e.toString())}},[])},Ii=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Fi();var a=O.useMemo(function(){return Ai(i)},[i]);return O.createElement(ji,{styles:Ni(a,!t,i,n?``:`!important`)})},Li=!1;if(typeof window<`u`)try{var Ri=Object.defineProperty({},"passive",{get:function(){return Li=!0,!0}});window.addEventListener(`test`,Ri,Ri),window.removeEventListener(`test`,Ri,Ri)}catch{Li=!1}var zi=Li?{passive:!1}:!1,Bi=function(e){return e.tagName===`TEXTAREA`},Vi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Bi(e)&&n[t]===`visible`)},Hi=function(e){return Vi(e,`overflowY`)},Ui=function(e){return Vi(e,`overflowX`)},Wi=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),qi(e,r)){var i=Ji(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Gi=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ki=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},qi=function(e,t){return e===`v`?Hi(t):Ui(t)},Ji=function(e,t){return e===`v`?Gi(t):Ki(t)},Yi=function(e,t){return e===`h`&&t===`rtl`?-1:1},Xi=function(e,t,n,r,i){var a=Yi(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ji(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&qi(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Zi=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qi=function(e){return[e.deltaX,e.deltaY]},$i=function(e){return e&&`current`in e?e.current:e},ea=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ta=function(e){return`
|
|
48
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
49
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
50
|
+
`},U=0,na=[];function ra(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(U++)[0],a=O.useState(Ei)[0],o=O.useRef(e);O.useEffect(function(){o.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ni([e.lockRef.current],(e.shards||[]).map($i),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=O.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Zi(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Wi(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Wi(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Xi(h,t,e,h===`h`?s:c,!0)},[]),c=O.useCallback(function(e){var n=e;if(na.length&&na[na.length-1]===a){var r=`deltaY`in n?Qi(n):Zi(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ea(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map($i).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=O.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ia(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=O.useCallback(function(e){n.current=Zi(e),r.current=void 0},[]),d=O.useCallback(function(t){l(t.type,Qi(t),t.target,s(t,e.lockRef.current))},[]),f=O.useCallback(function(t){l(t.type,Zi(t),t.target,s(t,e.lockRef.current))},[]);O.useEffect(function(){return na.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,zi),document.addEventListener(`touchmove`,c,zi),document.addEventListener(`touchstart`,u,zi),function(){na=na.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,zi),document.removeEventListener(`touchmove`,c,zi),document.removeEventListener(`touchstart`,u,zi)}},[]);var p=e.removeScrollBar,m=e.inert;return O.createElement(O.Fragment,null,m?O.createElement(a,{styles:ta(i)}):null,p?O.createElement(Ii,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ia(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var aa=gi(_i,ra),oa=O.forwardRef(function(e,t){return O.createElement(yi,ei({},e,{ref:t,sideCar:aa}))});oa.classNames=yi.classNames;var sa=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ca=new WeakMap,la=new WeakMap,ua={},da=0,fa=function(e){return e&&(e.host||fa(e.parentNode))},pa=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fa(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ma=function(e,t,n,r){var i=pa(t,Array.isArray(e)?e:[e]);ua[n]||(ua[n]=new WeakMap);var a=ua[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ca.get(e)||0)+1,l=(a.get(e)||0)+1;ca.set(e,c),a.set(e,l),o.push(e),c===1&&i&&la.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),da++,function(){o.forEach(function(e){var t=ca.get(e)-1,i=a.get(e)-1;ca.set(e,t),a.set(e,i),t||(la.has(e)||e.removeAttribute(r),la.delete(e)),i||e.removeAttribute(n)}),da--,da||(ca=new WeakMap,ca=new WeakMap,la=new WeakMap,ua={})}},ha=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||sa(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ma(r,i,n,`aria-hidden`)):function(){return null}},ga=Object.defineProperty,_a=(e,t)=>ga(e,`name`,{value:t,configurable:!0}),va=`Dialog`,[ya,ba]=rn(va),[xa,Sa]=ya(va),Ca=_a(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=O.useRef(null),c=O.useRef(null),{nodes:l,registry:u}=Mr(),[d,f]=In({prop:r,defaultProp:i??!1,onChange:a,caller:va}),[p,m]=O.useState(0),[h,g]=O.useState(0);return(0,B.jsx)(xa,{scope:t,triggerRef:s,contentRef:c,contentId:er(),titleId:er(),descriptionId:er(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:O.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),wa=`DialogPortal`,[Ta,Ea]=ya(wa,{forceMount:void 0}),Da=_a(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Sa(wa,t);return(0,B.jsx)(Ta,{scope:t,forceMount:n,children:O.Children.map(r,e=>(0,B.jsx)(Wn,{present:n||a.open,children:(0,B.jsx)(Kr,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Oa=`DialogOverlay`,ka=O.forwardRef(_a(function(e,t){let n=Ea(Oa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Sa(Oa,e.__scopeDialog);return a.modal?(0,B.jsx)(Wn,{present:r||a.open,children:(0,B.jsx)(ja,{...i,ref:t})}):null},`DialogOverlay`)),Aa=kt(`DialogOverlay.RemoveScroll`),ja=O.forwardRef(_a(function(e,t){let{__scopeDialog:n,...r}=e,i=Sa(Oa,n),a=R(t,vr());return(0,B.jsx)(oa,{as:Aa,allowPinchZoom:!0,shards:O.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,B.jsx)(V.div,{"data-state":Ha(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Ma=`DialogContent`,Na=O.forwardRef(_a(function(e,t){let n=Ea(Ma,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Sa(Ma,e.__scopeDialog);return(0,B.jsx)(Wn,{present:r||a.open,children:a.modal?(0,B.jsx)(Pa,{...i,ref:t}):(0,B.jsx)(Fa,{...i,ref:t})})},`DialogContent`)),Pa=O.forwardRef(_a(function(e,t){let n=Sa(Ma,e.__scopeDialog),r=O.useRef(null),i=R(t,n.contentRef,r);return O.useEffect(()=>{let e=r.current;if(e)return ha(e)},[]),(0,B.jsx)(Ia,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Fa=O.forwardRef(_a(function(e,t){let n=Sa(Ma,e.__scopeDialog),r=O.useRef(!1),i=O.useRef(!1);return(0,B.jsx)(Ia,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),Ia=O.forwardRef(_a(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Sa(Ma,n);return Qr(),(0,B.jsx)(jr,{registry:l.branchRegistry,children:(0,B.jsx)(kr,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(_r,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Va(o,l.descriptionId):o,"data-state":Ha(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),La=O.forwardRef(_a(function(e,t){let{__scopeDialog:n,...r}=e,i=Sa(`DialogTitle`,n),{setTitleCount:a}=i;return on(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,B.jsx)(V.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Ra=O.forwardRef(_a(function(e,t){let{__scopeDialog:n,...r}=e,i=Sa(`DialogDescription`,n),{setDescriptionCount:a}=i;return on(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,B.jsx)(V.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),za=`DialogClose`,Ba=O.forwardRef(_a(function(e,t){let{__scopeDialog:n,...r}=e,i=Sa(za,n);return(0,B.jsx)(V.button,{type:`button`,...r,ref:t,onClick:H(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Va(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_a(Va,`concatAriaDescribedby`);function Ha(e){return e?`open`:`closed`}_a(Ha,`getState`);var Ua=Object.defineProperty,Wa=(e,t)=>Ua(e,`name`,{value:t,configurable:!0});function Ga(e){let[t,n]=O.useState(void 0);return on(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}Wa(Ga,`useSize`);var Ka=Object.defineProperty,qa=(e,t)=>Ka(e,`name`,{value:t,configurable:!0}),Ja=`Checkbox`,[Ya,Xa]=rn(Ja),[Za,Qa]=Ya(Ja);function $a(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=In({prop:n,defaultProp:i??!1,onChange:c,caller:Ja}),[m,h]=O.useState(null),[g,_]=O.useState(null),[v,y]=O.useState(null),b=!m||!!o||!!m.closest(`form`),x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,userClick:v,onUserClick:y,required:l,defaultChecked:!co(i)&&i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,B.jsx)(Za,{scope:t,...x,children:so(d)?d(x):r})}qa($a,`CheckboxProvider`);var eo=`CheckboxTrigger`,to=O.forwardRef(qa(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,onUserClick:f,isFormControl:p,bubbleInput:m}=Qa(eo,e),h=R(i,u),g=O.useRef(c);return O.useEffect(()=>{let e=a?.form;if(e){let t=qa(()=>d(g.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,B.jsx)(V.button,{type:`button`,role:`checkbox`,"aria-checked":co(c)?`mixed`:c,"aria-required":l,"data-state":lo(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:h,onKeyDown:H(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:H(n,e=>{let t=e.isPropagationStopped();f({requestedChecked:co(c)?!0:!c,hasConsumerStoppedPropagation:t}),d(e=>co(e)?!0:!e),m&&p&&(t||e.stopPropagation())})})},`CheckboxTrigger`)),no=O.forwardRef(qa(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,B.jsx)($a,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(to,{...d,ref:t,__scopeCheckbox:n}),e&&(0,B.jsx)(oo,{__scopeCheckbox:n})]})})},`Checkbox`)),ro=`CheckboxIndicator`,io=O.forwardRef(qa(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Qa(ro,n);return(0,B.jsx)(Wn,{present:r||co(a.checked)||a.checked===!0,children:(0,B.jsx)(V.span,{"data-state":lo(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),ao=`CheckboxBubbleInput`,oo=O.forwardRef(qa(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,userClick:a,checked:o,defaultChecked:s,required:c,disabled:l,name:u,value:d,form:f,bubbleInput:p,setBubbleInput:m}=Qa(ao,e),h=R(r,m),g=Ga(i),_=O.useRef(!1),v=O.useRef(o),y=O.useRef(a),b=O.useRef(null);O.useEffect(()=>{let e=p;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set;if(!n)return;let r=v.current!==o;v.current=o;let i=a!==null&&a!==y.current;if(y.current=a,i)b.current=r?null:a,r&&(e.indeterminate=co(o),n.call(e,!co(o)&&o)),e.dispatchEvent(new Event(`click`,{bubbles:!a.hasConsumerStoppedPropagation}));else if(r){let t=b.current;b.current=null;let r=t?.requestedChecked===o;_.current=!0,e.indeterminate=co(o),n.call(e,!co(o)&&o),e.dispatchEvent(new Event(`click`,{bubbles:!(r&&t.hasConsumerStoppedPropagation)})),_.current=!1}},[p,o,a]);let x=O.useRef(!co(o)&&o);return(0,B.jsx)(V.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??x.current,required:c,disabled:l,name:u,value:d,form:f,...n,tabIndex:-1,ref:h,onClick:H(t,e=>{_.current&&e.stopPropagation()}),style:{...n.style,...g,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function so(e){return typeof e==`function`}qa(so,`isFunction`);function co(e){return e===`indeterminate`}qa(co,`isIndeterminate`);function lo(e){return co(e)?`indeterminate`:e?`checked`:`unchecked`}qa(lo,`getState`);var uo=[`top`,`right`,`bottom`,`left`],fo=Math.min,po=Math.max,mo=Math.round,ho=Math.floor,go=e=>({x:e,y:e}),_o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function vo(e,t,n){return po(e,fo(t,n))}function yo(e,t){return typeof e==`function`?e(t):e}function bo(e){return e.split(`-`)[0]}function xo(e){return e.split(`-`)[1]}function So(e){return e===`x`?`y`:`x`}function Co(e){return e===`y`?`height`:`width`}function wo(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function To(e){return So(wo(e))}function Eo(e,t,n){n===void 0&&(n=!1);let r=xo(e),i=To(e),a=Co(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Fo(o)),[o,Fo(o)]}function Do(e){let t=Fo(e);return[Oo(e),t,Oo(t)]}function Oo(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ko=[`left`,`right`],Ao=[`right`,`left`],jo=[`top`,`bottom`],Mo=[`bottom`,`top`];function No(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ao:ko:t?ko:Ao;case`left`:case`right`:return t?jo:Mo;default:return[]}}function Po(e,t,n,r){let i=xo(e),a=No(bo(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Oo)))),a}function Fo(e){let t=bo(e);return _o[t]+e.slice(t.length)}function Io(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Lo(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Io(e)}function Ro(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function zo(e,t,n){let{reference:r,floating:i}=e,a=wo(t),o=To(t),s=Co(o),c=bo(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=xo(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function W(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=yo(t,e),p=Lo(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ro(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ro(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Bo=50,Vo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:W},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Bo&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=zo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ho=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=yo(e,t)||{};if(l==null)return{};let d=Lo(u),f={x:n,y:r},p=To(i),m=Co(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=fo(d[_],T),D=fo(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=vo(E,k,O),ee=!c.arrow&&xo(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,j=ee?k<E?k-E:k-O:0;return{[p]:f[p]+j,data:{[p]:A,centerOffset:k-A-j,...ee&&{alignmentOffset:j}},reset:ee}}}),Uo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=yo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=bo(r),_=wo(o),v=bo(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Fo(o)]:Do(o)),x=p!==`none`;!d&&x&&b.push(...Po(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Eo(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===wo(t)||T.every(e=>wo(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=wo(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Wo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Go(e){return uo.some(t=>e[t]>=0)}var Ko=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=yo(e,t);switch(i){case`referenceHidden`:{let e=Wo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Go(e)}}}case`escaped`:{let e=Wo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Go(e)}}}default:return{}}}}},qo=new Set([`left`,`top`]);async function Jo(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=bo(n),s=xo(n),c=wo(n)===`y`,l=qo.has(o)?-1:1,u=a&&c?-1:1,d=yo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Yo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Jo(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Xo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=yo(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=wo(i),p=So(f),m=u[p],h=u[f],g=(e,t)=>vo(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Zo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=yo(e,t),u={x:n,y:r},d=wo(i),f=So(d),p=u[f],m=u[d],h=yo(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=qo.has(bo(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Qo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=yo(e,t),c=await i.detectOverflow(t,s),l=bo(n),u=xo(n),d=wo(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=fo(p-c[m],g),y=fo(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*po(c.left,c.right):S=p-2*po(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function $o(){return typeof window<`u`}function es(e){return rs(e)?(e.nodeName||``).toLowerCase():`#document`}function ts(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ns(e){return((rs(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function rs(e){return $o()?e instanceof Node||e instanceof ts(e).Node:!1}function is(e){return $o()?e instanceof Element||e instanceof ts(e).Element:!1}function as(e){return $o()?e instanceof HTMLElement||e instanceof ts(e).HTMLElement:!1}function os(e){return!$o()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ts(e).ShadowRoot}function ss(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=vs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function cs(e){return/^(table|td|th)$/.test(es(e))}function ls(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var us=/transform|translate|scale|rotate|perspective|filter/,ds=/paint|layout|strict|content/,fs=e=>!!e&&e!==`none`,ps;function ms(e){let t=is(e)?vs(e):e;return fs(t.transform)||fs(t.translate)||fs(t.scale)||fs(t.rotate)||fs(t.perspective)||!gs()&&(fs(t.backdropFilter)||fs(t.filter))||us.test(t.willChange||``)||ds.test(t.contain||``)}function hs(e){let t=bs(e);for(;as(t)&&!_s(t);){if(ms(t))return t;if(ls(t))return null;t=bs(t)}return null}function gs(){return ps??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ps}function _s(e){return/^(html|body|#document)$/.test(es(e))}function vs(e){return ts(e).getComputedStyle(e)}function ys(e){return is(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bs(e){if(es(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||os(e)&&e.host||ns(e);return os(t)?t.host:t}function xs(e){let t=bs(e);return _s(t)?(e.ownerDocument||e).body:as(t)&&ss(t)?t:xs(t)}function Ss(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xs(e),i=r===e.ownerDocument?.body,a=ts(r);if(i){let e=Cs(a);return t.concat(a,a.visualViewport||[],ss(r)?r:[],e&&n?Ss(e):[])}return t.concat(r,Ss(r,[],n))}function Cs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ws(e){let t=vs(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=as(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=mo(n)!==a||mo(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ts(e){return is(e)?e:e.contextElement}function Es(e){let t=Ts(e);if(!as(t))return go(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ws(t),o=(a?mo(n.width):n.width)/r,s=(a?mo(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ds=go(0);function Os(e){let t=ts(e);return!gs()||!t.visualViewport?Ds:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ks(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ts(e)}function As(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ts(e),o=go(1);t&&(r?is(r)&&(o=Es(r)):o=Es(e));let s=ks(a,n,r)?Os(a):go(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=ts(a),t=is(r)?ts(r):r,n=e,i=Cs(n);for(;i&&t!==n;){let e=Es(i),t=i.getBoundingClientRect(),r=vs(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ts(i),i=Cs(n)}}return Ro({width:u,height:d,x:c,y:l})}function js(e,t){let n=ys(e).scrollLeft;return t?t.left+n:As(ns(e)).left+n}function Ms(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-js(e,n),y:n.top+t.scrollTop}}function Ns(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ns(r),s=t?ls(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=go(1),u=go(0),d=as(r);if((d||!a)&&((es(r)!==`body`||ss(o))&&(c=ys(r)),d)){let e=As(r);l=Es(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ms(o,c):go(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ps(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Fs(e){let t=ys(e),n=e.ownerDocument.body,r=po(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=po(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+js(e),o=-t.scrollTop;return vs(n).direction===`rtl`&&(a+=po(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Is=25;function Ls(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ts(e),a=ns(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!gs()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(js(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Is&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Rs(e,t){let n=As(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Es(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function zs(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ls(e,n,t);else if(t===`document`)r=Fs(ns(e));else if(is(t))r=Rs(t,n);else{let n=Os(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ro(r)}function Bs(e,t){let n=t.get(e);if(n)return n;let r=Ss(e,[],!1).filter(e=>is(e)&&es(e)!==`body`),i=null,a=vs(e).position===`fixed`,o=a?bs(e):e;for(;is(o)&&!_s(o);){let e=vs(o),t=ms(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=bs(o)}return t.set(e,r),r}function Vs(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ls(t)?[]:Bs(t,this._c):[].concat(n),r],o=zs(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=zs(t,a[e],i);s=po(n.top,s),c=fo(n.right,c),l=fo(n.bottom,l),u=po(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Hs(e){let{width:t,height:n}=ws(e);return{width:t,height:n}}function Us(e,t,n){let r=as(t),i=ns(t),a=n===`fixed`,o=As(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=go(0);if((r||!a)&&((es(t)!==`body`||ss(i))&&(s=ys(t)),r)){let e=As(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=js(i));let l=i&&!r&&!a?Ms(i,s):go(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ws(e){return vs(e).position===`static`}function Gs(e,t){if(!as(e)||vs(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ns(e)===n&&(n=n.ownerDocument.body),n}function Ks(e,t){let n=ts(e);if(ls(e))return n;if(!as(e)){let t=bs(e);for(;t&&!_s(t);){if(is(t)&&!Ws(t))return t;t=bs(t)}return n}let r=Gs(e,t);for(;r&&cs(r)&&Ws(r);)r=Gs(r,t);return r&&_s(r)&&Ws(r)&&!ms(r)?n:r||hs(e)||n}var qs=async function(e){let t=this.getOffsetParent||Ks,n=this.getDimensions,r=await n(e.floating);return{reference:Us(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Js(e){return vs(e).direction===`rtl`}var Ys={convertOffsetParentRelativeRectToViewportRelativeRect:Ns,getDocumentElement:ns,getClippingRect:Vs,getOffsetParent:Ks,getElementRects:qs,getClientRects:Ps,getDimensions:Hs,getScale:Es,isElement:is,isRTL:Js};function Xs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zs(e,t,n){let r=null,i,a=ns(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ho(d),h=ho(a.clientWidth-(u+f)),g=ho(a.clientHeight-(d+p)),_=ho(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:po(0,fo(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Xs(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=ts(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Qs(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ts(e),u=i||a?[...l?Ss(l):[],...t?Ss(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Zs(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?As(e):null;c&&g();function g(){let t=As(e);h&&!Xs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var $s=Yo,ec=Xo,tc=Uo,nc=Qo,rc=Ko,ic=Ho,ac=Zo,oc=(e,t,n)=>{let r=new Map,i=n??{},a={...Ys,...i.platform,_c:r};return Vo(e,t,{...i,platform:a})},sc=typeof document<`u`?O.useLayoutEffect:function(){};function cc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!cc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function lc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uc(e,t){let n=lc(e);return Math.round(t*n)/n}function dc(e){let t=O.useRef(e);return sc(()=>{t.current=e}),t}function fc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=O.useState(r);cc(f,r)||p(r);let[m,h]=O.useState(null),[g,_]=O.useState(null),v=O.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=O.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=O.useRef(null),C=O.useRef(null),w=O.useRef(u),T=c!=null,E=dc(c),D=dc(i),k=dc(l),A=O.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),oc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};ee.current&&!cc(w.current,t)&&(w.current=t,Kt.flushSync(()=>{d(t)}))})},[f,t,n,D,k]);sc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=O.useRef(!1);sc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),sc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,A);A()}},[b,x,A,E,T]);let j=O.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),te=O.useMemo(()=>({reference:b,floating:x}),[b,x]),M=O.useMemo(()=>{let e={position:n,left:0,top:0};if(!te.floating)return e;let t=uc(te.floating,u.x),r=uc(te.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...lc(te.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,te.floating,u.x,u.y]);return O.useMemo(()=>({...u,update:A,refs:j,elements:te,floatingStyles:M}),[u,A,j,te,M])}var pc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ic({element:r.current,padding:i}).fn(n):r?ic({element:r,padding:i}).fn(n):{}}}},mc=(e,t)=>{let n=$s(e);return{name:n.name,fn:n.fn,options:[e,t]}},hc=(e,t)=>{let n=ec(e);return{name:n.name,fn:n.fn,options:[e,t]}},gc=(e,t)=>({fn:ac(e).fn,options:[e,t]}),_c=(e,t)=>{let n=tc(e);return{name:n.name,fn:n.fn,options:[e,t]}},vc=(e,t)=>{let n=nc(e);return{name:n.name,fn:n.fn,options:[e,t]}},yc=(e,t)=>{let n=rc(e);return{name:n.name,fn:n.fn,options:[e,t]}},bc=(e,t)=>{let n=pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},xc=Object.defineProperty,Sc=O.forwardRef(((e,t)=>xc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,B.jsx)(V.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,B.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),Cc=Object.defineProperty,wc=(e,t)=>Cc(e,`name`,{value:t,configurable:!0}),Tc={Partial:`partial`,Always:`always`},Ec={Optimized:`optimized`,Always:`always`},Dc=`Popper`,[Oc,kc]=rn(Dc),[Ac,jc]=Oc(Dc),Mc=wc(e=>{let{__scopePopper:t,children:n}=e,[r,i]=O.useState(null),[a,o]=O.useState(void 0);return(0,B.jsx)(Ac,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Nc=`PopperAnchor`,Pc=O.forwardRef(wc(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=jc(Nc,n),o=O.useRef(null),s=a.onAnchorChange,c=R(t,O.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=O.useRef(null);O.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Wc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,B.jsx)(V.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Fc=`PopperContent`,[Ic,Lc]=Oc(Fc),Rc=O.forwardRef(wc(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Tc.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=Ec.Optimized,onPlaced:m,...h}=e,g=jc(Fc,n),[_,v]=O.useState(null),y=R(t,v),[b,x]=O.useState(null),S=Ga(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],k=D.length>0,A={padding:E,boundary:D.filter(Hc),altBoundary:k},{refs:ee,floatingStyles:j,placement:te,isPositioned:M,middlewareData:N}=fc({strategy:`fixed`,placement:T,whileElementsMounted:wc((...e)=>Qs(...e,{animationFrame:p===Ec.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[mc({mainAxis:i+w,alignmentAxis:o}),c&&hc({mainAxis:!0,crossAxis:!1,...d===Tc.Partial?{limiter:gc()}:{},...A}),c&&_c({...A}),vc({...A,apply:wc(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&bc({element:b,padding:s}),Uc({arrowWidth:C,arrowHeight:w}),f&&yc(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),ne=g.setPlacementState;on(()=>(ne(te),()=>{ne(void 0)}),[te,ne]);let[re,ie]=Wc(te),ae=lr(m);on(()=>{M&&ae?.()},[M,ae]);let oe=N.arrow?.x,se=N.arrow?.y,P=N.arrow?.centerOffset!==0,[ce,le]=O.useState();return on(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,B.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:M?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,B.jsx)(Ic,{scope:n,placedSide:re,placedAlign:ie,onArrowChange:x,arrowX:oe,arrowY:se,shouldHideArrow:P,children:(0,B.jsx)(V.div,{"data-side":re,"data-align":ie,...h,ref:y,style:{...h.style,animation:M?h.style?.animation:`none`}})})})},`PopperContent`)),zc=`PopperArrow`,Bc={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Vc=O.forwardRef(wc(function(e,t){let{__scopePopper:n,...r}=e,i=Lc(zc,n),a=Bc[i.placedSide];return(0,B.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,B.jsx)(Sc,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Hc(e){return e!==null}wc(Hc,`isNotNull`);var Uc=wc(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Wc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Wc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}wc(Wc,`getSideAndAlignFromPlacement`);var Gc=Object.defineProperty,Kc=(e,t)=>Gc(e,`name`,{value:t,configurable:!0}),qc=!1;function Jc(){let[e,t]=O.useState(qc);return O.useEffect(()=>{qc||(qc=!0,t(!0))},[]),e}Kc(Jc,`useIsHydrated`);var Yc=O.useSyncExternalStore;function Xc(){return()=>{}}Kc(Xc,`subscribe`);function Zc(){return Yc(Xc,()=>!0,()=>!1)}Kc(Zc,`useIsHydratedModern`);var Qc=typeof Yc==`function`?Zc:Jc,$c=Object.defineProperty,el=(e,t)=>$c(e,`name`,{value:t,configurable:!0}),tl=`rovingFocusGroup.onEntryFocus`,nl={bubbles:!1,cancelable:!0},rl=`RovingFocusGroup`,[il,al,ol]=ln(rl),[sl,cl]=rn(rl,[ol]),ll={Vertical:`vertical`,Horizontal:`horizontal`},ul={LTR:`ltr`,RTL:`rtl`},[dl,fl]=sl(rl),pl=O.forwardRef(el(function(e,t){return(0,B.jsx)(il.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,B.jsx)(il.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,B.jsx)(ml,{...e,ref:t})})})},`RovingFocusGroup`)),ml=O.forwardRef(el(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=O.useRef(null),p=R(t,f),m=ar(a),[h,g]=In({prop:o,defaultProp:s??null,onChange:c,caller:rl}),[_,v]=O.useState(!1),y=lr(l),b=al(n),x=O.useRef(!1),[S,C]=O.useState(0);return O.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(tl,y),()=>e.removeEventListener(tl,y)},[y]),(0,B.jsx)(dl,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:O.useCallback(e=>g(e),[g]),onItemShiftTab:O.useCallback(()=>v(!0),[]),onFocusableItemAdd:O.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:O.useCallback(()=>C(e=>e-1),[]),children:(0,B.jsx)(V.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:H(e.onMouseDown,()=>{x.current=!0}),onFocus:H(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(tl,nl);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);bl([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:H(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),hl=`RovingFocusGroupItem`,gl=O.forwardRef(el(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=er(),l=a||c,u=fl(hl,n),d=u.currentTabStopId===l,f=al(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Qc();return on(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),O.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,B.jsx)(il.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,B.jsx)(V.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:H(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:H(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:H(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=yl(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?xl(n,r+1):n.slice(r+1)}setTimeout(()=>bl(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),_l={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function vl(e,t){return t===ul.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}el(vl,`getDirectionAwareKey`);function yl(e,t,n){let r=vl(e.key,n);if(!(t===ll.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===ll.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return _l[r]}el(yl,`getFocusIntent`);function bl(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}el(bl,`focusFirst`);function xl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}el(xl,`wrapArray`);var Sl=Object.defineProperty,Cl=(e,t)=>Sl(e,`name`,{value:t,configurable:!0}),wl=[`Enter`,` `],Tl=[`ArrowDown`,`PageUp`,`Home`],El=[`ArrowUp`,`PageDown`,`End`],Dl=[...Tl,...El];[...wl],[...wl];var Ol=`Menu`,[kl,Al,jl]=ln(Ol),[Ml,Nl]=rn(Ol,[jl,kc,cl]),Pl=kc(),Fl=cl(),[Il,Ll]=Ml(Ol),[Rl,zl]=Ml(Ol),Bl=Cl(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Pl(t),[c,l]=O.useState(null),u=O.useRef(!1),d=lr(a),f=ar(i);return O.useEffect(()=>{let e=Cl(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=Cl(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),O.useEffect(()=>{if(!n)return;let e=Cl(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,B.jsx)(Mc,{...s,children:(0,B.jsx)(Il,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,B.jsx)(Rl,{scope:t,onClose:O.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Vl=O.forwardRef(Cl(function(e,t){let{__scopeMenu:n,...r}=e,i=Pl(n);return(0,B.jsx)(Pc,{...i,...r,ref:t})},`MenuAnchor`)),Hl=`MenuPortal`,[Ul,Wl]=Ml(Hl,{forceMount:void 0}),Gl=Cl(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Ll(Hl,t);return(0,B.jsx)(Ul,{scope:t,forceMount:n,children:(0,B.jsx)(Wn,{present:n||a.open,children:(0,B.jsx)(Kr,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Kl=`MenuContent`,[ql,Jl]=Ml(Kl),Yl=O.forwardRef(Cl(function(e,t){let n=Wl(Kl,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ll(Kl,e.__scopeMenu),o=zl(Kl,e.__scopeMenu);return(0,B.jsx)(kl.Provider,{scope:e.__scopeMenu,children:(0,B.jsx)(Wn,{present:r||a.open,children:(0,B.jsx)(kl.Slot,{scope:e.__scopeMenu,children:o.modal?(0,B.jsx)(Xl,{...i,ref:t}):(0,B.jsx)(Zl,{...i,ref:t})})})})},`MenuContent`)),Xl=O.forwardRef(Cl(function(e,t){let n=Ll(Kl,e.__scopeMenu),r=O.useRef(null),i=R(t,r);return O.useEffect(()=>{let e=r.current;if(e)return ha(e)},[]),(0,B.jsx)($l,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Zl=O.forwardRef(Cl(function(e,t){let n=Ll(Kl,e.__scopeMenu);return(0,B.jsx)($l,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Ql=kt(`MenuContent.ScrollLock`),$l=O.forwardRef(Cl(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Ll(Kl,n),_=zl(Kl,n),v=Pl(n),y=Fl(n),b=Al(n),[x,S]=O.useState(null),C=O.useRef(null),[w,T]=O.useState(null);Nr(w);let{nodes:E,registry:D}=Mr(),k=!!(i||m),A=R(t,C,g.onContentChange,T),ee=O.useRef(0),j=O.useRef(``),te=O.useRef(0),M=O.useRef(null),N=O.useRef(`right`),ne=O.useRef(0),re=O.useMemo(()=>m?[C,...E.map(e=>({current:e}))]:[],[C,E,m]),ie=m?oa:O.Fragment,ae=m?{as:Ql,allowPinchZoom:!0,shards:re}:void 0,oe=Cl(e=>{let t=j.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=vu(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){j.current=e,window.clearTimeout(ee.current),e!==``&&(ee.current=window.setTimeout(()=>s(``),1e3))}Cl(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);O.useEffect(()=>()=>window.clearTimeout(ee.current),[]),Qr();let se=O.useCallback(e=>N.current===M.current?.side&&bu(e,M.current?.area),[]);return(0,B.jsx)(ql,{scope:n,searchRef:j,onItemEnter:O.useCallback(e=>{se(e)&&e.preventDefault()},[se]),onItemLeave:O.useCallback(e=>{se(e)||(C.current?.focus(),S(null))},[se]),onTriggerLeave:O.useCallback(e=>{se(e)&&e.preventDefault()},[se]),pointerGraceTimerRef:te,onPointerGraceIntentChange:O.useCallback(e=>{M.current=e},[]),children:(0,B.jsx)(jr,{registry:k?D:null,children:(0,B.jsx)(ie,{...ae,children:(0,B.jsx)(kr,{asChild:!0,trapped:i,branches:E,onMountAutoFocus:H(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,B.jsx)(_r,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,B.jsx)(pl,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:H(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,B.jsx)(Rc,{role:`menu`,"aria-orientation":`vertical`,"data-state":pu(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:A,style:{outline:`none`,...h.style},onKeyDown:H(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&oe(e.key));let i=C.current;if(e.target!==i||!Dl.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);El.includes(e.key)&&a.reverse(),gu(a)}),onBlur:H(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(ee.current),j.current=``)}),onPointerMove:H(e.onPointerMove,xu(e=>{let t=e.target,n=ne.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>ne.current?`right`:`left`;N.current=t,ne.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),eu=`MenuItem`,tu=`menu.itemSelect`,nu=O.forwardRef(Cl(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=O.useRef(null),o=zl(eu,e.__scopeMenu),s=Jl(eu,e.__scopeMenu),c=R(t,a),l=O.useRef(!1),u=Cl(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(tu,{bubbles:!0,cancelable:!0});e.addEventListener(tu,e=>r?.(e),{once:!0}),Yt(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,B.jsx)(ru,{...i,ref:c,disabled:n,onClick:H(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:H(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:H(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&wl.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),ru=O.forwardRef(Cl(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Jl(eu,n),s=Fl(n),c=O.useRef(null),l=R(t,c),[u,d]=O.useState(!1),[f,p]=O.useState(``);return O.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,B.jsx)(kl.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,B.jsx)(gl,{asChild:!0,...s,focusable:!r,children:(0,B.jsx)(V.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:H(e.onPointerMove,xu(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:H(e.onPointerLeave,xu(e=>o.onItemLeave(e))),onFocus:H(e.onFocus,()=>d(!0)),onBlur:H(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),iu=O.forwardRef(Cl(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,B.jsx)(cu,{scope:e.__scopeMenu,checked:n,children:(0,B.jsx)(nu,{role:`menuitemcheckbox`,"aria-checked":mu(n)?`mixed`:n,...i,ref:t,"data-state":hu(n),onSelect:H(i.onSelect,()=>r?.(mu(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[au,ou]=Ml(`MenuRadioGroup`,{value:void 0,onValueChange:Cl(()=>{},`onValueChange`)}),su=`MenuItemIndicator`,[cu,lu]=Ml(su,{checked:!1}),uu=O.forwardRef(Cl(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=lu(su,n);return(0,B.jsx)(Wn,{present:r||mu(a.checked)||a.checked===!0,children:(0,B.jsx)(V.span,{...i,ref:t,"data-state":hu(a.checked)})})},`MenuItemIndicator`)),[du,fu]=Ml(`MenuSub`);function pu(e){return e?`open`:`closed`}Cl(pu,`getOpenState`);function mu(e){return e===`indeterminate`}Cl(mu,`isIndeterminate`);function hu(e){return mu(e)?`indeterminate`:e?`checked`:`unchecked`}Cl(hu,`getCheckedState`);function gu(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}Cl(gu,`focusFirst`);function _u(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Cl(_u,`wrapArray`);function vu(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=_u(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Cl(vu,`getNextMatch`);function yu(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Cl(yu,`isPointInPolygon`);function bu(e,t){return t?yu({x:e.clientX,y:e.clientY},t):!1}Cl(bu,`isPointerInGraceArea`);function xu(e){return t=>t.pointerType===`mouse`?e(t):void 0}Cl(xu,`whenMouse`);var Su=Object.defineProperty,Cu=(e,t)=>Su(e,`name`,{value:t,configurable:!0}),wu=`DropdownMenu`,[Tu,Eu]=rn(wu,[Nl]),Du=Nl(),[Ou,ku]=Tu(wu),Au=Cu(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Du(t),l=O.useRef(null),[u,d]=In({prop:i,defaultProp:a??!1,onChange:o,caller:wu});return(0,B.jsx)(Ou,{scope:t,triggerId:er(),triggerRef:l,contentId:er(),open:u,onOpenChange:d,onOpenToggle:O.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,B.jsx)(Bl,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),ju=`DropdownMenuTrigger`,Mu=O.forwardRef(Cu(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=ku(ju,n),o=Du(n),s=R(t,a.triggerRef);return(0,B.jsx)(Vl,{asChild:!0,...o,children:(0,B.jsx)(V.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:H(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:H(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Nu=Cu(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Du(t);return(0,B.jsx)(Gl,{...r,...n})},`DropdownMenuPortal`),Pu=`DropdownMenuContent`,Fu=O.forwardRef(Cu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=ku(Pu,n),a=Du(n),o=O.useRef(!1);return(0,B.jsx)(Yl,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:H(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Iu=O.forwardRef(Cu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Du(n);return(0,B.jsx)(nu,{...i,...r,ref:t})},`DropdownMenuItem`)),Lu=O.forwardRef(Cu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Du(n);return(0,B.jsx)(iu,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),Ru=O.forwardRef(Cu(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Du(n);return(0,B.jsx)(uu,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),zu=Object.defineProperty,Bu=(e,t)=>zu(e,`name`,{value:t,configurable:!0}),Vu=`Popover`,[Hu,Uu]=rn(Vu,[kc]),Wu=kc(),[Gu,Ku]=Hu(Vu),qu=Bu(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Wu(t),c=O.useRef(null),[l,u]=O.useState(!1),[d,f]=O.useState(0),[p,m]=O.useState(0),[h,g]=In({prop:r,defaultProp:i??!1,onChange:a,caller:Vu});return(0,B.jsx)(Mc,{...s,children:(0,B.jsx)(Gu,{scope:t,contentId:er(),titleId:er(),descriptionId:er(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:h,onOpenChange:g,onOpenToggle:O.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:l,onCustomAnchorAdd:O.useCallback(()=>u(!0),[]),onCustomAnchorRemove:O.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Ju=`PopoverAnchor`,Yu=O.forwardRef(Bu(function(e,t){let{__scopePopover:n,...r}=e,i=Ku(Ju,n),a=Wu(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return O.useEffect(()=>(o(),()=>s()),[o,s]),(0,B.jsx)(Pc,{...a,...r,ref:t})},`PopoverAnchor`)),Xu=`PopoverTrigger`,Zu=O.forwardRef(Bu(function(e,t){let{__scopePopover:n,...r}=e,i=Ku(Xu,n),a=Wu(n),o=R(t,i.triggerRef),s=(0,B.jsx)(V.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":od(i.open),...r,ref:o,onClick:H(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,B.jsx)(Pc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),Qu=`PopoverPortal`,[$u,ed]=Hu(Qu,{forceMount:void 0}),td=Bu(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Ku(Qu,t);return(0,B.jsx)($u,{scope:t,forceMount:n,children:(0,B.jsx)(Wn,{present:n||a.open,children:(0,B.jsx)(Kr,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),nd=`PopoverContent`,G=O.forwardRef(Bu(function(e,t){let n=ed(nd,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Ku(nd,e.__scopePopover);return(0,B.jsx)(Wn,{present:r||a.open,children:a.modal?(0,B.jsx)(rd,{...i,ref:t}):(0,B.jsx)(id,{...i,ref:t})})},`PopoverContent`)),K=kt(`PopoverContent.RemoveScroll`),rd=O.forwardRef(Bu(function(e,t){let n=Ku(nd,e.__scopePopover),r=O.useRef(null),i=R(t,r),a=O.useRef(!1),{nodes:o,registry:s}=Mr();return O.useEffect(()=>{let e=r.current;if(e)return ha(e)},[]),(0,B.jsx)(oa,{as:K,allowPinchZoom:!0,shards:O.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,B.jsx)(ad,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:H(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),id=O.forwardRef(Bu(function(e,t){let n=Ku(nd,e.__scopePopover),r=O.useRef(!1),i=O.useRef(!1);return(0,B.jsx)(ad,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),ad=O.forwardRef(Bu(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,"aria-describedby":d,branchNodes:f,branchRegistry:p,...m}=e,h=Ku(nd,n),g=Wu(n),[_,v]=O.useState(null),y=R(t,v);return Nr(_),Qr(),(0,B.jsx)(jr,{registry:p,children:(0,B.jsx)(kr,{asChild:!0,loop:!0,trapped:r,branches:f,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(_r,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,B.jsx)(Rc,{"data-state":od(h.open),role:`dialog`,id:h.contentId,"aria-labelledby":h.titlePresent?h.titleId:void 0,"aria-describedby":h.descriptionPresent?sd(d,h.descriptionId):d,...g,...m,ref:y,style:{...m.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function od(e){return e?`open`:`closed`}Bu(od,`getState`);function sd(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Bu(sd,`concatAriaDescribedby`);var cd=Object.defineProperty,q=(e,t)=>cd(e,`name`,{value:t,configurable:!0}),[ld,ud]=rn(`Tooltip`,[kc]),dd=kc(),fd=`TooltipProvider`,pd=700,md=`tooltip.open`,[hd,gd]=ld(fd),_d=q(e=>{let{__scopeTooltip:t,delayDuration:n=pd,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=O.useRef(!0),s=O.useRef(!1),c=O.useRef(0);return O.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,B.jsx)(hd,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:O.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:O.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:O.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),vd=`Tooltip`,[yd,bd]=ld(vd),xd=q(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=gd(vd,e.__scopeTooltip),l=dd(t),[u,d]=O.useState(null),[f,p]=O.useState(void 0),m=er(),h=O.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=O.useRef(!1),[y,b]=In({prop:r,defaultProp:i??!1,onChange:q(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(md))):c.onClose(),a?.(e)},`onChange`),caller:vd}),x=O.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=O.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=O.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);O.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,B.jsx)(Mc,{...l,children:(0,B.jsx)(yd,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:O.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:O.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),Sd=`TooltipTrigger`,Cd=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=bd(Sd,n),o=gd(Sd,n),s=dd(n),c=R(t,O.useRef(null),a.onTriggerChange),l=O.useRef(!1),u=O.useRef(!1),d=O.useCallback(()=>l.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,B.jsx)(Pc,{asChild:!0,...s,children:(0,B.jsx)(V.button,{"aria-describedby":a.open?Bd(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:H(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:H(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:H(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:H(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:H(e.onBlur,a.onClose),onClick:H(e.onClick,a.onClose)})})},`TooltipTrigger`)),wd=`TooltipPortal`,[Td,Ed]=ld(wd,{forceMount:void 0}),Dd=q(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=bd(wd,t);return(0,B.jsx)(Td,{scope:t,forceMount:n,children:(0,B.jsx)(Wn,{present:n||a.open,children:(0,B.jsx)(Kr,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Od=`TooltipContent`,kd=O.forwardRef(q(function(e,t){let n=Ed(Od,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=bd(Od,e.__scopeTooltip);return(0,B.jsx)(Wn,{present:r||o.open,children:o.disableHoverableContent?(0,B.jsx)(Md,{side:i,...a,ref:t}):(0,B.jsx)(Ad,{side:i,...a,ref:t})})},`TooltipContent`)),Ad=O.forwardRef(q(function(e,t){let n=bd(Od,e.__scopeTooltip),r=gd(Od,e.__scopeTooltip),i=O.useRef(null),a=R(t,i),[o,s]=O.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=O.useCallback(()=>{s(null),d(!1)},[d]),p=O.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Fd(r,Pd(r,n.getBoundingClientRect())),a=Id(t.getBoundingClientRect()),o=Rd([...i,...a]);s(o),d(!0)},[d]);return O.useEffect(()=>()=>f(),[f]),O.useEffect(()=>{if(c&&u){let e=q(e=>p(e,u),`handleTriggerLeave`),t=q(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),O.useEffect(()=>{if(o){let e=q(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ld(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,B.jsx)(Md,{...e,ref:a})},`TooltipContentHoverable`)),jd=Mt(`TooltipContent`),Md=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=bd(Od,n),u=dd(n),{onClose:d}=l,[f,p]=O.useState(null),m=R(t,p);Nr(f),O.useEffect(()=>(document.addEventListener(md,d),()=>document.removeEventListener(md,d)),[d]),O.useEffect(()=>{if(l.trigger){let e=q(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return on(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,B.jsx)(_r,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,B.jsxs)(Rc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,B.jsx)(jd,{children:r}),i?(0,B.jsx)($t,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Nd=O.forwardRef(q(function(e,t){let{__scopeTooltip:n,...r}=e,i=dd(n);return(0,B.jsx)(Vc,{...i,...r,ref:t})},`TooltipArrow`));function Pd(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}q(Pd,`getExitSideFromRect`);function Fd(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}q(Fd,`getPaddedExitPoints`);function Id(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}q(Id,`getPointsFromRect`);function Ld(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}q(Ld,`isPointInPolygon`);function Rd(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),zd(t)}q(Rd,`getHull`);function zd(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}q(zd,`getHullPresorted`);function Bd(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}q(Bd,`concatAriaDescribedby`);var Vd=ke(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function J({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?At:`button`;return(0,B.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:L(Vd({variant:t,size:n,className:e})),...i})}var Hd=/^\/s\/[^/]+/.exec(location.pathname)?.[0]??``,Ud=class extends Error{status;constructor(e,t){super(t),this.status=e}},Wd=400;async function Gd(e,t,n,r=!1){let i=await fetch(`${Hd}${t}`,{method:e,headers:n===void 0?{}:{"content-type":`application/json`},...n===void 0?{}:{body:JSON.stringify(n)}});if(i.status===409&&e!==`GET`&&!r)return await new Promise(e=>setTimeout(e,Wd)),Gd(e,t,n,!0);let a=await i.text();if(!i.ok)throw new Ud(i.status,Kd(a)??`${e} ${t} failed with ${i.status}`);return JSON.parse(a===``?`{}`:a)}function Kd(e){try{let t=JSON.parse(e);return typeof t==`object`&&t&&`error`in t?String(t.error):null}catch{return null}}var qd={state:()=>Gd(`GET`,`/api/state`),comment:async e=>{let t=await Gd(`POST`,`/api/comments`,e);return e.kind===`question`&&await Gd(`POST`,`/api/excluded`,{comment:t.id,excluded:!0}).catch(()=>void 0),t},reply:(e,t)=>Gd(`POST`,`/api/comments/${e}/replies`,{author:`reviewer`,body:t}),decide:(e,t,n)=>Gd(`POST`,`/api/concerns/${e}`,{decision:t,...n===void 0?{}:{severity:n}}),resolve:(e,t)=>Gd(`POST`,`/api/resolved`,{comment:e,resolved:t}),submit:e=>Gd(`POST`,`/api/submit`,e.trim()===``?{}:{summary:e}),exclude:(e,t)=>Gd(`POST`,`/api/excluded`,{[e.startsWith(`k_`)?`concern`:`comment`]:e,excluded:t}),dismissOffer:e=>Gd(`POST`,`/api/offers/${encodeURIComponent(e)}/dismiss`),report:()=>Gd(`GET`,`/api/report?format=json`),end:()=>Gd(`POST`,`/api/end`),coverage:()=>Gd(`GET`,`/api/coverage`).catch(e=>{if(e instanceof Ud&&e.status===404)return null;throw e}),definition:(e,t)=>Gd(`GET`,`/api/definition?${new URLSearchParams({name:e,from:t})}`)};function Jd(e){if(e.path===null)return null;let t=e.newLine===null?e.oldLine===null?null:{end:e.oldLine,start:e.startOldLine,label:`old`}:{end:e.newLine,start:e.startNewLine,label:`new`};if(t===null)return e.path;let n=t.start===null||t.start===t.end?`${t.end}`:`${t.start}-${t.end}`;return`${e.path}:${n} (${t.label})`}function Yd(e,t,n){return(n===null?void 0:t.get(n))??!e.excluded}var Xd=`
|
|
51
|
+
|
|
52
|
+
<details><summary>Answer</summary>
|
|
53
|
+
|
|
54
|
+
`;function Zd(e){let t=e.indexOf(Xd);return t===-1?{said:e,answer:null}:{said:e.slice(0,t),answer:e.slice(t+38).replace(/\n\n<\/details>\s*$/,``)}}function Qd(e,t){let{id:n}=e;if(n!==void 0)return{id:n,comment:t.comments.find(e=>e.id===n)??t.carried?.find(e=>e.comment.id===n)?.comment??null};if(e.kind===`concern`){let n=t.commits.flatMap(e=>e.concerns??[]).find(t=>e.body.includes(t.text));return n===void 0?null:{id:n.id,comment:null}}let{said:r}=Zd(e.body),i=t.comments.find(t=>t.author!==`agent`&&t.kind===`question`==(e.kind===`question`)&&(r===t.body||r.endsWith(`\n\n${t.body}`)));return i===void 0?null:{id:i.id,comment:i}}function $d(e){return`${e.map(e=>`**${Jd(e)??`General`}**\n\n${e.body.trim()}`).join(`
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
`)}\n`}function ef(e){return e.changed===void 0?null:`code ${e.changed.gone?`gone`:`changed`} after v${e.changed.since}`}function tf(e){return e.endsWith(`/report`)?`report`:`review`}function nf(e){history.pushState(null,``,`${Hd}/${e===`report`?`report`:``}`),window.dispatchEvent(new PopStateEvent(`popstate`)),window.scrollTo(0,0)}function rf(){let[e,t]=(0,O.useState)(()=>tf(location.pathname));return(0,O.useEffect)(()=>{let e=()=>t(tf(location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),e}function af(e,t){if(e.select.kind===`rest`||t===null)return!0;let n=new Set(e.select.changes);return t.some(e=>n.has(e))}function of(e,t,n){let r=t?.at;if(r!==void 0&&r.commit>=1&&r.commit<=n.length)return{commit:r.commit-1,unit:r.unit??null,continues:[]};let{anchor:i}=e;if(i.kind!==`hunk`)return null;let[a,...o]=n.flatMap((e,t)=>e.refs.some(e=>e.unit===i.unit&&af(e,i.changes))?[t]:[]);return a===void 0?null:{commit:a,unit:i.unit,continues:o}}function sf(e,t,n,r=new Set){return e===null?[]:e.comments.filter(e=>e.kind===`question`&&!r.has(e.id)).map(r=>{let i=e.responses.find(e=>e.comment===r.id)??null;return{id:r.id,comment:r,response:i,resolved:t.includes(r.id),place:of(r,i,n)}})}function cf(e,t,n,r){return e.filter(e=>e.place===null||e.place.commit!==t?!1:(e.place.unit!==null&&r.includes(e.place.unit)?e.place.unit:null)===n)}function lf(e,t){let{anchor:n,context:r}=e.comment,i=e.place?.commit??0,a={kind:`plan`};return n.kind===`hunk`&&e.place?.unit?a={kind:`hunk`,unit:e.place.unit,commit:i,changes:n.changes}:(n.kind===`message`||n.kind===`position`)&&(a={kind:n.kind,commit:i}),{anchor:a,context:r,body:t,kind:`question`,follows:e.id}}function uf(e){if(e===null)return{answered:0,asked:0};let t=new Set(e.comments.filter(e=>e.kind===`question`).map(e=>e.id));return{answered:e.responses.filter(e=>e.status===`answered`&&t.has(e.comment)).length,asked:t.size}}function df(e){return e.split(`
|
|
59
|
+
`)[0]??``}function ff(e){return e.split(`
|
|
60
|
+
`).slice(1).join(`
|
|
61
|
+
`).trim()}var pf=e=>e.replace(/\s+/g,` `).trim().toLowerCase();function mf(e){let t=e.narration?.trim()??``;if(t===``)return null;let n=ff(e.message);return n!==``&&pf(n)===pf(t)?null:t}function hf(e,t){let n=new Map;for(let r of e.refs){let e=t.get(r.unit);if(e===void 0)continue;let i=n.get(e.path)??[];i.push({ref:r,unit:e}),n.set(e.path,i)}return[...n].map(([e,t])=>({path:e,parts:t.sort((e,t)=>gf(e.unit)-gf(t.unit))}))}function gf(e){return e.kind===`hunk`?e.oldStart:-1}function _f(e){return JSON.stringify(e.refs.map(e=>[e.unit,e.select]))}function vf(e){let t=e.flatMap(e=>e.old===null?[]:[e.old]),n=e.flatMap(e=>e.new===null?[]:[e.new]),r=e=>`${e[0]??0},${e.length}`;return`@@ -${r(t)} +${r(n)} @@`}var yf={story:`The story`,steps:`The steps`,details:`The details`,wiring:`Wiring`};function bf(e){return e.section??null}function xf(e){return yf[e]}function Sf(e){let t=new Map;for(let n of e)for(let e of n.refs){if(e.select.kind!==`lines`)continue;let r=t.get(e.unit)??new Map;for(let t of e.select.changes)r.set(t,n.index);t.set(e.unit,r)}return t}function Cf(e,t){let n=t.get(e.id);return Array.from({length:e.changeCount},(e,t)=>n?.get(t))}function wf(e,t,n){let r=[];return e.forEach((e,i)=>{let a=e.op===` `?void 0:t[e.change];if(e.op===` `||a===void 0||a===n){r.push({kind:`line`,line:i,mine:a===n});return}let o=a>n;if(e.op===`-`?o:!o){r.push({kind:`line`,line:i,mine:!1});return}if(e.op===`-`)return;let s=r.at(-1);s?.kind===`fold`&&s.commit===a?r[r.length-1]={...s,lines:[...s.lines,i]}:r.push({kind:`fold`,lines:[i],commit:a})}),r}function Tf(e){let t=new Map,n=e.flatMap(e=>e.kind===`hunk`?[e]:[]),r=new Map;for(let e of[...n].sort((e,t)=>e.oldStart-t.oldStart)){let n=e.oldStart+1,i=e.oldStart+1+(r.get(e.path)??0);t.set(e.id,e.body.map(e=>e.op===`-`?{old:n++,new:null}:e.op===`+`?{old:null,new:i++}:{old:n++,new:i++}));let a=e.body.reduce((e,t)=>e+(t.op===`+`?1:t.op===`-`?-1:0),0);r.set(e.path,(r.get(e.path)??0)+a)}return t}var Ef=/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?(?:function\*?|class|def|fn|func|interface|struct|enum|impl|trait|module)\s+([A-Za-z_$][\w$]*)/;function Df(e,t){for(let n=t;n>=0;--n){let t=e[n];if(t===void 0||t.op===`-`)continue;let r=Ef.exec(t.text)?.[1];if(r!==void 0)return r}return null}function Of(e){let t=[];for(let n of e){let e=t.at(-1);e!==void 0&&n===e[1]+1?e[1]=n:t.push([n,n])}return t.map(([e,t])=>e===t?`${e}`:`${e}-${t}`).join(`, `)}function kf(e,t,n){let r=[...new Set(n)].sort((e,t)=>e-t),i=[],a=[];for(let n of r){let r=t[n];e[n]?.op===`-`?r?.old!=null&&a.push(r.old):r?.new!=null&&i.push(r.new)}let o=i.length+a.length>1,s=[];if(i.length>0&&s.push(`${o?`lines`:`line`} ${Of(i)}`),a.length>0){let e=i.length>0?`old`:o?`old lines`:`old line`;s.push(`${e} ${Of(a)}`)}return s.join(`, `)}function Af(e,t,n){let r=0,i=0;for(let a of e.refs){let o=t.get(a.unit);if(o?.kind!==`hunk`)continue;let s=Cf(o,n);for(let t of o.body)t.op!==` `&&s[t.change]===e.index&&(t.op===`+`?r+=1:i+=1)}return{added:r,removed:i}}function jf(e,t,n){let[r,i]=t<=n?[t,n]:[n,t];return e.filter(e=>e>=r&&e<=i)}function Mf(e,t,n,r){return r&&t!==null?{from:t.from,lines:jf(e,t.from,n)}:t!==null&&t.lines.length===1&&t.lines[0]===n?null:{from:n,lines:[n]}}function Nf(e,t,n){let r=e.indexOf(t);return r===-1?e[0]??t:e[Math.max(0,Math.min(e.length-1,r+n))]??t}function Pf(e,t){let n=[...new Set(t)].sort((e,t)=>e-t),r=n.flatMap(t=>{let n=e.body[t];return n===void 0||n.op===` `||e.owners[n.change]!==e.commit?[]:[n.change]});return{kind:`hunk`,unit:e.id,commit:e.commit,changes:r,offsets:n}}function Ff(e,t){return[...t].sort((e,t)=>e-t).flatMap(t=>{let n=e[t];return n===void 0?[]:[n.text.replace(/\n$/,``)]})}function If(e,t){let n=new Set(t);return e.flatMap((e,t)=>e.op!==` `&&n.has(e.change)?[t]:[])}function Lf(e,t){return e.offsets===void 0?e.changes===null?[]:If(t,e.changes):e.offsets.filter(e=>e<t.length)}function Rf(e,t){return e.filter(e=>t.has(e)).at(-1)??null}function zf(e,t,n){return t===null||n===null?null:{from:t,lines:jf(e,t,n)}}function Bf(e,t,n){return If(t,e??[]).filter(e=>n.includes(e)).at(-1)??n.at(-1)??null}function Vf(e,t){return e.flatMap(e=>e.refs.some(e=>e.unit===t)?[e.index]:[])}function Hf(e,t,n){return n===null?null:e.filter(e=>e.refs.some(e=>t.get(e.unit)?.path===n)).at(-1)?.index??null}function Uf(e,t,n){if(n===null)return[];let r=-1,i=1/0;for(let[a,o]of e.entries()){let e=t[a]?.new;o.op!==`-`&&e!=null&&Math.abs(e-n)<i&&(r=a,i=Math.abs(e-n))}return r===-1?[]:[r]}function Wf(e,t){let n=df(t);return n===``?null:e.find(e=>df(e.message)===n)?.index??null}function Y(e,t){let n=null,r=1/0;for(let i of t)for(let t of e)Math.abs(i-t)<r&&(n=i,r=Math.abs(i-t));return n}function Gf(e){let{carried:t=[],commits:n}=e,r=new Map(e.units.map(e=>[e.id,e])),i=Sf(n),a=Tf(e.units);return t.flatMap(e=>{let{comment:t}=e,{anchor:o}=t;if(o.kind===`plan`)return[{comment:t,carried:e,kind:`same`,commit:null,unit:null,row:null}];let s=Wf(n,t.context.commitMessage);if(o.kind!==`hunk`){let r=n.at(-1)?.index??null;return[{comment:t,carried:e,kind:`same`,commit:s??(r===null?null:Math.min(o.commit,r)),unit:null,row:null}]}let c=e.unit===null?void 0:r.get(e.unit);if(e.unit===null||c===void 0)return[{comment:t,carried:e,kind:`gone`,commit:Hf(n,r,e.path),unit:null,row:null}];let l=e.changed?`changed`:`same`,u=Vf(n,c.id),d=s!==null&&u.includes(s)?s:void 0;if(c.kind!==`hunk`)return[{comment:t,carried:e,kind:l,commit:d??u[0]??Hf(n,r,e.path),unit:null,row:null}];let f=e.offsets??Uf(c.body,a.get(c.id)??[],e.newLine),p=Cf(c,i),m=u.find(e=>f.some(t=>{let n=c.body[t];return n!==void 0&&n.op!==` `&&p[n.change]===e}))??d??u[0]??null;if(m===null)return[{comment:t,carried:e,kind:`gone`,commit:Hf(n,r,e.path),unit:null,row:null}];let h=wf(c.body,p,m).flatMap(e=>e.kind===`line`?[e.line]:[]),g=f.length===0?h.at(-1)??null:Rf(f,new Set(h))??Y(f,h);return[{comment:t,carried:e,kind:l,commit:m,unit:c.id,row:g}]})}function Kf(e,t){let n=t.filter(e=>e.comment.anchor.kind===`hunk`&&(e.changed||e.unit===null)).length;return n===0?`Plan v${e} arrived`:`Plan v${e} arrived: ${n} thread${n===1?``:`s`} moved to changed code`}function qf(e,t,n){let r=e.files[t],i=r?.lines[n];if(r===void 0||i===void 0)return null;let a=r.branches?.[n]??null;return{kind:i===0?`uncovered`:a!==null&&a[0]<a[1]?`partly`:`covered`,hits:i,branches:a,stale:e.stale.includes(t)}}var Jf=e=>e===1?`1 hit`:`${e} hits`;function Yf(e){let t=e.kind===`uncovered`?`not covered`:e.kind===`partly`?`partly covered, ${Jf(e.hits)}, ${e.branches?.[0]} of ${e.branches?.[1]} branches`:`covered, ${Jf(e.hits)}`;return e.stale?`${t}, coverage is stale`:t}var Xf={total:0,run:0,partly:0};function Zf(e,t){return{total:e.total+1,run:e.run+(t.kind===`uncovered`?0:1),partly:e.partly+ +(t.kind===`partly`)}}function Qf(e){return e.total===0?100:Math.floor(100*e.run/e.total)}function $f(e){return e.run<e.total?`uncovered`:e.partly>0?`partly`:`covered`}var ep=(e,t)=>`${e}|${t}`;function tp(e,t,n,r,i){let a=new Map;for(let t of n.values()){if(t.kind!==`hunk`)continue;let n=new Map;(i.get(t.id)??[]).forEach((r,i)=>{let a=r.new===null?null:qf(e,t.path,r.new);a!==null&&n.set(i,a)}),n.size>0&&a.set(t.id,n)}let o=new Map,s=[],c=Xf,l=t.map(e=>{let t=Xf;for(let i of hf(e,n))for(let{unit:n}of i.parts)if(n.kind===`hunk`)for(let l of wf(n.body,Cf(n,r),e.index)){if(l.kind!==`line`||!l.mine||n.body[l.line]?.op!==`+`)continue;let r=a.get(n.id)?.get(l.line);if(r===void 0)continue;t=Zf(t,r),c=Zf(c,r);let u=ep(e.index,i.path);o.set(u,Zf(o.get(u)??Xf,r)),r.kind===`uncovered`&&s.push({commit:e.index,path:i.path,unit:n.id,row:l.line})}return t});return{tip:e.tip,takenAt:e.takenAt,marks:a,commits:l,files:o,branch:c,uncovered:s,stale:new Set(e.stale),tests:e.tests}}function np(e,t){let n=e.length;if(n===0)return null;let r=e.indexOf(`at`);if(r!==-1)return(r+t+n)%n;if(t===1){let t=e.indexOf(`below`);return t===-1?0:t}let i=e.lastIndexOf(`above`);return i===-1?n-1:i}function rp(e,t,n){return e===void 0?null:Object.entries(e).filter(([,e])=>e.lines[t]?.includes(n)??!1).map(([e,t])=>({id:e,at:t.at??null,preview:t.preview??null})).sort((e,t)=>e.id.localeCompare(t.id))}function ip(e,t,n,r,i){for(let a of n.values()){if(a.kind!==`hunk`||a.path!==e.path)continue;let n=(i.get(a.id)??[]).findIndex(t=>t.new!==null&&t.new>=e.start&&t.new<=e.end),o=a.body[n];if(o===void 0)continue;let s=(o.op===` `?void 0:Cf(a,r)[o.change])??t.find(e=>e.refs.some(e=>e.unit===a.id))?.index;if(s!==void 0)return{unit:a.id,row:n,commit:s}}return null}function ap(e,t,n=[]){return{path:e.path,newLine:e.start,kind:`other`,unit:t?.unit??null,row:t?.row??null,commit:t?.commit??null,preview:n}}function op(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function sp(e,t){return`Missing test: no test runs ${e}:${t}.`}var cp=/^[A-Za-z_$][\w$]*$/;function lp(e){let t=e.split(`::`),n=t.at(-1)??e;return{path:t.length>1?t[0]??null:null,name:cp.test(n)?n:null}}function up(e,t){let n=e.findIndex(e=>e.id===t.id);return n===-1?[...e,t]:e.map((e,r)=>r===n?t:e)}function dp(e,t){let n=Math.max(e.seq,t.seq),r=t=>({...e,...t,seq:n});switch(t.type){case`comment`:case`comment-updated`:{let n=e.comments.find(e=>e.id===t.comment.id),i=t.comment.replies??n?.replies,a=i===void 0?t.comment:{...t.comment,replies:i};return r({comments:up(e.comments,a)})}case`comment-deleted`:return r({comments:e.comments.filter(e=>e.id!==t.id)});case`reply`:{let n=e=>e.id===t.commentId?{...e,replies:up(e.replies??[],t.reply)}:e;return r({comments:e.comments.map(n),...e.previous===null?{}:{previous:{...e.previous,comments:e.previous.comments.map(n)}},...e.carried===void 0?{}:{carried:e.carried.map(e=>({...e,comment:n(e.comment)}))}})}case`concern`:{let{concernId:n,seq:i,type:a,...o}=t;return r({concerns:[...e.concerns.filter(e=>e.concern!==n),{concern:n,...o}]})}case`resolved`:{let n=e.resolved.filter(e=>e!==t.commentId);return r({resolved:t.resolved?[...n,t.commentId]:n})}case`offer-dismissed`:return r({dismissedOffers:[...(e.dismissedOffers??[]).filter(e=>e!==t.offer),t.offer]});default:return r({})}}var fp=80;function pp(e){let t=e.replace(/\s+/g,` `).trim();return t.length<=fp?t:`${t.slice(0,fp).trimEnd()}…`}function mp(e){switch(e.type){case`reply`:return e.reply.author===`agent`?{key:`reply:${e.reply.id}`,kind:`reply`,thread:e.commentId,preview:pp(e.reply.body)}:null;case`comment`:return e.comment.author===`agent`?{key:`explain:${e.comment.id}`,kind:`explain`,thread:e.comment.id,preview:pp(e.comment.body)}:null;case`version`:{let t=(e.carried??[]).filter(e=>e.changed||e.unit===null);return t.length===0?null:{key:`version:${e.version}`,kind:`version`,thread:t[0]?.comment.id??null,preview:`Plan v${e.version}`,version:Number(e.version),moved:t.length}}default:return null}}function hp(e,t){let n=new Map;for(let r of t){let t=mp(r);t!==null&&!e.has(t.key)&&!n.has(t.key)&&n.set(t.key,t)}return[...n.values()]}function gp(e,t){let{anchor:n,context:r}=e;if(n.kind===`plan`)return`the branch`;if(n.kind!==`hunk`)return`commit ${n.commit+1}`;let i=r.path??t.units.find(e=>e.id===n.unit)?.path??`the code`,a=t.carried?.find(t=>t.comment.id===e.id),o=Tf(t.units).get(n.unit),s=n.offsets?.at(-1),c=s===void 0?void 0:o?.[s],l=a===void 0?c?.new??c?.old??null:a.newLine;return l==null?i:`${i}:${l}`}function _p(e,t){if(e.kind===`version`){let t=e.moved??0;return`Plan v${e.version} arrived, ${t} thread${t===1?``:`s`} moved`}let n=[...t.comments,...(t.carried??[]).map(e=>e.comment)].find(t=>t.id===e.thread),r=e.kind===`reply`?`replied on`:`explained`;return n===void 0?`Agent ${e.kind===`reply`?`replied`:`explained`}`:`Agent ${r} ${gp(n,t)}`}var vp=(0,O.createContext)(null);function X(){let e=(0,O.useContext)(vp);if(e===null)throw Error(`useReview outside ReviewProvider`);return e}var yp=2e3,bp=44;function xp(e){let t=null;for(let n of document.querySelectorAll(`section[data-commit]`)){let r=n.getBoundingClientRect().top,i=e.commits[Number(n.dataset.commit)];if(i!==void 0){if(t!==null&&r>45)break;t={title:df(i.message),offset:r-bp}}}return t}function Sp(e,t){let n=e.commits.find(e=>df(e.message)===t.title);if(n===void 0)return;let r=document.getElementById(`commit-${n.index+1}`);r!==null&&window.scrollBy(0,r.getBoundingClientRect().top-bp-t.offset)}function Cp({initial:e,children:t}){let[n,r]=(0,O.useState)(e),[i,a]=(0,O.useState)(!1),[o,s]=(0,O.useState)(null),[c,l]=(0,O.useState)(!1),[u,d]=(0,O.useState)(null),[f,p]=(0,O.useState)([]),[m,h]=(0,O.useState)(new Set),g=(0,O.useRef)(e.seq);g.current=n.seq;let _=(0,O.useRef)(n);_.current=n;let v=(0,O.useRef)(null),[y,b]=(0,O.useState)(null),x=(0,O.useCallback)(()=>{qd.coverage().then(b).catch(()=>void 0)},[]);(0,O.useEffect)(x,[x]);let S=(0,O.useCallback)(async()=>{let e=await qd.state();r(e)},[]);(0,O.useEffect)(()=>{if(i)return;let e=null,t,n=!1,o=()=>{e=new EventSource(`${Hd}/api/events/stream?since=${g.current}`),e.onmessage=e=>{let t=JSON.parse(e.data);r(e=>dp(e,t)),mp(t)!==null&&p(e=>[...e,t]),t.type===`version`&&(v.current=xp(_.current),S().then(()=>d(`v${t.version}`))),(t.type===`coverage`||t.type===`version`)&&x(),t.type===`ended`&&a(!0)},e.onopen=()=>l(!1),e.onerror=()=>{if(n||(l(!0),e?.readyState!==EventSource.CLOSED))return;let r=()=>{S().then(()=>{x(),l(!1),o()}).catch(e=>{e instanceof Ud&&e.status===404?a(!0):t=setTimeout(r,yp)})};t=setTimeout(r,yp)}};return o(),()=>{n=!0,clearTimeout(t),e?.close()}},[i,S,x]);let C=n.version;(0,O.useLayoutEffect)(()=>{let e=v.current;v.current=null,e!==null&&Sp(_.current,e)},[C]);let w=(0,O.useCallback)(async e=>{try{return s(null),await e(),!0}catch(e){return s(e instanceof Error?e.message:String(e)),!1}},[]),T=(0,O.useMemo)(()=>hp(m,f),[m,f]),E=(0,O.useCallback)(e=>h(t=>new Set([...t,...e])),[]),D=(0,O.useMemo)(()=>({state:n,ended:i,error:o,reconnecting:c,run:w,refresh:S,arrived:u===null?null:Kf(n.version,n.carried??[]),dismissArrived:()=>d(null),events:f,unread:T,markSeen:E,coverage:y}),[n,i,o,c,w,S,u,f,T,E,y]);return(0,B.jsx)(vp,{value:D,children:t})}function wp(){let{state:e}=X(),{units:t,commits:n}=e;return(0,O.useMemo)(()=>({units:new Map(t.map(e=>[e.id,e])),owners:Sf(n),numbers:Tf(t)}),[t,n])}function Tp(){let{state:e,coverage:t}=X(),{units:n,owners:r,numbers:i}=wp();return(0,O.useMemo)(()=>t===null?null:tp(t,e.commits,n,r,i),[t,e.commits,n,r,i])}function Ep(){let{state:e}=X(),{previous:t,resolved:n,commits:r,carried:i}=e;return(0,O.useMemo)(()=>sf(t,n,r,new Set((i??[]).map(e=>e.comment.id))),[t,n,r,i])}function Dp(){let{state:e}=X();return(0,O.useMemo)(()=>Gf(e),[e.previous,e.carried,e.commits,e.units])}function Op({className:e,...t}){return(0,B.jsx)(no,{"data-slot":`checkbox`,className:L(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary`,e),...t,children:(0,B.jsx)(io,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,B.jsx)(ie,{})})})}function kp({checked:e,onChange:t,name:n,children:r,className:i}){let a=(0,O.useId)();return(0,B.jsxs)(`span`,{className:L(`flex shrink-0 items-center gap-2 text-muted-foreground text-xs`,i),children:[(0,B.jsx)(Op,{id:a,checked:e,onCheckedChange:e=>t(e===!0),"aria-label":n}),(0,B.jsx)(`label`,{htmlFor:a,className:`cursor-pointer`,children:r})]})}function Ap(e,t){this.v=e,this.k=t}function jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mp(e){if(Array.isArray(e))return e}function Np(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Pp(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fp(e,t){return Mp(e)||Np(e,t)||Ip(e,t)||Pp()}function Ip(e,t){if(e){if(typeof e==`string`)return jp(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jp(e,t):void 0}}function Lp(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Ap;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}Lp.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Lp.prototype.next=function(e){return this._invoke(`next`,e)},Lp.prototype.throw=function(e){return this._invoke(`throw`,e)},Lp.prototype.return=function(e){return this._invoke(`return`,e)};var Rp=Object.entries,zp=Object.setPrototypeOf,Bp=Object.isFrozen,Vp=Object.getPrototypeOf,Hp=Object.getOwnPropertyDescriptor,Up=Object.freeze,Wp=Object.seal,Gp=Object.create,Kp=typeof Reflect<`u`&&Reflect,qp=Kp.apply,Jp=Kp.construct;Up||=function(e){return e},Wp||=function(e){return e},qp||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Jp||=function(e){return new e(...[...arguments].slice(1))};var Yp=ym(Array.prototype.forEach);Array.prototype.indexOf;var Xp=ym(Array.prototype.lastIndexOf),Zp=ym(Array.prototype.pop),Qp=ym(Array.prototype.push),$p=ym(Array.prototype.slice),em=ym(Array.prototype.splice),tm=Array.isArray,nm=bm(Set),rm=ym(Set.prototype.add),im=ym(Set.prototype.has),am=ym(String.prototype.toLowerCase),om=ym(String.prototype.toString),sm=ym(String.prototype.match),cm=ym(String.prototype.replace),lm=ym(String.prototype.indexOf),um=ym(String.prototype.trim),dm=ym(Number.prototype.toString),fm=ym(Boolean.prototype.toString),pm=typeof BigInt>`u`?null:ym(BigInt.prototype.toString),mm=typeof Symbol>`u`?null:ym(Symbol.prototype.toString),hm=ym(Object.prototype.hasOwnProperty),gm=ym(Object.prototype.toString),_m=ym(RegExp.prototype.test),vm=bm(TypeError);function ym(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return qp(e,t,n)}}function bm(e){return function(){return Jp(e,[...arguments])}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:am;if(zp&&zp(e,null),!tm(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Bp(t)||(t[r]=e),i=e)}e[i]=!0}return e}function xm(e){for(let t=0;t<e.length;t++)hm(e,t)||(e[t]=null);return e}function Sm(e){let t=Gp(null);for(let r of Rp(e)){var n=Fp(r,2);let i=n[0],a=n[1];hm(e,i)&&(t[i]=tm(a)?xm(a):a&&typeof a==`object`&&a.constructor===Object?Sm(a):a)}return t}function Cm(e){switch(typeof e){case`string`:return e;case`number`:return dm(e);case`boolean`:return fm(e);case`bigint`:return pm?pm(e):`0`;case`symbol`:return mm?mm(e):`Symbol()`;case`undefined`:return gm(e);case`function`:case`object`:{if(e===null)return gm(e);let t=e,n=wm(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:gm(e)}return gm(e)}default:return gm(e)}}function wm(e,t){for(;e!==null;){let n=Hp(e,t);if(n){if(n.get)return ym(n.get);if(typeof n.value==`function`)return ym(n.value)}e=Vp(e)}function n(){return null}return n}function Tm(e,t){for(;e!==null;){let n=Hp(e,t);if(n)return n.get?ym(n.get):null;e=Vp(e)}return null}function Em(e){try{return _m(e,``),!0}catch{return!1}}var Dm=Up(`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`.split(`.`)),Om=Up(`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`.split(`.`)),km=Up([`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`]),Am=Up([`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`]),jm=Up(`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`.split(`.`)),Mm=Up([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Nm=Up([`#text`]),Pm=Up(`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`.split(`.`)),Fm=Up(`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.pointer-events.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.vector-effect.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`.split(`.`)),Im=Up(`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`.split(`.`)),Lm=Up([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Rm=Wp(/{{[\w\W]*|^[\w\W]*}}/g),zm=Wp(/<%[\w\W]*|^[\w\W]*%>/g),Bm=Wp(/\${[\w\W]*/g),Vm=Wp(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hm=Wp(/^aria-[\-\w]+$/),Um=Wp(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wm=Wp(/^(?:\w+script|data):/i),Gm=Wp(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Km=Wp(/^html$/i),qm=Wp(/^[a-z][.\w]*(-[.\w]+)+$/i),Jm=Wp(/<[/\w!]/g),Ym=Wp(/<[/\w]/g),Xm=Wp(/<\/no(script|embed|frames)/i),Zm=Wp(/\/>/i),Qm={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$m=Up(Z({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),eh=function(){return typeof window>`u`?null:window},th=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},nh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rh=function(e,t,n,r){return hm(e,t)&&tm(e[t])?Z(r.base?Sm(r.base):{},e[t],r.transform):n},ih=function(e,t,n){let r=hm(e,t)?e[t]:void 0;return r&&typeof r==`object`?Sm(r):n()};function ah(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eh(),t=e=>ah(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Qm.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=wm(d,`cloneNode`),p=wm(d,`remove`),m=wm(d,`removeAttributeNode`),h=wm(d,`nextSibling`),g=wm(d,`childNodes`),_=wm(d,`parentNode`),v=wm(d,`shadowRoot`),y=wm(d,`attributes`),b=o&&o.prototype?wm(o.prototype,`nodeType`):null,x=o&&o.prototype?wm(o.prototype,`nodeName`):null,S=o&&o.prototype?wm(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName},T=Tm(d,`namespaceURI`),E=function(e){return T?T(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let D,O=``,k,A=!1,ee=0,j=function(){if(ee>0)throw vm(`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.`)},te=function(e){j(),ee++;try{return D.createHTML(e)}finally{ee--}},M=function(e){j(),ee++;try{return D.createScriptURL(e)}finally{ee--}},N=function(){return A||=(k=th(u,i),!0),k},ne=n,re=ne.implementation,ie=ne.createNodeIterator,ae=ne.createDocumentFragment,oe=ne.getElementsByTagName,se=r.importNode,P=nh();t.isSupported=typeof Rp==`function`&&typeof _==`function`&&re&&re.createHTMLDocument!==void 0;let ce=Rm,le=zm,ue=Bm,de=Vm,fe=Hm,pe=Wm,me=Gm,he=qm,F=Um,I=null,ge=Z({},[...Dm,...Om,...km,...jm,...Nm]),_e=null,ve=Z({},[...Pm,...Fm,...Im,...Lm]),ye=Object.seal(Gp(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}})),be=null,xe=null,Se=Object.seal(Gp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ce=!0,we=!0,Te=!1,Ee=!0,De=!1,Oe=!0,ke=!1,Ae=!1,je=null,Me=null,Ne=!1,Pe=!1,Fe=!1,Ie=!1,Le=!0,Re=!1,ze=`user-content-`,Be=!0,Ve=!1,He=null,Ue={},We=null,Ge=Z({},`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`.split(`.`)),Ke=null,qe=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Je=null,Ye=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Xe=`http://www.w3.org/1998/Math/MathML`,Ze=`http://www.w3.org/2000/svg`,Qe=`http://www.w3.org/1999/xhtml`,$e=Qe,et=!1,tt=null,nt=Z({},[Xe,Ze,Qe],om),rt=Up([`mi`,`mo`,`mn`,`ms`,`mtext`]),it=Z({},rt),at=Up([`annotation-xml`]),ot=Z({},at),st=Z({},[`title`,`style`,`font`,`a`,`script`]),ct=null,lt=[`application/xhtml+xml`,`text/html`],ut=null,dt=null,ft=n.createElement(`form`),pt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dt&&dt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Sm(e),ct=lt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ut=ct===`application/xhtml+xml`?om:am,I=rh(e,`ALLOWED_TAGS`,ge,{transform:ut}),_e=rh(e,`ALLOWED_ATTR`,ve,{transform:ut}),tt=rh(e,`ALLOWED_NAMESPACES`,nt,{transform:om}),Je=rh(e,`ADD_URI_SAFE_ATTR`,Ye,{transform:ut,base:Ye}),Ke=rh(e,`ADD_DATA_URI_TAGS`,qe,{transform:ut,base:qe}),We=rh(e,`FORBID_CONTENTS`,Ge,{transform:ut}),be=rh(e,`FORBID_TAGS`,Sm({}),{transform:ut}),xe=rh(e,`FORBID_ATTR`,Sm({}),{transform:ut}),Ue=hm(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Sm(e.USE_PROFILES):e.USE_PROFILES:!1,Ce=e.ALLOW_ARIA_ATTR!==!1,we=e.ALLOW_DATA_ATTR!==!1,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=e.SAFE_FOR_TEMPLATES||!1,Oe=e.SAFE_FOR_XML!==!1,ke=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Le=e.SANITIZE_DOM!==!1,Re=e.SANITIZE_NAMED_PROPS||!1,Be=e.KEEP_CONTENT!==!1,Ve=e.IN_PLACE||!1,F=Em(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Um,$e=typeof e.NAMESPACE==`string`?e.NAMESPACE:Qe,it=ih(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Z({},rt)),ot=ih(e,`HTML_INTEGRATION_POINTS`,()=>Z({},at));let t=ih(e,`CUSTOM_ELEMENT_HANDLING`,()=>Gp(null));if(ye=Gp(null),hm(t,`tagNameCheck`)&&pt(t.tagNameCheck)&&(ye.tagNameCheck=t.tagNameCheck),hm(t,`attributeNameCheck`)&&pt(t.attributeNameCheck)&&(ye.attributeNameCheck=t.attributeNameCheck),hm(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ye.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Wp(ye),De&&(we=!1),Fe&&(Pe=!0),Ue&&(I=Z({},Nm),_e=Gp(null),Ue.html===!0&&(Z(I,Dm),Z(_e,Pm)),Ue.svg===!0&&(Z(I,Om),Z(_e,Fm),Z(_e,Lm)),Ue.svgFilters===!0&&(Z(I,km),Z(_e,Fm),Z(_e,Lm)),Ue.mathMl===!0&&(Z(I,jm),Z(_e,Im),Z(_e,Lm))),Se.tagCheck=null,Se.attributeCheck=null,hm(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Se.tagCheck=e.ADD_TAGS:tm(e.ADD_TAGS)&&(I===ge&&(I=Sm(I)),Z(I,e.ADD_TAGS,ut))),hm(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Se.attributeCheck=e.ADD_ATTR:tm(e.ADD_ATTR)&&(_e===ve&&(_e=Sm(_e)),Z(_e,e.ADD_ATTR,ut))),hm(e,`ADD_FORBID_CONTENTS`)&&tm(e.ADD_FORBID_CONTENTS)&&(We===Ge&&(We=Sm(We)),Z(We,e.ADD_FORBID_CONTENTS,ut)),Be&&(I[`#text`]=!0),ke&&Z(I,[`html`,`head`,`body`]),I.table&&(Z(I,[`tbody`]),delete be.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw vm(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw vm(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=D;D=e.TRUSTED_TYPES_POLICY;try{O=te(``)}catch(e){throw D=t,e}}else e.TRUSTED_TYPES_POLICY===null?(D=void 0,O=``):(D===void 0&&(D=N()),D&&typeof O==`string`&&(O=te(``)));Up&&Up(e),dt=e},ht=Z({},[...Om,...km,...Am]),gt=Z({},[...jm,...Mm]),_t=function(e,t,n){return t.namespaceURI===Qe?e===`svg`:t.namespaceURI===Xe?e===`svg`&&(n===`annotation-xml`||it[n]):!!ht[e]},vt=function(e,t,n){return t.namespaceURI===Qe?e===`math`:t.namespaceURI===Ze?e===`math`&&ot[n]:!!gt[e]},yt=function(e,t,n){return t.namespaceURI===Ze&&!ot[n]||t.namespaceURI===Xe&&!it[n]?!1:!gt[e]&&(st[e]||!ht[e])},bt=function(e){let t=E(e),n=am(w(e)),r=_(e),i,a;return r&&C(r)===Qm.element?(i={namespaceURI:E(r)},a=am(w(r))):(i={namespaceURI:$e},a=`template`),tt[t]?t===Ze?_t(n,i,a):t===Xe?vt(n,i,a):t===Qe?yt(n,i,a):!!(ct===`application/xhtml+xml`&&tt[t]):!1},xt=function(e){Qp(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw vm(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},St=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},L=function(e){Et(e);let t=g(e);t&&Yp($p(t),e=>{try{p(e)}catch{}});let n=C(e)===Qm.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&St(e,r,i)}},Ct=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Qp(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Pe||Fe)try{xt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},wt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||_e[ut(i)]||St(e,r,i)}},Tt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===Qm.element){let t=v(e);Bt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Et=function(e){Tt(e,e=>{C(e)===Qm.element&&wt(e)})},R=function(e){let t=[];return Tt(e,e=>{t.push(e)},!0),t},Dt=function(e,t){let n=nm();Yp(R(e),e=>{C(e)===Qm.element&&rm(n,e)}),Yp(t,e=>{C(e)===Qm.element&&!im(n,e)&&wt(e)})},Ot=function(e,n){let r=!1;return Yp(t.removed,t=>{t.element&&(r||=t.element===e,Et(t.element))}),Dt(e,n),r},kt=function(e,t){let n=He,r=null,i=()=>(r||(r=nm(),Yp(t,e=>{rm(r,e)})),r);for(let t=0;;t++){let r=R(e),a=[e],o=!1;if(Yp(r,e=>{C(e)===Qm.documentFragment?Qp(a,e):!o&&!im(n,e)&&(o=im(i(),e))}),!o)return;if(t>=8)throw vm(`the tree kept changing during in-place sanitization; refusing to return it`);Yp(a,(t,n)=>{At(t,n>0,e,i())})}},At=function(e,t,n,r){let i=Ft(e),a;for(;a=i.nextNode();)im(r,a)&&!im(He,a)&&(t&&Ht(P.uponSanitizeShadowNode,a,null),B(a,n),Qt(a,n),Bt(a.content)&&$t(a.content))},jt=function(e){He&&rm(He,e)},Mt=function(e,t){return Oe?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Nt=function(e){Oe&&Tt(e,e=>{let t=C(e);if(t===Qm.processingInstruction||t===Qm.comment&&_m(Ym,e.data)){try{p(e)}catch{}return!1}if(t===Qm.element){let t=e,n=ut(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Mt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Pt=function(e){let t=null,r=null;if(Ne)e=`<remove></remove>`+e;else{let t=sm(e,/^[\r\n\t ]+/);r=t&&t[0]}ct===`application/xhtml+xml`&&$e===Qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=D?te(e):e;if($e===Qe)try{t=new l().parseFromString(i,ct)}catch{}if(!t||!t.documentElement){t=re.createDocument($e,`template`,null);try{t.documentElement.innerHTML=et?O:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),$e===Qe?oe.call(t,ke?`html`:`body`)[0]:ke?t.documentElement:a},Ft=function(e){let t=S?S(e):e.ownerDocument;return ie.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},It=function(e){return e=cm(e,ce,` `),e=cm(e,le,` `),e=cm(e,ue,` `),e},Lt=function(e){Rt(e);let t=e.querySelectorAll?.call(e,`template`);t&&Yp(t,e=>{Bt(e.content)&&Lt(e.content)})},Rt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=ie.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=It(r.data),r=n.nextNode()},zt=function(e){let t=x?x(e):null;return typeof t!=`string`||ut(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Bt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Qm.documentFragment}catch{return!1}},Vt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ht(e,n,r){e.length!==0&&Yp(e,e=>{e.call(t,n,r,dt)})}let Ut=function(e,t){return!!(Oe&&e.hasChildNodes()&&!Vt(e.firstElementChild)&&_m(Jm,e.textContent)&&_m(Jm,e.innerHTML)||Oe&&$m[t]&&C(e)===Qm.element&&E(e)===Qe&&(Vt(e.firstElementChild)||typeof e.textContent==`string`&&_m(Jm,e.textContent))||e.nodeType===Qm.processingInstruction||Oe&&e.nodeType===Qm.comment&&_m(Ym,e.data))},Wt=function(e,t){return e instanceof RegExp?_m(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Gt=function(e,t,n){if(!be[t]&&V(t)&&Wt(ye.tagNameCheck,t))return!1;if(Be&&!We[t]&&!We[am(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return xt(e),!0},z=function(e,t,n,r){return e.length===0?t:t===n||t===r?Sm(t):t},Kt=function(e,t){return e===t||_(e)!==null?!1:(Ve&&Et(e),!0)},B=function(e,n){if(jt(e),Ht(P.beforeSanitizeElements,e,null),Kt(e,n))return!0;if(zt(e))return xt(e),!0;let r=ut(w(e));if(I=z(P.uponSanitizeElement,I,ge,je),Ht(P.uponSanitizeElement,e,{tagName:r,allowedTags:I}),Kt(e,n))return!0;if(Ut(e,r))return xt(e),!0;if(be[r]||!(Se.tagCheck instanceof Function&&Se.tagCheck(r))&&!I[r]){let t=Gt(e,r,n);return t===!1&&(Ht(P.afterSanitizeElements,e,null),Kt(e,n))?!0:t}if(C(e)===Qm.element&&!bt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&_m(Xm,e.innerHTML))return xt(e),!0;if(De&&e.nodeType===Qm.text){let n=It(e.textContent);e.textContent!==n&&(Qp(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ht(P.afterSanitizeElements,e,null),Kt(e,n)},qt=function(e,t,r){if(xe[t]||Mt(t,e)||Le&&(t===`id`||t===`name`)&&(r in n||r in ft))return!1;let i=_e[t]||Se.attributeCheck instanceof Function&&Se.attributeCheck(t,e);return we&&_m(de,t)||Ce&&_m(fe,t)?!0:i?Je[t]||_m(F,cm(r,me,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&lm(r,`data:`)===0&&Ke[e]||Te&&!_m(pe,cm(r,me,``))?!0:!r:V(e)&&Wt(ye.tagNameCheck,e)&&Wt(ye.attributeNameCheck,t,e)||t===`is`&&ye.allowCustomizedBuiltInElements&&Wt(ye.tagNameCheck,r)},Jt=Z({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),V=function(e){return!Jt[am(e)]&&_m(he,e)},Yt=function(e,t,n,r){if(D&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return te(r);case`TrustedScriptURL`:return M(r)}return r},Xt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!zt(e)||(xt(e),!1)}catch{return Ct(t,e),!1}},Zt=function(e,t){return Oe&&_m(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:am(e)===`attributename`&&sm(t,`href`)!==null},Qt=function(e,n){if(Ht(P.beforeSanitizeAttributes,e,null),Kt(e,n))return;let r=e.attributes;if(!r||zt(e))return;_e=z(P.uponSanitizeAttribute,_e,ve,Me);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0},a=r.length,o=ut(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=ut(s),d=l,f=s===`value`?d:um(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Ht(P.uponSanitizeAttribute,e,i),f=i.attrValue,Re&&(u===`id`||u===`name`)&&lm(f,ze)!==0&&(Ct(s,e,n),f=ze+f,p=!0),Zt(s,f)?Ct(s,e,n):i.forceKeepAttr||(i.keepAttr?!Ee&&_m(Zm,f)?Ct(s,e,n):(De&&(f=It(f)),qt(o,u,f)?(f=Yt(o,u,c,f),f!==d&&Xt(e,s,c,f)&&p&&Zp(t.removed)):Ct(s,e,n)):Ct(s,e,n))}Ht(P.afterSanitizeAttributes,e,null),Kt(e,n)},$t=function(e){let t=null,n=Ft(e);for(Ht(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ht(P.uponSanitizeShadowNode,t,null),B(t,e),Qt(t,e),Bt(t.content)&&$t(t.content),C(t)===Qm.element){let e=v(t);Bt(e)&&(en(e),$t(e))}De&&Rt(e),Ht(P.afterSanitizeShadowDOM,e,null)},en=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){$t(e.shadow);continue}let n=e.node,r=C(n)===Qm.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&ut(e)===`template`){let e=n.content;Bt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Bt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(et=!e,et&&(e=`<!-->`),typeof e!=`string`&&!Vt(e)&&(e=Cm(e),typeof e!=`string`))throw vm(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ae?(I=je,_e=Me):mt(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(I=Sm(I)),P.uponSanitizeAttribute.length>0&&(_e=Sm(_e)),t.removed=[];let c=Ve&&typeof e!=`string`&&Vt(e),l=[],u=He;if(c){Nt(e);let t=w(e);if(typeof t==`string`){let n=ut(t);if(!I[n]||be[n])throw L(e),vm(`root node is forbidden and cannot be sanitized in-place`)}if(zt(e))throw L(e),vm(`root node is clobbered and cannot be sanitized in-place`);l=R(e),He=nm()}else if(Vt(e))i=Pt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Qm.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),en(i);else{if(!Pe&&!De&&!ke&&e.indexOf(`<`)===-1)return D&&Ie?te(e):e;if(i=Pt(e),!i)return Pe?null:Ie?O:``}i&&Ne&&xt(i.firstChild);let d=c?e:i;try{c&&en(e);let t=Ft(d);for(;o=t.nextNode();)B(o,d),Qt(o,d),Bt(o.content)&&$t(o.content);c&&kt(e,l)}catch(t){throw c&&(L(e),Ot(e,l)),t}finally{He=u}if(c){if(Ot(e,l))throw vm(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return De&&Lt(e),e}if(Pe){if(De&&Lt(i),Fe)for(s=ae.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(_e.shadowroot||_e.shadowrootmode)&&(s=se.call(r,s,!0)),s}let f=ke?i.outerHTML:i.innerHTML;return ke&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_m(Km,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
63
|
+
`+f),De&&(f=It(f)),D&&Ie?te(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};mt(e),Ae=!0,je=I,Me=_e},t.clearConfig=function(){dt=null,Ae=!1,je=null,Me=null,D=k,O=``},t.isValidAttribute=function(e,t,n){dt||mt({});let r=ut(e),i=ut(t);return typeof n==`string`&&(Zt(t,n)||!Ee&&_m(Zm,n))?!1:qt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&hm(P,e)&&Qp(P[e],t)},t.removeHook=function(e,t){if(hm(P,e)){if(t!==void 0){let n=Xp(P[e],t);return n===-1?void 0:em(P[e],n,1)[0]}return Zp(P[e])}},t.removeHooks=function(e){hm(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=nh()},t}var oh=ah();function sh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ch=sh();function lh(e){ch=e}var uh={exec:()=>null};function dh(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Q(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(ph.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var fh=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),ph={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:dh(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:dh(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:dh(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:dh(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:dh(e=>RegExp(`^ {0,${e}}(?:</?(?:${Oh})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:dh(e=>RegExp(`^ {0,${e}}>`))},mh=/^(?:[ \t]*(?:\n|$))+/,hh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xh=Q(bh).replace(/bull/g,yh).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(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Sh=Q(bh).replace(/bull/g,yh).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(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ch=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,wh=/^[^\n]+/,Th=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Eh=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Th).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dh=Q(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,yh).getRegex(),Oh=`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`,kh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ah=Q(`^ {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-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,kh).replace(`tag`,Oh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jh=e=>Q(Ch).replace(`hr`,_h).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`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex(),Mh=jh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Nh=jh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ph={blockquote:Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Nh).getRegex(),code:hh,def:Eh,fences:gh,heading:vh,hr:_h,html:Ah,lheading:xh,list:Dh,newline:mh,paragraph:Mh,table:uh,text:wh},Fh=Q(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,_h).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`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex(),Ih={...Ph,lheading:Sh,table:Fh,paragraph:Q(Ch).replace(`hr`,_h).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Fh).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Oh).getRegex()},Lh={...Ph,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,kh).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:uh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Ch).replace(`hr`,_h).replace(`heading`,` *#{1,6} *[^
|
|
64
|
+
]`).replace(`lheading`,xh).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Rh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bh=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Vh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hh=/[\p{P}\p{S}]/u,Uh=/[\s\p{P}\p{S}]/u,Wh=/[^\s\p{P}\p{S}]/u,Gh=Q(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Uh).getRegex(),Kh=/[\p{Pi}\p{Ps}"']/u,qh=/(?!~)[\p{P}\p{S}]/u,Jh=/(?!~)[\s\p{P}\p{S}]/u,Yh=/(?:[^\s\p{P}\p{S}]|~)/u,Xh=Q(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,fh?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Zh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Qh=Q(Zh,`u`).replace(/punct/g,Hh).getRegex(),$h=Q(Zh,`u`).replace(/punct/g,qh).getRegex(),eg=Q(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,Kh).replace(/punct/g,Hh).getRegex(),tg=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ng=Q(tg,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),rg=Q(tg,`gu`).replace(/notPunctSpace/g,Yh).replace(/punctSpace/g,Jh).replace(/punct/g,qh).getRegex(),ig=Q(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),ag=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),og=Q(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),sg=Q(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Hh).getRegex(),cg=Q(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Wh).replace(/punctSpace/g,Uh).replace(/punct/g,Hh).getRegex(),lg=Q(/\\(punct)/,`gu`).replace(/punct/g,Hh).getRegex(),ug=Q(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,`gu`).replace(/punct/g,Hh).getRegex(),dg=Q(/^<(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(),fg=Q(kh).replace(`(?:-->|$)`,`-->`).getRegex(),pg=Q(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,fg).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mg=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,hg=Q(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,mg).getRegex(),gg=Q(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace(`label`,hg).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_g=Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,hg).replace(`ref`,Th).getRegex(),vg=Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Th).getRegex(),yg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,bg=Q(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,mg).getRegex(),xg=Q(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Q(/^!?\[(label)\]\[(ref)\]/).replace(`label`,bg).replace(`ref`,yg).getRegex()).replace(`nolink`,Q(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,yg).getRegex()).getRegex(),Sg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Cg=Q(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),wg={_backpedal:uh,anyPunctuation:lg,anyPunctuationOutsideCode:ug,autolink:dg,blockSkip:Xh,br:Bh,code:zh,del:uh,delLDelim:uh,delRDelim:uh,emStrongLDelim:Qh,emStrongRDelimAst:ng,emStrongRDelimUnd:ag,escape:Rh,link:gg,nolink:vg,punctuation:Gh,reflink:_g,reflinkSearch:xg,tag:pg,text:Vh,url:uh},Tg={...wg,emStrongLDelim:eg,emStrongRDelimAst:ig,emStrongRDelimUnd:og,link:Q(/^!?\[(label)\]\((.*?)\)/).replace(`label`,hg).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,hg).getRegex()},Eg={...wg,emStrongRDelimAst:rg,emStrongLDelim:$h,delLDelim:sg,delRDelim:cg,url:Q(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,Cg).replace(`protocol`,Sg).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Q(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,Sg).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Dg={...Eg,br:Q(Bh).replace(`{2,}`,`*`).getRegex(),text:Q(Eg.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Og={normal:Ph,gfm:Ih,pedantic:Lh},kg={normal:wg,gfm:Eg,breaks:Dg,pedantic:Tg},Ag={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},jg=e=>Ag[e];function Mg(e,t){if(t){if(ph.escapeTest.test(e))return e.replace(ph.escapeReplace,jg)}else if(ph.escapeTestNoEncode.test(e))return e.replace(ph.escapeReplaceNoEncode,jg);return e}function Ng(e){return ph.numericCharacterReference.test(e)?e.replace(ph.numericCharacterReferenceOrAmpersand,(e,t,n)=>{if(t===void 0&&n===void 0)return`&`;let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:r===38?`&`:String.fromCodePoint(r)}):e}function Pg(e){try{e=encodeURI(e).replace(ph.percentDecode,`%`)}catch{return null}return e}function Fg(e,t){let n=e.replace(ph.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(ph.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(ph.slashPipe,`|`);return n}function Ig(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Lg(e){let t=e.split(`
|
|
65
|
+
`),n=t.length-1;for(;n>=0&&ph.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
66
|
+
`)}function Rg(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function zg(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Bg(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Vg(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`,l=r.state.inLink,u=r.state.linkEmitted,d=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(s),p=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=l,!c){if(p){r.state.inRawBlock=d;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:f}}function Hg(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
67
|
+
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
|
|
68
|
+
`)}function Ug(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var Wg=class{options;rules;lexer;constructor(e){this.options=e||ch}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Lg(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Hg(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ig(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Ig(t[0],`
|
|
69
|
+
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ig(t[0],`
|
|
70
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ig(t[0],`
|
|
71
|
+
`).split(`
|
|
72
|
+
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
73
|
+
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
74
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
75
|
+
${s}`:s,r=r?`${r}
|
|
76
|
+
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`||u?.type===`heading`||u?.type===`hr`||u?.type===`html`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
|
|
77
|
+
`),o=t.raw+`
|
|
78
|
+
`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
|
|
79
|
+
`).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
|
|
80
|
+
${d.join(`
|
|
81
|
+
`)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
82
|
+
`+e.join(`
|
|
83
|
+
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
84
|
+
`)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=e,r=()=>n.length-e.length,i=t[1].trim(),a=i.length>1,o={type:`list`,raw:``,ordered:a,start:a?+i.slice(0,-1):``,loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:`[*+-]`);let s=this.rules.other.listItemRegex(i),c=!1;for(;e;){let i=!1,a=``;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;let l=r();e=e.substring(t[0].length);let u=t[2].split(`
|
|
85
|
+
`,1)[0],d=t[1].length,f=this.options.pedantic?Bg(u,d):u.replace(this.rules.other.leadingSpaceTab,e=>Bg(e,d)),p=e.split(`
|
|
86
|
+
`,1)[0],m=!f.trim(),h=0;if(this.options.pedantic?(h=2,a=f.trimStart()):m?h=d+1:(h=f.search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=f.slice(h),h+=d),m&&this.rules.other.blankLine.test(p)&&(e=e.substring(p.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),r=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h),s=this.rules.other.blockquoteBeginRegex(h);for(;e;){let c=e.split(`
|
|
87
|
+
`,1)[0],l;if(p=c,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting,` `),l=p):l=p.replace(this.rules.other.leadingSpaceTab,e=>Bg(e)),r.test(p)||i.test(p)||o.test(p)||s.test(p)||t.test(p)||n.test(p))break;if(l.search(this.rules.other.nonSpaceChar)>=h||!p.trim())a+=`
|
|
88
|
+
`+l.slice(h);else{if(m||f.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||r.test(f)||i.test(f)||n.test(f))break;a+=`
|
|
89
|
+
`+p}m=!p.trim(),e=e.substring(c.length+1),f=l.slice(h)}}let g=n.slice(l,r());o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0)),o.items.push({type:`list_item`,raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]})}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=n.slice(0,r()).trimEnd();for(let e of o.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!o.loose){let t=e.tokens.filter(e=>e.type===`space`);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of o.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,o.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Lg(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&zg(t[2],`()`)!==-1)return;let e=Rg(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Ig(t[0],`
|
|
90
|
+
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fg(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
91
|
+
`):[],a={type:`table`,raw:Ig(t[0],`
|
|
92
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Fg(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Ig(t[0],`
|
|
93
|
+
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
94
|
+
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&Ug(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=Ig(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=zg(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),Vg(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&Ug(e,n[1],r,this.rules))return;let i=t[Rg((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Vg(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:Ng(t[0]),escaped:e}}}},Gg=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ch,this.options.tokenizer=this.options.tokenizer||new Wg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:ph,block:Og.normal,inline:kg.normal};this.options.pedantic?(t.block=Og.pedantic,t.inline=kg.pedantic):this.options.gfm&&(t.block=Og.gfm,t.inline=this.options.breaks?kg.breaks:kg.gfm),this.tokenizer.rules=t}static get rules(){return{block:Og,inline:kg}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ph.carriageReturn,`
|
|
95
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ph.tabCharGlobal,` `).replace(ph.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
96
|
+
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
97
|
+
`)?``:`
|
|
98
|
+
`)+i.raw,n.text+=`
|
|
99
|
+
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
100
|
+
`)?``:`
|
|
101
|
+
`)+i.raw,n.text+=`
|
|
102
|
+
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
103
|
+
`)?``:`
|
|
104
|
+
`)+i.raw,r.text+=`
|
|
105
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length)}else if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
106
|
+
`)?``:`
|
|
107
|
+
`)+i.raw,n.text+=`
|
|
108
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,Rg(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(`)`);try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,Rg(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(e,t,n)=>n?`+`.repeat(e.length):t?t+e.slice(t.length,-t.length).replace(/`/g,`+`)+t:e),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Kg=class{options;parser;constructor(e){this.options=e||ch}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(ph.notSpaceStart)?.[0],i=e?e.replace(ph.endingNewline,``)+`
|
|
109
|
+
`:``;return r?`<pre><code class="language-`+Mg(r)+`">`+(n?i:Mg(i,!0))+`</code></pre>
|
|
110
|
+
`:`<pre><code>`+(n?i:Mg(i,!0))+`</code></pre>
|
|
111
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
112
|
+
${this.parser.parse(e)}</blockquote>
|
|
113
|
+
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
114
|
+
`}hr(e){return`<hr>
|
|
115
|
+
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
116
|
+
`+r+`</`+i+`>
|
|
117
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
118
|
+
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
119
|
+
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
120
|
+
<thead>
|
|
121
|
+
`+t+`</thead>
|
|
122
|
+
`+r+`</table>
|
|
123
|
+
`}tablerow({text:e}){return`<tr>
|
|
124
|
+
${e}</tr>
|
|
125
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
126
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Mg(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?Mg(n,!0):this.parser.parseInline(r),o=Pg(e);if(o===null)return a;e=Mg(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+Mg(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Pg(e);if(i===null)return Mg(n);e=i;let a=`<img src="${Mg(e)}" alt="${Mg(n)}"`;return t&&(a+=` title="${Mg(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Mg(e.text)}},qg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Jg=class e{options;renderer;textRenderer;constructor(e){this.options=e||ch,this.options.renderer=this.options.renderer||new Kg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qg}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Yg=class{options;block;constructor(e){this.options=e||ch}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Gg.lex:Gg.lexInline}provideParser(e=this.block){return e?Jg.parse:Jg.parseInline}};function Xg(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++)e.push(t[n]);else e.push(t)}var Zg=class{defaults=sh();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Jg;Renderer=Kg;TextRenderer=qg;Lexer=Gg;Tokenizer=Wg;Hooks=Yg;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(Xg(n,t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)Xg(n,this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)Xg(n,this.walkTokens(e.tokens,t));break}case`list`:{let e=r;Xg(n,this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);Xg(n,this.walkTokens(i,t))}):e.tokens&&Xg(n,this.walkTokens(e.tokens,t))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Kg(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Wg(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Yg;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Yg.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Yg.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&Xg(n,t.call(this,e)),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Gg.lex(e,t??this.defaults)}parser(e,t){return Jg.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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 t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Gg.lex:Gg.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Jg.parse:Jg.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Gg.lex:Gg.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Jg.parse:Jg.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
127
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Mg(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Qg=new Zg;function $g(e,t){return Qg.parse(e,t)}$g.options=$g.setOptions=function(e){return Qg.setOptions(e),$g.defaults=Qg.defaults,lh($g.defaults),$g},$g.getDefaults=sh,$g.defaults=ch;function e_(...e){return Qg.use(...e),$g.defaults=Qg.defaults,lh($g.defaults),$g}$g.use=e_,$g.walkTokens=function(e,t){return Qg.walkTokens(e,t)},$g.parseInline=Qg.parseInline,$g.Parser=Jg,$g.parser=Jg.parse,$g.Renderer=Kg,$g.TextRenderer=qg,$g.Lexer=Gg,$g.lexer=Gg.lex,$g.Tokenizer=Wg,$g.Hooks=Yg,$g.parse=$g,$g.options,$g.setOptions,$g.walkTokens,$g.parseInline,Jg.parse,Gg.lex;var t_=e=>e.replace(/[&<>"']/g,e=>`&#${e.charCodeAt(0)};`),n_={html:({text:e})=>t_(e),image:({text:e})=>t_(e)},r_=new Zg({gfm:!0,renderer:n_});function i_(e){return new Zg({gfm:!0,renderer:{...n_,codespan:({text:t})=>{let n=e(t);return n!==null&&`<span data-ref="${n}"></span>`}}})}var a_=`p.br.hr.strong.em.del.code.pre.blockquote.a.ul.ol.li.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td.span`.split(`.`);function o_(e,t,n){let r=Object.assign([...t],{links:n}),i=e.parser(r);return oh.sanitize(i,{ALLOWED_TAGS:a_,ALLOWED_ATTR:[`href`,`title`,`align`,`data-ref`],ALLOWED_URI_REGEXP:/^(?:https?:|mailto:|#)/i})}function s_(e,t){let n=t===void 0?r_:i_(t),r=n.lexer(e),i=[],a=[],o=()=>{a.length>0&&i.push({kind:`html`,html:o_(n,a,r.links)}),a=[]};for(let e of r)e.type===`code`&&`lang`in e&&e.lang?.trim()===`mermaid`&&`text`in e?(o(),i.push({kind:`mermaid`,source:String(e.text)})):a.push(e);return o(),i}function c_(e){return`tokens`in e&&Array.isArray(e.tokens)?e.tokens:[]}function l_(e,t){let n=c_(e).find(e=>e.type===`text`||e.type===`paragraph`),r=e=>e.map(e=>{if(e.type===`codespan`&&`text`in e)return t(String(e.text))===null?String(e.text):``;let n=c_(e);return n.length>0?r(n):`text`in e?String(e.text):``}).join(``);return r(n===void 0?[]:c_(n)).replace(/\s+/g,` `).replace(/^[\s,:;.–—-]+/,``).trim()}function u_(e,t){let n=new Map,r=new Set,i=(e,a)=>{for(let o of e)if(o.type===`codespan`&&`text`in o){let e=t(String(o.text));if(e===null||r.has(e))continue;r.add(e);let i=a===null?``:l_(a,t);i!==``&&n.set(e,i)}else if(o.type===`list`&&`items`in o&&Array.isArray(o.items))for(let e of o.items)i(c_(e),e);else i(c_(o),a)};return i(r_.lexer(e),null),n}function d_({...e}){return(0,B.jsx)(Ca,{"data-slot":`dialog`,...e})}function f_({...e}){return(0,B.jsx)(Da,{"data-slot":`dialog-portal`,...e})}function p_({className:e,...t}){return(0,B.jsx)(ka,{"data-slot":`dialog-overlay`,className:L(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function m_({className:e,children:t,showCloseButton:n=!0,...r}){return(0,B.jsxs)(f_,{children:[(0,B.jsx)(p_,{}),(0,B.jsxs)(Na,{"data-slot":`dialog-content`,className:L(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,B.jsx)(Ba,{"data-slot":`dialog-close`,asChild:!0,children:(0,B.jsxs)(J,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,B.jsx)(Ce,{}),(0,B.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function h_({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`dialog-header`,className:L(`flex flex-col gap-2`,e),...t})}function g_({className:e,showCloseButton:t=!1,children:n,...r}){return(0,B.jsxs)(`div`,{"data-slot":`dialog-footer`,className:L(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,B.jsx)(Ba,{asChild:!0,children:(0,B.jsx)(J,{variant:`outline`,children:`Close`})})]})}function __({className:e,...t}){return(0,B.jsx)(La,{"data-slot":`dialog-title`,className:L(`font-heading text-base leading-none font-medium`,e),...t})}function v_({className:e,...t}){return(0,B.jsx)(Ra,{"data-slot":`dialog-description`,className:L(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}var y_=`modulepreload`,b_=function(e){return`/`+e},x_={},S_=function(e){return e.pathname.endsWith(`.css`)},C_=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=b_(t,n);let r=s(t),i=S_(r);return C_(x_,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:y_,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},w_=null,T_=0;function E_(){return w_??=$(async()=>{let{default:e}=await import(`./mermaid.core-B4llDSFO.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])).then(({default:e})=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,theme:document.documentElement.classList.contains(`dark`)?`dark`:`default`}),e)),w_}async function D_(e){let t=await E_();T_+=1;let{svg:n}=await t.render(`follow-me-diagram-${T_}`,e);return n}var O_=`flex justify-center [&_svg]:h-auto [&_svg]:max-h-[360px] [&_svg]:max-w-full xl:[&_svg]:max-h-[480px]`;function k_(e){return`key`in e&&e.key!==`Enter`&&e.key!==` `?null:e.target instanceof Element?e.target.closest(`[data-pick]`):null}function A_({source:e,title:t,picks:n}){let[r,i]=(0,O.useState)(null),[a,o]=(0,O.useState)(null),[s,c]=(0,O.useState)(!1),[l,u]=(0,O.useState)(!1),d=(0,O.useRef)(null),f=(0,O.useRef)(!1);(0,O.useEffect)(()=>{let t=!0;return D_(e).then(e=>t&&i(e)).catch(e=>t&&o(e instanceof Error?e.message:String(e))),()=>{t=!1}},[e]);let p=n?.decorate;(0,O.useLayoutEffect)(()=>{r!==null&&d.current!==null&&p?.(d.current)},[r,p]);let m=(0,O.useCallback)(e=>{e!==null&&r!==null&&p?.(e)},[r,p]),h=e=>{let t=k_(e);t===null?e.type===`click`&&c(!0):(e.preventDefault(),n?.onPick(t.getAttribute(`data-pick`)??``,t))},g=e=>{let t=k_(e);if(t===null)return;e.preventDefault();let r=t.getAttribute(`data-pick`)??``;f.current=!0,c(!1),requestAnimationFrame(()=>{let e=d.current?.querySelector(`[data-pick="${CSS.escape(r)}"]`)??d.current;e!==null&&n?.onPick(r,e)})};if(a!==null)return(0,B.jsxs)(`figure`,{className:`rounded-lg border border-dashed p-3 text-sm`,children:[(0,B.jsxs)(`figcaption`,{className:`mb-1 text-muted-foreground text-xs`,children:[`The diagram did not render: `,a]}),(0,B.jsx)(`pre`,{className:`overflow-x-auto font-mono text-xs`,children:e})]});let _=r===null?(0,B.jsx)(`div`,{className:`h-24 animate-pulse rounded bg-muted`}):(0,B.jsx)(`div`,{ref:d,className:O_,dangerouslySetInnerHTML:{__html:r}});return(0,B.jsxs)(B.Fragment,{children:[n===void 0?(0,B.jsx)(`button`,{type:`button`,"aria-label":`Enlarge ${t}`,disabled:r===null,onClick:()=>c(!0),className:`block w-full cursor-zoom-in rounded-lg border bg-card p-3 transition-colors hover:border-ring`,children:_}):(0,B.jsxs)(`div`,{className:`relative cursor-zoom-in rounded-lg border bg-card p-3`,onClick:h,onKeyDown:h,children:[_,(0,B.jsx)(J,{variant:`ghost`,size:`icon-xs`,className:`absolute top-2 right-2`,"aria-label":`Enlarge ${t}`,disabled:r===null,onClick:e=>{e.stopPropagation(),c(!0)},children:(0,B.jsx)(I,{})})]}),(0,B.jsx)(d_,{open:s,onOpenChange:c,children:(0,B.jsxs)(m_,{className:`flex h-[90vh] w-[95vw] max-w-none flex-col sm:max-w-none`,onCloseAutoFocus:e=>{f.current&&(f.current=!1,e.preventDefault())},children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 pr-10`,children:[(0,B.jsx)(__,{className:`text-sm`,children:t}),(0,B.jsxs)(`div`,{className:`ml-auto flex gap-1`,children:[(0,B.jsx)(J,{size:`xs`,variant:l?`ghost`:`secondary`,onClick:()=>u(!1),children:`Fit`}),(0,B.jsx)(J,{size:`xs`,variant:l?`secondary`:`ghost`,onClick:()=>u(!0),children:`Actual size`})]})]}),(0,B.jsx)(`div`,{ref:m,onClick:n===void 0?void 0:g,onKeyDown:n===void 0?void 0:g,className:L(`min-h-0 flex-1 overflow-auto rounded-md bg-background`,l?`[&_svg]:max-w-none!`:`flex items-center justify-center [&_svg]:h-full! [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full!`),dangerouslySetInnerHTML:{__html:r??``}})]})})]})}function j_({text:e,title:t=`Diagram`,numberOf:n,chip:r}){let i=(0,O.useMemo)(()=>s_(e,n),[e,n]),a=(0,O.useRef)(null),[o,s]=(0,O.useState)([]);return(0,O.useLayoutEffect)(()=>{let e=[...a.current?.querySelectorAll(`[data-ref]`)??[]];s(e.map(e=>({at:e,n:Number(e.dataset.ref)})))},[i]),(0,B.jsxs)(`div`,{ref:a,className:`space-y-2`,children:[i.map((e,n)=>e.kind===`mermaid`?(0,B.jsx)(A_,{source:e.source,title:t},n):(0,B.jsx)(`div`,{className:`prose-fm max-w-[72ch]`,dangerouslySetInnerHTML:{__html:e.html}},n)),r===void 0?null:o.map(({at:e,n:t},n)=>(0,Kt.createPortal)(r(t),e,`${n}`))]})}var M_=[`blocker`,`major`,`minor`],N_={blocker:`bg-rose-500/15 text-rose-700 dark:text-rose-300`,major:`bg-amber-500/15 text-amber-800 dark:text-amber-300`,minor:`bg-slate-500/15 text-slate-700 dark:text-slate-300`};function P_({severity:e,className:t}){return(0,B.jsx)(`span`,{className:L(`rounded-full px-2 py-px font-medium text-xs`,N_[e],t),children:e})}function F_({value:e,onChange:t}){return(0,B.jsxs)(`fieldset`,{className:`flex items-center gap-1`,children:[(0,B.jsx)(`legend`,{className:`sr-only`,children:`Severity`}),M_.map(n=>(0,B.jsx)(`button`,{type:`button`,"aria-pressed":e===n,onClick:()=>t(e===n?null:n),className:L(`rounded-full px-2 py-px text-xs ring-1 ring-border transition-colors`,e===n?N_[n]:`text-muted-foreground hover:bg-muted`),children:n},n))]})}var I_=`follow-me report --json`;function L_({text:e,label:t}){let[n,r]=(0,O.useState)(!1);return(0,B.jsxs)(J,{variant:`ghost`,size:`xs`,onClick:()=>void navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1200)}),children:[(0,B.jsx)(de,{}),n?`Copied`:t]})}var R_={flag:`Flag`,question:`Question`,concern:`Kept concern`};function z_({item:e,included:t,onInclude:n,lines:r,toggleable:i}){let a=Jd(e),o=ef(e),{said:s,answer:c}=Zd(e.body),l=e.thread.filter(e=>c===null||e.body.trim()!==c.trim());return(0,B.jsxs)(`article`,{"aria-label":`${R_[e.kind]} ${a??`on the branch`}`,className:L(`rounded-lg border bg-card p-4 text-sm`,!t&&`opacity-60`),children:[(0,B.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-center gap-2`,children:[i?(0,B.jsx)(kp,{checked:t,onChange:n,name:`Include ${a??R_[e.kind]}`,children:`Include`}):null,e.kind===`question`&&!e.resolved?(0,B.jsx)(`span`,{className:`text-amber-700 text-xs dark:text-amber-300`,children:`still open`}):null,(0,B.jsx)(`span`,{className:`font-mono text-xs`,children:a??`General`}),e.severity===null?null:(0,B.jsx)(P_,{severity:e.severity}),(0,B.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:R_[e.kind]}),e.resolved?(0,B.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`✓ resolved`}):null,o===null?null:(0,B.jsx)(`span`,{className:`text-amber-700 text-xs dark:text-amber-300`,children:o}),(0,B.jsxs)(`span`,{className:`ml-auto flex gap-1`,children:[(0,B.jsx)(L_,{text:e.body,label:`Copy comment`}),a===null?null:(0,B.jsx)(L_,{text:a.replace(/ \((new|old)\)$/,``),label:`Copy path:line`})]})]}),r.length>0?(0,B.jsx)(`pre`,{className:`mb-2 overflow-x-auto rounded bg-muted px-2 py-1 font-mono text-xs`,children:r.join(`
|
|
128
|
+
`)}):null,(0,B.jsx)(j_,{text:s.replace(/^\*\*(blocker|major|minor)\*\*\n\n/,``)}),c===null?null:(0,B.jsxs)(`div`,{className:`mt-3 border-sky-500/60 border-l-2 pl-3`,children:[(0,B.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,B.jsx)(j_,{text:c})]}),l.length===0?null:(0,B.jsxs)(`details`,{className:`mt-3 text-muted-foreground`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-xs`,children:[l.length,` more in the thread`]}),(0,B.jsx)(`div`,{className:`mt-2 space-y-2`,children:l.map((e,t)=>(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`font-medium text-foreground text-xs`,children:e.author===`agent`?`Agent`:`You`}),(0,B.jsx)(j_,{text:e.body})]},t))})]})]})}function B_(){let{state:e,run:t,ended:n}=X(),[r,i]=(0,O.useState)(null),[a,o]=(0,O.useState)(null),[s,c]=(0,O.useState)(new Map),[l,u]=(0,O.useState)(!1);(0,O.useEffect)(()=>{qd.report().then(i).catch(e=>o(e instanceof Error?e.message:String(e)))},[]);let d=(r??[]).map(t=>Qd(t,e)),f=(r??[]).filter((e,t)=>Yd(e,s,d[t]?.id??null)),p=async(e,n)=>{c(t=>new Map(t).set(e,n)),await t(()=>qd.exclude(e,!n))||c(t=>new Map(t).set(e,!n))},m=async()=>{await t(()=>qd.end())&&u(!0)},h=new Map;(r??[]).forEach((e,t)=>{let n=e.path??``;h.set(n,[...h.get(n)??[],t])});let g=[...h].sort(([e],[t])=>e===``?1:t===``?-1:0);return(0,B.jsxs)(`div`,{className:`min-h-screen`,children:[(0,B.jsx)(`header`,{className:`sticky top-0 z-30 h-11 border-b bg-background/95 backdrop-blur`,children:(0,B.jsxs)(`div`,{className:`mx-auto flex h-full max-w-[1232px] items-center gap-3 px-6 text-sm`,children:[(0,B.jsx)(`strong`,{children:`follow-me`}),(0,B.jsxs)(`span`,{className:`min-w-0 truncate text-muted-foreground`,children:[`· `,e.anchor.branch,` → `,e.anchor.baseRef,` · plan v`,e.version,` · hand-off`]}),n||l?null:(0,B.jsxs)(J,{variant:`ghost`,size:`sm`,className:`ml-auto`,onClick:()=>nf(`review`),children:[(0,B.jsx)(M,{}),`Back to review`]})]})}),(0,B.jsxs)(`main`,{className:`mx-auto max-w-[920px] space-y-6 px-6 py-8`,children:[(0,B.jsxs)(`section`,{className:`space-y-3`,children:[(0,B.jsx)(`h1`,{className:`font-semibold text-xl`,children:`Carry the review to the merge request`}),(0,B.jsx)(`p`,{className:`max-w-[72ch] text-muted-foreground text-sm`,children:`Lines are the original branch's, so they match the merge request against the same base. Flags and kept concerns go by default; tick a question to ask the author too.`}),r===null?null:(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,B.jsxs)(`span`,{className:`font-medium`,children:[f.length,` included · `,r.length-f.length,` excluded`]}),(0,B.jsx)(`span`,{className:`ml-auto`}),(0,B.jsx)(L_,{text:$d(f),label:`Copy all as markdown`}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,asChild:!0,children:(0,B.jsxs)(`a`,{href:`${Hd}/api/report?format=json`,download:`report.json`,children:[(0,B.jsx)(pe,{}),`report.json`]})})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2 text-sm`,children:[(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`Or ask your agent to run`}),(0,B.jsx)(`code`,{className:`font-mono`,children:I_}),(0,B.jsx)(`span`,{className:`ml-auto`,children:(0,B.jsx)(L_,{text:I_,label:`Copy`})})]})]}),a===null?null:(0,B.jsxs)(`p`,{role:`alert`,className:`text-rose-700 text-sm dark:text-rose-300`,children:[`The report did not load: `,a]}),r!==null&&r.length===0?(0,B.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`Nothing to carry over: no flags, kept concerns or questions.`}):null,g.map(([e,t])=>(0,B.jsxs)(`section`,{className:`space-y-2`,"aria-label":e===``?`General`:e,children:[(0,B.jsx)(`h2`,{className:`font-medium font-mono text-sm`,children:e===``?`General`:e}),t.map(e=>{let t=r?.[e];if(t===void 0)return null;let n=d[e]??null;return(0,B.jsx)(z_,{item:t,lines:n?.comment?.context.lines??[],toggleable:n!==null,included:Yd(t,s,n?.id??null),onInclude:e=>n!==null&&void p(n.id,e)},n?.id??`item-${e}`)})]},e)),(0,B.jsx)(`section`,{className:`flex items-center gap-3 border-t pt-6 text-sm`,children:n||l?(0,B.jsxs)(`p`,{className:`text-muted-foreground`,children:[`The review is handed back. Your agent reads it with`,` `,(0,B.jsx)(`code`,{className:`font-mono`,children:I_}),`.`]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:`Done here? Ending the review hands it back to your agent.`}),(0,B.jsx)(J,{className:`ml-auto`,onClick:()=>void m(),children:`End review`})]})})]})]})}function V_(e){let t=[];for(let n of e){let e=bf(n),r=t.at(-1);r!==void 0&&r.section===e?r.commits.push(n):t.push({section:e,commits:[n]})}return t}var H_=(e,t,n)=>`${e} ${e===1?t:n}`;function U_(e,t){let n=[`${e.index+1}`,df(e.message)];return t.viewed&&n.push(`viewed`),t.open>0&&n.push(H_(t.open,`open thread`,`open threads`)),t.unread>0&&n.push(H_(t.unread,`unread agent reply`,`unread agent replies`)),t.undecided>0&&n.push(H_(t.undecided,`agent concern`,`agent concerns`)),t.coverage!==void 0&&t.coverage.total>0&&n.push(`${Qf(t.coverage)}% of new lines covered`),n.join(` · `)}function W_(e){let t=e.filter(e=>e.viewed).length,n=e.reduce((e,t)=>e+t.open,0),r=`${t} of ${e.length} viewed`;return n===0?r:`${r} · ${H_(n,`open thread`,`open threads`)}`}function G_(e,t){let n=new Map;for(let r of e){if(r.kind===`version`||r.thread===null)continue;let e=t.get(r.thread);e!==void 0&&n.set(e,(n.get(e)??0)+1)}return n}var K_=1280;function q_(e,t){return e.has(`open`)?!0:!e.has(`closed`)&&t>=K_}function J_(e){try{let t=JSON.parse(localStorage.getItem(`follow-me:${Hd}:${e}`)??`[]`);return new Set(Array.isArray(t)?t.filter(e=>typeof e==`string`):[])}catch{return new Set}}function Y_(e,t){localStorage.setItem(`follow-me:${Hd}:${e}`,JSON.stringify([...t]))}var X_=(0,O.createContext)(null);function Z_(){let e=(0,O.useContext)(X_);if(e===null)throw Error(`usePage outside PageProvider`);return e}function Q_(){let e=Tp();return Z_().coverageOn?e:null}function $_(e){document.getElementById(`commit-${e+1}`)?.scrollIntoView({block:`start`})}function ev(){let e=null;for(let t of document.querySelectorAll(`section[data-commit]`)){let n=t.getBoundingClientRect().top;if(n>45&&e!==null||(e={commit:Number(t.dataset.commit),offset:44-n},n>45))break}return e??{commit:0,offset:0}}function tv(e){let t=document.getElementById(`commit-${e.commit+1}`);t!==null&&window.scrollBy(0,t.getBoundingClientRect().top-44+e.offset)}function nv(){let[e,t]=(0,O.useState)(0);return(0,O.useEffect)(()=>{let e=0,n=()=>{e=0;let n=44+(window.innerHeight-44)/3,r=document.querySelectorAll(`section[data-commit]`),i=0;for(let e of r){if(e.getBoundingClientRect().top>n)break;i=Number(e.dataset.commit)}t(i)},r=()=>{e===0&&(e=requestAnimationFrame(n))};return n(),window.addEventListener(`scroll`,r,{passive:!0}),()=>{window.removeEventListener(`scroll`,r),cancelAnimationFrame(e)}},[]),e}function rv({children:e}){let{state:t}=X(),n=nv(),[r,i]=(0,O.useState)(()=>J_(`viewed`)),[a,o]=(0,O.useState)(()=>J_(`resolved`)),[s,c]=(0,O.useState)(null),[l,u]=(0,O.useState)(null),d=(0,O.useCallback)((e,t)=>u(e===null?null:{kind:e,body:t??null}),[]),[f,p]=(0,O.useState)(()=>J_(`prefs`).has(`notify`)&&`Notification`in window&&Notification.permission===`granted`),m=(0,O.useCallback)(async e=>{let t=e&&`Notification`in window&&await Notification.requestPermission()===`granted`;p(t),Y_(`prefs`,new Set(t?[`notify`]:[]))},[]),[h,g]=(0,O.useState)(()=>q_(J_(`index`),window.innerWidth)),_=(0,O.useCallback)(e=>{g(e),Y_(`index`,new Set([e?`open`:`closed`]))},[]),[v,y]=(0,O.useState)(()=>!J_(`coverage`).has(`off`)),b=(0,O.useCallback)(e=>{y(e),Y_(`coverage`,new Set(e?[]:[`off`]))},[]),[x,S]=(0,O.useState)(new Set),C=(0,O.useCallback)((e,t)=>S(n=>new Set([...n,`${e}`,`${e}|${t}`])),[]),w=(0,O.useCallback)((e,t)=>S(n=>new Set([...n].filter(n=>n!==`${e}`&&n!==`${e}|${t}`))),[]),T=(0,O.useCallback)(e=>{c(e),e===null&&u(null)},[]),E=(0,O.useCallback)((e,t)=>{o(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),Y_(`resolved`,r),r})},[]),D=(0,O.useCallback)((e,t)=>{i(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),Y_(`viewed`,r),r})},[]),k=(0,O.useMemo)(()=>{let e=(e,t)=>`${_f(e)}|${t}`;return{current:n,isViewed:e=>r.has(_f(e)),setViewed:(e,n)=>{if(D(_f(e),n),!n)return;let i=t.commits.find(t=>t.index>e.index&&!r.has(_f(t)));i!==void 0&&requestAnimationFrame(()=>$_(i.index))},isFileViewed:(t,n)=>r.has(e(t,n)),setFileViewed:(t,n,r)=>D(e(t,n),r),resolved:new Set([...t.resolved,...a]),setLocallyResolved:E,pick:s,setPick:T,box:s===null?null:l?.kind??null,boxBody:s===null?null:l?.body??null,setBox:d,notify:f,setNotify:m,indexOpen:h,setIndexOpen:_,isRevealed:(e,t)=>x.has(t===void 0?`${e}`:`${e}|${t}`),reveal:C,conceal:w,coverageOn:v,setCoverageOn:b}},[n,r,D,t.commits,t.resolved,a,E,s,T,l,d,f,m,h,_,x,C,w,v,b]);return(0,B.jsx)(X_,{value:k,children:e})}function iv({...e}){return(0,B.jsx)(qu,{"data-slot":`popover`,...e})}function av({...e}){return(0,B.jsx)(Zu,{"data-slot":`popover-trigger`,...e})}function ov({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,B.jsx)(td,{children:(0,B.jsx)(G,{"data-slot":`popover-content`,align:t,sideOffset:n,className:L(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function sv({...e}){return(0,B.jsx)(Yu,{"data-slot":`popover-anchor`,...e})}function cv(e,t,n){return{anchor:e,context:t,body:n.body,...n.kind===`ask`?{kind:`question`}:{},...n.severity===null?{}:{severity:n.severity}}}function lv({...e}){return(0,B.jsx)(Au,{"data-slot":`dropdown-menu`,...e})}function uv({...e}){return(0,B.jsx)(Mu,{"data-slot":`dropdown-menu-trigger`,...e})}function dv({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,B.jsx)(Nu,{children:(0,B.jsx)(Fu,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:L(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function fv({className:e,inset:t,variant:n=`default`,...r}){return(0,B.jsx)(Iu,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:L(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function pv({className:e,children:t,checked:n,inset:r,...i}){return(0,B.jsxs)(Lu,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":r,className:L(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...i,children:[(0,B.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,B.jsx)(Ru,{children:(0,B.jsx)(ie,{})})}),t]})}function mv({className:e,...t}){return(0,B.jsx)(`textarea`,{"data-slot":`textarea`,className:L(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}var hv=[`ask`,`flag`];function gv({kind:e,label:t,placeholder:n,actions:r,onCancel:i,kinds:a=!0,className:o,initialBody:s=``}){let[c,l]=(0,O.useState)(s),u=(0,O.useRef)(!1),[d,f]=(0,O.useState)(e),[p,m]=(0,O.useState)(null),[h,g]=(0,O.useState)(!1),_=r(d),v=async e=>{if(e===void 0||c.trim()===``||h)return;g(!0);let t=await e.run({body:c.trim(),kind:d,severity:d===`flag`?p:null});g(!1),t&&i()};return(0,B.jsxs)(`div`,{className:L(`space-y-2 rounded-lg border bg-card p-3 font-sans shadow-sm`,o),children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,B.jsx)(`span`,{children:t}),a?(0,B.jsxs)(`fieldset`,{className:`ml-auto flex rounded-md bg-muted p-0.5`,children:[(0,B.jsx)(`legend`,{className:`sr-only`,children:`Kind`}),hv.map(e=>(0,B.jsx)(`button`,{type:`button`,"aria-pressed":d===e,onClick:()=>f(e),className:L(`rounded px-2 py-0.5 text-xs`,d===e?`bg-background text-foreground shadow-sm`:`text-muted-foreground`),children:e===`ask`?`Ask`:`Flag`},e))]}):null]}),(0,B.jsx)(mv,{autoFocus:!0,"aria-label":t,value:c,onFocus:e=>{if(u.current)return;u.current=!0;let t=e.currentTarget.value.length;e.currentTarget.setSelectionRange(t,t)},placeholder:n??(d===`ask`?`What would you like to know?`:`What should change?`),onChange:e=>l(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&!e.shiftKey?(e.preventDefault(),v(_.find(e=>e.primary)??_[0])):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())}}),(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[d===`flag`&&a?(0,B.jsx)(F_,{value:p,onChange:m}):null,(0,B.jsx)(`span`,{className:`ml-auto`}),(0,B.jsx)(J,{variant:`ghost`,size:`sm`,onClick:i,children:`Cancel`}),_.map(e=>(0,B.jsx)(J,{size:`sm`,variant:e.primary?`default`:`outline`,disabled:h||c.trim()===``,onClick:()=>void v(e),children:e.label},e.label))]})]})}var _v=/[A-Za-z0-9_$]/,vv=/[0-9]/;function yv(e,t){let n=_v.test(e[t]??``)?t:_v.test(e[t-1]??``)?t-1:-1;if(n<0)return null;let r=n;for(;r>0&&_v.test(e[r-1]??``);)--r;let i=n+1;for(;i<e.length&&_v.test(e[i]??``);)i+=1;let a=e.slice(r,i);return vv.test(a[0]??``)?null:{name:a,start:r,end:i}}function bv(e){return/mac|iphone|ipad/i.test(e)}function xv(e,t){return t?e.metaKey:e.ctrlKey}function Sv(e){return e.unit!==null&&e.commit!==null}function Cv(e,t){let n=`${e.path}:${e.newLine}`;if(e.commit===null)return{place:n,where:`outside this branch`};let r=t[e.commit],i=r===void 0?null:bf(r),a=`in commit ${e.commit+1}`;return{place:n,where:i===null?a:`${a} · ${xf(i)}`}}function wv(e){let[t,...n]=e;return t===void 0?{kind:`none`}:n.length>0?{kind:`choose`,candidates:e}:Sv(t)?{kind:`jump`,candidate:t}:{kind:`peek`,candidate:t}}function Tv(e,t){return[...e,t].slice(-20)}function Ev(e){let t=e.at(-1);return t===void 0?null:{spot:t.spot,rest:e.slice(0,-1)}}function Dv(e){let t=e.at(-1);return t===void 0?null:`Back to ${t.label??`commit ${t.from+1}`}`}var Ov=1600;function kv(e,t=`thread-flash`){e.classList.remove(t),e.getBoundingClientRect(),e.classList.add(t),setTimeout(()=>e.classList.remove(t),Ov)}function Av(e){let t=document.querySelector(`[data-thread-id="${CSS.escape(e)}"]`);return t!==null&&(t.scrollIntoView({block:`center`}),kv(t),!0)}var jv=/^(.+):(\d+)(?:-(\d+))?(?:@(\d+|base))?$/;function Mv(e,t,n,r){return`${e}:${t}-${n}@${r??`tip`}`}function Nv(e,t){let[,n,r,i,a]=jv.exec(e)??[];if(n===void 0||r===void 0)return null;let o=Number(r),s=Mv(n,o,i===void 0?o:Number(i),a===void 0?null:a===`base`?`base`:Number(a));return t.find(e=>Mv(e.path,e.start,e.end,e.at)===s)?.n??null}var Pv=(e,t)=>e!=null&&t!==null&&e>=t.start&&e<=t.end;function Fv(e,t,n,r,i,a){if(e.tip!==t)return{kind:`stale`,ref:e};let o=[];for(let t of r.values()){if(t.kind!==`hunk`||t.path!==e.path)continue;let r=a.get(t.id)??[],s=Cf(t,i),c=n.find(e=>e.refs.some(e=>e.unit===t.id))?.index,l=e=>r=>n[r]?.refs.some(e=>e.unit===t.id)===!0&&wf(t.body,s,r).some(t=>t.kind===`line`&&t.line===e);t.body.forEach((n,i)=>{let a=r[i],u=n.op!==`-`&&Pv(a?.new,e.lines)||n.op!==`+`&&Pv(a?.old,e.old),d=n.op===` `?c:s[n.change];u&&d!==void 0&&o.push({unit:t.id,row:i,owner:d,shownIn:l(i)})})}if(o.length===0)return{kind:`off`,ref:e};let s=Math.max(...o.map(e=>e.owner));return{kind:`on`,ref:e,commit:s,targets:o.map(e=>({commit:e.shownIn(s)?s:e.owner,unit:e.unit,row:e.row}))}}function Iv(e){return e.kind===`on`?e.targets.find(t=>t.commit===e.commit)??null:null}function Lv(e){return e.end>e.start?`${e.start}-${e.end}`:`${e.start}`}function Rv(e){return`${e.path.split(`/`).at(-1)??e.path}:${Lv(e)}`}function zv(e){return`${e.path}:${Lv(e)}${e.at===null?``:`@${e.at}`}`}function Bv(e,t){return e.kind===`stale`?`from ${e.ref.tip.slice(0,7)}`:e.kind===`off`||e.commit===t?null:`commit ${e.commit+1}`}var Vv=new Map([[`js`,`javascript`],[`mjs`,`javascript`],[`cjs`,`javascript`],[`jsx`,`jsx`],[`ts`,`typescript`],[`tsx`,`tsx`],[`json`,`json`],[`md`,`markdown`],[`css`,`css`],[`html`,`markup`],[`sh`,`bash`],[`bash`,`bash`],[`py`,`python`],[`go`,`go`],[`rs`,`rust`],[`rb`,`ruby`],[`java`,`java`],[`kt`,`kotlin`],[`c`,`c`],[`cpp`,`cpp`],[`h`,`c`],[`yaml`,`yaml`],[`yml`,`yaml`],[`toml`,`toml`],[`sql`,`sql`],[`swift`,`swift`],[`php`,`php`]]);function Hv(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?null:Vv.get(t.slice(n+1).toLowerCase())??null}var Uv=new Map([[`comment`,`comment`],[`prolog`,`comment`],[`doctype`,`comment`],[`cdata`,`comment`],[`keyword`,`keyword`],[`atrule`,`keyword`],[`important`,`keyword`],[`string`,`string`],[`char`,`string`],[`attr-value`,`string`],[`template-string`,`string`],[`url`,`string`],[`regex`,`string`],[`number`,`number`],[`boolean`,`number`],[`constant`,`number`],[`symbol`,`number`],[`unit`,`number`],[`function`,`function`],[`class-name`,`type`],[`builtin`,`type`],[`namespace`,`type`],[`property`,`property`],[`attr-name`,`property`],[`variable`,`property`],[`parameter`,`property`],[`tag`,`tag`],[`selector`,`tag`],[`entity`,`tag`]]);function Wv(e){for(let t of e){let e=Uv.get(t);if(e!==void 0)return e}return null}function Gv(e){return typeof e==`object`&&!!e&&`type`in e&&`content`in e}function Kv(e,t,n){for(let r of e)if(typeof r==`string`)n.push({text:r,types:t});else if(Gv(r)){let e=[r.alias].flat().filter(e=>typeof e==`string`),i=[r.type,...e,...t];Kv(Array.isArray(r.content)?r.content:[r.content],i,n)}}function qv(e){let t=[];Kv(e,[],t);let n=[[]];for(let e of t){let t=Wv(e.types);e.text.split(`
|
|
129
|
+
`).forEach((e,r)=>{r>0&&n.push([]);let i=n.at(-1);if(i===void 0||e===``)return;let a=i.at(-1);a?.tone===t?a.text+=e:i.push({text:e,tone:t})})}return n}function Jv(e,t){let n=n=>{let r=e.flatMap((e,t)=>n(e)?[t]:[]),i=r.map(t=>(e[t]?.text??``).replace(/\n$/,``));if(i.length===0)return new Map;let a=qv(t(i.join(`
|
|
130
|
+
`)));return a.length===i.length&&a.every((e,t)=>e.map(e=>e.text).join(``)===i[t])?new Map(r.map((e,t)=>[e,a[t]??[]])):null},r=n(e=>e.op!==`+`),i=n(e=>e.op!==`-`);return r===null||i===null?null:e.map((e,t)=>(e.op===`-`?r.get(t):i.get(t))??[])}var Yv={javascript:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[])],jsx:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-jsx-D-D0NWtC.js`),[])],typescript:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-typescript-BMqONzxf.js`),[])],tsx:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-jsx-D-D0NWtC.js`),[]),()=>$(()=>import(`./prism-typescript-BMqONzxf.js`),[]),()=>$(()=>import(`./prism-tsx-p6J2Kc_4.js`),[])],json:[()=>$(()=>import(`./prism-json-Dp_-W-Hv.js`),[])],markdown:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-markdown-Bc9-36OC.js`),[])],css:[()=>$(()=>import(`./prism-css-CPgOzxXp.js`),[])],markup:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-javascript-BnO-swvr.js`),[]),()=>$(()=>import(`./prism-css-CPgOzxXp.js`),[])],bash:[()=>$(()=>import(`./prism-bash-D6zCJ74D.js`),[])],python:[()=>$(()=>import(`./prism-python-CfiSVtM6.js`),[])],go:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-go-C_8qAH5n.js`),[])],rust:[()=>$(()=>import(`./prism-rust-Bu9N8X3N.js`),[])],ruby:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-ruby-DFCASkuD.js`),[])],java:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-java-6wtusvIl.js`),[])],kotlin:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-kotlin-BUlJgC-o.js`),[])],c:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-c-04YixN25.js`),[])],cpp:[()=>$(()=>import(`./prism-clike-DapgWyxx.js`),[]),()=>$(()=>import(`./prism-c-04YixN25.js`),[]),()=>$(()=>import(`./prism-cpp-C-lJbC-6.js`),[])],yaml:[()=>$(()=>import(`./prism-yaml-C0JHu8gr.js`),[])],toml:[()=>$(()=>import(`./prism-toml-DKb54GAT.js`),[])],sql:[()=>$(()=>import(`./prism-sql-CYhVDMEE.js`),[])],swift:[()=>$(()=>import(`./prism-swift-B0kWc-ne.js`),[])],php:[()=>$(()=>import(`./prism-markup-Cp04rIa1.js`),[]),()=>$(()=>import(`./prism-markup-templating-KkSMBj6Y.js`),[]),()=>$(()=>import(`./prism-php-Co4fM40K.js`),[])]},Xv=null,Zv=new Map;function Qv(){return Xv??=$(()=>import(`./prism-core-Cc8H7LPG.js`).then(e=>c(e.default,1)).then(e=>e.default),[]),Xv}function $v(e){let t=Yv[e];if(t===void 0)return Promise.resolve(null);let n=Zv.get(e);return n===void 0&&(n=(async()=>{try{let e=await Qv();for(let e of t)await e();return e}catch{return null}})(),Zv.set(e,n)),n}function ey(e,t){let[n,r]=(0,O.useState)(null);return(0,O.useEffect)(()=>{let n=Hv(e);if(n===null)return;let i=!0;return $v(n).then(e=>{let a=e?.languages[n];i&&e!==null&&a!==void 0&&r(Jv(t,t=>e.tokenize(t,a)))}),()=>{i=!1}},[e,t]),n}function ty(e){return ey(e.path,e.body)}var ny=bv(navigator.platform),ry=`definition`,iy=120,ay=/\btok-(string|comment|keyword|number)\b/;function oy(e,t,n){let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=document.createRange(),a=0,o=!1;for(let e=r.nextNode();e!==null;e=r.nextNode()){let r=e.textContent?.length??0;if(!o&&t<=a+r&&(i.setStart(e,t-a),o=!0),o&&n<=a+r)return i.setEnd(e,n-a),i;a+=r}return null}function sy(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function cy(e,t){let n=document.caretPositionFromPoint(e,t),r=n?.offsetNode;if(n==null||!(r instanceof Text))return null;let i=r.parentElement,a=i?.closest(`[data-code]`),o=a?.closest(`[data-path]`)?.dataset.path;if(i===null||a==null||o===void 0||ay.test(i.className))return null;let s=document.createRange();s.setStart(a,0),s.setEnd(r,n.offset);let c=yv(a.textContent??``,s.toString().length),l=c===null?null:oy(a,c.start,c.end);return c===null||l===null||![...l.getClientRects()].some(n=>sy(n,e,t))?null:{code:a,token:c,range:l,path:o}}function ly(){let{state:e}=X(),t=(0,O.useRef)(new Map),n=(0,O.useRef)(new Map),r=e.planHash,i=(0,O.useCallback)((e,t)=>`${r}\0${t}\0${e}`,[r]);return{lookup:(0,O.useCallback)((e,r)=>{let a=i(e,r),o=n.current.get(a);if(o!==void 0)return o;let s=qd.definition(e,r).then(e=>e.candidates).catch(()=>[]).then(e=>(t.current.set(a,e),e));return n.current.set(a,s),s},[i]),cached:(0,O.useCallback)((e,n)=>t.current.get(i(e,n)),[i])}}var uy=(0,O.createContext)(null),dy=uy.Provider;function fy(){let e=(0,O.useContext)(uy);if(e===null)throw Error(`useGoTo outside GoToProvider`);return e}function py(){return fy().goTo}function my(){return fy().goToPlaces}function hy(){let{depart:e,departures:t}=fy();return{depart:e,departures:t}}function gy(){let{state:e}=X(),{units:t}=wp(),{reveal:n}=Z_(),{lookup:r,cached:i}=ly(),[a,o]=(0,O.useState)([]),[s,c]=(0,O.useState)(null),l=(0,O.useRef)(null),u=(0,O.useCallback)((e,r)=>{let{unit:i,commit:a}=e;if(i===null||a===null)return;let s=ev();o(e=>Tv(e,{spot:s,from:r})),(0,Kt.flushSync)(()=>n(a,t.get(i)?.path??e.path));let c=document.getElementById(`commit-${a+1}`),l=c?.querySelector(`[data-unit="${CSS.escape(i)}"]`),u=e.row===null?null:l?.querySelector(`[data-row="${e.row}"]`);(u??l??c)?.scrollIntoView({block:`center`}),u==null?l!=null&&kv(l):kv(u,`row-flash`)},[n,t]),d=(0,O.useCallback)((e,t)=>{let n=ev();o(r=>Tv(r,{spot:n,from:e,...t===void 0?{}:{label:t}}))},[]),f=(0,O.useCallback)(()=>{c(null),o(e=>{let t=Ev(e);return t===null?e:(requestAnimationFrame(()=>tv(t.spot)),t.rest)})},[]),p=(0,O.useCallback)((e,t,n,r)=>{c(null),Sv(e)?u(e,n):c({kind:`peek`,name:t,from:n,candidate:e,...r?{subject:r}:{}})},[u]),m=(0,O.useCallback)((e,t,n,r,i)=>{l.current=r,c(null),Sv(e)?u(e,n):c({kind:`peek`,name:t,from:n,candidate:e,...i?{subject:i}:{}})},[u]),h=(0,O.useCallback)((e,t,n,r,i)=>{l.current=r;let a=wv(e);a.kind===`choose`?c({kind:`choose`,name:t,from:n,candidates:e,...i?{subject:i}:{}}):a.kind!==`none`&&m(a.candidate,t,n,r,i)},[m]);(0,O.useEffect)(()=>{let e=!1,t=null,n=null,a,o=()=>{clearTimeout(a),CSS.highlights.delete(ry),n?.code.style.removeProperty(`cursor`),n=null},s=e=>{CSS.highlights.set(ry,new Highlight(e.range)),e.code.style.cursor=`pointer`},d=()=>{if(!e||t===null)return o();let c=cy(t.x,t.y);if(c===null)return o();if(n?.code===c.code&&n.start===c.token.start)return;o();let l={code:c.code,start:c.token.start};n=l;let{name:u}=c.token,d=i(u,c.path);d===void 0?a=setTimeout(()=>{r(u,c.path).then(t=>{n===l&&e&&t.length>0&&s(c)})},iy):d.length>0&&s(c)},p=t=>{if(e=xv(t,ny),d(),t.type!==`keydown`||!t.altKey||t.key!==`ArrowLeft`)return;let n=t.target;n instanceof HTMLElement&&n.closest(`input, textarea, [contenteditable]`)||(t.preventDefault(),f())},m=n=>{t={x:n.clientX,y:n.clientY},e=xv(n,ny),d()},h=()=>{e=!1,o()},g=e=>{xv(e,ny)&&cy(e.clientX,e.clientY)!==null&&e.preventDefault()},_=e=>{if(e.button!==0||!xv(e,ny))return;let t=cy(e.clientX,e.clientY);if(t===null)return;e.preventDefault(),e.stopPropagation();let{range:n}=t,{name:i}=t.token,a=Number(t.code.closest(`section[data-commit]`)?.dataset.commit);r(i,t.path).then(e=>{let t=wv(e);l.current={getBoundingClientRect:()=>n.getBoundingClientRect()},t.kind===`jump`?u(t.candidate,a):t.kind===`peek`?c({kind:`peek`,name:i,from:a,candidate:t.candidate}):t.kind===`choose`&&c({kind:`choose`,name:i,from:a,candidates:t.candidates})})};return window.addEventListener(`keydown`,p),window.addEventListener(`keyup`,p),window.addEventListener(`blur`,h),document.addEventListener(`pointermove`,m,{passive:!0}),window.addEventListener(`scroll`,d,{passive:!0}),document.addEventListener(`mousedown`,g,!0),document.addEventListener(`click`,_,!0),()=>{o(),window.removeEventListener(`keydown`,p),window.removeEventListener(`keyup`,p),window.removeEventListener(`blur`,h),document.removeEventListener(`pointermove`,m),window.removeEventListener(`scroll`,d),document.removeEventListener(`mousedown`,g,!0),document.removeEventListener(`click`,_,!0)}},[i,r,u,f]);let g=Dv(a);return{back:g===null?null:(0,B.jsxs)(J,{variant:`secondary`,size:`sm`,onClick:f,title:`${g} (${ny?`⌥←`:`Alt+←`})`,children:[(0,B.jsx)(M,{}),g]}),layer:(0,B.jsxs)(iv,{open:s!==null,onOpenChange:e=>e?void 0:c(null),children:[(0,B.jsx)(sv,{virtualRef:l}),s===null?null:(0,B.jsx)(ov,{align:`start`,className:`w-[min(600px,90vw)] gap-0 p-0`,"aria-label":s.kind===`choose`?`${s.subject===void 0?`Definitions`:`Places`} of ${s.name}`:`${s.subject?.title??`Definition`} of ${s.name} at ${Cv(s.candidate,e.commits).place}`,children:s.kind===`choose`?(0,B.jsx)(vy,{name:s.name,what:s.subject===void 0?`definitions`:`places`,candidates:s.candidates,onPick:e=>p(e,s.name,s.from,s.subject)}):(0,B.jsx)(yy,{candidate:s.candidate,kind:s.subject?.kind??s.candidate.kind,empty:s.subject?.empty??`The server sent no lines for this place.`})})]}),goTo:m,goToPlaces:h,depart:d,departures:a.length}}function _y(e){let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;if(t===0)return;let n=[...e.currentTarget.querySelectorAll(`button`)],r=n.findIndex(e=>e.matches(`:focus`));e.preventDefault(),n[Math.max(0,Math.min(n.length-1,r+t))]?.focus()}function vy({name:e,what:t,candidates:n,onPick:r}){let{state:i}=X();return(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`border-b px-3 py-1.5 text-muted-foreground text-xs`,children:[n.length,` `,t,` of `,(0,B.jsx)(`code`,{className:`font-mono`,children:e})]}),(0,B.jsx)(`ul`,{className:`max-h-72 overflow-y-auto py-1`,onKeyDown:_y,children:n.map(e=>{let t=Cv(e,i.commits);return(0,B.jsx)(`li`,{children:(0,B.jsxs)(`button`,{type:`button`,className:`flex w-full items-baseline gap-3 px-3 py-1 text-left text-sm outline-none hover:bg-muted focus-visible:bg-muted`,onClick:()=>r(e),children:[(0,B.jsx)(`span`,{className:`font-mono text-xs`,children:t.place}),(0,B.jsx)(`span`,{className:`ml-auto shrink-0 text-muted-foreground text-xs`,children:t.where})]})},`${t.place}-${e.kind}`)})})]})}function yy({candidate:e,kind:t,empty:n,place:r,where:i,badge:a}){let{state:o}=X(),s=Cv(e,o.commits),c=(0,O.useMemo)(()=>e.preview.map(e=>({op:` `,text:e})),[e]),l=ey(e.path,c);return(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`flex items-baseline gap-2 border-b px-3 py-1.5 text-xs`,children:[a===void 0?null:(0,B.jsx)(`span`,{className:`ref-badge`,children:a}),(0,B.jsx)(`span`,{className:`font-medium font-mono`,children:r??s.place}),(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:t}),(0,B.jsx)(`span`,{className:`ml-auto text-muted-foreground`,children:i??s.where})]}),e.preview.length===0?(0,B.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:n}):null,(0,B.jsx)(`pre`,{className:`max-h-72 overflow-auto py-1.5 font-mono text-[12.5px] leading-5 empty:hidden`,children:e.preview.map((t,n)=>(0,B.jsxs)(`div`,{className:`flex`,"data-ref-tint":a===void 0?void 0:`strong`,children:[(0,B.jsx)(`span`,{className:`w-12 shrink-0 select-none pr-3 text-right text-muted-foreground/70`,children:e.newLine+n}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-pre-wrap pr-3 [overflow-wrap:anywhere]`,children:l?.[n]?.map((e,t)=>(0,B.jsx)(`span`,{className:e.tone===null?void 0:`tok-${e.tone}`,children:e.text},t))??(t||` `)})]},n))})]})}var by=bv(navigator.platform);function xy(e){return document.querySelector(`#commit-${e.commit+1} [data-unit="${CSS.escape(e.unit)}"] [data-row="${e.row}"]`)}function Sy(e,t){return e.kind===`on`?e.targets.filter(e=>t===void 0||e.commit===t).flatMap(e=>xy(e)??[]):[]}function Cy(e,t){let n=[];for(let r of e){let e=!0;for(let i of Sy(r)){i.dataset.refTint=t(r.ref.n),n.push(i);let a=i.querySelector(`[data-gutter] > span`);e&&a!==null&&(a.dataset.refBadge=String(r.ref.n),n.push(a)),e=!1}}return()=>{for(let e of n)delete e.dataset.refTint,delete e.dataset.refBadge}}function wy(e){let t=Iv(e);if(t===null)return null;let n=xy(t)??document.getElementById(`commit-${t.commit+1}`)??null;if(n===null)return null;let r=n.getBoundingClientRect();return r.bottom<44?`↑`:r.top>window.innerHeight?`↓`:null}var Ty=(0,O.createContext)(null);function Ey(){let e=(0,O.useContext)(Ty);if(e===null)throw Error(`useRefsApi outside RefsProvider`);return e}var Dy=(0,O.createContext)(null);function Oy(e){let t=e.target;return e.metaKey||e.ctrlKey||e.altKey||t instanceof HTMLElement&&(t.isContentEditable||t.closest(`input, textarea, select`)!==null)}function ky(){let{reveal:e}=Z_();return(0,O.useCallback)(t=>{let n=Iv(t);if(n===null)return!1;(0,Kt.flushSync)(()=>e(n.commit,t.ref.path));let r=Sy(t,n.commit),i=r[0];if(i===void 0)return!1;window.scrollBy(0,i.getBoundingClientRect().top-window.innerHeight*.3);for(let e of r)kv(e,`row-flash`);return!0},[e])}function Ay({children:e}){let[t,n]=(0,O.useState)(null),[r,i]=(0,O.useState)(null),{depart:a,departures:o}=hy(),{isRevealed:s,conceal:c}=Z_(),l=ky(),u=(0,O.useCallback)(e=>{let t=e===void 0?null:Iv(e);return t===null||e===void 0||s(t.commit)?[]:[{commit:t.commit,path:e.ref.path}]},[s]),d=(0,O.useCallback)(e=>{for(let{commit:t,path:n}of e.opened)c(t,n);i(null)},[c]);(0,O.useLayoutEffect)(()=>{if(t!==null&&(t.key!==r?.key||t.strong!==null)){let{strong:e}=t;return Cy(t.placed,t=>e===null?`light`:t===e?`strong`:`faint`)}if(r===null)return;let e=r.placed[r.step]?.ref.n;return Cy(r.placed,t=>t===e?`strong`:`light`)},[t,r]),(0,O.useEffect)(()=>{r!==null&&o<r.depth&&d(r)},[r,o,d]);let f=(0,O.useMemo)(()=>({paint:(e,t,r=null)=>n(n=>t===null?n?.key===e?null:n:{key:e,placed:t,strong:r}),go:(e,t)=>Iv(e)!==null&&(a(t,`the reply`),l(e)),start:(e,t)=>{a(t,`the reply`),n(null);let r=e.placed[e.step],s=Math.min(o+1,20);i({...e,depth:s,opened:u(r)}),r!==void 0&&l(r)}}),[a,o,l,u]),p=(0,O.useMemo)(()=>({walk:r,move:e=>{if(r===null)return;let t=Math.max(0,Math.min(r.placed.length-1,r.step+e));if(t===r.step)return;let n=r.placed[t];i({...r,step:t,opened:[...r.opened,...u(n)]}),n!==void 0&&l(n)},end:()=>{r!==null&&d(r)}}),[r,l,u,d]),{move:m,end:h}=p,g=r!==null;return(0,O.useEffect)(()=>{if(!g)return;let e=e=>{if(!Oy(e)){if(e.key===`.`)m(1);else if(e.key===`,`)m(-1);else if(e.key===`Escape`)h();else return;e.preventDefault()}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g,m,h]),(0,B.jsx)(Ty,{value:f,children:(0,B.jsx)(Dy,{value:p,children:e})})}function jy(){let e=(0,O.useContext)(Dy),t=(0,O.useRef)(null),n=e?.walk??null,r=n?.placed[n.step];if(e===null||n===null||r===void 0)return null;let{ref:i}=r,a=Bv(r,n.own),o=n.captions.get(i.n)??null;return(0,B.jsxs)(iv,{open:r.kind!==`on`,children:[(0,B.jsx)(sv,{asChild:!0,children:(0,B.jsxs)(`div`,{ref:t,role:`toolbar`,"aria-label":`Agent's walkthrough`,className:`ref-bar sticky bottom-4 z-30 mx-auto mt-6 flex max-w-[1000px] items-center gap-2.5 rounded-[10px] border bg-background px-3 py-2 font-sans text-[13px] shadow-lg`,children:[(0,B.jsx)(`span`,{className:`shrink-0 font-semibold text-[var(--ref-ink)]`,children:`Agent's walkthrough`}),(0,B.jsx)(`span`,{className:`ref-badge`,children:i.n}),(0,B.jsxs)(`span`,{className:`shrink-0 tabular-nums`,children:[n.step+1,` of `,n.placed.length]}),(0,B.jsxs)(`span`,{className:`shrink-0 font-mono text-xs`,title:zv(i),children:[Rv(i),` `,a===null?null:(0,B.jsx)(`span`,{className:`ref-where`,children:a})]}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground`,title:o??``,children:o}),(0,B.jsxs)(J,{variant:`outline`,size:`xs`,"aria-label":`Previous step`,disabled:n.step===0,onClick:()=>e.move(-1),children:[`‹ `,(0,B.jsx)(`kbd`,{children:`,`})]}),(0,B.jsxs)(J,{variant:`outline`,size:`xs`,"aria-label":`Next step`,disabled:n.step===n.placed.length-1,onClick:()=>e.move(1),children:[(0,B.jsx)(`kbd`,{children:`.`}),` ›`]}),(0,B.jsxs)(`span`,{className:`hidden shrink-0 text-muted-foreground text-xs xl:inline`,children:[(0,B.jsx)(`kbd`,{children:by?`⌥←`:`Alt+←`}),` back to the reply`]}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,"aria-label":`End the walkthrough`,onClick:e.end,children:`Esc`})]})}),r.kind===`on`?null:(0,B.jsx)(ov,{side:`top`,align:`start`,className:`w-[min(600px,90vw)] gap-0 p-0`,"aria-label":`Ref ${i.n} at ${zv(i)}`,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),onInteractOutside:e=>{e.target instanceof Node&&t.current?.contains(e.target)&&e.preventDefault()},children:(0,B.jsx)(Py,{placed:r})})]})}function My(e){return{path:e.path,newLine:e.start,kind:`other`,unit:null,row:null,commit:null,preview:e.quote}}function Ny(e){return e.kind===`stale`?`${Bv(e,null)}, the code may differ now`:e.kind===`off`?`outside this branch's changes`:`in commit ${e.commit+1}`}function Py({placed:e}){let{ref:t}=e;return(0,B.jsx)(yy,{candidate:My(t),kind:``,place:zv(t),where:Ny(e),badge:t.n,empty:`The agent's reply quoted no lines here.`})}var Fy=200;function Iy({placed:e,own:t,arrow:n,onGo:r,onHot:i}){let[a,o]=(0,O.useState)(null),s=(0,O.useRef)(void 0),{ref:c}=e,l=Bv(e,t),u=e.kind===`on`;return(0,B.jsxs)(iv,{open:a!==null,onOpenChange:e=>e?void 0:o(null),children:[(0,B.jsx)(sv,{asChild:!0,children:(0,B.jsxs)(`button`,{type:`button`,className:`ref-chip`,"data-ref-chip":c.n,"data-ref-state":e.kind,title:zv(c),"aria-label":`Ref ${c.n}: ${zv(c)}${l===null?``:`, ${l}`}`,onPointerEnter:()=>{i(c.n),clearTimeout(s.current),!(u&&wy(e)===null)&&(s.current=setTimeout(()=>o(e=>e??`hover`),Fy))},onPointerLeave:()=>{i(null),clearTimeout(s.current),o(e=>e===`hover`?null:e)},onClick:()=>{clearTimeout(s.current),r(e)?o(null):o(e=>e===`pinned`?null:`pinned`)},children:[(0,B.jsx)(`span`,{className:`ref-badge`,children:c.n}),(0,B.jsx)(`span`,{children:Rv(c)}),l===null?null:(0,B.jsx)(`span`,{className:`ref-where`,children:l}),n===null||!u?null:(0,B.jsx)(`span`,{"aria-hidden":!0,className:`ref-where`,children:n})]})}),a===null?null:(0,B.jsx)(ov,{align:`start`,className:`w-[min(600px,90vw)] gap-0 p-0`,"aria-label":`Ref ${c.n} at ${zv(c)}`,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),children:(0,B.jsx)(Py,{placed:e})})]})}function Ly(e){let{state:t}=X(),{units:n,owners:r,numbers:i}=wp();return(0,O.useMemo)(()=>e.map(e=>Fv(e,t.anchor.tip,t.commits,n,r,i)),[e,t.anchor.tip,t.commits,n,r,i])}function Ry({id:e,text:t,refs:n,own:r}){let i=Ey(),{current:a}=Z_(),o=Ly(n),[s,c]=(0,O.useState)(new Map),l=(0,O.useCallback)(e=>Nv(e,n),[n]),u=(0,O.useMemo)(()=>u_(t,l),[t,l]),d=o.length>=2,f=r??a,p=t=>i.start({key:e,placed:o,captions:u,own:r,step:t},f),m=()=>{i.paint(e,o),c(new Map(o.map(e=>[e.ref.n,wy(e)])))},h=()=>i.paint(e,null);return(0,B.jsxs)(`div`,{"data-refs":e,className:`rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-[var(--ref-violet)]`,tabIndex:d?0:void 0,"aria-describedby":d?`${e}-steps`:void 0,onPointerEnter:m,onPointerLeave:h,onFocus:m,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||h()},onKeyDown:e=>{d&&e.key===`Enter`&&e.target===e.currentTarget&&(e.preventDefault(),p(0))},children:[d?(0,B.jsxs)(`p`,{id:`${e}-steps`,className:`mb-1 text-muted-foreground text-xs`,children:[o.length,` places · press `,(0,B.jsx)(`kbd`,{children:`Enter`}),` to step through`]}):null,(0,B.jsx)(j_,{text:t,numberOf:l,chip:t=>{let n=o.findIndex(e=>e.ref.n===t),a=o[n];return a===void 0?null:(0,B.jsx)(Iy,{placed:a,own:r,arrow:s.get(t)??null,onGo:e=>d?(p(n),!0):i.go(e,f),onHot:t=>i.paint(e,o,t)})}})]})}var zy={kind:`unknown`,run:0,total:0,tests:[]};function By(e,t){if(e===null||t.some(t=>e.stale.includes(t.path)))return zy;let n=0,r=0,i=!1,a=new Set;for(let o of t)for(let t=o.start;t<=o.end;t+=1){let s=qf(e,o.path,t);if(s!==null&&(r+=1,s.kind!==`uncovered`)){n+=1,s.kind===`partly`&&(i=!0);for(let n of rp(e.tests,o.path,t)??[])a.add(n.id)}}return r===0?zy:{kind:n===0?`uncovered`:n<r||i?`partly`:`covered`,run:n,total:r,tests:[...a].sort()}}var Vy={covered:`✓`,partly:`◐`,uncovered:`✕`,unknown:``},Hy={covered:`covered`,partly:`partly covered`,uncovered:`not covered`,unknown:`coverage unknown`};function Uy(e){if(e.kind===`unknown`)return Hy.unknown;let t=e.total===1?`line`:`lines`;return`${Hy[e.kind]}, ${e.run} of ${e.total} ${t}`}function Wy(e,t){let n=Object.entries(e.states).map(([e,t])=>({key:`s:${e}`,kind:`state`,name:e,event:null,at:t})),r=(e.transitions??[]).map((e,t)=>({key:`t:${t}`,kind:`move`,name:`${e.from} → ${e.to}`,event:e.event??null,at:e.at})),i=e=>t?.[e]?.kind===`uncovered`?0:1,a=r.map((e,t)=>t).sort((e,t)=>i(e)-i(t));return[...n,...a.flatMap(e=>r[e]??[])]}function Gy(e){return`${e.path}:${e.start}${e.end>e.start?`-${e.end}`:``}`}function Ky(e,t,n,r,i){let a=new Set;return e.flatMap(e=>{let o=ap(e,ip(e,t,n,r,i)),s=o.unit===null?`${e.path}:${e.start}`:`${o.commit}|${o.unit}|${o.row}`;return a.has(s)?[]:(a.add(s),[o])})}var qy=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function Jy(e,t,n){let r=new Map;for(let i of n){let n=RegExp(`^${qy(e)}-state-${qy(i)}-\\d+$`),a=t.find(e=>n.test(e.id))??t.find(t=>t.id.startsWith(`${e}-state-`)&&t.text.trim()===i);a!==void 0&&r.set(i,a.id)}return r}var Yy={kind:`unknown`,run:0,total:0,tests:[]};function Xy(e){return e!==null&&Object.keys(e.tests??{}).length>0}function Zy(e,t){if(e===null||t.some(t=>e.stale.includes(t.path)))return Yy;let n=[],r=0;for(let i of t)for(let t=i.start;t<=i.end;t+=1){let a=qf(e,i.path,t);a!==null&&(n.push({path:i.path,line:t}),a.kind!==`uncovered`&&(r+=1))}let i=n.length;if(i===0)return Yy;if(!Xy(e))return{kind:r===i?`covered`:`uncovered`,run:r,total:i,tests:[]};let a=Object.entries(e.tests??{}).filter(([,e])=>n.every(({path:t,line:n})=>e.lines[t]?.includes(n))).map(([e])=>e).sort((e,t)=>e.localeCompare(t));return{kind:a.length>0?`covered`:`uncovered`,run:r,total:i,tests:a}}function Qy(e,t){return e.kind===`unknown`?`coverage unknown`:t?e.kind===`uncovered`?`no test takes it`:`taken by ${e.tests.length===1?`1 test`:`${e.tests.length} tests`}`:e.kind===`covered`?`covered`:`not covered`}var $y=5;function eb(e){let t=[],n=[];for(let r of e.split(`
|
|
131
|
+
`)){let e=/^\s*\[\*\]\s*-->\s*([^\s:[]+)/.exec(r)?.[1],i=/^\s*([^\s:[]+)\s*-->\s*\[\*\]/.exec(r)?.[1];e!==void 0&&t.push(e),i!==void 0&&n.push(i)}return{initial:t,final:n}}function tb(e,t,n){let r=e.transitions??[],i=Object.keys(e.states),{initial:a,final:o}=eb(t),s=a.filter(e=>i.includes(e)),c=i[0],l=s.length>0?s:c===void 0?[]:[c],u=e=>r.flatMap((t,n)=>t.from===e?[n]:[]),d=new Set([...o,...i.filter(e=>u(e).length===0)]),f=e=>n[e]?.tests??[],p=[],m=(e,t,n)=>{if(t.length>=2&&d.has(e)){let[e=-1,...r]=t;f(e).some(e=>r.every(t=>f(t).includes(e)))||p.push({moves:t,states:n})}if(t.length!==$y)for(let i of u(e)){let e=r[i]?.to;e===void 0||t.includes(i)||f(i).length===0||m(e,[...t,i],[...n,e])}};for(let e of new Set(l))m(e,[],[e]);return p.sort((e,t)=>e.moves.length-t.moves.length||e.states.join().localeCompare(t.states.join()))}function nb(e,t){let n=new Set,r=new Map;return e.forEach((e,i)=>{let a=e.event?.trim()??``,o=t.filter(t=>!n.has(t.id)&&t.from===e.from&&t.to===e.to),s=t.filter(e=>a!==``&&e.label.trim()===a),c=s.length===1?s[0]:void 0,l=o.find(e=>e.label.trim()===a)??o[0]??(c!==void 0&&!n.has(c.id)?c:void 0);l!==void 0&&(n.add(l.id),r.set(i,l.id))}),r}var rb=3,ib=`"Drives" means one test covers every step; lcov per test does not record their order.`;function ab(e){return e.states.join(` → `)}function ob(e){return`Missing test: no single test drives ${ab(e)}; each step has its own test.`}function sb(e){let{state:t,run:n}=X(),r=t.commits.find(t=>t.index===e)?.message??``;return t=>n(()=>qd.comment(cv({kind:`message`,commit:e},{commitMessage:r,path:null},t)))}function cb({commit:e}){let t=sb(e),[n,r]=(0,O.useState)(!1);return(0,B.jsxs)(`p`,{className:`mt-1 flex flex-wrap items-center gap-x-1.5 text-muted-foreground text-xs`,children:[(0,B.jsx)(`span`,{children:`Paths and sequences need one coverage run per test.`}),n?(0,B.jsx)(`span`,{children:`Asked the agent.`}):(0,B.jsx)(J,{variant:`link`,size:`xs`,className:`h-auto p-0 text-xs`,onClick:async()=>{await t({body:"Paths and sequences need one coverage run per test. Please run the tests one at a time with coverage and pass each run with `follow-me coverage <lcov> --test <id>`.",kind:`ask`,severity:null})&&r(!0)},children:`Ask the agent`})]})}function lb({sequences:e,shown:t,pinned:n,onHover:r,onPin:i,commit:a}){let o=sb(a),s=(0,O.useId)(),[c,l]=(0,O.useState)(null);if(e.length===0)return null;let u=c===null?void 0:e[c],d=e.length-rb;return(0,B.jsxs)(`section`,{"aria-labelledby":s,className:`mt-3 rounded-lg border p-3`,children:[(0,B.jsxs)(`h4`,{id:s,className:`font-medium text-sm`,title:ib,children:[`Not driven by any one test · `,e.length]}),(0,B.jsx)(`p`,{className:`mt-0.5 text-muted-foreground text-xs`,children:`Every step below has a test, but no single test takes all of them. Sequences with a red edge are not repeated here.`}),(0,B.jsx)(`ul`,{className:`mt-2 space-y-1.5`,children:e.slice(0,rb).map((e,a)=>{let o=ab(e);return(0,B.jsxs)(`li`,{"aria-label":o,className:L(`flex flex-wrap items-center gap-x-3 gap-y-1 rounded-md border px-2.5 py-1.5`,t===a&&`border-[var(--cov-uncovered)]`),children:[(0,B.jsx)(`span`,{className:`font-mono text-xs`,children:o}),(0,B.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`each step tested, never in one test`}),(0,B.jsxs)(`span`,{className:`ml-auto flex gap-1`,children:[(0,B.jsx)(J,{size:`xs`,variant:`outline`,"aria-pressed":n===a,"aria-label":`Show ${o}`,onMouseEnter:()=>r(a),onMouseLeave:()=>r(null),onFocus:()=>r(a),onBlur:()=>r(null),onClick:()=>i(n===a?null:a),children:`Show`}),(0,B.jsx)(J,{size:`xs`,variant:`outline`,className:`text-[var(--cov-uncovered)]`,"aria-label":`Flag ${o} as missing test`,onClick:()=>l(a),children:`Flag as missing test`})]})]},e.moves.join())})}),d>0?(0,B.jsxs)(`p`,{className:`mt-1.5 text-muted-foreground text-xs`,children:[`+`,d,` more`]}):null,u===void 0?null:(0,B.jsx)(gv,{className:`mt-2 shadow-none`,kind:`flag`,label:`Flag ${ab(u)}`,initialBody:ob(u),onCancel:()=>l(null),actions:e=>[{label:e===`ask`?`Send question`:`Send flag`,primary:!0,run:o}]},c),(0,B.jsx)(`p`,{className:`mt-2 text-muted-foreground text-xs`,children:ib})]})}var ub=`http://www.w3.org/2000/svg`,db={title:`State`,kind:`state`,empty:`This branch does not change these lines, so the page has none to show.`},fb={...db,title:`Transition`,kind:`transition`},pb=4,mb=7,hb=/^edge:(\d+)$/;function gb(e,t){let n=document.createElementNS(ub,e);for(let[e,r]of Object.entries(t))n.setAttribute(e,String(r));return n.classList.add(`sm-added`),n}var _b={covered:`var(--cov-covered)`,partly:`var(--cov-partly)`,uncovered:`var(--cov-uncovered)`};function vb(e,t){let n=(t,n,r)=>gb(`rect`,{class:n,x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t,rx:6+t,style:`fill: none; pointer-events: none; ${r}`}),r=n(8,`sm-ring`,`stroke: var(--ring); stroke-width: 2px`);if(t===`unknown`)return[r];let i=(e,n=`none`)=>`stroke: ${_b[t]}; stroke-width: ${e}px; stroke-dasharray: ${n}`;return t===`uncovered`?[r,n(3,`sm-outline`,i(1.5)),n(6,`sm-outline`,i(1.5))]:[r,n(pb,`sm-outline`,t===`partly`?i(2,`5 3`):i(2))]}function yb(e,t,n,r){let i=gb(`g`,{"aria-hidden":`true`,style:`pointer-events: none`});i.append(gb(`circle`,{cx:e,cy:t,r:mb,style:`fill: ${n}; stroke: ${n}; stroke-width: 1.5px`}));let a=gb(`text`,{x:e,y:t,"text-anchor":`middle`,"dominant-baseline":`central`,style:`fill: #fff; font-size: 9px; font-weight: 700; stroke: none`});return a.textContent=r,i.append(a),i}function bb(e,t){if(t===`unknown`)return null;let n=_b[t],r=e.x+e.width+pb,i=e.y-pb;if(t!==`partly`)return yb(r,i,n,Vy[t]);let a=gb(`g`,{"aria-hidden":`true`,style:`pointer-events: none`});a.append(gb(`circle`,{cx:r,cy:i,r:mb,style:`fill: var(--background); stroke: ${n}; stroke-width: 1.5px`}));let o=`M ${r} ${i-mb} A ${mb} ${mb} 0 0 0 ${r} ${i+mb} Z`;return a.append(gb(`path`,{d:o,style:`fill: ${n}; stroke: none`})),a}function xb(e,t){let n=t.tests.length===0?``:`\nReached by: ${t.tests.join(`, `)}`;return`${e}: ${Uy(t)}${n}`}function Sb(e,t){let n=[...e.querySelectorAll(`g.node[id]`)].map(e=>({id:e.id,text:e.textContent??``})),r=new Set;for(let[i,a]of Jy(e.id,n,[...t.keys()])){let n=e.querySelector(`#${CSS.escape(a)}`),o=t.get(i);if(!(n instanceof SVGGElement)||o===void 0||r.has(a))continue;r.add(a),n.setAttribute(`data-pick`,i),n.setAttribute(`data-mark`,o.kind),n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`),n.setAttribute(`aria-label`,`${i}, ${Uy(o)}`);let s=n.getBBox(),c=gb(`title`,{});c.textContent=xb(i,o),n.prepend(c),n.append(...vb(s,o.kind));let l=bb(s,o.kind);l!==null&&n.append(l)}}function Cb(e,t,n){let r=Math.max(n.left-e,0,e-n.right),i=Math.max(n.top-t,0,t-n.bottom);return Math.hypot(r,i)}function wb(e,t){let n=[...e.querySelectorAll(`g.node[id]`)].map(e=>({id:e.id,text:e.textContent??``,box:e.getBoundingClientRect()})),r=new Map([...Jy(e.id,n,t)].map(([e,t])=>[t,e])),i=(e,t)=>{let i=null;for(let r of n){let n=Cb(e,t,r.box);(i===null||n<i.d)&&(i={id:r.id,d:n})}return i===null?null:r.get(i.id)??null},a=`${e.id}-`;return[...e.querySelectorAll(`path[id]`)].flatMap(t=>{if(!(t instanceof SVGPathElement)||!/^edge\d+$/.test(t.id.slice(a.length)))return[];let n=t.getScreenCTM(),r=t.getTotalLength();if(n===null||r===0)return[];let o=e=>new DOMPoint(t.getPointAtLength(e).x,t.getPointAtLength(e).y),s=o(0).matrixTransform(n),c=o(r).matrixTransform(n),l=t.id.slice(a.length),u=e.querySelector(`.edgeLabel [data-id="${CSS.escape(l)}"]`);return[{id:t.id,from:i(s.x,s.y),to:i(c.x,c.y),label:u?.textContent?.trim()??``}]})}function Tb(e,t){let n=t?.getBoundingClientRect(),r=e.getScreenCTM();if(n===void 0||n.width===0||r===null){let t=e.getPointAtLength(e.getTotalLength()/2);return{x:t.x,y:t.y}}let i=new DOMPoint(n.right,n.top+n.height/2).matrixTransform(r.inverse());return{x:i.x+mb+2,y:i.y}}function Eb(e,t){let n=e.getAttribute(`data-sm-style`)??e.getAttribute(`style`)??``;e.setAttribute(`data-sm-style`,n),e.setAttribute(`style`,`${n}; ${t}`)}var Db={covered:`stroke: var(--cov-covered); stroke-width: 2px; stroke-dasharray: none`,uncovered:`stroke: var(--cov-uncovered); stroke-width: 2px; stroke-dasharray: 6 4`,unknown:``};function Ob(e,t,n,r,i){let a=nb(t.transitions??[],wb(e,Object.keys(t.states)));for(let{index:t,name:o,mark:s}of n){let n=a.get(t),c=n===void 0?null:e.querySelector(`#${CSS.escape(n)}`);if(n===void 0||!(c instanceof SVGPathElement))continue;let l=e.querySelector(`.edgeLabel [data-id="${CSS.escape(n.slice(e.id.length+1))}"]`);Eb(c,Db[s.kind]),i.has(t)&&c.before(gb(`path`,{class:`sm-sequence`,d:c.getAttribute(`d`)??``,style:`fill: none; pointer-events: none; stroke: var(--cov-uncovered); stroke-opacity: 0.35; stroke-width: 9px; stroke-linecap: round; stroke-dasharray: 10 6`})),c.setAttribute(`data-mark`,s.kind);let u=c.getAttribute(`d`)??``,d=Qy(s,r),f=gb(`g`,{"data-pick":`edge:${t}`,"data-edge-mark":s.kind,role:`button`,tabindex:0,"aria-label":`${o}, ${d}`}),p=gb(`title`,{});if(p.textContent=`${o}: ${d}${s.tests.length===0?``:`\nTaken by: ${s.tests.join(`, `)}`}`,f.append(p,gb(`path`,{class:`sm-ring`,d:u,style:`fill: none; stroke: var(--ring); stroke-width: 6px; stroke-opacity: 0.5`}),gb(`path`,{d:u,style:`fill: none; stroke: transparent; stroke-width: 14px; pointer-events: stroke`})),s.kind!==`unknown`){let{x:e,y:t}=Tb(c,l),n=s.kind===`uncovered`?Vy.uncovered:r?String(s.tests.length):`✓`,i=yb(e,t,_b[s.kind],n);i.setAttribute(`style`,`pointer-events: all`),i.setAttribute(`data-edge-badge`,``),f.append(i)}l?.setAttribute(`data-pick`,`edge:${t}`),c.after(f)}}function kb({kind:e}){return e===`unknown`?null:(0,B.jsx)(`span`,{"aria-hidden":!0,"data-mark":e,className:`sm-chip`,children:e===`partly`?null:Vy[e]})}function Ab({kind:e}){let t=e===`unknown`?`var(--muted-foreground)`:_b[e];return(0,B.jsx)(`svg`,{"aria-hidden":!0,width:`18`,height:`6`,className:`inline-block`,children:(0,B.jsx)(`line`,{x1:`0`,y1:`3`,x2:`18`,y2:`3`,style:{stroke:t,strokeWidth:e===`unknown`?1.3:2,strokeDasharray:e===`uncovered`?`4 3`:`none`}})})}var jb={covered:`covered`,partly:`partly`,uncovered:`not covered`,unknown:`unknown`};function Mb({tests:e}){let t=e.length-2;return(0,B.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1`,children:[e.slice(0,2).map(e=>(0,B.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-[11px]`,children:e},e)),t>0?(0,B.jsxs)(`span`,{className:`text-muted-foreground`,title:e.join(`
|
|
132
|
+
`),children:[`+`,t]}):null]})}function Nb({source:e,map:t,from:n,title:r}){let{state:i,coverage:a}=X(),{coverageOn:o}=Z_(),{units:s,owners:c,numbers:l}=wp(),u=my(),d=o?a:null,f=Xy(d),p=(0,O.useMemo)(()=>(t.transitions??[]).map(e=>Zy(d,e.at)),[t,d]),m=(0,O.useMemo)(()=>Wy(t,p),[t,p]),h=(0,O.useMemo)(()=>new Map(m.map(e=>[e.key,By(d,e.at)])),[m,d]),g=(0,O.useMemo)(()=>{let e=new Map;for(let n of Object.keys(t.states)){let t=h.get(`s:${n}`);t!==void 0&&e.set(n,t)}return e},[t,h]),_=(0,O.useCallback)((e,t,r,a=db)=>u(Ky(t,i.commits,s,c,l),e,n,r,a),[u,i.commits,s,c,l,n]),v=(0,O.useMemo)(()=>(t.transitions??[]).map((e,t)=>({index:t,name:`${e.from} → ${e.to}`,mark:p[t]??Zy(null,[])})),[t,p]),y=(0,O.useMemo)(()=>f?tb(t,e,p):[],[f,t,e,p]),[b,x]=(0,O.useState)(null),[S,C]=(0,O.useState)(null),w=b??S,T=(0,O.useMemo)(()=>new Set(w===null?[]:y[w]?.moves??[]),[w,y]),E=(0,O.useCallback)(e=>{let n=e.querySelector(`svg`);if(n!==null){for(let e of n.querySelectorAll(`.sm-added`))e.remove();Sb(n,g),Ob(n,t,v,f,T)}},[g,t,v,f,T]),D=(0,O.useMemo)(()=>({decorate:E,onPick:(e,n)=>{let r=hb.exec(e),i=r===null?void 0:t.transitions?.[Number(r[1])];i===void 0?_(e,t.states[e]??[],n):_(`${i.from} → ${i.to}`,i.at,n,fb)}}),[E,_,t]),k=e=>{let[t]=Ky([e],i.commits,s,c,l);return t?.commit===null||t===void 0?`outside this branch`:`in commit ${t.commit+1}`},A=e=>e.at.length===0?(0,B.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`not mapped`}):(0,B.jsx)(`span`,{className:`flex flex-col items-start`,children:e.at.map(t=>(0,B.jsxs)(`button`,{type:`button`,className:`rounded text-left font-mono text-xs underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring`,onClick:n=>_(e.name,[t],n.currentTarget,e.kind===`move`?fb:db),children:[Gy(t),` `,(0,B.jsx)(`span`,{className:`font-sans text-muted-foreground`,children:k(t)})]},Gy(t)))}),ee=d!==null&&m.some(e=>e.at.some(e=>d.stale.includes(e.path))),j=e=>e.kind===`move`?p[Number(e.key.slice(2))]??null:null;return(0,B.jsxs)(`div`,{children:[(0,B.jsx)(A_,{source:e,title:r,picks:D}),(0,B.jsxs)(`p`,{className:`mt-2 flex flex-wrap items-center gap-x-1.5 text-muted-foreground text-xs`,children:[(0,B.jsx)(kb,{kind:`covered`}),` covered · `,(0,B.jsx)(kb,{kind:`partly`}),` partly ·`,` `,(0,B.jsx)(kb,{kind:`uncovered`}),` not covered · plain unknown ·`,` `,t.transitions===void 0||t.transitions.length===0?null:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Ab,{kind:`covered`}),` `,f?`taken, badge = tests`:`taken`,` ·`,` `,(0,B.jsx)(Ab,{kind:`uncovered`}),` `,f?`no test takes it`:`not run`,` ·`,` `]}),d===null?`no test run yet`:(0,B.jsxs)(`span`,{children:[`from tests at `,(0,B.jsx)(`code`,{className:`font-mono`,children:d.tip.slice(0,7)}),ee?`; files changed since read unknown`:``]})]}),d!==null&&!f&&v.length>0?(0,B.jsx)(cb,{commit:n}):null,(0,B.jsx)(lb,{sequences:y,shown:w,pinned:S,onHover:x,onPin:C,commit:n}),(0,B.jsxs)(`table`,{className:`mt-3 w-full border-collapse text-sm`,children:[(0,B.jsxs)(`caption`,{className:`sr-only`,children:[`States and moves of `,r]}),(0,B.jsx)(`thead`,{className:`text-left text-muted-foreground text-xs`,children:(0,B.jsxs)(`tr`,{children:[(0,B.jsx)(`th`,{className:`py-1 pr-3 font-medium`,children:`State or move`}),(0,B.jsx)(`th`,{className:`hidden py-1 pr-3 font-medium xl:table-cell`,children:`Code`}),(0,B.jsx)(`th`,{className:`py-1 pr-3 font-medium`,children:`Coverage`}),(0,B.jsx)(`th`,{className:`py-1 font-medium`,children:`Tests`})]})}),(0,B.jsx)(`tbody`,{children:m.map(e=>{let t=h.get(e.key)??By(null,[]),n=j(e),r=n?.kind??t.kind,i=n?.tests??t.tests;return(0,B.jsxs)(`tr`,{className:`border-t align-top`,"data-row-mark":r,children:[(0,B.jsxs)(`td`,{className:`py-1.5 pr-3`,children:[e.at.length===0?(0,B.jsx)(`span`,{children:e.name}):(0,B.jsx)(`button`,{type:`button`,className:L(`rounded text-left outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring`,e.kind===`state`&&`font-medium`),onClick:t=>_(e.name,e.at,t.currentTarget,n===null?db:fb),children:e.name}),e.event===null?null:(0,B.jsxs)(`span`,{className:`ml-1.5 text-muted-foreground text-xs`,children:[`on `,e.event]}),(0,B.jsx)(`div`,{className:`mt-0.5 xl:hidden`,children:A(e)})]}),(0,B.jsx)(`td`,{className:`hidden py-1.5 pr-3 xl:table-cell`,children:A(e)}),(0,B.jsx)(`td`,{className:`whitespace-nowrap py-1.5 pr-3 text-xs`,children:(0,B.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,B.jsx)(kb,{kind:r}),jb[r],r===`unknown`?null:(0,B.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[(n??t).run,`/`,(n??t).total]})]})}),(0,B.jsx)(`td`,{className:`py-1.5 text-xs`,children:n?.kind===`uncovered`&&f?(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`no test`}):(0,B.jsx)(Mb,{tests:i})})]},e.key)})})]})]})}function Pb(e){return e.split(`
|
|
133
|
+
`)[0]??``}function Fb({children:e,className:t,label:n,open:r=!1,threadId:i}){return(0,B.jsx)(`article`,{"aria-label":n,"data-open-thread":r?``:void 0,"data-thread-id":i,className:L(`my-2 ml-24 max-w-[760px] rounded-lg border bg-card p-3 font-sans text-sm shadow-xs`,t),children:e})}function Ib({children:e}){return(0,B.jsx)(`p`,{className:`max-w-[72ch] whitespace-pre-wrap leading-6`,children:e})}function Lb({author:e,text:t,refs:n,id:r,own:i}){return t.trim()===``?null:e===`agent`?n===void 0||n.length===0?(0,B.jsx)(j_,{text:t}):(0,B.jsx)(Ry,{id:r,text:t,refs:n,own:i}):(0,B.jsx)(Ib,{children:t})}function Rb(e){return e.author===`agent`?`Agent`:e.kind===`question`?`You asked`:`You flagged`}function zb({comment:e,className:t,chip:n,extra:r,label:i}){let{run:a}=X(),{resolved:o,setLocallyResolved:s}=Z_(),[c,l]=(0,O.useState)(!1),u=e.anchor.kind===`plan`?null:e.anchor.commit,{unread:d,markSeen:f}=X(),p=d.filter(t=>t.thread===e.id).map(e=>e.key),m=p.join();return(0,O.useEffect)(()=>{if(p.length===0)return;let t=document.querySelector(`[data-thread-id="${CSS.escape(e.id)}"]`);if(t===null)return;let n=new IntersectionObserver(e=>{!document.hidden&&e.some(e=>e.isIntersecting)&&f(p)},{threshold:.6});return n.observe(t),()=>n.disconnect()},[m,e.id,f]),o.has(e.id)?(0,B.jsxs)(Fb,{label:`Resolved thread`,threadId:e.id,className:`flex items-center gap-2 py-1.5 text-muted-foreground`,children:[(0,B.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`✓ Resolved · `,Pb(e.body)]}),(0,B.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>s(e.id,!1),children:`Reopen`})]}):(0,B.jsxs)(Fb,{label:i??(e.kind===`question`?`Question thread`:`Thread`),className:t,threadId:e.id,open:!0,children:[(0,B.jsxs)(`div`,{className:`mb-1 flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,B.jsx)(`span`,{className:`font-medium text-foreground`,children:Rb(e)}),e.severity===void 0?null:(0,B.jsx)(P_,{severity:e.severity}),n]}),(0,B.jsx)(Lb,{author:e.author??`reviewer`,text:e.body,refs:e.refs,id:e.id,own:u}),e.diagram===void 0?null:(0,B.jsx)(`div`,{className:L(e.body.trim()!==``&&`mt-2`),children:(0,B.jsx)(A_,{source:e.diagram,title:`The agent's diagram`})}),r,(e.replies??[]).map(t=>(0,B.jsxs)(`div`,{className:L(`mt-3 border-l-2 pl-3`,t.author===`agent`&&`border-sky-500/60`),children:[(0,B.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:t.author===`agent`?`Agent`:`You`}),(0,B.jsx)(Lb,{author:t.author,text:t.body,refs:t.refs,id:t.id,own:u}),t.diagram===void 0?null:(0,B.jsx)(`div`,{className:L(t.body.trim()!==``&&`mt-2`),children:t.map===void 0?(0,B.jsx)(A_,{source:t.diagram,title:`The agent's diagram`}):(0,B.jsx)(Nb,{source:t.diagram,map:t.map,from:e.anchor.kind===`plan`?0:e.anchor.commit,title:`The agent's state machine`})})]},t.id)),c?(0,B.jsx)(gv,{className:`mt-3 shadow-none`,kind:`ask`,kinds:!1,label:`Reply`,placeholder:`Reply to the agent`,onCancel:()=>l(!1),actions:()=>[{label:`Reply`,primary:!0,run:t=>a(()=>qd.reply(e.id,t.body))}]}):(0,B.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[(0,B.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>l(!0),children:`Reply`}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>s(e.id,!0),children:`Resolve`})]})]})}function Bb(e){return e.split(`
|
|
134
|
+
`)[0]??``}function Vb({concern:e,className:t}){let{state:n,run:r}=X(),i=n.concerns.find(t=>t.concern===e.id),[a,o]=(0,O.useState)(null),s=i?.severity??a??e.severity,c=(t,n=s)=>r(()=>qd.decide(e.id,t,n===e.severity?void 0:n));if(i?.decision===`dismissed`)return(0,B.jsxs)(Fb,{label:`Dismissed concern`,className:L(`flex items-center gap-2 py-1.5 text-muted-foreground`,t),children:[(0,B.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Dismissed · `,Bb(e.text)]}),(0,B.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>void c(`kept`),children:`Keep instead`})]});let l=i?.decision===`kept`;return(0,B.jsxs)(Fb,{label:`Agent concern`,open:!l,className:L(l?`border-amber-500/40`:`border-dashed border-amber-500/60`,t),children:[(0,B.jsxs)(`div`,{className:`mb-1 flex items-center gap-2 text-muted-foreground text-xs`,children:[(0,B.jsx)(`span`,{className:`font-medium text-foreground`,children:`Agent flagged`}),(0,B.jsxs)(lv,{children:[(0,B.jsx)(uv,{"aria-label":`Severity ${s}`,className:`rounded-full`,children:(0,B.jsx)(P_,{severity:s})}),(0,B.jsx)(dv,{className:`w-32`,children:M_.map(e=>(0,B.jsx)(fv,{onSelect:()=>l?void c(`kept`,e):o(e),children:e},e))})]}),(0,B.jsx)(`span`,{children:e.kind}),l?(0,B.jsx)(`span`,{className:`ml-auto text-amber-700 dark:text-amber-300`,children:`Kept · in your review`}):null]}),(0,B.jsx)(Ib,{children:e.text}),(0,B.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[l?null:(0,B.jsx)(J,{size:`xs`,onClick:()=>void c(`kept`),children:`Keep`}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>void c(`dismissed`),children:`Dismiss`})]})]})}function Hb(e){let t=e.response?.status;return t===`answered`?`Answered`:t===`deferred`?`Deferred`:t===void 0?`Not answered`:`Answered by changing the plan`}function Ub({card:e,className:t}){let{state:n,run:r}=X(),[i,a]=(0,O.useState)(!1),{comment:o,response:s,place:c}=e,l=t=>r(()=>qd.resolve(e.id,t));if(e.resolved)return(0,B.jsxs)(Fb,{label:`Resolved answer`,className:L(`flex items-center gap-2 py-1.5 text-muted-foreground`,t),children:[(0,B.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`✓ Resolved · `,Bb(o.body)]}),(0,B.jsx)(J,{variant:`link`,size:`xs`,className:`ml-auto`,onClick:()=>void l(!1),children:`Reopen`})]});let u=o.context.lines??[];return(0,B.jsxs)(Fb,{label:`Answer to your question`,open:!0,className:t,children:[(0,B.jsxs)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:[(0,B.jsx)(`span`,{className:`font-medium text-foreground`,children:`You asked`}),` in v`,n.previous?.version,` `,`· `,Hb(e)]}),(0,B.jsx)(Ib,{children:o.body}),u.length>0?(0,B.jsx)(`pre`,{className:`mt-2 overflow-x-auto rounded bg-muted px-2 py-1 font-mono text-xs`,children:u.join(`
|
|
135
|
+
`)}):null,s===null?null:(0,B.jsxs)(`div`,{className:`mt-3 border-l-2 border-sky-500/60 pl-3`,children:[(0,B.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,B.jsx)(j_,{text:s.note})]}),c===null&&o.anchor.kind===`hunk`?(0,B.jsx)(`p`,{className:`mt-2 text-muted-foreground text-xs`,children:`The code you asked about has changed since.`}):null,(c?.continues??[]).map(e=>(0,B.jsxs)(J,{variant:`link`,size:`xs`,onClick:()=>$_(e),children:[`continues in commit `,e+1]},e)),i?(0,B.jsx)(gv,{className:`mt-3 shadow-none`,kind:`ask`,kinds:!1,label:`Ask again`,placeholder:`What is still unclear?`,onCancel:()=>a(!1),actions:()=>[{label:`Ask again`,primary:!0,run:t=>r(()=>qd.comment(lf(e,t.body)))}]}):(0,B.jsxs)(`div`,{className:`mt-2 flex gap-1`,children:[(0,B.jsx)(J,{size:`xs`,onClick:()=>void l(!0),children:`Resolve`}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,onClick:()=>a(!0),children:`Ask again`})]})]})}function Wb(e,t){return t.flatMap(t=>{let n=e[t];return n===void 0||n.op===`-`?[]:[n.text.replace(/\n$/,``)]})}function Gb(e,t){if(e[t]?.op!==`+`)return e[t]?.op===void 0?[]:[t];let n=t,r=t;for(;e[n-1]?.op===`+`;)--n;for(;e[r+1]?.op===`+`;)r+=1;return Array.from({length:Math.min(r-n+1,6)},(e,t)=>n+t)}function Kb(e,t){let n=(e,t)=>e?.trimEnd()===t?.trimEnd(),r=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;--i)for(let a=t.length-1;a>=0;--a){let o=r[i]??[];o[a]=n(e[i],t[a])?(r[i+1]?.[a+1]??0)+1:Math.max(r[i+1]?.[a]??0,o[a+1]??0)}let i=[],a=0,o=0;for(;a<e.length||o<t.length;){let s=e[a],c=t[o];s!==void 0&&c!==void 0&&n(s,c)?(i.push({op:` `,text:c}),a+=1,o+=1):s!==void 0&&(c===void 0||(r[a+1]?.[o]??0)>=(r[a]?.[o+1]??0))?(i.push({op:`-`,text:s}),a+=1):c!==void 0&&(i.push({op:`+`,text:c}),o+=1)}return i}function qb(e,t){if(e.length===0)return null;let n=Kb(e,t),r=n.findIndex(e=>e.op!==` `);if(r===-1)return null;let i=n.slice(Math.max(0,r-1)),a=i.slice(0,6);return{lines:a,more:i.length-a.length}}var Jb=`rounded-full bg-amber-500/15 px-2 py-px text-amber-800 dark:text-amber-300`;function Yb({placement:e,className:t}){let{state:n}=X(),{comment:r,kind:i}=e,a=n.previous?.version,o=r.context.lines??[],s=n.units.find(t=>t.id===e.carried.unit),{row:c}=e,l=e.carried.offsets??(s?.kind===`hunk`&&c!==null?Gb(s.body,c):[]),u=s?.kind===`hunk`?Wb(s.body,l):[],d=i===`changed`?qb(o,u):null,f=n.previous?.responses.find(e=>e.comment===r.id);return(0,B.jsx)(zb,{comment:r,className:t,chip:i===`changed`?(0,B.jsx)(`span`,{className:Jb,children:`Code changed since you asked`}):i===`gone`?(0,B.jsxs)(`span`,{className:Jb,children:[`This code is gone in v`,n.version]}):void 0,extra:(0,B.jsxs)(B.Fragment,{children:[i!==`same`&&o.length>0?(0,B.jsxs)(`details`,{className:`mt-2 text-xs`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:[`What you commented on, in v`,a]}),(0,B.jsx)(`pre`,{className:`mt-1 overflow-x-auto rounded bg-muted px-2 py-1 font-mono`,children:o.join(`
|
|
136
|
+
`)})]}):null,d===null?null:(0,B.jsxs)(`details`,{open:!0,className:`mt-2 text-xs`,children:[(0,B.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`What changed`}),(0,B.jsxs)(`section`,{"aria-label":`What changed`,className:`mt-1 overflow-x-auto whitespace-pre rounded bg-muted py-1 font-mono`,children:[d.lines.map((e,t)=>(0,B.jsxs)(`div`,{className:L(`px-2`,e.op===`+`&&`bg-emerald-500/10 text-emerald-800 dark:text-emerald-300`,e.op===`-`&&`bg-rose-500/10 text-rose-800 dark:text-rose-300`),children:[e.op,` `,e.text]},t)),d.more>0?(0,B.jsxs)(`div`,{className:`px-2 text-muted-foreground`,children:[`… `,d.more,` more`]}):null]})]}),f===void 0?null:(0,B.jsxs)(`div`,{className:`mt-3 border-l-2 border-sky-500/60 pl-3`,children:[(0,B.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`Agent`}),(0,B.jsx)(j_,{text:f.note})]})]})})}function Xb(e){return`Agent can draw: ${e.trim().replace(/^draw\s+/i,``)}`}function Zb(e,t,n,r){let i=new Set([...n.dismissedOffers??[],...r]);for(let e of n.carried??[]){let t=e.comment.offer;t!==void 0&&i.add(t)}return(e.offers??[]).flatMap(e=>{if((e.unit??null)!==t)return[];let r=n.comments.find(t=>t.offer===e.id);return r===void 0?i.has(e.id)?[]:[{offer:e,kind:`chip`}]:[{offer:e,kind:`accepted`,comment:r}]})}function Qb(e,t){return t.offer!==void 0&&(e.offers??[]).some(e=>e.id===t.offer)}function $b(e,t,n){let r=e.unit===void 0?void 0:n.get(e.unit);return{kind:`question`,offer:e.id,body:e.label,anchor:e.unit===void 0?{kind:`message`,commit:t.index}:{kind:`hunk`,unit:e.unit,commit:t.index,changes:null},context:{commitMessage:t.message,path:r?.path??null}}}function ex(e){return!(e.replies??[]).some(e=>e.author===`agent`)}var tx={covered:`bg-emerald-500/10 text-emerald-800 dark:text-emerald-300`,partly:`bg-amber-500/15 text-amber-900 dark:text-amber-200`,uncovered:`bg-rose-500/10 text-rose-800 dark:text-rose-300`},nx={covered:`bg-[var(--cov-covered)]`,partly:`bg-[var(--cov-partly)]`,uncovered:`bg-[var(--cov-uncovered)]`};function rx({commit:e}){let t=Q_()?.commits[e];if(t===void 0||t.total===0)return null;let n=$f(t);return(0,B.jsxs)(`span`,{className:L(`flex shrink-0 items-center gap-2 rounded-full px-2 py-0.5 text-xs tabular-nums`,tx[n]),children:[t.run,` of `,t.total,` new lines covered`,(0,B.jsx)(`span`,{"aria-hidden":!0,className:`h-1 w-10 overflow-hidden rounded-full bg-foreground/10`,children:(0,B.jsx)(`span`,{className:L(`block h-full`,nx[n]),style:{width:`${Qf(t)}%`}})})]})}function ix({tally:e}){return e===void 0||e.total===0?null:(0,B.jsxs)(`span`,{className:L(`rounded px-1.5 font-sans text-xs tabular-nums`,tx[$f(e)]),children:[e.run,`/`,e.total,` covered`]})}function ax(){let e=Q_();return e===null||e.branch.total===0?null:(0,B.jsxs)(`span`,{className:L(`hidden shrink-0 rounded-full px-2 py-0.5 text-xs tabular-nums lg:inline`,tx[$f(e.branch)]),title:`${e.branch.run} of ${e.branch.total} added lines the tests can run`,children:[(0,B.jsxs)(`span`,{className:`xl:hidden`,children:[`Covered `,Qf(e.branch),`%`]}),(0,B.jsxs)(`span`,{className:`hidden xl:inline`,children:[`Changed lines covered `,Qf(e.branch),`%`]})]})}function ox({path:e}){let t=Q_();return t===null||!t.stale.has(e)?null:(0,B.jsxs)(`span`,{className:`text-amber-800 text-xs dark:text-amber-200`,children:[`coverage from `,(0,B.jsx)(`code`,{className:`font-mono`,children:t.tip.slice(0,7)}),`; this file changed since`]})}function sx(){let e=Q_(),t=e?.stale.size??0;return t===0?null:(0,B.jsxs)(`span`,{className:L(`shrink-0 rounded-full px-2 py-0.5 text-xs tabular-nums`,tx.partly),title:`The branch moved after the run at ${e?.tip.slice(0,7)}`,children:[`Coverage is `,t===1?`1 file`:`${t} files`,` stale`]})}function cx(){let e=Tp(),{coverageOn:t,setCoverageOn:n}=Z_();return e===null?null:(0,B.jsx)(J,{variant:t?`secondary`:`ghost`,size:`sm`,"aria-pressed":t,title:`Show or hide coverage (g)`,onClick:()=>n(!t),children:`Coverage`})}var lx=.3;function ux(e){return document.querySelector(`#commit-${e.commit+1} [data-unit="${CSS.escape(e.unit)}"] [data-row="${e.row}"]`)}function dx(e,t,n){let r=ux(e),i=(r??document.getElementById(`commit-${e.commit+1}`))?.getBoundingClientRect().top;return i===void 0?`below`:r!==null&&(Math.abs(i-t)<2||r===n&&i>=0&&i<window.innerHeight)?`at`:i<t?`above`:`below`}function fx(){let e=Q_(),{reveal:t}=Z_(),n=(0,O.useRef)(null);return(0,O.useCallback)(r=>{let i=e?.uncovered??[],a=window.innerHeight*lx,o=i[np(i.map(e=>dx(e,a,n.current)),r)??-1];if(o===void 0)return;(0,Kt.flushSync)(()=>t(o.commit,o.path));let s=ux(o);s!==null&&(window.scrollBy(0,s.getBoundingClientRect().top-a),s.focus({preventScroll:!0}),kv(s,`row-flash`),n.current=s)},[e,t])}var px={title:`Test`,kind:`test`},mx=e=>e===1?`Hit once`:`Hit ${e} times`;function hx({mark:e,path:t,line:n,commit:r,near:i,onFlag:a,onClose:o}){let s=Q_(),{state:c}=X(),{units:l,owners:u,numbers:d}=wp(),f=py();if(s===null)return null;let p=e.stale?(0,B.jsxs)(`p`,{className:`text-amber-800 text-xs dark:text-amber-200`,children:[`This file changed since `,s.tip.slice(0,7),`, so the line may have moved.`]}):null;if(e.kind===`uncovered`)return(0,B.jsxs)(`div`,{className:`space-y-2`,children:[p,(0,B.jsxs)(`p`,{children:[`Not run by the suite at `,(0,B.jsx)(`code`,{className:`font-mono`,children:s.tip.slice(0,7)}),` (`,op(s.takenAt),`)`]}),(0,B.jsx)(J,{size:`sm`,variant:`outline`,onClick:a,children:`Flag as missing test`})]});let m=rp(s.tests,t,n),h=e=>e===null?null:ip(e,c.commits,l,u,d),g=async(e,t,n)=>{o();let a=h(t);if(t!==null&&a!==null)return f(ap(t,a),e,r,i,px);if(t!==null&&n!==null)return f(ap(t,null,n),e,r,i,px);let s=lp(e),c=t?.path??s.path;if(s.name!==null&&c!==null){let e=(await qd.definition(s.name,c).catch(()=>({candidates:[]}))).candidates.find(e=>e.path===c);if(e!==void 0)return f(e,s.name,r,i,px)}t!==null&&f(ap(t,null),e,r,i,px)};return(0,B.jsxs)(`div`,{className:`space-y-2`,children:[p,(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`p`,{children:mx(e.hits)}),e.branches===null?null:(0,B.jsxs)(`p`,{className:`text-muted-foreground`,children:[e.branches[0],` of `,e.branches[1],` branches taken`]})]}),m===null?(0,B.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`No per-test detail in this run`}):m.length===0?(0,B.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`No test in this run's detail ran this line`}):(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`p`,{className:`mb-1 font-medium text-xs`,children:[`Run by `,m.length===1?`1 test`:`${m.length} tests`]}),(0,B.jsx)(`ul`,{className:`-mx-1 max-h-56 overflow-y-auto`,children:m.map(e=>{let t=h(e.at),n=e.at!==null||lp(e.id).name!==null,r=e.at===null?null:`${e.at.path}:${e.at.start} · ${t===null?`outside this branch`:`in commit ${t.commit+1}`}`;return(0,B.jsx)(`li`,{children:n?(0,B.jsxs)(`button`,{type:`button`,className:`w-full rounded px-1 py-0.5 text-left outline-none hover:bg-muted focus-visible:bg-muted`,onClick:()=>void g(e.id,e.at,e.preview),children:[(0,B.jsx)(`span`,{className:`block font-mono text-xs [overflow-wrap:anywhere]`,children:e.id}),r===null?null:(0,B.jsx)(`span`,{className:`block text-muted-foreground text-xs`,children:r})]}):(0,B.jsx)(`span`,{className:`block px-1 py-0.5 font-mono text-xs [overflow-wrap:anywhere]`,children:e.id})},e.id)})})]})]})}function gx({line:e,spans:t}){let n=e.text.replace(/\n$/,``);return t===void 0?(0,B.jsx)(B.Fragment,{children:n||` `}):(0,B.jsx)(B.Fragment,{children:t.map((e,t)=>(0,B.jsx)(`span`,{className:e.tone===null?void 0:`tok-${e.tone}`,children:e.text},t))})}function _x(e,t){return`${e} line${e===1?``:`s`} arrive${e===1?`s`:``} in commit ${t+1}`}function vx(e,t){let n=(e instanceof Element?e:e?.parentElement)?.closest(`[data-row]`);return n&&t.contains(n)?Number(n.dataset.row):null}function yx(e){return t=>[{label:t===`ask`?`Send question`:`Send flag`,primary:!0,run:e}]}function bx({hunk:e,commit:t,under:n}){let{state:r,run:i}=X(),{owners:a,numbers:o}=wp(),s=Dp(),{pick:c,setPick:l,box:u,boxBody:d,setBox:f}=Z_(),p=ty(e),m=Q_(),h=m?.marks.get(e.id),g=Cf(e,a),_=wf(e.body,g,t.index),v=_.flatMap(e=>e.kind===`line`?[e.line]:[]),y=o.get(e.id)??[],b=_.find(e=>e.kind===`line`&&e.mine),x=b?.kind===`line`?Df(e.body,b.line):null,S=c?.unit===e.id&&c.commit===t.index?c:null,[C,w]=(0,O.useState)(null),[T,E]=(0,O.useState)(null),D=(0,O.useRef)(null),[k,A]=(0,O.useState)(null),ee=(0,O.useRef)(null),j=e=>{let t=D.current?.querySelector(`[data-row="${e}"] [data-coverage] button`);t!=null&&(ee.current=t,A(t=>t===e?null:e))},te=new Set(v),M=new Map,N=[];for(let n of r.comments){let{anchor:r}=n;if(r.kind!==`hunk`||r.unit!==e.id||r.commit!==t.index||Qb(t,n))continue;let i=(0,B.jsx)(zb,{comment:n},n.id),a=Rf(Lf(r,e.body),te);a===null?N.push(i):M.set(a,[...M.get(a)??[],i])}for(let n of s){if(n.commit!==t.index||n.unit!==e.id)continue;let r=(0,B.jsx)(Yb,{placement:n},n.comment.id);n.row===null?N.push(r):M.set(n.row,[...M.get(n.row)??[],r])}let ne=_.flatMap(e=>e.kind===`line`&&e.mine?[e.line]:[]);for(let n of t.concerns??[]){if(n.unit!==e.id)continue;let t=Bf(n.lines,e.body,ne),r=(0,B.jsx)(Vb,{concern:n},n.id);t===null?N.push(r):M.set(t,[...M.get(t)??[],r])}let re=new Set(r.comments.flatMap(n=>n.anchor.kind===`hunk`&&n.anchor.unit===e.id&&n.anchor.commit===t.index?Lf(n.anchor,e.body):[])),ie=(n,r)=>l(n.length===0?null:{commit:t.index,unit:e.id,from:r,lines:n});(0,O.useEffect)(()=>{if(C===null)return;let e=()=>{if(w(null),C.from===C.to){let e=Mf(v,S,C.from,!1);ie(e?.lines??[],C.from)}else ie(jf(v,C.from,C.to),C.from)};return window.addEventListener(`mouseup`,e),()=>window.removeEventListener(`mouseup`,e)});let ae=(e,t)=>{if(e.button===0){if(e.preventDefault(),e.shiftKey){let e=Mf(v,S,t,!0);ie(e?.lines??[],e?.from??t)}else w({from:t,to:t})}},oe=()=>{let e=D.current,t=window.getSelection();if(e===null||t===null||t.isCollapsed)return;let n=zf(v,vx(t.anchorNode,e),vx(t.focusNode,e));n!==null&&ie(n.lines,n.from)},se=(e,t)=>{let n=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;if(n!==0){let r=Nf(v,t,n);if(e.shiftKey){let e=Mf(v,S??{from:t,lines:[t]},r,!0);ie(e?.lines??[],e?.from??t)}E(r),D.current?.querySelector(`[data-row="${r}"]`)?.focus()}else if(e.key===` `){let n=Mf(v,S,t,e.shiftKey);ie(n?.lines??[],n?.from??t)}else if(e.key===`Enter`&&h?.has(t))j(t);else return;e.preventDefault()},P=S===null?null:Math.max(...S.lines),ce=C===null?null:new Set(jf(v,C.from,C.to)),le=T!==null&&te.has(T)?T:v[0],ue=async n=>{if(S===null)return!1;let r=Pf({id:e.id,commit:t.index,body:e.body,owners:g},S.lines),a={commitMessage:t.message,path:e.path,lines:Ff(e.body,S.lines)},o=await i(()=>qd.comment(cv(r,a,n)));return o&&l(null),o};return(0,B.jsxs)(`div`,{className:`rounded-lg border bg-card`,"data-unit":e.id,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 rounded-t-lg border-b bg-muted/50 px-3 py-1 font-mono text-muted-foreground text-xs`,title:e.id,children:[(0,B.jsx)(`span`,{children:vf(y)}),x===null?null:(0,B.jsx)(`span`,{className:`text-foreground/80`,children:x})]}),(0,B.jsx)(`div`,{ref:D,className:`font-mono text-[12.5px] leading-5`,role:`listbox`,"aria-multiselectable":!0,"aria-label":`Rows of ${e.path}`,"data-path":e.path,onMouseUp:oe,children:_.map(t=>{if(t.kind===`fold`)return(0,B.jsxs)(`button`,{type:`button`,className:`block w-full bg-muted/40 px-3 py-0.5 text-left font-sans text-muted-foreground text-xs hover:bg-muted hover:text-foreground`,onClick:()=>$_(t.commit),children:[`⋯ `,_x(t.lines.length,t.commit)]},`fold-${t.lines[0]}`);let r=e.body[t.line];if(r===void 0)return null;let i=y[t.line],a=t.mine?r.op:` `,o=ce?.has(t.line)??S?.lines.includes(t.line)??!1,s=a===`+`?`Added`:a===`-`?`Removed`:`Context`,c=h?.get(t.line);return(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{role:`option`,"aria-selected":o,"aria-label":`${s} ${i?.new??i?.old??``}: ${r.text.trim()||`blank line`}${c===void 0?``:` · ${Yf(c)}`}`,tabIndex:t.line===le?0:-1,"data-row":t.line,onKeyDown:e=>se(e,t.line),onFocus:()=>E(t.line),onMouseDown:e=>{e.target instanceof Element&&e.target.closest(`[data-gutter]`)&&ae(e,t.line)},onMouseEnter:()=>w(e=>e===null?e:{...e,to:t.line}),className:L(`group relative flex outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,a===`+`&&`bg-emerald-500/10`,a===`-`&&`bg-rose-500/10`,re.has(t.line)&&`shadow-[inset_3px_0_0] shadow-amber-500/70`,o&&`bg-sky-500/20 shadow-[inset_3px_0_0] shadow-sky-500`),children:[m===null?null:(0,B.jsx)(`span`,{"data-coverage":c?.kind,"data-stale":c?.stale||void 0,className:`relative w-2 shrink-0 select-none`,children:c===void 0?null:(0,B.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-label":`Coverage of line ${i?.new}`,className:`absolute inset-0 cursor-pointer`,onClick:()=>j(t.line),children:(0,B.jsx)(`span`,{className:`cov-bar`})})}),(0,B.jsxs)(`span`,{"data-gutter":!0,className:`flex shrink-0 cursor-pointer select-none text-muted-foreground/70`,children:[(0,B.jsx)(`span`,{className:`flex w-6 items-center justify-center`,children:(0,B.jsx)(`span`,{"aria-hidden":!0,className:`hidden size-4 items-center justify-center rounded bg-sky-600 text-white group-hover:flex group-focus-visible:flex`,children:(0,B.jsx)(ye,{className:`size-3`})})}),(0,B.jsx)(`span`,{className:`w-10 pr-2 text-right`,children:i?.old??``}),(0,B.jsx)(`span`,{className:`w-10 pr-2 text-right`,children:i?.new??``})]}),(0,B.jsx)(`span`,{className:L(`w-5 shrink-0 select-none text-center`,a===`+`&&`text-emerald-700 dark:text-emerald-400`,a===`-`&&`text-rose-700 dark:text-rose-400`),children:a}),(0,B.jsx)(`span`,{"data-code":!0,className:`min-w-0 flex-1 whitespace-pre-wrap pr-28 [overflow-wrap:anywhere]`,children:(0,B.jsx)(gx,{line:r,spans:p?.[t.line]})}),t.line===P&&u===null&&C===null?(0,B.jsxs)(`span`,{className:`absolute top-0 right-2 flex gap-1 font-sans`,children:[(0,B.jsx)(`button`,{type:`button`,className:`h-5 rounded bg-background px-2 text-xs shadow ring-1 ring-border hover:bg-muted`,onMouseDown:e=>e.preventDefault(),onClick:()=>f(`flag`),children:`Flag`}),(0,B.jsx)(`button`,{type:`button`,className:`h-5 rounded bg-primary px-2 text-primary-foreground text-xs shadow hover:bg-primary/85`,onMouseDown:e=>e.preventDefault(),onClick:()=>f(`ask`),children:`Ask`})]}):null]}),n?.get(t.line),M.get(t.line),t.line===P&&u!==null&&S!==null?(0,B.jsx)(gv,{className:`my-2 ml-24 max-w-[760px]`,kind:u,initialBody:d??``,label:`${u===`ask`?`Ask about`:`Flag`} ${kf(e.body,y,S.lines)}`,onCancel:()=>l(null),actions:yx(ue)},`${u}|${d}`):null]},t.line)})}),N.length>0?(0,B.jsx)(`div`,{className:`border-t px-1 pb-1`,children:N}):null,(0,B.jsx)(xx,{row:k,hunk:e,commit:t.index,at:y,markAt:ee,onClose:()=>A(null),onFlag:(n,r)=>{A(null),l({commit:t.index,unit:e.id,from:n,lines:[n]}),f(`flag`,sp(e.path,r))}})]})}function xx({row:e,hunk:t,commit:n,at:r,markAt:i,onClose:a,onFlag:o}){let s=Q_()?.marks.get(t.id)?.get(e??-1),c=r[e??-1]?.new??null,l=e!==null&&s!==void 0&&c!==null;return(0,B.jsxs)(iv,{open:l,onOpenChange:e=>e?void 0:a(),children:[(0,B.jsx)(sv,{virtualRef:i}),l?(0,B.jsx)(ov,{align:`start`,side:`bottom`,className:`w-80`,"aria-label":`Coverage of ${t.path}:${c}`,onInteractOutside:e=>{e.target instanceof Node&&i.current?.contains(e.target)&&e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault(),document.activeElement===document.body&&i.current?.closest(`[data-row]`)?.focus({preventScroll:!0})},children:(0,B.jsx)(hx,{mark:s,path:t.path,line:c,commit:n,near:i.current??document.body,onClose:a,onFlag:()=>o(e,c)})}):null]})}function Sx(){let{run:e}=X();return t=>e(()=>qd.comment(cv({kind:`plan`},{commitMessage:``,path:null},t)))}function Cx(){let[e,t]=(0,O.useState)(!1),n=Sx();return(0,B.jsxs)(iv,{open:e,onOpenChange:t,children:[(0,B.jsx)(av,{asChild:!0,children:(0,B.jsxs)(J,{variant:`outline`,size:`sm`,children:[(0,B.jsx)(_e,{}),(0,B.jsx)(`span`,{className:`hidden xl:inline`,children:`Ask about the branch`})]})}),(0,B.jsx)(ov,{align:`end`,className:`w-[420px] p-0`,children:(0,B.jsx)(gv,{className:`border-0 shadow-none`,kind:`ask`,label:`About the whole branch`,onCancel:()=>t(!1),actions:yx(n)})})]})}function wx(e,t){return`${e} ${t}${e===1?``:`s`}`}function Tx(){let{state:e}=X(),{units:t,owners:n}=wp(),r=Ep(),i=new Set(e.units.map(e=>e.path)).size,a=e.commits.map(e=>Af(e,t,n)).reduce((e,t)=>({added:e.added+t.added,removed:e.removed+t.removed}),{added:0,removed:0}),{answered:o,asked:s}=uf(e.previous),c=e.comments.filter(e=>e.anchor.kind===`plan`),l=r.filter(e=>e.place===null),u=Dp().filter(e=>e.commit===null);return(0,B.jsxs)(`section`,{"aria-label":`Branch`,className:`space-y-3 py-6`,children:[(0,B.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[wx(e.commits.length,`commit`),` · `,wx(i,`file`),` ·`,` `,(0,B.jsxs)(`span`,{className:`text-emerald-700 dark:text-emerald-400`,children:[`+`,a.added]}),` `,(0,B.jsxs)(`span`,{className:`text-rose-700 dark:text-rose-400`,children:[`−`,a.removed]}),s===0?null:(0,B.jsxs)(B.Fragment,{children:[` `,`· v`,e.version,` answers `,o,` of your `,wx(s,`question`),` `,(0,B.jsx)(J,{variant:`link`,size:`xs`,className:`h-auto p-0`,onClick:()=>document.querySelector(`[aria-label="Answer to your question"]`)?.scrollIntoView({block:`center`}),children:`first answer →`})]})]}),c.length+l.length+u.length===0?null:(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`h2`,{className:`font-medium text-sm`,children:`Branch discussion`}),l.map(e=>(0,B.jsx)(Ub,{card:e,className:`ml-0`},e.id)),u.map(e=>(0,B.jsx)(Yb,{placement:e,className:`ml-0`},e.comment.id)),c.map(e=>(0,B.jsx)(zb,{comment:e,className:`ml-0`},e.id))]})]})}function Ex(){return(0,B.jsxs)(`div`,{role:`status`,className:`mt-2`,children:[(0,B.jsx)(`p`,{className:`mb-2 text-muted-foreground text-xs`,children:`Waiting for the agent…`}),(0,B.jsx)(`div`,{"aria-hidden":!0,className:`h-40 animate-pulse rounded-lg border bg-muted/60`})]})}function Dx({offer:e,onAccept:t,onDismiss:n}){return(0,B.jsxs)(`div`,{className:`flex max-w-[760px] items-center gap-1 rounded-md border border-dashed py-0.5 pr-0.5 pl-2 text-muted-foreground text-sm`,children:[(0,B.jsxs)(`button`,{type:`button`,title:`Ask the agent to draw it`,onClick:t,className:`flex min-w-0 flex-1 items-center gap-2 rounded py-0.5 text-left outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,B.jsx)(xe,{"aria-hidden":!0,className:`size-4 shrink-0`}),(0,B.jsx)(`span`,{className:`truncate`,children:Xb(e.label)})]}),(0,B.jsx)(J,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss offer: ${e.label}`,onClick:n,children:(0,B.jsx)(Ce,{})})]})}function Ox({commit:e,unit:t}){let{state:n,run:r}=X(),{units:i}=wp(),[a,o]=(0,O.useState)(new Set),[s,c]=(0,O.useState)(new Set),l=Zb(e,t,n,a);if(l.length===0)return null;let u=async t=>{c(e=>new Set([...e,t.id])),await r(()=>qd.comment($b(t,e,i)))||c(e=>new Set([...e].filter(e=>e!==t.id)))},d=async e=>{o(t=>new Set([...t,e.id])),await r(()=>qd.dismissOffer(e.id))||o(t=>new Set([...t].filter(t=>t!==e.id)))};return l.map(e=>{let t=`Offer: ${e.offer.label}`;return e.kind===`accepted`?(0,B.jsx)(zb,{comment:e.comment,label:t,className:`ml-0 max-w-none`,extra:ex(e.comment)?(0,B.jsx)(Ex,{}):null},e.offer.id):s.has(e.offer.id)?(0,B.jsxs)(Fb,{label:t,className:`ml-0 max-w-none`,children:[(0,B.jsx)(`div`,{className:`mb-1 font-medium text-xs`,children:`You asked`}),(0,B.jsx)(Ib,{children:e.offer.label}),(0,B.jsx)(Ex,{})]},e.offer.id):(0,B.jsx)(Dx,{offer:e.offer,onAccept:()=>void u(e.offer),onDismiss:()=>void d(e.offer)},e.offer.id)})}function kx(e){if(e.kind===`mode`)return`mode change ${e.from} → ${e.to}`;let t=e.before===null?`added`:e.after===null?`deleted`:`changed`;return`${e.reason} file ${t}`}function Ax({commit:e}){let{state:t,run:n}=X(),{units:r}=wp(),i=Ep(),a=Dp(),o=e.refs.map(e=>e.unit),[s,c]=(0,O.useState)(null),l=t.comments.filter(t=>(t.anchor.kind===`message`||t.anchor.kind===`position`)&&t.anchor.commit===e.index&&!Qb(e,t)),u=t=>r=>n(()=>qd.comment(cv({kind:t,commit:e.index},{commitMessage:e.message,path:null},r))),{isViewed:d,setViewed:f,isFileViewed:p,setFileViewed:m,isRevealed:h}=Z_(),g=d(e),_=g&&!h(e.index),v=`commit-${e.index+1}`,y=ff(e.message),b=mf(e),x=hf(e,r),S=Q_();return(0,B.jsxs)(`section`,{id:v,"data-commit":e.index,"aria-labelledby":`commit-${e.index+1}-title`,className:`scroll-mt-11 pb-10 last:min-h-[calc(100vh-44px)]`,children:[(0,B.jsxs)(`header`,{className:`sticky top-11 z-20 -mx-6 flex h-11 items-center gap-3 border-b bg-background/95 px-6 backdrop-blur`,children:[(0,B.jsx)(`span`,{className:`flex size-6 shrink-0 items-center justify-center rounded-full bg-muted font-medium text-xs tabular-nums`,children:e.index+1}),(0,B.jsx)(`h2`,{id:`commit-${e.index+1}-title`,className:`min-w-0 truncate font-semibold`,children:df(e.message)}),(0,B.jsx)(rx,{commit:e.index}),(0,B.jsx)(kp,{className:`ml-auto`,checked:g,onChange:t=>f(e,t),name:`Viewed commit ${e.index+1}`,children:`Viewed`}),(0,B.jsxs)(lv,{children:[(0,B.jsx)(uv,{asChild:!0,children:(0,B.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`More on commit ${e.index+1}`,children:(0,B.jsx)(he,{})})}),(0,B.jsxs)(dv,{align:`end`,className:`w-56`,children:[(0,B.jsx)(fv,{onSelect:()=>c({anchor:`message`,kind:`ask`}),children:`Comment on message`}),t.mode===`split`?(0,B.jsx)(fv,{onSelect:()=>c({anchor:`position`,kind:`flag`}),children:`Move this commit…`}):null]})]})]}),_?null:(0,B.jsxs)(`div`,{className:`space-y-4 pt-4`,children:[y===``?null:(0,B.jsx)(`p`,{className:`max-w-[72ch] whitespace-pre-wrap text-sm leading-6`,children:y}),b===null?null:(0,B.jsxs)(`div`,{className:`max-w-[72ch] text-sm leading-6`,children:[(0,B.jsx)(`div`,{className:`mb-0.5 font-medium text-muted-foreground text-xs`,children:`Agent's note`}),(0,B.jsx)(`p`,{className:`whitespace-pre-wrap text-muted-foreground`,children:b})]}),e.diagram?.trim()?(0,B.jsx)(A_,{source:e.diagram,title:`Diagram of commit ${e.index+1}`}):null,(0,B.jsx)(Ox,{commit:e,unit:null}),cf(i,e.index,null,o).map(e=>(0,B.jsx)(Ub,{card:e,className:`ml-0`},e.id)),(e.concerns??[]).filter(e=>e.unit===void 0||r.get(e.unit)?.kind!==`hunk`).map(e=>(0,B.jsx)(Vb,{concern:e,className:`ml-0`},e.id)),a.filter(t=>t.commit===e.index&&t.unit===null).map(e=>(0,B.jsx)(Yb,{placement:e,className:`ml-0`},e.comment.id)),l.map(e=>(0,B.jsx)(zb,{comment:e,className:`ml-0`},e.id)),s===null?null:(0,B.jsx)(gv,{className:`max-w-[760px]`,kind:s.kind,label:s.anchor===`message`?`Comment on the message`:`Where should this commit go?`,onCancel:()=>c(null),actions:yx(u(s.anchor))}),x.map(t=>{let n=p(e,t.path);return(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 pt-2 text-sm`,children:[(0,B.jsx)(`span`,{className:`font-medium font-mono`,children:t.path}),(0,B.jsx)(ix,{tally:S?.files.get(ep(e.index,t.path))}),(0,B.jsx)(ox,{path:t.path}),(0,B.jsx)(kp,{className:`ml-auto`,checked:n,onChange:n=>m(e,t.path,n),name:`Viewed ${t.path} in commit ${e.index+1}`,children:`Viewed`})]}),n&&!h(e.index,t.path)?null:t.parts.map(({ref:t,unit:n})=>n.kind===`hunk`?(0,B.jsxs)(`div`,{className:`space-y-2`,children:[t.narration?.trim()?(0,B.jsx)(`p`,{className:`max-w-[72ch] text-muted-foreground text-sm`,children:t.narration.trim()}):null,t.diagram?.trim()?(0,B.jsx)(A_,{source:t.diagram,title:`Diagram of ${n.path}`}):null,(0,B.jsx)(Ox,{commit:e,unit:n.id}),cf(i,e.index,n.id,o).map(e=>(0,B.jsx)(Ub,{card:e,className:`ml-0`},e.id)),(0,B.jsx)(bx,{hunk:n,commit:e})]},t.unit):(0,B.jsx)(`div`,{className:`rounded-lg border bg-card px-3 py-2 text-muted-foreground text-sm`,children:kx(n)},t.unit))]},t.path)})]})]})}function jx({delayDuration:e=0,...t}){return(0,B.jsx)(_d,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Mx({...e}){return(0,B.jsx)(xd,{"data-slot":`tooltip`,...e})}function Nx({...e}){return(0,B.jsx)(Cd,{"data-slot":`tooltip-trigger`,...e})}function Px({className:e,sideOffset:t=0,children:n,...r}){return(0,B.jsx)(Dd,{children:(0,B.jsxs)(kd,{"data-slot":`tooltip-content`,sideOffset:t,className:L(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[n,(0,B.jsx)(Nd,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}function Fx(e){let t=e.replies?.at(-1);return t===void 0?e.author===`agent`:t.author===`agent`}function Ix(e,t,n,r){let i=t.filter(t=>t.anchor.kind!==`plan`&&t.anchor.commit===e.index).filter(e=>!r.has(e.id)),a=new Set(n.map(e=>e.concern));return{open:i.length,waiting:i.filter(Fx).length,undecided:(e.concerns??[]).filter(e=>!a.has(e.id)).length}}function Lx(){let{state:e,unread:t}=X(),{isViewed:n,resolved:r}=Z_(),i=Dp(),a=Q_();return(0,O.useMemo)(()=>{let o=new Map;for(let t of e.comments)t.anchor.kind!==`plan`&&o.set(t.id,t.anchor.commit);for(let e of i)e.commit!==null&&o.set(e.comment.id,e.commit);let s=G_(t,o);return e.commits.map(t=>{let i=Ix(t,e.comments,e.concerns,r),o=a?.commits[t.index];return{...o===void 0?{}:{coverage:o},viewed:n(t),open:i.open,waiting:i.waiting,unread:s.get(t.index)??0,undecided:i.undecided}})},[e.commits,e.comments,e.concerns,r,t,i,n,a])}function Rx(e){let t=[...e.currentTarget.querySelectorAll(`[data-entry]`)],n=t.findIndex(e=>e.matches(`:focus`)),r=e.key===`ArrowDown`?n+1:e.key===`ArrowUp`?n-1:e.key===`Home`?0:e.key===`End`?t.length-1:null;r===null||n<0||(e.preventDefault(),t[Math.max(0,Math.min(t.length-1,r))]?.focus())}function zx(e){let t=(0,O.useRef)(null);return(0,O.useEffect)(()=>{let n=t.current,r=n?.querySelector(`[data-entry="${e}"]`);if(n==null||r==null)return;let i=r.offsetTop-n.offsetTop;i<n.scrollTop?n.scrollTop=i:i+r.offsetHeight>n.scrollTop+n.clientHeight&&(n.scrollTop=i+r.offsetHeight-n.clientHeight)},[e]),t}function Bx({tone:e}){return(0,B.jsx)(`span`,{"aria-hidden":!0,className:L(`size-2 rounded-full`,e===`unread`?`bg-violet-500`:`bg-amber-500`)})}function Vx({marks:e}){return(0,B.jsxs)(`span`,{"aria-hidden":!0,className:`flex shrink-0 items-center gap-1 pt-0.5 text-[11px]`,children:[e.viewed?(0,B.jsx)(ie,{className:`size-3.5 text-emerald-600`}):null,e.open>0?(0,B.jsx)(`span`,{className:L(`rounded-full px-1.5 font-medium tabular-nums leading-4`,e.waiting>0?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:`bg-muted text-muted-foreground`),children:e.open}):null,e.unread>0?(0,B.jsx)(Bx,{tone:`unread`}):null,e.undecided>0?(0,B.jsx)(Bx,{tone:`concern`}):null,e.coverage!==void 0&&e.coverage.total>0?(0,B.jsxs)(`span`,{className:L(`rounded px-1 tabular-nums leading-4`,tx[$f(e.coverage)]),children:[Qf(e.coverage),`%`]}):null]})}function Hx({children:e}){return(0,B.jsx)(`kbd`,{className:`rounded border bg-background px-1 font-mono text-[10px] leading-4`,children:e})}function Ux(){let{state:e}=X(),{units:t}=wp(),{current:n,setIndexOpen:r}=Z_(),i=Lx(),a=zx(n),o=V_(e.commits),s=i.filter(e=>e.viewed).length;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center justify-between pr-2 pl-3`,children:[(0,B.jsx)(`span`,{className:`font-semibold text-[11px] text-muted-foreground tracking-widest`,children:`INDEX`}),(0,B.jsxs)(`button`,{type:`button`,"aria-label":`Hide index`,title:`Hide index ([)`,className:`flex items-center gap-1 rounded px-1 py-0.5 text-muted-foreground text-xs hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring`,onClick:()=>r(!1),children:[(0,B.jsx)(Hx,{children:`[`}),` hide`]})]}),(0,B.jsx)(`div`,{ref:a,className:`min-h-0 flex-1 overflow-y-auto pb-2`,onKeyDown:Rx,children:o.map(e=>(0,B.jsxs)(`div`,{children:[e.section===null?null:(0,B.jsx)(`h3`,{className:`px-3 pt-3 pb-1 font-medium text-muted-foreground text-xs`,children:xf(e.section)}),(0,B.jsx)(`ul`,{children:e.commits.map(e=>{let r=i[e.index]??{viewed:!1,open:0,waiting:0,unread:0,undecided:0},a=e.index===n;return(0,B.jsxs)(`li`,{children:[(0,B.jsxs)(`button`,{type:`button`,"data-entry":e.index,tabIndex:a?0:-1,"aria-current":a?`location`:void 0,"aria-label":U_(e,r),onClick:()=>$_(e.index),className:L(`flex w-full items-start gap-2 py-1 pr-2 pl-3 text-left text-[13px] leading-5 outline-none hover:bg-muted/60 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,a&&`bg-sky-500/10 font-semibold shadow-[inset_3px_0_0] shadow-sky-500 hover:bg-sky-500/15`),children:[(0,B.jsx)(`span`,{className:`w-4 shrink-0 text-right font-normal text-muted-foreground tabular-nums`,children:e.index+1}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 [overflow-wrap:anywhere]`,children:df(e.message)}),(0,B.jsx)(Vx,{marks:r})]}),a?(0,B.jsx)(`ul`,{"aria-label":`Files in commit ${e.index+1}`,className:`space-y-0.5 bg-sky-500/5 pt-0.5 pr-2 pb-1.5 pl-9 font-mono text-[11px] text-muted-foreground`,children:hf(e,t).map(e=>(0,B.jsx)(`li`,{className:`[overflow-wrap:anywhere]`,children:e.path},e.path))}):null]},e.index)})})]},`${e.section}-${e.commits[0]?.index}`))}),(0,B.jsxs)(`div`,{className:`shrink-0 border-t px-3 py-2 text-muted-foreground text-xs`,children:[(0,B.jsx)(`div`,{children:W_(i)}),(0,B.jsx)(`div`,{role:`progressbar`,"aria-label":`Commits viewed`,"aria-valuemin":0,"aria-valuemax":i.length,"aria-valuenow":s,className:`mt-1.5 h-1 overflow-hidden rounded-full bg-muted`,children:(0,B.jsx)(`div`,{className:`h-full rounded-full bg-emerald-500 transition-[width]`,style:{width:`${i.length===0?0:100*s/i.length}%`}})})]})]})}function Wx(){let{state:e}=X(),{current:t,setIndexOpen:n}=Z_(),r=Lx(),i=zx(t),a=V_(e.commits);return(0,B.jsxs)(jx,{delayDuration:150,children:[(0,B.jsx)(`button`,{type:`button`,"aria-label":`Show index`,title:`Show index ([)`,className:`mx-auto mt-2 mb-1 flex shrink-0 rounded px-1 py-0.5 text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring`,onClick:()=>n(!0),children:(0,B.jsx)(Hx,{children:`[`})}),(0,B.jsx)(`div`,{ref:i,className:`no-scrollbar min-h-0 flex-1 overflow-y-auto pb-2`,onKeyDown:Rx,children:a.map((e,n)=>(0,B.jsxs)(`div`,{children:[n>0&&e.section!==null?(0,B.jsx)(`hr`,{"aria-hidden":!0,className:`mx-auto my-1.5 w-4 border-border`}):null,(0,B.jsx)(`ul`,{children:e.commits.map(e=>{let n=r[e.index],i=e.index===t,a=n===void 0?`${e.index+1}`:U_(e,n);return(0,B.jsx)(`li`,{children:(0,B.jsxs)(Mx,{children:[(0,B.jsx)(Nx,{asChild:!0,children:(0,B.jsxs)(`button`,{type:`button`,"data-entry":e.index,tabIndex:i?0:-1,"aria-current":i?`location`:void 0,"aria-label":a,onClick:()=>$_(e.index),className:L(`relative flex h-7 w-full items-center justify-center text-muted-foreground text-xs tabular-nums outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,n?.viewed&&`text-emerald-700 dark:text-emerald-400`,i&&`bg-sky-500/10 font-semibold text-foreground shadow-[inset_3px_0_0] shadow-sky-500`),children:[e.index+1,n?.viewed?(0,B.jsx)(ie,{"aria-hidden":!0,className:`absolute top-0.5 right-1 size-2.5 text-emerald-600`}):null,(0,B.jsxs)(`span`,{"aria-hidden":!0,className:`absolute right-1 bottom-1 flex gap-0.5`,children:[n!==void 0&&n.unread>0?(0,B.jsx)(`span`,{className:`size-1.5 rounded-full bg-violet-500`}):null,n!==void 0&&n.undecided>0?(0,B.jsx)(`span`,{className:`size-1.5 rounded-full bg-amber-500`}):null,n?.coverage!==void 0&&$f(n.coverage)!==`covered`?(0,B.jsx)(`span`,{className:L(`size-1.5 rounded-sm`,$f(n.coverage)===`uncovered`?`bg-[var(--cov-uncovered)]`:`bg-[var(--cov-partly)]`)}):null]})]})}),(0,B.jsx)(Px,{side:`right`,sideOffset:6,children:a})]})},e.index)})})]},`${e.section}-${e.commits[0]?.index}`))})]})}function Gx(){let{indexOpen:e}=Z_();return(0,B.jsx)(`nav`,{"aria-label":`Index`,className:L(`sticky top-11 flex h-[calc(100vh-2.75rem)] shrink-0 flex-col border-r bg-muted/20`,e?`w-[216px]`:`w-10`),children:e?(0,B.jsx)(Ux,{}):(0,B.jsx)(Wx,{})})}function Kx(){document.querySelector(`nav[aria-label="Index"] [data-entry][aria-current]`)?.focus()}var qx=[[`j or c`,`Next commit`],[`k`,`Previous commit`],[`n`,`Next unviewed commit`],[`v`,`Toggle Viewed on the commit at the top`],[`s`,`Open the stack, or move to the index when it is open`],[`[`,`Show or hide the index`],[`↑ ↓ in the index`,`Move between commits`],[`↑ ↓`,`Move between rows of a hunk`],[`Shift+↑ ↓`,`Extend the picked rows`],[`Space`,`Pick or unpick a row`],[`f`,`Flag the picked rows`],[`a`,`Ask about the picked rows`],[`Escape`,`Clear the pick or close a box`],[`u`,`Next unresolved thread`],[`x, Shift+X`,`Next or previous added line the tests did not run`],[`g`,`Show or hide coverage`],[`⌘ hover, ⌘ click`,`Go to the definition of a name (Ctrl off macOS)`],[`Alt ←`,`Back to where the jump started`],[`Enter on an agent's reply`,`Step through the places it points at`],[`. and ,`,`Next or previous step of the walkthrough`],[`Escape in a walkthrough`,`End the walkthrough`],[`⌘ Enter`,`Save the box`],[`⌘ Shift Enter`,`Submit review`],[`?`,`This sheet`]];function Jx({open:e,onOpenChange:t}){return(0,B.jsx)(d_,{open:e,onOpenChange:t,children:(0,B.jsxs)(m_,{className:`sm:max-w-md`,children:[(0,B.jsx)(h_,{children:(0,B.jsx)(__,{children:`Keyboard`})}),(0,B.jsx)(`dl`,{className:`grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-sm`,children:qx.map(([e,t])=>(0,B.jsxs)(`div`,{className:`contents`,children:[(0,B.jsx)(`dt`,{children:(0,B.jsx)(`kbd`,{className:`rounded border bg-muted px-1.5 py-px font-mono text-xs`,children:e})}),(0,B.jsx)(`dd`,{className:`text-muted-foreground`,children:t})]},e))})]})})}var Yx=8e3;function Xx({title:e,preview:t,onView:n,onDismiss:r,ms:i=Yx}){let[a,o]=(0,O.useState)(!1);return(0,O.useEffect)(()=>{if(a)return;let e=setTimeout(r,i);return()=>clearTimeout(e)},[a,i,r]),(0,B.jsxs)(`article`,{"aria-label":`Notification`,className:`pointer-events-auto w-80 rounded-lg border bg-popover p-3 text-popover-foreground text-sm shadow-lg`,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`div`,{className:`font-medium`,children:e}),(0,B.jsx)(`div`,{className:`truncate text-muted-foreground text-xs`,children:t})]}),(0,B.jsx)(J,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss notification`,onClick:r,children:(0,B.jsx)(Ce,{})})]}),(0,B.jsx)(J,{size:`xs`,className:`mt-2`,onClick:n,children:`View`})]})}function Zx(){let{markSeen:e}=X();return(0,O.useCallback)(t=>{e([t.key]),t.thread!==null&&Av(t.thread)},[e])}function Qx(){let[e,t]=(0,O.useState)(document.hidden);return(0,O.useEffect)(()=>{let e=()=>t(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e}function $x(){let{state:e,events:t,unread:n}=X(),{notify:r}=Z_(),i=Zx(),a=Qx(),[o,s]=(0,O.useState)([]),c=(0,O.useRef)(0),l=(0,O.useRef)(e);l.current=e;let u=(0,O.useRef)(document.title);(0,O.useEffect)(()=>{let e=t.slice(c.current);c.current=t.length;let n=e.flatMap(e=>{let t=mp(e);return t===null?[]:[{key:t.key,notice:t,title:_p(t,l.current)}]});if(n.length!==0&&(s(e=>[...e,...n.filter(t=>!e.some(e=>e.key===t.key))]),document.hidden&&r&&Notification.permission===`granted`))for(let{notice:e,title:t}of n){let n=new Notification(t,{body:e.preview,tag:e.key});n.onclick=()=>{window.focus(),i(e),n.close()}}},[t,r,i]),(0,O.useEffect)(()=>(document.title=a&&n.length>0?`(${n.length}) ${u.current}`:u.current,()=>{document.title=u.current}),[a,n.length]);let d=(0,O.useCallback)(e=>s(t=>t.filter(t=>t.key!==e)),[]);return(0,B.jsx)(`section`,{"aria-label":`Notifications`,"aria-live":`polite`,className:`pointer-events-none fixed right-4 bottom-4 z-50 flex flex-col gap-2`,children:o.map(({key:e,notice:t,title:n})=>(0,B.jsx)(Xx,{title:n,preview:t.preview,onView:()=>{i(t),d(e)},onDismiss:()=>d(e)},e))})}function eS(){let{state:e,unread:t}=X(),n=Zx();return t.length===0?null:(0,B.jsxs)(lv,{children:[(0,B.jsx)(uv,{asChild:!0,children:(0,B.jsxs)(J,{variant:`outline`,size:`sm`,"aria-label":`${t.length} new from the agent`,children:[(0,B.jsx)(ne,{}),t.length,` new`]})}),(0,B.jsx)(dv,{align:`end`,className:`w-80`,children:t.map(t=>(0,B.jsxs)(fv,{className:`flex-col items-start gap-0`,onSelect:()=>n(t),children:[(0,B.jsx)(`span`,{className:`font-medium`,children:_p(t,e)}),(0,B.jsx)(`span`,{className:`max-w-full truncate text-muted-foreground text-xs`,children:t.preview})]},t.key))})]})}function tS(){let{notify:e,setNotify:t}=Z_(),n=!(`Notification`in window)||Notification.permission===`denied`;return(0,B.jsxs)(lv,{children:[(0,B.jsx)(uv,{asChild:!0,children:(0,B.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Page options`,children:(0,B.jsx)(he,{})})}),(0,B.jsxs)(dv,{align:`end`,className:`w-64`,children:[(0,B.jsx)(pv,{checked:e,disabled:n,onCheckedChange:e=>void t(e),children:`Notify me when the agent replies`}),n?(0,B.jsx)(`p`,{className:`px-2 pb-1.5 text-muted-foreground text-xs`,children:`Notifications are blocked in this browser.`}):null]})]})}function nS({open:e,onOpenChange:t}){let{state:n}=X(),{current:r,isViewed:i,resolved:a}=Z_(),o=n.commits.length,s=n.commits[r];return(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:[(0,B.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Previous commit`,disabled:r===0,onClick:()=>$_(r-1),children:(0,B.jsx)(P,{})}),(0,B.jsxs)(lv,{open:e,onOpenChange:t,children:[(0,B.jsx)(uv,{asChild:!0,children:(0,B.jsxs)(J,{variant:`ghost`,size:`sm`,className:`min-w-0 max-w-[480px] gap-1.5`,children:[(0,B.jsxs)(`span`,{className:`hidden min-w-0 truncate min-[900px]:inline`,children:[`Commit `,r+1,` of `,o,s===void 0?``:` · ${df(s.message)}`]}),(0,B.jsxs)(`span`,{className:`min-[900px]:hidden`,children:[r+1,`/`,o]}),(0,B.jsx)(oe,{})]})}),(0,B.jsx)(dv,{align:`center`,className:`max-h-[70vh] w-[440px]`,children:n.commits.map(e=>{let t=Ix(e,n.comments,n.concerns,a);return(0,B.jsxs)(fv,{className:L(`items-start gap-2`,e.index===r&&`bg-muted/60`),onSelect:()=>$_(e.index),children:[(0,B.jsx)(`span`,{className:`w-5 shrink-0 text-right text-muted-foreground tabular-nums`,children:e.index+1}),(0,B.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-normal`,children:df(e.message)}),(0,B.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 text-xs`,children:[t.open>0?(0,B.jsx)(`span`,{title:`${t.open} open thread${t.open===1?``:`s`}`,className:L(`rounded-full px-1.5 tabular-nums`,t.waiting>0?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:`bg-muted`),children:t.open}):null,t.undecided>0?(0,B.jsx)(`span`,{title:`Agent concerns to decide`,className:`size-2 rounded-full bg-amber-500`}):null,i(e)?(0,B.jsx)(ie,{"aria-label":`Viewed`,className:`size-4 text-emerald-600`}):null]})]},e.index)})})]}),(0,B.jsx)(J,{variant:`ghost`,size:`icon-sm`,"aria-label":`Next commit`,disabled:r>=o-1,onClick:()=>$_(r+1),children:(0,B.jsx)(le,{})})]})}function rS({open:e,onOpenChange:t}){let{state:n,run:r,refresh:i}=X(),[a,o]=(0,O.useState)(``),[s,c]=(0,O.useState)(!1),l=new Set(n.concerns.map(e=>e.concern)),u=n.commits.flatMap(e=>(e.concerns??[]).filter(e=>!l.has(e.id)).map(t=>({concern:t,commit:e}))),d=e=>r(async()=>{for(let{concern:t}of u)await qd.decide(t.id,e)}),f=async()=>{c(!0);let e=await r(()=>qd.submit(a));c(!1),e&&(await i().catch(()=>void 0),t(!1),nf(`report`))};return(0,B.jsx)(d_,{open:e,onOpenChange:t,children:(0,B.jsxs)(m_,{className:`sm:max-w-lg`,children:[(0,B.jsxs)(h_,{children:[(0,B.jsx)(__,{children:`Submit review`}),(0,B.jsx)(v_,{children:`Your flags and questions already reached the agent. Submitting finishes the review and opens the hand-off.`})]}),(0,B.jsx)(mv,{"aria-label":`Summary`,placeholder:`Summary for the agent (optional)`,value:a,onChange:e=>o(e.target.value)}),u.length===0?null:(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsxs)(`div`,{className:`font-medium text-sm`,children:[u.length,` agent concern`,u.length===1?``:`s`,` undecided`]}),(0,B.jsx)(`ul`,{className:`max-h-48 space-y-1.5 overflow-y-auto text-sm`,children:u.map(({concern:e,commit:t})=>(0,B.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,B.jsx)(P_,{severity:e.severity}),(0,B.jsxs)(`span`,{className:`min-w-0`,children:[e.text,(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[` · `,df(t.message)]})]})]},e.id))}),(0,B.jsxs)(`div`,{className:`flex gap-2`,children:[(0,B.jsx)(J,{size:`sm`,variant:`outline`,onClick:()=>void d(`kept`),children:`Keep all`}),(0,B.jsx)(J,{size:`sm`,variant:`outline`,onClick:()=>void d(`dismissed`),children:`Dismiss all`})]}),(0,B.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:`Undecided concerns are left out of the report.`})]}),(0,B.jsxs)(g_,{children:[(0,B.jsx)(J,{variant:`ghost`,onClick:()=>t(!1),children:`Go back`}),(0,B.jsx)(J,{disabled:s,onClick:()=>void f(),children:`Submit review`})]})]})})}function iS(e){let t=e.target;return e.metaKey||e.ctrlKey||e.altKey?!0:t instanceof HTMLElement&&(t.isContentEditable||t.closest(`input, textarea, select, [role=menu]`)!==null)}function aS(){let e=[...document.querySelectorAll(`article[data-open-thread]`)];(e.find(e=>e.getBoundingClientRect().top>104)??e[0])?.scrollIntoView({block:`center`})}function oS(e,t,n){let{state:r}=X(),{current:i,isViewed:a,setViewed:o,pick:s,setPick:c,setBox:l,indexOpen:u,setIndexOpen:d,coverageOn:f,setCoverageOn:p}=Z_(),m=fx(),h=Tp()!==null;(0,O.useEffect)(()=>{let g=g=>{if(g.key===`Enter`&&g.shiftKey&&(g.metaKey||g.ctrlKey)){g.preventDefault(),n();return}if(g.key===`Escape`&&s!==null){c(null);return}if(iS(g))return;let _=r.commits.length-1,v=r.commits[i];switch(g.key){case`j`:case`c`:$_(Math.min(_,i+1));break;case`k`:$_(Math.max(0,i-1));break;case`x`:case`X`:m(g.key===`x`?1:-1);break;case`g`:if(!h)return;p(!f);break;case`n`:{let e=r.commits.find(e=>e.index>i&&!a(e));e!==void 0&&$_(e.index);break}case`v`:v!==void 0&&o(v,!a(v));break;case`s`:u?Kx():e();break;case`[`:d(!u);break;case`f`:case`a`:if(s===null)return;l(g.key===`f`?`flag`:`ask`);break;case`u`:aS();break;case`?`:t();break;default:return}g.preventDefault()};return window.addEventListener(`keydown`,g),()=>window.removeEventListener(`keydown`,g)},[r.commits,i,a,o,e,t,n,s,c,l,u,d,m,f,p,h])}function sS(){let{state:e,error:t,ended:n,arrived:r,dismissArrived:i,reconnecting:a}=X(),{indexOpen:o}=Z_(),s=gy(),{goTo:c,goToPlaces:l,depart:u,departures:d}=s,f=(0,O.useMemo)(()=>({goTo:c,goToPlaces:l,depart:u,departures:d}),[c,l,u,d]),[p,m]=(0,O.useState)(!1),[h,g]=(0,O.useState)(!1),[_,v]=(0,O.useState)(!1);return oS(()=>m(!0),()=>g(!0),()=>v(!0)),(0,B.jsx)(dy,{value:f,children:(0,B.jsx)(Ay,{children:(0,B.jsxs)(`div`,{className:`min-h-screen`,children:[(0,B.jsxs)(`header`,{className:`sticky top-0 z-30 h-11 border-b bg-background/95 backdrop-blur`,children:[(0,B.jsxs)(`div`,{className:`grid h-full grid-cols-[minmax(0,1fr)_minmax(0,auto)_minmax(max-content,1fr)] items-center gap-2 px-4 text-sm`,children:[(0,B.jsxs)(`div`,{className:`min-w-0 truncate`,children:[(0,B.jsx)(`strong`,{children:`follow-me`}),(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[` `,`· `,e.anchor.branch,` → `,e.anchor.baseRef,` · plan v`,e.version]})]}),(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[o?null:(0,B.jsx)(nS,{open:p,onOpenChange:m}),s.back]}),(0,B.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,B.jsx)(ax,{}),(0,B.jsx)(sx,{}),(0,B.jsx)(cx,{}),(0,B.jsx)(eS,{}),(0,B.jsx)(Cx,{}),(0,B.jsx)(J,{size:`sm`,onClick:()=>v(!0),children:`Submit review`}),(0,B.jsx)(tS,{})]})]}),a?(0,B.jsx)(`div`,{className:`border-b bg-amber-500/10 px-6 py-1 text-center text-amber-900 text-sm dark:text-amber-100`,children:`Reconnecting… your drafts are kept.`}):null,r===null?null:(0,B.jsxs)(`div`,{role:`status`,className:`absolute top-full left-1/2 mt-2 flex -translate-x-1/2 items-center gap-3 rounded-full border bg-sky-50 py-0.5 pr-1 pl-4 text-sky-900 text-sm shadow-md dark:bg-sky-950 dark:text-sky-100`,children:[(0,B.jsx)(`span`,{children:r}),(0,B.jsx)(J,{variant:`ghost`,size:`xs`,onClick:i,children:`Dismiss`})]}),t===null&&!n?null:(0,B.jsx)(`div`,{role:`alert`,className:`border-b bg-rose-500/10 px-6 py-1.5 text-center text-rose-800 text-sm dark:text-rose-200`,children:n?`This review has ended. Nothing more can be saved here.`:t})]}),(0,B.jsxs)(`div`,{className:`flex`,children:[(0,B.jsx)(Gx,{}),(0,B.jsx)(`main`,{className:`min-w-0 flex-1`,children:(0,B.jsxs)(`div`,{className:`mx-auto max-w-[1232px] px-6`,children:[(0,B.jsx)(Tx,{}),e.commits.map(e=>(0,B.jsx)(Ax,{commit:e},_f(e))),(0,B.jsx)(jy,{})]})})]}),s.layer,(0,B.jsx)($x,{}),(0,B.jsx)(Jx,{open:h,onOpenChange:g}),(0,B.jsx)(rS,{open:_,onOpenChange:v})]})})})}function cS(){return(0,B.jsx)(rv,{children:(0,B.jsx)(sS,{})})}function lS(){let e=rf(),[t,n]=(0,O.useState)(null),[r,i]=(0,O.useState)(null);return(0,O.useEffect)(()=>{qd.state().then(n).catch(e=>i(e instanceof Error?e.message:String(e)))},[]),r===null?t===null?(0,B.jsx)(`main`,{className:`p-10 text-muted-foreground text-sm`,children:`Loading the review…`}):(0,B.jsx)(Cp,{initial:t,children:e===`report`?(0,B.jsx)(B_,{}):(0,B.jsx)(cS,{})}):(0,B.jsxs)(`main`,{className:`mx-auto max-w-xl p-10 text-sm`,children:[(0,B.jsx)(`h1`,{className:`mb-2 font-semibold text-lg`,children:`This review is not available`}),(0,B.jsx)(`p`,{className:`text-muted-foreground`,children:r}),(0,B.jsx)(`p`,{className:`mt-4`,children:(0,B.jsx)(`a`,{className:`underline`,href:`/`,children:`All sessions`})})]})}var uS=window.matchMedia(`(prefers-color-scheme: dark)`),dS=()=>document.documentElement.classList.toggle(`dark`,uS.matches);dS(),uS.addEventListener(`change`,dS);var fS=document.getElementById(`root`);if(fS===null)throw Error(`index.html has no #root`);(0,we.createRoot)(fS).render((0,B.jsx)(O.StrictMode,{children:(0,B.jsx)(lS,{})}));export{c as a,l as i,oh as n,o as r,$ as t};
|